:root{color-scheme:light;--ink:#1b1d1c;--muted:#5c625f;--paper:#f3f2ee;--line:#e2dfd7;--green:#2f5d3a;--sage:#e7efe8;--white:#ffffff;--red:#8a2e27;font-family:'IBM Plex Sans',ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}*{box-sizing:border-box}body{margin:0;font-size:15px;line-height:1.5}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}button,a{ -webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #2f5d3a;outline-offset:3px}button{min-height:44px;border:1px solid var(--line);border-radius:3px;padding:10px 16px;color:var(--ink);background:var(--white);font-weight:600}button.primary{background:var(--green);border-color:var(--green);color:white}button.quiet{background:transparent}a{color:inherit}.skip-link{position:fixed;left:12px;top:-80px;z-index:10;background:#ffffff;padding:12px}.skip-link:focus{top:12px}h1,h2,h3,p{margin:0}h1{font-size:clamp(28px,3vw,40px);letter-spacing:-.01em;line-height:1.15;font-weight:600}h2{font-size:21px;letter-spacing:-.01em;font-weight:600}h3{font-size:16px}small,.muted{color:var(--muted)}.eyebrow{font-size:11px;letter-spacing:.14em;font-weight:600;text-transform:uppercase;color:var(--muted)}.brand-mark{display:grid;place-items:center;width:40px;height:40px;border:1px solid #8e968f;border-radius:3px;color:#c9cec9;font-family:Georgia,serif;font-size:30px}.loading-shell{display:grid;gap:20px;max-width:450px;margin:15vh auto;padding:30px}.login{display:grid;grid-template-columns:1fr 1fr;min-height:100dvh}.login-story{background:var(--ink);color:#ffffff;padding:clamp(32px,7vw,100px);display:flex;flex-direction:column;justify-content:space-between;gap:80px}.login-story h1{font-size:clamp(40px,5vw,64px);max-width:560px}.login-story p{max-width:430px;color:#c9cec9;margin-top:24px}.brand{display:flex;align-items:center;gap:12px;font-size:19px;font-weight:600;letter-spacing:-.01em}.brand small{display:block;color:#c9cec9;font-weight:400;font-size:11px;letter-spacing:.12em;text-transform:uppercase}.login-panel{display:grid;align-content:center;max-width:500px;width:100%;padding:48px;margin:auto}.login-panel>p{margin:14px 0 30px}.form{display:grid;gap:20px}.field{display:grid;gap:7px}.field label{font-size:13px;font-weight:600}input,select,textarea{width:100%;min-height:46px;border:1px solid #c9dccd;border-radius:3px;padding:11px 12px;background:#ffffff;color:var(--ink);font-size:16px}textarea{resize:vertical;min-height:90px}.error{padding:14px 16px;border-radius:3px;background:#fbe7e5;color:var(--red);margin:16px 0}.hint{font-size:13px;color:var(--muted)}.shell{display:grid;grid-template-columns:242px minmax(0,1fr);min-height:100dvh}.sidebar{background:var(--ink);color:#ffffff;padding:28px 20px;display:flex;flex-direction:column;gap:38px}.sidebar .brand{padding:0 4px}.navigation{display:grid;gap:6px}.navigation button{display:flex;align-items:center;gap:12px;text-align:left;background:transparent;border:0;color:#c9cec9;font-size:14px;padding:13px 14px}.navigation button.active{background:#1e3f27;color:#ffffff}.nav-icon{font-size:18px;line-height:1}.sidebar-bottom{margin-top:auto;font-size:12px;color:#c9cec9;padding:16px 10px;border-top:1px solid #2e3431}.workspace{min-width:0}.topbar{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px 40px;background:#f6f5f1;border-bottom:1px solid var(--line)}.topbar .account{display:flex;align-items:center;gap:16px;min-width:0}.account span{font-size:13px;max-width:260px;overflow:hidden;text-overflow:ellipsis}.badge{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:600;padding:5px 9px;border:1px solid #c9dccd;border-radius:3px;background:#e7efe8;color:#2f5d3a;white-space:nowrap}.badge.off{background:#f3f2ee;color:#5c625f;border-color:var(--line)}main.content{padding:40px;max-width:1600px;margin:auto}.page-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:30px}.page-heading h1{margin:9px 0 12px}.page-heading p{color:var(--muted);max-width:680px}.heading-actions{display:flex;gap:10px;flex-wrap:wrap}@media(min-width:1001px){.page-heading>div:first-child{flex:1 1 320px;min-width:0}.page-heading>.heading-actions{flex:0 1 auto;justify-content:flex-end}}.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:24px}.stat{padding:24px;border:1px solid var(--line);border-radius:4px;background:#ffffff}.stat strong{display:block;font-size:34px;line-height:1.3;font-weight:500;letter-spacing:-.01em;margin:10px 0 4px}.stat span{font-size:12px;color:var(--muted)}.card{background:#ffffff;border:1px solid var(--line);border-radius:4px;overflow:hidden;margin-bottom:24px}.card-head{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:22px 24px;border-bottom:1px solid var(--line)}.card-head p{font-size:13px;color:var(--muted);margin-top:5px}.toolbar{padding:18px 24px;display:flex;gap:16px;align-items:center;border-bottom:1px solid var(--line)}.toolbar input{max-width:420px}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:14px;text-align:left}th{font-size:11px;color:var(--muted);letter-spacing:.07em;text-transform:uppercase;background:#f6f5f1;font-weight:600}th,td{padding:16px 24px;border-bottom:1px solid #eceae3;vertical-align:middle}tr:last-child td{border:0}td small{display:block;margin-top:4px}.sku{font-family:'IBM Plex Mono',ui-monospace,monospace;font-size:12px}.table-actions{display:flex;gap:8px;justify-content:flex-end}.table-actions button{font-size:12px;padding:8px 12px;min-height:40px}.empty{text-align:center;padding:56px 24px;display:grid;justify-items:center;gap:14px}.empty p{max-width:450px;color:var(--muted)}.empty .icon{font-size:28px;color:#2f5d3a}.two-columns{display:grid;grid-template-columns:1.2fr 1fr;gap:24px}.flow-list{padding:8px 24px}.flow-item{padding:20px 0;display:grid;grid-template-columns:36px 1fr auto;gap:14px;align-items:center;border-bottom:1px solid var(--line)}.flow-item:last-child{border:0}.flow-index{font-size:11px;border:1px solid var(--line);border-radius:50%;width:30px;height:30px;display:grid;place-items:center;color:var(--muted)}.flow-item p{font-size:13px;color:var(--muted);margin-top:4px}.pager{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:16px 24px;border-top:1px solid var(--line);font-size:13px;color:var(--muted)}.callout{padding:20px 24px;border-radius:4px;background:var(--sage);font-size:13px;line-height:1.6;color:#2f5d3a;margin:0 0 24px}.event-list{padding:0 24px}.event{padding:20px 0;border-bottom:1px solid var(--line)}.event:last-child{border:0}.event header{display:flex;gap:14px;justify-content:space-between}.event p{font-size:13px;color:var(--muted);margin-top:6px}.event code{font-size:12px;overflow-wrap:anywhere}.app-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.app-card{border:1px solid var(--line);border-radius:4px;padding:24px;background:#ffffff}.app-card header{display:flex;justify-content:space-between;gap:16px;margin-bottom:20px}.capabilities{display:flex;flex-wrap:wrap;gap:8px}.capabilities span{padding:5px 8px;background:#f3f2ee;border-radius:2px;font-family:'IBM Plex Mono',ui-monospace,monospace;font-size:11px;overflow-wrap:anywhere}dialog{border:1px solid var(--line);border-radius:4px;max-width:680px;width:calc(100% - 32px);max-height:calc(100dvh - 32px);padding:0;box-shadow:none;color:var(--ink)}dialog::backdrop{background:#1f232188;backdrop-filter:blur(3px)}.dialog-header{padding:24px 28px;display:flex;justify-content:space-between;gap:18px;align-items:center;border-bottom:1px solid var(--line)}.dialog-header button{padding:6px 12px}.dialog-body{padding:24px 28px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:18px}.form-footer{display:flex;justify-content:flex-end;gap:12px;padding-top:8px}.read-only{padding:11px 13px;background:#f1f6f2;border-radius:3px;overflow-wrap:anywhere}#notice{position:fixed;bottom:24px;right:24px;z-index:20;max-width:min(450px,calc(100vw - 32px));background:var(--ink);color:#ffffff;border-radius:4px;padding:16px 22px;box-shadow:none}#notice[hidden]{display:none}.loading-row{padding:40px;color:var(--muted)}
@media(min-width:1100px){.sidebar{position:sticky;top:0;height:100dvh}}@media(max-width:1000px){.shell{grid-template-columns:190px minmax(0,1fr)}.sidebar{padding:24px 12px}.topbar{padding:16px 24px}main.content{padding:28px 24px}.two-columns{grid-template-columns:1fr}.page-heading{align-items:flex-start;flex-direction:column}.login-story{padding:45px}.stats{gap:12px}.stat{padding:20px}.app-grid{grid-template-columns:1fr}}@media(max-width:700px){.login{grid-template-columns:1fr}.login-story{min-height:300px;padding:28px;gap:40px}.login-story h1{font-size:38px}.login-story p{margin-top:14px}.login-story .foot{display:none}.login-panel{padding:32px 24px}.shell{display:block}.sidebar{padding:16px;gap:18px}.sidebar .brand{font-size:17px}.brand-mark{width:34px;height:34px;font-size:25px}.navigation{display:flex;gap:6px;overflow-x:auto;padding-bottom:3px}.navigation button{white-space:nowrap;font-size:12px;padding:10px 12px;min-height:44px}.nav-icon{display:none}.sidebar-bottom{display:none}.topbar{padding:12px 18px}.topbar>.eyebrow{display:none}.topbar .account{width:100%;justify-content:space-between}.account span{max-width:62vw}main.content{padding:26px 16px}.page-heading{gap:18px;margin-bottom:24px}.page-heading h1{font-size:29px}.stats{grid-template-columns:1fr;gap:10px}.stat{display:grid;grid-template-columns:1fr auto;align-items:center;padding:17px 20px}.stat strong{grid-column:2;grid-row:1/3;margin:0;font-size:29px}.stat .eyebrow{grid-column:1}.stat span{grid-column:1}.card-head,.toolbar{padding:18px}.card-head{align-items:flex-start;flex-wrap:wrap}.toolbar{flex-direction:column;align-items:stretch}.table-wrap table{min-width:600px}th,td{padding:14px 18px}.form-row{grid-template-columns:1fr}.dialog-body,.dialog-header{padding:20px}.pager{padding:14px 18px}.event header{flex-direction:column;gap:5px}.flow-list{padding:0 18px}.flow-item{grid-template-columns:30px minmax(0,1fr);gap:12px}.flow-item>.badge{grid-column:2;justify-self:start}.app-card{padding:20px}}
.toolbar.order-filters{flex-direction:row;flex-wrap:wrap;gap:8px;align-items:center}.order-detail{display:flex;flex-direction:column;gap:18px}.order-detail .event-list{padding:0}.order-detail h3{margin:0 0 6px;font-size:15px}.order-facts{display:flex;flex-direction:column;gap:4px;font-size:14px;color:var(--muted)}.order-facts .badge{align-self:flex-start}.order-detail tfoot td{border-top:1px solid var(--line);font-variant-numeric:tabular-nums}.order-detail td{font-variant-numeric:tabular-nums}.order-detail .callout{margin:0}.order-actions{display:flex;gap:8px;flex-wrap:wrap}.order-detail textarea{min-height:72px}
#print-area{display:none}
@media print{body.printing>*:not(#print-area){display:none!important}body.printing{background:#ffffff}body.printing #print-area{display:block}}
.callout.price-check.ok{background:var(--sage)}.callout.price-check.warn{background:#fff7e6;color:#5c3900;border:1px solid #ebd29e}.callout.price-check ul{margin:8px 0 0;padding-left:18px}.callout.price-check li{margin:2px 0}
/* Crown brand alignment: shares the CPQ type, palette and logo so CrownOS reads as one product. */
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:400;font-display:swap;src:url('/assets/fonts/IBMPlexSans-Regular.woff2') format('woff2')}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:500;font-display:swap;src:url('/assets/fonts/IBMPlexSans-Medium.woff2') format('woff2')}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:600;font-display:swap;src:url('/assets/fonts/IBMPlexSans-SemiBold.woff2') format('woff2')}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;font-display:swap;src:url('/assets/fonts/IBMPlexMono-Regular.woff2') format('woff2')}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:500;font-display:swap;src:url('/assets/fonts/IBMPlexMono-Medium.woff2') format('woff2')}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:600;font-display:swap;src:url('/assets/fonts/IBMPlexMono-SemiBold.woff2') format('woff2')}
:root{--ink:#1b1d1c;--muted:#5c625f;--paper:#f3f2ee;--surface:#f6f5f1;--line:#e2dfd7;--green:#2f5d3a;--green2:#1e3f27;--sage:#e7efe8;--white:#ffffff;--red:#b4453c;--bronze:#1e3f27;font-family:'IBM Plex Sans',ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased}
h1,h2,h3{font-family:'IBM Plex Sans',sans-serif}
h1{font-weight:500;letter-spacing:-.01em}h2{font-weight:600;letter-spacing:-.01em}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline-color:#2f5d3a}
button{border-radius:3px;background:var(--white)}button.primary{background:var(--green);border-color:var(--green)}button.primary:hover:not(:disabled){background:var(--green2)}
button:active:not(:disabled){transform:translateY(1px)}
input,select,textarea{border-color:#e2dfd7;background:var(--white)}input:focus,select:focus,textarea:focus{border-color:#8e968f}
.brand{flex-direction:column;align-items:flex-start;gap:9px}
.brand-logo{display:block;width:150px;height:auto;max-height:44px;object-fit:contain;object-position:left center;filter:brightness(0) invert(1)}
.brand small{font-size:10px;letter-spacing:.18em;opacity:.7;color:#f6f5f1}
.loading-shell .brand-logo{filter:none;opacity:.9}
.login-story,.sidebar{background:var(--green)}
.login-story p{color:#c9cec9}.login-story .foot{font-size:11px;letter-spacing:.14em;color:#5c625f}
.login-panel .eyebrow{color:var(--bronze)}
.navigation button{color:#c9cec9;border-radius:3px}.navigation button:hover{color:#f6f5f1;background:#ffffff0d}
.navigation button.active{background:#f3f2ee;color:var(--green);box-shadow:none}
.sidebar-bottom{color:#8e968f;border-color:#ffffff1a;letter-spacing:.06em}
.topbar{background:var(--surface)}
.topbar>.eyebrow{color:var(--muted)}
.eyebrow{letter-spacing:.16em;font-weight:600}
.stat,.card,.app-card{background:var(--surface);border-color:var(--line)}
.stat strong{font-family:'IBM Plex Sans',sans-serif;font-weight:400}
th{background:#f6f5f1}th,td{border-color:#eceae3}
.badge{background:var(--sage);border-color:#c9dccd;color:#1e3f27}.badge.off{background:#efede7;color:var(--muted)}
.callout{background:var(--sage);color:#1e3f27}
.capabilities span,.read-only{background:#efede7}
.empty .icon{color:var(--bronze)}
.error{background:#fbe7e5;color:var(--red)}
dialog{background:var(--surface)}dialog::backdrop{background:#1f232188}
#notice{background:var(--green)}
/* Production & shipping */
.production{border-top:1px solid var(--line,#e2dfd7);margin-top:18px;padding-top:16px}
.production h3{margin:0 0 10px}
.production h4{margin:14px 0 8px;font-size:13px;letter-spacing:.04em;text-transform:uppercase;color:var(--muted,#5c625f)}
.shipment-add{align-items:end;flex-wrap:wrap}
.shipment-add>button{min-height:42px;align-self:end}
table.shipments td,table.shipments th{white-space:nowrap}
.po-line{padding:14px 0;border-bottom:1px solid var(--line)}.po-line:first-child{padding-top:0}#po-lines{display:grid}
.toolbar.bill-dealer{flex-direction:row;align-items:flex-end;gap:12px;flex-wrap:wrap}.toolbar.bill-dealer .field{min-width:260px;margin:0}
.bill-from-order{align-items:center;flex-wrap:wrap}.bill-from-order .hint{margin-right:4px}
.bill-line{align-items:flex-end}.bill-line .field:first-child{flex:3}.bill-line .field{flex:1}
.order-detail tfoot td{font-weight:500}
.access-form{display:grid;gap:14px}.access-form h3{margin:0;font-size:18px}.access-hint{margin:0;font-size:13px;color:var(--muted);line-height:1.6}.access-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.link-button{background:transparent;border-color:transparent;color:var(--green);padding-left:4px;padding-right:4px;justify-self:start}.link-button:hover{text-decoration:underline}.login-panel .notice{padding:14px 16px;border-radius:3px;background:var(--sage);color:var(--ink);margin:16px 0}
.bom-line{border:1px solid var(--line);border-radius:4px;padding:12px 14px;margin:0 0 12px;display:grid;gap:10px}.bom-line legend{font-size:12px;font-weight:600;color:var(--muted);padding:0 6px}#bom-lines{display:grid}
.sugg-form table input.num{min-height:38px;width:100px;min-width:90px;padding:6px 8px;font-size:15px}.sugg-form table select{min-height:38px;padding:6px 8px;font-size:14px;max-width:150px}.sugg-form .unit{font-size:13px;color:var(--muted)}
.sugg-form table input[type=checkbox]{width:22px;height:22px;min-height:22px;padding:0;accent-color:var(--green)}.sugg-form table select{min-width:120px}
.sugg-footer{display:flex;align-items:flex-end;flex-wrap:wrap;gap:14px;padding:16px 20px}.sugg-footer .field{flex:0 1 300px;min-width:220px;margin:0}.sugg-footer .hint{flex:1;min-width:220px;margin:0 0 12px}.sugg-footer button{flex:none}
.field.check label{display:flex;gap:10px;align-items:center;font-weight:600}.field.check input{width:20px;min-height:20px;height:20px}
.cost-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:12px 0 16px}.cost-facts div{padding:14px 16px;border:1px solid var(--line);border-radius:4px;background:#f6f5f1}.cost-facts dt{font-size:11px;letter-spacing:.07em;text-transform:uppercase;color:var(--muted);font-weight:600}.cost-facts dd{margin:6px 0 0;font-size:18px;font-variant-numeric:tabular-nums}.cost-facts dd small{display:block;margin-top:2px;font-size:12px;color:var(--muted)}@media(max-width:700px){.cost-facts{grid-template-columns:1fr 1fr}}
/* Workforce: employees and the time clock */
table.timesheet th,table.timesheet td{padding:12px 14px;white-space:nowrap}table.timesheet td:first-child{white-space:normal;min-width:180px}
td.num,th.num{text-align:right;font-variant-numeric:tabular-nums}
.text-button{border:0;background:none;padding:0;min-height:0;font:inherit;color:inherit;text-align:left;cursor:pointer;text-decoration:underline;text-decoration-color:var(--line);text-underline-offset:3px;border-radius:0}
.text-button:hover{text-decoration-color:currentColor}
tr.void td{color:var(--muted);text-decoration:line-through}tr.void td:last-child{text-decoration:none}
dialog.wide{max-width:980px}table.week-entries th,table.week-entries td{padding:12px 14px}table.week-entries td:not(:nth-child(5)){white-space:nowrap}
.card-head .table-actions{flex-wrap:wrap}.card-head .table-actions button{white-space:nowrap}
.tax-calc{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.tax-calc .hint{margin:0;flex:1;min-width:200px}
.badge.warn{background:#fff1d6;color:#5c3900;border-color:#ebd29e}.badge.bad{background:#fbe7e5;color:var(--red);border-color:#e8b4ae}
.floor-board th,.floor-board td{white-space:nowrap}.floor-board .floor-order td{background:var(--sage);font-size:14px;white-space:normal}.floor-board .floor-order .badge{margin-left:4px}.floor-cell{text-align:center}
.card-pad{padding:20px 24px}h3.card-pad{padding-bottom:4px}.card-pad+.table-wrap{border-top:1px solid var(--line)}@media(max-width:700px){.card-pad{padding:18px}}
td meter{width:100%;min-width:90px;height:10px}.report-ranges{flex-wrap:wrap}.report-note{margin:-8px 0 20px}.cost-facts.card-pad{margin:0}
/* Phone navigation: a sticky bar with a menu button; the sections open full screen, over everything. */
.menu-toggle{display:none}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
@media(max-width:700px){
.sidebar{position:sticky;top:0;z-index:15;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;padding:12px 16px;box-shadow:none;border-bottom:1px solid #2e3431}
.sidebar .brand{min-width:0}.sidebar .brand small{display:none}.brand-logo{width:132px;height:auto}
.menu-toggle{display:inline-flex;align-items:center;gap:8px;min-height:44px;max-width:58vw;padding:8px 14px;border:1px solid #3b403d;border-radius:3px;background:#2e3431;color:#fff;font-size:14px}
.menu-icon{font-size:16px;line-height:1;width:16px;text-align:center}.menu-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.menu-chevron{font-size:11px;opacity:.75;transition:transform .15s}
.menu-toggle[aria-expanded="true"] .menu-chevron{transform:rotate(180deg)}
.navigation{display:none}
.shell.menu-open .sidebar{position:fixed;inset:0;z-index:40;height:100vh;height:100dvh;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto minmax(0,1fr) auto;align-items:center;gap:14px;
  padding:max(12px,env(safe-area-inset-top)) 16px max(16px,env(safe-area-inset-bottom));box-shadow:none;overflow:hidden}
.shell.menu-open .navigation{display:grid;grid-column:1/-1;align-self:stretch;align-content:start;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:4px 0;overflow-y:auto;overscroll-behavior:contain}
.shell.menu-open .sidebar-bottom{display:block;grid-column:1/-1;margin:0;padding:12px 4px 0}
.navigation button{min-height:56px;padding:14px 12px;font-size:15px;white-space:normal;background:#2e3431;color:#c9cec9;border-radius:3px}
.navigation button.active{background:#2f5d3a;color:#fff}.nav-icon{display:inline;width:18px;text-align:center}
html.menu-locked,html.menu-locked body{overflow:hidden}
}
@media(max-width:340px){.shell.menu-open .navigation{grid-template-columns:1fr}}
.day-picks{border:0;padding:0;margin:0;min-width:0}.day-picks legend{font-size:13px;font-weight:600;padding:0;margin-bottom:7px}.day-picks>div{display:flex;flex-wrap:wrap;gap:8px}.day-picks label{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 14px;border:1px solid #c9dccd;border-radius:3px;font-size:14px;font-weight:500;cursor:pointer}.day-picks input{width:18px;height:18px;min-height:0;margin:0;padding:0;accent-color:var(--green)}.schedule-orders td small.hint{margin-top:6px}
.schedule-orders td:first-child strong{white-space:nowrap}@media(max-width:700px){.table-wrap table.schedule-settings{min-width:0}}
.ready-bar{display:block;width:100%;height:12px;margin:-6px 0 24px;border:0;border-radius:3px;overflow:hidden;background:var(--sage);accent-color:var(--green)}.ready-bar::-webkit-progress-bar{background:var(--sage);border-radius:3px}.ready-bar::-webkit-progress-value{background:var(--green);border-radius:3px}.ready-bar::-moz-progress-bar{background:var(--green);border-radius:3px}
.ready-table{table-layout:fixed}.ready-table td:first-child{width:150px}.ready-table td:nth-child(3){width:110px;white-space:nowrap;text-align:right;font-variant-numeric:tabular-nums;color:var(--muted)}.ready-table td:last-child{width:250px}.ready-table .table-actions button{white-space:nowrap}.ready-table tr.ready-done strong{color:var(--muted)}.ready-table td small{max-width:720px}
/* Phone top bar: the account email gives way so the buttons stay on one line. */
@media(max-width:700px){.topbar .account{gap:8px}.topbar .account span{flex:1;min-width:0;max-width:none}.topbar .account button{white-space:nowrap;padding:8px 12px;min-height:40px;flex:none}}
/* Go-live on a phone: each item is a small card (status and count, then the item, then its button), not a squeezed table row. */
@media(max-width:700px){.table-wrap table.ready-table{min-width:0;table-layout:auto}.ready-table,.ready-table tbody,.ready-table tr,.ready-table td{display:block;width:auto!important}.ready-table tr{display:grid;grid-template-columns:1fr auto;gap:8px 12px;align-items:center;padding:16px 18px;border-bottom:1px solid var(--crn-border,#ebe9e0)}.ready-table tr:last-child{border-bottom:0}.ready-table td{padding:0;border:0;text-align:left}.ready-table td:nth-child(2){grid-column:1/-1;grid-row:2}.ready-table td:nth-child(2) small{max-width:none}.ready-table td:nth-child(3){grid-column:2;grid-row:1;text-align:right}.ready-table td:last-child{grid-column:1/-1;grid-row:3}.ready-table td:last-child:not(:has(button)){display:none}.ready-table .table-actions{justify-content:stretch}.ready-table .table-actions button{width:100%;min-height:44px}}
/* Forms never grow wider than their dialog: grid children may shrink, wide tables scroll inside their wrapper. */
.form{grid-template-columns:minmax(0,1fr)}.form-row>*,.field{min-width:0}.field input,.field select,.field textarea{max-width:100%}
.production table.shipments th,.production table.shipments td{padding:10px 12px}.production table.shipments td:nth-child(4){white-space:normal}.production .table-wrap table.shipments{min-width:0}
.check-grid{border:1px solid var(--line);border-radius:3px;padding:12px 16px;display:grid;gap:10px;margin:0}.check-grid legend{font-size:13px;font-weight:600;padding:0 6px}.check-grid label{display:flex;gap:10px;align-items:flex-start;font-size:14px}.check-grid input{width:auto;min-height:0;margin-top:3px}pre.payload{background:#f6f5f1;border:1px solid var(--line);border-radius:3px;padding:14px;font-size:12px;overflow:auto;max-height:50vh;white-space:pre-wrap;overflow-wrap:anywhere}
td .table-actions{flex-wrap:wrap}td .table-actions button{white-space:nowrap}
.remake-lines input[type=checkbox]{width:22px;height:22px;min-height:22px;padding:0;accent-color:var(--green)}.remake-lines input.num{width:90px;min-height:38px;padding:6px 8px}.remake-lines td small{display:block}
/* Sidebar groups: sections sorted by the work they support. */
.nav-group{display:grid;gap:2px;margin-top:12px}
.nav-group-label{margin:0 0 4px;padding:0 14px;font-size:10.5px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:#5c625f}
.navigation .nav-group button{padding:9px 14px}
@media(min-width:1100px){.sidebar{overflow-y:auto;overscroll-behavior:contain}}
@media(max-width:1000px){.nav-group-label{padding:0 10px}}
@media(max-width:700px){
.shell.menu-open .navigation{gap:6px 8px}
.shell.menu-open .nav-group{grid-column:1/-1;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px}
.shell.menu-open .nav-group-label{grid-column:1/-1;margin:0;padding:0 2px;font-size:11px;color:#5c625f}
.shell.menu-open .navigation .nav-group button{padding:14px 12px}
}
@media(max-width:340px){.shell.menu-open .nav-group{grid-template-columns:1fr}}
/* Overview: what needs doing, most urgent first. */
.overview-todo{margin-bottom:24px}
.count-badge{display:inline-grid;place-items:center;min-width:24px;height:24px;padding:0 8px;margin-left:8px;border-radius:4px;background:var(--red);color:#ffffff;font-size:12px;font-weight:600;vertical-align:3px}
.todo-list{list-style:none;margin:0;padding:0}
.todo-item{display:flex;align-items:center;gap:14px;padding:16px 24px;border-top:1px solid var(--line)}.todo-item:first-child{border-top:0}
.todo-item>div{flex:1;min-width:0;display:grid;gap:3px}.todo-item strong{font-size:14px}.todo-item span:not(.todo-dot){font-size:12.5px;color:var(--muted);overflow-wrap:anywhere}
.todo-dot{width:9px;height:9px;border-radius:50%;flex-shrink:0;background:#b7791f}.todo-item.bad .todo-dot{background:var(--red)}.todo-item.info .todo-dot{background:#2f5d3a}
.todo-item>button{white-space:nowrap;min-height:40px}
.todo-clear{display:flex;gap:14px;align-items:flex-start;padding:22px 24px}.todo-clear>span{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--sage);color:var(--green);font-weight:600;flex-shrink:0}.todo-clear h3{margin:0 0 4px;font-size:15px}.todo-clear p{margin:0;font-size:13px;color:var(--muted);max-width:60ch}
.overview-todo .callout{margin:0 24px 20px}
@media(max-width:700px){.todo-item{flex-wrap:wrap;padding:14px 16px}.todo-item>div{flex-basis:calc(100% - 23px)}.todo-item>button{margin-left:23px;min-height:44px}.todo-clear{padding:18px 16px}.overview-todo .callout{margin:0 16px 16px}}
/* Record pages: orders, invoices, bills, purchase orders, dealers and BOMs open full screen, with Back in the header. */
dialog.as-page{max-width:none;width:100%;height:100dvh;max-height:none;margin:0;border:0;border-radius:0;box-shadow:none;background:var(--paper);inset:0}
dialog.as-page::backdrop{background:var(--paper)}
dialog.as-page .dialog-header{position:sticky;top:0;z-index:5;justify-content:flex-start;gap:16px;background:var(--surface);padding:12px max(24px,calc((100% - 1120px)/2 + 24px))}
dialog.as-page .dialog-header h2{font-size:20px;min-width:0;overflow-wrap:anywhere}
dialog.as-page .dialog-header [data-action="close"]{white-space:nowrap;min-height:44px;padding:8px 14px}
dialog.as-page .dialog-body{max-width:1120px;margin:0 auto;padding:28px 24px 72px;gap:22px}
dialog.as-page .dialog-body>section,dialog.as-page .dialog-body>form,dialog.as-page .dialog-body>.table-wrap{background:var(--surface);border:1px solid var(--line);border-radius:4px;padding:20px 22px}
dialog.as-page .dialog-body>.table-wrap{padding:0}
@media(max-width:700px){dialog.as-page .dialog-header{padding:10px 16px;gap:10px}dialog.as-page .dialog-header h2{font-size:16px}dialog.as-page .dialog-body{padding:18px 16px 56px}dialog.as-page .dialog-body>section,dialog.as-page .dialog-body>form{padding:16px}}
/* Import: file picker, progress and the per-line report. */
.import-setup{padding:22px 24px;display:grid;gap:14px}.import-setup .form-row{align-items:end}.import-setup input[type=file]{padding:9px 12px;background:#ffffff}.import-setup input[type=file]::file-selector-button{font:inherit;font-weight:600;min-height:28px;border:1px solid var(--line);border-radius:3px;padding:4px 12px;margin-right:12px;background:#ffffff;color:var(--ink)}.import-setup code{font-size:12px;overflow-wrap:anywhere}
.import-progress{height:8px;border-radius:3px;background:var(--sage);overflow:hidden;margin-top:12px;min-width:260px}.import-progress span{display:block;height:100%;background:var(--green);transition:width .3s ease}
#import-report td:last-child{color:var(--muted);font-size:13px;overflow-wrap:anywhere;max-width:520px}@media(max-width:700px){.import-setup{padding:18px}.import-progress{min-width:0}}
/* Permissions and staff invitation dialogs: presets and grouped capability checkboxes. */
.preset-row{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:4px}.preset-row button{min-height:36px;padding:6px 12px;font-size:13px}
#erp-return-form .check span{display:grid;gap:2px}#erp-return-form .check small{font-size:12px;color:var(--muted)}
:is(#permissions-form,#staff-invite-form) .check-grid{grid-template-columns:1fr 1fr;gap:8px 16px}:is(#permissions-form,#staff-invite-form) .check{display:flex;gap:10px;align-items:flex-start;padding:6px 0}:is(#permissions-form,#staff-invite-form) .check input{width:18px;height:18px;min-height:0;margin-top:2px;flex:none}:is(#permissions-form,#staff-invite-form) .check span{display:grid;gap:2px;font-size:14px}:is(#permissions-form,#staff-invite-form) .check small{font-family:'IBM Plex Mono',ui-monospace,monospace;font-size:11px;color:var(--muted);overflow-wrap:anywhere}
@media(max-width:700px){:is(#permissions-form,#staff-invite-form) .check-grid{grid-template-columns:1fr}}
#staff-invite-form .role-grid .check small{font-family:inherit;font-size:12px}
h3.subhead{margin:18px 0 8px;font-size:14px}
/* Order delivery details: PO, ship-to, requested date and notes. */
.delivery-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px 20px;margin:8px 0 0}.delivery-facts dt{font-size:11px;letter-spacing:.07em;text-transform:uppercase;color:var(--muted)}.delivery-facts dd{margin:3px 0 0;font-weight:600;overflow-wrap:anywhere}.delivery-facts dd small{display:block;font-weight:400;color:var(--muted);white-space:pre-line;margin-top:2px}
/* Fabric rolls: the cut panel on a pick list, and roll entry on a receipt line. */
.cut-panel{display:grid;gap:12px;margin-top:8px}.cut-panel h4{margin:14px 0 6px;font-size:13px;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}.cut-panel select{min-width:0}#erp-receive-form td label.hint{display:block;margin-top:10px}#erp-receive-form td textarea{margin-top:6px;min-height:64px}
/* A small form over a record page: the page stays behind, dimmed and inert; the form is a card on top. */
dialog.as-stack{overflow:hidden}
dialog.as-stack>.record-underlay{position:absolute;inset:0;overflow:hidden;pointer-events:none;user-select:none;opacity:.5;filter:saturate(.6)}
dialog.as-stack>.record-underlay::after{content:'';position:absolute;inset:0;background:#10261e2e}
dialog.as-stack>.stack-card{position:relative;z-index:6;width:calc(100% - 32px);max-width:680px;max-height:calc(100dvh - 12vh);margin:6vh auto 0;overflow:auto;overscroll-behavior:contain;background:var(--surface);border:1px solid var(--line);border-radius:6px;box-shadow:0 25px 90px #0d211d40}
dialog.as-stack.wide>.stack-card{max-width:980px}
dialog.as-stack>.stack-card .dialog-header{position:static;padding:20px 24px;background:none;justify-content:space-between}
dialog.as-stack>.stack-card .dialog-header h2{font-size:18px}
dialog.as-stack>.stack-card .dialog-body{max-width:none;margin:0;padding:20px 24px 24px}
dialog.as-stack>.stack-card .dialog-body>section,dialog.as-stack>.stack-card .dialog-body>form{background:none;border:0;padding:0}
@media(max-width:700px){dialog.as-stack>.stack-card{width:100%;max-height:calc(100dvh - 48px);margin:48px 0 0;border-radius:10px 10px 0 0}dialog.as-stack>.stack-card .dialog-header,dialog.as-stack>.stack-card .dialog-body{padding:16px}}
.record-underlay .ghost-control{display:inline-block;min-height:1em}
/* Find by number, in the top bar on every screen. */
.topbar{justify-content:space-between}
.find-form{display:flex;align-items:center;gap:6px;flex:1;max-width:420px;min-width:0}
.find-form input{flex:1;min-width:0;min-height:40px;padding:8px 12px;font-size:14px}
.find-form button{min-height:40px;padding:8px 14px;white-space:nowrap}
.find-results{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.find-results button{display:grid;gap:2px;width:100%;text-align:left;padding:12px 14px;min-height:56px;background:var(--surface);border:1px solid var(--line);border-radius:4px}
.find-results button:hover{border-color:var(--green)}.find-results strong{font-size:15px}.find-results span{font-size:13px;color:var(--muted)}
@media(max-width:700px){.find-form{max-width:none;flex-basis:100%}.topbar{flex-wrap:wrap}}
/* Phone menu Find: its own row between the brand row and the sections (the open menu's grid rows are brand, find, sections, account). */
.menu-find{display:none}
@media(max-width:700px){.shell.menu-open .menu-find{display:block;grid-column:1/-1;grid-row:2;align-self:stretch}.shell.menu-open .navigation{grid-row:3}.shell.menu-open .sidebar-bottom{grid-row:4}.menu-find .find-form{align-items:stretch;gap:8px}.menu-find .find-form input{background:#fff}.menu-find .find-form button{color:#fff;border:1px solid #4a514d;background:transparent;min-height:44px}.menu-find .find-form input{min-height:44px}}
/* Floor routing */
.floor-skip{font-style:italic}
/* Factory and messages */
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.check-row{display:flex;gap:8px;align-items:center;font-weight:500;font-size:14px}.check-row input{width:auto;min-height:0}
.fx-stats{grid-template-columns:repeat(6,minmax(0,1fr))}.stat.alert strong{color:var(--red)}
.fx-stall{min-width:150px}.fx-stall select{min-height:40px}
.fx-floor{container-type:inline-size}
/* The line at a glance: one numbered stop per station, coloured by its state, joined in build order. */
.fx-rail-wrap{padding:20px 24px 2px;overflow-x:auto;scrollbar-width:thin}
.fx-rail{list-style:none;margin:0;padding:0;display:flex}
.fx-node{position:relative;flex:1 1 0;min-width:104px}
.fx-node:not(:last-child)::after{content:"";position:absolute;top:17px;left:calc(50% + 21px);width:calc(100% - 42px);height:2px;border-radius:2px;background:#d9d5cb}
.fx-node button{width:100%;min-height:0;display:grid;justify-items:center;gap:3px;padding:2px 6px 10px;border:0;border-radius:8px;background:none;font-weight:400;text-align:center;color:var(--ink)}
.fx-node button:hover{background:#f6f5f1}
.fx-dot,.fx-step{display:grid;place-items:center;border-radius:50%;border:2px solid #cfcbc1;background:#fff;color:var(--muted);font-weight:600;font-variant-numeric:tabular-nums;flex:none}
.fx-dot{width:34px;height:34px;font-size:13px;margin-bottom:4px}
.fx-step{width:26px;height:26px;font-size:12px;border-width:1.5px}
.working>button>.fx-dot,.fx-station.working .fx-step{background:var(--green);border-color:var(--green);color:#fff}
.stalled>button>.fx-dot,.fx-station.stalled .fx-step{background:var(--red);border-color:var(--red);color:#fff}
.unstaffed>button>.fx-dot,.fx-station.unstaffed .fx-step{background:#c79a3c;border-color:#c79a3c;color:#fff}
.ready>button>.fx-dot,.fx-station.ready .fx-step{background:#fff7e6;border-color:#c79a3c;color:#5c3900}
.fx-node.hot .fx-dot{box-shadow:0 0 0 4px #f1e1b8}
.fx-node-name{font-size:12.5px;font-weight:600;line-height:1.25;max-width:14ch}
.fx-node-q{font-size:12px;color:var(--muted)}.fx-node-q b{font-size:17px;font-weight:600;color:var(--ink);margin-right:2px}
.fx-node.hot .fx-node-q b,.fx-node.unstaffed .fx-node-q b{color:#8a5a00}
.fx-meter{display:block;width:56px;height:4px;border-radius:4px;background:#ebe8e0;overflow:hidden}.fx-meter i{display:block;height:100%;background:#c79a3c;border-radius:4px}
.fx-node-sub{font-size:11px;color:var(--muted);line-height:1.3}
.fx-m0{width:0}.fx-m1{width:10%}.fx-m2{width:20%}.fx-m3{width:30%}.fx-m4{width:40%}.fx-m5{width:50%}.fx-m6{width:60%}.fx-m7{width:70%}.fx-m8{width:80%}.fx-m9{width:90%}.fx-m10{width:100%}
/* Station cards: 4 + 3 on a desktop, 2 across on a tablet, 1 on a phone, sized by the card they sit in. */
.fx-line{list-style:none;margin:0;display:grid;grid-template-columns:minmax(0,1fr);gap:14px;padding:16px 24px 22px}
@container (max-width:759px){.fx-node{min-width:82px}.fx-node-name{font-size:11.5px}.fx-node button{padding:2px 3px 10px}.fx-node:not(:last-child)::after{left:calc(50% + 19px);width:calc(100% - 38px)}}
@container (min-width:520px){.fx-line{grid-template-columns:repeat(2,minmax(0,1fr))}}
@container (min-width:940px){.fx-line{grid-template-columns:repeat(4,minmax(0,1fr))}}
.fx-line>li{display:flex;min-width:0}.fx-line>li.idle{align-self:start}
.fx-station{flex:1;display:flex;flex-direction:column;gap:12px;min-width:0;border:1px solid var(--line);border-radius:10px;padding:14px;background:var(--surface,#fff);overflow-wrap:anywhere;scroll-margin:16px;transition:box-shadow .25s}
.fx-station.qc{background:#fafbf8}.fx-station.pack{background:#f5f8f3}.fx-station.idle{background:#fbfaf7}
.fx-station.hot{border-color:#c79a3c;box-shadow:inset 0 3px 0 #c79a3c;background:#fffbf2}
.fx-station.stalled{border-color:#e0b2ac;box-shadow:inset 0 3px 0 var(--red)}
.fx-station:focus{outline:none}.fx-station.flash{animation:fx-flash 1.4s ease-out}
@keyframes fx-flash{0%,35%{box-shadow:0 0 0 3px var(--green)}100%{box-shadow:0 0 0 0 transparent}}
.fx-station header{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;align-items:start}
.fx-station h3{font-size:15px;line-height:1.3;overflow-wrap:normal}
.fx-meta{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;margin-top:3px}
.fx-state{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600;color:var(--muted)}
.fx-state::before{content:"";width:7px;height:7px;border-radius:50%;background:#b9b5ab;flex:none}
.working .fx-state{color:var(--green)}.working .fx-state::before{background:var(--green);animation:fx-live 2s ease-out infinite}
.stalled .fx-state{color:var(--red)}.stalled .fx-state::before{background:var(--red)}
.unstaffed .fx-state,.ready .fx-state{color:#8a5a00}.unstaffed .fx-state::before,.ready .fx-state::before{background:#c79a3c}
@keyframes fx-live{0%{box-shadow:0 0 0 0 #2f5d3a66}70%,100%{box-shadow:0 0 0 6px #2f5d3a00}}
@media(prefers-reduced-motion:reduce){.working .fx-state::before,.fx-station.flash{animation:none}}
.fx-flag{white-space:normal}
.fx-people{display:flex;flex-wrap:wrap;gap:5px}
.fx-people span{display:inline-flex;align-items:center;gap:5px;font-size:11.5px;padding:2px 9px 2px 2px;border-radius:99px;background:#e4ebe1;color:#2c4438;overflow-wrap:normal}
.fx-people i{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#fff;color:var(--green);font-style:normal;font-size:9.5px;font-weight:600;letter-spacing:.02em}
.fx-counts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.fx-counts div{border:1px solid var(--line);border-radius:8px;padding:10px 6px;text-align:center;background:#fff;min-width:0}
.fx-counts div.on{border-color:#c9dccd;background:#f1f6f2}.fx-counts div.on:last-child{border-color:#ebd29e;background:#fff7e6}
.fx-counts strong{display:block;font-size:26px;line-height:1.15;font-weight:500;letter-spacing:-.03em;font-variant-numeric:tabular-nums}
.fx-counts small{display:block;font-size:11.5px;line-height:1.3;color:var(--muted);overflow-wrap:normal}
.fx-counts em{display:block;margin-top:3px;font-style:normal;font-size:11px;font-weight:600;color:var(--red)}
.fx-empty{display:grid;place-items:center;min-height:64px;margin:0;padding:12px;border-radius:8px;background:#f3f1ec;font-size:12.5px;color:var(--muted);text-align:center;overflow-wrap:normal}
.fx-list{list-style:none;margin:0;padding:0;display:grid;gap:6px}.fx-list li{display:grid;justify-items:start;gap:1px;font-size:12.5px;border-left:3px solid #a6bb87;padding-left:8px;min-width:0}
.fx-list li.stalled{border-color:var(--red)}.fx-list li.stalled small{color:var(--red)}.fx-list small{color:var(--muted)}
.fx-next{display:grid;gap:3px}.fx-next>small{font-size:11px;font-weight:600;color:var(--muted)}.fx-next p{margin:0;display:flex;flex-wrap:wrap;gap:4px 10px;font-size:12.5px;line-height:1.6}.fx-next .badge{white-space:normal}
.fx-station footer{margin-top:auto;display:flex;flex-wrap:wrap;gap:2px 12px;font-size:11.5px;color:var(--muted);border-top:1px solid var(--line);padding-top:8px}.fx-station footer span{white-space:nowrap}
.fx-station footer .bad{color:var(--red)}.fx-unassigned{padding:0 24px 18px}
.fx-flow{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:6px;align-items:end;height:170px;padding:20px 24px}
.fx-bar{display:grid;grid-template-rows:1fr auto;height:100%;text-align:center}.fx-bar span{align-self:end;display:flex;align-items:flex-end;background:#cfdcc8;border-radius:4px 4px 0 0;min-height:2px}
.fx-bar i{display:block;width:100%;background:var(--green);border-radius:4px 4px 0 0}.fx-bar small{font-size:10px;color:var(--muted);margin-top:4px}
@media(max-width:1000px){.fx-stats{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.fx-stats{grid-template-columns:1fr}.fx-line{padding:12px 16px 18px;gap:10px}.fx-rail-wrap{padding:16px 10px 2px}.fx-flow{padding:16px}}
.fx-bar .fx-h0{height:0%}.fx-bar .fx-h1{height:10%}.fx-bar .fx-h2{height:20%}.fx-bar .fx-h3{height:30%}.fx-bar .fx-h4{height:40%}.fx-bar .fx-h5{height:50%}.fx-bar .fx-h6{height:60%}.fx-bar .fx-h7{height:70%}.fx-bar .fx-h8{height:80%}.fx-bar .fx-h9{height:90%}.fx-bar .fx-h10{height:100%}.fx-bar span.fx-h0{height:2px}
/* Warranty claims: the dealer's description and photos. */
.claim-description{white-space:pre-wrap;overflow-wrap:anywhere;margin:6px 0 0;max-width:75ch}
.claim-photos{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:12px}
.claim-photos figure{margin:0;border:1px solid var(--line);border-radius:4px;overflow:hidden;background:#fff}
.claim-photos img{display:block;width:100%;height:260px;object-fit:contain;background:#fafaf7}
/* Scan screen (scan.js): one big scan box, the mode as a row of buttons, and the current job as a card under it. */
.sc-station .sc-modes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;overflow:visible}.sc-station .sc-modes button{padding:10px 8px;white-space:nowrap}
.sc-form{display:grid;gap:8px;padding:18px 24px;border-bottom:1px solid var(--line)}
.sc-form label{font-size:15px;font-weight:600}
.sc-form .scan-box-row{display:flex;gap:8px}.sc-form .scan-box-row input{flex:1;min-width:0;font-size:18px;min-height:52px;font-family:'IBM Plex Mono',ui-monospace,monospace;letter-spacing:.02em}
.sc-form .scan-box-row button{min-height:52px;white-space:nowrap}
.sc-msg{min-height:22px;font-size:14px;color:var(--green);font-weight:600;margin:0}.sc-msg.bad{color:var(--red)}
.sc-body{padding:18px 24px}.sc-choices{padding:0 24px 8px}.sc-choices p{font-size:13px;color:var(--muted);margin:0 0 8px}
.sc-card{display:grid;gap:12px}.sc-card h3{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:18px}.sc-card p{margin:0}
.sc-card .table-actions{justify-content:flex-start;flex-wrap:wrap}
.sc-facts{display:grid;gap:0;margin:0;border-top:1px solid var(--line)}.sc-facts div{display:grid;grid-template-columns:minmax(120px,30%) 1fr;gap:12px;padding:7px 0;border-bottom:1px solid var(--line)}.sc-facts dt{color:var(--muted)}.sc-facts dd{margin:0;font-weight:500;overflow-wrap:anywhere}
.sc-history{margin:0;padding-left:18px;display:grid;gap:4px;font-size:13px}.sc-card h4{margin:4px 0 0;font-size:14px}
.sc-lines td{vertical-align:top}.sc-qty{width:110px;min-height:44px;display:inline-block}
.sc-mini{display:block;margin-top:8px;font-size:12px;padding:6px 10px;min-height:36px}
.sc-steps{margin:0;padding-left:22px;display:grid;gap:8px}.sc-steps li.done{color:var(--muted)}.sc-steps input{margin-top:6px}
.sc-roll,.sc-map{display:grid;gap:14px;padding:16px;border:1px solid var(--line);border-radius:4px;background:var(--sage)}.sc-roll h4{margin:0;font-size:15px}
.sc-map{background:#fff;border:0;padding:24px}
@media(max-width:700px){.sc-form,.sc-body{padding:16px}.sc-choices{padding:0 16px 8px}.sc-form .scan-box-row button{padding:10px 12px}.sc-qty{width:96px}.table-wrap table.sc-lines{min-width:0}}
/* The camera: full screen over the page, the label held inside the frame. */
.sc-camera{position:fixed;inset:0;z-index:60;background:#111;color:#fff;display:grid;grid-template-rows:auto minmax(0,1fr) auto}
.sc-camera-top{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:max(12px,env(safe-area-inset-top)) 16px 12px}
.sc-camera-top button{background:transparent;color:#fff;border-color:#4a514d}
.sc-camera-view{position:relative;overflow:hidden}.sc-camera-view video{width:100%;height:100%;object-fit:cover;display:block}
.sc-camera-guide{position:absolute;left:8%;right:8%;top:30%;bottom:30%;border:3px solid #fff;border-radius:8px;box-shadow:0 0 0 100vmax #0007}
.sc-camera-status{padding:14px 16px max(16px,env(safe-area-inset-bottom));font-size:15px;text-align:center;margin:0}
#ship-record-form .check-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:8px 16px}#ship-record-form .check-grid label span{display:grid;gap:2px}#ship-record-form .check-grid small{font-size:12px;color:var(--muted)}
/* Order queue: search, what's listed, and orders waiting too long. */
.order-search{border-top:1px solid var(--line);align-items:flex-end;gap:10px}.order-search .field{flex:1;max-width:420px;margin:0}
.queue-summary{margin:0;padding:10px 24px;font-size:13px;color:var(--muted);border-top:1px solid var(--line)}.queue-summary strong{color:var(--ink)}
small.waiting-long{color:var(--red);font-weight:600}
@media(max-width:700px){.queue-summary{padding:10px 16px}.order-search .field{max-width:none}}
/* Sales (CRM) */
.crm-columns{align-items:start}.crm-columns>div>.card:last-child{margin-bottom:24px}
.crm-funnel td{padding:14px 24px;vertical-align:middle}.crm-funnel td:first-child{width:28%}.crm-funnel td:nth-child(2){width:44%}.crm-funnel td.num small{color:var(--muted)}
.crm-list{list-style:none;margin:0;padding:0}
.crm-list li{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:start;gap:14px;padding:14px 24px;border-top:1px solid var(--line)}
.crm-list li:first-child{border-top:0}.crm-list li>div:only-child{grid-column:1/-1}.crm-list li>div:first-child:nth-last-child(2){grid-column:1/3}
.crm-list small{display:block;margin-top:4px;color:var(--muted);font-size:12px}.crm-list small .badge{margin:2px 4px 0 0}.crm-list p.hint{margin:6px 0 0}
.crm-list li.late .due{color:var(--red);font-weight:600}.crm-columns .card-head>button{flex:none}.crm-list li.void{opacity:.6}
.crm-check{width:30px;height:30px;min-height:30px;padding:0;border-radius:50%;justify-content:center;font-size:13px;color:var(--muted);background:var(--white)}
.crm-check:hover:not(:disabled),.crm-check:focus-visible{border-color:var(--green);color:var(--green);background:var(--sage)}
.crm-health{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:50%;font-size:12px;font-weight:700;font-variant-numeric:tabular-nums;background:var(--sage);color:#3b5240}
.crm-health.warn{background:#fbf0d9;color:#7a5200}.crm-health.bad{background:#f7e6e3;color:var(--red)}
.crm-avatar{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#eef0e8;color:var(--ink);font-size:12px;font-weight:700;text-transform:uppercase}
.crm-search{flex-wrap:wrap;gap:10px}.crm-search input[type="search"]{flex:1 1 280px;min-height:44px;padding:10px 14px;border:1px solid var(--line);border-radius:8px;font:inherit}
.crm-search select{min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:8px;font:inherit;background:var(--white)}
.crm-accounts td{vertical-align:top}.crm-accounts td .badge{margin:0 4px 4px 0}
small.down,.down{color:var(--red)}small.up{color:#3b6b45}
.crm-board{position:relative;display:grid;grid-template-columns:repeat(4,minmax(220px,1fr));gap:14px;margin-bottom:24px;overflow-x:auto;padding-bottom:4px}
.crm-col{background:#efede6;border:1px solid var(--line);border-radius:12px;padding:12px;min-height:220px;display:flex;flex-direction:column;gap:10px;transition:background .12s,border-color .12s}
.crm-col.drop{background:var(--sage);border-color:#a9bfa3}
.crm-col header h3{font-size:14px;margin:0}.crm-col header small{display:block;color:var(--muted);font-size:12px;margin-top:3px}.crm-col>.hint{margin:auto 0;text-align:center}
.crm-card{position:relative;background:var(--white);border:1px solid var(--line);border-radius:10px;padding:12px;display:grid;gap:6px;cursor:grab}
.crm-card[draggable="false"]{cursor:default}.crm-card.dragging{opacity:.5}
.crm-card small{color:var(--muted);font-size:12px}.crm-card-meta{display:flex;justify-content:space-between;gap:8px;font-size:12px;font-variant-numeric:tabular-nums}
.crm-move select{width:100%;min-height:36px;padding:4px 8px;font:inherit;font-size:12px;border:1px solid var(--line);border-radius:8px;background:var(--white)}
.crm-owner{justify-self:start;font-size:11px;padding:3px 8px;border-radius:99px;background:#eef0e8;color:var(--muted)}
.crm-head .card-head{align-items:flex-start}.crm-head h2{font-size:28px;margin:2px 0 8px}.crm-head .card-head p{display:flex;flex-wrap:wrap;gap:6px;align-items:center;font-size:13px;color:var(--muted)}
.crm-head .card-head p .badge{margin:0}.crm-actions{flex-wrap:wrap;max-width:520px}.crm-next{margin:0;border-radius:0;padding:14px 24px}
.crm-signals{background:#fbf0d9;color:#6f4610;border:1px solid #efd9a6}.crm-signals ul{margin:8px 0 0;padding:0;list-style:none;display:grid;gap:6px}.crm-signals .badge{margin:0 6px 0 0}
.crm-seg{flex:none;gap:4px}.crm-seg button{min-height:34px;padding:6px 10px;font-size:12px}
.crm-timeline{list-style:none;margin:0;padding:8px 24px 16px}
.crm-timeline li{display:grid;grid-template-columns:32px minmax(0,1fr);gap:12px;padding:12px 0;position:relative}
.crm-timeline li::before{content:"";position:absolute;left:15px;top:44px;bottom:-12px;width:1px;background:var(--line)}.crm-timeline li:last-child::before{display:none}
.crm-dot{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--sage);color:#3b5240;font-size:13px}
.crm-timeline li.system .crm-dot{background:#efede6;color:var(--muted)}
.crm-timeline header{display:flex;justify-content:space-between;gap:12px;align-items:baseline}.crm-timeline header strong{font-size:14px;font-weight:600}
.crm-timeline time{flex:none;font-size:12px;color:var(--muted)}.crm-timeline p{margin:4px 0 0;font-size:13px;line-height:1.5;white-space:pre-line}.crm-timeline li.system header strong{font-weight:500}
.crm-details{display:grid;gap:12px;margin:0}.crm-details div{display:grid;grid-template-columns:110px minmax(0,1fr);gap:12px}
.crm-details dt{font-size:12px;color:var(--muted)}.crm-details dd{margin:0;font-size:14px;overflow-wrap:anywhere;white-space:pre-line}
.crm-chart{position:relative;margin:0;padding:16px 20px 8px}.crm-chart svg{display:block;width:100%;height:auto}
.crm-chart path{fill:#9bb39a}.crm-chart path.now{fill:var(--green)}.crm-chart .axis{stroke:var(--line);stroke-width:1}
.crm-chart text{font-size:10px;fill:var(--muted);font-family:inherit}.crm-chart text.value{fill:var(--ink);font-weight:600}.crm-chart .hit{fill:transparent}.crm-chart .hit:hover{fill:rgba(35,76,62,.06)}
.crm-three{grid-template-columns:2fr 1fr 1fr}.crm-followup{align-items:end}.crm-report{max-height:260px;overflow:auto;margin-top:10px;border:1px solid var(--line);border-radius:8px}
.check-row{display:flex;align-items:center;gap:8px;font-size:14px;min-height:44px}
@media(max-width:1000px){.crm-board{grid-template-columns:repeat(4,minmax(240px,1fr))}}
@media(max-width:700px){
  .crm-board{align-items:start}.crm-list li{padding:14px 18px}.crm-funnel td{padding:12px 18px}.crm-timeline{padding:4px 18px 12px}
  .crm-head h2{font-size:23px}.crm-actions{max-width:none;justify-content:flex-start}.crm-three{grid-template-columns:1fr}.crm-details div{grid-template-columns:1fr;gap:2px}
  .crm-board{grid-template-columns:repeat(4,minmax(78vw,1fr));scroll-snap-type:x mandatory}.crm-col{scroll-snap-align:start}.crm-search{flex-direction:column;align-items:stretch}}
.crm-roles{border:0;padding:0;margin:0}.crm-roles legend{font-size:13px;font-weight:600;margin-bottom:8px}.crm-roles div{display:flex;flex-wrap:wrap;gap:8px 16px}
.crm-roles label{display:flex;align-items:center;gap:6px;font-size:14px;min-height:36px;font-weight:400}
/* Purchasing details: the approver's view of a draft PO, and the AP aging date. */
.po-context{margin:8px 0 18px}.po-context h3{margin-bottom:4px}.po-context .hint{margin-bottom:10px}.po-context td .badge{margin-top:6px}.po-context td small{max-width:300px}
.toolbar.ap-asof{flex-direction:row;justify-content:space-between;align-items:flex-end;gap:12px;flex-wrap:wrap}.ap-asof-form{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap}.ap-asof-form .field{min-width:190px}
@media(max-width:700px){.toolbar.ap-asof{align-items:stretch}.ap-asof-form .field{min-width:0;flex:1}}
/* A dealer's page: the account balance, with what is overdue. */
.dealer-balance{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 20px;margin:0 0 14px;font-size:14px;color:var(--muted)}.dealer-balance strong{font-size:22px;color:var(--ink);margin-right:4px}
.dealer-balance .overdue,small.overdue{color:var(--red);font-weight:600}
/* Overview (2026-10 refresh): a headline, four figures, the work waiting on Crown, this week's shipping, the floor
   today and the factory flow. Green: actions and progress. Amber: warnings only. Red: late or overdue. Blue: information. */
.ov{display:flex;flex-direction:column;gap:24px}
.ov-hero{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:16px 24px}
.ov-hero .eyebrow{font-family:'IBM Plex Mono',ui-monospace,monospace;font-weight:500;letter-spacing:.08em}
.ov-hero>div:first-child{flex:1 1 520px;min-width:0}.ov-hero h1{font-size:clamp(26px,2.6vw,32px);line-height:1.2;font-weight:600;margin:6px 0}
.ov-hero p{color:#3b403d;max-width:72ch}
.ov-actions{display:flex;gap:8px;flex-wrap:wrap}
.ov-banner{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center;justify-content:space-between;margin:0;padding:10px 16px;border-radius:8px;background:#f1f6f2;border:1px solid #c9dccd;color:#1e3f27;font-size:14px}
.ov-banner button{min-height:40px;padding:8px 14px}
.ov-tiles{display:flex;flex-wrap:wrap;gap:12px}
.ov-tile{flex:1 1 220px;display:flex;flex-direction:column;align-items:stretch;gap:8px;min-width:0;text-align:left;padding:18px;border:1px solid var(--line);border-radius:10px;background:#ffffff;color:var(--ink);font-weight:400;box-shadow:0 1px 2px #171b190a,0 8px 20px -14px #171b192e}
.ov-tile:hover:not(:disabled){border-color:#cfcbc1}.ov-tile:disabled{cursor:default;opacity:1}
.ov-top{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}
.ov-label{font-family:'IBM Plex Mono',ui-monospace,monospace;font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);font-weight:500}
.ov-num{font-family:'IBM Plex Mono',ui-monospace,monospace;font-size:34px;line-height:38px;font-weight:600;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.ov-num small{font-size:14px;font-weight:500;color:var(--muted)}
.ov-sub{font-size:12.5px;color:var(--muted)}
.ov-tag{display:inline-block;font-family:'IBM Plex Mono',ui-monospace,monospace;font-size:11px;letter-spacing:.06em;text-transform:uppercase;padding:3px 7px;border-radius:4px;white-space:nowrap;background:#efede7;color:#3b403d;font-weight:500}
.ov-tag.bad{background:#fbe7e5;color:#8a2e27}.ov-tag.warn{background:#fff1d6;color:#5c3900}.ov-tag.info{background:#e6ecf5;color:#2a3f5f}.ov-tag.ok{background:var(--sage);color:#1e3f27}
.ov-aging{display:flex;height:6px;border-radius:3px;overflow:hidden;background:#efede7}.ov-aging span{display:block;height:100%;width:0}.ov-aging .a1{background:#b7791f}.ov-aging .a2{background:#b4453c}.ov-aging .a3{background:#8a2e27}
.ov-cols{display:flex;flex-wrap:wrap;gap:24px;align-items:flex-start}.ov-main{flex:999 1 520px;min-width:0;display:flex;flex-direction:column;gap:24px}.ov-side{flex:1 1 320px;min-width:0;display:flex;flex-direction:column;gap:24px}
.ov .card{margin:0;border-radius:10px;background:#ffffff;box-shadow:0 1px 2px #171b190a}
.ov .card-head h2,.ov-panel h2,.ov-flow h2{font-size:17px;line-height:24px}
.ov .todo-item{gap:12px 16px;padding:14px 24px;flex-wrap:wrap}.ov .todo-item>div{flex:1 1 240px}
.ov .todo-item>button{min-height:38px;padding:8px 14px;font-size:13px;border-radius:6px}
.ov-icon{width:36px;height:36px;border-radius:8px;display:grid;place-items:center;flex-shrink:0;background:#efede7;color:#3b403d}
.ov-icon.bad{background:#fbe7e5;color:#8a2e27}.ov-icon.warn{background:#fff1d6;color:#5c3900}.ov-icon.info{background:#e6ecf5;color:#2a3f5f}
.ov-panel{padding:20px 22px;display:flex;flex-direction:column;gap:14px}
.ov-panel-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;flex-wrap:wrap}.ov-panel-head .link{font-size:13px;color:var(--green)}
.ov-week{display:flex;gap:6px}.ov-day{flex:1 1 0;display:flex;flex-direction:column;align-items:center;gap:4px;padding:10px 0;border-radius:8px;background:var(--surface)}
.ov-day b{font-family:'IBM Plex Mono',ui-monospace,monospace;font-size:18px}.ov-day.today{background:var(--green);color:#ffffff}.ov-day.today .ov-label{color:#c9dccd}
.ov-rows{list-style:none;margin:0;padding:0}.ov-rows li{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;border-top:1px solid #efede7}.ov-rows li>span:first-child{min-width:0}
.ov-rows small{display:block;font-family:'IBM Plex Mono',ui-monospace,monospace;font-size:12px;color:var(--muted);margin-top:2px;overflow-wrap:anywhere}
.ov-mini{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.ov-mini div{padding:10px 12px;border-radius:8px;background:var(--surface)}
.ov-mini b{display:block;font-family:'IBM Plex Mono',ui-monospace,monospace;font-size:20px;line-height:26px}.ov-mini .bad{background:#fbe7e5}.ov-mini .bad b,.ov-mini .bad .ov-label{color:#8a2e27}
.ov-flow{padding:22px 24px 24px;display:flex;flex-direction:column;gap:16px}
.ov-grid{background-color:#fbfaf7;background-image:linear-gradient(#efede6 1px,transparent 1px),linear-gradient(90deg,#efede6 1px,transparent 1px);background-size:24px 24px}
.ov-live{display:inline-flex;align-items:center;gap:8px;font-family:'IBM Plex Mono',ui-monospace,monospace;font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:#1e3f27;background:var(--sage);padding:4px 8px;border-radius:4px}
.ov-live::before{content:'';width:6px;height:6px;border-radius:3px;background:var(--green)}
.ov-stations{display:flex;flex-wrap:wrap;gap:10px}
.ov-st{flex:1 1 112px;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:14px;border-radius:8px;background:var(--surface);border:1px solid var(--line)}
.ov-st>.ov-label{overflow-wrap:anywhere}.ov-st b{font-family:'IBM Plex Mono',ui-monospace,monospace;font-size:26px;line-height:30px}
.ov-st.hot{flex-grow:1.3;background:#fff7e6;border:1.5px solid #d9a441}.ov-st.hot>.ov-label,.ov-st.hot .ov-sub{color:#5c3900}
.ov-bar{display:block;align-self:stretch;height:4px;border-radius:2px;background:#e4e1d9}.ov-bar i{display:block;height:100%;width:0;border-radius:2px;background:var(--green)}
.ov-st.hot .ov-bar{background:#ebd29e}.ov-st.hot .ov-bar i{background:#b7791f}
.ov-st.empty{height:96px;border:1.5px dashed #cfcbc1;background:#ffffff99}
.ov-ghost{border:1.5px dashed #cfcbc1;border-radius:10px;padding:14px 16px;display:flex;flex-direction:column;gap:4px;font-size:13px;color:#3b403d}.ov-ghost b{font-family:'IBM Plex Mono',ui-monospace,monospace;font-size:26px;line-height:32px;color:#868e87}
.ov-setup-head{justify-content:flex-start}.ov-ring{flex-shrink:0}
.ov-setup ol{list-style:none;margin:0;padding:0}
.ov-step{display:flex;flex-wrap:wrap;align-items:center;gap:12px 16px;padding:12px 24px;border-top:1px solid #efede7}.ov-step:first-child{border-top:0}.ov-step.next{background:#f1f6f2;padding:16px 24px}
.ov-step>span:first-child{width:28px;height:28px;flex-shrink:0;border-radius:14px;border:2px solid #cfcbc1;display:grid;place-items:center;font-family:'IBM Plex Mono',ui-monospace,monospace;font-size:13px;color:var(--muted)}
.ov-step.next>span:first-child{border-color:var(--green);color:#1e3f27;font-weight:600}
.ov-step>div{flex:1 1 240px;display:grid;gap:2px}.ov-step small{color:var(--muted);font-size:13px}.ov-step button{min-height:40px;padding:8px 14px;font-size:13px}
.ov-more{margin:0;padding:12px 24px;border-top:1px solid #efede7;font-size:13px}
@media(max-width:700px){.ov .todo-item{padding:14px 16px}.ov .todo-item>div{flex-basis:calc(100% - 52px)}.ov .todo-item>button{margin-left:0}.ov-step,.ov-step.next{padding:14px 16px}.ov-flow,.ov-panel{padding:18px 16px}.ov-num{font-size:30px;line-height:34px}}
.ov-rows small.txt{font-family:inherit;font-size:13px}
/* Console frame (2026-10 refresh): line icons in the menu, counts beside a few items, a brass dot on the current page
   (a brand moment, never a status), mono group labels, and a quieter top bar with a search field. */
.shell .navigation button{display:flex;align-items:center;gap:12px;min-height:40px;border-radius:6px}
.shell .navigation button .nav-icon{flex-shrink:0;width:18px;height:18px;opacity:.9}
.shell .navigation .nav-label{flex:1;min-width:0}
.shell .navigation button.active{background:#2e3431;color:#ffffff;font-weight:600}
.shell .navigation button.active::after{content:'';width:6px;height:6px;border-radius:3px;background:#c9a35a;flex-shrink:0}
.nav-count{flex-shrink:0;min-width:22px;height:20px;padding:0 6px;border-radius:10px;background:#3a433e;color:#ffffff;font-family:'IBM Plex Mono',ui-monospace,monospace;font-size:11px;font-weight:600;display:inline-grid;place-items:center}
.nav-count.warn{background:transparent;color:#e8b65a;padding:0;min-width:0;font-weight:500}
.nav-count.quiet{background:transparent;color:#8e968f;padding:0;min-width:0;font-weight:500}
.shell .nav-group-label{font-family:'IBM Plex Mono',ui-monospace,monospace;font-weight:500;letter-spacing:.08em;color:#8e968f}
.topbar{gap:16px}
.find-form{position:relative;max-width:520px}
.find-form .find-icon{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:#5c625f;pointer-events:none}
.find-form input{padding-left:36px;padding-right:34px;border-radius:8px;border-color:#cfcbc1;background:#ffffff}
.find-form .find-key{position:absolute;right:80px;top:50%;transform:translateY(-50%);font-family:'IBM Plex Mono',ui-monospace,monospace;font-size:11px;padding:1px 6px;border:1px solid #e2dfd7;border-radius:4px;color:#5c625f;background:#ffffff;pointer-events:none}
.find-form button{border-radius:8px}
.account-who{display:inline-flex;align-items:center;gap:8px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.account-who i{flex-shrink:0;width:28px;height:28px;border-radius:14px;background:#2f5d3a;color:#ffffff;font-style:normal;font-size:11px;font-weight:600;display:grid;place-items:center}
.topbar .account button{border-radius:8px}
@media(max-width:700px){.shell .navigation button{min-height:56px}.shell .navigation button.active::after{display:none}.find-form .find-key{display:none}.find-form input{padding-right:12px}}
/* Every section (2026-10 refresh): cards white on the off-white page with a soft lift, headings in step with the
   Overview, figures in the title-block mono, filters as chips that show selection the design-system way (an accent
   edge on a tint), and a drawn empty-state mark. */
.shell .page-heading h1{font-size:clamp(26px,2.6vw,32px);line-height:1.2;font-weight:600;margin:6px 0 8px}
.shell .page-heading .eyebrow{font-family:'IBM Plex Mono',ui-monospace,monospace;font-weight:500;letter-spacing:.08em}
.shell .card,.shell .stat,.shell .app-card{background:#ffffff;border-color:#e4e1d9;border-radius:10px;box-shadow:0 1px 2px #171b190a}
.shell .stat{box-shadow:0 1px 2px #171b190a,0 8px 20px -14px #171b192e}
.shell .stat strong{font-family:'IBM Plex Mono',ui-monospace,monospace;font-weight:600;font-variant-numeric:tabular-nums;letter-spacing:0}
.shell .stat .eyebrow,.shell .stat>span:first-child{font-family:'IBM Plex Mono',ui-monospace,monospace;font-weight:500;letter-spacing:.08em;text-transform:uppercase;font-size:11px;color:var(--muted)}
.shell .card-head h2{font-size:17px;line-height:24px}
.shell .order-filters button{min-height:36px;padding:6px 14px;border-radius:18px;border:1px solid #cfcbc1;background:#ffffff;color:#3b403d;font-size:13px;font-weight:500}
.shell .order-filters button.primary,.shell .order-filters button[aria-pressed="true"]{background:#f1f6f2;border:1.5px solid #2f5d3a;color:#1e3f27;font-weight:600}
.shell .empty .icon{color:#868e87;line-height:0}
.shell th{font-family:'IBM Plex Mono',ui-monospace,monospace;font-weight:500;letter-spacing:.08em}
@media(max-width:700px){.shell .order-filters button{min-height:44px}}
/* Production → Performance: tiles with a 12-week trend, SVG charts that scale with their card, definitions. */
.perf{display:flex;flex-direction:column;gap:20px}
.perf-seg{display:inline-flex;padding:3px;border-radius:8px;background:#efede7;border:1px solid var(--line)}
.shell .perf-seg button{min-height:38px;padding:0 14px;border:0;border-radius:6px;background:transparent;color:#5c625f;font-size:13px;font-weight:500;box-shadow:none}
.shell .perf-seg button[aria-pressed="true"]{background:#ffffff;color:var(--ink);box-shadow:0 1px 2px rgba(23,27,25,.12)}
.perf-tile{cursor:default}
.perf-figure{display:flex;align-items:flex-end;justify-content:space-between;gap:8px}.perf-figure .ov-num{white-space:nowrap;overflow-wrap:normal}
.perf-spark{flex-shrink:0}
.perf-delta{align-self:flex-start;display:inline-flex;align-items:center;gap:4px;padding:2px 8px 2px 6px;border-radius:10px;background:#efede7;color:#3b403d;font-size:12px;font-weight:500;line-height:18px}
.perf-delta.good{background:#f1f6f2;color:#2f5d3a}.perf-delta.bad{background:#fbe7e5;color:#8a2e27}
.perf-row{display:flex;flex-wrap:wrap;gap:16px;align-items:stretch}
.perf-wide{flex:3 1 560px;min-width:0}.perf-narrow{flex:2 1 360px;min-width:0}
.perf-card{display:flex;flex-direction:column;gap:14px;padding-bottom:22px}
.perf-card>:not(.card-head){margin-left:22px;margin-right:22px}
.perf-card>.perf-chart{width:calc(100% - 44px)}
.perf .card{margin:0}
.perf-card .card-head h2{font-size:17px;line-height:24px}
.perf-legend{display:inline-flex;gap:14px;font-size:12px;color:var(--muted);align-items:center;flex-wrap:wrap}
.perf-legend span{display:inline-flex;align-items:center;gap:6px}.perf-legend i{display:inline-block;width:16px}
.perf-legend i.line{height:2px;border-radius:1px;background:#2f5d3a}.perf-legend i.ref{height:1px;background:#5c625f}
.perf-legend i.goal{height:0;border-top:2px dashed #b4682c}
.perf-goal{stroke:#b4682c;stroke-width:1.5;stroke-dasharray:6 4}
.perf-chart .perf-goal-label{fill:#8a4a17;font-family:'IBM Plex Sans',system-ui,sans-serif;font-size:12px;font-weight:600}
.perf-target{align-self:flex-start;font-size:12px;line-height:18px;color:var(--muted)}
.perf-target.good{color:#2f5d3a}.perf-target.bad{color:#8a2e27;font-weight:500}
.perf-chart{display:block;width:100%;height:auto;overflow:visible}
.perf-chart text{font-family:'IBM Plex Mono',ui-monospace,monospace;font-size:11px}
.perf-grid{stroke:#efede7;stroke-width:1}.perf-axis{stroke:#cfcbc1;stroke-width:1}
.perf-tick{fill:#868e87}.perf-ref{stroke:#5c625f;stroke-width:1}
.perf-chart .perf-ref-label{fill:#5c625f;font-family:'IBM Plex Sans',system-ui,sans-serif;font-size:12px}.perf-chart .perf-ref-value{fill:#1b1d1c;font-size:12px;font-weight:600}
.perf-area{fill:#2f5d3a;fill-opacity:.08}.perf-line{stroke:#2f5d3a;stroke-width:2;stroke-linejoin:round;stroke-linecap:round;fill:none}
.perf-dot{fill:#2f5d3a;stroke:#ffffff;stroke-width:2}.perf-hit{fill:transparent}
.perf-pt:hover .perf-dot{r:6}.perf-pt:hover .perf-bar{fill:#2f5d3a}
.perf-chart .perf-end{fill:#1b1d1c;font-size:13px;font-weight:600}
.perf-bar{fill:#7fa08a}.perf-bar.now{fill:#2f5d3a}.perf-bar.hot{fill:#b7791f}
.perf-chart .perf-station{fill:#3b403d;font-family:'IBM Plex Sans',system-ui,sans-serif;font-size:13px}.perf-chart .perf-station.hot{fill:#1b1d1c;font-weight:600}
.perf-chart .perf-val{fill:#1b1d1c;font-size:12px;font-weight:600}.perf-chart .perf-note{fill:#868e87;font-family:'IBM Plex Sans',system-ui,sans-serif;font-size:12px}
.perf-flag{fill:#fff1d6}.perf-chart .perf-flag-text{fill:#5c3900;font-size:10px;letter-spacing:.06em}
.perf-empty{margin:0;padding:28px 16px;border-radius:8px;background:#fbfaf7;color:var(--muted);text-align:center}
.perf-callout{display:flex;gap:10px;align-items:flex-start;margin:0;padding:12px 14px;border-radius:8px;background:#fff1d6;border:1px solid #ebd29e;color:#5c3900;font-size:13px;line-height:19px}
.perf-callout svg{flex-shrink:0;margin-top:2px}.perf-callout .link{color:#5c3900;font-weight:600;text-decoration:underline;padding:0;min-height:0}
.perf-defs{margin:0;display:flex;flex-direction:column}
.perf-defs div{padding:11px 0;border-top:1px solid #efede7}.perf-defs dt{font-weight:600;font-size:14px}.perf-defs dd{margin:2px 0 0;font-size:13px;line-height:19px;color:var(--muted)}
.perf td.num small{color:var(--muted);font-size:12px}
/* Calls for a lead: a card in the corner of every page for leads, and at the top of the Factory page. */
#help-corner{position:fixed;right:16px;bottom:16px;z-index:40;display:flex;flex-direction:column;gap:8px;width:min(420px,calc(100vw - 32px))}
#help-corner[hidden]{display:none}
.hc-call{display:flex;gap:12px;align-items:flex-start;padding:14px 16px;border-radius:12px;background:#fbe7e5;border:1px solid #e3b4ad;color:#1b1d1c;box-shadow:0 10px 24px -12px rgba(23,27,25,.45)}
.hc-call.accepted{background:#f1f6f2;border-color:#c9dccd}
.hc-icon{flex:none;width:36px;height:36px;border-radius:18px;display:grid;place-items:center;background:rgba(138,46,39,.12);color:#8a2e27}
.hc-call.accepted .hc-icon{background:rgba(47,93,58,.14);color:#2f5d3a}
.hc-call>div{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.hc-call strong{font-size:15px;line-height:21px}.hc-call>div>span{font-size:13px;color:#5c625f}
.hc-call .hc-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.hc-call .hc-actions button{min-height:38px;padding:0 14px}
.hc-more{align-self:flex-end;min-height:36px}
.hc-card{margin-bottom:20px}
.hc-list{list-style:none;margin:0;padding:14px 22px 20px;display:flex;flex-direction:column;gap:10px}
.hc-list .hc-call{box-shadow:none}
.hc-quiet{margin:0 0 16px;color:var(--muted);font-size:13px}
/* Orders: saved views, sortable columns, selection with a bulk bar, the new-orders notice and the keys. */
.saved-view{display:inline-flex;align-items:stretch;border-radius:18px;border:1px dashed #b9bdb7;overflow:hidden}
.shell .saved-view button{border:0;border-radius:0;min-height:34px;background:transparent}
.shell .saved-view .saved-view-x{padding:0 10px;color:var(--muted);font-size:12px}
.saved-view.on{border-style:solid;border-color:#2f5d3a;background:#f1f6f2}
.orders-card th.sel,.orders-card td.sel{width:44px;padding-right:0}
.orders-card td.sel input,.orders-card th.sel input{width:18px;height:18px;accent-color:#2f5d3a;cursor:pointer}
.orders-card tr.selected td{background:#eef4ef}
.orders-card tr.kb td{box-shadow:inset 0 2px 0 #2f5d3a,inset 0 -2px 0 #2f5d3a}.orders-card tr.kb td:first-child{box-shadow:inset 3px 0 0 #2f5d3a,inset 0 2px 0 #2f5d3a,inset 0 -2px 0 #2f5d3a}
.orders-card td small.late{color:#8a2e27;font-weight:600}
.bulk-bar{position:sticky;top:0;z-index:5;display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;margin:0 16px 12px;padding:10px 14px;border-radius:8px;background:#171b19;color:#ffffff}
.bulk-bar strong{margin-right:6px}
.shell .bulk-bar button{min-height:36px;padding:0 12px;background:#262c29;border:1px solid #3a433e;color:#ffffff}
.shell .bulk-bar button:disabled{opacity:.45}
.shell .bulk-bar button.quiet{margin-left:auto;background:transparent;border-color:transparent;color:#c9cec9}
.bulk-bar kbd,.order-keys kbd{font-family:'IBM Plex Mono',ui-monospace,monospace;font-size:11px;padding:1px 5px;border:1px solid currentColor;border-bottom-width:2px;border-radius:4px;opacity:.8}
.order-fresh{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:0 16px 12px;padding:10px 14px;border-radius:8px;background:#e6ecf5;color:#2a3f5f;font-size:14px}
.order-fresh[hidden]{display:none}.shell .order-fresh button{margin-left:auto;min-height:36px}
.order-keys{display:flex;flex-wrap:wrap;gap:6px 16px;margin:0;padding:10px 16px 0;color:var(--muted);font-size:12px}
.order-keys span{display:inline-flex;gap:4px;align-items:center}
@media(max-width:700px){.order-keys{display:none}}
/* The command bar: the Find box's key opens it, as do ⌘K and Ctrl K. */
.shell .find-form .find-key{pointer-events:auto;cursor:pointer;min-height:24px;line-height:20px;font-weight:500;z-index:1}
.shell .find-form .find-key:hover{border-color:#cfcbc1;color:var(--ink)}
dialog#cmdk{padding:0;border:0;background:transparent;width:min(680px,calc(100vw - 32px));max-height:calc(100dvh - 120px);margin:72px auto auto;overflow:visible}
dialog#cmdk::backdrop{background:rgba(23,27,25,.42)}
.cmdk-box{display:flex;flex-direction:column;max-height:calc(100dvh - 120px);border-radius:14px;background:#ffffff;border:1px solid #e4e1d9;box-shadow:0 2px 6px rgba(23,27,25,.08),0 32px 64px -24px rgba(23,27,25,.45);overflow:hidden;color:#1b1d1c;font-family:'IBM Plex Sans',system-ui,sans-serif}
.cmdk-input{display:flex;align-items:center;gap:12px;padding:0 16px;min-height:60px;border-bottom:1px solid #e4e1d9;color:#5c625f}
.cmdk-input input{flex:1;min-width:0;border:0;outline:none;font-size:18px;color:#1b1d1c;background:transparent;padding:14px 0}
.cmdk-box kbd{font-family:'IBM Plex Mono',ui-monospace,monospace;font-size:11px;padding:1px 6px;border:1px solid #cfcbc1;border-bottom-width:2px;border-radius:4px;color:#5c625f;background:#ffffff}
.cmdk-list{overflow-y:auto;padding:4px 0 8px}
.cmdk-group{padding:12px 16px 4px;font-family:'IBM Plex Mono',ui-monospace,monospace;font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:#5c625f}
.cmdk-item{display:flex;align-items:center;gap:12px;min-height:48px;padding:6px 16px;cursor:pointer;color:#3b403d}
.cmdk-item .nav-icon{flex:none;width:32px;height:32px;padding:6px;border-radius:8px;background:#efede7;border:1px solid #e4e1d9}
.cmdk-item.on{background:#f1f6f2;box-shadow:inset 3px 0 0 #2f5d3a;color:#2f5d3a}.cmdk-item.on .nav-icon{background:#ffffff}
.cmdk-label{flex:1;min-width:0;display:flex;flex-direction:column;line-height:19px}.cmdk-label b{font-weight:500;color:#1b1d1c}.cmdk-label small{font-size:12px;color:#5c625f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cmdk-note{margin:0;padding:14px 16px 6px;color:#5c625f;font-size:14px}
.cmdk-foot{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;padding:10px 16px;background:#fbfaf7;border-top:1px solid #e4e1d9;font-size:12px;color:#5c625f}
.cmdk-foot span{display:inline-flex;gap:4px;align-items:center}.cmdk-foot .cmdk-tip{margin-left:auto}
@media(max-width:700px){dialog#cmdk{margin-top:16px}.cmdk-foot .cmdk-tip{display:none}}
.cmdk-input input,.cmdk-input input:focus,.cmdk-input input:focus-visible{border:0;box-shadow:none;outline:none;min-height:0}
.cmdk-input:focus-within{box-shadow:inset 0 -2px 0 #2f5d3a}
/* Build steps editor (Floor → Build steps). */
.steps-list{display:flex;flex-direction:column;gap:12px}
.checks-list{display:flex;flex-direction:column;gap:8px;margin-bottom:10px}
.check-row{display:flex;gap:6px;align-items:center}.check-row input{flex:1;min-width:0}.shell .check-row button,.check-row button{min-height:32px;padding:0 10px;font-size:13px;flex:none}
.step-row{margin:0;padding:12px 14px 10px;border:1px solid var(--line);border-radius:10px;background:#fbfaf7;display:flex;flex-direction:column;gap:8px}
.step-row legend{padding:0 6px;font-family:'IBM Plex Mono',ui-monospace,monospace;font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.step-row .field{margin:0}
.step-row-actions{display:flex;gap:6px;justify-content:flex-end}.shell .step-row-actions button,.step-row-actions button{min-height:32px;padding:0 10px;font-size:13px}
/* Best version (2026-10-25): the frame and controls of the Best design on every screen. The menu keeps the signed-in
   account at its foot; the top bar holds Find (with the command bar's key), a Live pill on pages that refresh
   themselves, and the Inbox. Buttons and fields are rounder, tabs are underlined, search rows are compact, and record
   pages and dialogs use the same cards as the sections. */
:where(.shell,dialog,.loading-shell) button{border-radius:8px;border-color:#cfcbc1}
:where(.shell main,dialog) button:where(:not(.primary,.quiet,.link,:disabled)):hover{background:#fbfaf7;border-color:#b9b5ab}
:where(.shell,dialog) button.primary:where(:not(:disabled)):hover{background:#1e3f27;border-color:#1e3f27}
:where(.shell,dialog) button.quiet:where(:not(:disabled)):hover{background:#efede7}
:where(.shell,dialog) :is(input:not([type=checkbox],[type=radio],[type=range],[type=color]),select,textarea){border-radius:8px}
.ui-icon{flex-shrink:0;display:block}
.icon-btn{display:inline-grid;place-items:center;width:44px;min-width:44px;padding:0;color:#3b403d}
.shell .heading-actions,.ov-actions{align-items:center}
.shell .badge{border-radius:4px}
/* Menu: the Best palette, a scrolling list and the account pinned at the foot. */
@media(min-width:701px){
  .shell .sidebar{position:sticky;top:0;height:100vh;height:100dvh;padding:24px 16px 0;gap:22px;background:#171b19}
  .shell{background:linear-gradient(to right,#171b19 var(--menu-w,242px),transparent var(--menu-w,242px))}
  .shell .navigation{flex:1 1 auto;min-height:0;align-content:start;overflow-y:auto;overscroll-behavior:contain;margin:0 -8px;padding:0 8px 12px;scrollbar-width:thin;scrollbar-color:#3a433e transparent}
  .shell .navigation button.active{background:#262c29}
  .shell .sidebar-bottom{display:block;margin:0 -16px;padding:12px 16px 14px;border-top:1px solid #2b322e;font-size:13px;letter-spacing:0;color:#c9cec9}
  .sidebar-bottom .account{display:flex;flex-direction:column;align-items:stretch;gap:10px}
  .sidebar-bottom .account-who{display:flex;align-items:center;gap:10px;min-width:0}
  .sidebar-bottom .account-who i{width:32px;height:32px;border-radius:16px;font-size:12px}
  .sidebar-bottom .who{display:flex;flex-direction:column;min-width:0;line-height:16px}
  .sidebar-bottom .who b{color:#ffffff;font-weight:500;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .sidebar-bottom .who small{color:#8e968f;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .sidebar-bottom .account-actions{display:flex;align-items:center;gap:6px}
  .sidebar-bottom .account-actions .msg-bell{display:none}
  .shell .sidebar-bottom .acct-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:36px;min-width:36px;padding:0 9px;border-radius:8px;border:1px solid #2f3733;background:transparent;color:#c9cec9;font-size:13px;font-weight:500}
  .shell .sidebar-bottom .acct-btn:hover{background:#262c29;color:#ffffff;border-color:#3a433e}
  .sidebar-bottom .acct-btn:not([data-action="logout"]) .acct-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
  .shell .sidebar-bottom .acct-btn[data-action="logout"]{margin-left:auto;padding:0 12px}
  /* The top bar. */
  .shell .topbar{justify-content:flex-start;gap:12px 16px;padding:14px 32px;background:#fbfaf7;border-bottom:1px solid #e4e1d9}
  .shell .topbar .find-form{flex:1 1 320px;max-width:560px}
  .shell .topbar .find-form input{min-height:44px;padding-right:64px}
  .shell .topbar .find-form .find-key{right:10px}
  .top-tools{margin-left:auto;display:flex;align-items:center;gap:8px}
  .live-pill{display:inline-flex;align-items:center;gap:8px;min-height:32px;padding:0 12px;border-radius:16px;background:#f1f6f2;border:1px solid #c9dccd;color:#1e3f27;font-size:12px;font-weight:500;white-space:nowrap}
  .live-pill i{width:8px;height:8px;border-radius:4px;background:#2f5d3a;box-shadow:0 0 0 4px rgba(47,93,58,.16)}
  .shell .topbar .msg-bell{position:relative;display:grid;place-items:center;width:44px;height:44px;min-height:44px;padding:0;border:1px solid #e4e1d9;border-radius:8px;background:#ffffff;color:#3b403d}
  .shell .topbar .msg-bell:hover{border-color:#cfcbc1;color:#1b1d1c}
  .topbar .msg-bell-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
  .topbar .msg-bell .msg-count{position:absolute;top:5px;right:4px;min-width:16px;height:16px;padding:0 4px;border-radius:8px;border:0;font-family:'IBM Plex Mono',ui-monospace,monospace;font-size:10px;line-height:16px}
  .shell main.content{padding:28px 32px 48px}
}
@media(min-width:701px) and (max-width:1000px){
  .shell{--menu-w:190px}
  .shell .sidebar{padding:20px 10px 0}.shell .sidebar-bottom{margin:0 -10px;padding:12px 10px 14px}
  .sidebar-bottom .acct-btn .acct-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
  .shell .sidebar-bottom .acct-btn[data-action="logout"]{padding:0 9px}
  .live-pill{display:none}
  .shell .topbar{padding:12px 24px}.shell main.content{padding:24px 24px 40px}
}
/* Phone menu: the account at the foot, its buttons with their names. */
@media(max-width:700px){
  .shell.menu-open .sidebar-bottom .account{display:flex;flex-direction:column;align-items:stretch;gap:10px}
  .shell.menu-open .sidebar-bottom .account-who{display:flex;align-items:center;gap:10px;flex:none}
  .shell.menu-open .sidebar-bottom .account-who i{width:32px;height:32px;border-radius:16px}
  .shell.menu-open .sidebar-bottom .who{display:flex;flex-direction:column;flex:1;min-width:0;line-height:17px}
  .shell.menu-open .sidebar-bottom .who b{color:#ffffff;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .shell.menu-open .sidebar-bottom .who small{color:#8e968f;font-size:12px}
  .shell.menu-open .sidebar-bottom .account-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .shell.menu-open .sidebar-bottom .account-actions button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 12px;border-radius:8px;border:1px solid #4a514d;background:transparent;color:#ffffff;font-size:15px;font-weight:500}
  .shell.menu-open .sidebar-bottom .account-actions span{flex:none;max-width:none;overflow:visible;font-size:inherit;color:inherit}
  .shell.menu-open .sidebar-bottom .msg-count{min-width:18px;padding:0 5px;border-radius:9px;font-size:11px;line-height:18px}
}
/* Page headings: the section and Crown's date in mono over a tighter title. */
.shell .page-heading{margin-bottom:22px;gap:12px 24px}
.shell .page-heading h1{font-size:clamp(26px,2.4vw,30px);line-height:1.2;margin:4px 0 6px}
.shell .page-heading p:not(.eyebrow){font-size:14px;line-height:21px}
.shell .page-heading .eyebrow{font-size:11px;color:#5c625f}
/* Tabs: a list's views read as underlined tabs across the top of its card. */
.shell .toolbar.order-filters[role="group"]{gap:0 22px;padding:0 24px;align-items:stretch;border-bottom:1px solid #e4e1d9;background:transparent}
.shell .toolbar.order-filters[role="group"]>button[aria-pressed]{min-height:48px;padding:0 2px;border:0;border-radius:0;background:transparent;color:#5c625f;font-size:14px;font-weight:500;box-shadow:inset 0 -2px 0 transparent;white-space:nowrap}
.shell .toolbar.order-filters[role="group"]>button[aria-pressed]:hover{color:#1b1d1c;background:transparent;box-shadow:inset 0 -2px 0 #cfcbc1}
.shell .toolbar.order-filters[role="group"]>button[aria-pressed="true"],.shell .toolbar.order-filters[role="group"]>button[aria-pressed="true"]:hover{color:#1b1d1c;font-weight:600;background:transparent;border:0;box-shadow:inset 0 -2px 0 #2f5d3a}
@media(max-width:700px){.shell .toolbar.order-filters[role="group"]{padding:0 16px;gap:0 18px}.shell .toolbar.order-filters[role="group"]>button[aria-pressed]{min-height:48px}}
/* Search rows: one compact line, a search mark in the field, the field's name kept for screen readers. */
.shell .toolbar:has(>.field>input[type=search]){flex-direction:row;flex-wrap:wrap;align-items:center;gap:8px;padding:12px 24px}
.shell .toolbar>.field:has(>input[type=search]){flex:1 1 260px;max-width:440px;gap:0;margin:0}
.shell .toolbar>.field:has(>input[type=search])>.hint{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
.shell .toolbar input[type=search]{min-height:40px;padding:8px 12px 8px 36px;font-size:14px;background:#ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235c625f' stroke-width='1.75' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E") no-repeat 12px center}
.shell .toolbar:has(>.field>input[type=search])>button,.shell .toolbar.crm-search>button{min-height:40px;padding:0 14px}
@media(max-width:700px){.shell .toolbar:has(>.field>input[type=search]){padding:12px 16px}.shell .toolbar>.field:has(>input[type=search]){flex-basis:100%;max-width:none}.shell .toolbar:has(>.field>input[type=search])>button{flex:1}}
/* Tables: a lighter head and a little tighter. */
.shell th,dialog th{background:#fbfaf7;color:#5c625f;font-size:11px}
.shell th,.shell td{padding:13px 20px}
.shell td{border-bottom-color:#efede7}
.shell .card-head{padding:18px 22px}
/* Record pages: a light header bar and the sections as cards. */
dialog.as-page .dialog-header{background:#fbfaf7;border-bottom:1px solid #e4e1d9}
dialog.as-page .dialog-header [data-action="close"]{border-radius:8px}
dialog.as-page .dialog-body>section,dialog.as-page .dialog-body>form,dialog.as-page .dialog-body>.table-wrap{border-color:#e4e1d9;border-radius:10px;box-shadow:0 1px 2px #171b190a}
dialog.as-page .dialog-body>.table-wrap{overflow:hidden}
/* Dialogs: rounder, with the same lift as the command bar. */
dialog:not(.as-page,#cmdk){border:1px solid #e4e1d9;border-radius:14px;box-shadow:0 2px 6px rgba(23,27,25,.08),0 32px 64px -24px rgba(23,27,25,.45)}
dialog:not(.as-page,#cmdk) .dialog-header{border-bottom-color:#e4e1d9}
dialog:not(.as-page,#cmdk) .dialog-header h2{font-size:18px;line-height:26px}
dialog .read-only{border-radius:8px}
dialog .form-footer{border-top:1px solid #efede7;margin-top:4px;padding-top:16px}
.shell .toolbar select{min-height:40px;padding:8px 12px;font-size:14px}
.shell .toolbar .field{gap:4px}
/* Orders list (Best version): tabs with counts, progress through the floor, flags, ship date and value. */
.order-tabs .tab-count{margin-left:8px;display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 6px;border-radius:10px;background:#efede7;color:#3b403d;font-family:'IBM Plex Mono',ui-monospace,monospace;font-size:11px;font-weight:600;line-height:1}
.order-tabs button[aria-pressed="true"] .tab-count{background:#2f5d3a;color:#ffffff}
.order-tabs .tab-count.bad,.order-tabs button[aria-pressed="true"] .tab-count.bad{background:#fbe7e5;color:#8a2e27}
.shell .order-tabs .save-view{margin-left:auto;align-self:center;min-height:36px;padding:0 10px;color:#2f5d3a;font-weight:500}
.order-tabs .saved-view{align-self:center;margin-left:6px}
.order-search .queue-summary{margin:0 0 0 auto;padding:0;border:0;font-size:13px;color:#5c625f}
.order-search .queue-summary strong{color:#1b1d1c;font-weight:500}
.orders-table .order-no strong{font-family:'IBM Plex Mono',ui-monospace,monospace;font-weight:600;font-size:13px;color:#1b1d1c}
.orders-table .order-no small{font-family:'IBM Plex Mono',ui-monospace,monospace;font-size:11px;color:#5c625f}
.orders-table .order-who strong{font-weight:500}
.orders-table small{font-size:12px;color:#5c625f}
.route{display:flex;gap:3px;width:150px;max-width:100%;margin:3px 0 7px}
.route i{flex:1;height:5px;border-radius:3px;background:#e4e1d9}
.route i.on{background:#2f5d3a}
.prog-state{font-size:14px}.prog-state.done{color:#2f5d3a;font-weight:500}
.flag{display:inline-block;margin:2px 4px 2px 0;padding:2px 7px;border-radius:4px;border:1px solid #e4e1d9;background:#f3f2ee;color:#3b403d;font-family:'IBM Plex Mono',ui-monospace,monospace;font-size:10.5px;font-weight:500;line-height:16px;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap}
.flag.bad{background:#fbe7e5;border-color:#efc5bf;color:#8a2e27}
.flag.warn{background:#fff1d6;border-color:#ebd29e;color:#5c3900}
.flag.info{background:#e6ecf5;border-color:#c8d4e6;color:#2a3f5f}
.orders-table .order-flags{max-width:190px}
.order-ship .ship-day{font-weight:500;white-space:nowrap}.order-ship .ship-day.late{color:#8a2e27}
.orders-table .order-ship small.late{color:#8a2e27;font-weight:600}
.orders-table .order-ship small.risk{color:#7a4f00}
.orders-table .money{text-align:right;font-family:'IBM Plex Mono',ui-monospace,monospace;font-size:13px;white-space:nowrap}
.orders-table th.money{font-size:11px}
.orders-table .order-sub{white-space:nowrap;color:#5c625f;font-size:13px}
.orders-card tr.selected td:first-child{box-shadow:inset 3px 0 0 #2f5d3a}
.orders-card td.sel input,.orders-card th.sel input{min-height:0;margin:0;display:block}
.shell .orders-table .table-actions button{min-height:36px;padding:0 10px}
@media(max-width:700px){.order-search .queue-summary{flex-basis:100%;margin:0}.shell .order-tabs .save-view{margin-left:12px}}
.orders-table .order-ship small{white-space:nowrap}
@media(max-width:700px){table.cards td.money{text-align:left}table.cards td.order-flags:not(:has(.flag)){display:none}table.cards .route{width:100%;max-width:220px}}
/* Best version: record pages, dialogs, notes and forms. A record's summary is a card with its status first and its
   facts on one line; information notes are blue (green stays for action and progress); a form that is a page of its
   own sits on a card; dialogs are white. */
.shell .callout,dialog .callout{background:#eef3fa;border:1px solid #d3deee;color:#2a3f5f;border-radius:10px}
.shell .callout.price-check.ok,dialog .callout.price-check.ok{background:#f1f6f2;border-color:#c9dccd;color:#1e3f27}
.shell .callout.price-check.warn,dialog .callout.price-check.warn{background:#fff7e6;border-color:#ebd29e;color:#5c3900}
dialog:not(.as-page,#cmdk){background:#ffffff}
dialog.as-page .order-facts{flex-direction:row;flex-wrap:wrap;align-items:center;gap:8px 22px;padding:16px 20px;background:#ffffff;border:1px solid #e4e1d9;border-radius:10px;box-shadow:0 1px 2px #171b190a;color:#3b403d;font-size:14px}
dialog.as-page .order-facts .badge{align-self:center}
dialog.as-page .order-facts>span{position:relative}
dialog.as-page .order-facts>span+span::before{content:'';position:absolute;left:-12px;top:50%;width:3px;height:3px;margin-top:-1px;border-radius:2px;background:#b9b5ab}
dialog.as-page .dialog-header h2{font-size:20px;line-height:28px;font-weight:600}
dialog.as-page .order-actions{display:flex;flex-wrap:wrap;gap:8px}
.shell main.content>form.form{max-width:880px;padding:24px;background:#ffffff;border:1px solid #e4e1d9;border-radius:10px;box-shadow:0 1px 2px #171b190a}
@media(max-width:700px){.shell main.content>form.form{padding:18px 16px}dialog.as-page .order-facts{padding:14px 16px;gap:6px 20px}}
dialog.as-page .dialog-body>section,dialog.as-page .dialog-body>form,dialog.as-page .dialog-body>.table-wrap,dialog.as-page .dialog-body>.card{background:#ffffff}
/* Orders: dealer and station filters beside the search, and the columns this computer shows. */
.order-filter-selects{display:inline-flex;flex-wrap:wrap;align-items:center;gap:8px}
.shell .order-filter-selects select{width:auto;max-width:240px;min-height:40px;padding:6px 32px 6px 12px;font-size:14px}
.col-menu{position:relative}
.col-menu summary{list-style:none;display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:0 14px;border:1px solid #cfcbc1;border-radius:8px;background:#ffffff;font-size:14px;font-weight:600;cursor:pointer;user-select:none}
.col-menu summary::-webkit-details-marker{display:none}
.col-menu summary::after{content:'';width:7px;height:7px;margin:-3px 0 0 2px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg)}
.col-menu[open] summary{border-color:#2f5d3a}
.col-menu summary:focus-visible{outline:2px solid #2f5d3a;outline-offset:2px}
.col-menu-panel{position:absolute;z-index:6;top:calc(100% + 6px);left:0;min-width:200px;padding:6px;background:#ffffff;border:1px solid #e4e1d9;border-radius:10px;box-shadow:0 2px 6px rgba(23,27,25,.08),0 16px 32px -16px rgba(23,27,25,.35);display:flex;flex-direction:column}
.col-menu-panel label{display:flex;align-items:center;gap:10px;min-height:40px;padding:0 10px;border-radius:6px;font-size:14px;font-weight:500;cursor:pointer}
.col-menu-panel label:hover{background:#f6f5f1}
.shell .col-menu-panel input{width:18px;height:18px;min-height:0;margin:0;accent-color:#2f5d3a}
.orders-table.hide-progress [data-col="progress"],.orders-table.hide-flags [data-col="flags"],.orders-table.hide-ship [data-col="ship"],.orders-table.hide-submitted [data-col="submitted"],.orders-table.hide-value [data-col="value"]{display:none}
@media(max-width:700px){.order-filter-selects{flex-basis:100%}.shell .order-filter-selects select{flex:1 1 140px;max-width:none}}
.shell .order-search>.field:has(>input[type=search]){max-width:380px}
.shell .order-filter-selects select{max-width:200px}
.orders-table .num{text-align:right;font-family:'IBM Plex Mono',ui-monospace,monospace;font-size:13px;white-space:nowrap}
.orders-table th.num{font-size:11px}
.orders-table.hide-shades [data-col="shades"]{display:none}
@media(max-width:700px){table.cards td.num{text-align:left}}
.shell .orders-table th,.shell .orders-table td{padding:12px 14px}
.shell .orders-table th:first-child,.shell .orders-table td:first-child{padding-left:20px}
.orders-table .order-who{min-width:170px}
.orders-table .route{width:120px}
.shell .order-filter-selects select{max-width:180px}
/* The Brief page (AI phase 2): open findings by level, then how the person hears about them. */
.brief-list{list-style:none;margin:0;padding:0 24px}.brief-item{display:flex;justify-content:space-between;gap:18px;align-items:center;padding:16px 0;border-bottom:1px solid var(--line)}.brief-item:last-child{border:0}.brief-item>div:first-child{display:grid;gap:4px;min-width:0}.brief-item small{font-size:13px;overflow-wrap:anywhere}.brief-item .table-actions{flex:none;flex-wrap:wrap}.card-head h2 .badge{vertical-align:middle;margin-right:6px}
.training-bar{display:block;width:160px;max-width:100%;height:6px;border:0;border-radius:3px;background:#e2dfd7;overflow:hidden;margin-bottom:4px;accent-color:var(--green,#2f5d3a);-webkit-appearance:none;appearance:none}.training-bar::-webkit-progress-bar{background:#e2dfd7;border-radius:3px}.training-bar::-webkit-progress-value{background:var(--green,#2f5d3a);border-radius:3px}.training-bar::-moz-progress-bar{background:var(--green,#2f5d3a);border-radius:3px}
.ai-playbook-draft{display:flex;align-items:flex-start;gap:12px;flex-wrap:wrap;margin-top:8px}.ai-playbook-draft .hint{flex:1;min-width:220px;margin:0}
.brief-play{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:16px}.brief-play span{font-size:13px}
.brief-prefs{display:grid;gap:14px;padding:20px 24px}.brief-prefs .check{display:flex;gap:12px;align-items:flex-start;font-size:14px}.brief-prefs .check input{width:20px;height:20px;min-height:0;margin-top:2px;flex:none;accent-color:var(--green)}.brief-prefs .check span{display:grid;gap:2px;color:var(--muted)}.brief-prefs .check strong{color:var(--ink)}
@media(max-width:700px){.brief-list{padding:0 18px}.brief-item{flex-direction:column;align-items:stretch}.brief-item .table-actions{justify-content:stretch}.brief-item .table-actions button{flex:1}}
/* AI proposals: the approval inbox on the Brief and the shadow list in Setup → AI. */
.proposal-list{display:grid;gap:0;padding:0 24px}.proposal{padding:20px 0;border-bottom:1px solid var(--line);display:grid;gap:12px}.proposal:last-child{border:0}.proposal header{display:flex;justify-content:space-between;gap:16px;align-items:baseline;flex-wrap:wrap}.proposal header strong{font-size:16px}.proposal>p{color:var(--muted);font-size:14px;max-width:820px}.proposal .table-wrap{border:1px solid var(--line);border-radius:4px}.proposal-lines th,.proposal-lines td{padding:10px 14px}.proposal-lines td small{display:block}.proposal-lines tfoot td{border-top:1px solid var(--line);font-size:13px}.proposal .table-actions{justify-content:flex-start;flex-wrap:wrap;align-items:center}.proposals-card{border-color:#c9dccd}.proposals-card .card-head{background:#f1f6f2}.proposal-sub{font-size:14px;padding-top:18px}
@media(max-width:700px){.proposal-list{padding:0 18px}.proposal .table-actions button{flex:1 1 100%}.proposal-lines{min-width:640px}}
/* Warranty terms (Warranty & samples → Warranty terms). */
.warranty-terms td small{display:block}.warranty-foot{padding:18px 24px;border-top:1px solid var(--line)}.warranty-changes{margin:6px 0 0;padding-left:18px;color:var(--muted,#5c625f);font-size:13px;line-height:1.7}
.warranty-start-label{align-self:center;margin-right:6px}
/* Guides & training. */
.guide-list td small{display:block}
#content-form .guide-products{border:0;padding:0;margin:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:4px 16px}#content-form .guide-products legend{font-size:13px;font-weight:600;margin-bottom:6px;padding:0}
#content-form .check{display:flex;gap:10px;align-items:center;min-height:36px;font-size:14px}#content-form .check input{width:18px;height:18px;min-height:0;flex:none}
.proposal-facts th{width:170px;text-transform:none;letter-spacing:0;font-size:13px;font-weight:600;color:var(--muted);background:transparent}
.proposal-email{border:1px solid var(--line);border-radius:8px;padding:10px 14px;margin-top:10px;background:var(--surface)}.proposal-email p{margin:4px 0}.proposal-email-body{white-space:pre-wrap;overflow-wrap:anywhere}
.proposal-hall-asked{margin:4px 0 8px;padding-left:18px}.proposal-hall-asked li{margin:2px 0}
.proposal-playbook{border:1px solid var(--line);border-radius:8px;padding:8px 14px;margin-top:10px;background:var(--surface)}.proposal-playbook p{margin:4px 0}.proposal-playbook ul{margin:4px 0;padding-left:18px;overflow-wrap:anywhere}.pb-removed del{color:var(--red)}.pb-added ins{color:var(--green);text-decoration:none}.pb-added li::marker{content:"+ "}.pb-removed li::marker{content:"− "}
.ai-playbook-text{white-space:pre-wrap;overflow-wrap:anywhere;max-height:50vh;overflow:auto;font-size:13px;line-height:1.5;margin:0;padding:10px;background:var(--surface);border:1px solid var(--line);border-radius:8px}
/* AI notes on a record's page: what CrownOS noticed or proposes about this order or purchase order. */
.ai-notes{border:1px solid #c9dccd;background:#f1f6f2;border-radius:4px;padding:14px 18px}.ai-notes h3{font-size:13px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin:0 0 8px}.ai-notes ul{list-style:none;margin:0;padding:0;display:grid;gap:10px}.ai-notes li{display:flex;gap:12px;align-items:flex-start}.ai-notes li>div{display:grid;gap:2px;flex:1;min-width:0}.ai-notes small{color:var(--muted);font-size:13px}.ai-notes .badge{flex:none}.ai-notes-link{flex:none;font-size:13px;font-weight:600;color:var(--green);align-self:center}
/* The dealer's photos on a damage report, in an order's Shades and cartons (core-receiving-extras-schema.sql). */
.shade-photos{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.shade-photo{width:56px;height:56px;min-height:0;padding:0;border:1px solid var(--line,#e2dfd7);border-radius:3px;overflow:hidden;background:#efede7;cursor:zoom-in}
.shade-photo img{width:100%;height:100%;object-fit:cover;display:block}
.freight-claim-note{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;margin:0 0 12px}.freight-claim-note .hint{margin:0;flex:1 1 280px}
/* Floor photos on an order (floor-photos.js draws the thumbnails). */
.photo-shade{display:grid;gap:2px;margin:10px 0 0}.photo-shade small{color:var(--muted)}
/* Parts (parts.js): the part dialog and Crown's pricing form on a parts order. */
#parts-part-form .guide-products{border:0;padding:0;margin:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:4px 16px}#parts-part-form .guide-products legend{font-size:13px;font-weight:600;margin-bottom:6px;padding:0}
:is(#parts-part-form,#parts-price-form) .check{display:flex;gap:10px;align-items:center;min-height:36px;font-size:14px}:is(#parts-part-form,#parts-price-form) .check input{width:18px;height:18px;min-height:0;flex:none;accent-color:var(--green)}
#parts-price-form table input{min-height:38px;max-width:140px}#parts-price-form td small,.parts-order-lines td small{display:block}
#parts-stock-panel{margin-top:18px}#parts-stock-panel h4{margin:0 0 8px}#parts-stock-panel .toolbar{padding:12px 0;border:0;flex-direction:row;flex-wrap:wrap}#parts-stock-panel .toolbar button small{display:block;font-weight:400;font-size:11px;color:inherit;opacity:.75}.parts-stock td small{display:block}
.parts-pick{margin-top:12px;padding:12px 14px;border:1px solid var(--line,#d8dcd9);border-radius:8px}.parts-pick h5{margin:0 0 8px;font-size:14px}.parts-pick h5 small{font-weight:400;color:var(--muted,#5f6b64);margin-left:6px}
.pick-lines{list-style:none;margin:0 0 10px;padding:0;display:flex;flex-direction:column;gap:6px}.pick-lines li{display:flex;gap:10px;align-items:flex-start}.pick-lines li small{display:block;color:var(--muted,#5f6b64)}
.pick-mark{width:22px;height:22px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line,#d8dcd9);flex:none;font-size:13px}
.pick-lines li.ok .pick-mark{background:var(--green);border-color:var(--green);color:#fff}
.parts-pick .inline-form{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.parts-pick .inline-form input{flex:1 1 220px;min-height:40px;font-size:16px}.parts-pick .inline-form .error{flex-basis:100%}
/* The menu put away on a computer or tablet (console.js applyNav): the page takes the full width, the top bar's menu
   button brings the menu back as a drawer over the page, and the button beside the logo keeps it open again. Phones
   keep their own folded menu. */
.nav-collapse,.nav-show,.nav-scrim{display:none}
@media(min-width:701px){
.shell>.sidebar{position:sticky;top:0;height:100dvh;overflow-y:auto;overscroll-behavior:contain}
.shell>.sidebar>.brand{padding-right:42px}
.nav-collapse{display:inline-flex;align-items:center;justify-content:center;position:absolute;top:20px;right:10px;z-index:2;width:36px;height:36px;padding:0;border:1px solid #ffffff2b;border-radius:4px;background:transparent;color:#ffffffc7;cursor:pointer}
.nav-collapse:hover,.nav-collapse:focus-visible{background:#ffffff14;color:#ffffff}
.shell{transition:grid-template-columns .22s ease}
.shell>.workspace{grid-column:2}
.shell.nav-collapsed{grid-template-columns:0 minmax(0,1fr);--menu-w:0px}
.shell.nav-collapsed>.sidebar{position:fixed;top:0;left:0;bottom:0;z-index:70;width:272px;height:100dvh;transform:translateX(-100%);visibility:hidden;transition:transform .22s ease,visibility 0s .22s}
.shell.nav-collapsed.nav-peek>.sidebar{transform:none;visibility:visible;box-shadow:0 0 48px #0000004d;transition:transform .22s ease}
.shell.nav-peek>.nav-scrim{display:block;position:fixed;inset:0;z-index:69;width:100%;padding:0;border:0;border-radius:0;background:#11151340;cursor:default}
.shell.nav-collapsed .topbar{justify-content:flex-start}
.shell.nav-collapsed .topbar>.top-tools{margin-left:auto}
.shell.nav-collapsed .nav-show{display:inline-flex;align-items:center;justify-content:center;flex:none;width:44px;height:44px;padding:0;border:1px solid var(--line);border-radius:4px;background:var(--surface,#fff);color:var(--ink);cursor:pointer}
.shell.nav-collapsed .nav-show:hover{border-color:#9aa39d}
}
@media(prefers-reduced-motion:reduce){.shell,.shell>.sidebar{transition:none!important}}
@media print{.nav-collapse,.nav-show,.nav-scrim{display:none!important}}
.rules-grid label span{display:grid;gap:2px}.rules-grid small{color:var(--muted);font-size:12px}.rules-list{list-style:none;margin:0;padding:0;display:grid;gap:8px;font-size:14px}.rules-deposit{margin:4px 0 0}.rules-deposit input{max-width:140px}
.move-grid label span{display:grid;gap:2px}.move-grid small{color:var(--muted);font-size:12px}.move-grid .field{margin:0 0 4px 28px;max-width:340px}

/* The Brief's written summary (core/ai-summary.mjs) */
.ai-summary .ai-summary-item{display:grid;gap:4px;padding:14px 24px;border-top:1px solid var(--line)}
.ai-summary .ai-summary-item p{margin:0;max-width:72ch}
.part-role .part-spec[hidden]{display:none}.part-role{border:1px solid var(--line);border-radius:6px;padding:10px 12px;margin:10px 0}.part-role legend{font-weight:600;padding:0 4px}
.ct-checks{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:6px 18px}.ct-checks label{display:flex;gap:8px;align-items:center;font-weight:400}.ct-checks input{width:auto;min-height:auto}fieldset.field{border:0;padding:0;margin:0}fieldset.field legend{font-size:13px;font-weight:600;margin-bottom:7px}.ct-entry{display:flex;gap:8px;align-items:center;margin-top:6px;flex-wrap:wrap}.ct-entry input{width:110px;min-height:40px;padding:6px 8px}.ct-entry button{min-height:40px;padding:6px 12px;font-size:12px}tr.ct-needs td{background:#fbf8ef}
/* Multi-level BOMs: the assemblies group, a line naming an assembly, the structure tree and the size form. */
.bom-group th{background:var(--sage);color:var(--green);text-transform:none;letter-spacing:0;font-size:13px}.bom-asm{color:var(--green)}.bom-asm button.link{min-height:0;padding:0 4px;border:0;background:none;color:var(--green);text-decoration:underline;font-weight:600}
.bom-tools{display:flex;flex-direction:column;gap:10px}.bom-size{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end}.bom-size label{display:grid;gap:4px;font-size:13px;font-weight:600}.bom-size input{width:7em;min-height:44px}.bom-size select{min-height:44px;max-width:22rem}
.bom-tree td,.bom-tree th{padding:10px 14px}.bom-tree tr.bom-tree-asm td{background:#f6f5f1;font-weight:600}.bom-tree tr.muted td{color:var(--muted)}
.bom-tree td.bom-d2{padding-left:2rem}.bom-tree td.bom-d3{padding-left:3.25rem}.bom-tree td.bom-d4{padding-left:4.5rem}.bom-tree td.bom-d5,.bom-tree td.bom-d6,.bom-tree td.bom-d7,.bom-tree td.bom-d8,.bom-tree td.bom-d9{padding-left:5.75rem}
/* A long picker's find box (console-erp.js): sits right above its select. */
.select-find{display:block;width:100%;margin:0 0 6px}
/* Print badges (Employees): one row per person, a tick and an optional photo for this print. */
#wf-badges-form .badge-list{gap:0;padding:4px 16px}#wf-badges-form .badge-row{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center;justify-content:space-between;padding:10px 0;border-bottom:1px solid var(--line)}#wf-badges-form .badge-row:last-child{border-bottom:0}
#wf-badges-form .badge-row .check{display:flex;gap:10px;align-items:flex-start;flex:1 1 260px;min-width:0}#wf-badges-form .badge-row .check input{width:18px;height:18px;min-height:0;margin-top:2px;flex:none;accent-color:var(--green)}#wf-badges-form .badge-row .check span{display:grid;gap:2px}#wf-badges-form .badge-row small{font-size:12px;color:var(--muted)}
#wf-badges-form .badge-photo{display:grid;gap:4px;font-size:12px;color:var(--muted);flex:0 1 240px}#wf-badges-form .badge-photo input{font-size:12px;min-height:0;padding:6px}
.badge.ai-tag{font-size:10px;padding:2px 6px;letter-spacing:.06em;vertical-align:middle}
.check-grid>.hint{grid-column:1/-1;margin:0 0 4px}
/* Crown's playbook for Clark (Setup → Clark). */
.ai-playbook{padding:18px 24px 4px;display:grid;gap:10px;font-size:14px;line-height:1.55;max-width:80ch;overflow-wrap:anywhere}
.ai-playbook+.hint{padding:0 24px 18px}

/* Catalog → Store (store.js): the item list, options and photos, categories. */
.store-catalog .toolbar input[type="search"]{min-width:14rem}
.store-catalog .toolbar select{max-width:16rem}
.inline-form{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;margin:.25rem 0}
.inline-form input:not([type="checkbox"]),.inline-form select{flex:1 1 9rem;min-width:0}
.inline-form .error{flex-basis:100%;margin:0}
.store-photos{display:flex;flex-wrap:wrap;gap:.75rem;margin:.5rem 0}
.store-photo{margin:0;display:flex;flex-direction:column;gap:.35rem;align-items:flex-start}
.store-photo img{width:120px;height:120px;object-fit:cover;border-radius:8px;border:1px solid var(--line,#d9dcd6);background:var(--surface-2,#f3f4f1)}
.store-photo figcaption{display:flex;gap:.35rem;flex-wrap:wrap}
.store-cat-tree,.store-cat-tree ul{list-style:none;margin:0;padding:0}
.store-cat-tree ul{padding-left:1.5rem}
.store-import-summary{margin:.5rem 0 0;padding-left:1.2rem}
/* Required training (People → Training): each person's due tours, one per line. */
.training-required td.nowrap{white-space:nowrap}.training-due{display:block;font-size:13px;line-height:1.7;white-space:nowrap}.training-required td small{display:block;color:var(--muted,#5c625f)}
/* Clark's plan for today, at the top of the Brief. */
.day-plan-cal{list-style:none;margin:0;padding:14px 24px 8px;display:flex;gap:8px 20px;flex-wrap:wrap}
.day-plan-cal li{display:flex;gap:8px;align-items:baseline;font-size:14px}.day-plan-cal strong{font-family:var(--mono,ui-monospace,monospace);font-size:13px;white-space:nowrap}
.day-plan-steps{margin:0;padding:4px 24px 18px;display:grid;gap:12px;list-style:none;counter-reset:step}
.day-plan-steps li::before{counter-increment:step;content:counter(step);flex:none;width:24px;height:24px;border-radius:50%;background:var(--green,#2f5d3a);color:#fff;font-size:13px;font-weight:600;display:grid;place-items:center}
.day-plan-steps li{display:flex;gap:12px;align-items:flex-start}.day-plan-steps li>div{display:grid;gap:2px;flex:1;min-width:0}
.day-plan-steps small{color:var(--muted);font-size:13px;line-height:1.5}.day-plan-steps button{flex:none}
.day-plan-more,.day-plan-clear{padding:0 24px 18px;margin:0}
@media(max-width:700px){.day-plan-cal{padding:12px 18px 8px}.day-plan-steps{padding:4px 18px 16px}.day-plan-steps li{flex-wrap:wrap}.day-plan-steps button{width:100%}.day-plan-more,.day-plan-clear{padding:0 18px 16px}}
/* Clark noticed, on every page: the page's own open findings, under its heading. */
.page-notes{border:1px solid #c9dccd;background:#f1f6f2;border-radius:4px;margin:0 0 20px}
.page-notes>summary{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:12px 18px;cursor:pointer;font-size:14px;list-style-position:inside}
.page-notes>summary span:last-child{color:var(--muted)}
.page-notes ul{list-style:none;margin:0;padding:4px 18px 12px;display:grid;gap:10px}.page-notes li{display:flex;gap:12px;align-items:flex-start}
.page-notes li>div{display:grid;gap:2px;flex:1;min-width:0}.page-notes li small{color:var(--muted);font-size:13px;line-height:1.5}
.page-notes-foot{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:0 18px 14px}.page-notes-foot .muted{margin-right:auto}
@media(max-width:700px){.page-notes>summary,.page-notes ul{padding-left:14px;padding-right:14px}.page-notes-foot{padding:0 14px 14px}.page-notes-foot button{flex:1}}
/* Clark's forecasts: the Schedule page's next three weeks, and the Stock page's running out. */
.capacity-forecast td.cap-over{background:#fbeeec}.capacity-forecast td small,.capacity-forecast th small,.runout-forecast td small{display:block;color:var(--muted);font-size:12px;margin-top:2px}
.cash-forecast>summary{cursor:pointer;list-style:none}.cash-forecast>summary::-webkit-details-marker{display:none}.cash-forecast[open]>summary{border-bottom:1px solid var(--line)}
.cash-forecast td small,small.at-risk{display:block;color:var(--muted);font-size:12px;margin-top:2px}.cash-forecast tbody th{font-weight:600;white-space:nowrap}
.capacity-forecast td small .badge,.runout-forecast td small .badge{margin-top:2px}
/* Phone badge setup (Employees → Phone): the one-time setup code, big enough for a phone camera across a desk. */
.phone-setup{display:grid;gap:16px;justify-items:center;text-align:center}.phone-steps{margin:0;padding-left:20px;text-align:left;display:grid;gap:6px;font-size:14px;max-width:460px}
.phone-qr{width:min(300px,80vw);aspect-ratio:1;border:1px solid var(--line);border-radius:6px;padding:8px;background:#ffffff}.phone-qr svg{display:block;width:100%;height:100%}
.phone-setup .form-footer{justify-content:center}
.pin-made{border:1px solid var(--line);border-radius:6px;padding:14px 18px;margin-bottom:12px;text-align:center}.pin-made p{margin:0}.pin-digits{font-family:"IBM Plex Mono",ui-monospace,monospace;font-size:40px;font-weight:600;letter-spacing:.2em;margin:6px 0!important}
/* Folding menu groups: each group heading is a button that folds its sections away; "Collapse all" folds every group
   so the whole menu fits on one screen. A folded group keeps its count and shows the brass dot when the page is inside. */
.nav-group-items{display:grid;gap:2px}
.nav-group-items[hidden]{display:none!important}
.nav-group.folded{margin-top:4px}
.shell .navigation .nav-group>button.nav-group-toggle{display:flex;align-items:center;gap:8px;width:100%;min-height:30px;margin:0;padding:4px 14px;border:0;border-radius:6px;background:transparent;color:#8e968f;font-weight:500;text-align:left;cursor:pointer;box-shadow:none}
.shell .navigation .nav-group>button.nav-group-toggle:hover{background:#ffffff0d;color:#f6f5f1}
.shell .navigation .nav-group>button.nav-group-toggle:hover .nav-group-label{color:#f6f5f1}
.nav-group-toggle .nav-group-label{flex:1;min-width:0;margin:0;padding:0}
.nav-group-chevron{flex-shrink:0;opacity:.8;transition:transform .15s ease}
.nav-group-toggle[aria-expanded="false"] .nav-group-chevron{transform:rotate(-90deg)}
.nav-group-toggle.here .nav-group-label::after{content:'';display:inline-block;width:6px;height:6px;margin-left:8px;border-radius:3px;background:#c9a35a;vertical-align:middle}
.nav-groups-bar{display:flex;justify-content:flex-end;margin:12px 0 -8px}
.shell .navigation .nav-groups-bar>button.nav-groups-all{min-height:24px;padding:2px 10px;border:0;border-radius:4px;background:transparent;color:#8e968f;font-family:'IBM Plex Mono',ui-monospace,monospace;font-size:10.5px;letter-spacing:.06em;text-transform:uppercase;cursor:pointer;box-shadow:none}
.shell .navigation .nav-groups-bar>button.nav-groups-all:hover{color:#f6f5f1;background:#ffffff0d}
@media(prefers-reduced-motion:reduce){.nav-group-chevron{transition:none}}
@media(max-width:1000px){.shell .navigation .nav-group>button.nav-group-toggle{padding:4px 10px}}
@media(max-width:700px){
.shell.menu-open .nav-group{grid-template-columns:minmax(0,1fr)}
.shell.menu-open .nav-group-items{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.shell.menu-open .navigation .nav-group>button.nav-group-toggle{grid-column:1/-1;min-height:44px;padding:0 4px;background:transparent;border-radius:4px}
.shell.menu-open .nav-groups-bar{grid-column:1/-1;margin:4px 0 -6px}
.shell.menu-open .navigation .nav-groups-bar>button.nav-groups-all{min-height:44px;padding:0 14px;font-size:11px;background:transparent;border:1px solid #3b403d;color:#c9cec9}
.shell.menu-open .nav-group-toggle .nav-group-label{color:#a3aaa5}
}
@media(max-width:340px){.shell.menu-open .nav-group-items{grid-template-columns:minmax(0,1fr)}}
/* Pinned and Recent at the top of the menu, and the star beside each page title that pins it. */
.nav-quick{display:grid;gap:2px;margin-top:12px}
.nav-quick:first-child{margin-top:4px}
.nav-quick-label{margin:0 0 4px;padding:0 14px;color:#8e968f;font-family:'IBM Plex Mono',ui-monospace,monospace;font-size:10.5px;letter-spacing:.06em;text-transform:uppercase}
.nav-quick-items{display:grid;gap:2px}
.nav-quick-pins .nav-quick-label::before{content:'★ ';color:#c9a35a}
.shell .navigation .nav-quick button.here{background:#ffffff0d;color:#f6f5f1}
.nav-quick-recent+button,.nav-quick-pins+button{margin-top:12px}
.title-row{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.title-row h1{min-width:0}
.shell main button.pin-page{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;min-height:36px;padding:0;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--muted);box-shadow:none;cursor:pointer}
.shell main button.pin-page:hover{border-color:var(--line);color:var(--ink);background:var(--white)}
.shell main button.pin-page.on{color:#a9832f}
.shell main button.pin-page:focus-visible{outline:2px solid var(--green);outline-offset:2px}
@media(max-width:1000px){.nav-quick-label{padding:0 10px}}
@media(max-width:700px){
.shell.menu-open .nav-quick{grid-column:1/-1;grid-template-columns:minmax(0,1fr)}
.shell.menu-open .nav-quick-items{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.shell.menu-open .nav-quick-label{padding:0 4px;color:#a3aaa5}
.shell main button.pin-page{width:44px;height:44px;min-height:44px}
}
@media(max-width:340px){.shell.menu-open .nav-quick-items{grid-template-columns:minmax(0,1fr)}}
/* Product Studio's editor and board hide the page heading visually; the star goes with it. */
main.content:has(.ps-editor-card) .pin-page,main.content:has(.ps-board-card) .pin-page{display:none!important}
/* Orders on a phone. Each order is one card: the number and value lead, the dealer and project under them, then
   progress, ship date, submitted and shades as small labelled facts two to a row, flags, and Open. The whole card opens
   the order; the checkbox still selects. (.shell .orders-table td sets desktop padding that otherwise beats the
   generic card rule in design-system.css and drew the column names on top of the values.) */
@media(max-width:700px){
  .shell .orders-card form.order-search{flex-direction:row;flex-wrap:wrap;align-items:flex-end;gap:10px;padding:14px 16px}
  .shell .orders-card form.order-search>.field{flex:1 1 0;min-width:0;max-width:none}
  .shell .orders-card #order-search input[type=search]{min-height:44px}
  .shell .orders-card #order-search>button{flex:none;min-height:44px;padding:0 16px}
  .shell .orders-card .order-filter-selects{flex:1 1 100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .shell .orders-card .order-filter-selects select{width:100%;max-width:none;min-height:44px;font-size:16px}
  .shell .orders-card .col-menu summary{width:100%;justify-content:center;min-height:44px}
  .shell .orders-card .col-menu-panel{left:auto;right:0}
  .shell .orders-card form.order-search .queue-summary{flex:1 1 100%}
  /* The tab row scrolls sideways; a fade on the right says there are more. */
  .shell .orders-card .toolbar.order-filters[role="group"]{position:relative;padding-right:32px;-webkit-mask-image:linear-gradient(to right,#000 calc(100% - 32px),transparent);mask-image:linear-gradient(to right,#000 calc(100% - 32px),transparent)}
  /* Selected orders: the actions sit at the foot of the screen in one row that scrolls, not a block over the list. */
  .shell .orders-card .bulk-bar{position:fixed;top:auto;left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom));z-index:15;margin:0;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;box-shadow:0 8px 24px -8px rgba(23,27,25,.5)}
  .shell .orders-card .bulk-bar::-webkit-scrollbar{display:none}
  .shell .orders-card .bulk-bar>*{flex:none;white-space:nowrap}
  .shell .orders-card .bulk-bar button.quiet{margin-left:0}
  .shell .orders-card .bulk-bar kbd{display:none}
  .shell .orders-card:has(.bulk-bar){padding-bottom:72px}
  .shell .orders-card .order-fresh{margin:12px 16px}
  /* The card. */
  .shell .orders-card table.orders-table.cards tr{position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-flow:row dense;gap:12px 16px;padding:16px 16px 16px 54px;background:#ffffff}
  .shell .orders-card table.orders-table.cards tr.selected{background:#eef4ef;box-shadow:inset 3px 0 0 #2f5d3a}
  .shell .orders-card table.orders-table.cards td{grid-column:span 1;padding:0!important;min-width:0;max-width:none;min-height:0;border:0;background:transparent;box-shadow:none;font-size:14px;line-height:1.35}
  .shell .orders-card table.orders-table.cards td::before{position:static;display:block;width:auto;margin:0 0 3px;font-size:10.5px;line-height:1.3}
  .shell .orders-card table.orders-table.cards td small{margin-top:2px}
  .shell .orders-card table.orders-table.cards td.sel{position:absolute;z-index:2;left:8px;top:8px;width:40px!important;height:40px;display:grid;place-items:center}
  .shell .orders-card table.orders-table.cards td.sel input{width:22px;height:22px}
  .shell .orders-card table.orders-table.cards td.order-no{order:1}
  .shell .orders-card table.orders-table.cards td.order-no::before,.shell .orders-card table.orders-table.cards td.money::before{display:none}
  .shell .orders-card table.orders-table.cards td.order-no strong{font-size:15px;line-height:22px}
  .shell .orders-card table.orders-table.cards td.money{order:2;text-align:right;font-size:15px;font-weight:600;line-height:22px;color:#1b1d1c}
  .shell .orders-card table.orders-table.cards td.order-who{order:3;grid-column:1/-1;margin-top:-4px}
  .shell .orders-card table.orders-table.cards td.order-who::before{display:none}
  .shell .orders-card table.orders-table.cards td.order-who strong{display:block;font-size:16px;font-weight:600;overflow-wrap:anywhere}
  .shell .orders-card table.orders-table.cards td.order-who small{overflow-wrap:anywhere}
  .shell .orders-card table.orders-table.cards td.order-progress{order:4}
  .shell .orders-card table.orders-table.cards td.order-progress:has(.route){grid-column:1/-1}
  .shell .orders-card table.orders-table.cards td.order-ship{order:5}
  .shell .orders-card table.orders-table.cards td.order-sub{order:6;font-size:14px;color:#1b1d1c}
  .shell .orders-card table.orders-table.cards td.num{order:7;text-align:left;font-size:14px}
  .shell .orders-card table.orders-table.cards td.order-flags{order:8;grid-column:1/-1}
  .shell .orders-card table.orders-table.cards .route{width:100%;max-width:240px}
  .shell .orders-card table.orders-table.cards td.cell-actions{order:9;grid-column:1/-1;padding:0!important;position:static}
  .shell .orders-card table.orders-table.cards td.cell-actions .table-actions,.shell .orders-card table.orders-table.cards td.cell-actions .table-actions button{position:static}
  .shell .orders-card table.orders-table.cards td.cell-actions .table-actions button{min-height:44px;font-size:14px}
  /* Open stretches over the whole card, so a tap anywhere on it opens the order. */
  .shell .orders-card table.orders-table.cards td.cell-actions .table-actions button::after{content:'';position:absolute;inset:0;z-index:1}
  .shell .orders-card table.orders-table.cards tr:active:not(:has(td.sel:active)){background:#f6f5f1}
}

/* A username sign-in's temporary password, shown once to the administrator (People → Access). */
.temp-password{display:grid;grid-template-columns:max-content 1fr;gap:.6rem 1.5rem;align-items:baseline;margin:.25rem 0 0}
.temp-password div{display:contents}
.temp-password dt{color:var(--muted)}
.temp-password dd{margin:0;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-weight:600}
.temp-password div:last-child dd{font-size:1.35rem;letter-spacing:.08em;user-select:all}

/* Clark's report card: the month picker shows the whole month name. */
.ai-card-month{min-width:11rem}
/* Earned trust (Setup → Clark): the streak as a bar, and the mark on a proposal Clark would have done himself. */
.trust-card progress { width: 100%; max-width: 12rem; height: .6rem; display: block; accent-color: var(--green); }
.badge.trust-mark { white-space: normal; }
/* Can we ship it by…? (Schedule): the answer above the form. */
.fit-result { border-left: 4px solid var(--line); padding: .5rem .75rem; margin-bottom: .75rem; background: transparent; }
.fit-result.ok { border-left-color: var(--green); }
.fit-result.bad { border-left-color: var(--red); }
.fit-result p { margin: .25rem 0; }
/* iPhone and iPad: Safari draws date and time fields at their own width and centres the text, so a date overflowed the
   field beside it. Drawn as plain fields they fill their box, match the other inputs and read from the left. */
@supports(-webkit-touch-callout:none){
  input:is([type=date],[type=time],[type=datetime-local],[type=month]){-webkit-appearance:none;appearance:none;display:block;min-width:0;max-width:100%;min-height:46px;line-height:22px;text-align:left}
  input:is([type=date],[type=time],[type=datetime-local],[type=month])::-webkit-date-and-time-value{min-height:22px;margin:0;text-align:left}
}
.buying-table td small{display:block;margin-top:2px;color:var(--muted)}.buying-plan .card-head{flex-wrap:wrap;gap:10px}
.proposal-question{display:block;margin-top:4px;white-space:pre-wrap;overflow-wrap:anywhere}

/* Setup → Improvement notes (core/public/improvements.js) */
.in-top{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:12px 20px;margin-bottom:14px}
.in-top p{margin:0;max-width:760px;color:#3b403d;font-size:14px;line-height:21px}
.in-filters{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}
.in-add{display:flex;flex-direction:column;gap:10px;padding:16px 18px;margin-bottom:14px}
.in-add h3{margin:0;font-size:16px}
.in-add label{display:flex;flex-direction:column;gap:4px;font-size:13px;font-weight:500;color:#3b403d}
.in-list{display:flex;flex-direction:column;gap:10px}
.in-note{background:#fff;border:1px solid #e2dfd7;border-left:4px solid #868e87;border-radius:8px;padding:14px 16px;display:flex;flex-direction:column;gap:8px}
.in-note.open{border-left-color:#2a3f5f}.in-note.accepted{border-left-color:#2f5d3a}.in-note.built{border-left-color:#9fc1a8;background:#fbfaf7}.in-note.declined{border-left-color:#cfcbc1;background:#fbfaf7}
.in-note header{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;font-size:12px}
.in-note h3{margin:0;font-size:15px;line-height:21px}
.in-note p{margin:0;font-size:14px;line-height:20px;color:#1b1d1c}
.in-num{font-family:'IBM Plex Mono',ui-monospace,monospace;font-weight:600}
.in-module{font-weight:600;color:#3b403d}
.in-status{font-family:'IBM Plex Mono',ui-monospace,monospace;font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;padding:1px 6px;border-radius:2px;background:#eeebe4;color:#3d4340}
.in-status.open{background:#eef2f8;color:#2a3f5f}.in-status.accepted{background:#e7efe8;color:#1e3f27}
.in-evidence{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.in-evidence li{display:flex;gap:6px;align-items:baseline;padding:3px 8px;border-radius:4px;background:#f3f2ee;font-size:12px}
.in-evidence strong{font-family:'IBM Plex Mono',ui-monospace,monospace}
.in-decided{font-size:12px!important;color:#5c625f!important}
.in-actions{display:flex;flex-wrap:wrap;gap:8px}
/* The consolidated menu's preview (console-homes.js): tabs over an entry's pages, Scan and Me in the top bar, and the
   switch in the account area. */
.home-tabs{margin:0 0 18px;border-bottom:1px solid var(--line);overflow-x:auto;scrollbar-width:thin}
.home-tabs-row{display:flex;gap:4px;min-width:max-content}
.home-tab{appearance:none;border:0;background:transparent;color:var(--muted);font:inherit;font-size:14px;font-weight:500;padding:10px 14px;min-height:44px;border-bottom:2px solid transparent;margin-bottom:-1px;cursor:pointer;white-space:nowrap;border-radius:6px 6px 0 0}
.home-tab:hover{color:var(--ink);background:var(--sage)}
.home-tab.on{color:var(--green);border-bottom-color:var(--green);font-weight:600}
/* A home that is one page with modes (Plan: Board, Schedule, What if): one switch above the page. */
.home-modes{display:inline-flex;gap:2px;margin:0 0 18px;padding:3px;border:1px solid var(--line);border-radius:8px;background:var(--white);max-width:100%;overflow-x:auto}
.home-mode{appearance:none;border:0;background:transparent;color:var(--muted);font:inherit;font-size:14px;font-weight:500;padding:8px 16px;min-height:40px;border-radius:6px;cursor:pointer;white-space:nowrap}
.home-mode:hover{color:var(--ink);background:var(--sage)}
.home-mode.on{background:var(--green);color:#fff;font-weight:600}
.home-tab:focus-visible{outline:2px solid var(--green);outline-offset:-2px}
.top-home-btn{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:0 12px;border:1px solid var(--line);border-radius:8px;background:var(--white);color:var(--ink);font:inherit;font-size:14px;font-weight:500;cursor:pointer}
.top-home-btn:hover{border-color:var(--green);color:var(--green)}
.top-home-btn.on{background:var(--sage);border-color:var(--green);color:var(--green)}
.menu-preview-switch{display:block;width:100%;margin-top:8px;min-height:36px;padding:6px 10px;border:1px dashed #5d6560;border-radius:8px;background:transparent;color:#c9cfca;font:inherit;font-size:12.5px;cursor:pointer;text-align:center}
.menu-preview-switch:hover{color:#ffffff;border-color:#8e968f}
.menu-preview-switch[aria-pressed="true"]{border-style:solid;color:#e8b65a;border-color:#6b5a33}
@media(max-width:700px){.top-home-btn span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}.top-home-btn{padding:0 10px;min-height:44px}}
.navigation button.nav-entry.home-phone{display:none}
@media(max-width:700px){.navigation button.nav-entry.home-phone{display:flex}}
.navigation .nav-section{margin:16px 12px 4px;font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:#8e968f;font-weight:600}
.home-golive{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 24px;border-left:4px solid #e8b65a}
.home-golive h2{margin:2px 0 4px;font-size:18px}.home-golive p{margin:0;color:var(--muted)}.home-golive .eyebrow{color:#8a6a1f}
@media(max-width:700px){.home-golive{flex-direction:column;align-items:flex-start}.home-golive button{width:100%;min-height:44px}}
/* Today (today.js): your day, your approvals and your courses on the Overview while the new menu is on. */
.td{display:flex;flex-wrap:wrap;gap:24px;align-items:flex-start}
.td-main{flex:999 1 520px;min-width:0;display:flex;flex-direction:column;gap:24px}
.td-side{flex:1 1 320px;min-width:0;display:flex;flex-direction:column;gap:24px}
.td-card .card-head{align-items:flex-start}
.td-card .card-head p{margin:4px 0 0;color:var(--muted);font-size:13px}
.td-short{margin:0 0 16px;padding:12px 14px;background:var(--sage);border-radius:8px;line-height:1.5}
.td-short .badge{margin-right:6px}
.td-steps,.td-rows,.td-meetings{list-style:none;margin:0;padding:0}
.td-step,.td-rows li{display:flex;align-items:center;gap:12px;padding:12px 0;border-top:1px solid var(--line)}
.td-step:first-child,.td-rows li:first-child{border-top:0}
.td-step>div,.td-rows li>div{flex:1;min-width:0}
.td-step strong,.td-rows strong{display:block;font-weight:600}
.td-step small,.td-rows small{display:block;color:var(--muted);font-size:13px;margin-top:2px}
.td-rows small.bad{color:var(--red)}
.td-step.urgent{box-shadow:inset 3px 0 0 var(--red);padding-left:12px}
.td-step.task,.td-step.approvals{box-shadow:inset 3px 0 0 var(--green);padding-left:12px}
.td-step button,.td-rows button{flex-shrink:0}
.td-meetings{margin:0 0 12px;display:grid;gap:6px}
.td-meetings li{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.td-time{font-family:'IBM Plex Mono',ui-monospace,monospace;font-size:12.5px;color:var(--muted);min-width:64px}
.td-out{margin:0 0 12px;color:var(--muted);font-size:13.5px}
.td-group+.td-group{margin-top:16px}
.td-group h3{margin:0 0 4px;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);font-weight:600;display:flex;align-items:center}
.td-group .count-badge{background:#3a433e;height:20px;min-width:20px;font-size:11px}
.td-none{margin:0;color:var(--muted)}
.td-more{margin:8px 0 0}
.td-failed{margin:12px 0 0;color:var(--red);font-size:13px}
@media(max-width:700px){.td-step,.td-rows li{flex-wrap:wrap}.td-step button,.td-rows button{width:100%;min-height:44px}}
/* All issues (issues.js). */
.iss-card .order-filters{padding:0 24px 12px;flex-wrap:wrap}
.iss-table td strong{display:block}
.iss-table td small{display:block;color:var(--muted);font-size:13px}
.iss-kind{display:inline-block;padding:2px 8px;border-radius:4px;font-size:12px;font-weight:600;background:#efede7;color:var(--ink);white-space:nowrap}
.iss-help{background:#f9eeda;color:#6b4a12}.iss-quality{background:#fbebeb;color:#8a2e27}.iss-claim{background:#e7f1fb;color:#1d4a73}
.iss-return{background:#efedff;color:#3f3478}.iss-chargeback{background:#e5f4e4;color:#24502a}.iss-scrap{background:#f0efec;color:#4a4f4c}
.iss-urgent td:first-child{box-shadow:inset 3px 0 0 #b4453c}
.count-badge.quiet{background:#3a433e}
