/* Official unmodified variable fonts; SIL Open Font License 1.1, notices served beside each font. */
@font-face{font-family:"Atkinson Hyperlegible Next";font-style:normal;font-weight:200 800;font-display:swap;src:url('/fonts/atkinson-hyperlegible-next.ttf') format('truetype')}
@font-face{font-family:"Atkinson Hyperlegible Mono";font-style:normal;font-weight:200 800;font-display:swap;src:url('/fonts/atkinson-hyperlegible-mono.ttf') format('truetype')}
/* Authenticated shell only. Original login and operational panel controllers remain intact. */
body.is-authenticated{background:#f8f7f4;color:#162b44}
.is-authenticated .auth-shell{display:none}
.is-authenticated header{max-width:1240px;min-height:90px;height:auto;padding:16px 32px;gap:18px;position:relative;border-bottom:1px solid #deded8;align-items:center}
.is-authenticated header .local{display:none}
.is-authenticated .brand{font-size:22px;white-space:nowrap}
.is-authenticated main{max-width:1240px;padding:10px 32px 50px;min-width:0}
.is-authenticated footer{max-width:1176px;padding:20px 0;color:#647086}
.ws-identity{display:flex;flex:1;align-items:center;gap:28px;min-width:0}
.ws-greeting{margin-left:auto;font-size:14px;color:#36516a;overflow-wrap:anywhere}
.ws-dealer{display:flex;flex-direction:column;gap:4px;margin:0;font-weight:400;max-width:320px;min-width:0}
.ws-dealer-label{font-size:10px;letter-spacing:1px;text-transform:uppercase;color:#61758a}
.ws-dealer-slot{min-width:0}
.ws-dealer select{width:100%;min-height:44px;max-width:320px;font-size:14px;padding:9px 12px;background:white}
.is-authenticated #language{min-width:44px;min-height:44px;font-size:14px}
.ws-account{position:relative;flex:none;font-size:14px}
.ws-account-summary{cursor:pointer;min-height:44px;display:flex;align-items:center;gap:9px;padding:10px 13px;border:1px solid #d5dcd9;border-radius:8px;background:white;font-weight:600;list-style:none}
.ws-account-summary::-webkit-details-marker{display:none}
.ws-account-summary::before{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;background:#0c8278}
.ws-account-body{position:absolute;right:0;top:calc(100% + 9px);width:360px;max-width:calc(100vw - 32px);background:white;border:1px solid #dbe1df;border-radius:10px;padding:18px;box-shadow:0 12px 25px #172d421a;z-index:50;max-height:75dvh;overflow:auto}
.ws-account-body #refresh,.ws-account-body #logout{min-height:44px;margin:0 8px 8px 0}
.ws-account-body .membership{margin:12px 0;padding:12px;overflow-wrap:anywhere}
.ws-account-body form{margin-top:18px;padding-top:12px}
.ws-account-body small{font-size:11px}
.ws-account-body #status,.ws-account-body #team-status{font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.ws-main{min-width:0}
.ws-nav{display:flex;gap:8px;border-bottom:1px solid #deded8;margin-bottom:26px}
.ws-nav-btn{padding:13px 18px;min-height:48px;border:0;border-bottom:2px solid transparent;background:transparent;border-radius:0;color:#516174;font-size:14px}
.ws-nav-btn[aria-current=page]{color:#08766d;border-bottom-color:#08766d}
.ws-heading{font-size:32px;letter-spacing:-1px;line-height:1.2;margin:0 0 20px}
.ws-notice,.ws-empty{padding:15px;background:#fff8e9;border:1px solid #e7d9b8;border-radius:7px;color:#5d5038;font-size:14px;line-height:1.5}
.ws-route{min-width:0}
.ws-route .team-panel,.ws-route .inventory-panel{margin-top:0}
.ws-route>.card{border:0;border-radius:8px;background:transparent;padding:0;box-shadow:none}
.ws-route #inventory-panel>.eyebrow,.ws-route #inventory-panel>h2,.ws-route #team-panel>.eyebrow,.ws-route #team-panel>h2{display:none}
.ws-route .inventory-notice{font-size:12px;margin:0 0 16px}
.ws-route .inventory-toolbar{padding:0;margin:0 0 16px;justify-content:flex-end}
.ws-route .inventory-toolbar button{margin:0;min-height:44px}
.ws-route .inventory-list{min-width:0}
.ws-route #inventory-editor{margin-top:22px;background:#fff;border:1px solid #dce1dc;border-radius:8px}
.ws-route #inventory-editor>summary{padding:15px 18px;cursor:pointer;color:#08756c;font-weight:650;font-size:14px;min-height:48px}
.ws-route #inventory-editor[open]{padding:0 18px 18px}
.ws-route #inventory-editor[open]>summary{margin:0 -18px;border-bottom:1px solid #e4e7e2}
.ws-route .rm-panel{margin-top:0}
.ws-route .rm-header .rm-brand{display:none}
.ws-route .rm-header .rm-dealer{font-weight:650;color:#0c736d}
.ws-account input,.ws-account select{max-width:100%}
.ws-route .inventory-row.has-thumb{display:grid;grid-template-columns:210px minmax(0,1fr);gap:18px;padding:16px;background:#fff;border:1px solid #deded8;border-radius:8px;align-items:center}
.inventory-thumb{min-width:0;position:relative;align-self:start;text-align:center;min-height:140px;background:#f0f1ee;border-radius:6px;overflow:hidden}
.inventory-thumb img{display:block;width:100%;height:138px;object-fit:contain}
.inventory-thumb small{font-size:10px;margin:5px;padding-bottom:4px;color:#617086}
.inventory-thumb-placeholder{display:block;font-size:12px;color:#617086;padding:50px 8px}
.inventory-details{min-width:0;display:grid;gap:6px}
.inventory-details>strong{font-size:18px;color:#142e46}
.inventory-details>button{justify-self:start;min-height:44px}
.inventory-details>.view-media{background:#087e73;color:white;border-color:#087e73;padding:10px 18px}
@media(max-width:760px){
 .is-authenticated header{display:grid;grid-template-columns:1fr auto auto;gap:10px;padding:14px 16px}
 .is-authenticated .brand{font-size:18px;grid-column:1;grid-row:1}
 .ws-identity{display:contents}
 .ws-greeting{grid-row:1;grid-column:2/-1;font-size:12px;text-align:right;max-width:180px}
 .ws-dealer{grid-row:2;grid-column:1;max-width:none}
 .ws-dealer-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .is-authenticated #language{grid-row:2;grid-column:2;padding:9px}
 .ws-account{grid-row:2;grid-column:3;font-size:12px}
 .ws-account-summary{padding:10px;gap:6px}
 .ws-account-body{position:absolute;right:0;width:min(360px,calc(100vw - 32px))}
 .is-authenticated main{padding:6px 16px 32px}
 .is-authenticated footer{margin:0 16px;padding:18px 0}
 .ws-heading{font-size:28px;margin-bottom:16px}
 .ws-nav{margin-bottom:20px;gap:0}
 .ws-nav-btn{padding:12px;font-size:13px}
 .ws-route #inventory-editor[open]{padding:0 12px 12px}
 .ws-route #inventory-editor[open]>summary{margin:0 -12px}
 .ws-route .inventory-row.has-thumb{grid-template-columns:minmax(0,1fr);padding:12px}
 .inventory-thumb img{height:auto;max-height:250px;object-fit:contain}
}

/* Bootstrap is neutral until identity is checked; never paints the legacy signed-in hero. */
.boot-status{display:none;padding:40px 0;color:#36516a}
.auth-pending:not(.is-authenticated) main{display:block}
.auth-pending:not(.is-authenticated) .auth-shell{display:none!important}
.auth-pending:not(.is-authenticated) .boot-status{display:block}
.ws-layout{display:flex;align-items:center;gap:8px;margin:0 auto 0 0;font-size:13px;font-weight:400;min-width:0}
.ws-layout select{width:auto;min-height:44px;font-size:13px;max-width:240px}
.ws-route .inventory-toolbar{flex-wrap:wrap;gap:12px}
.ws-route .inventory-list[data-layout=list]{grid-template-columns:minmax(0,1fr)}
.ws-route .inventory-list[data-layout=cards3]{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.ws-route .inventory-list[data-layout=cards4]{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.ws-route .inventory-list:is([data-layout=cards3],[data-layout=cards4]) .inventory-row{display:flex;flex-direction:column;align-items:stretch;gap:12px;padding:12px;min-width:0;background:white}
.ws-route .inventory-list:is([data-layout=cards3],[data-layout=cards4]) .inventory-thumb{width:100%;min-height:0;aspect-ratio:4/3;align-self:stretch;display:flex;flex-direction:column;justify-content:center}
.ws-route .inventory-list:is([data-layout=cards3],[data-layout=cards4]) .inventory-thumb img{height:auto;max-height:180px;aspect-ratio:4/3;object-fit:contain}
.ws-route .inventory-list:is([data-layout=cards3],[data-layout=cards4]) .inventory-details{flex:1;align-content:start}
.ws-route .inventory-list:is([data-layout=cards3],[data-layout=cards4]) .inventory-details>strong{font-size:16px}
@media(min-width:760px) and (max-width:1050px){.ws-route .inventory-list:is([data-layout=cards3],[data-layout=cards4]){grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:759px){.ws-route .inventory-list:is([data-layout=cards3],[data-layout=cards4]){grid-template-columns:minmax(0,1fr)}.ws-layout{flex-wrap:wrap}.ws-layout select{max-width:100%}}

.ws-route .inventory-toolbar .ws-layout{width:auto;flex:1}

/* Keep the photo action prominent in list and card layouts. */
.ws-route .inventory-details > .view-media {
  background: #0c6960;
  border-color: #0c6960;
}
.ws-route .inventory-details > .edit {
  background: white;
  border: 1px solid #d5ddda;
  color: #142735;
}
.ws-route .inventory-row.has-thumb { border-radius: 12px; }
.ws-route .inventory-thumb { border-radius: 9px; }

.ws-inventory-total { margin:-12px 0 14px;color:#3b4954; }
.ws-inventory-tools,.ws-layout-buttons { display:flex;align-items:center;gap:8px; }
.ws-layout-buttons { gap:0; }
.ws-route .ws-layout-buttons button,.ws-route .ws-inventory-menu-open { display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;background:white;color:#16212b;border:1px solid #8b959e;font-weight:700; }
.ws-route .ws-layout-buttons button:first-child { border-radius:10px 0 0 10px; }
.ws-route .ws-layout-buttons button:last-child { border-left:0;border-radius:0 10px 10px 0; }
.ws-route .ws-layout-buttons button[aria-pressed=true] { background:#16212b;color:white; }
.ws-route .ws-inventory-menu-open { width:46px;padding:0;border-radius:10px; }
.ws-inventory-menu { width:min(470px,100%);max-width:100%;max-height:85dvh;padding:0;border:0;border-radius:18px;background:#fff;color:#16212b; }
.ws-inventory-menu::backdrop { background:#16212b80; }
.ws-inventory-menu-body { padding:22px 24px max(10px,env(safe-area-inset-bottom)); }
.ws-inventory-menu-header { display:flex;align-items:center;justify-content:space-between;gap:10px;padding-bottom:16px; }
.ws-inventory-menu-title { font-size:18px;letter-spacing:0;line-height:1.2;margin:0; }
.ws-route .ws-inventory-menu-close { display:grid;place-items:center;flex:0 0 44px;min-height:44px;padding:0;background:transparent;border:0;color:inherit; }
.ws-route .ws-inventory-menu-item,.ws-route .ws-inventory-menu #inventory-refresh {
 display:flex;align-items:center;gap:15px;text-align:left;width:100%;min-height:56px;
 padding:12px 8px;border:0;border-top:1px solid #e4e1db;border-radius:0;background:white;color:inherit;font-size:15px;
}
.ws-inventory-menu .ws-layout { border-top:1px solid #e4e1db;padding:12px 8px; }
.ws-route #inventory-editor:not([open]) { display:none; }
@media(max-width:759px) {
 .ws-inventory-menu { position:fixed;inset:auto 0 0;width:100%;margin:0;border-radius:18px 18px 0 0; }
 .ws-inventory-menu .ws-layout { display:none; }
}
.ws-route .inventory-toolbar { justify-content:flex-start; }
.ws-route .inventory-notice { border:0;background:transparent;padding:0;color:#405464;font-size:14px; }
.ws-route .inventory-panel { background:#f3f2ee; }
.ws-route .inventory-row.has-thumb { position:relative;background:transparent;border:0;border-radius:0;border-bottom:1px solid #d4d1c8; }
.ws-route .inventory-thumb { min-height:0;aspect-ratio:4/3;background:#e5e2db;display:grid;place-items:center; }
.ws-route .inventory-thumb img { width:100%;height:100%;max-height:none;object-fit:cover; }
.ws-route .inventory-thumb small { display:none; }
.ws-route .inventory-thumb-placeholder { padding:8px;color:#3b4954;font-weight:650; }
.ws-route .inventory-details { gap:3px; }
.ws-route .inventory-details>strong { color:#16212b;line-height:1.22; }
.ws-route .inventory-stock { color:#405464; }
.inventory-photo-state { margin:1px 0 0;font-size:13px;font-weight:700;color:#405464;grid-row:3; }
.inventory-photo-state[data-state=pending] { color:#765016; }
.inventory-photo-state[data-state=approved] { color:#0c6960; }
.inventory-row-extra { font-size:12px;z-index:1;justify-self:start; }
.inventory-row-extra summary { color:#445868;cursor:pointer; }
.inventory-row-extra button { min-height:44px; }
.ws-route .inventory-details>.view-media { position:absolute;inset:0;width:100%;height:100%;border:0;border-radius:8px;background:transparent;color:transparent;font-size:0;text-align:right;padding:8px; }
.ws-route .inventory-details>.view-media::after { content:"›";font-size:24px;color:#405464; }
.ws-route .inventory-details>.view-media:focus-visible { outline:2px solid #0c6960;outline-offset:1px; }
.ws-route .inventory-list:is([data-layout=cards3],[data-layout=cards4]) .view-media::after { content:none; }
.ws-route .inventory-list:is([data-layout=cards3],[data-layout=cards4]) .inventory-row { border:0;background:transparent; }
@media(max-width:759px){
 .ws-route .inventory-list[data-layout=list] .inventory-row.has-thumb { grid-template-columns:minmax(84px,34%) minmax(0,1fr);gap:10px;padding:10px 24px 10px 0; }
 .ws-route .inventory-list:is([data-layout=cards3],[data-layout=cards4]) { grid-template-columns:repeat(2,minmax(0,1fr));gap:12px; }
 .ws-route .inventory-list:is([data-layout=cards3],[data-layout=cards4]) .inventory-row { padding:0;gap:8px; }
 .ws-route .inventory-details>strong { font-size:16px; }
 .ws-main[data-active-route=media] .ws-heading { position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%); }
 .ws-nav:not(:has(.ws-nav-btn[data-route=team]:not([hidden]))) { display:none; }
 .ws-main { padding-top:13px; }
 body.is-authenticated>header { grid-template-columns:auto minmax(0,1fr) auto auto;grid-template-rows:auto auto;gap:2px 6px;min-height:66px;background:#fff; }
 body.is-authenticated>header .brand { grid-row:1/3; }
 body.is-authenticated>header .ws-greeting { grid-column:2;grid-row:1;margin:0;max-width:none;line-height:1.2;font-weight:750;color:#16212b; }
 body.is-authenticated>header .ws-dealer { grid-column:2;grid-row:2;justify-self:end;max-width:100%; }
 body.is-authenticated>header .ws-dealer select { min-height:29px;padding:1px 3px;max-width:100%;border:0;background:transparent;font-size:12px; }
 body.is-authenticated>header #language { grid-column:3;grid-row:1/3;min-width:38px;padding:5px; }
 body.is-authenticated>header .ws-account { grid-column:4;grid-row:1/3; }
 body.is-authenticated>header .ws-account-summary { font-size:0;justify-content:center;padding:4px;width:42px;border:0; }
 body.is-authenticated>header .ws-account-summary::before { content:"";width:23px;height:23px;border:2px solid #16212b;border-radius:50%;background:radial-gradient(circle at 50% 35%,#16212b 0 3px,transparent 3.7px),radial-gradient(ellipse 7px 5px at 50% 83%,#16212b 0 70%,transparent 76%); }
}

/* Claude Design's readable type, scoped to the authenticated workspace. */
body.is-authenticated{font-family:"Atkinson Hyperlegible Next",system-ui,-apple-system,"Segoe UI",sans-serif;font-weight:400}
.is-authenticated :is(button,input,select,textarea){font-family:inherit}
.ws-route :is(.inventory-stock,.inventory-stockcode,.rm-mono){font-family:"Atkinson Hyperlegible Mono",ui-monospace,monospace}
.ws-route .inventory-details>strong{font-weight:700}
.ws-layout-buttons .robato-icon,.ws-inventory-menu-item .robato-icon{width:20px;height:20px;flex:none}
.ws-route .inventory-details{min-width:0;overflow-wrap:anywhere}
.ws-inventory-menu-item{white-space:normal;overflow-wrap:anywhere}
