/* CMVD: category drawer, personal dashboard and page navigation. */
/* Notification counters are hidden until the current account is verified. */
.cmvd-badge-host{position:relative}
.cmvd-notification-badges{display:inline-flex;align-items:center;justify-content:flex-end;gap:4px;flex:0 0 auto;white-space:nowrap}
.cmvd-notification-badge{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-width:23px;min-height:23px;padding:2px 6px;border:2px solid #fff;border-radius:999px;background:#b61e3a;color:#fff;font:800 12px/1.25 system-ui,sans-serif;white-space:nowrap;box-shadow:0 2px 6px #6410272b;pointer-events:none}
.cmvd-notification-badge--pv-signed{background:#f08a24;color:#2e1703;box-shadow:0 2px 6px #8e390b38}
.cmvd-notification-badge[hidden],.cmvd-notification-badges[hidden]{display:none!important}
.cmvd-menu-toggle>.cmvd-notification-badges{position:absolute;top:-8px;right:-8px;gap:3px}
.cmvd-menu-toggle>.cmvd-notification-badges>.cmvd-notification-badge{min-width:18px;min-height:18px;padding:1px 3px;border-width:1px;font-size:10px}
.cmvd-category-link>.cmvd-notification-badges{margin-left:auto}
.cmvd-category-link>span:not(.cmvd-notification-badges){flex:1 1 auto}
.home-tile>.cmvd-notification-badges{position:absolute;top:9px;right:10px}
.home-tile>.cmvd-notification-badges>.cmvd-notification-badge{min-height:26px;min-width:26px;font-size:13px}
.cmvd-badge-host:not(.home-tile):not(.cmvd-menu-toggle):not(.cmvd-category-link)>.cmvd-notification-badges{margin-left:7px;vertical-align:middle}
.cmvd-push-settings{display:grid;gap:9px;margin-top:12px;padding:13px;border:1px solid #b5dce4;border-radius:14px;background:#effafa;color:#224d60}
.cmvd-push-status{margin:0;line-height:1.45;font-size:.9rem}
.cmvd-push-settings small{display:block;font-size:.78rem;line-height:1.45;color:#4b6878}
.cmvd-app main .cmvd-push-settings button{width:auto;min-height:44px;margin:0;padding:10px 12px;background:#0b687a;border:1px solid #0b687a;color:#fff;font-size:.88rem}
.cmvd-app main .cmvd-push-settings button:disabled{cursor:default;opacity:.65}
.cmvd-push-settings button:focus-visible{outline:3px solid #c15308;outline-offset:3px}
@media print{.cmvd-notification-badges,.cmvd-push-settings{display:none!important}}
.cmvd-app{--cmvd-teal:#067f82;--cmvd-cyan:#086eac;--cmvd-orange:#c9530a;--cmvd-ink:#15364c;--cmvd-soft:#edfafa;background:linear-gradient(135deg,#e8f6ff 0%,#eafbf6 58%,#fff3e4 100%);background-attachment:fixed}
.cmvd-app .topbar{background:linear-gradient(110deg,#123e68 0%,#047f82 72%,#08799c 100%);gap:12px}
.cmvd-app .cmvd-menu-toggle{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:46px;min-height:46px;padding:10px;background:#ffffff19;color:#fff;border:1px solid #ffffff65;border-radius:13px;box-shadow:none}
.cmvd-app .cmvd-menu-toggle:hover,.cmvd-app .cmvd-menu-toggle[aria-expanded=true]{background:#ffffff30}
.cmvd-menu-toggle svg{width:25px;height:25px}
.cmvd-menu-toggle .cmvd-menu-bars{display:grid;gap:5px;width:23px}
.cmvd-menu-bars span{display:block;height:2px;width:100%;background:currentColor;border-radius:2px}
.cmvd-menu-is-open{overflow:hidden}
.cmvd-category-menu{position:fixed;inset:0 auto 0 0;margin:0;width:min(360px,calc(100vw - 28px));max-width:none;height:100vh;height:100dvh;max-height:100vh;max-height:100dvh;padding:22px 18px;border:0;border-right:1px solid #cde7e8;border-radius:0 24px 24px 0;background:#f9fefe;color:var(--cmvd-ink,#15364c);box-shadow:15px 0 60px #13395335;overflow-y:auto;overscroll-behavior:contain;z-index:10000}
.cmvd-category-menu:not([open]){display:none}
.cmvd-category-menu::backdrop{background:#102f4d8c;backdrop-filter:blur(2px)}
.cmvd-menu-backdrop{position:fixed;inset:0;background:#102f4d8c;z-index:9999}
.cmvd-menu-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:22px}
.cmvd-menu-heading h2,.cmvd-category-menu>h2{margin:0;font-size:1.35rem;line-height:1.3}
.cmvd-category-menu [data-menu-close]{min-height:44px;min-width:44px;width:auto;padding:10px;background:#e0f3f3;color:#174650;border:1px solid #bfdede}
.cmvd-category-menu>p{margin:12px 0 20px;font-size:.92rem;color:#456573;line-height:1.5}
.cmvd-category-menu nav{display:grid;gap:10px}
.cmvd-category-link{display:flex;align-items:center;gap:13px;min-height:62px;padding:14px;border:1px solid #d1e7e9;border-radius:15px;background:#fff;color:#173e54;text-decoration:none;font-size:1rem;font-weight:700;line-height:1.35;overflow-wrap:anywhere}
.cmvd-category-link svg{width:27px;height:27px;flex:0 0 27px;color:#087d83}
.cmvd-category-link:hover{background:#e9f9f9;border-color:#57babc}
.cmvd-category-link[aria-current=page]{color:#fff;background:linear-gradient(110deg,#086987,#047d7b);border-color:#076f7b;box-shadow:0 5px 14px #087d8226}
.cmvd-category-link[aria-current=page] svg{color:#fff}
.cmvd-category-link:last-child svg{color:#bd510d}
.cmvd-category-link[aria-current=page]:last-child svg{color:#fff}
.cmvd-app .cmvd-page-nav{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 20px;padding:0;max-width:100%}
.cmvd-app main .cmvd-page-nav{width:100%}
.cmvd-app .cmvd-page-nav a{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 15px;border:1px solid #94cfd2;border-radius:12px;background:#fff;color:#14526a;text-decoration:none;font-size:.9rem;font-weight:750;line-height:1.3;box-shadow:0 2px 8px #15364c08}
.cmvd-app .cmvd-page-nav a:hover{background:#e4f7f5;border-color:#208e97}
.cmvd-app .cmvd-page-nav a svg{width:21px;height:21px;flex-shrink:0}
.cmvd-app .cmvd-page-nav [data-cmvd-back]{background:#e5f6f5;color:#0d5964}
.cmvd-app .cmvd-page-nav[data-page-nav=bottom]{margin:24px 0 0;padding-top:18px;border-top:1px solid #b9dedd}
.cmvd-app .cmvd-page-nav[hidden],.cmvd-menu-backdrop[hidden]{display:none!important}
.cmvd-app .cmvd-category-page .hero,.cmvd-app .cmvd-home-dashboard .hero{border-bottom:none;margin-bottom:10px;padding-top:2px}
.cmvd-app .cmvd-category-page .hero h1,.cmvd-app .cmvd-home-dashboard .hero h1{color:#153f59}
.cmvd-category-page .home-buttons{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px}
.cmvd-app .cmvd-category-page .home-group{border-top:0;margin:0;padding:0}
.cmvd-app .cmvd-category-page .home-tile{position:relative;min-height:178px;border:1px solid #b5dfe4;border-top:5px solid #0b99b2;border-radius:21px;background:#fff;box-shadow:0 6px 18px #174a6510;padding:20px 16px;color:#163e55;gap:11px}
.cmvd-app .cmvd-category-page .home-tile:nth-child(3n+2){border-top-color:#13a384}
.cmvd-app .cmvd-category-page .home-tile:nth-child(3n){border-top-color:#ed892c}
.cmvd-app .cmvd-category-page .home-tile .home-icon{display:flex;align-items:center;justify-content:center;flex:0 0 auto;width:66px;height:66px;border-radius:19px;background:#e3f6fc;color:#087aa2}
.cmvd-app .cmvd-category-page .home-tile:nth-child(3n+2) .home-icon{background:#dff8ef;color:#087b65}
.cmvd-app .cmvd-category-page .home-tile:nth-child(3n) .home-icon{background:#fff0db;color:#ae4808}
.cmvd-app .cmvd-category-page .home-icon svg{width:36px;height:36px}
.cmvd-app .cmvd-category-page .home-label{font-size:1rem;font-weight:800;line-height:1.35}
.cmvd-app .cmvd-category-page .home-hint{font-size:.82rem;color:#506b7d;line-height:1.4}
.cmvd-app .cmvd-category-page .home-tile:hover{border-color:#098c9f;box-shadow:0 10px 23px #174a651b;transform:translateY(-2px)}
.cmvd-app .cmvd-category-page .home-tile.is-disabled{border-top-color:#9aabb1;border-style:dashed;background:#f3f7f7;color:#576a75;box-shadow:none}
.cmvd-app .cmvd-category-page .home-tile.is-disabled .home-icon{background:#e6eeee;color:#627581}
.cmvd-app .cmvd-category-page .home-tile.is-disabled:hover{transform:none;border-color:#a9bdc7;box-shadow:none}
.cmvd-dashboard-grid{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);align-items:start;gap:20px}
.cmvd-app .cmvd-home-dashboard .card{border:1px solid #c3e3e7;border-radius:22px;background:#ffffffed;padding:22px;box-shadow:0 6px 22px #174a6510}
.cmvd-app .cmvd-home-dashboard .card.cmvd-notifications{border-top:5px solid #149dc7}
.cmvd-app .cmvd-home-dashboard .card.cmvd-todo{border-top:5px solid #f28b2d}
.cmvd-section-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin:0 0 16px}
.cmvd-section-heading h2{display:flex;align-items:center;gap:10px;margin:0;color:#17475c}
.cmvd-section-heading svg{width:27px;height:27px;flex-shrink:0;color:#087fa0}
.cmvd-notification-list{display:grid;gap:12px}
.cmvd-notification-list .alert{margin:0;border:1px solid #d1e6ef;border-left:4px solid #19a1c3;background:#ecf9ff;color:#1a485e;border-radius:13px;line-height:1.5;padding:14px}
.cmvd-notification-list .alert.warn{background:#fff7e9;border-color:#ecd4ae;border-left-color:#ed8b2a;color:#694414}
.cmvd-notification-list .alert.cmvd-notification-pv-signed{background:#fff0df;border-color:#efa65f;border-left:6px solid #dc680a;color:#71340b}
.cmvd-notification-list .alert.cmvd-notification-pv-signed strong{color:#9b4008}
.cmvd-notification-list .alert strong{font-weight:800}
.cmvd-notification-list .alert a{display:inline-flex;align-items:center;min-height:44px;margin-top:6px;font-weight:750;color:#095b8d;text-underline-offset:3px}
.cmvd-empty-state,.cmvd-todo-empty{padding:20px 16px;margin:0;border:1px dashed #a5d4d8;border-radius:15px;background:#f0faf9;color:#385e69;font-size:.94rem;line-height:1.5}
.cmvd-empty-state p{margin:0}
.cmvd-todo-form{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;margin:0 0 8px}
.cmvd-todo-form .actions{align-items:stretch;flex-wrap:nowrap}
.cmvd-todo-form .actions>input{flex:1 1 180px}
.cmvd-app main .cmvd-todo-form .actions>button{flex:0 0 auto!important}
.cmvd-todo-form .field{min-width:0}
.cmvd-todo-form label{display:block;margin:0;color:#284f63;font-weight:700}
.cmvd-app main .cmvd-todo-form input:not([type=hidden]){width:100%;min-height:46px;padding:12px;border:1px solid #a8cdd4;border-radius:12px;background:#fff;color:#15364c;font:inherit}
.cmvd-app main .cmvd-todo-form button{min-height:46px;width:auto;background:#a94d0e;border:1px solid #a94d0e;color:#fff;white-space:nowrap}
.cmvd-app main .cmvd-todo-form button:hover{background:#893d0b}
.cmvd-todo-list{display:grid;gap:10px;list-style:none;padding:0;margin:0}
.cmvd-todo-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 14px;background:#fffaf2;border:1px solid #eddbc2;border-left:4px solid #e48124;border-radius:14px}
.cmvd-todo-title{flex:1 1 120px;min-width:0;margin:0;color:#314854;font-weight:650;line-height:1.45;overflow-wrap:anywhere;white-space:pre-wrap}
.cmvd-todo-item small{color:#5c6f78;font-weight:400}
.cmvd-todo-item.is-complete,.cmvd-todo-item.is-completed{border-color:#c6e5d9;border-left-color:#1b9b79;background:#effaf5}
.cmvd-todo-item.is-complete .cmvd-todo-title,.cmvd-todo-item.is-completed .cmvd-todo-title{color:#536a62;text-decoration:line-through;text-decoration-thickness:1px}
.cmvd-todo-check-form{flex:0 0 auto;margin:0}
.cmvd-app main .cmvd-todo-check-form button{width:auto;min-width:44px;min-height:44px;padding:10px;background:#e0f5ed;color:#12594a;border:1px solid #a7d3cd;font-size:.82rem}
.cmvd-app main .cmvd-todo-check-form button:hover{background:#cbeade}
.cmvd-todo-heading h2{display:flex;align-items:center;gap:10px;margin:0 0 6px;color:#17475c}
.cmvd-todo-heading p{margin:0;line-height:1.4}
.cmvd-todo-count{display:inline-flex;align-items:center;justify-content:center;min-width:28px;min-height:28px;padding:3px 8px;border-radius:999px;background:#ffe1bc;color:#7b3a0a;font-size:.8rem}
.cmvd-todo-completed{margin-top:5px;border-top:1px solid #d3e6e1;padding-top:8px}
.cmvd-todo-completed summary{min-height:44px;padding:12px 0;color:#31634f;font-weight:700;cursor:pointer}
.cmvd-todo-completed[open] summary{margin-bottom:6px}
.cmvd-todo-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex:0 0 auto}
.cmvd-todo-actions form{margin:0}
.cmvd-app main .cmvd-todo-actions button{display:inline-flex;min-width:44px;min-height:44px;width:auto;padding:10px;border:1px solid #a7d3cd;border-radius:11px;background:#e0f5ed;color:#12594a;font-size:.82rem;line-height:1.25}
.cmvd-app main .cmvd-todo-actions button:hover{background:#cbeade}
.cmvd-app main .cmvd-todo-actions button.danger{border-color:#e4c3bd;background:#fff0ec;color:#9a382b}
.cmvd-app main .cmvd-todo-actions button.danger:hover{background:#fbe1da}
.cmvd-todo-actions svg{width:20px;height:20px}
.cmvd-auto-todo-list{display:grid;gap:10px;margin:0;padding:0;list-style:none}
.cmvd-auto-todo-list li{padding:13px 14px;border:1px solid #d0e8df;border-left:4px solid #16a383;border-radius:13px;background:#effaf5;color:#234d42;line-height:1.45}
.cmvd-auto-todo-list a{display:inline-flex;align-items:center;min-height:44px;max-width:100%;color:#125d57;font-weight:750;text-underline-offset:3px}
.cmvd-auto-todo-list p{margin:5px 0 0}
.cmvd-menu-noscript{display:flex;flex-wrap:wrap;gap:10px}
.cmvd-menu-noscript a{display:inline-flex;align-items:center;min-height:44px;padding:10px;border:1px solid #a7d3cd;border-radius:10px;background:#fff;color:#125d57;font-weight:700}
.cmvd-app .cmvd-menu-toggle:focus-visible,.cmvd-category-menu a:focus-visible,.cmvd-category-menu button:focus-visible,.cmvd-app .cmvd-page-nav a:focus-visible,.cmvd-app .cmvd-category-page .home-tile:focus-visible,.cmvd-app .cmvd-todo-form input:focus-visible,.cmvd-app .cmvd-todo-form button:focus-visible,.cmvd-app .cmvd-todo-actions button:focus-visible,.cmvd-app .cmvd-todo-check:focus-visible,.cmvd-app .cmvd-todo-completed summary:focus-visible{outline:3px solid #c15308;outline-offset:3px}
.cmvd-app .cmvd-menu-toggle:focus-visible{outline-color:#ffda87}
@media(max-width:800px){.cmvd-dashboard-grid{grid-template-columns:minmax(0,1fr);gap:16px}}
@media(max-width:640px){.cmvd-app .cmvd-menu-toggle{width:44px;min-height:44px;padding:9px}.cmvd-app .topbar{gap:9px}.cmvd-app .cmvd-page-nav{gap:9px;margin-bottom:17px}.cmvd-app .cmvd-page-nav a{flex:1 1 120px;padding:10px 12px}.cmvd-category-page .home-buttons{gap:12px}.cmvd-app .cmvd-category-page .home-tile{min-height:170px;padding:16px 11px;gap:10px}.cmvd-app .cmvd-category-page .home-tile .home-icon{width:58px;height:58px;border-radius:17px}.cmvd-app .cmvd-category-page .home-label{font-size:.94rem}.cmvd-app .cmvd-category-page .home-hint{font-size:.79rem}.cmvd-app .cmvd-home-dashboard .card{padding:17px!important}.cmvd-todo-form .actions{flex-wrap:wrap}.cmvd-app main .cmvd-todo-form button{width:100%}.cmvd-todo-item{flex-wrap:wrap;gap:8px;padding:12px}.cmvd-todo-title{flex:1 1 110px}.cmvd-todo-actions{margin-left:auto;flex-wrap:wrap}.cmvd-todo-check span{display:none}.cmvd-category-menu{padding:18px 14px}}
@media(prefers-reduced-motion:reduce){.cmvd-app .cmvd-category-page .home-tile{transition:none}.cmvd-app .cmvd-category-page .home-tile:hover{transform:none}}
@media print{.cmvd-menu-toggle,.cmvd-category-menu,.cmvd-menu-backdrop,.cmvd-page-nav{display:none!important}.cmvd-app{background:#fff}}

/* Home shows only the shared actions and the two equipment banners. */
.cmvd-compact-list{margin:14px 0;border:1px solid #bfd8e1;border-radius:14px;background:#f7fcfd;padding:13px 16px}
.cmvd-compact-list>summary{cursor:pointer;color:#17435b;font-weight:750;min-height:32px;line-height:1.5;overflow-wrap:anywhere}
.cmvd-compact-list[open]>summary{margin-bottom:14px}
.cmvd-compact-list>summary:focus-visible{outline:3px solid #c15308;outline-offset:4px}
.message-folders{margin:16px 0 22px}
.message-list>.card{align-content:start}
@media print{.cmvd-compact-list{border:0;padding:0}.cmvd-compact-list>summary{display:none}}
.cmvd-home-title{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.cmvd-app.cmvd-home-screen .cmvd-page-nav{display:none!important}
.cmvd-home-banners{display:grid;gap:16px;margin:0 0 22px}
.cmvd-home-banners:has(>[hidden]:first-child):has(>[hidden]:last-child){display:none}
.cmvd-home-banners .inv-verification-tracking{border:2px solid #991b1b;border-radius:18px;padding:22px 24px;background:#b91c1c;color:#fff;box-shadow:0 6px 18px #991b1b18}
.cmvd-home-banners .inv-verification-tracking>strong{font-size:1.15rem;line-height:1.4}
.cmvd-home-expiry .inv-attention{margin:0;border:2px solid #d97706;border-radius:18px;padding:22px 24px;background:#ffedd5;color:#78350f;box-shadow:0 6px 18px #92400e12}
.cmvd-home-expiry .inv-attention-heading strong{font-size:1.08rem;line-height:1.4}
.cmvd-home-expiry .inv-attention-list .inv-attention-row-urgent,.cmvd-home-expiry .inv-attention-list .inv-attention-row-upcoming{border-color:#d97706}
.cmvd-app main .cmvd-home-actions{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:18px}
.cmvd-app main .cmvd-home-action{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;min-height:210px;padding:24px 18px;border:1px solid #bfdedc;border-top:4px solid #087f82;border-radius:20px;background:#fff;color:#15364c;text-decoration:none;text-align:center;font:inherit;line-height:1.4;box-shadow:0 5px 20px #17385f0b}
.cmvd-home-action-icon{display:flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:19px;background:#e2f5f3;color:#087f82}
.cmvd-home-action-icon svg{width:34px;height:34px}
.cmvd-home-action strong{font-size:1.13rem}
.cmvd-home-action-hint{font-size:.88rem;color:#506b7d}
.cmvd-app main a.cmvd-home-action:hover{background:#f2fcfa;border-color:#087f82;box-shadow:0 8px 22px #17385f18}
.cmvd-app main button.cmvd-home-action:disabled{background:#f2f6f6;color:#536873;border-color:#cedada;opacity:1}
.cmvd-home-action:disabled .cmvd-home-action-icon{background:#e5eded;color:#6b8089}
.cmvd-home-action:focus-visible{outline:3px solid #c15308;outline-offset:4px}
@media(max-width:900px){.cmvd-app main .cmvd-home-actions{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.cmvd-app main .cmvd-home-action:last-child{grid-column:1/-1}}
.cmvd-app.cmvd-assistant-page main .hero{padding:22px 24px}
@media(max-width:640px){.cmvd-app.cmvd-assistant-page main .hero{padding:18px 16px}}
@media(max-width:640px){.cmvd-app main .cmvd-home-actions{gap:12px}.cmvd-app main .cmvd-home-action{min-height:175px;padding:18px 11px;gap:11px}.cmvd-home-action-icon{width:54px;height:54px;border-radius:15px}.cmvd-home-action-icon svg{width:29px;height:29px}.cmvd-home-action strong{font-size:1rem}.cmvd-home-action-hint{font-size:.8rem}.cmvd-home-banners .inv-verification-tracking,.cmvd-home-expiry .inv-attention{padding:18px 15px}.cmvd-home-banners .inv-verification-tracking>strong,.cmvd-home-expiry .inv-attention-heading strong{font-size:1rem}}

/* CMVD UI-01: compact default tiles, reversible per user without lowering touch targets. */
.cmvd-tile-size-control{display:flex;justify-content:flex-end;margin:0 0 10px}
.cmvd-app main .cmvd-tile-size-toggle{min-height:44px;padding:7px 12px;border:1px solid #087f82;border-radius:12px;background:#fff;color:#0b6375;font-size:.83rem;font-weight:700;cursor:pointer}
.cmvd-app main .cmvd-tile-size-toggle:focus-visible{outline:3px solid #c15308;outline-offset:2px}
.cmvd-app main .cmvd-home-actions{gap:10px}
.cmvd-app main .cmvd-home-action{min-height:105px;padding:10px 10px;gap:5px;border-radius:13px}
.cmvd-home-action-icon{width:35px;height:35px;border-radius:10px}
.cmvd-home-action-icon svg{width:22px;height:22px}
.cmvd-home-action strong{font-size:.94rem;line-height:1.25}
.cmvd-home-action-hint{font-size:.76rem;line-height:1.25}
.cmvd-category-page .home-buttons{gap:9px;grid-template-columns:repeat(auto-fit,minmax(145px,1fr))}
.cmvd-app .cmvd-category-page .home-tile{min-height:92px;padding:9px 11px;gap:5px;border-radius:13px;border-top-width:3px}
.cmvd-app .cmvd-category-page .home-tile .home-icon{width:38px;height:38px;border-radius:11px}
.cmvd-app .cmvd-category-page .home-icon svg{width:23px;height:23px}
.cmvd-app .cmvd-category-page .home-label{font-size:.94rem;line-height:1.25}
.cmvd-app .cmvd-category-page .home-hint{font-size:.74rem;line-height:1.2}
.cmvd-category-menu nav{gap:6px}
.cmvd-category-link{min-height:44px;padding:8px 11px;font-size:.9rem;gap:9px;border-radius:11px}
.cmvd-category-link svg{width:21px;height:21px;flex-basis:21px}
@media(max-width:640px){.cmvd-app main .cmvd-home-actions{gap:9px}.cmvd-app main .cmvd-home-action{min-height:105px;padding:8px 6px;gap:5px}.cmvd-app main .cmvd-home-action:last-child{grid-column:auto}.cmvd-category-page .home-buttons{gap:8px;grid-template-columns:repeat(2,minmax(0,1fr))}.cmvd-app .cmvd-category-page .home-tile{min-height:94px;padding:9px 7px;gap:5px}.cmvd-app .cmvd-category-page .home-tile .home-icon{width:36px;height:36px}}
/* Larger mode restores comfortable full-sized tiles on both devices. */
.cmvd-app.cmvd-tiles-large main .cmvd-home-actions{gap:18px}
.cmvd-app.cmvd-tiles-large main .cmvd-home-action{min-height:210px;padding:24px 18px;gap:14px;border-radius:20px}
.cmvd-app.cmvd-tiles-large .cmvd-home-action-icon{width:64px;height:64px;border-radius:19px}
.cmvd-app.cmvd-tiles-large .cmvd-home-action-icon svg{width:34px;height:34px}
.cmvd-app.cmvd-tiles-large .cmvd-home-action strong{font-size:1.13rem}
.cmvd-app.cmvd-tiles-large .cmvd-home-action-hint{font-size:.88rem}
.cmvd-app.cmvd-tiles-large .cmvd-category-page .home-buttons{gap:16px;grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}
.cmvd-app.cmvd-tiles-large .cmvd-category-page .home-tile{min-height:178px;padding:20px 16px;gap:11px;border-radius:21px;border-top-width:5px}
.cmvd-app.cmvd-tiles-large .cmvd-category-page .home-tile .home-icon{width:66px;height:66px;border-radius:19px}
.cmvd-app.cmvd-tiles-large .cmvd-category-page .home-icon svg{width:36px;height:36px}
.cmvd-app.cmvd-tiles-large .cmvd-category-page .home-label{font-size:1rem}
.cmvd-app.cmvd-tiles-large .cmvd-category-page .home-hint{font-size:.82rem}
.cmvd-app.cmvd-tiles-large .cmvd-category-menu nav{gap:10px}
.cmvd-app.cmvd-tiles-large .cmvd-category-link{min-height:62px;padding:14px;font-size:1rem;gap:13px;border-radius:15px}
.cmvd-app.cmvd-tiles-large .cmvd-category-link svg{width:27px;height:27px;flex-basis:27px}
@media(max-width:640px){.cmvd-app.cmvd-tiles-large main .cmvd-home-action{min-height:175px;padding:18px 11px;gap:11px}.cmvd-app.cmvd-tiles-large .cmvd-home-action-icon{width:54px;height:54px}.cmvd-app.cmvd-tiles-large .cmvd-home-action-icon svg{width:29px;height:29px}.cmvd-app.cmvd-tiles-large .cmvd-home-action strong{font-size:1rem}.cmvd-app.cmvd-tiles-large .cmvd-home-action-hint{font-size:.8rem}.cmvd-app.cmvd-tiles-large .cmvd-category-page .home-buttons{gap:12px;grid-template-columns:repeat(2,minmax(0,1fr))}.cmvd-app.cmvd-tiles-large .cmvd-category-page .home-tile{min-height:170px;padding:16px 11px;gap:10px}.cmvd-app.cmvd-tiles-large .cmvd-category-page .home-tile .home-icon{width:58px;height:58px}.cmvd-app.cmvd-tiles-large .cmvd-category-page .home-label{font-size:.94rem}.cmvd-app.cmvd-tiles-large .cmvd-category-page .home-hint{font-size:.79rem}}

/* UI-33B: shared compact navigation. Forms, tables and record actions keep their layout. */
.cmvd-app main .cmvd-home-actions{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));max-width:960px;margin:20px auto}
.cmvd-app main .cmvd-home-action:last-child{grid-column:auto}
.cmvd-app main .module-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:10px;margin:16px 0}
.cmvd-app main .module-tiles .home-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-height:94px;padding:12px;gap:7px;border:1px solid #b5dfe4;border-top:3px solid #087f82;border-radius:13px;background:#fff;color:#163e55;text-decoration:none;font-size:.94rem;line-height:1.3;overflow-wrap:anywhere;box-shadow:0 4px 12px #17385f0b}
.cmvd-app main .module-tiles .home-icon{display:flex;align-items:center;justify-content:center;width:38px;height:38px;background:#e3f6fc;border-radius:11px;color:#087aa2}
.cmvd-app main .module-tiles svg{width:23px;height:23px}
.cmvd-app.module-index main :is(nav.nav,.inv-actions,.ot-primary-actions,.message-folders){display:flex;flex-wrap:wrap;gap:9px;align-items:stretch;margin:16px 0}
.cmvd-app.module-index main :is(nav.nav,.inv-actions,.ot-primary-actions,.message-folders)>a{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:10px 13px;border:1px solid #a8cfd3;border-radius:11px;background:#fff;color:#14526a;font-size:.88rem;font-weight:700;line-height:1.35;text-align:center;text-decoration:none;white-space:normal;overflow-wrap:anywhere}
.cmvd-app.module-index main nav.nav>a[aria-current=page],.cmvd-app.module-index main .message-folders>a[aria-current=page]{background:#0b687a;color:#fff;border-color:#0b687a}
.cmvd-app main .module-tiles .home-tile:hover{background:#eaf9f7;border-color:#087f82}
.cmvd-app main .module-tiles .home-tile:focus-visible{outline:3px solid #c15308;outline-offset:3px}
.cmvd-app .cmvd-home-panel .cmvd-todo{max-width:900px;margin:16px auto}
@media(max-width:640px){.cmvd-app main .cmvd-home-actions,.cmvd-app main .module-tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.cmvd-app main .cmvd-home-action{min-width:0}.cmvd-app.module-index main :is(nav.nav,.inv-actions,.ot-primary-actions,.message-folders)>a{flex:1 1 135px;min-width:0}.cmvd-app main .cmvd-todo-form .actions{flex-wrap:wrap}.cmvd-app main .cmvd-todo-form input{min-width:0}}

@media(max-width:640px){.review-wide .review-special-entry{grid-template-columns:minmax(0,1fr)!important}.review-wide .review-special-entry>label:first-child{display:flex;align-items:center;gap:10px}}
