/* Shared ProcureTrack theme: workspace, account access, product and document screens. */
:root{--pt-ink:#09182b;--pt-muted:#536780;--pt-line:#dce5ee;--pt-surface:#fff;--pt-canvas:#f3f6fa;--pt-navy:#102435;--pt-orange:#f17020;--pt-action:#b9480c;--pt-action-hover:#993b09;--pt-focus:#2463b4;--pt-radius:15px;--pt-shadow:0 7px 25px #12263d0a}
#workspace{color:#09182b;background:#f3f6fa}
#workspace .sidebar{background:linear-gradient(175deg,#102435 0%,#0b1b2b 100%)}
#workspace .brand-lockup{padding:27px 19px 22px;font-weight:800;letter-spacing:-.025em}
#workspace .brand-lockup strong{color:#ff751c}
#workspace .brand-lockup small{color:#a9bfce;font-weight:500;letter-spacing:0}
#workspace .workspace-switch{background:#142b3e;border-color:#355066;border-radius:10px}
#workspace .app-nav{gap:4px}
#workspace .app-nav button,#workspace .sidebar-bottom button{border-radius:9px;min-height:43px}
#workspace .app-nav button.active,#workspace .sidebar-bottom button.active{background:var(--pt-action);color:#fff;box-shadow:inset 3px 0 var(--pt-orange),0 6px 18px #ec641725}
#workspace .nav-divider{color:#a6bbcc;letter-spacing:.13em}
#workspace .app-topbar{height:auto;min-height:92px;padding:18px 36px;border-color:#e1e8ef;box-shadow:0 1px 7px #152b3d09}
#workspace .app-topbar h1{font-size:clamp(1.4rem,2.1vw,2rem);letter-spacing:-.04em;color:#07172a}
#workspace .app-topbar .eyebrow{color:#e45b11;letter-spacing:.13em}
#workspace .app-body{padding:30px 36px 60px}
#workspace .view-intro{padding:4px 0 8px;margin-bottom:19px}
#workspace .view-intro h2{font-size:clamp(1.5rem,2.4vw,2.15rem);line-height:1.12;letter-spacing:-.045em;color:#07172a;margin-bottom:8px}
#workspace .view-intro p{font-size:.94rem;color:#536780;line-height:1.55}
#workspace .panel,#workspace .metric{border:1px solid #dce5ee;border-radius:15px;box-shadow:0 7px 25px #12263d0a}
#workspace .panel{padding:25px;margin-bottom:18px}
#workspace .panel h2{color:#09182b;font-size:1.19rem;letter-spacing:-.025em}
#workspace .panel h3{color:#152c46}
#workspace .panel-heading p,#workspace .panel>p{color:#586d84}
#workspace .app-body button:not(.table-action):not(.text-command):not(.secondary-command):not(.danger-command):not(.assistant-prompts button),#workspace .primary-command{background:var(--pt-action);border-color:var(--pt-action);color:#fff}
#workspace .table-action,#workspace .secondary-command{border-radius:8px;border-color:#cbd8e4;color:#173454;background:#fff}
#workspace .table-action:hover,#workspace .secondary-command:hover{background:#fff3eb;border-color:#f2ae84;color:#a5450d}
#workspace input:not([type="checkbox"]):not([type="radio"]),#workspace select,#workspace textarea{border-color:#cdd9e5;border-radius:8px;min-height:44px;color:#162c45}
#workspace input:focus-visible,#workspace select:focus-visible,#workspace textarea:focus-visible{outline:3px solid var(--pt-focus);outline-offset:2px}
#workspace th{background:#f2f6fa;color:#526984;letter-spacing:.04em}
#workspace td{color:#243c58;border-bottom-color:#e7edf2}
#workspace .metric strong{color:#08192d;font-size:1.45rem}
#workspace .metric span{color:#587089}
#workspace .records li{border-top-color:#e4ebf2}
#workspace [data-app-view="quotes"]>.panel:last-child,#workspace #approval-detail,#workspace #purchasing-fulfilment{background:linear-gradient(180deg,#fff 0%,#fbfcfe 100%)}
#workspace #comparison-note{padding:12px 16px;border:1px solid #f4d1b8;border-radius:9px;background:#fff8f3;color:#6e432c;font-size:.86rem}
#workspace .comparison-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px;margin:18px 0 22px}
#workspace .comparison-card{display:flex;flex-direction:column;gap:12px;padding:18px;border:1px solid #dce5ee;border-radius:12px;background:#fff;min-width:0;box-shadow:0 3px 12px #1b355008}
#workspace .comparison-card.selected{border:2px solid #f26b1b;background:#fffaf6;padding:17px}
#workspace .comparison-card-top{display:flex;justify-content:space-between;align-items:start;gap:8px;color:#0a1a2f}
#workspace .comparison-card-top strong{font-size:.96rem;overflow-wrap:anywhere}
#workspace .selected-badge{padding:4px 8px;border-radius:99px;background:#fff0e5;color:#b54a0b;font-size:.7rem;font-weight:800}
#workspace .comparison-card-total{font-size:1.58rem;letter-spacing:-.04em;color:#071629;font-variant-numeric:tabular-nums}
#workspace .comparison-card dl{margin:0}
#workspace .comparison-card dl>div{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-top:1px solid #e6edf3;font-size:.77rem}
#workspace .comparison-card dt{color:#627890}
#workspace .comparison-card dd{margin:0;color:#243c56;text-align:right;overflow-wrap:anywhere}
#workspace #comparison-lines{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px;margin:14px 0}
#workspace #comparison-lines section{border:1px solid #e0e8f0;border-radius:10px;background:#fff;padding:14px}
#workspace #comparison-lines h4{margin:0 0 9px;color:#142c47}
#workspace #comparison-lines ul{margin:0;padding-left:18px;color:#445d78;font-size:.82rem;line-height:1.7}
#workspace .approval-stage-flow{list-style:none;display:grid;gap:10px;padding:0;margin:20px 0 26px}
#workspace .approval-stage-flow li{display:flex;align-items:center;gap:14px;padding:14px 16px;border:1px solid #dbe5ee;border-radius:11px;background:#fff}
#workspace .approval-stage-flow li.current{border-color:#ffbd95;background:#fff7f0}
#workspace .approval-stage-flow li.complete{border-color:#bde4cc;background:#f4fbf6}
#workspace .stage-mark{display:grid;place-items:center;flex:none;width:36px;height:36px;border-radius:50%;background:#e9eef3;color:#5b7087;font-weight:800}
#workspace .complete .stage-mark{background:#16984b;color:#fff}
#workspace .current .stage-mark{background:#ed681b;color:#fff}
#workspace .stage-copy{display:grid;gap:3px;min-width:0;flex:1}
#workspace .stage-copy strong{color:#11253e}
#workspace .stage-copy small{color:#62768d;font-size:.76rem}
#workspace .stage-state{font-size:.72rem;font-weight:800;color:#64788c;white-space:nowrap}
#workspace .complete .stage-state{color:#14723a}
#workspace .current .stage-state{color:#b44b12}
#workspace .order-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 18px}
#workspace .order-overview-card{display:grid;gap:7px;padding:18px 20px;border:1px solid #dfe7ef;border-radius:12px;background:#fff;box-shadow:0 5px 18px #12263d09}
#workspace .order-overview-card:nth-child(1){background:#fff8f3;border-color:#f7d2b8}
#workspace .order-overview-card:nth-child(2){background:#f2f8ff;border-color:#c6ddfa}
#workspace .order-overview-card:nth-child(3){background:#f2faf4;border-color:#c6e8d0}
#workspace .order-overview-card span{color:#526b85;font-size:.79rem;font-weight:700}
#workspace .order-overview-card strong{color:#08192e;font-size:1.75rem;line-height:1;font-variant-numeric:tabular-nums}
#workspace .approved-order-ready{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 24px;margin:0 0 18px;border:1px solid #bfe4cb;border-radius:14px;background:linear-gradient(110deg,#f0fbf3,#fff);box-shadow:0 5px 18px #12263d09}
#workspace .approved-order-ready[hidden]{display:none}
#workspace .ready-eyebrow{color:#168245;font-size:.67rem;letter-spacing:.13em;font-weight:850}
#workspace .approved-order-ready h3{margin:5px 0;color:#0b2539;font-size:1.2rem}
#workspace .approved-order-ready p{margin:0;font-size:.82rem}
#workspace #purchasing-fulfilment{border-top:3px solid #f17020}
#workspace #purchasing-fulfilment .fulfilment-line{border-bottom-color:#e5edf3}
#workspace .fulfilment-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0 24px}
#workspace .fulfilment-summary-card{display:grid;gap:8px;padding:18px;border:1px solid #dce6f0;border-radius:11px;background:#f8fafc}
#workspace .fulfilment-summary-card:nth-child(2){background:#f2f7ff;border-color:#cbdffc}
#workspace .fulfilment-summary-card:nth-child(3){background:#effaf2;border-color:#c8e9d1}
#workspace .fulfilment-summary-card span{font-size:.76rem;color:#5a718a;font-weight:700}
#workspace .fulfilment-summary-card strong{font-size:1.6rem;color:#08192c;line-height:1}
@media(max-width:760px){#workspace .app-topbar{min-height:70px;padding:12px 16px}#workspace .app-body{padding:20px 16px 40px}#workspace .panel{padding:17px}#workspace .order-overview{grid-template-columns:1fr 1fr}#workspace .order-overview-card:last-child{grid-column:1/-1}}
@media(max-width:520px){#workspace .comparison-cards,#workspace .fulfilment-summary{grid-template-columns:1fr}#workspace .approval-stage-flow li{flex-wrap:wrap}#workspace .stage-state{margin-left:50px}#workspace .approved-order-ready{align-items:flex-start;flex-direction:column}}

/* Shared controls and readable forms across every workspace view. */
#workspace .app-body button,#workspace .primary-command{min-height:40px;border-radius:8px;padding:10px 14px;font-size:.82rem}
#workspace .app-body .table-action{display:inline-flex;align-items:center;min-height:34px;padding:6px 9px;margin:2px 4px 2px 0;border:1px solid var(--pt-line);font-size:.75rem;line-height:1.3}
#workspace .app-body .text-command{background:none;border:0;color:var(--pt-action);padding:6px 0;min-height:36px}
#workspace .app-body button:enabled:hover:not(.secondary-command):not(.table-action):not(.text-command):not(.danger-command):not(.assistant-prompts button),#workspace .primary-command:hover{background:var(--pt-action-hover);border-color:var(--pt-action-hover)}
#workspace :focus-visible,#entry-main :focus-visible,dialog :focus-visible{outline:3px solid var(--pt-focus);outline-offset:3px}
#workspace .sidebar :focus-visible{outline-color:#ffbf94}
#workspace .app-body .danger-command{background:#ac302a;border-color:#ac302a;color:#fff}
#workspace .app-body .danger-command:hover{background:#872420}
#workspace .app-body .table-action.danger{color:#9f2925;border-color:#e3b5b2;background:#fff6f5}
#workspace .danger-zone{border:1px solid #e7bdb9;background:#fffafa}
#workspace .danger-zone h2{color:#8f2e28}
#workspace .form-panel{border-top:3px solid #ffc399}
#workspace label{color:#344d68;font-weight:650;line-height:1.45}
#workspace form{gap:16px;align-items:start}
#workspace form label{align-content:start}
#workspace .form-actions{padding-top:13px;border-top:1px solid #e9eef4;flex-wrap:wrap;gap:10px}
#workspace textarea{min-height:96px;resize:vertical}
#workspace input[type="checkbox"],#workspace input[type="radio"]{width:19px;height:19px;min-height:19px;flex:none;accent-color:var(--pt-action);padding:0}
#workspace .workspace-delete-confirm input[type="checkbox"]{width:24px;height:24px;min-height:24px}
#workspace #approval-consent-label{align-items:center}
#workspace input:disabled,#workspace select:disabled,#workspace textarea:disabled{background:#f1f4f8;color:#65758a;cursor:not-allowed}
#workspace input:read-only:not([type="checkbox"]){background:#f7f9fc}
#workspace fieldset{min-width:0;border:1px solid var(--pt-line);border-radius:10px;padding:16px;background:#fafbfd}
#workspace legend{padding:0 6px;font-size:.82rem;font-weight:750;color:#243d58}
#workspace fieldset p{font-size:.82rem;color:var(--pt-muted)}
#workspace .panel-heading{align-items:flex-start;flex-wrap:wrap;row-gap:12px;margin-bottom:18px}
#workspace .panel-heading>div{min-width:0}
#workspace .view-intro p{max-width:980px}
#workspace .subtle,#workspace .records small,#workspace .attention-line{color:var(--pt-muted)}
#workspace .table-wrap,#workspace .po-table-wrap{border:1px solid #e3eaf1;border-radius:10px;background:#fff;max-width:100%;overscroll-behavior-x:contain}
#workspace .po-table-wrap{margin:0}
#workspace th,#workspace td{padding:13px 12px;line-height:1.5}
#workspace th{font-size:.68rem}
#workspace td{font-size:.8rem}
#workspace tbody tr:last-child td{border-bottom:0}
#workspace tbody tr:hover td{background:#f8fafc}
#workspace .empty-cell{padding:28px;color:#61748b;background:#fafbfd}
#workspace .register-tools{gap:12px;padding:16px;background:#f5f8fb;border:1px solid #e2eaf2;border-radius:12px}
#workspace .register-tools label{flex:1 1 150px;min-width:0}
#workspace .register-tools label:first-child{flex:2 1 250px;max-width:none}
#workspace .po-metrics{gap:10px;margin:18px 0}
#workspace .po-metrics span{background:#fff8f2;border:1px solid #f4d9c6;color:#6d4227;border-radius:8px;padding:10px 14px}
#workspace .po-metrics strong{font-variant-numeric:tabular-nums}
#workspace .po-total-box{background:#f0f8ff;border-color:#d0e2f4;border-radius:9px;flex-wrap:wrap}
#workspace .po-total-box strong{color:#1e4d79}
#workspace .table-pager{color:var(--pt-muted);flex-wrap:wrap;row-gap:12px}
#workspace .metric{min-height:126px;padding:22px;gap:10px;border-top:3px solid #f8ba92}
#workspace .metric:nth-child(2){background:#f5f9ff;border-top-color:#83b4eb}
#workspace .metric:nth-child(3){background:#fff8f2;border-top-color:#efaa76}
#workspace .metric:nth-child(4){background:#f4fbf7;border-top-color:#8bcba8}
#workspace .metric strong{font-size:clamp(1.15rem,1.7vw,1.6rem);line-height:1.25}
#workspace .division-row,#workspace .open-row{border-color:#e6edf4;padding:14px 0;align-items:center}
#workspace .division-row small,#workspace .open-row small{color:#62768c}
#workspace .dashboard-grid{align-items:start}
@media(min-width:1280px){#workspace .dashboard-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:761px) and (max-width:1279px){#workspace .dashboard-grid>.panel:last-child{grid-column:1/-1}}
#workspace .status-pill{border-radius:99px;padding:5px 10px;background:#edf2f8;color:#405a77;font-weight:700;white-space:nowrap}
#workspace .status-pill.approved,#workspace .status-pill.issued{background:#e7f5ec;color:#176436}
#workspace .status-pill.finance_review,#workspace .status-pill.director_review{background:#fff0e4;color:#8f3b0a}
#workspace .status-pill.returned{background:#fff0ee;color:#962e26}
#workspace .records li{padding:15px 0;overflow-wrap:anywhere}
#workspace .upload-unavailable{background:#fff8ed;border-color:#edcc99;color:#78501f;border-radius:10px}
#workspace .account-grid{gap:20px;align-items:start}
#workspace .team-member{align-items:flex-start}
#workspace .team-member select{max-width:180px}
#workspace .ownership-transfer{border-color:var(--pt-line);border-radius:10px;background:#fafbfd}
#workspace #domain-record{padding:16px;border:1px solid #d4e3f2;border-radius:10px;background:#f5f9ff}
#workspace .assistant-panel{max-width:none}
#workspace .assistant-prompts button{background:#fff6ee;border:1px solid #f0ceba;color:#8f3c13;border-radius:99px;text-align:left;line-height:1.5}
#workspace .assistant-thread{border:1px solid #dde6f0;border-radius:12px;background:#f7f9fc;padding:20px;align-content:start}
#workspace .assistant-user{background:#18354e;color:#fff;border-radius:12px 12px 3px 12px;max-width:85%;padding:13px 16px}
#workspace .assistant-answer{background:#fff;border:1px solid #dfe7f0;color:#243e58;border-radius:12px 12px 12px 3px;padding:15px 18px}
#workspace .locked-view{border-color:var(--pt-line);border-radius:18px;box-shadow:var(--pt-shadow);padding:40px}
#workspace .locked-symbol{background:#fff0e4;color:var(--pt-action);border-radius:12px;width:54px;height:54px}
#workspace .workspace-switch .eyebrow{letter-spacing:.1em;color:#aec2d2}
#workspace .workspace-plan-row button{border-color:#946146;background:#283746;color:#ffd7bb;border-radius:6px;min-height:32px}
#workspace .icon-button{background:#fff;border-color:#cbd8e5;color:#16324c;border-radius:9px;min-height:44px}
#workspace .mobile-menu-close{background:#203b50;border:1px solid #61778a;color:#fff}
#workspace .menu-backdrop{background:#07182bb3;border:0;border-radius:0}

/* Sign-in, registration, recovery, verification and workspace creation. */
#entry-main{background:#f7f9fc;color:var(--pt-ink)}
#entry-main .entry-pane{background:linear-gradient(165deg,#fff 55%,#fff7f0);padding-top:36px}
#entry-main .entry-header a{color:var(--pt-ink)}
#entry-main .entry-header a strong{color:#e96318}
#entry-main .entry-header .desktop-access-link{color:var(--pt-muted);font-size:.76rem}
#entry-main .entry-card{padding:28px;background:#fff;border:1px solid var(--pt-line);border-radius:18px;box-shadow:0 16px 45px #1024350c}
#entry-main .entry-card h1{color:var(--pt-ink);font-size:clamp(1.9rem,2.5vw,2.55rem);letter-spacing:-.045em;line-height:1.1}
#entry-main .eyebrow{color:var(--pt-action);letter-spacing:.12em;font-size:.65rem}
#entry-main .entry-card p{color:var(--pt-muted)}
#entry-main .entry-card label{color:#344d68}
#entry-main .entry-card input{min-height:46px;border:1px solid #cdd9e5;border-radius:9px;background:#fff;padding:11px 13px}
#entry-main .entry-card form>button[type="submit"]{background:var(--pt-action);border-color:var(--pt-action);min-height:46px;border-radius:9px}
#entry-main .entry-card form>button[type="submit"]:hover{background:var(--pt-action-hover)}
#entry-main .entry-card>button,#entry-main .records button{background:#fff;color:#284762;border:1px solid #cbd8e5;border-radius:8px;min-height:42px}
#entry-main .auth-tabs{padding:4px;border-radius:10px;background:#f2f6fa;border-color:#e2e9f1;gap:4px}
#entry-main .auth-tabs button{min-height:40px;border-radius:7px;color:#536780}
#entry-main .auth-tabs button.active{color:#913c0f;box-shadow:0 2px 6px #12263d12;background:#fff}
#entry-main .auth-options{flex-wrap:wrap}
#entry-main .auth-options button{color:var(--pt-action);min-height:32px;line-height:1.5}
#entry-main .entry-side{background:radial-gradient(ellipse at 100% 0,#27475f 0%,transparent 60%),linear-gradient(165deg,#142d42,#0b1b2b)}
#entry-main .entry-side::before{inset:auto -140px -250px auto;width:500px;height:500px;border-radius:50%;background:linear-gradient(135deg,#f58e492e,#f1702005)}
#entry-main .entry-steps{color:#ffc49c;letter-spacing:.1em;line-height:1.8}
#entry-main .entry-side-title{color:#fff;letter-spacing:-.045em;line-height:1.1}
#entry-main .entry-side-subtitle{color:#bacbda}
.loading-panel{background:var(--pt-canvas);color:var(--pt-ink)}
.loading-panel p{color:var(--pt-muted)}
.loading-panel button{background:var(--pt-action);border-color:var(--pt-action);border-radius:9px;min-height:44px}
#extraction-dialog{border:1px solid var(--pt-line);border-radius:18px;box-shadow:0 25px 90px #07182b40;color:var(--pt-ink);padding:28px}
#extraction-dialog::backdrop{background:#07182ba6}
#extraction-output{padding:16px;background:#f5f8fb;border:1px solid var(--pt-line);border-radius:10px;color:#344d68;font-size:.8rem}
#extraction-dialog button{background:var(--pt-action);border-color:var(--pt-action);border-radius:8px;margin:4px;min-height:40px}
#extraction-close{background:#fff!important;color:#304e6b!important;border-color:#cbd8e5!important}

/* Product and desktop pages share the application's palette and cards. */
.product-page{--ink:var(--pt-ink);--muted:var(--pt-muted);--accent:var(--pt-action);--orange:var(--pt-orange);--paper:#fbfcfe;--line:var(--pt-line);--soft:var(--pt-canvas);--radius:18px}
.product-page .header{border-bottom:1px solid #e5ebf2}
.product-page .hero{background:radial-gradient(ellipse at 100% 0,#fff0e2 0,transparent 55%)}
.product-page .preview,.product-page .plan,.product-page .plan-compare{box-shadow:var(--pt-shadow);border-color:var(--pt-line)}
.product-page .preview{border-top:3px solid #f6ac7c}
.product-page .step{border:1px solid #f1ceb5;background:#fff3e9}
.product-page .band{background:linear-gradient(130deg,#132c41,#0b1b2b)}
.product-page .recommended{border:2px solid var(--pt-orange);background:linear-gradient(#fff8f3,#fff 35%)}
.product-page .button{border-radius:9px;min-height:46px}
.desktop-page{background:radial-gradient(ellipse at 95% 0,#ffe9d6,transparent 50%),var(--pt-canvas);color:var(--pt-ink)}
.desktop-page main{border-color:var(--pt-line);border-radius:20px;box-shadow:0 16px 50px #1024350c}
.desktop-page header{border-bottom:1px solid var(--pt-line)}
.desktop-page .brand strong{color:#e96318}
.desktop-page .eyebrow,.desktop-page .back{color:var(--pt-action)}
.desktop-page button,.desktop-page .actions a{background:var(--pt-action)}
.desktop-page button:hover,.desktop-page .actions a:hover{background:var(--pt-action-hover)}
.desktop-page .actions a:first-child{background:var(--pt-navy)}
.desktop-page .platform-note{background:#f0f6fd;border:1px solid #d9e6f3;color:#365777}
.desktop-page .instructions{border-top-color:var(--pt-line)}

/* Document screen chrome; printed order layout stays on its existing print rules. */
@media screen{
 .document-page{background:var(--pt-canvas);color:var(--pt-ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,sans-serif}
 .document-page .toolbar{max-width:960px;padding:12px 20px;gap:12px;flex-wrap:wrap}
 .document-page .toolbar a{color:var(--pt-action);font-weight:650;text-underline-offset:4px}
 .document-page .toolbar button,.document-page .signing-controls button{background:var(--pt-action);color:#fff;border:1px solid var(--pt-action);border-radius:9px;padding:12px 16px;min-height:44px;font-weight:700;cursor:pointer}
 .document-page .toolbar button:hover{background:var(--pt-action-hover)}
 .document-page .sheet{max-width:920px;border:1px solid var(--pt-line);border-radius:15px;box-shadow:0 16px 50px #10243512}
 .document-page .heading{border-color:var(--pt-orange)}
 .document-page .heading h1{color:var(--pt-ink)}
 .document-page .label,.document-page .footer{color:var(--pt-muted)}
 .document-page .amount{border-color:var(--pt-line);background:#f8fafc;padding:18px;border-radius:8px}
 .document-page .signing-controls{border:1px solid var(--pt-line);border-radius:14px;padding:24px}
 .document-page .signing-controls select{padding:10px;border:1px solid #cdd9e5;border-radius:8px}
 .document-page input[type="checkbox"]{width:19px;height:19px;accent-color:var(--pt-action)}
}
@media(max-width:1050px){#workspace .metric-grid{gap:14px}#workspace .team-form{grid-template-columns:1fr}#workspace .account-grid{grid-template-columns:1fr}}
@media(max-width:760px){
 #workspace .app-body button,#workspace .app-body .table-action,#workspace .app-body .text-command{min-height:44px}
 #workspace .metric{padding:17px;min-height:115px}
 #workspace .table-wrap,#workspace .po-table-wrap{max-width:100%;margin:0}
 #workspace .panel-heading,#workspace .view-intro{gap:12px}
 #workspace .assistant-form{flex-wrap:wrap}
 #workspace .assistant-form input{flex-basis:100%}
 #workspace .sidebar{height:100dvh;min-height:0}
 #entry-main .entry-card{padding:24px;margin-top:28px}
 .document-page .sheet{margin:12px;border-radius:12px}
}
@media(max-width:520px){
 #workspace .panel{padding:16px}
 #workspace .metric-grid{grid-template-columns:1fr 1fr;gap:10px}
 #workspace .metric{padding:14px}
 #workspace .register-tools{padding:12px}
 #workspace .form-actions{align-items:stretch}
 #workspace .form-actions button{flex:1 1 auto}
 #workspace .team-member{flex-wrap:wrap}
 #workspace .team-member select{max-width:none}
 #workspace .assistant-user,#workspace .assistant-answer{max-width:100%}
 #workspace .assistant-thread{padding:12px}
 #workspace .locked-view{padding:28px 20px}
 #entry-main .entry-pane{padding:22px 16px 36px}
 #entry-main .entry-card{padding:22px 18px}
 #entry-main .entry-header{gap:14px}
 #extraction-dialog{width:calc(100vw - 24px);padding:18px}
}
