.fn-work {color:#20242b; display:grid; gap:16px; line-height:1.65; min-width:0; text-align:start}
.fn-work *, .fn-work *::before, .fn-work *::after {box-sizing:border-box}
.fn-layout {display:grid; grid-template-columns:minmax(0,1.8fr) minmax(200px,1fr); gap:12px; align-items:stretch}
.fn-box, .fn-metric {border:1px solid #dce1e7; background:#fff; border-radius:13px; min-width:0}
.fn-box {padding:16px 18px}
.fn-title {font-size:1rem; line-height:1.45; margin:0 0 12px; color:inherit}
.fn-metrics {display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px}
.fn-metric {padding:12px 14px; border-inline-start:4px solid #3478bc; display:grid; color:#394452; gap:2px}
.fn-metric strong {font-size:1.7rem; line-height:1.3; color:#17212b}
.fn-metric.teal {border-inline-start-color:#21858b}.fn-metric.green {border-inline-start-color:#26905d}
.fn-metric.amber {border-inline-start-color:#d99a09}.fn-metric.red {border-inline-start-color:#bc3d54}
.fn-table-wrap {width:100%; overflow:auto}
.fn-table {border-collapse:collapse; width:100%; font-size:.84rem; text-align:start}
.fn-table th,.fn-table td {padding:8px 9px; border:0; border-block-end:1px solid #e9ebef; text-align:start; vertical-align:middle}
.fn-table th {color:#424b55; background:#f3f4f6; white-space:nowrap}
.fn-table tr:last-child td {border-block-end:0}
.fn-tag {padding:3px 9px; border-radius:7px; display:inline-block; background:#edf1f6; color:#344555; font-size:.79rem; white-space:nowrap}
.fn-tag.warn {background:#fff0c8; color:#795100}.fn-tag.ok {background:#e3f4eb;color:#205f41}
.fn-queue-filters {display:flex; flex-wrap:wrap; gap:6px; margin-block-end:12px}
.fn-queue-filters .fn-btn[aria-pressed="false"] {background:#fff; color:#424b55; border-color:#dce1e7}
.fn-case-identity {display:grid; justify-items:start; overflow-wrap:anywhere}
.fn-case-identity .fn-link {max-width:100%; text-align:start; overflow-wrap:anywhere}
.fn-case-status {display:flex; flex-wrap:wrap; gap:4px}
.fn-case-status .fn-tag {white-space:normal}
.fn-case-status .fn-late {color:#872f34; background:#ffe6e6}
.fn-quality-notice {padding:10px 14px; margin-block-end:12px; border-inline-start:4px solid #ae353b; border-radius:7px; background:#fff0ef; color:#74272c}
.fn-quality-notice p {margin-block:3px 0}
@media (max-width:740px) {
  .fn-manager-queue .fn-table-wrap {overflow:visible}
  .fn-manager-queue .fn-table, .fn-manager-queue tbody {display:block}
  .fn-manager-queue thead {position:absolute; inline-size:1px; block-size:1px; overflow:hidden; clip-path:inset(50%)}
  .fn-manager-queue tbody tr {display:grid; padding:8px 0; border-block-start:1px solid #dce1e7}
  .fn-manager-queue tbody td {display:grid; grid-template-columns:minmax(70px,32%) minmax(0,1fr); gap:8px; border:0; overflow-wrap:anywhere}
  .fn-manager-queue tbody td::before {content:attr(data-label); color:#5e6977; font-size:.8rem}
}
.fn-dark, .workspace-authenticated .fn-box.fn-dark {color:#f5f5f5;background:#232833;border-color:#343a46}
.fn-pulse {border-block-start:1px solid #4b505a;display:flex;align-items:center;justify-content:space-between;gap:8px;padding-block:9px}
.fn-pulse small {display:block;color:#e2e4e9}
.fn-btn,.fn-link,.fn-work select,.fn-form input {font:inherit}
.fn-btn {cursor:pointer;border:1px solid #e3ab00;border-radius:7px;padding:7px 13px;background:#ffcb22;color:#1c2028;font-weight:700;min-height:38px}
.fn-link {color:#254b81;text-decoration:underline;text-underline-offset:3px;cursor:pointer;background:transparent;border:0;padding:5px;font-weight:700}
.fn-btn:disabled {opacity:.6;cursor:wait}
.fn-steps {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
.fn-step {text-align:center;display:grid;gap:4px;align-content:start}
.fn-step strong {border:1px solid #f1d78a;background:#fff5d6;color:#453817;justify-self:center;width:39px;height:39px;border-radius:50%;display:grid;place-items:center}
.fn-step small {line-height:1.5;margin-top:5px}
.fn-full {grid-column:1/-1}.fn-meta {display:flex;gap:5px;flex-wrap:wrap;margin-bottom:12px}
.fn-empty {padding:6px 0;margin:0;color:#5e6977;font-size:.91rem}.fn-dark .fn-empty {color:#d8dbe0}
.fn-subgrid,.fn-form {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-block:12px}
.fn-form label {display:grid;gap:4px;font-size:.87rem;color:#434d59}
.fn-form input,.fn-work select {display:block;color:#222b38;background:white;border:1px solid #bfc8d3;border-radius:7px;padding:8px;width:100%;min-height:40px;min-width:0}
.fn-form button {justify-self:start;align-self:end}.fn-feedback {grid-column:1/-1;color:#674b10;margin:0}
.fn-work :focus-visible {outline:3px solid #326eae;outline-offset:2px}
.sidebar .brand img[src$="factorno-brand.webp"] {object-fit:contain;width:min(100%,190px);max-height:99px;flex:none}
@media print {.fn-work .fn-btn,.fn-work .fn-form {display:none}.fn-box,.fn-metric {break-inside:avoid}.fn-work {color:#111}}
@media(max-width:1000px){.fn-layout{grid-template-columns:minmax(0,1fr) minmax(170px,.85fr)}.fn-box{padding:12px}}
@media(max-width:740px){.fn-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.fn-layout,.fn-subgrid{grid-template-columns:minmax(0,1fr)}.fn-full{grid-column:auto}.fn-table th,.fn-table td{padding:6px}.fn-work{gap:10px}.fn-box{padding:12px 10px}}
@media(max-width:520px){.fn-form{grid-template-columns:minmax(0,1fr)}.fn-metric{padding:9px}.fn-btn,.fn-work select,.fn-form input{min-height:44px}.fn-title{font-size:.98rem}.fn-step small{font-size:.7rem}.fn-steps{gap:2px}.sidebar .brand img[src$="factorno-brand.webp"]{width:116px;max-height:58px}}
#workspace:has(.fn-work) > .summary-grid, #workspace:has(.fn-work) > .guided-panel,
#workspace:has(.fn-work) > .diagnostic-shell, #workspace:has(.fn-work) #resource-raw,
#workspace:has(.fn-work) #resource-continuation, #workspace:has(.fn-work) .result-meta {display:none}
.fn-form textarea {width:100%;min-height:64px;padding:8px;border:1px solid #bfc8d3;border-radius:7px;font:inherit;resize:vertical}
.fn-form .fn-policy {display:flex;align-items:center;gap:9px;grid-column:1/-1}.fn-policy input {width:19px;min-height:19px}
.fn-offer-actions {margin-block:9px}.fn-work summary {cursor:pointer;padding:5px 0}.fn-applicant {padding:8px;border-block-start:1px solid #e6e8eb}
.fn-advice {border-color:#e2deef}.fn-advice small{color:#65557f}
.fn-cal-nav {display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.fn-calendar-cell {display:grid;gap:3px;justify-items:start}.fn-tag.reserved{background:#303746;color:white}
.fn-tag.slot{background:#fff1be;color:#584408}.fn-tag.unknown{background:#f0f1f4;color:#666d78}

.fn-order-nav {display:flex;flex-wrap:wrap;gap:.45rem;margin-block:1rem}
.fn-order-nav button[aria-pressed="true"] {background:#ffcb37;color:#171715;border-radius:.4rem;padding-inline:.75rem}
.fn-subgrid:has(> [hidden]) {display:block}
.fn-subgrid > [hidden] {display:none}
.mobile-workspaces {display:none}
body.password-authenticated {background:#f5f6f7}
.password-authenticated .topbar {background:white;border:1px solid #e6e7eb;border-radius:13px;padding:12px 18px;margin-block-end:10px}
.password-authenticated .notice {display:none}
.password-authenticated .fn-box,.password-authenticated .panel {border-color:#e0e3e8;box-shadow:0 2px 9px rgba(25,32,43,.035)}
.password-authenticated .fn-metric {min-height:76px}
.ref-order {border-block-start:1px solid #e4e6ea;padding:13px 2px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 8px}
.ref-order h4,.ref-facts{margin:0}.ref-facts,.ref-order>small,.ref-track,.ref-progress{grid-column:1/-1}
.ref-track{display:flex;justify-content:space-between;list-style:none;padding:0;margin:12px 0 4px;gap:2px}
.ref-track li{flex:1;text-align:center;color:#6b7180;font-size:.73rem;line-height:1.4}
.ref-track li:before{content:"";height:5px;background:#e3e5e8;display:block;border-radius:3px;margin-block-end:6px}
.ref-track li.reached:before{background:#e8b627}.ref-track li[aria-current]{color:#252629;font-weight:bold}
.ref-progress{width:100%;height:7px;accent-color:#278965}.ref-action{width:100%;text-align:start;padding:10px;background:#fff6d6;color:#564014;border:1px solid #ead897;border-radius:8px;margin:5px 0;cursor:pointer;font:inherit}
.ref-query,.authority-tools{display:flex;align-items:end;gap:8px;flex-wrap:wrap}.ref-query input,.authority-tools input,.authority-tools select,.ref-sample-picker{font:inherit;padding:9px 12px;border:1px solid #c9cdd2;border-radius:7px;max-width:100%;min-width:0}
.ref-query input{flex:1}.authority-tools label{display:grid;gap:4px}.ref-results,.ref-history{margin-block-start:12px}.ref-results{display:grid;gap:8px}
.fn-box:has(>.fn-form) summary,.fn-work details>summary{cursor:pointer;font-weight:700}.fn-work details{background:white;border:1px solid #dce1e7;border-radius:10px;padding:10px 14px}
.password-authenticated .resource-visual {min-width:0}.resource-visual .fn-box{margin-block:5px}
@media(max-width:740px){.mobile-workspaces{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:10px;padding:8px 12px;font-weight:bold;background:#24282e;color:white;border-radius:9px;margin-block:6px}.mobile-workspaces select{width:100%;min-height:42px;font:inherit;font-size:13px;background:white;color:#20242a;border-radius:6px;border:0;padding-inline:6px}body .sidebar #resource-tabs{display:none}.password-authenticated .topbar{padding:10px 12px}.ref-track li{font-size:.66rem}}

.ref-enrol{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.ref-enrol-step{padding:10px;border:1px solid #e3e5e7;border-radius:9px;display:grid;gap:5px;justify-items:start}
body.workspace-authenticated .access-panel{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:0;border:0;background:transparent;box-shadow:none;min-height:0}
body.workspace-authenticated .access-panel .panel-heading,body.workspace-authenticated .access-panel .technical-access,body.workspace-authenticated .access-panel #otp-login-option,body.workspace-authenticated .access-panel #otp-option-help,body.workspace-authenticated .access-panel #password-login-message,body.workspace-authenticated .identity-gate,body.workspace-authenticated .password-login-form{display:none}
body.workspace-authenticated .access-panel .auth-options{margin:0}
body.workspace-authenticated .access-panel #access-message{margin:0;min-height:0;font-size:.8rem;order:-1}
body.workspace-authenticated #workspace>.summary-grid{display:none}
body.workspace-authenticated #workspace .diagnostic-shell,body.workspace-authenticated #resource-raw{margin-block:10px}
body:not(.workspace-authenticated) .workspace-navigation,body:not(.workspace-authenticated) .role-navigation,body:not(.workspace-authenticated) #workspace {display:none}
body:not(.workspace-authenticated) #main-content{max-width:920px}
@media(max-width:740px){.app-shell{display:block}.sidebar{position:relative;top:auto;height:auto;width:100%;padding:10px 12px;overflow:visible}.sidebar .workspace-navigation{width:100%;min-width:0}.sidebar .sidebar-heading,.sidebar .environment{display:none}.ref-enrol{grid-template-columns:repeat(2,minmax(0,1fr))}}

.workspace-tools{display:flex;align-items:center;gap:8px;flex:1;justify-content:flex-end}.workspace-tools input{font:inherit;border:1px solid #dce0e5;border-radius:7px;background:#f6f7f9;padding:7px 12px;min-width:190px}.visually-hidden{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden;white-space:nowrap}
.ref-order-context{min-width:0;display:grid;align-content:start;gap:9px}.ref-order-layout{align-items:start;margin-top:12px}.ref-order-layout>.fn-subgrid{margin:0}
.ref-facts-list{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:4px 9px;margin:0;text-align:start;font-size:.83rem}.ref-facts-list dt,.ref-event-log small{color:#697480}.ref-facts-list dd{margin:0;overflow-wrap:anywhere}
.ref-event-log{margin:0;padding-inline-start:15px;font-size:.83rem}.ref-event-log li{padding-block:5px}.ref-event-log small{display:block}
body.workspace-authenticated .brand{background:#18191c;padding:0}body.workspace-authenticated .brand img{width:100%;max-height:80px;object-fit:contain}
body.workspace-authenticated .sidebar{gap:12px}body.workspace-authenticated .topbar h1{font-size:1.1rem}
@media(max-width:740px){.workspace-tools .fn-tag,.workspace-tools label{display:none}.workspace-tools{display:none}.ref-order-context{grid-template-columns:minmax(0,1fr)}.workspace-authenticated .ref-enrol{gap:4px}}

body.workspace-authenticated #workspace:is([data-resource="briefs"],[data-resource="factory-registry"]){display:grid;grid-template-columns:minmax(0,1.55fr) minmax(235px,1fr);gap:12px;align-items:start}
body.workspace-authenticated #workspace:is([data-resource="briefs"],[data-resource="factory-registry"])>.guided-panel{grid-column:1;grid-row:1;margin:0;min-width:0}
body.workspace-authenticated #workspace:is([data-resource="briefs"],[data-resource="factory-registry"])>.data-panel{grid-column:2;grid-row:1;min-width:0}
body.workspace-authenticated #workspace:is([data-resource="briefs"],[data-resource="factory-registry"])>.diagnostic-shell{grid-column:1/-1}
.ref-draft{border-block-start:3px solid #f3c11e}.ref-draft small{display:block;margin-block:4px 12px}.ref-round{padding:10px 0;border-block-start:1px solid #e3e6eb}.ref-round strong{margin-inline-end:12px}.ref-round p{margin:6px 0}.ref-round small{color:#6d737c}.ref-decision{background:#edf5ef;padding:7px;border-radius:6px}.ref-audit{padding:10px 0}
@media(max-width:960px){body.workspace-authenticated #workspace:is([data-resource="briefs"],[data-resource="factory-registry"]){grid-template-columns:minmax(0,1fr)}body.workspace-authenticated #workspace:is([data-resource="briefs"],[data-resource="factory-registry"])>.data-panel{grid-row:2;grid-column:1}}

.ws-contract-preview select{max-width:100%;width:100%;margin-block:.5rem}
.ws-contract-sheet{padding:1rem;border:1px solid #d2dcd9;background:#fff;color:#19332f;border-radius:.65rem;min-width:0;overflow-wrap:anywhere}
.ws-contract-text{white-space:pre-wrap;line-height:1.9;border-block-start:1px solid #dce4e0;padding-block-start:.8rem}

.ws-impact,.ws-source-sheet{border:1px solid #d9e0df;border-radius:.6rem;padding:.6rem;margin-block:.45rem;min-width:0;overflow-wrap:anywhere}
.ws-impact{background:#f3f0fb;color:#382c58}.ws-impact summary,.ws-source-sheet summary{cursor:pointer;font-weight:650}
.ws-delay-inputs{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(8rem,100%),1fr));gap:.4rem}.ws-delay-inputs input{width:100%;min-width:0}.ws-delay-inputs label{display:grid;gap:.3rem}
.fn-case-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,19rem),1fr));gap:.75rem;margin-block:.75rem}
.authority-case{min-width:0;border:1px solid #d8e5df;border-inline-start:.28rem solid #167361;border-radius:.65rem;padding:.8rem 1rem;overflow-wrap:anywhere}
.authority-case h4,.authority-case p{margin:.35rem 0}.authority-selected[hidden]{display:none}
.fn-distribution-board{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,11rem),1fr));gap:.65rem;margin-block:.65rem}.fn-distribution-board details{margin-block:.4rem}.fn-distribution-board summary{cursor:pointer}
.fn-fit{background:#eee8fc;color:#452c73;border-radius:.55rem;padding:.45rem .65rem}.fn-market-state{display:block;line-height:1.7;color:#295848}
.fn-stage-line{display:grid;grid-template-columns:minmax(7rem,30%) 1fr;align-items:center;gap:.5rem;font-size:.84rem;margin-block:.5rem}.fn-stage-rail{height:.8rem;background:#e5ebe7;border-radius:.35rem;position:relative}.fn-stage-rail i{display:block;position:absolute;inset-block:0;border-radius:.35rem}.fn-stage-rail .planned{background:#b28b12}.fn-stage-rail .actual{background:#23645a}.fn-stage-source{display:block;overflow-wrap:anywhere}
.fn-shipping-review{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr));gap:.55rem}.fn-shipping-review>.fn-box{min-width:0}
