* { box-sizing:border-box; } body { margin:0; color:var(--ink); background:var(--canvas); font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; line-height:1.5; } a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible { outline:3px solid #0b7fbd; outline-offset:3px; }
[hidden] { display:none!important; }
.skip-link { position:fixed; top:8px; left:8px; z-index:100; padding:10px 14px; border-radius:8px; color:#fff; background:var(--brand); transform:translateY(-150%); }.skip-link:focus { transform:translateY(0); }
.topbar { min-height:72px; padding:0 5vw; display:flex; align-items:center; justify-content:space-between; background:var(--surface); border-bottom:1px solid var(--line); }.brand { display:flex; gap:11px; align-items:center; color:var(--ink); text-decoration:none; }.brand-logo { display:block; width:auto; height:32px; object-fit:contain; }.brand-mark-logo { display:none; width:40px; height:40px; border-radius:10px; object-fit:contain; }.brand small { color:var(--muted); font-size:.76rem; font-weight:650; border-left:1px solid var(--line); padding-left:11px; letter-spacing:.02em; }.topbar-actions,.user-menu { display:flex; gap:14px; align-items:center; }.user-menu { color:var(--muted); font-size:.86rem; }.user-menu form { margin:0; }.theme-toggle { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-width:44px; min-height:44px; padding:0 11px; border:1px solid var(--line); border-radius:10px; color:var(--ink); background:var(--surface); cursor:pointer; font:inherit; font-size:14px; font-weight:650; }.theme-toggle:hover { background:var(--brand-soft); }.theme-toggle:focus-visible { outline:3px solid #0b7fbd; outline-offset:2px; }.theme-toggle-icon { font-size:18px; line-height:1; }.text-button { min-height:44px; border:0; background:transparent; color:var(--brand); cursor:pointer; font:inherit; font-weight:700; }
.dashboard { max-width:1200px; margin:0 auto; padding:48px 5vw 70px; }.dashboard-heading { display:flex; gap:24px; align-items:flex-start; justify-content:space-between; margin-bottom:30px; }.eyebrow { margin:0 0 8px; color:var(--brand); font-size:.72rem; letter-spacing:.11em; font-weight:800; }.dashboard h1,.login-card h1 { margin:0; letter-spacing:-.045em; font-size:clamp(2rem,4vw,3.1rem); line-height:1.05; }.muted { color:var(--muted); max-width:650px; }.status-chip,.count-chip,.state-pill { display:inline-flex; align-items:center; gap:8px; border-radius:999px; padding:8px 12px; font-size:.8rem; font-weight:700; white-space:nowrap; }.status-chip { border:1px solid var(--brand-line); background:var(--brand-soft); color:var(--brand); }.status-chip span { width:7px; height:7px; border-radius:50%; background:var(--brand); }.count-chip { min-width:34px; justify-content:center; color:var(--brand); background:var(--brand-soft); }
.metric-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }.metric-card,.queue-panel,.detail-panel,.empty-queue,.login-card { border:1px solid var(--line); background:var(--surface); box-shadow:var(--shadow); }.metric-card { min-height:148px; padding:22px; border-radius:16px; }.metric-card p,.metric-card small { margin:0; color:var(--muted); }.metric-card strong { display:block; margin:10px 0; color:var(--brand); font-size:2rem; line-height:1; }.workspace-layout { display:grid; grid-template-columns:minmax(0,1.45fr) minmax(270px,.9fr); gap:20px; margin-top:24px; align-items:stretch; }.queue-panel,.detail-panel { border-radius:18px; overflow:hidden; }.panel-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:15px; padding:24px 24px 17px; border-bottom:1px solid var(--line); }.panel-heading h2,.detail-panel h2,.empty-queue h2 { margin:0; font-size:1.2rem; letter-spacing:-.025em; }.queue-nav { display:flex; gap:8px; padding:12px 24px; border-bottom:1px solid var(--line); }.queue-nav a { display:inline-flex; align-items:center; min-height:44px; padding:0 12px; border-radius:9px; color:var(--brand); font-size:.88rem; font-weight:750; text-decoration:none; }.queue-nav a[aria-current="page"] { color:var(--ink); background:var(--brand-soft); }.queue-nav a:hover { background:var(--brand-soft); }.queue-list { list-style:none; padding:0; margin:0; }.queue-item { min-height:73px; display:flex; justify-content:space-between; align-items:center; gap:16px; padding:14px 24px; border-bottom:1px solid var(--line); }.queue-item:last-child { border-bottom:0; }.queue-item strong { display:block; font-size:.95rem; }.queue-item p { margin:2px 0 0; color:var(--muted); font-size:.86rem; }.state-pill { padding:6px 9px; color:var(--brand); background:var(--brand-soft); }.state-returned,.state-rejected { color:var(--red); background:var(--red-soft); }.state-draft { color:var(--dk-wait-ink, #76500b); background:var(--dk-wait-soft, #fff4cf); }.state-gm_review,.state-ceo_review { color:var(--amber); background:var(--amber-soft); }.detail-panel { padding:26px; background:linear-gradient(155deg,var(--dk-surface, #fff) 20%,var(--brand-soft)); }.detail-panel p:not(.eyebrow) { color:var(--muted); margin:10px 0 0; }.redacted-note { margin-top:22px!important; padding:12px; border-radius:10px; background:var(--dk-surface, #fff); color:var(--ink)!important; font-size:.9rem; }.empty-queue { display:flex; gap:20px; margin-top:24px; padding:31px; border-radius:18px; }.compact-empty { margin:0; border:0; box-shadow:none; border-radius:0; }.empty-icon { flex:0 0 auto; display:grid; place-items:center; width:42px; height:42px; border-radius:50%; background:var(--brand-soft); color:var(--brand); font-weight:900; }.empty-queue p:last-child { max-width:690px; margin:8px 0 0; color:var(--muted); }
.login-wrap { min-height:calc(100vh - 72px); display:grid; place-items:center; padding:36px 20px; background:var(--canvas); }.login-card { width:min(100%,440px); padding:38px; border-radius:20px; }.login-card h1 { font-size:2.35rem; }.login-form { display:grid; gap:9px; margin-top:27px; }.login-form label { margin-top:8px; color:var(--ink); font-size:14px; font-weight:750; }.login-form input,.login-form select,.login-form textarea { width:100%; min-height:44px; padding:12px 13px; border:1px solid var(--border-input); border-radius:9px; background:var(--dk-surface, #fff); color:var(--ink); font:inherit; }.login-form textarea { min-height:96px; resize:vertical; }.login-form input:focus,.login-form select:focus,.login-form textarea:focus { outline:3px solid #0b7fbd; outline-offset:3px; border-color:var(--brand); }.button { display:inline-flex; align-items:center; justify-content:center; min-height:44px; margin-top:14px; padding:13px 16px; border:0; border-radius:9px; cursor:pointer; color:var(--ink); background:var(--dk-surface-2, #e5ece7); font:inherit; font-weight:800; text-decoration:none; }.button-primary { color:#fff; background:var(--brand); }.button-primary:hover { background:#1b0059; }.action-link { width:max-content; }.alert { padding:10px 12px; border-radius:8px; color:var(--dk-wait-ink, #8d3905); background:var(--dk-wait-soft, #fff0df); font-size:.9rem; }.alert h2 { margin:0; font-size:1rem; }.alert ul { margin-bottom:0; }.errorlist { margin:5px 0 0; padding-left:20px; color:var(--red); font-size:.88rem; }.message-stack { position:relative; z-index:2; max-width:1200px; margin:16px auto -20px; padding:0 5vw; }.message { margin:0 0 8px; padding:12px 15px; border:1px solid var(--success-line); border-radius:var(--radius); color:var(--success); background:var(--success-soft); font-weight:650; }.message-error { border-color:var(--dk-risk-line, #f1c2b9); color:var(--red); background:var(--red-soft); }
.login-form fieldset { min-width:0; margin:18px 0 0; padding:18px; border:1px solid var(--line); border-radius:14px; background:var(--surface); }.login-form legend { padding:0 8px; font-weight:800; }.sales-line { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px 16px; margin-bottom:14px; padding:16px; border:1px solid var(--line); border-radius:12px; background:var(--dk-surface-2, #f9fbf9); }.sales-line .remove-line { grid-column:1/-1; justify-self:start; }.sales-line input[type="checkbox"] { width:auto; min-height:auto; }.data-table-wrap { width:100%; overflow-x:auto; }.data-table { width:100%; border-collapse:collapse; font-size:.88rem; }.data-table th,.data-table td { padding:10px 12px; border-bottom:1px solid var(--line); text-align:left; white-space:nowrap; }.data-table th { color:var(--muted); background:var(--dk-surface-2, #f7faf8); font-size:.76rem; letter-spacing:.03em; text-transform:uppercase; }
.sales-line-title { grid-column:1/-1; margin:0 0 4px; font-size:1rem; }.sales-line .remove-line { min-width:44px; padding:0 4px; color:var(--red); }
.action-row { display:flex; flex-wrap:wrap; gap:9px; }.master-nav { width:max-content; max-width:100%; margin:20px 0; padding:6px; border:1px solid var(--line); border-radius:12px; background:var(--surface); }.master-form { max-width:620px; margin:24px 0; padding:22px; border:1px solid var(--line); border-radius:16px; background:var(--surface); box-shadow:var(--shadow); }.master-form p { display:grid; gap:6px; margin:0; }.master-form input[type="checkbox"] { width:auto; min-height:auto; }.master-table { margin-top:24px; border:1px solid var(--line); border-radius:14px; background:var(--surface); box-shadow:var(--shadow); }
.dashboard-data-master { margin-top:10px; }.dashboard-data-master summary { display:inline-flex; min-height:44px; align-items:center; cursor:pointer; color:var(--brand); font-size:.88rem; font-weight:750; }.dashboard-data-master summary::after { content:"⌄" / ""; margin-left:7px; }.dashboard-data-master[open] summary::after { transform:rotate(180deg); }.dashboard-data-master .action-row { margin-top:2px; }.dashboard-data-master .button { margin-top:0; }.accounting-import-form fieldset { display:grid; gap:9px; }.accounting-import-form fieldset + fieldset { margin-top:18px; }.secondary-panel .comparison-summary { display:grid; grid-template-columns:minmax(0,1fr) auto 1rem; gap:12px; }.comparison-title { min-width:0; }.comparison-total { font-variant-numeric:tabular-nums; white-space:nowrap; }
.button-danger { color:#fff; background:var(--red); }.button-danger:hover { background:#812817; }.queue-item small { display:block; margin-top:5px; color:var(--muted); }.risk-label { display:inline-flex; margin:7px 6px 0 0; padding:3px 7px; border-radius:999px; font-size:.72rem; font-weight:800; }.risk-label-negative { color:var(--red); background:var(--red-soft); }.risk-label-policy { color:var(--amber); background:var(--amber-soft); }.data-table tr.risk-negative td { color:var(--dk-risk-ink, #792517); background:var(--red-soft); font-weight:700; }.data-table tr.risk-policy td { color:var(--dk-wait-ink, #714405); background:var(--amber-soft); }.preview-summary { margin-bottom:18px; }.queue-panel > h2,.queue-panel > p { margin-left:24px; margin-right:24px; }.queue-panel > h2 { margin-top:24px; }
.scenario-summary-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin-top:24px; }.scenario-summary-card { min-width:0; padding:20px; border:1px solid var(--line); border-radius:16px; background:var(--surface); box-shadow:var(--shadow); }.scenario-summary-card h2 { min-height:2.8em; margin:0; font-size:1rem; }.scenario-summary-card strong,.scenario-summary-card small { display:block; }.scenario-summary-card strong { margin-top:14px; color:var(--ink); font-size:1.35rem; }.scenario-summary-card small { margin-top:5px; color:var(--muted); }.scenario-summary-official { border-color:var(--brand-line); background:var(--brand-soft); }
.review-note { margin:20px 0 0; padding:18px 20px; border-left:4px solid var(--brand); border-radius:0 12px 12px 0; background:var(--brand-soft); }.review-note h2,.review-note p { margin:0 0 6px; }.review-note small { color:var(--muted); }
.control-section,.control-card { border:1px solid var(--line); border-radius:16px; background:var(--surface); box-shadow:var(--shadow); }.control-section { margin-top:24px; overflow:hidden; }.status-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin-top:24px; }.control-card { padding:22px; }.control-card h2,.control-card p { margin:0 0 9px; }.readiness { display:inline-flex; padding:4px 8px; border-radius:999px; font-size:.75rem; font-weight:800; }.readiness-ready { color:var(--brand); background:var(--brand-soft); }.readiness-follow-up { color:var(--amber); background:var(--amber-soft); }.readiness-missing,.readiness-expired,.readiness-blocked { color:var(--red); background:var(--red-soft); }.audit-filter { display:grid; grid-template-columns:repeat(5,minmax(130px,1fr)) auto; gap:12px; align-items:end; padding:18px 24px; border-bottom:1px solid var(--line); }.audit-filter label { display:grid; gap:5px; color:var(--muted); font-size:.78rem; font-weight:750; }.audit-filter input,.audit-filter select { width:100%; min-height:44px; padding:9px; border:1px solid var(--border-input); border-radius:9px; background:var(--dk-surface, #fff); font:inherit; }.audit-filter .button { margin:0; }
@media (max-width:900px) { .audit-filter { grid-template-columns:repeat(2,minmax(0,1fr)); }.audit-filter .button { width:100%; } }
@media (max-width:760px) { .topbar { padding:0 20px; }.brand-logo { display:none; }.brand-mark-logo { display:block; }.brand small { padding-left:0; border-left:0; color:var(--ink); }.user-menu span { display:none; }.dashboard { padding:34px 20px 50px; }.dashboard-heading { display:block; }.status-chip { margin-top:17px; }.metric-grid,.workspace-layout,.scenario-summary-grid,.status-grid,.audit-filter { grid-template-columns:1fr; }.metric-card { min-height:112px; }.workspace-layout { gap:16px; }.queue-item,.panel-heading { padding-left:18px; padding-right:18px; }.detail-panel { padding:23px; }.empty-queue { padding:23px; }.login-card { padding:30px 24px; }.sales-line { grid-template-columns:1fr; padding:14px; }.sales-line .remove-line { grid-column:1; }.message-stack { padding:0 20px; }.dashboard > .action-row { display:grid; grid-template-columns:1fr; }.dashboard > .action-row .action-link,.master-form .button { width:100%; }.data-table th,.data-table td { padding:11px 10px; } }

/* Shared, deliberately compact application patterns. */
.topbar-nav { display:flex; gap:4px; align-items:center; }.topbar-nav a { display:inline-flex; align-items:center; min-height:44px; padding:0 10px; border-radius:8px; color:var(--brand); font-weight:750; text-decoration:none; }.topbar-nav a:hover,.topbar-nav a[aria-current="page"] { background:var(--brand-soft); }
.data-table-wrap[data-scroll-hint]::after { content:"Geser tabel untuk melihat kolom lain"; display:none; padding:8px 12px; color:var(--muted); font-size:.78rem; background:var(--dk-surface-2, #f7faf8); }.action-group { display:flex; flex-wrap:wrap; gap:9px; align-items:center; }.page-nav { display:flex; gap:8px; margin:0 0 18px; }.page-nav a { display:inline-flex; align-items:center; min-height:44px; color:var(--brand); font-size:.88rem; font-weight:750; text-decoration:none; }.page-nav a::before { content:"←" / ""; margin-right:7px; }
.secondary-panel { margin-top:18px; border:1px solid var(--line); border-radius:14px; background:var(--surface); overflow:hidden; }.secondary-panel summary { display:flex; align-items:center; justify-content:space-between; min-height:56px; padding:14px 18px; cursor:pointer; color:var(--ink); font-weight:800; }.secondary-panel summary::after { content:"⌄" / ""; color:var(--brand); }.secondary-panel[open] summary { border-bottom:1px solid var(--line); }.secondary-panel[open] summary::after { transform:rotate(180deg); }.secondary-panel > :not(summary) { margin-left:18px; margin-right:18px; }
.secondary-panel > .control-section { margin:0; border:0; border-radius:0; box-shadow:none; }
.compact-panel { margin-top:18px; padding:18px; border:1px solid var(--line); border-radius:14px; background:var(--surface); }.compact-panel > :first-child { margin-top:0; }.compact-panel > :last-child { margin-bottom:0; }.step-indicator { display:flex; flex-wrap:wrap; gap:8px; margin:18px 0; padding:0; list-style:none; counter-reset:step; }.step-indicator li { display:inline-flex; align-items:center; gap:7px; color:var(--muted); font-size:.84rem; font-weight:700; }.step-indicator li::before { content:counter(step); counter-increment:step; display:grid; place-items:center; width:24px; height:24px; border-radius:50%; color:var(--brand); background:var(--brand-soft); }.step-indicator .is-current { color:var(--ink); }.step-indicator .is-current::before { color:#fff; background:var(--brand); }.step-indicator .is-complete::before { content:"✓"; }
.formset-delete,.visually-hidden { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }.formset-delete:focus-visible { position:static!important; width:auto!important; height:auto!important; margin:0!important; clip:auto!important; }.decision-area { margin-top:20px; padding:16px; border:1px solid var(--brand-line); border-radius:14px; background:var(--surface); box-shadow:var(--shadow); }.decision-area .button { margin-top:0; }.continue-review { display:flex; width:max-content; margin-top:14px; }
@media (max-width:760px) { .topbar-nav a { padding:0 7px; font-size:.82rem; }.data-table-wrap[data-scroll-hint]::after { display:block; }.dashboard > .metric-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }.dashboard > .metric-grid .metric-card:first-child { grid-column:1/-1; }.dashboard > .metric-grid .metric-card strong { font-size:1.65rem; }.decision-area { margin:18px 0 0; }.decision-area .action-row { display:grid; grid-template-columns:1fr; }.decision-area .button { width:100%; }.secondary-panel summary { min-height:52px; }.comparison-summary { align-items:start; grid-template-columns:minmax(0,1fr) auto 1rem; gap:8px; }.comparison-title { overflow-wrap:anywhere; }.comparison-total { padding-top:1px; font-size:14px; } }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; transition-duration:.01ms!important; animation-duration:.01ms!important; animation-iteration-count:1!important; } }

/* Authentication: one clear task per screen, comfortable on phone and laptop. */
.auth-card { width:min(100%,480px); }.auth-card-wide { width:min(100%,560px); }.auth-steps { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin:0 0 26px; padding:0; list-style:none; counter-reset:authstep; }.auth-steps-two { grid-template-columns:repeat(2,1fr); }.auth-steps-four { grid-template-columns:repeat(4,1fr); }.auth-steps li { display:grid; gap:6px; color:var(--muted); font-size:.72rem; font-weight:750; text-align:center; }.auth-steps li::before { content:counter(authstep); counter-increment:authstep; display:grid; place-items:center; width:28px; height:28px; margin:auto; border-radius:50%; color:var(--brand); background:var(--brand-soft); }.auth-steps .is-current { color:var(--ink); }.auth-steps .is-current::before { color:#fff; background:var(--brand); }.auth-steps .is-complete::before { content:"✓"; }.form-help { margin:10px 0 0; color:var(--muted); font-size:.82rem; }.quiet-link { display:inline-flex; min-height:44px; align-items:center; margin-top:12px; color:var(--brand); font-weight:700; }.otp-input { text-align:center; font-size:1.35rem!important; font-weight:800!important; letter-spacing:.18em; font-variant-numeric:tabular-nums; }.qr-panel { display:grid; place-items:center; width:min(100%,280px); min-height:240px; margin:24px auto 12px; padding:14px; border:1px solid var(--line); border-radius:16px; background:var(--dk-surface, #fff); }.qr-panel svg { display:block; width:100%; height:auto; }.manual-key { margin:12px 0; color:var(--muted); font-size:.86rem; }.manual-key summary { min-height:44px; display:flex; align-items:center; cursor:pointer; color:var(--brand); font-weight:750; }.recovery-panel { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px 18px; margin:24px 0 8px; padding:20px; border:1px dashed var(--border-input); border-radius:14px; background:var(--dk-surface-2, #f8fbf9); }.recovery-code { padding:5px; color:var(--ink); background:transparent; font-size:.95rem; font-weight:750; text-align:center; }.auth-actions .button { flex:1 1 180px; }.security-table-wrap { margin-top:28px; }.security-table-wrap form,.security-table-wrap .button { margin:0; }.security-table-wrap td small { display:block; color:var(--muted); }.danger-confirm { border-color:var(--dk-risk-line, #e3b1a8); }.danger-confirm h2 { margin:0; }.session-table td:first-child { white-space:normal; overflow-wrap:anywhere; }
@media (max-width:560px) { .auth-steps { gap:4px; }.auth-steps li { font-size:.66rem; }.recovery-panel { grid-template-columns:1fr; }.auth-actions { display:grid; grid-template-columns:1fr; }.auth-actions .button,.auth-card .button-primary { width:100%; }.qr-panel { min-height:210px; } }

/* Monokem v2 direction, adapted to the real Django workflow. */
:root {
  /* --brand is the Monokem purple; --green/--green-soft remain as aliases for one release. */
  --brand:#2e0191;
  --brand-soft:#efebfa;
  --brand-line:#d5cbf0;
  --success:#1d6b3f;
  --success-soft:#e7f4ec;
  --success-line:#b9dcc6;
  --border-input:#c8cdd5;
  --radius-sm:4px;
  --ink:#14161a;
  --muted:#555d68;
  --line:#dcdfe5;
  --surface:#fff;
  --canvas:#f4f5f7;
  --green:var(--brand);
  --green-soft:var(--brand-soft);
  --amber:#6b4200;
  --amber-soft:#fdf3e0;
  --red:#701414;
  --red-soft:#fbf0f0;
  --shadow:0 1px 2px rgba(20,22,26,.05);
  --radius:7px;
}
body { font-size:15px; }
small,.form-help,.queue-item small,.redacted-note,.errorlist,.manual-key,.auth-steps li,.step-indicator li,.audit-filter label,.data-table-wrap[data-scroll-hint]::after { font-size:14px; }
.topbar { min-height:68px; padding:0 max(24px,5vw); border-color:var(--dk-line, #e2e4e9); box-shadow:0 1px 0 var(--dk-shadow-tint, rgba(20,22,26,.02)); }
.brand-logo { height:30px; }
.brand small { color:var(--dk-muted, #555d68); font-size:14px; font-weight:600; letter-spacing:0; }
.user-email { overflow:hidden; max-width:260px; text-overflow:ellipsis; white-space:nowrap; }
.dashboard { max-width:1280px; padding-top:40px; }
.dashboard-heading { margin-bottom:24px; }
.dashboard h1,.login-card h1 { font-size:clamp(1.75rem,3vw,2.25rem); letter-spacing:-.025em; line-height:1.15; }
.eyebrow { margin-bottom:6px; color:var(--brand); font-size:14px; letter-spacing:.055em; }
.muted { color:var(--muted); }
.status-chip,.count-chip,.state-pill { border-radius:4px; font-size:14px; }
.status-chip { border-color:var(--dk-brand-line, #d5cbf0); }
.metric-grid { gap:12px; }
.metric-card { min-height:132px; padding:18px; border-radius:var(--radius); }
.metric-card strong { color:var(--ink); font-size:1.8rem; font-variant-numeric:tabular-nums; }
.metric-card p,.metric-card small { color:var(--muted); font-size:14px; }
.workspace-layout { grid-template-columns:minmax(0,1.7fr) minmax(260px,.7fr); gap:16px; margin-top:18px; align-items:start; }
.queue-panel,.detail-panel,.empty-queue,.control-section,.control-card,.secondary-panel,.compact-panel,.decision-area,.scenario-summary-card,.master-form,.master-table { border-radius:var(--radius); box-shadow:var(--shadow); }
.panel-heading { padding:16px; }
.panel-heading h2,.detail-panel h2,.empty-queue h2 { font-size:16px; }
.queue-nav { padding:8px 16px; }
.queue-nav a { color:var(--brand); font-size:14px; }
.queue-nav a[aria-current="page"] { color:var(--brand); }
.queue-item { min-height:76px; padding:14px 16px; }
.queue-item strong { font-size:15px; }
.queue-item p,.queue-item small { color:var(--muted); font-size:14px; }
.queue-item a { color:var(--ink); text-underline-offset:3px; }
.queue-item-actions { display:flex; flex:0 0 auto; align-items:center; justify-content:flex-end; gap:8px; }
.queue-action { min-height:44px; margin:0; padding:9px 11px; font-size:14px; text-decoration:none; }
.queue-action.button-primary { color:#fff; }
.state-pill::before { margin-right:2px; font-weight:900; }
.state-draft::before { content:"•" / ""; }
.state-gm_review::before { content:"◷" / ""; }
.state-ceo_review::before { content:"↑" / ""; }
.state-returned::before { content:"↺" / ""; }
.state-rejected::before { content:"✕" / ""; }
.state-approved::before,.state-released::before,.state-completed::before { content:"✓" / ""; }
.detail-panel { padding:22px; background:var(--surface); }
.redacted-note { border:1px solid var(--line); }
.button { border-radius:4px; background:var(--dk-surface-2, #f1f2f4); }
.button-primary { background:var(--brand); }
.button-primary:hover { background:#1b0059; }
.button-disabled,.button-disabled:hover { cursor:not-allowed; color:var(--dk-muted, #3f4650); background:var(--dk-surface-2, #e4e7eb); }
.button-secondary { border:1px solid var(--dk-line, #c8cdd5); color:var(--ink); background:var(--dk-surface, #fff); }
.button-secondary:hover { border-color:var(--dk-line-strong, #9fa6b0); background:var(--dk-surface-2, #f8f9fa); }
.button-danger { background:var(--red); }
.button-danger:hover { background:#530e0e; }
.text-button,.quiet-link,.page-nav a,.dashboard-data-master summary,.secondary-panel summary::after,.topbar-nav a { color:var(--brand); }
.share-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px 18px; margin-top:8px; }.share-actions .quiet-link,.share-actions .text-button { margin-top:0; }
.topbar-nav a[aria-current="page"] { color:var(--brand); background:var(--brand-soft); }
.login-card { border-radius:var(--radius); box-shadow:0 8px 28px var(--dk-shadow-tint, rgba(20,22,26,.08)); }
.login-wrap { background:var(--canvas); }
.login-form input,.login-form select,.login-form textarea,.audit-filter input,.audit-filter select { border-color:var(--dk-line, #c8cdd5); border-radius:4px; }
.login-form input[type="file"] { padding:6px; }
.login-form input[type="file"]::file-selector-button { min-height:36px; margin-right:10px; padding:0 12px; border:1px solid var(--dk-line, #c8cdd5); border-radius:3px; color:var(--ink); background:var(--dk-surface-2, #f8f9fa); font:inherit; font-weight:600; cursor:pointer; }
.login-form input:focus,.login-form select:focus,.login-form textarea:focus { border-color:var(--brand); }
.sales-line { border-radius:var(--radius); background:var(--dk-surface-2, #fbfbfc); }
.data-table th { color:var(--muted); background:var(--dk-surface-2, #f8f9fa); font-size:14px; letter-spacing:0; text-transform:none; }
.data-table td { font-size:14px; }
.history-filter { display:grid; grid-template-columns:minmax(220px,2fr) repeat(3,minmax(150px,1fr)); gap:12px; align-items:end; margin-top:22px; padding:18px; border:1px solid var(--line); border-radius:var(--radius); background:var(--surface); box-shadow:var(--shadow); }
.history-filter label { display:grid; gap:6px; color:var(--muted); font-size:14px; font-weight:700; }
.history-filter input,.history-filter select { width:100%; min-height:44px; padding:9px 11px; border:1px solid var(--dk-line, #c8cdd5); border-radius:4px; background:var(--dk-surface, #fff); color:var(--ink); font:inherit; }
.history-filter-actions { display:flex; grid-column:1/-1; flex-wrap:wrap; gap:10px; }
.history-filter-actions .button { margin:0; }
.pagination { display:flex; align-items:center; justify-content:center; gap:18px; min-height:52px; margin-top:18px; color:var(--muted); font-size:14px; }
.pagination a { display:inline-flex; min-height:44px; align-items:center; color:var(--brand); font-weight:700; }
.order-timeline { margin:0; padding:0; list-style:none; }
.order-timeline li { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; padding:14px 18px; border-bottom:1px solid var(--line); }
.order-timeline li:last-child { border-bottom:0; }
.order-timeline p { margin:3px 0 0; color:var(--muted); font-size:14px; }
.order-timeline .timeline-message { max-width:720px; padding:9px 11px; border-left:3px solid var(--red); color:var(--ink); background:var(--red-soft); }
.user-create-form { max-width:620px; padding:18px; }
.account-action-panel { padding:18px; }
.account-action-panel h2,.account-action-panel p { margin-top:0; }
.passkey-login { margin-top:24px; }
.passkey-button { width:100%; margin:0; }
.auth-callout { margin:18px 0; padding:14px 16px; border:1px solid var(--brand-line); border-radius:12px; background:var(--brand-soft); }
.auth-callout strong { color:var(--ink); }
.auth-callout p { margin:5px 0 0; color:var(--muted); font-size:.88rem; line-height:1.55; }
.auth-divider { display:flex; align-items:center; gap:12px; margin:22px 0 6px; color:var(--muted); font-size:14px; font-weight:700; }
.auth-divider::before,.auth-divider::after { content:""; flex:1; border-top:1px solid var(--line); }
.passkey-panel { margin-top:24px; border-color:var(--brand-line); background:var(--brand-soft); }
.passkey-list { display:grid; gap:8px; margin-top:18px; }
.passkey-item { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px; border:1px solid var(--line); border-radius:10px; background:var(--dk-surface, #fff); }
.passkey-item small { display:block; margin-top:3px; color:var(--muted); }
.passkey-item form,.passkey-item .button { margin:0; }
.dashboard h1 { overflow-wrap:anywhere; }
.risk-label { border-radius:4px; font-size:14px; }
.review-note { border-left-color:var(--brand); border-radius:0 var(--radius) var(--radius) 0; }
.role-guide { margin-top:18px; padding-top:4px; border-top:1px solid var(--line); }
.role-guide p { color:var(--ink)!important; }
.role-guide strong { font-size:14px; }
.priority-section,.readiness-block { margin:0 0 18px; }
.passkey-setup-prompt { display:flex; align-items:center; justify-content:space-between; gap:18px; margin:0 0 18px; }
.passkey-setup-prompt p { margin:4px 0 0; }
.passkey-setup-prompt .button { flex:0 0 auto; margin:0; }
@media (max-width:760px) { .passkey-setup-prompt { align-items:stretch; flex-direction:column; }.passkey-setup-prompt .button { width:100%; } }
.panel-body-copy { padding:0 24px; }
.panel-body-note { padding:0 24px 18px; }
.worst-lines h2 { margin:0; font-size:16px; }
.worst-lines ul { display:grid; gap:8px; margin:12px 0; padding:0; list-style:none; }
.worst-lines li { display:flex; justify-content:space-between; gap:16px; padding:10px 0; border-bottom:1px solid var(--line); }
.worst-lines li:last-child { border-bottom:0; }
.worst-lines li span { color:var(--muted); text-align:right; }
.js-submit-state[aria-busy="true"] { opacity:.82; }
.role-preview-controls { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:20px; padding:18px 20px; border:1px solid var(--line); border-radius:10px; background:var(--surface); }
.role-preview-controls h2,.role-preview-banner p { margin:0; }
.role-preview-controls form { display:flex; align-items:flex-end; gap:10px; }
.role-preview-controls label { display:grid; gap:6px; color:var(--ink); font-size:14px; font-weight:750; }
.role-preview-controls select { min-width:210px; min-height:44px; padding:10px 12px; border:1px solid var(--border-input); border-radius:8px; background:var(--dk-surface, #fff); color:var(--ink); font:inherit; }
.role-preview-controls .button { margin-top:0; }
.role-preview-banner { margin-bottom:20px; border:1px solid var(--dk-wait-line, #e2bd7c); }
.system-assessment,.decision-complete { margin:18px 0 0; padding:16px 18px; border:1px solid var(--line); border-left:4px solid var(--brand); border-radius:0 var(--radius) var(--radius) 0; background:var(--surface); box-shadow:var(--shadow); }
.system-assessment h2,.decision-complete h2 { margin:0; font-size:17px; }
.system-assessment p,.decision-complete p { margin:6px 0 0; }
.system-assessment-attention { border-left-color:var(--amber); background:var(--amber-soft); }
.system-assessment-blocked { border-left-color:var(--red); background:var(--red-soft); }
.system-assessment-complete,.decision-complete { border-left-color:var(--dk-line-strong, #777f89); background:var(--dk-surface-2, #f8f9fa); }
.decision-complete small { display:block; margin-top:8px; color:var(--muted); }
.blocked-panel { margin:20px 0 0; padding:16px; border:1px solid var(--dk-risk-line, #d9b4b4); border-radius:var(--radius); color:var(--dk-ink, #333a43); background:var(--red-soft); }
.blocked-panel .eyebrow,.blocked-panel h2 { color:var(--red); }
.blocked-panel h2 { margin:0; font-size:16px; }
.blocked-panel p { margin:6px 0 0; }
.decision-area { border-color:var(--dk-brand-line, #d5cbf0); }
.recalculation-comparison { margin-top:18px; padding:18px; border:1px solid var(--line); border-radius:var(--radius); background:var(--surface); box-shadow:var(--shadow); }
.recalculation-comparison h2,.recalculation-comparison h3 { margin-top:0; }
.comparison-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.comparison-grid article { padding:14px; border:1px solid var(--line); border-radius:var(--radius); background:var(--dk-surface-2, #fbfbfc); }
.comparison-grid article p { margin:6px 0; }
.preview-correction-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:16px; }
.preview-correction-actions form,.preview-correction-actions .button { margin:0; }
.error-summary:focus { outline:3px solid #0b7fbd; outline-offset:3px; }
/* The decision panel is no longer sticky in the flow; see .review-decision-rail. */
@media (max-width:760px) { .comparison-grid { grid-template-columns:1fr; } }
.decision-summary,.decision-effect,.form-panel { margin-top:18px; border:1px solid var(--line); border-radius:var(--radius); background:var(--surface); box-shadow:var(--shadow); overflow:hidden; }
.decision-facts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); }
.decision-facts p { display:grid; gap:4px; margin:0; padding:14px 16px; border-right:1px solid var(--dk-line, #edeff2); border-bottom:1px solid var(--dk-line, #edeff2); }
.decision-facts p:nth-child(3n) { border-right:0; }
.decision-facts span { color:var(--muted); font-size:14px; }
.decision-facts strong { font-size:15px; font-variant-numeric:tabular-nums; }
.decision-lock-note { margin:0; padding:13px 16px; color:var(--dk-ink, #333a43); background:var(--dk-surface-2, #f8f9fa); font-size:14px; }
.decision-lock-note summary { cursor:pointer; font-weight:750; }
.decision-lock-note summary::before { content:"🔒" / ""; margin-right:7px; }
.decision-lock-note p { margin:10px 0 0; }
.decision-effect { padding:16px; }
.decision-effect h2 { margin:0; font-size:16px; }
.decision-effect p:last-child { margin-bottom:0; }
.decision-form { max-width:760px; padding:20px; }
.required-label { display:inline-flex; margin-left:5px; padding:2px 5px; border-radius:3px; color:var(--red); background:var(--red-soft); font-size:14px; font-weight:700; }
.optional-label { display:inline-flex; margin-left:5px; color:var(--muted); font-size:14px; font-weight:650; }
.record-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.record-heading h1 { margin:0; }
.record-heading .button { flex:none; margin:0; }
.history-share-actions { display:flex; align-items:center; gap:10px; white-space:nowrap; }
.confirm-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:10px; }
.confirm-actions .button { min-height:48px; margin-top:0; }
.sales-order-form { gap:18px; }
.sales-order-form > fieldset { margin-top:0; }
.form-panel { margin-top:0; }
.form-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px 16px; padding:18px; }
.form-fields label { margin-top:8px; }
.form-fields .errorlist { margin-top:0; }
.form-submit-bar { position:sticky; bottom:0; z-index:5; display:flex; align-items:center; gap:14px; padding:12px 16px; border:1px solid var(--line); border-radius:var(--radius); background:var(--dk-glass, rgba(255,255,255,.96)); box-shadow:0 -4px 16px var(--dk-shadow-tint, rgba(20,22,26,.06)); backdrop-filter:blur(8px); }
.form-submit-bar .button { min-height:48px; margin:0; }
.form-submit-bar span { color:var(--muted); font-size:14px; }
.form-submit-bar .autosave-status { margin-left:auto; color:var(--brand); font-weight:700; }
.accounting-web-form { display:grid; gap:20px; }
.accounting-edit-fields { display:grid; gap:20px; min-width:0; margin:0; padding:0; border:0; }
.accounting-edit-fields:disabled { opacity:.72; }
.cost-grid-validation:not(:empty) { padding:10px 12px; border-left:4px solid var(--red); color:var(--red); font-weight:700; }
.web-cost-metadata { max-width:none; }
.web-cost-field { display:grid; align-content:start; gap:6px; }
.web-cost-grid { max-width:100%; margin-top:14px; overflow:auto; contain:paint; max-height:64vh; }
.web-cost-grid thead { position:sticky; top:0; z-index:2; }
.web-cost-grid th[scope="row"] { position:sticky; left:0; z-index:1; min-width:150px; background:var(--dk-surface, #fff); }
.web-cost-grid th[scope="row"] small { display:block; max-width:180px; overflow:hidden; color:var(--muted); text-overflow:ellipsis; }
.web-cost-grid input { width:140px; min-height:42px; padding:8px 10px; }
.review-pager { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:-8px 0 18px; }
.review-pager > :last-child { justify-self:end; }
.review-pager .button { display:flex; align-items:center; gap:10px; min-width:170px; margin:0; }
.review-pager .button span { display:grid; text-align:left; }
.review-pager .button:last-child span:first-child { text-align:right; }
.review-pager small { color:var(--muted); font-size:14px; font-weight:650; }
.processing-group-fill { margin:14px 0; padding:16px; border:1px solid var(--line); border-radius:var(--radius); background:var(--dk-brand-soft, #faf9fd); }
.processing-group-fill h3 { margin:0; }
.processing-group-fill input { width:118px; min-height:42px; padding:8px 10px; }
.processing-group-fill th small { display:block; color:var(--muted); font-weight:600; }
.processing-group-status:not(:empty) { margin-bottom:0; color:var(--brand); font-weight:700; }
.cost-grid-tools { display:grid; grid-template-columns:minmax(180px,1fr) minmax(150px,.6fr) auto minmax(240px,1fr); gap:12px; align-items:end; margin:14px 0; padding:14px 16px; border:1px solid var(--line); border-radius:var(--radius); background:var(--dk-surface, #fff); }
.cost-grid-tools > label:not(.checkbox-label) { display:grid; gap:5px; color:var(--muted); font-size:14px; font-weight:750; }
.cost-grid-tools input[type="search"],.cost-grid-tools select { width:100%; min-height:44px; padding:9px; border:1px solid var(--border-input); border-radius:9px; background:var(--dk-surface, #fff); font:inherit; }
.cost-grid-tools .checkbox-label { min-height:44px; display:flex; align-items:center; gap:8px; white-space:nowrap; }
.completion-indicator { display:grid; gap:2px; margin:0; }
.completion-indicator small { color:var(--muted); }
.cost-row-incomplete th[scope="row"] { box-shadow:inset 4px 0 0 #c88912; }
.cost-grid-empty { padding:12px 16px; }
.preview-filter { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:12px; margin:16px 0 10px; padding:12px 16px; border:1px solid var(--line); border-radius:var(--radius); background:var(--dk-surface, #fff); }
.preview-filter .checkbox-label { display:flex; align-items:center; gap:8px; }
.cost-preview-changed { background:var(--dk-wait-soft, #fff8e8); }
.cost-preview-table td:first-child small { display:block; color:var(--dk-wait-ink, #8a5700); font-weight:750; }
.bulk-product-groups { margin-top:24px; }
.bulk-toolbar { display:flex; flex-wrap:wrap; gap:10px; align-items:center; padding:14px 16px; border:1px solid var(--line); border-radius:var(--radius); background:var(--dk-surface, #fff); }
.bulk-toolbar input { min-height:44px; padding:9px 11px; border:1px solid var(--border-input); border-radius:9px; font:inherit; text-transform:uppercase; }
.bulk-toolbar .button { margin:0; }
.bulk-toolbar span { color:var(--muted); }
.web-cost-formulas { padding:4px 18px 18px; }
.optional-excel > div { padding:0 18px 18px; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

.security-mobile-status { display:none; }
.security-row-shortcut { display:grid; gap:6px; margin-top:10px; max-width:240px; }
.security-row-shortcut p { margin:0; }

@media (max-width:760px) {
  .security-mobile-status { display:block; margin-bottom:6px; }
  .role-preview-controls,.role-preview-controls form { display:grid; grid-template-columns:1fr; align-items:stretch; }
  .role-preview-controls select,.role-preview-controls .button { width:100%; }
  .topbar { min-height:64px; padding:0 16px; }
  .brand small { max-width:120px; font-size:14px; line-height:1.2; }
  .dashboard { padding:28px 16px calc(48px + env(safe-area-inset-bottom)); }
  .history-filter { grid-template-columns:1fr; }
  .security-table-wrap .data-table th:nth-child(2),.security-table-wrap .data-table td:nth-child(2),.security-table-wrap .data-table th:nth-child(4),.security-table-wrap .data-table td:nth-child(4),.security-table-wrap .data-table th:nth-child(5),.security-table-wrap .data-table td:nth-child(5) { display:none; }
  .security-table-wrap[data-scroll-hint]::after { display:none; }
  .dashboard-heading { margin-bottom:20px; }
  .metric-grid,.dashboard > .metric-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .dashboard > .metric-grid .metric-card:first-child { grid-column:auto; }
  .metric-card { min-height:auto; padding:12px 14px; }
  .metric-card strong,.dashboard > .metric-grid .metric-card strong { margin:4px 0; font-size:1.35rem; }
  .workspace-layout { grid-template-columns:1fr; }
  .queue-item { align-items:flex-start; }
  .queue-item-actions { flex-direction:column; align-items:flex-end; }
  .queue-action { min-width:96px; text-align:center; }
  .state-pill { white-space:normal; text-align:right; }
  .decision-facts,.form-fields { grid-template-columns:1fr; }
  .decision-facts p,.decision-facts p:nth-child(3n) { border-right:0; }
  .decision-form { padding:16px; }
  .confirm-actions { display:grid; grid-template-columns:1fr; }
  .confirm-actions .button { width:100%; }
  .form-submit-bar { bottom:env(safe-area-inset-bottom); gap:10px; padding:8px 12px; }
  .form-submit-bar .button { flex:0 0 auto; }
  .form-submit-bar > span { min-width:0; flex:1 1 auto; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; text-align:left; }
  .form-submit-bar > span:not(:last-child) { display:none; }
  .form-submit-bar .autosave-status { margin-left:0; }
  .review-pager .button { min-width:0; padding:10px 12px; }
  .cost-grid-tools { grid-template-columns:1fr; }
  .cost-grid-tools .checkbox-label { min-height:36px; }
  .record-heading { align-items:stretch; flex-direction:column; }
  .record-heading .button { width:100%; }
}
@media (max-width:480px) {
  .topbar { gap:8px; }
  .brand small { display:none; }
  .user-menu { min-width:0; gap:4px; }
  .topbar-nav { gap:0; }
  .topbar-nav a { padding:0 6px; font-size:14px; line-height:1.15; text-align:center; }
  .text-button { padding:0 4px; }
  .worst-lines li { display:grid; gap:3px; }
  .worst-lines li span { text-align:left; }
}

@media print {
  @page { size:A4; margin:12mm; }
  html,body { color:var(--dk-ink, #000); background:var(--dk-surface, #fff); font-size:10pt; }
  .app-shell,main,.dashboard { width:auto; max-width:none; margin:0; padding:0; background:var(--dk-surface, #fff); }
  .topbar,.uat-role-banner,.message-stack,.skip-link,.page-nav,.review-pager,
  .decision-area,.action-group,.copy-link-status,.print-record,.print-hidden { display:none !important; }
  .dashboard > section,.dashboard > details,.metric-card,.compact-panel,
  .secondary-panel,.control-section,.empty-queue { break-inside:avoid; box-shadow:none !important; }
  details { display:block; }
  details > summary { list-style:none; }
  details > summary::-webkit-details-marker { display:none; }
  .data-table-wrap,.web-cost-grid { max-height:none; overflow:visible; }
  .data-table { font-size:8.5pt; }
  a { color:var(--dk-ink, #000); text-decoration:none; }
  .record-heading { display:block; }
}

/* UAT-only issue reporting. */
.uat-role-banner { align-items:center; background:var(--dk-wait-soft, #fff3cd); border-bottom:2px solid var(--dk-wait-line, #8a6500); color:var(--dk-wait-ink, #3d3000); display:flex; gap:1rem; justify-content:space-between; padding:.8rem clamp(1rem,4vw,3rem); }
.uat-role-banner form { display:flex; align-items:center; gap:.5rem; margin:0; }
.uat-role-banner select { min-height:44px; padding:.5rem; border:1px solid var(--dk-wait-line, #8a6500); border-radius:6px; background:white; font:inherit; }
@media (max-width:480px) { .uat-role-banner { align-items:stretch; flex-direction:column; } .uat-role-banner form { align-items:stretch; flex-wrap:wrap; } .uat-role-banner select { flex:1; } }

.uat-feedback-layout { grid-template-columns:minmax(0,1.55fr) minmax(260px,.65fr); }
.uat-feedback-form { margin-top:0; }
.uat-field { display:grid; gap:6px; }
.uat-field-wide { grid-column:1/-1; }
.uat-report-detail { padding:0; overflow:hidden; }
.uat-report-detail .panel-heading time { color:var(--muted); white-space:nowrap; }
.uat-report-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0; }
.uat-report-grid p { margin:0; padding:16px; border-right:1px solid var(--line); border-bottom:1px solid var(--line); overflow-wrap:anywhere; }
.uat-report-grid p:nth-child(2n) { border-right:0; }
@media (max-width:760px) {
  .uat-feedback-layout,.uat-report-grid { grid-template-columns:1fr; }
  .uat-field-wide { grid-column:auto; }
  .uat-report-grid p { border-right:0; }
  .uat-report-detail .panel-heading { display:block; }
  .uat-report-detail .panel-heading time { display:block; margin-top:8px; }
}

/* Audit batch 1: shared control sizing and short-viewport safety. */
.accounting-web-form .web-cost-field input,.accounting-web-form .web-cost-field select,
.data-table select,.data-table input:not([type="checkbox"]):not([type="radio"]),
.audit-filter textarea,.form-stack input,.form-stack select,.form-stack textarea { width:100%; min-height:44px; padding:9px 11px; border:1px solid var(--border-input); border-radius:var(--radius-sm); background:var(--dk-surface, #fff); color:var(--ink); font:inherit; }
.data-table select,.data-table input:not([type="checkbox"]):not([type="radio"]) { width:auto; min-width:160px; }
.web-cost-grid input,.processing-group-fill input { min-height:44px; }
.web-cost-metadata > h2 { margin:0; padding:16px 18px; border-bottom:1px solid var(--line); font-size:16px; }
.web-cost-metadata > .form-help { margin:0; padding:0 18px 16px; }
.accounting-web-form .web-cost-field label { font-size:14px; font-weight:750; }
@media (max-height:500px) { .form-submit-bar,.decision-area,.review-decision-rail { position:static; } }

/* Audit batch 2: GM/CEO review. Phone order follows ARCHITECTURE §9; laptops get a decision rail. */
.review-layout { display:grid; grid-template-columns:minmax(0,1fr); column-gap:24px; }
.review-layout > * { grid-column:1; min-width:0; }
.review-header .eyebrow { margin-top:0; }
.review-summary { margin-top:18px; border:1px solid var(--line); border-radius:var(--radius); background:var(--surface); box-shadow:var(--shadow); overflow:hidden; }
.review-facts { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); }
.review-facts p { display:grid; align-content:start; gap:2px; margin:0; padding:12px 16px; border-right:1px solid var(--dk-line, #edeff2); }
.review-facts p:last-child { border-right:0; }
.review-facts span { color:var(--muted); font-size:14px; }
.review-facts strong { font-size:1.3rem; line-height:1.25; font-variant-numeric:tabular-nums; }
.review-facts small { color:var(--muted); font-size:14px; }
.review-facts .fact-negative { background:var(--red-soft); }
.review-facts .fact-negative span,.review-facts .fact-negative strong { color:var(--red); }
.review-facts .fact-policy { background:var(--amber-soft); }
.review-facts .fact-policy span,.review-facts .fact-policy strong { color:var(--amber); }
.review-summary .system-assessment { margin:0; border:0; border-top:1px solid var(--line); border-left:4px solid var(--brand); border-radius:0; box-shadow:none; padding:12px 16px; }
.review-summary .system-assessment-attention { border-left-color:var(--amber); }
.review-summary .system-assessment-blocked { border-left-color:var(--red); }
.review-summary .system-assessment-complete { border-left-color:var(--dk-line-strong, #777f89); }
.worst-lines li.line-negative strong,.worst-lines li.line-negative span { color:var(--red); }
.worst-lines li.line-policy strong,.worst-lines li.line-policy span { color:var(--amber); }
.decision-actions { display:grid; grid-template-columns:1fr; gap:8px; margin-top:12px; }
.decision-actions .button { width:100%; }
.decision-area h2 { margin:0; font-size:17px; }
.decision-help { margin:10px 0 0; font-size:14px; }
.share-block { margin-top:14px; padding-top:10px; border-top:1px dashed var(--border-input); }
.share-label { margin:0; color:var(--muted); font-size:14px; font-weight:700; }
.share-block .copy-link-status { margin:4px 0 0; font-size:14px; }
.scenario-delta { display:block; margin-top:4px; color:var(--ink); font-size:14px; font-weight:700; font-variant-numeric:tabular-nums; }
.scenario-summary-card h2 { min-height:0; }
.review-lines { min-width:0; }
.review-lines > .master-table { margin-top:18px; }
.scenario-lines th[scope="row"] { color:inherit; background:transparent; font-size:14px; font-weight:700; text-transform:none; }
.review-print-bottom { display:none; margin:18px 0 0; }
.review-jump { position:fixed; left:0; right:0; bottom:0; z-index:20; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 16px calc(10px + env(safe-area-inset-bottom)); border-top:1px solid var(--line); background:var(--dk-glass, rgba(255,255,255,.97)); box-shadow:0 -4px 16px var(--dk-shadow-tint, rgba(20,22,26,.06)); }
.review-jump .button { margin:0; }
@media (min-width:1100px) {
  .dashboard.review-page { max-width:1440px; }
  .review-layout { grid-template-columns:minmax(0,1fr) 288px; }
  .review-decision-rail { grid-column:2; grid-row:1 / span 40; align-self:start; position:sticky; top:12px; }
  .review-decision-rail .decision-area,.review-decision-rail .decision-complete,.review-decision-rail .redacted-note { margin-top:0; }
}
@media (max-width:760px) {
  .review-print-top { display:none; }
  .review-print-bottom { display:block; }
  .review-print-bottom .button { width:100%; }
  .review-facts { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .review-facts p:nth-child(2n) { border-right:0; }
  .review-facts p:nth-child(-n+2) { border-bottom:1px solid var(--dk-line, #edeff2); }
  .review-facts strong { font-size:1.15rem; }
  .review-pager { margin:-10px 0 8px; }
  .review-pager .button { min-height:44px; padding:4px 10px; gap:6px; }
  .review-pager .button span { display:flex; gap:6px; align-items:baseline; }
  .review-facts small { display:none; }
  .review-facts p { padding:10px 14px; }
  .review-summary .system-assessment { padding:10px 14px; }
  .review-summary .system-assessment h2 { font-size:15px; }
  .review-page .worst-lines { padding:12px 14px; }
  .review-page .worst-lines h2 { font-size:15px; }
  .review-page .worst-lines ul { margin:6px 0; }
  .review-page .worst-lines li { padding:6px 0; }
  .review-page .review-note { padding:12px 14px; }
  .review-page .review-note h2 { font-size:16px; }
  .review-page .record-heading { flex-direction:row; align-items:center; }
  .review-page .dashboard h1,.review-page h1 { font-size:1.6rem; }
  .review-page .scenario-summary-grid { gap:8px; }
  .review-page .scenario-summary-card { padding:12px 14px; }
  .review-page .scenario-summary-card { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:0 12px; align-items:baseline; }
  .review-page .scenario-summary-card .eyebrow { grid-column:1 / -1; margin:0; }
  .review-page .scenario-summary-card h2 { font-size:14px; font-weight:700; }
  .review-page .scenario-summary-card strong { margin:0; font-size:1.05rem; text-align:right; }
  .review-page .scenario-summary-card .scenario-delta { grid-column:2; margin:0; text-align:right; }
  .review-page .scenario-summary-card small { grid-column:1 / -1; margin-top:2px; }
  /* Line cards: same markup as the laptop table, reflowed so margin values stay visible. */
  .review-lines .data-table-wrap[data-scroll-hint]::after { display:none; }
  .scenario-lines thead { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }
  .scenario-lines,.scenario-lines tbody { display:block; }
  .scenario-lines tr { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:2px 12px; padding:12px 14px; border-bottom:1px solid var(--line); }
  .scenario-lines tr.risk-negative { box-shadow:inset 4px 0 0 var(--red); }
  .scenario-lines tr.risk-policy { box-shadow:inset 4px 0 0 var(--amber); }
  .scenario-lines th,.scenario-lines td { display:flex; justify-content:space-between; gap:8px; padding:2px 0; border:0; white-space:normal; font-size:14px; }
  .scenario-lines th[scope="row"] { grid-column:1 / -1; order:-2; font-size:15px; }
  .scenario-lines td::before { content:attr(data-label); color:var(--muted); font-weight:600; }
  .scenario-lines td.line-key { order:-1; flex-direction:column; gap:0; font-size:16px; font-weight:800; }
  .scenario-lines td.line-key::before { font-size:14px; font-weight:600; }
  .scenario-lines tr.risk-negative td,.scenario-lines tr.risk-policy td { background:transparent; }
  .scenario-lines td[colspan] { grid-column:1 / -1; }
  .scenario-lines td[colspan]::before { content:none; }
}
@media print { .review-layout { display:block; } .review-print-bottom,.review-jump { display:none !important; } }

/* ===== Monokem v3: quiet by default, loud only for risk (design: canvas boards 1–9). ===== */
:root { --canvas:#ffffff; --line:#e9ebef; --muted:#6b7280; --ink:#14161a; --risk:#8b1c1c; --risk-soft:#fbecec; --wait:#7a4a00; --wait-soft:#fdf3e0; --done:#1d6b3f; --done-soft:#e7f4ec; --side:220px; --tabbar:64px; }
body { background:var(--canvas); }
.num,.money,.data-table td,.review-facts strong,.metric-card strong { font-variant-numeric:tabular-nums lining-nums; }
.money .cur { font-size:.55em; font-weight:600; color:var(--muted); letter-spacing:.02em; margin-right:.25em; vertical-align:.32em; }
.unit { font-size:.82em; color:var(--muted); font-weight:500; margin-left:.15em; }
.neg { color:var(--risk); }
.eyebrow { color:var(--muted); font-size:13px; font-weight:700; letter-spacing:.04em; }
.queue-panel,.detail-panel,.empty-queue,.control-section,.control-card,.secondary-panel,.compact-panel,.decision-area,.scenario-summary-card,.master-form,.master-table,.metric-card,.form-panel,.decision-summary,.decision-effect { box-shadow:none; border-color:var(--line); border-radius:12px; }
.button { border-radius:10px; }
.dashboard { max-width:1040px; }

/* App shell: desktop sidebar, phone tab bar. */
.side-nav,.tab-bar { display:none; }
@media (min-width:900px) {
  .has-app-nav .side-nav { position:fixed; inset:0 auto 0 0; z-index:30; width:var(--side); box-sizing:border-box; display:flex; flex-direction:column; gap:2px; padding:16px 12px; border-right:1px solid var(--line); background:var(--dk-surface, #fff); overflow-y:auto; }
  .side-nav a { display:flex; align-items:center; min-height:40px; padding:0 12px; border-radius:8px; color:var(--ink); font-size:14px; font-weight:500; text-decoration:none; }
  .side-nav a:hover { background:var(--dk-surface-2, #f6f6f8); }
  .side-nav a[aria-current="page"] { background:var(--brand-soft); color:var(--brand); font-weight:650; }
  .side-nav .side-brand { min-height:48px; margin-bottom:10px; }
  .side-nav .side-brand img { width:32px; height:32px; border-radius:8px; }
  .side-spacer { flex:1; }
  .has-app-nav .app-shell > :not(.side-nav):not(.tab-bar) { margin-left:var(--side); }
  .has-app-nav .topbar { min-height:56px; padding:0 40px; border-bottom:1px solid var(--line); }
  .has-app-nav .topbar .brand-logo,.has-app-nav .topbar .brand small { display:none; }
}
@media (max-width:899px) {
  .has-app-nav .tab-bar { position:fixed; left:0; right:0; bottom:0; z-index:30; display:flex; justify-content:space-around; align-items:stretch; height:calc(var(--tabbar) + env(safe-area-inset-bottom)); padding-bottom:env(safe-area-inset-bottom); border-top:1px solid var(--line); background:var(--dk-glass, rgba(255,255,255,.97)); backdrop-filter:blur(8px); }
  .tab-bar a { flex:1; display:flex; align-items:center; justify-content:center; min-height:44px; color:var(--muted); font-size:14px; font-weight:650; text-decoration:none; }
  .tab-bar a[aria-current="page"] { color:var(--brand); box-shadow:inset 0 3px 0 var(--brand); }
  .has-app-nav main { padding-bottom:calc(var(--tabbar) + env(safe-area-inset-bottom)); }
  .has-app-nav .topbar { min-height:52px; padding:0 16px; }
  .has-app-nav .form-submit-bar,.has-app-nav .action-bar { bottom:calc(var(--tabbar) + env(safe-area-inset-bottom)); }
  .has-app-nav.no-tabs .tab-bar { display:none; }
  .has-app-nav.no-tabs main { padding-bottom:0; }
  .has-app-nav.no-tabs .form-submit-bar,.has-app-nav.no-tabs .action-bar { bottom:0; }
}
.topbar-uat { display:inline-flex; align-items:center; min-height:44px; padding:0 8px; color:var(--brand); font-weight:650; font-size:14px; text-decoration:none; }
.offline-notice { margin:0; padding:10px 16px; background:var(--wait-soft); color:var(--wait); font-size:14px; text-align:center; }

/* Page header: one line of context, one title. */
.page { max-width:1040px; margin:0 auto; padding:28px 40px 120px; display:flex; flex-direction:column; gap:22px; }
.page-narrow { max-width:820px; }
.page-head { display:flex; justify-content:space-between; align-items:flex-end; gap:16px; flex-wrap:wrap; }
.page-title { margin:0; font-size:30px; line-height:1.15; letter-spacing:-.02em; }
.page-sub { margin:4px 0 0; color:var(--muted); font-size:15px; line-height:1.5; }
.context-line { margin:0; color:var(--muted); font-size:14px; }
.back-nav { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.back-nav a { display:inline-flex; align-items:center; min-height:44px; color:var(--brand); font-weight:650; font-size:15px; text-decoration:none; }

/* Hero number and its label. */
.hero-number { margin:6px 0 0; font-size:40px; font-weight:750; letter-spacing:-.02em; line-height:1.1; }
.hero-label { margin:2px 0 0; color:var(--muted); font-size:15px; }
.why-line { margin:0; font-size:16px; line-height:1.55; }
.why-line .risk { color:var(--risk); font-weight:650; }
.note-quote { color:var(--muted); }
.notice { margin:0; padding:12px 14px; border-radius:12px; font-size:15px; line-height:1.5; }
.notice-wait { background:var(--wait-soft); color:var(--wait); }
.notice-risk { background:var(--risk-soft); color:var(--risk); }
.notice-done { background:var(--done-soft); color:var(--done); }

/* Lists: tasks, rows, sections. */
.task-group { display:flex; flex-direction:column; }
.task-group-title { text-transform:uppercase; margin:14px 0 0; color:var(--muted); font-size:13px; font-weight:700; letter-spacing:.04em; }
.task-list { list-style:none; margin:0; padding:0; }
.task { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:14px 0; border-bottom:1px solid var(--line); }
.task:last-child { border-bottom:0; }
.task-main { min-width:0; display:flex; flex-direction:column; gap:2px; }
.task-title { font-size:16px; font-weight:650; color:var(--ink); text-decoration:none; }
a.task-title:hover { text-decoration:underline; }
.task-meta { color:var(--muted); font-size:14px; }
.task-why { font-size:14px; font-weight:600; }
.task-why.risk { color:var(--risk); } .task-why.wait { color:var(--wait); } .task-why.done { color:var(--done); }
.task-side { display:flex; align-items:center; gap:12px; flex:0 0 auto; }
.task-side .button { margin:0; min-height:44px; padding:0 16px; }
.task-amount { font-weight:650; white-space:nowrap; }
.rows { margin:0; }
.kv { display:flex; justify-content:space-between; gap:16px; padding:12px 0; border-bottom:1px solid var(--line); font-size:15px; }
.kv:last-child { border-bottom:0; }
.kv dt,.kv .k { color:var(--muted); }
.kv dd { margin:0; text-align:right; }
.section-title { margin:0; font-size:13px; font-weight:700; letter-spacing:.04em; color:var(--muted); }
.waiting-line { margin:0; color:var(--muted); font-size:14px; }
.empty-state { display:flex; flex-direction:column; gap:8px; padding:48px 0; }
.empty-state h2 { margin:0; font-size:22px; }
.empty-state p { margin:0; color:var(--muted); }
.timeline { list-style:none; margin:0; padding:0; }
.timeline li { display:grid; grid-template-columns:16px minmax(0,1fr); gap:0 12px; padding:6px 0; font-size:15px; }
.timeline li::before { content:"" / ""; width:10px; height:10px; margin-top:6px; border-radius:50%; background:var(--line); }
.timeline li.done::before { background:var(--done); }
.timeline li.now::before { background:var(--dk-surface, #fff); box-shadow:inset 0 0 0 2px var(--brand); }
.timeline li.now { font-weight:650; }
.timeline .when { color:var(--muted); font-weight:400; }

/* Decision / action bar pinned to the bottom of the content. */
.action-bar { position:sticky; bottom:0; z-index:20; display:flex; align-items:center; gap:10px; margin-top:auto; padding:12px 0 calc(12px + env(safe-area-inset-bottom)); border-top:1px solid var(--line); background:var(--dk-glass, rgba(255,255,255,.97)); backdrop-filter:blur(8px); }
.action-bar .button,.action-bar form { margin:0; }
.action-bar .spacer { flex:1; }
.action-bar .button { min-height:48px; padding:0 20px; }
.more-menu { position:relative; }
.more-menu > summary { list-style:none; display:inline-flex; align-items:center; justify-content:center; min-width:48px; min-height:48px; padding:0 14px; border:1px solid var(--dk-line, #d3d7de); border-radius:10px; cursor:pointer; font-weight:700; }
.more-menu > summary::-webkit-details-marker { display:none; }
.more-menu[open] > .more-sheet { display:flex; }
.more-sheet { display:none; position:absolute; bottom:calc(100% + 8px); left:0; z-index:40; width:min(340px,calc(100vw - 32px)); flex-direction:column; gap:6px; padding:12px; border:1px solid var(--line); border-radius:14px; background:var(--dk-surface, #fff); box-shadow:0 12px 32px var(--dk-shadow-tint, rgba(20,22,26,.16)); }
.more-sheet a { display:flex; flex-direction:column; gap:2px; padding:10px 12px; border-radius:10px; color:var(--ink); text-decoration:none; font-weight:650; }
.more-sheet a:hover { background:var(--dk-surface-2, #f6f6f8); }
.more-sheet a small { color:var(--muted); font-weight:400; font-size:13px; }
.more-sheet a.danger { color:var(--risk); }
.more-sheet hr { width:100%; border:0; border-top:1px solid var(--line); margin:2px 0; }
.button-outline-danger { color:var(--risk); background:var(--dk-surface, #fff); border:1px solid var(--dk-risk-line, #ebcaca); }

/* Lines list (phone) and table (desktop) share one markup. */
.lines-table .neg td,.lines-table .neg th { color:var(--risk); }
.lines-table td.line-key { font-weight:650; }
.line-word { font-size:13px; font-weight:600; }

/* Chips for quick return reasons and status filters. */
.chips { display:flex; flex-wrap:wrap; gap:8px; }
.chip { display:inline-flex; align-items:center; min-height:40px; padding:0 14px; border:1px solid var(--dk-line, #d3d7de); border-radius:999px; background:var(--dk-surface, #fff); color:var(--ink); font:inherit; font-size:14px; font-weight:600; cursor:pointer; text-decoration:none; }
.chip[aria-current="page"],.chip[aria-pressed="true"] { background:var(--brand-soft); border-color:var(--brand-line); color:var(--brand); }

/* Version diff for re-submitted orders. */
.change-list { list-style:none; margin:6px 0 0; padding:0; display:flex; flex-direction:column; gap:4px; font-size:15px; }
.change-list .from { color:var(--muted); text-decoration:line-through; }

/* Steps for multi-step forms on phones. */
.progress-steps { display:flex; gap:6px; }
.progress-steps span { flex:1; height:4px; border-radius:2px; background:var(--line); }
.progress-steps span.on { background:var(--brand); }
.step-label { margin:6px 0 0; color:var(--muted); font-size:13px; font-weight:650; }

/* One-time Face ID offer after a code sign-in. */
/* Face ID offer: an inline card at the top of the page, never a blocking overlay. */
.passkey-offer { max-width:1040px; margin:16px auto 0; padding:0 40px; }
.passkey-offer[hidden] { display:none; }
.passkey-offer-sheet { box-sizing:border-box; padding:16px 18px; border:1px solid var(--brand-line); border-radius:14px; background:var(--brand-soft); display:flex; flex-wrap:wrap; align-items:center; gap:8px 16px; }
.passkey-offer-sheet > div:first-child { flex:1 1 320px; display:flex; flex-direction:column; gap:2px; }
.passkey-offer-title { margin:0; font-size:16px; font-weight:750; }
.passkey-offer-sheet p { margin:0; color:var(--ink); font-size:14px; line-height:1.5; }
.passkey-offer-sheet .alert { flex-basis:100%; }
.passkey-offer-actions { display:flex; gap:8px; }
.passkey-offer-actions .button { margin:0; min-height:44px; }
@media (max-width:899px) { .passkey-offer { padding:0 16px; } .passkey-offer-actions { width:100%; } .passkey-offer-actions .button { flex:1; } }

@media (max-width:760px) {
  .page { padding:16px 16px 24px; gap:18px; }
  .page-title { font-size:26px; }
  .hero-number { font-size:34px; }
  .task-side .button { padding:0 14px; }
  .action-bar { margin:0 -16px; padding-left:16px; padding-right:16px; }
  .action-bar .button { flex:1; padding:0 12px; }
  .action-bar .more-menu > summary { flex:0 0 52px; }
  .action-bar .spacer { display:none; }
}
@media print { .side-nav,.tab-bar,.action-bar,.passkey-offer,.offline-notice { display:none !important; } .has-app-nav .app-shell > * { margin-left:0 !important; } }

/* v3 · sign-in, activation, Akun. */
.label-desktop { display:none; }
@media (min-width:900px) { .label-phone { display:none; } .label-desktop { display:inline; } }
.login-wrap { min-height:calc(100vh - 72px); align-items:start; padding-top:8vh; }
.login-card { border:0; box-shadow:none; padding:0 4px; }
.login-card h1 { font-size:30px; letter-spacing:-.02em; }
.login-card > .muted { margin:6px 0 0; }
.passkey-login { margin-top:28px; }
.passkey-button { min-height:52px; font-size:16px; }
.passkey-help { margin-top:10px; }
.auth-divider { margin:24px 0 4px; }
.login-form .button { min-height:52px; }
.password-field { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; }
.password-toggle { min-width:96px; min-height:44px; padding:0 10px; border:1px solid var(--border-input); border-radius:var(--radius-sm); color:var(--brand); background:var(--dk-surface, #fff); font:inherit; font-size:14px; font-weight:750; cursor:pointer; }
.password-toggle:hover { background:var(--brand-soft); }
.password-toggle:focus-visible { outline:3px solid #0b7fbd; outline-offset:1px; }
.auth-steps { display:flex; gap:6px; margin:0 0 24px; }
.auth-steps li { flex:1; display:block; height:auto; padding-top:10px; border-top:4px solid var(--line); text-align:left; font-size:13px; color:var(--muted); }
.auth-steps li::before { content:none; }
.auth-steps .is-complete,.auth-steps .is-current { border-top-color:var(--brand); }
.auth-steps .is-current { color:var(--ink); font-weight:700; }
.otp-input { min-height:60px !important; font-size:1.6rem !important; letter-spacing:.3em; }
.account-section { display:flex; flex-direction:column; gap:10px; padding-bottom:18px; border-bottom:1px solid var(--line); }
.account-section h2:not(.section-title) { margin:0; font-size:18px; }
.account-section > .button { align-self:flex-start; margin:0; }
.account-revoke { margin-top:8px; }
.account-logout .button { margin:0; }
.passkey-panel { background:transparent; }
@media (max-width:560px) { .login-wrap { padding:24px 20px; } .account-section > .button { align-self:stretch; } }

/* v3 · Tugas (dashboard). */
.dashboard.page { gap:18px; }
.head-actions { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.head-actions .button { margin:0; }
.tool-chips { margin-top:-6px; }
.task-group-head { display:flex; justify-content:space-between; align-items:flex-end; gap:12px; flex-wrap:wrap; }
.task-group-head .chips { margin-top:8px; }
.task-main .task-why + .task-why { margin-left:0; }
.metric-line strong { color:var(--ink); font-weight:650; }
.uat-preview { border:1px dashed var(--line); border-radius:12px; padding:10px 14px; }
.uat-preview summary { cursor:pointer; font-weight:650; min-height:28px; }
.uat-preview .role-preview-controls { margin:10px 0 0; padding:0; border:0; box-shadow:none; background:none; }
.notice-quiet { background:var(--brand-soft); color:var(--ink); display:flex; justify-content:space-between; gap:12px; align-items:center; flex-wrap:wrap; }
.notice-quiet a { color:var(--brand); font-weight:650; }
.notice h2 { margin:0 0 4px; font-size:16px; }
.notice p { margin:0; }
.dashboard-data-master summary,.role-guide summary { cursor:pointer; color:var(--muted); font-weight:650; font-size:14px; }
.dashboard .control-section,.dashboard .status-grid,.dashboard .secondary-panel { margin:0; }
@media (max-width:899px) {
  .page-head .head-actions { width:100%; }
  .page-head .head-actions .button { flex:1 1 auto; }
  .task { align-items:flex-start; }
  .task-side { padding-top:2px; }
}
@media (min-width:900px) { .tool-chips .chip:not(.chip-always) { display:none; } .tool-chips:not(:has(.chip-always)) { display:none; } }
.readiness-details summary { cursor:pointer; font-weight:650; font-size:15px; }
.readiness-details[open] summary { margin-bottom:10px; }
.dashboard .step-indicator { margin:8px 0 0; }
.notice-quiet a { white-space:nowrap; }
.head-actions:not(:has(*)) { display:none; }
a.notice-quiet { text-decoration:none; flex-wrap:nowrap; min-height:44px; padding:10px 14px; }
a.notice-quiet:hover strong { text-decoration:underline; }
.dashboard .queue-nav { border:0; padding:0; margin:8px 0 0; }
.dashboard .task-group-title { margin-top:4px; }
.dashboard .empty-state { padding:28px 0; }
.dashboard a.passkey-setup-prompt { display:flex; justify-content:space-between; align-items:center; text-align:left; gap:12px; flex-direction:row; margin:0; }
.dashboard .empty-queue { border:0; background:none; box-shadow:none; padding:20px 0; margin:0; text-align:left; display:flex; flex-direction:column; gap:6px; }
.dashboard .empty-queue h2 { font-size:20px; }
.dashboard .redacted-note { border:0; padding:0; }

/* v3 · Review page: one hero number, decision pinned. */
.review-page .back-nav { flex-wrap:nowrap; }
.review-page .review-pager { display:flex; gap:4px; margin:0; }
.review-page .review-pager a { display:inline-flex; align-items:center; gap:6px; min-height:44px; padding:0 10px; border-radius:10px; color:var(--brand); font-weight:650; text-decoration:none; }
.review-page .review-pager small { color:inherit; font-size:14px; }
.review-main { display:flex; flex-direction:column; gap:20px; min-width:0; }
.review-main > header { display:flex; flex-direction:column; gap:2px; }
.review-hero { display:flex; flex-direction:column; gap:6px; }
.review-hero .hero-number { margin:0; }
.hero-number.is-negative,.task-amount.is-negative { color:var(--risk); }
.money .cur { color:var(--muted); font-size:.55em; font-weight:650; margin-right:.3em; letter-spacing:.02em; vertical-align:.25em; }
.why-line.why-danger,.why-line.why-risk { color:var(--risk); }
.why-line.why-warning,.why-line.why-wait { color:var(--wait); }
.review-counts { display:flex; flex-wrap:wrap; gap:4px 18px; margin:0; color:var(--muted); font-size:14px; }
.review-counts .risk { color:var(--risk); } .review-counts .wait { color:var(--wait); }
.review-counts strong { font-variant-numeric:tabular-nums; }
.task-amount small { color:var(--muted); font-weight:500; margin-left:2px; }
.task-amount { font-variant-numeric:tabular-nums; }
.review-note { padding:14px 16px; border-left:3px solid var(--brand-line); background:var(--dk-brand-soft, #faf9fd); border-radius:0 12px 12px 0; }
.review-note .eyebrow { margin:0 0 4px; }
.review-note .why-line { margin:0 0 4px; }
.change-list li { display:flex; justify-content:space-between; gap:12px; padding:8px 0; border-bottom:1px solid var(--line); }
.change-list li:last-child { border-bottom:0; }
.change-label { color:var(--muted); }
.change-values s { color:var(--muted); }
.change-values { text-align:right; font-variant-numeric:tabular-nums; }
.review-page .scenario-summary-grid { margin-top:0; }
.review-page .scenario-summary-card strong { font-variant-numeric:tabular-nums; }
.review-page .official-lines { display:flex; flex-direction:column; gap:8px; }
.review-page .detail-title { margin-top:12px; }
.review-page .secondary-panel { margin:0; }
.review-print-bottom { margin:8px 0 0; display:flex; gap:10px; flex-wrap:wrap; }
.decision-area .decision-title { font-size:24px; line-height:1.2; margin:2px 0 12px; }
.decision-area .decision-title small { display:block; color:var(--muted); font-size:13px; font-weight:600; }
.decision-actions { display:flex; flex-direction:column; gap:8px; }
.decision-actions .button,.decision-actions .more-menu > summary { width:100%; margin:0; min-height:48px; }
.decision-more .share-block { border-top:1px solid var(--line); margin-top:4px; padding:10px 12px 0; display:flex; flex-direction:column; gap:6px; }
.decision-more .share-block a { padding:0; }
.share-label { margin:0; color:var(--muted); font-size:13px; font-weight:650; }
.decision-help { margin:10px 0 0; font-size:13px; }
.decision-complete .continue-review { margin-top:12px; }
@media (min-width:900px) {
  .decision-more .more-sheet { bottom:auto; top:calc(100% + 8px); right:0; left:auto; }
}
@media (max-width:899px) {
  .has-action-bar main { padding-bottom:84px; }
  .review-decision-rail .decision-area { position:fixed; left:0; right:0; bottom:calc(var(--tabbar) + env(safe-area-inset-bottom)); z-index:30; margin:0; padding:10px 16px; border:0; border-top:1px solid var(--line); border-radius:0; box-shadow:0 -6px 18px var(--dk-shadow-tint, rgba(16,24,40,.06)); background:var(--dk-surface, #fff); }
  .review-decision-rail .decision-area .eyebrow,.review-decision-rail .decision-area .decision-title,.review-decision-rail .decision-help { display:none; }
  .decision-actions { flex-direction:row; }
  .decision-actions .decision-primary { flex:1; }
  .decision-actions .more-menu > summary { width:auto; padding:0 14px; }
  .decision-more .more-sheet { right:0; left:auto; }
  .review-page .scenario-summary-card { padding:12px 14px; }
}
@media (min-width:900px) {
  .review-layout { grid-template-columns:minmax(0,1fr) 280px; }
  .review-decision-rail { grid-column:2; grid-row:1 / span 40; align-self:start; position:sticky; top:16px; }
}
@media (max-width:899px) { .has-app-nav.has-action-bar main { padding-bottom:calc(var(--tabbar) + 84px + env(safe-area-inset-bottom)); } }

.review-page .risk-lines .task { align-items:flex-start; }
.page.review-page { max-width:1280px; }
.decision-area .decision-title { font-size:18px; }
.confirm-page .decision-summary,.confirm-page .decision-effect { display:flex; flex-direction:column; gap:6px; padding:0; border:0; background:none; box-shadow:none; }
.confirm-page .decision-form { display:flex; flex-direction:column; gap:14px; }
.confirm-page .decision-form p { margin:0; display:flex; flex-direction:column; gap:6px; }
.confirm-page .quick-reasons { margin:2px 0 4px; }
.confirm-page .quick-reasons .chip { min-height:36px; font-size:13px; }
.confirm-page textarea { min-height:110px; }
.confirm-page .field-pair { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:14px; }
.confirm-page .action-bar { justify-content:flex-end; }
.risk-text,.is-negative { color:var(--risk); } .wait-text { color:var(--wait); }
.decision-lock-note summary { cursor:pointer; color:var(--muted); font-size:14px; font-weight:650; }
.review-detail { margin-top:20px; gap:12px; }
/* v3 · baseline form controls for every page. */
:where(.page) :where(input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]),select,textarea) { width:100%; min-height:48px; padding:12px 14px; border:1px solid var(--dk-line, #c8cdd5); border-radius:10px; background:var(--dk-surface, #fff); color:var(--ink); font:inherit; font-size:16px; }
:where(.page) textarea { min-height:110px; resize:vertical; font-family:inherit; }
:where(.page) :where(input,select,textarea):focus { outline:3px solid rgba(46,1,145,.25); outline-offset:1px; border-color:var(--brand); }
:where(.page) label { font-weight:650; font-size:15px; }
.decision-submit { display:flex; gap:10px; justify-content:flex-end; margin-top:6px; }
.decision-submit .button { margin:0; min-height:48px; }
@media (max-width:899px) { .decision-submit { flex-direction:column-reverse; } .decision-submit .button { width:100%; } }
.confirm-page .decision-form { padding:0; margin:0; border:0; background:none; box-shadow:none; }
.confirm-page .decision-effect h2.section-title,.confirm-page .decision-summary h2.section-title { font-size:13px; margin:0; }
.confirm-page .decision-lock-note { margin:4px 0 0; }

/* v3 · Sales order status. */
.order-status-page > section { display:flex; flex-direction:column; gap:6px; }
.status-line { margin:6px 0 0; font-size:16px; }
.order-progress { list-style:none; display:grid; grid-template-columns:repeat(5,1fr); gap:6px; margin:0; padding:0; font-size:12px; color:var(--muted); }
.order-progress li { display:flex; flex-direction:column; gap:6px; }
.order-progress li span { height:4px; border-radius:2px; background:var(--line); }
.order-progress li.done span,.order-progress li.now span { background:var(--brand); }
.order-progress li.now { color:var(--brand); font-weight:700; }
.return-instruction { padding:14px 16px; border-left:3px solid var(--risk); background:var(--risk-soft); border-radius:0 12px 12px 0; }
.return-instruction .why-line { color:var(--ink); }
.task-empty { color:var(--muted); font-size:15px; }
.attachment-add > summary { cursor:pointer; color:var(--brand); font-weight:650; min-height:44px; display:flex; align-items:center; }
.attachment-form { display:flex; flex-direction:column; gap:8px; }
.attachment-form .button { align-self:flex-start; margin:0; }
.inline-remove > summary { min-width:0; min-height:36px; padding:0 10px; color:var(--risk); font-size:14px; border-color:transparent; }
.inline-remove .more-sheet { bottom:auto; top:calc(100% + 6px); right:0; left:auto; gap:8px; }
.inline-remove[open] > .more-sheet { display:flex; }
.page-narrow .action-bar { justify-content:flex-end; }

/* v3 · Order form. */
.order-form-page .form-panel,.order-form-page .line-fieldset { margin:0; padding:0; border:0; background:none; box-shadow:none; }
.order-form-page .sales-order-form { margin-top:0; gap:16px; }
.form-step-title { display:flex; align-items:center; gap:10px; margin:8px 0 4px; padding:0; font-size:18px; font-weight:700; }
.form-step-title span { display:inline-grid; place-items:center; width:26px; height:26px; border-radius:50%; background:var(--brand-soft); color:var(--brand); font-size:14px; }
.order-form-page .form-fields { padding:0; }
.order-form-page .sales-line { display:flex; flex-direction:column; gap:6px; padding:16px; margin:12px 0 0; border:1px solid var(--line); border-radius:12px; background:var(--dk-surface, #fff); }
.order-form-page .sales-line .text-button { align-self:flex-start; }
.order-form-page .sales-order-form,.order-form-page .sales-order-form > * { min-width:0; }
.order-form-page .form-submit-bar span { min-width:0; white-space:normal; overflow:visible; text-overflow:clip; font-size:13px; }
.order-form-page #add-line { margin-top:12px; }
.autosave-notice { display:flex; flex-wrap:wrap; gap:6px 14px; align-items:center; }
.autosave-notice .text-button { font-weight:700; color:var(--brand); }
@media (max-width:899px) { .order-form-page .form-fields { grid-template-columns:minmax(0,1fr); } }

/* v3 · Shared shell for the remaining working pages: flat sections, one title size. */
.legacy-page { gap:20px; }
.legacy-page > h1,.legacy-page h1 { margin:0; font-size:30px; line-height:1.15; letter-spacing:-.02em; }
.legacy-page > .eyebrow,.legacy-page > header .eyebrow { margin:0; }
.legacy-page > .muted,.legacy-page > p.muted { margin:-12px 0 0; font-size:15px; }
.legacy-page .control-section,.legacy-page .form-panel,.legacy-page .queue-panel,.legacy-page .detail-panel,
.legacy-page .compact-panel,.legacy-page .master-table,.legacy-page .empty-queue,.legacy-page .control-card,
.legacy-page .master-form,.legacy-page .decision-summary,.legacy-page .decision-effect { margin:0; padding:0; border:0; border-radius:0; background:none; box-shadow:none; }
.legacy-page .panel-heading { padding:0 0 8px; border:0; background:none; display:flex; justify-content:space-between; align-items:flex-end; gap:12px; }
.legacy-page .panel-heading h2 { margin:0; font-size:18px; }
.legacy-page .panel-heading .eyebrow { margin:0 0 2px; }
.legacy-page .count-chip { min-width:0; height:auto; padding:0; background:none; color:var(--muted); font-weight:650; }
.legacy-page .form-fields,.legacy-page .panel-body-copy,.legacy-page .panel-body-note { padding-left:0; padding-right:0; }
.legacy-page .queue-item { padding:14px 0; border-bottom:1px solid var(--line); border-radius:0; background:none; }
.legacy-page .queue-list { gap:0; }
.legacy-page .status-grid { gap:16px; }
.legacy-page .data-table-wrap { border-radius:10px; }
.legacy-page .secondary-panel { margin:0; }
.legacy-page .record-heading { display:flex; justify-content:space-between; align-items:flex-end; gap:12px; flex-wrap:wrap; }
.legacy-page .record-heading .button { margin:0; }
.legacy-page .action-row { gap:8px; }
.legacy-page .action-row .button { margin:0; }
.legacy-page .alert,.legacy-page .blocked-panel { border-radius:12px; }
.legacy-page .audit-filter,.legacy-page .filter-panel { margin:0; padding:0; border:0; background:none; box-shadow:none; }
.action-bar .more-menu .more-sheet { right:0; left:auto; }
.more-sheet .text-button { text-align:left; padding:10px 12px; font-weight:650; color:var(--ink); }
.action-bar:not(:has(.button-primary)) { justify-content:flex-end; }
.form-disclosure > summary { cursor:pointer; color:var(--brand); font-weight:650; min-height:44px; display:flex; align-items:center; }
.form-disclosure[open] > summary { margin-bottom:8px; }
.legacy-page,.legacy-page > *,.page > * { min-width:0; max-width:100%; }
.legacy-page .history-filter { padding:0; border:0; background:none; box-shadow:none; }
.filter-more > summary { cursor:pointer; color:var(--brand); font-weight:650; min-height:40px; display:flex; align-items:center; }
.filter-more-fields { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:10px; }
.danger-disclosure { padding:12px 0; border-top:1px solid var(--line); }
.danger-disclosure > summary { color:var(--risk); }
@media (max-width:899px) {
  .data-table-wrap:has(.history-table) { overflow:visible; border:0; }
  .data-table-wrap:has(.history-table)::after { display:none !important; }
  .history-table,.history-table tbody { display:block; width:100%; }
  .history-table thead { display:none; }
  .history-table tr { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:2px 12px; padding:14px 0; border-bottom:1px solid var(--line); }
  .history-table td { padding:0; border:0; }
  .history-table td:nth-child(1) { grid-column:1; font-size:16px; }
  .history-table td:nth-child(5) { grid-column:2; grid-row:1; text-align:right; }
  .history-table td:nth-child(2),.history-table td:nth-child(3) { grid-column:1 / -1; color:var(--muted); font-size:14px; }
  .history-table td:nth-child(4),.history-table td:nth-child(6) { display:none; }
  .history-table td:nth-child(7) { grid-column:1 / -1; font-size:14px; }
  .history-table td:nth-child(7) .muted { display:none; }
  .history-table td[colspan] { grid-column:1 / -1; }
}
.task-list .task.queue-item { display:flex; justify-content:space-between; align-items:center; grid-template-columns:none; padding:14px 0; border:0; border-bottom:1px solid var(--line); border-radius:0; background:none; box-shadow:none; }
.task-list .task.queue-item:last-child { border-bottom:0; }
.task-list .task.queue-item .task-main { flex:1 1 auto; }
.review-page .scenario-lines th,.review-page .scenario-lines td { padding:8px 10px; }
.review-page .scenario-lines td { white-space:nowrap; }
.review-page .scenario-lines thead th { white-space:normal; vertical-align:bottom; line-height:1.25; }
.review-page .scenario-lines .line-product { white-space:normal; }
/* Review on small laptops and tablets: full-width content, decision pinned like on phone. */
@media (min-width:900px) and (max-width:1199px) {
  .review-layout { grid-template-columns:minmax(0,1fr); }
  .review-decision-rail { grid-column:1; grid-row:auto; position:static; }
  .has-action-bar main { padding-bottom:96px; }
  .review-decision-rail .decision-area { position:fixed; left:var(--side); right:0; bottom:0; z-index:30; margin:0; padding:12px 40px; border:0; border-top:1px solid var(--line); border-radius:0; box-shadow:0 -6px 18px var(--dk-shadow-tint, rgba(16,24,40,.06)); background:var(--dk-surface, #fff); }
  .review-decision-rail .decision-area .eyebrow,.review-decision-rail .decision-area .decision-title,.review-decision-rail .decision-help { display:none; }
  .decision-actions { flex-direction:row; justify-content:flex-end; }
  .decision-actions .button,.decision-actions .more-menu > summary { width:auto; padding:0 20px; }
  .decision-more .more-sheet { top:auto; bottom:calc(100% + 8px); right:0; left:auto; }
}
.lines-fold > summary { cursor:pointer; display:flex; align-items:center; min-height:48px; padding:0 14px; border:1px solid var(--line); border-radius:12px; color:var(--brand); font-weight:650; }
.lines-fold[open] > summary { margin-bottom:10px; }
.admin-follow-up .task-side .task-why { text-align:right; white-space:nowrap; }
@media (max-width:899px) {
  .task-list.admin-follow-up .task.queue-item { flex-direction:column; align-items:stretch; gap:4px; }
  .task-list.admin-follow-up .task-side { justify-content:flex-start; }
  .admin-follow-up .task-side .task-why { text-align:left; }
}
.cost-field-group .web-cost-field label { margin-top:6px; }
.cost-field-group .form-fields { padding-top:0; }
.admin-overdue { margin:0 0 4px; }

/* v3 · Kelola data biaya. */
.cost-steps { grid-template-columns:repeat(3,1fr); max-width:560px; }
.cost-field-group { margin:14px 0 0; padding:0; border:0; min-width:0; }
.cost-field-group legend { padding:0; margin-bottom:6px; color:var(--muted); font-size:13px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; }
.cost-field-group .form-fields { grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:4px 16px; }
.accounting-web-form .web-cost-metadata,.accounting-web-form .control-section { margin:0 0 20px; }
.accounting-web-form .cost-grid-tools { display:grid; grid-template-columns:minmax(0,2fr) minmax(0,1fr) auto; gap:10px 16px; align-items:end; margin:10px 0 6px; padding:0; border:0; background:none; }
.accounting-web-form .completion-indicator { grid-column:1 / -1; margin:0; display:flex; gap:12px; align-items:baseline; flex-wrap:wrap; }
.accounting-web-form .processing-group-fill { margin:10px 0; padding:0; border:0; background:none; }
@media (max-width:899px) { .accounting-web-form .cost-grid-tools { grid-template-columns:minmax(0,1fr); } }
@media (max-width:760px) {
  .accounting-web-form .web-cost-grid,
  .accounting-web-form .processing-group-fill .data-table-wrap { overflow:visible; contain:none; }
  .accounting-web-form .web-cost-grid table,
  .accounting-web-form .web-cost-grid tbody,
  .accounting-web-form .processing-group-fill table,
  .accounting-web-form .processing-group-fill tbody { display:block; width:100%; }
  .accounting-web-form .web-cost-grid thead,
  .accounting-web-form .processing-group-fill thead { display:none; }
  .accounting-web-form .web-cost-grid tbody,
  .accounting-web-form .processing-group-fill tbody { display:grid; gap:12px; }
  .accounting-web-form .web-cost-grid tr,
  .accounting-web-form .processing-group-fill tr { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; padding:14px; border:1px solid var(--line); border-radius:var(--radius); background:var(--dk-surface, #fff); }
  .accounting-web-form .web-cost-grid th[scope="row"],
  .accounting-web-form .processing-group-fill th[scope="row"] { position:static; grid-column:1 / -1; min-width:0; padding:0 0 10px; border-bottom:1px solid var(--line); background:transparent; }
  .accounting-web-form .web-cost-grid th[scope="row"] small { max-width:none; white-space:normal; }
  .accounting-web-form .web-cost-grid td,
  .accounting-web-form .processing-group-fill td { display:grid; gap:5px; min-width:0; padding:0; border:0; white-space:normal; }
  .accounting-web-form .web-cost-grid td::before,
  .accounting-web-form .processing-group-fill td:not(.cost-card-action)::before { content:attr(data-label); color:var(--muted); font-size:12px; font-weight:750; line-height:1.3; }
  .accounting-web-form .web-cost-grid input,
  .accounting-web-form .processing-group-fill input { width:100%; min-width:0; }
  .accounting-web-form .processing-group-fill .cost-card-action { grid-column:1 / -1; }
  .accounting-web-form .processing-group-fill .cost-card-action .button { width:100%; margin:0; }
}

/* Audit PR 5 · quick wins. */
/* Currency code never drops below 12px (it rendered at 9px on scenario cards). */
.money .cur { font-size:max(12px,.55em); }
.review-counts-clear .done { color:var(--done); font-weight:650; }

/* Audit PR 5 · Accounting. */
/* Anchored jumps (error summary, #fields) stop clear of the sticky top bar and the submit bar. */
html { scroll-padding-top:80px; scroll-padding-bottom:calc(var(--tabbar) + 96px); }
.next-steps { display:flex; flex-wrap:wrap; gap:10px; margin:12px 0 0; padding:0; list-style:none; }
.next-steps .button { margin-top:0; }
.form-note { margin:8px 0 0; padding:10px 12px; border-left:3px solid var(--brand); border-radius:6px; background:var(--dk-brand-soft, #f4f1fb); color:var(--ink); font-size:14px; line-height:1.5; }
.cost-reference { display:block; margin-top:4px; color:var(--muted); font-size:12px; font-weight:500; }
.alert-warning h2 { margin-bottom:6px; }
.alert-warning li + li { margin-top:4px; }

/* Audit PR 5 · Administrator responsibilities: one row per role, one edit path, never wider than the screen. */
.responsibility-list { display:flex; flex-direction:column; margin:12px 0 0; padding:0; list-style:none; border-top:1px solid var(--line); }
.responsibility-row { display:flex; flex-wrap:wrap; align-items:flex-start; justify-content:space-between; gap:8px 16px; padding:14px 0; border-bottom:1px solid var(--line); }
.responsibility-main { display:flex; flex-direction:column; gap:2px; min-width:0; flex:1 1 260px; }
.responsibility-main strong { overflow-wrap:anywhere; }
.responsibility-role { color:var(--muted); font-size:13px; font-weight:700; }
.responsibility-edit { flex:0 1 auto; max-width:100%; }
.responsibility-edit[open] { flex:1 1 100%; }
.responsibility-form { display:grid; gap:6px; max-width:520px; margin-top:8px; }
.responsibility-form select,.responsibility-form input { width:100%; min-height:44px; padding:10px 12px; border:1px solid var(--border-input); border-radius:9px; font:inherit; }
.responsibility-form .button { justify-self:start; }
.empty-state-line { margin:16px 0 0; padding:16px; border:1px dashed var(--line); border-radius:var(--radius); color:var(--muted); }
.hero-next { margin:10px 0 0; font-size:14px; color:var(--ink); }
.hero-next a { font-weight:700; }

/* Audit PR 5 · App shell.
   Phone: one fixed bar at a time. List screens get the tabs; task screens (review decision,
   form submit bar, confirm action bar) get their own bar and the tabs step aside.
   Laptop: no top bar; identity and sign-out live at the bottom of the sidebar. */
.icon-sprite { position:absolute; width:0; height:0; overflow:hidden; }
.nav-icon { flex:none; width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.side-uat,.side-account { display:none; }
@media (min-width:900px) {
  .has-app-nav .topbar { display:none; }
  .side-nav a { gap:10px; }
  .side-nav a[aria-current="page"] { box-shadow:none; }
  .side-uat { display:flex; align-items:center; gap:8px; color:var(--muted); font-size:13px; }
  .side-account { display:flex; flex-direction:column; gap:2px; margin-top:8px; padding-top:10px; border-top:1px solid var(--line); }
  .side-email { margin:0; padding:0 12px; overflow:hidden; color:var(--muted); font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
  .side-logout { align-self:flex-start; min-height:36px; padding:0 12px; font-size:14px; }
}
@media (max-width:899px) {
  .has-app-nav .user-menu .user-email,.has-app-nav .user-menu form { display:none; }
  .tab-bar a { flex-direction:column; gap:3px; font-size:12px; font-weight:650; }
  .tab-bar .nav-icon { box-sizing:content-box; padding:3px 14px; border-radius:999px; }
  .tab-bar a[aria-current="page"] { box-shadow:none; }
  .tab-bar a[aria-current="page"] .nav-icon { background:var(--brand-soft); }
  .has-app-nav:has(.review-decision-rail .decision-area, .form-submit-bar, .action-bar) .tab-bar { display:none; }
  .has-app-nav:has(.review-decision-rail .decision-area, .form-submit-bar, .action-bar) main { padding-bottom:0; }
  .has-app-nav:has(.form-submit-bar, .action-bar) :is(.form-submit-bar,.action-bar) { bottom:0; }
  .has-app-nav:has(.review-decision-rail .decision-area) main { padding-bottom:96px; }
  .has-app-nav:has(.review-decision-rail .decision-area) .review-decision-rail .decision-area { bottom:0; padding-bottom:calc(10px + env(safe-area-inset-bottom)); }
  .has-app-nav .form-submit-bar { padding-bottom:calc(12px + env(safe-area-inset-bottom)); }
}
@media (max-width:899px) {
  /* Compact offer: one line of text and two small buttons, so tasks stay on the first screen. */
  .passkey-offer { margin-top:12px; }
  .passkey-offer-sheet { padding:12px 14px; gap:8px 12px; }
  .passkey-offer-sheet > div:first-child > p:not(.passkey-offer-title) { display:none; }
  .passkey-offer-title { font-size:15px; }
  .passkey-offer-actions .button { min-height:40px; padding:8px 12px; font-size:14px; }
}

/* Audit PR 5 · quick wins.
   Laptop history: customer and owner wrap so Status is never pushed off-screen. */
@media (min-width:900px) {
  .history-table td:nth-child(2) { min-width:180px; max-width:320px; white-space:normal; overflow-wrap:anywhere; }
  .history-table td.history-owner { max-width:200px; white-space:normal; overflow-wrap:anywhere; }
  .history-table td:nth-child(5) { white-space:normal; }
  .history-table .state-pill { white-space:normal; }
}
/* Master data: record actions look and feel like the rest of the app (44 px target, brand colour). */
.master-table td a:not(.button),.responsive-records td a:not(.button) { display:inline-flex; align-items:center; min-height:44px; color:var(--brand); font-weight:700; text-decoration:none; }
:root { color-scheme:light dark; }

/* Confirm pages: the final button stays reachable on phone, in one row (Batal small, confirm wide),
   and the tab bar steps aside like on other task screens. */
@media (max-width:899px) {
  .decision-submit { position:sticky; bottom:0; z-index:20; flex-direction:row; align-items:center; margin:12px -16px 0; padding:10px 16px calc(10px + env(safe-area-inset-bottom)); border-top:1px solid var(--line); background:var(--dk-glass, rgba(255,255,255,.97)); backdrop-filter:blur(8px); }
  .decision-submit .button { width:auto; }
  .decision-submit .button-secondary { flex:0 0 auto; }
  .decision-submit button[type="submit"] { flex:1 1 auto; }
  .has-app-nav:has(.decision-submit) .tab-bar { display:none; }
  .has-app-nav:has(.decision-submit) main { padding-bottom:0; }
}

/* Tugas count: how many items wait on this person (same first queue as their Tugas page). */
.nav-badge { display:inline-flex; align-items:center; justify-content:center; min-width:20px; height:20px; padding:0 6px; border-radius:999px; background:var(--brand); color:#fff; font-size:12px; font-weight:750; line-height:1; box-sizing:border-box; }
.side-nav .nav-badge { margin-left:auto; }
.tab-icon { position:relative; display:inline-flex; }
.tab-bar .nav-badge { position:absolute; top:-4px; right:2px; min-width:18px; height:18px; padding:0 5px; font-size:11px; box-shadow:0 0 0 2px #fff; }

/* Phone review: the three scenario cards become one compact comparison table
   (scenario · total · difference vs official), so the deciding facts fit on fewer screens. */
@media (max-width:899px) {
  .review-page .scenario-summary-grid { gap:0; margin-top:16px; border:1px solid var(--line); border-radius:12px; background:var(--dk-surface, #fff); overflow:hidden; }
  .review-page .scenario-summary-card { padding:10px 14px; border:0; border-radius:0; box-shadow:none; background:transparent; }
  .review-page .scenario-summary-card + .scenario-summary-card { border-top:1px solid var(--line); }
  .review-page .scenario-summary-card .eyebrow,.review-page .scenario-summary-card small { display:none; }
  .review-page .scenario-summary-official { background:var(--brand-soft); }
  .review-page .scenario-summary-card h2 { font-size:13px; font-weight:650; line-height:1.35; }
  .review-page .scenario-summary-card strong { font-size:15px; }
  .review-page .scenario-summary-card .money .cur { font-size:12px; }
  .review-page .scenario-summary-card .scenario-delta { font-size:12px; color:var(--muted); }
}
/* Accounting preview: the single Publikasikan button stays pinned on phone, like other confirm steps. */
.publish-bar { margin-top:16px; }
@media (max-width:899px) { .publish-bar { padding-top:10px; } .publish-bar button[type="submit"] { flex:1 1 auto; } }

/* Auth shell polish.
   Keep sign-in, activation, MFA and recovery visually connected to the Monokem
   header. The earlier v3 layer deliberately flattened the card, which left the
   forms looking unfinished and made the password reveal control feel detached. */
body:not(.has-app-nav) .topbar { padding-inline:24px; }
body:not(.has-app-nav) .topbar .brand { width:auto; margin:0 auto 0 0; }
.login-wrap {
  min-height:calc(100vh - 68px);
  min-height:calc(100dvh - 68px);
  align-items:start;
  padding:clamp(32px,6vh,64px) 20px 48px;
  background:
    radial-gradient(circle at 50% 0,var(--brand-soft) 0,transparent 38%),
    var(--canvas);
}
.login-card {
  width:min(100%,480px);
  padding:32px;
  border:1px solid var(--line);
  border-radius:18px;
  background:var(--surface);
  box-shadow:0 18px 48px var(--dk-shadow-tint,rgba(20,22,26,.10));
}
.auth-card-wide { width:min(100%,600px); }
.login-card > .eyebrow:first-child { margin-top:0; }
.login-card > .muted { margin-top:8px; }
.login-form input,.login-form select { min-height:52px; }
.password-field { position:relative; display:block; }
.password-field input { padding-right:108px; }
.password-toggle {
  position:absolute;
  top:4px;
  right:4px;
  min-width:96px;
  min-height:44px;
  border:0;
  background:transparent;
}
.password-toggle:hover { background:var(--brand-soft); }

@media (max-width:560px) {
  body:not(.has-app-nav) .topbar { min-height:64px; padding-inline:20px; }
  body:not(.has-app-nav) .topbar .brand { width:auto; flex:1 1 auto; }
  .theme-toggle { padding:0; }
  .theme-toggle-label { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
  .login-wrap {
    min-height:calc(100vh - 64px);
    min-height:calc(100dvh - 64px);
    padding:24px 16px 40px;
    background:var(--canvas);
  }
  .login-card { padding:24px 20px; border-radius:16px; }
  .login-card h1 { font-size:28px; }
  .auth-steps { margin-bottom:20px; }
}

/* Accounting product inputs: shared amounts above independent costing options. */
.accounting-web-form .cost-product-grid { display:grid; gap:18px; max-height:none; overflow:visible; contain:none; }
.cost-product-card { min-width:0; padding:18px; border:1px solid var(--line); border-radius:var(--radius); background:var(--dk-surface, #fff); }
.cost-product-card[hidden] { display:none; }
.cost-product-card header h3 { margin:0; overflow-wrap:anywhere; }
.cost-product-card header p { margin:6px 0 12px; }
.cost-product-card.cost-row-incomplete { border-inline-start:4px solid #c88912; }
.cost-product-card fieldset { min-width:0; padding:0; border:0; margin:16px 0 0; }
.cost-product-card legend { font-weight:750; margin-bottom:10px; }
.cost-common-fields { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:14px; }
.cost-product-card .cost-input { display:grid; gap:6px; min-width:0; }
.cost-option-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.cost-option { min-width:0; padding:14px; border:1px solid var(--line); border-radius:var(--radius); }
.cost-option h4 { margin:0 0 6px; }
.cost-option p { margin:0 0 10px; font-size:13px; }
.cost-option label { display:block; margin-bottom:6px; overflow-wrap:anywhere; }
.accounting-web-form .cost-product-grid input { width:100%; min-width:0; }
@media (max-width:540px) { .cost-product-card { padding:12px; } .cost-common-fields { grid-template-columns:minmax(0,1fr); } .cost-option-fields { gap:8px; } .cost-option { padding:10px; } }
.owner-transfer .checkbox-label { display:flex; align-items:center; gap:10px; min-height:44px; font-weight:700; }.owner-transfer input[type="checkbox"] { width:20px; height:20px; min-height:auto; margin:0; }
