:root{--font-ui:"Segoe UI",-apple-system,BlinkMacSystemFont,Arial,sans-serif;--background:#f7f6f2;--foreground:#122238;--card:#fffefb;--card-foreground:#122238;--popover:#fffefb;--popover-foreground:#122238;--muted:#eeede7;--muted-foreground:#526071;--border:#dcd9d0;--input:#778392;--primary:#122238;--primary-foreground:#fffefb;--accent:#c8a66a;--accent-foreground:#122238;--secondary:#eaf3ee;--secondary-foreground:#245e49;--destructive:#963c3c;--ring:#344e6b;--radius:.625rem;--space-page:1rem;--status-success:#245e49;--status-success-bg:#eaf3ee;--status-warning:#755519;--status-warning-bg:#fff7e4;--status-danger:#963c3c;--status-danger-bg:#fff2f2}body{font-family:var(--font-ui);min-width:0}.app-shell{background:var(--background);min-height:100dvh;color:var(--foreground)}.app-shell :is(button,input,select,textarea,a,summary){-webkit-tap-highlight-color:transparent}.app-shell :is(button,a){touch-action:manipulation}.app-shell :is(button,a,input,textarea,select,summary,[tabindex]):focus-visible,.login-page :is(button,a,input):focus-visible{outline:3px solid var(--ring);outline-offset:3px}.app-shell [data-slot=button],.login-page [data-slot=button]{min-height:44px;height:auto;border-radius:6px;font-size:.875rem;font-weight:550;padding:10px 16px;white-space:normal;text-align:center;line-height:1.4;box-shadow:none}.app-shell [data-slot=button][data-variant=outline]{background:var(--card);border-color:var(--input);color:var(--foreground)}.app-shell [data-slot=button]:active:not(:disabled){transform:translateY(1px)}.app-shell :is(input,textarea,select){min-width:0;font-size:1rem;min-height:44px;border-color:var(--input);color:var(--foreground);accent-color:var(--primary)}.app-shell :is(input,textarea)::placeholder{color:var(--muted-foreground);opacity:1}.app-shell :is(input[type=checkbox],input[type=radio]){min-height:20px;width:20px;flex-shrink:0}.app-shell :is(h1,h2,h3){text-wrap:balance}.app-shell :is(p,dd){text-wrap:pretty}.app-shell :is(th,td){line-height:1.5;font-variant-numeric:tabular-nums}.app-shell [data-slot=card]{border-radius:10px;border-color:var(--border);background:var(--card);box-shadow:none}.app-shell [data-slot=card-title]{font-size:1.125rem;font-weight:600;line-height:1.4}.app-shell [data-slot=card-content]{min-width:0}.sidebar{width:264px;background:var(--card);border-color:var(--border);padding:20px 16px 16px;overflow-y:auto;overscroll-behavior:contain;transform:translateX(-105%);visibility:hidden;max-width:calc(100vw - 40px);transition:transform .18s ease,visibility .18s;z-index:40}.sidebar.sidebar-open{transform:translateX(0);visibility:visible;box-shadow:12px 0 36px rgb(18 34 56/18%)}.sidebar-backdrop{display:block;position:fixed;inset:0;z-index:35;background:rgb(18 34 56/38%)}.sidebar-top{align-items:center}.sidebar-close{display:grid;place-items:center;width:44px;height:44px;flex:none;color:var(--muted-foreground)}.brand-lockup{padding:0 0 20px;min-width:0}.brand-lockup img{width:200px;max-width:100%;height:auto;mix-blend-mode:normal}.company-chip{background:var(--background);border:0;border-radius:6px;box-shadow:none;padding:12px}.company-chip p{font-size:.875rem;color:var(--foreground)}.company-chip span:not(.status-dot){font-size:.75rem;color:var(--muted-foreground)}.company-avatar,.profile-avatar{background:var(--muted);color:var(--foreground);border-radius:6px;font-size:.75rem}.status-dot{display:none}.sidebar-nav{gap:4px}.sidebar-nav button{min-height:44px;height:auto;padding:10px 12px;font-size:.875rem;line-height:1.4;color:var(--muted-foreground);border-radius:6px;border-color:transparent}.sidebar-nav button:is(:hover,.active){background:var(--muted);color:var(--foreground);box-shadow:none}.sidebar-nav button.active{font-weight:650}.sidebar-nav svg{width:18px;height:18px;flex:none}.sidebar-nav small{background:var(--background);color:var(--foreground);font-size:.75rem;font-variant-numeric:tabular-nums}.sidebar-spacer{min-height:24px}.navigation-group{margin-bottom:8px}.navigation-items{display:grid;gap:2px}.navigation-items[hidden]{display:none}.menu-label,.navigation-group .menu-label{margin:16px 12px 6px;font-size:.75rem;letter-spacing:0;font-weight:600;color:var(--muted-foreground)}.sidebar-nav .navigation-group-toggle{width:100%;min-height:44px;padding:10px 12px;border:0;font-size:.75rem;font-weight:600;color:var(--muted-foreground)}.navigation-group-toggle svg{margin-left:auto;width:14px;transition:transform .14s ease}.navigation-group-toggle[aria-expanded=true] svg{transform:rotate(180deg)}.sidebar-nav .navigation-items button{min-height:44px;width:100%}.sidebar-nav .navigation-items button.active{box-shadow:inset 3px 0 var(--primary)}.sidebar-nav .navigation-items button span{min-width:0;overflow-wrap:anywhere}.sidebar .isolation-note{background:transparent;border:0;border-top:1px solid var(--border);margin-top:12px;padding:16px 4px 12px}.isolation-note :is(strong,p){font-size:.75rem;color:var(--muted-foreground);line-height:1.6}.profile-row{min-height:64px;border-top:1px solid var(--border);padding-top:16px}.profile-row strong{font-size:.8125rem;color:var(--foreground)}.profile-row span{font-size:.75rem;color:var(--muted-foreground)}.sidebar-logout{min-height:44px;font-size:.8125rem;border-color:var(--input)}.content-shell{padding-left:0;min-width:0}.topbar{display:flex;align-items:center;flex-wrap:nowrap;position:sticky;top:0;min-height:64px;height:auto;padding:8px 12px;gap:8px;background:var(--card);border-color:var(--border);box-shadow:none;backdrop-filter:none;z-index:25}.menu-trigger{display:inline-flex;align-items:center;justify-content:center;gap:4px;min-height:44px;min-width:58px;color:var(--foreground);font-size:.75rem;border:0;background:transparent}.menu-trigger svg{width:18px;height:18px}.tenant-signature{flex:1;min-width:0;margin:0}.topbar-brand-mark{display:block;position:relative;width:100%;max-width:122px;height:44px;overflow:hidden}.topbar-brand-mark img{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:calc(100% + 8px);max-width:none;height:auto;mix-blend-mode:normal}.tenant-context{display:none;min-width:0}.tenant-signature strong{display:block;font-size:.875rem;color:var(--foreground);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tenant-signature small{font-size:.75rem;color:var(--muted-foreground)}.topbar-actions{display:flex;align-items:center;flex-wrap:nowrap;gap:4px;margin-left:auto;flex-shrink:0}.topbar-actions .plan-badge{display:none}.workspace-presence{display:flex;align-items:center;gap:12px;flex-shrink:0}.workspace-clock{display:flex;align-items:baseline;gap:4px;white-space:nowrap;color:var(--muted-foreground);font-size:.75rem;font-variant-numeric:tabular-nums}.workspace-clock time{font-family:inherit;min-width:8ch}.workspace-clock small{font-size:.625rem}.workspace-presence .connection-indicator{margin:0 8px 0 0}.workspace-presence .connection-indicator.connected{animation:workspace-online-pulse 2.4s ease-in-out infinite}@keyframes workspace-online-pulse{0%,to{box-shadow:0 0 0 0 #16834a15;opacity:1}50%{box-shadow:0 0 0 4px #16834a22;opacity:.75}}@media(prefers-reduced-motion:reduce){.workspace-presence .connection-indicator.connected{animation:none}}@media(max-width:599px){.topbar{--workspace-header-height:112px;display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px;padding:8px 12px}.topbar .tenant-signature{justify-self:end;width:min(100%,122px)}.topbar-actions{grid-column:1/-1;width:100%;margin:0;gap:8px;justify-content:flex-end;min-width:0}.topbar-actions .workspace-presence{margin-right:auto;gap:8px}.topbar-actions .workspace-clock{font-size:.75rem}.topbar-actions .theme-toggle{width:60px;min-width:60px;padding:0}.topbar-actions>.mobile-icon-action{height:44px}}.app-shell .topbar-actions [data-slot=button]{width:44px;min-width:44px;padding:0}.topbar-actions [data-slot=button]>span{display:none}.topbar-actions [data-slot=button] svg{width:18px;height:18px}.workspace-help-fab{position:fixed;right:max(24px,env(safe-area-inset-right));bottom:calc(24px + env(safe-area-inset-bottom,0px));z-index:24;display:inline-flex;align-items:center;justify-content:center;width:48px;max-width:48px;height:48px;min-width:48px;min-height:48px;padding:0;border:1px solid var(--border);border-radius:50%;background:var(--card);color:var(--foreground);box-shadow:0 3px 12px #10233b18;font-size:.8125rem;cursor:pointer}.workspace-help-fab span{display:none}.admin-topbar .admin-preview-exit,.admin-topbar .admin-user-view-button{flex:none}@media(max-width:599px){.admin-topbar .topbar-actions>.admin-preview-exit,.admin-topbar .topbar-actions>.admin-user-view-button{grid-column:4;grid-row:1;justify-self:end}.admin-topbar .tenant-signature{max-width:122px}.admin-topbar .topbar-actions>.workspace-presence{justify-content:flex-end}}.workspace-help-fab[hidden]{display:none}.workspace-help-fab svg{width:21px;height:21px}.workspace-help-fab:hover{background:var(--muted)}.workspace-help-fab:focus-visible{outline:3px solid var(--ring);outline-offset:3px}.app-shell .workspace-with-help{padding-bottom:calc(104px + env(safe-area-inset-bottom,0px))}@media(max-width:599px){.client-topbar{--workspace-header-height:84px;grid-template-columns:58px minmax(0,1fr) 60px 44px;gap:4px 8px;min-height:84px}.client-topbar .tenant-signature{justify-self:start;width:min(100%,122px)}.client-topbar .topbar-actions{display:contents}.client-topbar .topbar-actions>.workspace-presence{grid-column:1/-1;grid-row:2;justify-content:flex-end;margin:0;gap:8px;min-height:18px}.client-topbar .workspace-clock{font-size:.6875rem}.client-topbar .topbar-actions>.theme-toggle{grid-column:3;grid-row:1}.client-topbar .workspace-notifications{grid-column:4;grid-row:1;justify-self:end}.workspace-help-fab{right:max(16px,env(safe-area-inset-right));bottom:calc(16px + env(safe-area-inset-bottom,0px));width:48px;height:48px;padding:0}.workspace-help-fab span{display:none}body:has(:is(input,textarea,select):focus) .workspace-help-fab{visibility:hidden}}.admin-page-wrap,.page-wrap{width:min(100%,1280px);min-width:0;margin-inline:auto;padding:24px var(--space-page) 48px}.workspace-breadcrumb{display:flex;align-items:center;gap:8px;min-width:0;flex-wrap:wrap;margin-bottom:24px;color:var(--muted-foreground);font-size:.75rem}.workspace-breadcrumb svg{width:14px;height:14px}.workspace-breadcrumb span:last-child{color:var(--foreground)}.page-heading{align-items:flex-start;flex-direction:column;gap:16px;margin-bottom:24px}.app-shell .page-heading .title-with-help h1,.page-heading h1{font-size:clamp(1.5rem,2.2vw,2rem);font-weight:650;line-height:1.2;letter-spacing:-.025em;color:var(--foreground)}.page-heading>div>p:last-child{font-size:.9375rem;line-height:1.6;color:var(--muted-foreground);max-width:65ch}.app-shell .eyebrow{font-size:.75rem;font-weight:500;letter-spacing:.015em;text-transform:none;color:var(--muted-foreground)}.app-shell :is(.readiness-note,.check-row,.bottom-note,.admin-row,.profile-form-grid label,.profile-form-footer p,.settings-menu-card p,.settings-menu-card small,.poa-empty,.poa-record p,.delivery-record p,.user-access-main p,.user-access-main small,.audit-log-main p,.audit-log-main small){font-size:.875rem;line-height:1.6;color:var(--muted-foreground)}.app-shell :is(.settings-menu-card strong,.user-access-title strong,.audit-log-main strong){font-size:.9375rem;color:var(--foreground)}.app-shell :is(.stats-grid,.issuance-stats){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 0;padding:20px 0;margin-bottom:24px;border-block:1px solid var(--border)}.workspace-metric{display:flex;flex-direction:column;gap:6px;min-width:0;padding-inline:16px;border-left:1px solid var(--border)}.workspace-metric:nth-child(odd){border-left:0;padding-left:0}.workspace-metric>small,.workspace-metric>span{font-size:.8125rem;line-height:1.5;color:var(--muted-foreground)}.workspace-metric>strong{font-size:1.5rem;line-height:1.2;font-weight:600;color:var(--foreground);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.stat-card{min-height:auto}.stat-card small,.stat-card span{color:var(--muted-foreground);font-size:.8125rem;line-height:1.5}.stat-card strong{font-size:1.5rem;font-variant-numeric:tabular-nums}.app-shell :is(.dashboard-grid,.validation-grid,.confirmation-grid,.result-grid,.admin-overview-grid)>*{min-width:0}.app-shell :is(.history-card,.listing-card,.workflow-card,.profile-card,.user-access-card,.audit-log-card){border:0;border-radius:0;background:transparent;box-shadow:none;padding-block:0}.app-shell :is(.history-card,.listing-card,.workflow-card,.profile-card,.user-access-card,.audit-log-card)>[data-slot=card-header]{padding:0 0 16px}.app-shell :is(.history-card,.listing-card,.workflow-card,.profile-card,.user-access-card,.audit-log-card)>[data-slot=card-content]{padding:0}.app-shell table{font-size:.875rem}.app-shell [data-slot=table-container]{border:1px solid var(--border);border-radius:6px;background:var(--card);max-width:100%;overflow:auto;overscroll-behavior-inline:contain}.app-shell :is(.history-card,.listing-card,.workflow-card) [data-slot=table-head]{height:44px;font-size:.75rem;font-weight:600;letter-spacing:0;white-space:nowrap;color:var(--muted-foreground);background:var(--muted)}.app-shell :is(.history-card,.listing-card,.workflow-card) [data-slot=table-cell]{padding:12px;height:48px;font-size:.875rem;color:var(--foreground)}.app-shell :is(.history-card,.listing-card,.workflow-card) [data-slot=badge]{font-size:.75rem;min-height:24px;height:auto;line-height:1.4;white-space:normal}.app-shell [data-slot=table-head]{position:sticky;top:0;z-index:1}.workspace-empty{display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:32px 8px}.workspace-empty svg{width:24px;height:24px;color:var(--muted-foreground)}.workspace-empty p{white-space:normal;color:var(--muted-foreground);max-width:44ch}.workspace-next-steps{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:24px 0;margin-top:24px;border-block:1px solid var(--border)}.workspace-next-steps h2{font-size:1rem;font-weight:600}.workspace-next-steps p{font-size:.875rem;color:var(--muted-foreground);margin:4px 0 0}.workspace-next-steps>[data-slot=button]{width:100%;margin-top:8px}.app-shell .bottom-note{align-items:flex-start;flex-wrap:wrap;gap:10px;margin-top:24px}.app-shell .bottom-note p{flex:1;min-width:0;flex-basis:240px}.app-shell .bottom-note span{white-space:normal}.app-shell .flow-steps{display:flex;gap:0;border:0;border-bottom:1px solid var(--border);background:transparent;box-shadow:none;border-radius:0;padding:0 0 20px;margin-bottom:24px}.app-shell .flow-step{flex:1;min-width:0;flex-direction:column;gap:6px;padding:4px;border:0;background:transparent}.app-shell .flow-step:after{display:none}.app-shell .flow-step>span{border-radius:4px;background:var(--muted);color:var(--muted-foreground)}.app-shell .flow-step.current>span{background:var(--primary);color:var(--primary-foreground)}.app-shell .flow-step strong{font-size:.75rem;color:var(--muted-foreground)}.app-shell .flow-step.current strong{color:var(--foreground)}.debtor-input-tabs{display:flex;gap:4px;border:0;border-bottom:1px solid var(--border);padding:0 0 12px;margin-bottom:20px;min-width:0;flex-wrap:wrap}.debtor-input-tabs button{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:10px 12px;border:1px solid transparent;border-radius:6px;background:transparent;color:var(--muted-foreground);font-size:.875rem}.debtor-input-tabs button.active{border-color:var(--input);background:var(--card);color:var(--foreground)}.debtor-input-tabs button svg{width:18px;height:18px}.app-shell :is(.profile-form-grid,.settings-form-grid,.poa-form-grid,.pic-contact-grid){gap:20px}.app-shell :is(.profile-form-grid,.settings-form-grid,.poa-form-grid,.pic-contact-grid) label{font-size:.875rem;line-height:1.5}.app-shell .filter-row{gap:12px;padding-block:8px 20px;flex-wrap:wrap}.app-shell .filter-row>*{max-width:100%;min-width:0}.app-shell :is(.validation-stats,.confirmation-box,.file-summary,.document-profile-summary,.pic-contact-form){border-radius:6px;box-shadow:none}.app-shell .manual-debtor-form{padding:20px 16px;border:1px solid var(--border);border-radius:10px;background:var(--card)}.app-shell .manual-debtor-form fieldset{min-width:0}.app-shell :is(.held-review-actions,.settings-form-actions,.manual-form-actions,.history-report-actions){display:flex;flex-wrap:wrap;gap:8px;width:100%}.app-shell :is(.held-review-actions,.settings-form-actions,.manual-form-actions,.history-report-actions) [data-slot=button]{max-width:100%;min-width:0}.settings-menu-card{border-color:var(--border);background:var(--card);box-shadow:none;border-radius:10px}.settings-menu-card:hover{transform:none;box-shadow:none;background:var(--muted);border-color:var(--input)}.settings-menu-icon{background:var(--muted);color:var(--foreground);border-radius:6px}.user-access-record{grid-template-columns:32px minmax(0,1fr);align-items:start;gap:12px;padding:16px}.user-access-actions{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:8px;width:100%}.user-access-avatar{width:32px;height:32px}.user-access-actions [data-slot=button]{min-height:44px;font-size:.8125rem}.workspace-skip-link{position:fixed;top:8px;left:8px;z-index:80;transform:translateY(-160%);padding:12px 16px;border-radius:6px;background:var(--primary);color:var(--primary-foreground)}.workspace-skip-link:focus{transform:none}.title-with-help{display:flex;align-items:center;gap:8px;min-width:0}.title-with-help h1{min-width:0}.context-help-trigger{display:inline-grid;place-items:center;flex:none;width:44px;height:44px;border:0;border-radius:6px;background:transparent;color:var(--muted-foreground);cursor:pointer}.context-help-trigger:hover{background:var(--muted);color:var(--foreground)}.context-help-trigger svg{width:18px;height:18px}.context-help-content button:focus-visible,.context-help-trigger:focus-visible{outline:3px solid var(--ring);outline-offset:3px}.context-help-content{width:min(340px,calc(100vw - 32px));max-height:min(420px,calc(100dvh - 32px));overflow:auto;padding:16px;border:1px solid var(--border);border-radius:8px;background:var(--popover);color:var(--popover-foreground);box-shadow:0 10px 30px rgb(18 34 56/16%);font-size:.875rem;line-height:1.65}.context-help-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.context-help-heading button{display:grid;place-items:center;flex:none;width:44px;height:44px;border:0;border-radius:6px;background:transparent;color:inherit}.context-help-heading svg{width:16px;height:16px}.context-help-content p{margin:0}.context-help-content ol,.workspace-help ol{list-style:decimal;padding-left:20px}.context-help-content li+li{margin-top:8px}.workspace-help{width:min(360px,calc(100vw - 32px));max-width:min(360px,calc(100vw - 32px));max-height:calc(100dvh - 2rem);overflow-y:auto;font-size:.875rem;line-height:1.6}.workspace-help li+li{margin-top:.75rem}.workspace-operations-detail{margin-top:24px;border-top:1px solid var(--border);padding-top:12px}.workspace-operations-detail>summary{min-height:44px;cursor:pointer;font-size:.875rem;font-weight:550;padding-block:12px}[data-slot=alert-dialog-content],[data-slot=dialog-content]{max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);overflow:auto;border-radius:12px}[data-slot=alert-dialog-footer],[data-slot=dialog-footer]{position:sticky;bottom:-1px;background:var(--popover);padding-block:12px}@media(min-width:640px){:root{--space-page:24px}.topbar{padding-inline:24px;gap:16px}.page-heading{flex-direction:row;gap:24px}.app-shell .flow-step{flex-direction:row;padding:8px;gap:10px}.app-shell .flow-step strong{font-size:.8125rem}.workspace-next-steps{flex-wrap:nowrap}.workspace-next-steps>[data-slot=button]{margin:0 0 0 auto;width:auto}.app-shell .manual-debtor-form{padding:24px}.user-access-actions{grid-column:2}}@media(min-width:1024px){:root{--space-page:32px}.sidebar{transform:none;visibility:visible;max-width:none;transition:none}.menu-trigger,.sidebar-backdrop,.sidebar-close{display:none}.content-shell{padding-left:264px}.topbar{min-height:72px;padding:12px 32px}.topbar-brand-mark{display:none}.tenant-context{display:block}.app-shell .topbar-actions [data-slot=button]{width:auto;padding:10px 14px}.topbar-actions [data-slot=button]>span{display:inline}.topbar-actions{gap:12px}.admin-page-wrap,.page-wrap{padding-top:32px;padding-bottom:64px}.app-shell :is(.stats-grid,.issuance-stats){grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}.workspace-metric,.workspace-metric:nth-child(odd){padding-inline:24px;border-left:1px solid var(--border)}.workspace-metric:first-child{padding-left:0;border-left:0}.workspace-metric>strong{font-size:1.75rem}.user-access-record{grid-template-columns:36px minmax(0,1fr)}}@media(hover:hover){.app-shell :is(button,a){transition:background-color .14s ease,color .14s ease,border-color .14s ease}}@media(prefers-reduced-motion:reduce){*,:after,:before{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}.theme-toggle{display:inline-flex;align-items:center;justify-content:center;width:68px;min-width:68px;min-height:44px;padding:4px;border:0;border-radius:24px;background:transparent;color:var(--foreground);font-size:.875rem;line-height:1.35;cursor:pointer;flex-shrink:0}.theme-toggle:hover .theme-switch-track{border-color:var(--foreground)}.theme-toggle:focus-visible{outline:3px solid var(--ring);outline-offset:3px}.theme-toggle svg{width:18px;height:18px}.theme-switch-track{position:relative;display:flex;align-items:center;justify-content:space-between;width:60px;height:32px;padding:0 6px;border:1px solid var(--input);border-radius:18px;background:var(--muted);color:var(--muted-foreground)}.theme-switch-thumb{position:absolute;left:3px;top:3px;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--primary);color:var(--primary-foreground);transition:transform .16s ease}.theme-toggle[aria-checked=true] .theme-switch-thumb{transform:translateX(28px)}@media(prefers-reduced-motion:reduce){.theme-switch-thumb{transition:none}}.topbar-actions button.theme-toggle{display:inline-flex}.connection-indicator{display:inline-block;width:10px;height:10px;flex:0 0 10px;border-radius:50%;background:#aa7a22;margin-inline:6px}.connection-indicator.connected{background:#16834a}.dark .connection-indicator.connected{background:#4ade80}.login-theme{display:flex;justify-content:flex-end;margin-bottom:20px}html{color-scheme:light}html.dark{color-scheme:dark;--background:#101923;--foreground:#e6edf3;--card:#182634;--card-foreground:#e6edf3;--popover:#1c2b39;--popover-foreground:#e6edf3;--muted:#223443;--muted-foreground:#b3c2cf;--primary:#c8a66a;--primary-foreground:#122238;--secondary:#203e35;--secondary-foreground:#bce5cf;--accent:#c8a66a;--accent-foreground:#122238;--border:#3b5061;--input:#718799;--ring:#c8a66a;--destructive:#ffb6b6;--status-success:#97dfba;--status-success-bg:#19332c;--status-warning:#f0cf87;--status-warning-bg:#302b1f;--status-danger:#ffb6b6;--status-danger-bg:#37262d}.dark :is(.app-shell,.auth-loading,.login-page){background:var(--background);color:var(--foreground)}.dark .app-shell [data-slot=card],.dark :is(.sidebar,.topbar,.login-panel,.settings-menu-card){background:var(--card);border-color:var(--border);color:var(--foreground)}.dark .app-shell :is(h1,h2,h3,[data-slot=card-title],.tenant-signature strong,.profile-row strong,.company-chip p,.stat-card strong,.step-row strong,.settings-menu-card strong,.user-access-title strong,.audit-log-main strong):not(.docx *){color:var(--foreground)}.dark .app-shell :is(.page-heading>div>p:last-child,.tenant-signature small,.company-chip span:not(.status-dot),.profile-row span,.menu-label,.isolation-note strong,.isolation-note p,.stat-card span,.stat-card small,.step-row p,.readiness-note,.check-row,.bottom-note,.admin-row,.profile-form-grid label,.profile-form-footer p,.settings-menu-card p,.settings-menu-card small,.poa-empty,.poa-record p,.delivery-record p,.user-access-main p,.user-access-main small,.audit-log-main p,.audit-log-main small){color:var(--muted-foreground)}.dark .app-shell .eyebrow,.dark .login-panel .eyebrow{color:var(--accent)}.dark :is(.company-chip,.company-avatar,.profile-avatar,.sidebar-nav small,.settings-menu-icon,.step-row>span){background:var(--muted);color:var(--foreground)}.dark .sidebar-nav button{color:var(--muted-foreground)}.dark .settings-menu-card:hover,.dark .sidebar-nav button:is(:hover,.active){background:var(--muted);color:var(--foreground);border-color:var(--border)}.dark :is(.profile-row,.sidebar-logout){border-color:var(--border)}.dark .sidebar-logout{background:var(--card);color:var(--destructive)}.dark .menu-trigger{color:var(--foreground)}@media(max-width:640px){.dark .menu-trigger{background:var(--muted);border-color:var(--border);color:var(--accent)}.dark .menu-trigger:hover{background:var(--background)}}.dark .app-shell :is(input,textarea,select),.dark .login-panel input{background:var(--background);color:var(--foreground);border-color:var(--input)}.dark .app-shell :is(input,textarea)::placeholder,.dark .login-panel input::placeholder{color:var(--muted-foreground)}.dark .app-shell [data-slot=button][data-variant=outline]{background:var(--card);border-color:var(--input);color:var(--foreground)}.dark .app-shell [data-slot=button][data-variant=outline]:hover{background:var(--muted)}.dark .app-shell :is(th,td){border-color:var(--border)}.dark .app-shell :is(thead,[data-slot=table-header],.listing-card [data-slot=table-head]){background:var(--muted);color:var(--muted-foreground)}.dark .app-shell :is(.profile-form-grid,.user-access-card,.audit-log-card,.settings-editor-card,.poa-record,.delivery-record,.template-validation,.template-format-note,.template-package-card,.confirmation-box,.lock-note){background:var(--card);border-color:var(--border);color:var(--foreground)}.dark .app-shell :is(.template-field-help,.template-validation p,.template-format-note p,.template-package-card p,.confirmation-box p,.lock-note p){color:var(--muted-foreground)}.dark .app-shell :is(.template-validation strong,.template-format-note strong,.template-package-card strong,.confirmation-box strong,.lock-note strong){color:var(--foreground)}.dark .app-shell :is(.template-validation.valid,.success-banner){background:#203e35;border-color:#588d76;color:#bce5cf}.dark .app-shell :is(.template-validation.invalid,.error-banner){background:#402a2c;border-color:#a26e6c;color:#ffbcb4}.dark .login-panel :is(h1,.login-label-row>span,.login-security a){color:var(--foreground)}.dark .login-panel :is(.login-heading p:last-child,.login-form label,.login-security p,.login-divider){color:var(--muted-foreground)}.dark .login-label-row button{color:var(--accent)}.dark .login-divider span{background:var(--card)}.dark .login-error{background:#402a2c;color:#ffbcb4;border-color:#a26e6c}.dark :is(.brand-lockup img,.topbar-brand-mark img){filter:brightness(0) saturate(100%) invert(72%) sepia(22%) saturate(768%) hue-rotate(359deg) brightness(91%) contrast(90%)}.dark .workspace-help{background:var(--popover);color:var(--popover-foreground)}.dark .privacy-page{background:var(--background);color:var(--foreground)}.dark .privacy-page article{background:var(--card);border-color:var(--border)}.dark .privacy-page header{border-color:var(--border)}.dark .privacy-page :is(h1,h2){color:var(--foreground)}.dark .privacy-page :is(p,li,article>div){color:var(--muted-foreground)}.dark .app-shell :is(.poa-form-grid label>span,.profile-form-grid label>span,.settings-form-grid label,.pic-contact-grid label>span){color:var(--muted-foreground)}.dark .app-shell :is(.poa-document,.poa-document.active,.poa-upload,.poa-upload.has-file,.settings-channel,.document-profile-summary,.pic-contact-form,.file-summary,.history-report-summary-grid>div,.history-detail-summary>div,.history-document,.upload-zone){background:var(--card);border-color:var(--border);color:var(--foreground)}.dark .app-shell :is(.poa-document,.poa-upload,.settings-channel,.document-profile-summary,.pic-contact-form,.file-summary,.history-report-summary-grid,.history-detail-summary,.history-document,.upload-zone) strong{color:var(--foreground)}.dark .app-shell :is(.poa-document,.poa-upload,.settings-channel,.document-profile-summary,.pic-contact-form,.file-summary,.history-report-summary-grid,.history-detail-summary,.history-document,.upload-zone) :is(p,small),.dark .app-shell :is(.poa-meta span,.poa-scope,.pic-contact-help,.history-report-summary-grid span,.history-detail-summary span,.history-document span){color:var(--muted-foreground)}.dark .app-shell .poa-upload>span{background:var(--muted);color:var(--foreground);box-shadow:inset 0 0 0 1px var(--border)}.dark .app-shell :is(.user-access-record,.user-access-record.inactive,.audit-log-record){background:var(--background);border-color:var(--border);color:var(--foreground)}.dark .app-shell .user-access-record.inactive{opacity:1}.dark .app-shell :is(.user-access-avatar,.audit-log-icon){background:var(--muted);color:var(--foreground)}.dark .app-shell :is(.user-access-avatar.admin,.audit-log-icon.access){color:var(--accent)}.dark .app-shell .audit-log-entity :is(span,strong){color:var(--muted-foreground)}.dark .app-shell :is(.history-card,.listing-card,.workflow-card) [data-slot=table-cell]{color:var(--foreground)}.dark .app-shell :is(.history-card,.listing-card,.workflow-card) [data-slot=table-head]{color:var(--muted-foreground);background:var(--muted)}.dark .app-shell .filter-row :is(input,select){color:var(--foreground);background:var(--background);border-color:var(--input)}.dark .app-shell .filter-row input::placeholder{color:var(--muted-foreground);opacity:1}.dark .history-period-popover{background:var(--popover);color:var(--popover-foreground);border-color:var(--border)}.dark .history-period-presets button{color:var(--foreground)}.dark .history-period-presets button:is(:hover,.active){background:var(--muted);color:var(--accent)}.dark .history-period-range{background:var(--background);border-color:var(--border)}.dark .history-period-range :is(span,svg){color:var(--muted-foreground)}.dark .history-period-range strong{color:var(--foreground)}.dark .history-period-actions{border-color:var(--border)}.dark .app-shell .history-period-trigger small{color:var(--accent)}.dark .app-shell .history-period-trigger{background:var(--card);color:var(--foreground);border-color:var(--input)}.dark .app-shell .history-period-trigger:hover{background:var(--muted)}.dark .app-shell :is(.history-report-card [data-slot=card-header] p:last-child,.history-report-help,.history-empty){color:var(--muted-foreground)}.dark .app-shell :is(.delivery-record-title strong,.delivery-channel-cards strong){color:var(--foreground)}.dark .app-shell :is(.delivery-record-meta span,.delivery-channel-cards span,.delivery-channel-cards small){color:var(--muted-foreground)}.dark .app-shell :is(.delivery-record-icon,.delivery-channel-icon){background:var(--muted);color:var(--accent)}.dark :is(.bottom-note,.action-confirm,.delivery-result,.delivery-options button,.issuance-document,.held-record,.held-review-summary,.held-review-issues,.held-review-confirm,.user-invite-note,.access-change-summary,.settings-locked,.document-profile-summary.incomplete){background:var(--card);border-color:var(--border);color:var(--foreground)}.dark :is(.delivery-options button:hover,.delivery-options button.selected,.held-record.selected,.held-review-confirm.checked,.confirmation-box.checked,.upload-zone:hover,.poa-upload:hover){background:var(--muted);border-color:var(--ring);color:var(--foreground)}.dark :is(.bottom-note p,.bottom-note strong,.bottom-note>svg,.validation-stats strong,.held-row strong,.delivery-options strong,.action-confirm strong,.delivery-result strong,.audit-row strong,.quota-display strong,.pic-contact-heading strong,.generation-progress strong,.admin-row strong,.poa-empty-state strong,.issuance-prerequisites strong,.issuance-document-title strong,.held-record-title strong,.held-review-summary>strong,.held-review-summary b,.held-review-issues>strong,.held-review-confirm strong,.access-change-summary strong,.settings-locked strong){color:var(--foreground)}.dark :is(.workflow-footer,.validation-stats span,.held-row p,.delivery-options small,.delivery-result p,.audit-row span,.quota-display span,.pic-contact-heading span,.profile-signature-upload small,.file-summary span,.generation-progress>div,.admin-guidance p,.profile-form-status,.poa-empty-state p,.issuance-prerequisites span,.issuance-prerequisites small,.issuance-document-main>p,.issuance-document-meta,.delivery-record-meta,.held-record-main>p,.held-record-main>small,.held-review-summary>p,.held-review-summary span,.held-review-issues p,.held-review-note>span,.held-review-confirm p,.user-invite-form label>span,.access-change-summary span,.settings-number-field>span,.settings-locked p){color:var(--muted-foreground)}.dark :is(.score-ring,.flow-step span,.held-row>span,.upload-icon,.file-link,.pending-check,.admin-guidance span,.issuance-check-icon,.held-issue-tags span,.template-placeholder-list code){background:var(--muted);color:var(--foreground);border-color:var(--border)}.dark .flow-step{color:var(--muted-foreground)}.dark :is(.flow-step.current,.flow-step.done,.file-link:hover,.user-invite-note svg,.settings-locked>svg){color:var(--accent)}.dark :is(.flow-step.current span,.flow-step.done span){background:var(--primary);color:var(--primary-foreground)}.dark :is(.issuance-prerequisites .ready,.poa-message.success,.login-success){background:#203e35;border-color:#588d76;color:#bce5cf}.dark :is(.issuance-warning,.issuance-prerequisites .missing,.delivery-record.needs-action,.delivery-channel-cards .disabled){background:#342d20;border-color:#917747;color:#f0d69d}.dark :is(.issuance-warning p,.issuance-prerequisites .missing .issuance-check-icon){color:#f0d69d;background:transparent}.dark :is(.history-report-error,.import-error,.delivery-error,.poa-message.error){background:#402a2c;border-color:#a26e6c;color:#ffbcb4}.dark :is(.profile-form-status.error,.pic-contact-error){color:#ffbcb4}.dark .profile-form-status.success{color:#bce5cf}.dark .success-banner :is(strong,p,svg){color:#bce5cf}.dark :is(.sidebar-close,.profile-row>svg,.step-row svg,.isolation-note svg,.pic-contact-heading>svg,.document-profile-summary>svg,.file-summary>svg,.poa-meta svg,.poa-upload>svg){color:var(--muted-foreground)}.dark :is(.file-link:hover,.fake-button){background:var(--muted);color:var(--foreground)}.dark .check-row.pending span{background:var(--muted);color:var(--muted-foreground)}.dark .login-back{color:var(--accent)}.dark .app-shell :is(.history-card,.listing-card,.workflow-card,.profile-card,.user-access-card,.audit-log-card){background:transparent;border:0}.dark .app-shell .sidebar-nav .navigation-group-toggle{color:var(--muted-foreground)}.dark .app-shell .sidebar-nav .navigation-items button.active{box-shadow:inset 3px 0 var(--primary)}.dark .app-shell .flow-step{background:transparent;color:var(--foreground)}.dark .app-shell .flow-step.current>span{background:var(--primary);color:var(--primary-foreground)}.dark .app-shell .flow-step strong{color:var(--muted-foreground)}.dark .app-shell .flow-step.current strong{color:var(--foreground)}