:root{--surface:#0b1425;--surface-soft:#141e30;--accent-text:#9cb9ff;--focus:#9bb5ff}
:root[data-theme=light]{color-scheme:light;--primary:#285be7;--deep:#204dc8;--ink:#1c2942;--muted:#566780;--line:#d6deeb;--paper:#fff;--canvas:#f4f6fa;--soft:#e9efff;--green:#12694d;--surface:#f9faff;--surface-soft:#edf1f8;--accent-text:#2856bd;--focus:#285be7}
.accounts-view>.back{margin-bottom:16px}.accounts-view>h1{font-size:34px;margin:6px 0 10px}.accounts-view>.intro{margin-bottom:0;max-width:800px}.billing-profile-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:24px 0 20px}.billing-kind{padding:21px 23px;border-radius:17px}.account-category{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:12px}.account-symbol{display:grid;place-items:center;width:29px;height:29px;background:var(--soft);color:var(--accent-text);border-radius:9px;font-size:18px}.account-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:16px 0 10px}.account-title h2{margin:0;font-size:19px;letter-spacing:-.4px}.collection-profile{padding:0;border:0;margin:0}.collection-profile p{line-height:1.7;font-size:12px;color:var(--muted);min-height:58px;margin:0 0 16px}.account-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:13px;border-top:1px solid var(--line)}.account-footer .actions{margin:0;gap:14px}.account-footer .secondary{min-height:35px;padding:7px 13px;font-size:11px}.account-footer .quiet-link{padding:0;font-size:11px}.currency-tag{font-size:10px;color:var(--muted)}.issuer-summary{max-width:none;padding:12px 0;color:var(--muted);font-size:12px;border:0}.issuer-summary summary{cursor:pointer}.issuer-summary p{margin:10px 0}.theme-toggle{min-width:80px}.icon-button{background:var(--surface-soft);color:var(--ink);border:1px solid var(--line);border-radius:50%;width:36px;height:36px;flex:none;font-size:14px}.icon-button:hover{border-color:var(--accent-text)}
dialog{color:var(--ink);background:var(--paper);border:1px solid var(--line);border-radius:22px;padding:0;width:min(720px,calc(100vw - 32px));max-height:calc(100dvh - 40px);box-shadow:0 28px 100px #0005;overflow:hidden}dialog::backdrop{background:#050b18aa;backdrop-filter:blur(5px)}dialog form{display:flex;flex-direction:column;max-height:calc(100dvh - 42px)}.dialog-header{padding:22px 26px 18px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:20px}.dialog-header .eyebrow{margin:0 0 5px;color:var(--muted)}.dialog-header h2{font-size:22px;margin:0;letter-spacing:-.6px}.dialog-body{padding:22px 26px;overflow:auto;overscroll-behavior:contain}.dialog-body .form-grid{gap:17px 20px}.dialog-body .field{margin:0}.dialog-body .field label{font-size:12px;margin-bottom:6px;color:var(--ink)}.dialog-body .field input,.dialog-body .field select{padding:10px 12px;border-radius:9px;min-height:42px;background:var(--surface);color:var(--ink);border-color:var(--line)}.dialog-body .checkbox-label{margin:20px 0 8px;align-items:flex-start;font-size:12px;color:var(--ink)}.checkbox-label input{accent-color:var(--primary);flex:none;margin-top:4px}.dialog-body .help{font-size:11px;color:var(--muted);line-height:1.6;margin:0}.dialog-body .inline-status:empty{display:none}.dialog-footer{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:16px 26px;border-top:1px solid var(--line);background:var(--paper);flex:none}.account-extra{border-top:1px solid var(--line);padding-top:14px;margin-top:18px}.account-extra summary{font-size:12px;color:var(--accent-text);cursor:pointer}.account-extra[open] summary{margin-bottom:18px}.payment-confirm-form{max-width:860px}.payment-confirm-form .form-grid{gap:18px}.payment-confirm-form .field{margin:0}.payment-confirm-form .field p{margin-top:8px}.payment-confirm-form .checkbox-label{margin:24px 0 18px}.payment-history a{margin-left:14px}.field input[type=file]{padding:10px}.field input::file-selector-button{border:1px solid var(--line);background:var(--surface-soft);color:var(--ink);border-radius:7px;padding:8px 10px;margin-right:12px;cursor:pointer}.billing-plan p{color:var(--muted)}
/* Shared light palette: explicit surfaces and readable semantic states. */
[data-theme=light] aside{background:#fff;border-color:var(--line)}[data-theme=light] .brand{color:#1a2843}[data-theme=light] .brand small,[data-theme=light] .workspace small,[data-theme=light] .nav-label,[data-theme=light] .aside-end,[data-theme=light] .breadcrumb,[data-theme=light] .eyebrow,[data-theme=light] .intro,[data-theme=light] .project-meta span,[data-theme=light] .section-title span{color:var(--muted)}[data-theme=light] .workspace{background:#f6f8fc}[data-theme=light] .workspace-icon,[data-theme=light] .avatar{background:#e9efff;color:#2e53a8;border-color:#ccd8f0}[data-theme=light] .aside-end strong,[data-theme=light] .breadcrumb strong{color:var(--ink)}[data-theme=light] nav button{color:#51617c}[data-theme=light] nav button:hover{background:#f0f3fa;color:#1c2942}[data-theme=light] nav button[aria-current=page]{background:#e8efff;color:#214eaf;border-color:#d1defb}[data-theme=light] nav button[aria-current=page] svg{color:#285be7}[data-theme=light] .topbar{border-color:var(--line)}[data-theme=light] .secondary{background:#fff;border-color:#cbd6e8;color:#30415e}[data-theme=light] .secondary:hover{background:#edf2fb;border-color:#8099c4}[data-theme=light] a,[data-theme=light] .quiet-link{color:#2856bd}[data-theme=light] .primary{color:white}[data-theme=light] .primary:hover{background:#234fc6}[data-theme=light] .badge{background:#eef2f7;color:#52617b;border-color:#d6dfeb}[data-theme=light] .badge.active{background:#e8f0ff;color:#2855ae;border-color:#cbdcfa}[data-theme=light] .badge.done{background:#e6f5ee;color:#176547;border-color:#c0e3d3}[data-theme=light] .next{background:linear-gradient(115deg,#e7eeff,#f0f5ff);color:var(--ink);border-color:#ccdafa}[data-theme=light] .next h2{color:#20365e}[data-theme=light] .next .eyebrow{color:#2e59b2}[data-theme=light] .next p{color:#50688f}[data-theme=light] .stages{background:var(--paper)}[data-theme=light] .stage.active,[data-theme=light] .long-stages .stage.active{background:#edf3ff;border-color:#c8d9f5}[data-theme=light] .stage .number{background:#f1f4f9;border-color:#c5d0e2;color:#526785}[data-theme=light] .stage.active .number{background:var(--primary);color:white;border-color:var(--primary)}[data-theme=light] .stage.done .number{background:#e5f4ec;border-color:#b3d9c6;color:#1c6849}[data-theme=light] .stage p,[data-theme=light] .stage-state,[data-theme=light] .task p,[data-theme=light] .task .who,[data-theme=light] .doc p,[data-theme=light] .empty,[data-theme=light] .footnote{color:var(--muted)}[data-theme=light] .stage.active .stage-state{color:#2856b3}[data-theme=light] .task,[data-theme=light] .doc,[data-theme=light] .doc-foot{border-color:var(--line)}[data-theme=light] .task .who::first-line{color:#364967}[data-theme=light] .doc-icon{background:#eaf0ff;border-color:#d0dcf5;color:#315db7}[data-theme=light] .field label{color:#344762}[data-theme=light] .field input,[data-theme=light] .field select,[data-theme=light] .field textarea,[data-theme=light] .context-form textarea{color:var(--ink);background:var(--surface);border-color:#c8d4e6}[data-theme=light] .field input::placeholder,[data-theme=light] .field textarea::placeholder,[data-theme=light] .context-form textarea::placeholder{color:#687b99}[data-theme=light] .field p,[data-theme=light] .help,[data-theme=light] .small{color:var(--muted)}[data-theme=light] .checkbox-label{color:#344762}[data-theme=light] .inline-status,[data-theme=light] .status{color:#186449}[data-theme=light] .error,[data-theme=light] .inline-status.error{color:#ac2525}[data-theme=light] .project-tile:hover{background:#eaf0fc;border-color:#9bb3d8}[data-theme=light] .context-entry,[data-theme=light] .billing-plan{background:#eaf0fc;border-color:#cbdaf2}[data-theme=light] .context-entry h2,[data-theme=light] .context-entry p,[data-theme=light] .conversation-example{color:#294366}[data-theme=light] .context-entry-action small{color:#526886}[data-theme=light] .preparation-card{background:#fff;border-color:var(--line)}[data-theme=light] .preparation-card:hover{background:#edf2fc}[data-theme=light] .preparation-card small,[data-theme=light] .context-footnote,[data-theme=light] .source-attachment label,[data-theme=light] .source-attachment input,[data-theme=light] .preparation-state{color:var(--muted)}[data-theme=light] .source-context,[data-theme=light] .advanced-section summary,[data-theme=light] .context-form>label{color:var(--ink)}[data-theme=light] .advanced-section{border-color:var(--line)}[data-theme=light] .source-attachment input::file-selector-button{background:#edf2fa;border-color:#c8d4e6;color:#304664}[data-theme=light] .invoice-card{background:#fff;border-color:var(--line)}[data-theme=light] .invoice-head h2,[data-theme=light] .invoice-head .eyebrow,[data-theme=light] .invoice-amounts strong,[data-theme=light] .amount{color:var(--ink)}[data-theme=light] .invoice-amounts p,[data-theme=light] .invoice-head p,[data-theme=light] .payment-history{color:var(--muted)}[data-theme=light] .invoice-amounts{border-color:var(--line)}[data-theme=light] .instructions{background:#f4f7fc;color:#405473;border-color:var(--line)}[data-theme=light] .payment-history,[data-theme=light] .member,[data-theme=light] .audit-row{border-color:var(--line)}[data-theme=light] .member p,[data-theme=light] .audit-row{color:var(--muted)}[data-theme=light] .notice,[data-theme=light] .invite-result{background:#eaf1ff;color:#334f7b;border-color:#c5d7f6}[data-theme=light] .notice strong{color:#263e66}[data-theme=light] .editor-row{background:#f6f8fc;border-color:var(--line)}[data-theme=light] #toast{background:#203556;color:white;border-color:#3a5279}
@media(min-width:701px){.accounts-view .billing-profile-grid{margin-top:20px}.main-wrap:has(.accounts-view) main{padding-top:25px;padding-bottom:20px}}
@media(max-width:1000px){.account-title{align-items:flex-start;flex-direction:column;gap:7px}.account-footer{align-items:flex-start;flex-direction:column}.account-footer .actions{width:100%;justify-content:space-between}}
@media(max-width:700px){.billing-profile-grid{grid-template-columns:1fr}.accounts-view>h1{font-size:28px}.account-title{flex-direction:row;align-items:center}.account-footer{flex-direction:row;align-items:center}.account-footer .actions{width:auto}.top-actions{flex-wrap:wrap}.theme-toggle{min-width:72px}.dialog-header{padding:18px 20px}.dialog-body{padding:18px 20px}.dialog-footer{padding:14px 20px}.dialog-body .form-grid{grid-template-columns:1fr}.dialog-body .field input,.dialog-body .field select{font-size:16px}.payment-confirm-form .form-grid{grid-template-columns:1fr}.accounts-view>.back{margin-bottom:12px}}

.project-progress{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;border:1px solid var(--line);border-radius:16px;background:var(--paper);margin:24px 0;overflow:hidden}.project-progress>div{padding:22px 24px}.project-progress>div+div{border-left:1px solid var(--line)}.project-progress h3{font-size:17px;margin:9px 0}.project-progress p{font-size:12px;line-height:1.65;color:var(--muted);margin:0}.meeting-panel{display:flex;align-items:center;justify-content:space-between;gap:24px}.meeting-panel .primary{flex:none}@media(max-width:700px){.project-progress{grid-template-columns:1fr}.project-progress>div+div{border-left:0;border-top:1px solid var(--line)}.meeting-panel{align-items:flex-start;flex-direction:column}}

.project-booking{margin:28px 0 0;border:1px solid var(--line);border-radius:18px;background:var(--paper);overflow:hidden}.booking-heading{display:flex;justify-content:space-between;gap:32px;align-items:center;padding:24px 28px;border-bottom:1px solid var(--line)}.booking-heading h2{margin:8px 0;font-size:24px}.booking-heading p{margin:0;color:var(--muted);font-size:13px}.booking-heading>.help{max-width:255px;font-size:12px;line-height:1.6}.project-booking iframe{width:100%;border:0;display:block}.project-booking #booking-status:not([hidden]){padding:20px 28px;color:var(--muted);font-size:13px}.project-booking #booking-retry:not([hidden]){margin:0 28px 20px}@media(max-width:700px){.booking-heading{padding:20px;display:block}.booking-heading>.help{margin-top:12px;max-width:none}.project-booking{border-radius:14px}}
.project-account{margin:22px 0}.account-heading{display:flex;justify-content:space-between;gap:20px;align-items:center}.account-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px;margin:20px 0}.account-metric span{display:block;font-size:12px;color:var(--muted,#79869b);margin-bottom:8px}.account-metric strong{font-size:clamp(20px,2vw,28px);letter-spacing:-.7px;overflow-wrap:anywhere}.account-breakdown{display:flex;flex-wrap:wrap;gap:12px 32px;border-top:1px solid var(--line,#dbe2ee);padding-top:18px;font-size:13px}.account-currency+.account-currency{margin-top:24px}.agreement-form{border-top:1px solid var(--line,#dbe2ee);margin-top:20px;padding-top:20px}.signature-panel{margin-top:20px}.signature-actions{display:flex;gap:12px;margin-top:10px}.signature-actions select{flex:1;min-width:0}.signature-panel form{max-width:680px}.signature-panel h2{margin:8px 0 16px}.signature-panel .checkbox-label{margin:16px 0}.notification-row{display:flex;gap:16px;align-items:center;padding:18px 0;border-bottom:1px solid var(--line,#dbe2ee)}.notification-row>div{flex:1;min-width:0;overflow-wrap:anywhere}.notification-row p{font-size:12px;margin:6px 0 0}.signature-panel input[autocomplete=one-time-code]{letter-spacing:8px;font-size:22px;max-width:260px}.project-booking>.actions{margin-bottom:18px;flex-wrap:wrap}
@media(max-width:720px){.account-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.account-heading,.signature-actions{align-items:stretch;flex-direction:column}.notification-row{flex-wrap:wrap}.notification-row>div{flex-basis:100%}.top-actions #system-status{font-size:11px;padding:8px}.signature-actions select{width:100%}}
/* Email access: one compact card, consistent with the light ZaTek workspace. */
.access-page{max-width:520px;margin:5vh auto;padding:24px;box-sizing:border-box}
.access-brand{display:flex;align-items:center;gap:10px}.access-brand>strong{font-size:25px;letter-spacing:-.7px}
.access-languages{margin-left:auto;display:flex;border:1px solid var(--line);border-radius:24px;padding:3px;gap:2px}
.access-languages button{border:0;background:transparent;color:var(--muted);font:inherit;font-size:12px;font-weight:650;padding:8px 12px;border-radius:20px;cursor:pointer}
.access-languages button[aria-pressed=true]{color:#fff;background:var(--accent,#3465ff)}
.access-page h1{font-size:34px;line-height:1.16;margin:32px 0 12px;letter-spacing:-1px}
.access-page .access-intro{margin:0;line-height:1.5}.access-page .login-card{padding:26px;margin-top:26px}
.access-page .login-card h2{margin:0 0 16px}.access-page .field{gap:7px}.access-page .field input{width:100%;box-sizing:border-box}
.access-page .help{margin:0;font-size:12px;line-height:1.5}.access-page .primary{width:100%;margin-top:14px;min-height:46px}
.access-page .quiet-link{display:block;margin:16px auto 0;min-height:32px;font-size:13px}
.access-page .access-help{font-size:12px;line-height:1.55;margin:16px 0 0}.access-page .inline-status:empty{display:none}
.access-page .inline-status{margin:16px 0 0;line-height:1.5;font-size:13px}.access-page .access-email{padding:12px 14px;background:var(--bg);border:1px solid var(--line);border-radius:10px;overflow-wrap:anywhere}
.access-email span{display:block;font-size:11px}.access-email strong{color:var(--ink);font-weight:550;font-size:14px}
@media(max-width:600px){.access-page{margin:0 auto;padding:22px 20px}.access-page h1{font-size:30px;margin-top:28px}.access-page .login-card{padding:22px;margin-top:22px}}

.access-page #access-hint{margin-top:10px}

.team-layout .topbar{position:static;height:auto;min-height:80px;gap:20px;flex-wrap:wrap}.team-layout .brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:inherit}.team-layout .brand img{width:36px}.team-view{max-width:1120px;margin:0 auto;padding:36px 24px}.team-view .panel{margin:20px 0}.team-view fieldset{border:1px solid #d7e0ef;border-radius:12px;margin:24px 0;padding:20px}.team-choice{display:flex;align-items:center;gap:12px;margin:12px 0}.team-view input[type=checkbox]{width:18px;height:18px;flex-shrink:0}.team-view .task select{width:160px;flex-shrink:0}.team-view .project-tile{text-align:left}.team-layout .top-actions{flex-wrap:wrap}.team-view .doc{flex-wrap:wrap}.team-view [role=status]{overflow-wrap:anywhere}.team-view h1{overflow-wrap:anywhere}@media(max-width:600px){.team-layout .topbar{padding:16px}.team-layout .top-actions{gap:8px}.team-view{padding:24px 16px}.team-view .page-heading{align-items:flex-start;gap:16px;flex-direction:column}.team-view .task{flex-wrap:wrap}.team-view .task select{width:100%}}
.team-view .task select{padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--paper);color:var(--ink)}
