:root{color-scheme:light;--bg:#f5f5f2;--surface:#fff;--surface-soft:#fafaf8;--line:#e8e8e2;--line-strong:#d6d7d0;--text:#171817;--muted:#757871;--muted-soft:#a2a49d;--orange:#f16a27;--orange-dark:#d95217;--orange-soft:#fff0e8;--green:#328b60;--green-soft:#e4f4eb;--danger:#a23f28;--danger-soft:#ffebe5;--shadow:0 18px 50px rgba(28,28,25,.07)}
:root[data-theme=dark]{color-scheme:dark;--bg:#121312;--surface:#1b1c1b;--surface-soft:#171817;--line:#2d2e2c;--line-strong:#41433f;--text:#f4f4ef;--muted:#a5a7a0;--muted-soft:#71746d;--orange:#ff7b36;--orange-dark:#ff9a68;--orange-soft:#3d2419;--green:#64c790;--green-soft:#19382a;--danger:#ff9b80;--danger-soft:#40251e;--shadow:0 18px 50px rgba(0,0,0,.22)}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:wait;opacity:.6}.eyebrow{margin:0;color:var(--muted-soft);font:500 10px/1.3 "DM Mono",monospace;letter-spacing:.15em;text-transform:uppercase}
.brand-lockup{display:inline-flex;align-items:center;justify-content:flex-start;line-height:0;color:var(--text)}.verum-logo{display:block;width:146px;height:auto;max-width:100%;object-fit:contain}.brand-lockup.large .verum-logo{width:260px}.auth-brand-panel .verum-logo{filter:invert(1)}.mobile-brand .verum-logo{width:170px}.sidebar-top .brand-lockup{height:55px}.sidebar .verum-logo{width:145px;max-height:55px}.platform-topbar{height:104px;min-height:104px}.platform-topbar .brand-lockup{height:90px}.platform-topbar .verum-logo{width:190px;max-height:90px}
.auth-page{display:grid;grid-template-columns:minmax(390px,.86fr) 1.14fr;min-height:100vh;background:var(--surface)}.auth-brand-panel{display:flex;flex-direction:column;justify-content:space-between;padding:54px 7vw 44px;position:relative;overflow:hidden;background:#151615;color:#fff}.auth-brand-panel:after{content:"";position:absolute;width:520px;height:520px;right:-270px;bottom:-260px;border:1px solid rgba(244,106,38,.34);border-radius:50%;box-shadow:0 0 0 70px rgba(244,106,38,.05),0 0 0 140px rgba(244,106,38,.035)}.brand-copy{max-width:450px;position:relative;z-index:1;margin-top:100px}.brand-copy h1{margin:14px 0 22px;font-size:clamp(39px,4.7vw,68px);line-height:1.04;letter-spacing:-.06em;font-weight:700}.brand-copy h1 em{color:var(--orange);font-style:normal}.brand-copy p:last-child{max-width:335px;color:#b0b3ae;line-height:1.75;font-size:15px}.brand-footnote{display:flex;align-items:center;gap:9px;position:relative;z-index:1;color:#a3a69f;font:11px "DM Mono",monospace;letter-spacing:.1em;text-transform:uppercase}.status-dot{width:7px;height:7px;background:#55bf81;border-radius:50%;box-shadow:0 0 0 4px rgba(85,191,129,.14)}.auth-form-panel{display:grid;place-items:center;padding:45px 7vw;background:var(--surface)}.auth-form-wrap{width:min(100%,395px)}.mobile-brand{display:none}.auth-heading{margin-bottom:36px}.auth-heading h2{margin:13px 0 9px;font-size:31px;letter-spacing:-.045em}.auth-heading p:last-child{margin:0;color:var(--muted);font-size:14px}.auth-form{display:grid;gap:18px}.auth-form label,.modal-card label,.password-form label,.manual-area label{display:grid;gap:8px;color:var(--muted);font-size:12px;font-weight:700}.auth-form input,.modal-card input,.modal-card select,.password-form input,.manual-area input{width:100%;border:1px solid var(--line-strong);border-radius:11px;outline:none;padding:14px 15px;color:var(--text);background:var(--surface-soft);transition:border-color .18s,box-shadow .18s}.auth-form input:focus,.modal-card input:focus,.modal-card select:focus,.password-form input:focus,.manual-area input:focus{border-color:var(--orange);box-shadow:0 0 0 4px var(--orange-soft)}.primary-button,.secondary-button,.text-button{border:0}.primary-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;width:100%;border-radius:11px;padding:14px 18px;background:var(--orange);color:#fff;font-weight:800;transition:transform .18s,background .18s}.primary-button:hover{background:var(--orange-dark);transform:translateY(-1px)}.primary-button.compact,.secondary-button.compact{width:auto;padding:10px 13px;border-radius:9px;font-size:11px}.secondary-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid var(--line-strong);border-radius:9px;padding:10px 14px;color:var(--text);background:var(--surface);font-size:12px;font-weight:800}.secondary-button:hover{border-color:var(--orange)}.text-button{display:block;margin:22px auto 0;color:var(--orange-dark);background:none;font-size:13px;font-weight:800}.legal-note{margin:70px 0 0;color:var(--muted-soft);font-size:11px;line-height:1.65;text-align:center}.alert{border-radius:9px;padding:11px 13px;font-size:12px;line-height:1.5}.alert.error{color:var(--danger);background:var(--danger-soft)}
.app-shell{display:flex;min-height:100vh}.sidebar{display:flex;flex:0 0 252px;flex-direction:column;width:252px;border-right:1px solid var(--line);padding:27px 16px 17px;background:var(--surface);z-index:5;transition:transform .22s}.sidebar-top{display:flex;align-items:center;justify-content:space-between;padding:0 12px}.mobile-close{display:none}.workspace-switcher{display:flex;align-items:center;gap:10px;margin:42px 4px 31px;padding:9px 10px;border:1px solid var(--line);border-radius:11px}.workspace-avatar,.user-avatar,.topbar-avatar{display:grid;place-items:center;flex:0 0 auto;width:29px;height:29px;border-radius:9px;color:#fff;background:var(--orange);font-size:12px;font-weight:800}.workspace-name,.profile-name{display:grid;min-width:0;flex:1;gap:2px}.workspace-name strong,.profile-name strong{overflow:hidden;color:var(--text);font-size:11px;text-overflow:ellipsis;white-space:nowrap}.workspace-name span,.profile-name span{color:var(--muted);font:10px "DM Mono",monospace;text-transform:uppercase}.main-nav{display:grid;gap:23px}.nav-group{display:grid;gap:3px}.nav-label{margin:0 12px 7px;color:var(--muted-soft);font:10px "DM Mono",monospace;letter-spacing:.12em;text-transform:uppercase}.nav-item{display:flex;align-items:center;gap:12px;border:0;border-radius:8px;padding:10px 12px;color:var(--muted);background:transparent;text-align:left;font-size:12px;font-weight:700}.nav-item:hover{color:var(--text);background:var(--surface-soft)}.nav-item.active{color:var(--orange-dark);background:var(--orange-soft)}.sidebar-bottom{margin-top:auto}.help-card{display:flex;align-items:center;gap:10px;width:100%;margin-bottom:19px;border:1px solid var(--line);border-radius:10px;padding:11px;color:var(--muted);background:var(--surface-soft);text-align:left}.help-card>span{display:grid;gap:3px}.help-card strong{color:var(--text);font-size:11px}.help-card small{color:var(--muted);font-size:10px}.profile-mini{display:flex;align-items:center;gap:9px;border-top:1px solid var(--line);padding:18px 4px 0}.icon-button{display:inline-grid;place-items:center;width:33px;height:33px;border:0;border-radius:8px;color:var(--muted);background:transparent}.icon-button:hover{color:var(--text);background:var(--surface-soft)}.main-content{min-width:0;flex:1}.topbar,.platform-topbar{display:flex;align-items:center;justify-content:space-between;height:76px;border-bottom:1px solid var(--line);padding:0 4.4vw;background:var(--surface)}.topbar-actions{display:flex;align-items:center;gap:8px}.topbar-avatar{width:30px;height:30px;margin-left:7px;border-radius:50%}.mobile-menu{display:none}.breadcrumb{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:12px}.breadcrumb strong{color:var(--text)}.breadcrumb-separator{color:var(--muted-soft)}.page-content,.platform-content{max-width:1370px;margin:0 auto;padding:clamp(30px,4vw,60px) 4.4vw 70px}.page-header{display:flex;align-items:flex-end;justify-content:space-between;gap:25px;margin-bottom:37px}.page-header h1{margin:9px 0 7px;font-size:clamp(27px,3vw,39px);letter-spacing:-.06em}.page-header>div:first-child>p:last-child{margin:0;color:var(--muted);font-size:13px}.header-actions{display:flex;gap:9px}.metric-grid,.platform-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:13px}.platform-metrics{grid-template-columns:repeat(3,1fr);margin-bottom:13px}.metric-card{min-width:0;min-height:170px;border:1px solid var(--line);border-radius:13px;padding:19px;background:var(--surface);box-shadow:var(--shadow)}.metric-icon{display:grid;place-items:center;width:35px;height:35px;margin-bottom:23px;border-radius:9px;color:var(--muted);background:var(--surface-soft)}.metric-icon.orange{color:var(--orange-dark);background:var(--orange-soft)}.metric-icon.green{color:var(--green);background:var(--green-soft)}.metric-label{display:block;color:var(--muted);font-size:11px}.metric-value{display:block;margin:5px 0 6px;color:var(--text);font-size:26px;letter-spacing:-.05em}.metric-detail{color:var(--muted-soft);font-size:10px}.dashboard-grid,.station-grid,.settings-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:13px;margin-top:13px}.station-grid{grid-template-columns:1.1fr .9fr;margin-top:0}.settings-grid{grid-template-columns:1fr 1fr;margin-top:0}.panel{border:1px solid var(--line);border-radius:13px;padding:24px;background:var(--surface);box-shadow:var(--shadow)}.panel-heading,.panel-toolbar{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.panel h3,.catalog-panel h3{margin:9px 0 0;font-size:17px;letter-spacing:-.035em}.period-pill,.start-badge{color:var(--muted);border:1px solid var(--line);border-radius:99px;padding:6px 9px;font-size:10px}.start-badge{color:var(--orange-dark);border-color:var(--orange);background:var(--orange-soft);font:500 10px "DM Mono",monospace;text-transform:uppercase}.yield-display{display:flex;align-items:center;gap:31px;margin-top:34px}.yield-ring{display:grid;place-items:center;flex:0 0 auto;width:145px;height:145px;border-radius:50%;background:radial-gradient(circle at center,var(--surface) 57%,transparent 58%),conic-gradient(var(--orange) var(--progress),var(--orange-soft) 0)}.yield-ring strong{font-size:28px;letter-spacing:-.07em}.yield-ring small{margin-left:2px;color:var(--muted);font-size:13px;letter-spacing:0}.yield-display p{max-width:250px;margin:8px 0 15px;color:var(--muted);font-size:11px;line-height:1.7}.inline-button{display:inline-flex;align-items:center;gap:5px;padding:0;border:0;color:var(--orange-dark);background:none;font-size:11px;font-weight:800}.quick-actions{display:grid;gap:11px;margin-top:28px}.quick-actions button{display:flex;align-items:center;gap:11px;border:1px solid var(--line);border-radius:10px;padding:12px;color:var(--text);background:var(--surface-soft);text-align:left}.quick-actions button>span:nth-child(2){display:grid;flex:1;gap:3px}.quick-actions strong{font-size:12px}.quick-actions small{color:var(--muted);font-size:10px}.quick-icon{display:grid;place-items:center;width:33px;height:33px;border-radius:8px}.quick-icon.orange{color:var(--orange-dark);background:var(--orange-soft)}.quick-icon.dark{color:#fff;background:#252725}.skeleton-grid>div{height:170px;border-radius:13px;background:linear-gradient(100deg,var(--surface) 30%,var(--surface-soft),var(--surface) 70%);background-size:200% 100%;animation:shimmer 1.6s infinite}
.catalog-panel{margin-top:0}.catalog-panel h3{margin-top:8px}.table-wrap{overflow:auto;margin-top:27px}.table-wrap table{width:100%;border-collapse:collapse;font-size:12px}.table-wrap th{padding:0 16px 13px;color:var(--muted-soft);font:10px "DM Mono",monospace;letter-spacing:.1em;text-align:left;text-transform:uppercase}.table-wrap td{border-top:1px solid var(--line);padding:15px 16px;color:var(--muted)}.table-wrap td strong{display:block;color:var(--text);font-size:12px}.table-wrap td small{display:block;margin-top:3px;color:var(--muted-soft);font-size:10px}.status-pill{display:inline-flex;border-radius:99px;padding:5px 8px;font:10px "DM Mono",monospace;text-transform:uppercase}.status-pill.active{color:var(--green);background:var(--green-soft)}.status-pill.warning{color:var(--orange-dark);background:var(--orange-soft)}.table-empty,.empty-state{display:grid;place-items:center;min-height:280px;text-align:center}.table-empty strong,.empty-state h3{margin-top:15px;font-size:15px}.table-empty p,.empty-state p{max-width:420px;margin:7px 0 0;color:var(--muted);font-size:12px;line-height:1.6}.empty-icon{display:grid;place-items:center;width:54px;height:54px;border-radius:15px;color:var(--orange-dark);background:var(--orange-soft)}.table-loading{padding:60px;color:var(--muted);text-align:center}.camera-frame{position:relative;display:grid;place-items:center;min-height:280px;margin-top:28px;overflow:hidden;border-radius:12px;background:#171817}.camera-frame video{width:100%;min-height:280px;object-fit:cover}.camera-placeholder{position:absolute;display:grid;justify-items:center;gap:10px;color:#fff;text-align:center}.camera-placeholder small{color:#b9bcb6;font-size:11px}.reader-actions,.fallback-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:13px}.reader-fallback{margin-top:31px;border-top:1px solid var(--line);padding-top:22px}.fallback-actions{margin:12px 0 15px}.upload-button{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--line-strong);border-radius:9px;padding:10px 13px;color:var(--text);background:var(--surface);font-size:11px;font-weight:800;cursor:pointer}.reader-fallback>.primary-button{margin-top:8px}.photo-list{display:flex;align-items:center;justify-content:space-between;min-height:18px;color:var(--muted);font-size:11px}.clear-photos{border:0;color:var(--orange-dark);background:none;font-size:11px}.result-panel{min-height:100%}.result-empty{display:grid;place-items:center;min-height:300px;padding:25px;color:var(--muted);text-align:center}.result-empty strong{margin-top:13px;color:var(--text);font-size:13px}.result-empty p{max-width:270px;margin:7px 0;font-size:11px;line-height:1.7}.result-grid{display:grid;gap:0;margin-top:28px;border:1px solid var(--line);border-radius:10px}.result-grid>div{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid var(--line);padding:13px}.result-grid>div:last-child{border:0}.result-grid span{color:var(--muted);font-size:11px}.result-grid strong{color:var(--text);font-size:12px}.result-warning{display:flex;align-items:center;gap:7px;margin:14px 0;padding:10px;border-radius:9px;color:var(--orange-dark);background:var(--orange-soft);font-size:10px;line-height:1.5}.manual-area{margin-top:18px;border-top:1px solid var(--line);padding-top:18px}.manual-area form{display:grid;gap:13px}.settings-copy{max-width:390px;margin:14px 0 25px;color:var(--muted);font-size:12px;line-height:1.7}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:15px;border-top:1px solid var(--line);padding-top:18px;color:var(--muted);font-size:12px}.password-form{display:grid;gap:14px;margin-top:24px}.password-form .primary-button{justify-self:start}.platform-shell{min-height:100vh;background:var(--bg)}.platform-topbar{padding:0 5vw}.master-badge{color:var(--orange-dark);font:500 10px "DM Mono",monospace;letter-spacing:.12em}.platform-content{padding-top:55px}.toast{position:fixed;right:24px;bottom:24px;z-index:30;max-width:360px;transform:translateY(20px);opacity:0;pointer-events:none;border:1px solid var(--line);border-radius:10px;padding:12px 15px;color:var(--text);background:var(--surface);box-shadow:var(--shadow);font-size:12px;transition:.2s}.toast.visible{transform:translateY(0);opacity:1}.toast.success{border-color:var(--green)}.toast.error{border-color:var(--danger)}.modal-layer{display:grid;place-items:center;position:fixed;inset:0;z-index:20;padding:20px;background:rgba(0,0,0,.42)}.modal-card{position:relative;width:min(100%,430px);max-height:90vh;overflow:auto;border:1px solid var(--line);border-radius:16px;padding:29px;background:var(--surface);box-shadow:var(--shadow)}.modal-card.wide{width:min(100%,650px)}.modal-close{position:absolute;top:19px;right:19px}.modal-card h2{margin:10px 0 25px;font-size:25px;letter-spacing:-.05em}.modal-card form{display:grid;gap:17px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.modal-card .primary-button{margin-top:8px}.center-page,.loading-screen{display:grid;place-items:center;min-height:100vh;background:var(--bg)}.loading-screen{gap:17px;color:var(--muted);font-size:12px}.loading-mark{display:grid;place-items:center;width:55px;height:55px;border-radius:16px;color:#fff;background:var(--orange);animation:pulse 1.7s infinite}.center-card{display:grid;justify-items:center;width:min(390px,calc(100% - 40px));padding:34px;border:1px solid var(--line);border-radius:17px;background:var(--surface);box-shadow:var(--shadow);text-align:center}.centered{margin-bottom:48px}.center-card .empty-icon{margin-bottom:20px}.center-card h2{margin:0 0 8px;font-size:21px;letter-spacing:-.04em}.center-card p{margin:0 0 7px;color:var(--muted);font-size:12px;line-height:1.6}.center-card small{margin-bottom:22px;color:var(--muted-soft);font:10px "DM Mono",monospace}.center-card .secondary-button{width:100%}.mobile-backdrop{display:none}.spinner{width:23px;height:23px;border:2px solid var(--line);border-top-color:var(--orange);border-radius:50%;animation:spin .8s linear infinite}
@keyframes shimmer{0%{background-position:100% 0}100%{background-position:-100% 0}}@keyframes pulse{0%,100%{transform:scale(1)}50%{transform:scale(.94)}}@keyframes spin{to{transform:rotate(360deg)}}
@media(max-width:980px){.auth-page{grid-template-columns:1fr}.auth-brand-panel{display:none}.auth-form-panel{padding:30px 25px}.mobile-brand{display:inline-flex;margin:0 auto 70px}.auth-form-wrap{width:min(100%,410px)}.legal-note{margin-top:50px}.metric-grid{grid-template-columns:repeat(2,1fr)}.dashboard-grid,.station-grid,.settings-grid{grid-template-columns:1fr}.sidebar{position:fixed;inset:0 auto 0 0;transform:translateX(-102%);box-shadow:var(--shadow)}.sidebar.mobile-open{transform:translateX(0)}.mobile-close{display:inline-grid}.mobile-backdrop.visible{display:block;position:fixed;inset:0;z-index:4;border:0;background:rgba(0,0,0,.35)}.mobile-menu{display:inline-grid}.topbar{padding:0 20px}.breadcrumb{margin-left:3px}.page-content,.platform-content{padding:32px 20px 55px}.platform-topbar{height:84px;min-height:84px;padding:0 20px}.platform-topbar .brand-lockup{height:70px}.platform-topbar .verum-logo{width:154px;max-height:70px}}
@media(max-width:590px){.auth-form-panel{padding:24px 21px}.mobile-brand{margin-bottom:47px}.auth-heading h2{font-size:28px}.page-header{align-items:flex-start;flex-direction:column;margin-bottom:27px}.header-actions{width:100%}.header-actions button{flex:1}.metric-grid,.platform-metrics{gap:9px}.metric-card{min-height:147px;padding:14px}.metric-icon{margin-bottom:17px}.metric-value{font-size:21px}.panel{padding:18px}.yield-display{align-items:flex-start;flex-direction:column;gap:20px}.yield-ring{width:122px;height:122px}.topbar{height:65px}.topbar-actions .icon-button{display:none}.breadcrumb span:first-child,.breadcrumb-separator{display:none}.page-content{padding-top:28px}.form-grid{grid-template-columns:1fr}.reader-actions button{flex:1}.reader-actions .primary-button{width:auto}.camera-frame,.camera-frame video{min-height:230px}}

:root{--bg:#f4f4f1;--surface:#fff;--surface-soft:#f8f8f5;--line:#e4e5df;--line-strong:#cfd1c9;--text:#151614;--muted:#777a73;--muted-soft:#9a9e96;--orange:#f36b2b;--orange-dark:#d9541a;--orange-soft:#fff0e8;--shadow:0 12px 36px rgba(27,28,24,.06)}
:root[data-theme=dark]{--bg:#111311;--surface:#191b19;--surface-soft:#151715;--line:#2b2e2a;--line-strong:#444842;--text:#f4f5ef;--muted:#a3a89f;--muted-soft:#747a72;--orange:#ff7c38;--orange-dark:#ff9c67;--orange-soft:#3b2419;--shadow:0 16px 42px rgba(0,0,0,.24)}
:root[data-theme=dark] .verum-logo{filter:brightness(0) invert(1)}
body{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:-.01em}
.platform-shell,.center-page,.loading-screen{background:radial-gradient(circle at 78% -10%,rgba(243,107,43,.08),transparent 35%),var(--bg)}
.app-shell{background:var(--bg)}
.platform-topbar{height:92px;min-height:92px;border-color:rgba(217,219,211,.7);padding:0 clamp(24px,5vw,76px);background:color-mix(in srgb,var(--surface) 88%,transparent);backdrop-filter:blur(18px)}
.platform-topbar .brand-lockup{height:78px}.platform-topbar .verum-logo{width:178px;max-height:78px}
.topbar-actions{gap:12px}.master-badge{padding:7px 10px;border:1px solid var(--orange);border-radius:999px;background:var(--orange-soft);font-weight:600;letter-spacing:.1em}
.platform-content{position:relative;max-width:1480px;padding:64px clamp(24px,5vw,76px) 90px}
.page-header{margin-bottom:34px}.page-header h1{font-size:clamp(34px,4vw,52px);font-weight:700;letter-spacing:-.065em}.page-header>div:first-child>p:last-child{font-size:14px}
.eyebrow{font-size:10px;font-weight:600;letter-spacing:.19em}
.platform-content>.page-header .primary-button{box-shadow:0 10px 22px rgba(243,107,43,.22)}
.platform-metrics{gap:16px;margin-bottom:16px}.metric-card{min-height:158px;border-radius:16px;padding:24px;background:color-mix(in srgb,var(--surface) 92%,transparent);box-shadow:var(--shadow);transition:transform .2s,box-shadow .2s,border-color .2s}.metric-card:hover{transform:translateY(-2px);border-color:var(--line-strong);box-shadow:0 16px 40px rgba(27,28,24,.1)}.metric-label{font-size:12px}.metric-value{margin:11px 0 8px;font-size:36px;font-weight:700}.metric-detail{font-size:11px}
.panel{border-radius:16px;padding:28px;background:color-mix(in srgb,var(--surface) 94%,transparent);box-shadow:var(--shadow)}.catalog-panel{padding:28px}.panel h3,.catalog-panel h3{font-size:20px;font-weight:700}.panel-toolbar{align-items:center}.table-wrap{margin-top:30px}.table-wrap th{padding:0 16px 15px;font-size:10px}.table-wrap td{padding:17px 16px}.table-wrap tbody tr{transition:background .16s}.table-wrap tbody tr:hover{background:var(--surface-soft)}.table-empty{min-height:340px}.empty-icon{width:58px;height:58px;border-radius:17px}
.primary-button,.secondary-button{border-radius:10px;font-size:12px}.primary-button{padding:14px 18px}.primary-button.compact,.secondary-button.compact{padding:11px 14px}.secondary-button{background:var(--surface)}
.sidebar{flex-basis:270px;width:270px;padding:25px 17px 18px;background:var(--surface)}.sidebar-top{padding:0 12px}.sidebar-top .brand-lockup{height:55px}.sidebar .verum-logo{width:145px;max-height:55px}.workspace-switcher{margin:38px 3px 34px;padding:11px;border-radius:12px;background:var(--surface-soft)}.main-nav{gap:28px}.nav-group{gap:4px}.nav-item{padding:11px 13px;border-radius:9px;font-size:12px}.nav-item.active{box-shadow:inset 3px 0 0 var(--orange);font-weight:800}.help-card{border-radius:12px;padding:13px}.profile-mini{padding-top:19px}
.topbar{height:78px;padding:0 clamp(20px,4.4vw,64px);background:var(--surface)}.page-content{max-width:1480px;padding:clamp(40px,5vw,70px) clamp(20px,4.4vw,64px) 84px}.page-content .page-header{margin-bottom:34px}
.auth-brand-panel{padding:62px 7vw 48px;background:#121412}.auth-form-panel{background:var(--surface)}.auth-form input,.modal-card input,.modal-card select,.password-form input,.manual-area input{border-radius:12px;background:var(--surface-soft)}.auth-heading h2{font-size:34px}.modal-card{border-radius:18px;padding:31px}.modal-card h2{font-size:27px}
.station-grid{gap:16px}.camera-frame{border-radius:16px;background:#101210}.reader-fallback{margin-top:34px}.result-grid{border-radius:12px}.result-grid>div{padding:15px}
@media(max-width:980px){.platform-topbar{height:84px;min-height:84px;padding:0 20px}.platform-topbar .brand-lockup{height:70px}.platform-topbar .verum-logo{width:154px;max-height:70px}.platform-content{padding:42px 20px 64px}.sidebar{width:286px;flex-basis:286px}.page-content{padding:38px 20px 64px}}
@media(max-width:590px){.platform-topbar{height:76px;min-height:76px}.platform-topbar .brand-lockup{height:62px}.platform-topbar .verum-logo{width:132px;max-height:62px}.platform-content{padding:34px 16px 52px}.metric-card{min-height:139px;padding:18px}.metric-value{font-size:28px}.catalog-panel,.panel{padding:20px}.page-content{padding:30px 16px 52px}.page-header h1{font-size:32px}.auth-form-panel{padding:26px 21px}}

.loading-screen{gap:18px;padding:32px}
.loading-brand{display:grid;place-items:center;width:min(278px,78vw);padding:24px 30px 21px;border:1px solid var(--line);border-radius:20px;background:color-mix(in srgb,var(--surface) 94%,transparent);box-shadow:var(--shadow)}
.loading-brand .verum-logo{width:210px;max-width:100%}
.loading-progress{width:min(164px,48vw);height:3px;overflow:hidden;border-radius:99px;background:var(--line)}
.loading-progress span{display:block;width:42%;height:100%;border-radius:inherit;background:var(--orange);animation:loading-slide 1.25s ease-in-out infinite}
.loading-label{color:var(--muted);font-size:12px}
@keyframes loading-slide{0%{transform:translateX(-110%)}50%{transform:translateX(145%)}100%{transform:translateX(260%)}}

.import-help{display:flex;gap:10px;align-items:flex-start;margin-top:22px;padding:13px 15px;border:1px solid color-mix(in srgb,var(--orange) 24%,var(--line));border-radius:12px;background:color-mix(in srgb,var(--orange-soft) 68%,var(--surface));color:var(--muted);font-size:12px;line-height:1.55}.import-help strong{color:var(--text)}.import-help code{font-family:'DM Mono',monospace;color:var(--text);font-size:11px}.import-help-icon{display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;border-radius:8px;color:var(--orange);background:var(--surface)}
.import-progress{margin-top:18px;padding:14px 15px;border:1px solid var(--line);border-radius:12px;background:var(--surface-soft)}.import-progress-head{display:flex;justify-content:space-between;gap:12px;color:var(--muted);font-size:11px}.import-progress-head strong{color:var(--text)}.import-progress-track{height:5px;margin-top:11px;overflow:hidden;border-radius:99px;background:var(--line)}.import-progress-track span{display:block;width:0;height:100%;border-radius:inherit;background:var(--orange);transition:width .2s ease}
.catalog-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:22px}.catalog-metrics article{min-width:0;padding:15px;border:1px solid var(--line);border-radius:12px;background:var(--surface-soft)}.catalog-metrics article span{display:block;color:var(--muted);font-size:10px}.catalog-metrics article strong{display:block;margin-top:7px;font-size:18px;letter-spacing:-.03em}.variation-preview{display:grid;gap:8px;margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}.variation-preview>div{display:flex;flex-wrap:wrap;gap:7px}.variation-chip{padding:5px 8px;border-radius:99px;font-size:10px;font-weight:600}.variation-chip.up{color:#a83e19;background:#fff0e8}.variation-chip.down{color:#2f7352;background:#eaf7f0}.import-summary-card{max-width:560px}.import-summary-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:24px 0}.import-summary-grid div{padding:12px 8px;border-radius:10px;background:var(--surface-soft);text-align:center}.import-summary-grid span{display:block;color:var(--muted);font-size:10px}.import-summary-grid strong{display:block;margin-top:5px;font-size:20px}.import-error-list{margin-bottom:20px;padding:12px;border-radius:10px;color:#9d3e23;background:#fff0e8;font-size:12px}.import-error-list p{margin:6px 0 0;line-height:1.5}
@media(max-width:720px){.catalog-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.import-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.panel-toolbar{align-items:flex-start;flex-direction:column}.panel-toolbar .header-actions{width:100%;flex-wrap:wrap}.panel-toolbar .header-actions button{flex:1 1 150px}.table-wrap{overflow-x:auto}.table-wrap table{min-width:640px}}

.receiving-panel{padding-bottom:14px}.panel-copy{margin:8px 0 0;color:var(--muted);font-size:12px;line-height:1.55}.receiving-list{display:grid;gap:10px;margin-top:25px}.receiving-row{display:grid;grid-template-columns:minmax(220px,1.4fr) minmax(240px,1fr) auto;align-items:center;gap:18px;border:1px solid var(--line);border-radius:13px;padding:15px 16px;background:var(--surface-soft)}.receiving-main{display:flex;align-items:center;gap:12px;min-width:0}.receiving-main>div:last-child{display:grid;gap:4px;min-width:0}.receiving-main strong{overflow:hidden;color:var(--text);font-size:12px;text-overflow:ellipsis;white-space:nowrap}.receiving-main span,.receiving-main small{overflow:hidden;color:var(--muted);font-size:10px;text-overflow:ellipsis;white-space:nowrap}.receiving-main small{color:var(--muted-soft)}.receiving-icon{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;border-radius:10px;color:var(--orange-dark);background:var(--orange-soft)}.receiving-facts{display:flex;flex-wrap:wrap;gap:15px}.receiving-facts span{display:grid;gap:3px;color:var(--text);font-size:11px}.receiving-facts b{color:var(--muted-soft);font-size:9px;font-weight:600;letter-spacing:.08em;text-transform:uppercase}.receiving-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px}.action-note{color:var(--muted);font-size:10px}.receiving-form-card .form-note{margin-top:-4px;padding:11px 12px;border-radius:10px;color:var(--orange-dark);background:var(--orange-soft);font-size:11px;line-height:1.5}.modal-card textarea{width:100%;resize:vertical;border:1px solid var(--line-strong);border-radius:12px;outline:none;padding:13px 15px;color:var(--text);background:var(--surface-soft);font:inherit;font-size:13px}.modal-card textarea:focus{border-color:var(--orange);box-shadow:0 0 0 4px var(--orange-soft)}
@media(max-width:900px){.receiving-row{grid-template-columns:1fr}.receiving-actions{justify-content:flex-start}.receiving-facts{gap:20px}}
@media(max-width:590px){.receiving-row{padding:14px}.receiving-actions{align-items:flex-start;flex-direction:column}.receiving-actions .secondary-button{width:100%}.receiving-facts{display:grid;grid-template-columns:repeat(2,1fr);width:100%}}

.legacy-app-shell{min-height:100vh;background:var(--surface-soft)}
.legacy-logo-lockup{align-items:flex-start}.legacy-logo-lockup .verum-logo{width:154px;max-height:58px;object-fit:contain;object-position:left center}
.legacy-nav{margin-top:28px}.legacy-nav .nav-label{padding:0 13px;color:var(--muted-soft);font-size:9px;font-weight:700;letter-spacing:.15em;text-transform:uppercase}.legacy-tenant-name{display:flex;align-items:center;gap:9px;margin:0 3px 17px;padding:9px;border:1px solid var(--line);border-radius:11px;background:var(--surface-soft)}.legacy-tenant-name>span:last-child{display:grid;gap:3px;min-width:0}.legacy-tenant-name strong{overflow:hidden;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.legacy-tenant-name small{color:var(--muted);font-size:9px}.legacy-tenant-name .workspace-avatar{display:grid;place-items:center;flex:0 0 29px;width:29px;height:29px;border-radius:8px;color:var(--orange-dark);background:var(--orange-soft);font-size:12px;font-weight:800}.legacy-topbar{justify-content:space-between;border-bottom:1px solid var(--line);box-shadow:none}.legacy-header-left,.legacy-header-right{display:flex;align-items:center;gap:18px}.legacy-header-left h1{font-size:16px;font-weight:700;letter-spacing:-.03em}.legacy-online{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:10px;font-weight:600}.legacy-online i,.station-status-pill i{width:7px;height:7px;border-radius:50%;background:#28a66b;box-shadow:0 0 0 4px rgba(40,166,107,.12)}.legacy-profile-button{display:flex;align-items:center;gap:7px;padding:9px 11px;border:1px solid var(--line-strong);border-radius:9px;color:var(--text);background:var(--surface);font-size:11px;font-weight:600}.legacy-profile-icon{display:grid;place-items:center;color:var(--orange)}.profile-anchor{position:relative}.profile-menu{position:absolute;z-index:15;top:calc(100% + 10px);right:0;display:none;width:218px;padding:9px;border:1px solid var(--line);border-radius:12px;background:var(--surface);box-shadow:0 16px 40px rgba(20,22,18,.14)}.profile-menu.visible{display:block}.profile-menu-head{display:flex;align-items:center;gap:9px;margin:2px 0 7px;padding:9px;border-bottom:1px solid var(--line)}.profile-menu-head>div:last-child{display:grid;gap:3px;min-width:0}.profile-menu-head strong{overflow:hidden;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.profile-menu-head small{overflow:hidden;color:var(--muted);font-size:9px;text-overflow:ellipsis;white-space:nowrap}.profile-menu button{display:flex;align-items:center;gap:8px;width:100%;padding:10px;border:0;border-radius:8px;color:var(--text);background:transparent;text-align:left;font-size:11px}.profile-menu button:hover{background:var(--surface-soft)}.profile-menu .danger-action{color:#c44b36}.legacy-page-content{max-width:1580px;padding-top:44px}.legacy-section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:24px}.legacy-section-heading h2{font-size:30px;font-weight:750;letter-spacing:-.055em}.legacy-section-heading p{margin-top:7px;color:var(--muted);font-size:12px}.legacy-refresh-button,.db-refresh-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:37px;padding:9px 13px;border:1px solid var(--line-strong);border-radius:9px;color:var(--text);background:var(--surface);font-size:11px;font-weight:650;white-space:nowrap}.legacy-refresh-button:hover,.db-refresh-btn:hover{border-color:var(--orange);color:var(--orange-dark)}
.db-header{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:25px}.db-header h2{font-size:30px;font-weight:750;letter-spacing:-.055em}.db-header p{margin-top:7px;color:var(--muted);font-size:11px}.db-header-actions{display:flex;align-items:center;gap:10px}.db-header-actions label{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:10px}.db-header-actions select,.legacy-controls select{min-height:36px;padding:0 29px 0 10px;border:1px solid var(--line-strong);border-radius:8px;color:var(--text);background:var(--surface);font:inherit;font-size:11px}.db-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin-bottom:15px}.db-kpi{display:flex;align-items:center;gap:12px;min-height:88px;padding:16px;border:1px solid var(--line);border-radius:13px;background:var(--surface);box-shadow:0 5px 16px rgba(35,35,28,.035)}.db-kpi>div:last-child{display:grid;gap:4px;min-width:0}.db-kpi span,.db-kpi small{color:var(--muted);font-size:10px}.db-kpi strong{font-size:21px;letter-spacing:-.04em}.db-kpi-icon{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:11px}.tone-green{color:#25845a;background:#e8f6ee}.tone-red{color:#c64a35;background:#fff0eb}.tone-yellow{color:#a87715;background:#fff6da}.tone-blue{color:#316fc0;background:#eaf2ff}.tone-orange{color:#d46225;background:#fff0e8}.tone-purple{color:#7857ad;background:#f2ebff}.legacy-alerts{margin-bottom:15px}.legacy-alert{display:flex;align-items:center;gap:9px;padding:12px 14px;border:1px solid #f2c79d;border-radius:10px;color:#92501e;background:#fff8ed;font-size:11px}.legacy-alert span{color:#a36d45}.db-board{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.db-col{min-width:0;padding:14px;border:1px solid var(--line);border-radius:13px;background:var(--surface)}.db-col-head{display:flex;align-items:center;justify-content:space-between;gap:9px}.db-col-title{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:700}.db-col-dot{width:7px;height:7px;border-radius:50%}.db-col-badge{display:grid;place-items:center;min-width:23px;height:23px;border-radius:7px;font-size:10px;font-weight:800}.db-col-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;margin:15px 0 12px}.db-col-stats div{display:grid;gap:4px;padding:8px 6px;border-radius:8px;background:var(--surface-soft)}.db-col-stats strong{font-size:11px}.db-col-stats small{color:var(--muted);font-size:8px;line-height:1.2}.db-cards{display:grid;gap:7px;max-height:420px;overflow:auto;padding-right:2px}.db-card{display:grid;gap:4px;padding:11px;border:1px solid var(--line);border-radius:9px;color:var(--text);background:var(--surface);text-align:left}.db-card:hover{border-color:var(--orange);background:var(--orange-soft)}.db-card strong{overflow:hidden;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.db-card span{overflow:hidden;color:var(--muted);font-size:9px;text-overflow:ellipsis;white-space:nowrap}.db-card b{color:var(--orange-dark);font-family:'DM Mono',monospace;font-size:9px}.db-empty{display:grid;justify-items:center;gap:7px;padding:38px 9px;color:var(--muted);text-align:center}.db-empty strong{color:var(--text);font-size:11px}.db-empty small{font-size:9px}.db-skeleton{height:88px;border-radius:13px;background:linear-gradient(90deg,var(--surface) 25%,var(--surface-soft) 50%,var(--surface) 75%);background-size:300% 100%;animation:legacy-skeleton 1.3s infinite}@keyframes legacy-skeleton{to{background-position:-300% 0}}
.legacy-metrics-grid,.subproduct-legacy-metrics,.product-metrics-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:15px}.legacy-metric{display:grid;gap:7px;min-height:96px;padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}.legacy-metric>span{color:var(--muted);font-size:10px}.legacy-metric strong{font-size:21px;letter-spacing:-.04em}.legacy-metric small{color:var(--muted);font-size:9px}.legacy-metric.blue strong{color:#3474c7}.legacy-metric.green strong{color:#27895b}.legacy-metric.yellow strong{color:#b37c10}.legacy-metric.purple strong{color:#7a5aae}.legacy-metric.red strong{color:#c4503a}.legacy-metric.orange strong{color:var(--orange-dark)}.stock-ranking,.product-ranking,.supplier-ranking,.subproduct-insights{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:15px}.supplier-ranking,.subproduct-insights{grid-template-columns:repeat(3,minmax(0,1fr))}.stock-ranking section,.product-ranking section,.supplier-ranking section,.subproduct-insights section{min-width:0;padding:15px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}.stock-ranking h3,.product-ranking h3,.supplier-ranking h3,.subproduct-insights h3{margin-bottom:11px;font-size:12px}.stock-ranking h3 b{margin-left:6px;color:#c24d37;font-size:9px;font-weight:700}.ranking-line{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 0;border-bottom:1px solid var(--line);font-size:10px}.ranking-line:last-child{border-bottom:0}.ranking-line span{overflow:hidden;color:var(--muted);text-overflow:ellipsis;white-space:nowrap}.ranking-line b{color:var(--text);font-size:10px;white-space:nowrap}.legacy-controls{display:flex;align-items:center;gap:9px;margin:17px 0 12px}.legacy-controls>input{flex:1;min-width:170px}.legacy-controls input,.legacy-controls select{height:37px;padding:0 12px;border:1px solid var(--line-strong);border-radius:8px;outline:0;color:var(--text);background:var(--surface);font:inherit;font-size:11px}.legacy-controls input:focus,.legacy-controls select:focus{border-color:var(--orange);box-shadow:0 0 0 3px var(--orange-soft)}.chip-group{display:flex;flex-wrap:wrap;gap:5px}.chip-group button,.supplier-ranking button{padding:9px 10px;border:1px solid var(--line);border-radius:8px;color:var(--muted);background:var(--surface);font-size:10px}.chip-group button.active,.supplier-ranking button.active{border-color:var(--orange);color:var(--orange-dark);background:var(--orange-soft)}.legacy-table-panel{overflow:auto;border:1px solid var(--line);border-radius:13px;background:var(--surface)}.legacy-table-panel table{width:100%;min-width:760px;border-collapse:collapse}.legacy-table-panel th{padding:13px 14px;border-bottom:1px solid var(--line);color:var(--muted-soft);font-size:9px;font-weight:700;letter-spacing:.08em;text-align:left;text-transform:uppercase;white-space:nowrap}.legacy-table-panel td{padding:13px 14px;border-bottom:1px solid var(--line);font-size:11px;white-space:nowrap}.legacy-table-panel tbody tr:last-child td{border-bottom:0}.legacy-table-panel tbody tr:hover{background:var(--surface-soft)}.legacy-table-panel td strong{display:block;font-size:11px}.legacy-table-panel td small{display:block;margin-top:4px;color:var(--muted);font-size:9px}.table-action{padding:6px 9px;border:1px solid var(--line-strong);border-radius:7px;color:var(--orange-dark);background:var(--surface);font-size:10px;font-weight:700}.table-action:hover{border-color:var(--orange);background:var(--orange-soft)}.table-loading,.table-empty{padding:48px 20px!important;color:var(--muted)!important;text-align:center!important}.stock-status-dot{display:block;width:8px;height:8px;border-radius:50%;background:#aaa}.stock-status-dot.available{background:#2ba66b;box-shadow:0 0 0 4px rgba(43,166,107,.11)}.stock-status-dot.in_cut{background:#e39a1e;box-shadow:0 0 0 4px rgba(227,154,30,.11)}.stock-status-dot.processed{background:#7d65c4}.legacy-summary-panel{margin-top:15px;padding:18px;border:1px solid var(--line);border-radius:13px;background:var(--surface)}.summary-heading{display:flex;align-items:center;justify-content:space-between;gap:15px}.summary-heading h3{font-size:15px}.summary-heading p{margin-top:5px;color:var(--muted);font-size:10px}.summary-stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:15px}
.legacy-import-panel{margin:15px 0;padding:18px;border:1px solid color-mix(in srgb,var(--orange) 26%,var(--line));border-radius:13px;background:color-mix(in srgb,var(--orange-soft) 36%,var(--surface))}.legacy-import-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.legacy-import-heading h3{margin-top:5px;font-size:15px}.legacy-import-heading p:last-child{max-width:690px;margin-top:7px;color:var(--muted);font-size:10px;line-height:1.55}.legacy-import-heading .header-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.station-status-pill{display:flex;align-items:center;gap:8px;padding:8px 10px;color:#25845a;border:1px solid #b9e3cc;border-radius:8px;background:#edf9f2;font-size:10px;font-weight:700}.station-waiting{display:grid;justify-items:center;min-height:350px;padding:62px 20px;border:1px solid var(--line);border-radius:14px;background:var(--surface);text-align:center}.station-waiting-icon{display:grid;place-items:center;width:70px;height:70px;margin-bottom:22px;border-radius:20px;color:var(--orange-dark);background:var(--orange-soft)}.station-waiting h3{margin-top:6px;font-size:23px;letter-spacing:.04em}.station-waiting>p:not(.eyebrow){max-width:430px;margin:9px 0 22px;color:var(--muted);font-size:12px;line-height:1.55}.station-waiting-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:9px}.station-ai-button{margin-top:18px}.station-workspace{padding:17px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}.station-workspace-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.station-workspace-head h3{margin-top:5px;font-size:16px}.entry-badge{display:inline-flex;align-items:center;padding:7px 9px;border-radius:8px;color:var(--orange-dark);background:var(--orange-soft);font-size:10px;font-weight:700}.station-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr);gap:14px}.station-grid .panel{padding:17px;box-shadow:none}.upload-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;cursor:pointer}.result-empty{display:grid;justify-items:center;gap:8px;min-height:235px;padding:48px 20px;color:var(--muted);text-align:center}.result-empty strong{color:var(--text);font-size:13px}.result-empty p{max-width:290px;font-size:11px;line-height:1.5}.error-state{color:#bd4835}.error-state strong{color:#bd4835}.photo-list{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:12px;color:var(--muted);font-size:10px}.photo-list button{border:0;color:var(--orange-dark);background:transparent;font-size:10px;font-weight:700}.manual-area{margin-top:17px;padding-top:16px;border-top:1px solid var(--line)}.manual-area form{display:grid;gap:10px}.manual-area label,.tablet-form label,.modal-card label{display:grid;gap:6px;color:var(--muted);font-size:10px;font-weight:700}.manual-area input,.tablet-input,.tablet-textarea,.modal-card textarea{width:100%;padding:11px 12px;border:1px solid var(--line-strong);border-radius:8px;outline:0;color:var(--text);background:var(--surface);font:inherit;font-size:12px}.manual-area input:focus,.tablet-input:focus,.tablet-textarea:focus{border-color:var(--orange);box-shadow:0 0 0 3px var(--orange-soft)}
.entry-screen{max-width:1040px;margin:0 auto}.entry-screen-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:22px}.entry-screen-head h2{font-size:29px;letter-spacing:-.055em}.entry-screen-head p{margin-top:7px;color:var(--muted);font-size:12px}.tablet-form{padding:21px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}.tablet-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 20px}.tablet-full,.form-span-2{grid-column:1/-1}.tablet-label{display:flex!important;align-items:center;gap:4px;color:var(--text)!important;font-size:11px!important}.tablet-label.req:after{content:'*';color:var(--orange);font-weight:800}.tablet-input-num{height:56px;font-size:23px;text-align:center}.num-card{padding:5px;border:1px solid var(--line-strong);border-radius:10px;background:var(--surface-soft)}.num-card .tablet-input{border:0;background:transparent}.datetime-display{display:flex;align-items:center;gap:10px;min-height:52px;padding:11px 13px;border:1px solid var(--line);border-radius:9px;background:var(--surface-soft)}.datetime-display i{width:9px;height:9px;border-radius:50%;background:var(--orange)}.datetime-display div{display:grid;gap:2px}.datetime-display strong{font-family:'DM Mono',monospace;font-size:12px}.datetime-display>span{color:var(--muted);font-size:10px}.entry-edit-time{margin-left:auto;border:0;color:var(--orange-dark);background:transparent;font-size:10px;font-weight:700}.entry-time-edit{display:none;grid-template-columns:1fr auto;gap:8px;margin-top:7px}.entry-time-edit.visible{display:grid}.entry-time-edit input{padding:10px;border:1px solid var(--line-strong);border-radius:8px;color:var(--text);background:var(--surface);font:inherit;font-size:11px}.entry-time-edit button{padding:0 12px;border:0;border-radius:8px;color:#fff;background:var(--orange);font-size:11px}.entry-picker-row{display:flex;align-items:flex-start;gap:8px}.entry-picker{position:relative;flex:1}.entry-picker .tablet-input{cursor:pointer}.entry-options{position:absolute;z-index:7;top:calc(100% + 5px);left:0;right:0;display:none;max-height:210px;overflow:auto;padding:5px;border:1px solid var(--line);border-radius:9px;background:var(--surface);box-shadow:0 14px 30px rgba(20,22,18,.13)}.entry-options.visible{display:grid}.entry-options button{padding:9px;border:0;border-radius:6px;color:var(--text);background:transparent;text-align:left;font-size:11px}.entry-options button:hover{background:var(--surface-soft)}.entry-options span{padding:11px;color:var(--muted);font-size:10px}.btn-novo{height:38px;padding:0 10px;border:1px solid var(--orange);border-radius:8px;color:var(--orange-dark);background:var(--orange-soft);font-size:11px;font-weight:700;white-space:nowrap}.entry-total-card{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:14px 16px;border:1px solid #f2c79d;border-radius:10px;background:#fff8ed}.entry-total-card div{display:grid;gap:4px}.entry-total-card strong{font-size:12px}.entry-total-card small{color:#a36d45;font-size:10px}.entry-total-card>b{color:var(--orange-dark);font-family:'DM Mono',monospace;font-size:18px}.box-selector{display:flex;flex-wrap:wrap;gap:7px}.box-option{min-width:61px;padding:10px 9px;border:1px solid var(--line-strong);border-radius:8px;color:var(--muted);background:var(--surface);font-size:10px;font-weight:700}.box-option.selected{border-color:var(--orange);color:var(--orange-dark);background:var(--orange-soft)}.box-option.custom{color:var(--orange-dark)}.custom-box-entry{display:none;align-items:center;gap:7px;margin-top:9px}.custom-box-entry.visible{display:flex}.custom-box-entry input{width:130px;height:36px;padding:0 10px;border:1px solid var(--line-strong);border-radius:8px;color:var(--text);background:var(--surface);font:inherit;font-size:11px}.custom-box-entry button{height:36px;padding:0 11px;border:0;border-radius:8px;color:#fff;background:var(--orange);font-size:11px}.entry-lot-preview{margin-top:9px;color:var(--muted);font-size:10px}.tablet-textarea{resize:vertical;min-height:88px}.btn-registrar{width:100%;min-height:47px;margin-top:21px;border:0;border-radius:9px;color:#fff;background:var(--orange);font-size:12px;font-weight:800;letter-spacing:.05em}.btn-registrar:hover{background:var(--orange-dark)}.entry-confirmation{max-width:470px}.confirmation-box{margin:19px 0;padding:14px 16px;border:1px solid var(--line);border-radius:10px;background:var(--surface-soft)}.confirmation-box p{margin:8px 0;color:var(--muted);font-size:11px}.confirmation-box b{color:var(--text)}.confirmation-lot{display:block;margin-bottom:13px;color:var(--orange-dark);font-size:12px}.modal-actions{display:flex;justify-content:flex-end;gap:8px}.modal-actions button{flex:1}
.history-cards{display:grid;gap:10px}.history-card{padding:17px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}.history-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px}.history-card-date{color:var(--muted);font-size:10px}.history-card h3{margin-top:5px;font-size:14px}.history-card-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-top:17px}.history-card-metrics div{display:grid;gap:5px;padding:10px;border-radius:8px;background:var(--surface-soft)}.history-card-metrics span,.history-card-foot{color:var(--muted);font-size:9px}.history-card-metrics strong{font-size:12px}.history-card-foot{display:flex;justify-content:space-between;gap:10px;margin-top:13px;padding-top:12px;border-top:1px solid var(--line)}
.modal-card .form-grid{gap:14px}.modal-card .form-grid textarea{min-height:74px}.modal-card .form-span-2{grid-column:1/-1}.modal-card select{width:100%;padding:12px;border:1px solid var(--line-strong);border-radius:10px;color:var(--text);background:var(--surface-soft);font:inherit;font-size:12px}
@media(max-width:1100px){.db-board{grid-template-columns:repeat(2,minmax(0,1fr))}.db-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.legacy-metrics-grid,.subproduct-legacy-metrics,.product-metrics-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.history-card-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.station-grid{grid-template-columns:1fr}.legacy-import-heading{flex-direction:column}.legacy-import-heading .header-actions{justify-content:flex-start}}
@media(max-width:720px){.legacy-section-heading,.db-header,.entry-screen-head{align-items:flex-start;flex-direction:column}.db-header-actions{width:100%;flex-wrap:wrap}.db-header-actions label{flex:1}.db-header-actions select{flex:1}.db-refresh-btn{flex:0 0 auto}.db-board,.supplier-ranking,.subproduct-insights,.stock-ranking,.product-ranking{grid-template-columns:1fr}.legacy-controls{align-items:stretch;flex-wrap:wrap}.legacy-controls>input{flex-basis:100%}.tablet-grid{grid-template-columns:1fr}.tablet-full,.form-span-2{grid-column:auto}.entry-screen-head .entry-badge{align-self:flex-start}.station-waiting-actions{display:grid;width:100%;max-width:330px}.station-waiting-actions button,.station-waiting-actions .upload-button{width:100%}.history-card-foot{align-items:flex-start;flex-direction:column}}
@media(max-width:590px){.legacy-page-content{padding-top:28px}.legacy-section-heading h2,.db-header h2{font-size:25px}.db-kpis{grid-template-columns:1fr}.legacy-metrics-grid,.subproduct-legacy-metrics,.product-metrics-grid{grid-template-columns:1fr 1fr;gap:8px}.legacy-metric{min-height:89px;padding:12px}.legacy-metric strong{font-size:18px}.db-col-stats{grid-template-columns:repeat(3,1fr)}.summary-stat-grid{grid-template-columns:1fr}.history-card-metrics{grid-template-columns:1fr 1fr}.station-waiting{padding:45px 15px}.tablet-form{padding:15px}.entry-screen-head h2{font-size:25px}.entry-picker-row{align-items:stretch;flex-direction:column}.btn-novo{width:100%}.modal-actions{align-items:stretch;flex-direction:column}.legacy-import-heading .header-actions{width:100%}.legacy-import-heading .header-actions button{flex:1}.legacy-import-heading .header-actions .secondary-button{min-width:0}.profile-menu{right:-6px}}
[data-theme="dark"] .station-status-pill{border-color:#2d6448;background:#173827;color:#7ee2a6}[data-theme="dark"] .entry-total-card{border-color:#744821;background:#322416}[data-theme="dark"] .entry-total-card small{color:#d4a26f}[data-theme="dark"] .legacy-alert{border-color:#76542c;background:#332718;color:#f3be77}[data-theme="dark"] .variation-chip.up{color:#ffb08d;background:#43291f}[data-theme="dark"] .variation-chip.down{color:#91e2b2;background:#183526}
.active-cut-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:15px}.active-cut-head h3{margin-top:5px;font-size:17px}.active-cut-head>div>strong{display:block;margin-top:5px;color:var(--muted);font:10px 'DM Mono',monospace}.active-cut-grid{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);gap:14px}.active-cut-info,.active-cut-outputs{min-width:0;padding:17px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}.active-cut-kpis{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.active-cut-kpis div{display:grid;gap:5px;padding:11px;border-radius:8px;background:var(--surface-soft)}.active-cut-kpis span,.active-cut-progress span,.active-cut-progress small,.active-cut-section-head span{color:var(--muted);font-size:9px}.active-cut-kpis strong{font-size:14px}.active-cut-progress{margin-top:13px;padding:12px;border:1px solid var(--line);border-radius:9px}.active-cut-progress>div:first-child{display:flex;justify-content:space-between;gap:10px}.active-cut-progress b{font-size:12px}.active-cut-progress-track{height:8px;margin:9px 0 7px;overflow:hidden;border-radius:99px;background:var(--line)}.active-cut-progress-track span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#e99a20,#f4b64a)}.precut-form{display:grid;grid-template-columns:1fr auto;align-items:end;gap:9px;margin-top:13px;padding:13px;border:1px solid #f2c79d;border-radius:9px;background:#fff8ed}.precut-form label{display:grid;gap:6px;color:#92501e;font-size:10px;font-weight:700}.precut-form input{height:40px;padding:0 10px;border:1px solid #e3bf91;border-radius:8px;color:var(--text);background:var(--surface);font:inherit;font-size:13px}.finalize-cut-button{margin-top:13px}.finalize-cut-button:disabled{cursor:not-allowed;opacity:.45}.active-cut-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:13px}.active-cut-section-head h3{font-size:14px}.active-cut-section-head span{display:block;margin-top:5px}.output-form{display:grid;grid-template-columns:minmax(0,1fr) 110px auto;gap:7px}.output-form select,.output-form input{height:38px;min-width:0;padding:0 9px;border:1px solid var(--line-strong);border-radius:8px;color:var(--text);background:var(--surface);font:inherit;font-size:10px}.cut-output-list{display:grid;gap:7px;margin-top:12px;max-height:370px;overflow:auto}.cut-output-line{display:flex;align-items:center;gap:9px;padding:10px;border:1px solid var(--line);border-radius:8px}.cut-output-line>div:first-child{display:grid;gap:4px;min-width:0;flex:1}.cut-output-line>div:first-child strong{overflow:hidden;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.cut-output-line small{color:var(--muted);font-size:9px}.cut-output-line>div:nth-child(2){display:grid;gap:4px;text-align:right;white-space:nowrap}.cut-output-line>div:nth-child(2) b{font-size:11px}.cut-output-line>div:nth-child(2) span{color:#288d60;font-size:9px}.cut-output-line>button{display:grid;place-items:center;width:27px;height:27px;border:1px solid var(--line);border-radius:7px;color:#c24d37;background:var(--surface);flex:0 0 27px}.cut-output-empty{display:grid;justify-items:center;gap:7px;padding:45px 15px;color:var(--muted);text-align:center}.cut-output-empty strong{color:var(--text);font-size:11px}.cut-output-empty span{font-size:9px}.cut-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:19px 0 13px}.cut-summary-grid div{display:grid;gap:5px;padding:11px;border-radius:8px;background:var(--surface-soft)}.cut-summary-grid span{color:var(--muted);font-size:9px}.cut-summary-grid strong{font-size:13px}.cut-summary-products{display:grid;max-height:180px;overflow:auto;margin-bottom:17px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.cut-summary-products div{display:flex;justify-content:space-between;gap:10px;padding:9px 2px;border-bottom:1px solid var(--line);font-size:10px}.cut-summary-products div:last-child{border-bottom:0}.cut-summary-products span{overflow:hidden;color:var(--muted);text-overflow:ellipsis;white-space:nowrap}.cut-summary-products b{white-space:nowrap}
.active-cut-list{margin-bottom:15px;padding:15px;border:1px solid var(--line);border-radius:13px;background:var(--surface)}.active-cut-list-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:11px}.active-cut-list-head h3{margin-top:5px;font-size:14px}.active-cut-list-head>span{color:var(--muted);font-size:10px}.active-cut-list-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px}.active-cut-card{display:flex;align-items:center;gap:9px;padding:11px;border:1px solid var(--line);border-radius:9px;color:var(--text);background:var(--surface-soft);text-align:left}.active-cut-card:hover{border-color:var(--orange);background:var(--orange-soft)}.active-cut-card>span{display:grid;place-items:center;flex:0 0 29px;width:29px;height:29px;border-radius:8px;color:var(--orange-dark);background:var(--orange-soft)}.active-cut-card>div{display:grid;gap:4px;min-width:0;flex:1}.active-cut-card strong{font-size:11px}.active-cut-card small{overflow:hidden;color:var(--muted);font-size:9px;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:900px){.active-cut-grid{grid-template-columns:1fr}.output-form{grid-template-columns:minmax(0,1fr) 110px}.output-form button{grid-column:1/-1}.active-cut-outputs{min-height:320px}}
@media(max-width:590px){.active-cut-head{align-items:flex-start;flex-direction:column}.active-cut-head .legacy-refresh-button{width:100%}.precut-form{grid-template-columns:1fr}.precut-form button{width:100%}.cut-summary-grid{grid-template-columns:1fr 1fr}.output-form{grid-template-columns:1fr}.output-form button{grid-column:auto}.cut-output-line{align-items:flex-start}.cut-output-line>div:nth-child(2){margin-left:auto}}
[data-theme="dark"] .precut-form{border-color:#744821;background:#322416}[data-theme="dark"] .precut-form label{color:#f3be77}[data-theme="dark"] .precut-form input{border-color:#76542c}
.legacy-alert-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:15px 0}.stock-extra-metrics{margin:15px 0}.metric-insight-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:15px 0}.subproduct-metric-panels{grid-template-columns:repeat(3,minmax(0,1fr))}.metric-insight-panel{min-width:0;padding:17px;border:1px solid var(--line);border-radius:13px;background:var(--surface)}.metric-insight-panel h3{margin-top:5px;font-size:14px}.metric-insight-panel small{display:block;margin-top:6px;color:var(--muted);font-size:10px;line-height:1.45}.metric-insight-panel>div:last-child{display:grid;gap:8px;margin-top:17px}.metric-sublist{display:grid;gap:12px}.metric-sublist>div{display:grid;gap:6px;padding-bottom:11px;border-bottom:1px solid var(--line)}.metric-sublist>div:last-child{padding-bottom:0;border-bottom:0}.metric-sublist span{color:var(--muted);font-size:10px}.metric-sublist b{font-size:10px;line-height:1.75}.metric-bar-row{display:grid;gap:6px}.metric-bar-row>div{display:flex;justify-content:space-between;gap:12px;font-size:10px}.metric-bar-row>div span{overflow:hidden;color:var(--muted);text-overflow:ellipsis;white-space:nowrap}.metric-bar-row>div b{font-family:'DM Mono',monospace;font-size:10px}.metric-bar-track{display:block;height:6px;overflow:hidden;border-radius:99px;background:var(--line)}.metric-bar-track i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--orange),#f6a66c)}.variation-line{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 10px;border-radius:8px;background:var(--surface-soft);font-size:10px}.variation-line span{overflow:hidden;color:var(--muted);text-overflow:ellipsis;white-space:nowrap}.variation-line b{font-family:'DM Mono',monospace;font-size:10px}.variation-line.up b,.supplier-spend-main b.up{color:var(--danger)}.variation-line.down b,.supplier-spend-main b.down{color:var(--green)}.supplier-spend-summary{display:grid;gap:6px;margin-top:16px;padding-top:14px;border-top:1px solid var(--line)}.supplier-spend-main{display:flex;align-items:center;gap:10px}.supplier-spend-main span{color:var(--muted);font-size:10px}.supplier-spend-main strong{font-size:15px}.supplier-spend-main b{margin-left:auto;font:700 11px 'DM Mono',monospace}.supplier-spend-main b.flat{color:var(--muted)}.supplier-spend-summary>small{color:var(--muted);font-size:9px;line-height:1.5}.history-rankings{margin-top:15px}.history-rankings .metric-insight-panel{min-height:190px}
@media(max-width:1100px){.subproduct-metric-panels{grid-template-columns:1fr 1fr}.legacy-alert-metrics{grid-template-columns:1fr 1fr}}
@media(max-width:720px){.metric-insight-grid,.subproduct-metric-panels{grid-template-columns:1fr}.legacy-alert-metrics{grid-template-columns:1fr}.supplier-spend-main{align-items:flex-start;flex-wrap:wrap}.supplier-spend-main b{margin-left:0}}

/* Verum product layer — final visual system */
:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SFMono-Regular", "Roboto Mono", "DM Mono", monospace;
  --bg: #f3f2ee;
  --surface: #ffffff;
  --surface-soft: #f8f7f3;
  --surface-muted: #eceae4;
  --line: rgba(22, 22, 20, .10);
  --line-strong: rgba(22, 22, 20, .18);
  --text: #171715;
  --text-soft: #4d4b45;
  --muted: #817e75;
  --muted-soft: #aaa69c;
  --black: #141513;
  --black-soft: #242521;
  --orange: #f36b24;
  --orange-dark: #c95418;
  --orange-soft: #fff0e7;
  --green: #377b59;
  --green-soft: #e8f3ec;
  --danger: #b94a34;
  --danger-soft: #fbe9e4;
  --warning: #a96a21;
  --shadow: 0 18px 48px rgba(27, 27, 23, .065);
  --shadow-small: 0 8px 24px rgba(27, 27, 23, .05);
  --shadow-float: 0 24px 70px rgba(27, 27, 23, .16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
}

:root[data-theme=dark] {
  --bg: #0f1010;
  --surface: #191a19;
  --surface-soft: #20211f;
  --surface-muted: #292a27;
  --line: rgba(255, 255, 255, .11);
  --line-strong: rgba(255, 255, 255, .20);
  --text: #f7f5ef;
  --text-soft: #d0cdc4;
  --muted: #a09d94;
  --muted-soft: #77756e;
  --black: #f7f5ef;
  --black-soft: #e6e1d7;
  --orange: #ff7b36;
  --orange-dark: #ff9b61;
  --orange-soft: rgba(255, 123, 54, .15);
  --green: #79c99a;
  --green-soft: rgba(121, 201, 154, .14);
  --danger: #ff9b80;
  --danger-soft: rgba(255, 155, 128, .14);
  --warning: #f0b56d;
  --shadow: 0 18px 54px rgba(0, 0, 0, .28);
  --shadow-small: 0 8px 26px rgba(0, 0, 0, .22);
  --shadow-float: 0 26px 78px rgba(0, 0, 0, .45);
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  background:
    radial-gradient(circle at 96% -8%, rgba(243, 107, 36, .075), transparent 26rem),
    var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  letter-spacing: -.012em;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

button,
a,
label {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(243, 107, 36, .23);
}

.eyebrow {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
}

.primary-button,
.secondary-button,
.legacy-refresh-button,
.db-refresh-btn,
.legacy-profile-button,
.upload-button {
  min-height: 42px;
  border-radius: 12px;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.primary-button:hover,
.secondary-button:hover,
.legacy-refresh-button:hover,
.db-refresh-btn:hover {
  transform: translateY(-1px);
}

.primary-button {
  background: var(--orange);
  box-shadow: 0 10px 24px rgba(243, 107, 36, .17);
}

.primary-button:hover {
  background: var(--orange-dark);
  box-shadow: 0 14px 30px rgba(243, 107, 36, .23);
}

.secondary-button,
.legacy-refresh-button,
.db-refresh-btn,
.legacy-profile-button {
  border-color: var(--line-strong);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
}

.secondary-button:hover,
.legacy-refresh-button:hover,
.db-refresh-btn:hover,
.legacy-profile-button:hover {
  border-color: var(--orange);
  background: var(--surface);
}

.app-shell {
  min-height: 100dvh;
  background: var(--bg);
}

.legacy-app-shell .sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  flex-basis: 272px;
  width: 272px;
  border-right: 0;
  padding: 28px 17px 18px;
  background:
    radial-gradient(circle at 8% 0%, rgba(243, 107, 36, .18), transparent 18rem),
    #151615;
  color: #f6f3eb;
  box-shadow: 14px 0 40px rgba(0, 0, 0, .06);
}

.legacy-app-shell .sidebar .verum-logo {
  filter: brightness(0) invert(1);
}

.legacy-app-shell .sidebar .nav-label {
  color: rgba(246, 243, 235, .47);
}

.legacy-app-shell .sidebar .nav-item {
  color: rgba(246, 243, 235, .66);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.legacy-app-shell .sidebar .nav-item svg {
  opacity: .78;
}

.legacy-app-shell .sidebar .nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, .08);
}

.legacy-app-shell .sidebar .nav-item.active {
  color: #fff;
  background: linear-gradient(100deg, rgba(243, 107, 36, .28), rgba(243, 107, 36, .10));
  box-shadow: inset 3px 0 0 var(--orange);
}

.legacy-app-shell .sidebar .workspace-avatar,
.legacy-app-shell .sidebar .user-avatar {
  color: #191916;
  background: #f6f3eb;
}

.legacy-app-shell .sidebar .legacy-tenant-name {
  border-top-color: rgba(255, 255, 255, .12);
}

.legacy-app-shell .sidebar .legacy-tenant-name strong,
.legacy-app-shell .sidebar .profile-name strong {
  color: #f6f3eb;
}

.legacy-app-shell .sidebar .legacy-tenant-name small,
.legacy-app-shell .sidebar .profile-name span {
  color: rgba(246, 243, 235, .48);
}

.legacy-app-shell .sidebar .profile-mini {
  border-top-color: rgba(255, 255, 255, .12);
}

.legacy-app-shell .sidebar .icon-button {
  color: rgba(246, 243, 235, .62);
}

.legacy-app-shell .sidebar .icon-button:hover {
  color: #fff;
  background: rgba(255, 255, 255, .08);
}

.legacy-topbar {
  position: sticky;
  top: 0;
  z-index: 4;
  height: 78px;
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--surface) 87%, transparent);
  backdrop-filter: blur(18px);
}

.legacy-header-left h1 {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -.02em;
}

.legacy-online {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.legacy-online i {
  width: 7px;
  height: 7px;
  margin-right: 7px;
  box-shadow: 0 0 0 4px rgba(70, 167, 111, .13);
}

.legacy-page-content {
  max-width: 1510px;
  padding-top: clamp(34px, 5vw, 70px);
}

.legacy-section-heading {
  margin-bottom: 28px;
}

.legacy-section-heading h2,
.db-header h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(30px, 3vw, 46px);
  font-weight: 700;
  letter-spacing: -.065em;
}

.legacy-section-heading p,
.db-header p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.legacy-metrics-grid,
.product-metrics-grid,
.subproduct-legacy-metrics,
.db-kpis {
  gap: 14px;
}

.legacy-metric {
  min-height: 134px;
  border: 1px solid color-mix(in srgb, var(--surface) 58%, var(--line));
  border-radius: 20px;
  padding: 20px;
  background:
    linear-gradient(140deg, color-mix(in srgb, var(--surface) 94%, transparent), color-mix(in srgb, var(--surface-soft) 85%, transparent));
  box-shadow: var(--shadow-small);
}

.legacy-metric::before {
  width: 8px;
  height: 8px;
  top: 20px;
  right: 20px;
  border-radius: 50%;
  background: var(--orange);
}

.legacy-metric span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.legacy-metric strong {
  margin-top: 12px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: clamp(21px, 2vw, 30px);
  font-weight: 680;
  letter-spacing: -.055em;
}

.legacy-metric small {
  color: var(--muted-soft);
  font-size: 10px;
  line-height: 1.45;
}

.legacy-metric.blue::before,
.legacy-metric.purple::before {
  background: var(--black-soft);
}

.legacy-metric.green::before {
  background: var(--green);
}

.legacy-metric.red::before {
  background: var(--danger);
}

.legacy-metric.yellow::before,
.legacy-metric.orange::before {
  background: var(--orange);
}

.db-kpi {
  min-height: 112px;
  border: 1px solid color-mix(in srgb, var(--surface) 63%, var(--line));
  border-radius: 22px;
  padding: 19px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--surface) 91%, transparent), color-mix(in srgb, var(--surface-soft) 79%, transparent));
  box-shadow: var(--shadow-small);
}

.db-kpi:hover {
  border-color: color-mix(in srgb, var(--orange) 46%, var(--line));
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.db-kpi-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
}

.tone-blue,
.tone-purple {
  color: var(--text);
  background: var(--surface-muted);
}

.tone-orange,
.tone-yellow {
  color: var(--orange-dark);
  background: var(--orange-soft);
}

.db-kpi span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.db-kpi strong {
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 25px;
  font-weight: 680;
  letter-spacing: -.06em;
}

.db-kpi small {
  color: var(--muted-soft);
  font-size: 10px;
}

.db-board {
  align-items: start;
  gap: 15px;
}

.db-col {
  min-height: 430px;
  border: 1px solid color-mix(in srgb, var(--surface) 66%, var(--line));
  border-radius: 22px;
  padding: 14px;
  background: color-mix(in srgb, var(--surface) 67%, transparent);
  box-shadow: var(--shadow-small);
}

.db-col-head {
  padding: 2px 4px;
}

.db-col-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.db-col-badge {
  min-width: 28px;
  height: 28px;
  border-radius: 10px;
  font-family: var(--font-mono);
}

#dashboard-board .db-col-dot {
  background: var(--orange) !important;
}

#dashboard-board .db-col:nth-child(2) .db-col-dot {
  background: var(--black-soft) !important;
}

#dashboard-board .db-col:nth-child(3) .db-col-dot {
  background: #9b6a4b !important;
}

#dashboard-board .db-col:nth-child(4) .db-col-dot {
  background: var(--green) !important;
}

.db-col-stats {
  gap: 6px;
  margin: 15px 0;
}

.db-col-stats div {
  min-height: 52px;
  border-radius: 12px;
  padding: 9px 8px;
  background: color-mix(in srgb, var(--surface-muted) 72%, transparent);
}

.db-col-stats strong {
  font-family: var(--font-mono);
  font-size: 11px;
}

.db-col-stats small {
  color: var(--muted);
}

.db-card {
  min-height: 112px;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: var(--surface);
  box-shadow: 0 5px 14px rgba(26, 26, 22, .035);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.db-card:hover {
  border-color: color-mix(in srgb, var(--orange) 50%, var(--line));
  background: var(--surface);
  box-shadow: var(--shadow-small);
  transform: translateY(-2px);
}

.db-card strong {
  font-size: 13px;
  font-weight: 680;
}

.db-card span {
  color: var(--muted);
  font-size: 10px;
}

.db-card b {
  color: var(--orange-dark);
  font-family: var(--font-mono);
  font-size: 10px;
}

.legacy-table-panel,
.legacy-import-panel,
.legacy-summary-panel,
.stock-ranking > section,
.product-ranking > section,
.supplier-ranking > section,
.subproduct-insights > section {
  border: 1px solid color-mix(in srgb, var(--surface) 65%, var(--line));
  border-radius: 20px;
  background: color-mix(in srgb, var(--surface) 89%, transparent);
  box-shadow: var(--shadow-small);
}

.legacy-table-panel,
.legacy-import-panel,
.legacy-summary-panel {
  padding: 19px;
}

.legacy-table-panel {
  overflow-x: auto;
}

.legacy-table-panel table {
  min-width: 850px;
  border-collapse: separate;
  border-spacing: 0;
}

.legacy-table-panel th {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .10em;
}

.legacy-table-panel td {
  border-top-color: var(--line);
  padding: 17px 12px;
  color: var(--text-soft);
  font-size: 12px;
}

.legacy-table-panel tr:hover td {
  background: color-mix(in srgb, var(--orange-soft) 34%, transparent);
}

.legacy-controls {
  gap: 10px;
  margin: 20px 0 14px;
}

.legacy-controls input,
.legacy-controls select,
.db-header-actions select,
.legacy-import-heading + .legacy-controls input {
  min-height: 43px;
  border-color: var(--line-strong);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  color: var(--text);
}

.chip-group {
  gap: 5px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.chip-group button {
  min-height: 33px;
  border-radius: 9px;
  padding: 0 11px;
  color: var(--muted);
  font-size: 10px;
}

.chip-group button.active {
  color: var(--text);
  background: var(--surface);
  box-shadow: var(--shadow-small);
}

.ranking-line {
  min-height: 42px;
  border-bottom-color: var(--line);
  padding: 10px 0;
}

.ranking-line span {
  color: var(--text-soft);
}

.ranking-line b {
  color: var(--orange-dark);
  font-family: var(--font-mono);
}

.legacy-import-panel {
  margin: 20px 0 0;
}

.legacy-import-heading h3,
.summary-heading h3,
.stock-ranking h3,
.product-ranking h3,
.supplier-ranking h3,
.subproduct-insights h3 {
  color: var(--text);
  font-size: 17px;
  font-weight: 680;
}

.legacy-import-heading p,
.summary-heading p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.station-waiting {
  min-height: 470px;
  border: 1px solid color-mix(in srgb, var(--surface) 65%, var(--line));
  border-radius: 26px;
  padding: clamp(42px, 8vw, 86px) 22px;
  background:
    radial-gradient(circle at 50% 0%, rgba(243, 107, 36, .13), transparent 22rem),
    var(--surface);
  box-shadow: var(--shadow-small);
}

.station-waiting-icon {
  width: 78px;
  height: 78px;
  border: 1px solid rgba(243, 107, 36, .18);
  border-radius: 24px;
  background: var(--orange-soft);
}

.station-waiting h3 {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -.045em;
}

.station-waiting-actions {
  max-width: 620px;
  margin-inline: auto;
}

.station-waiting-actions .primary-button,
.station-waiting-actions .secondary-button,
.station-waiting-actions .upload-button {
  min-height: 46px;
  border-radius: 14px;
}

.station-workspace {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: var(--shadow-small);
}

.camera-frame {
  min-height: 330px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(243, 107, 36, .12), transparent 38%),
    #101110;
}

.camera-frame video {
  min-height: 330px;
}

.result-grid {
  overflow: hidden;
  border-radius: 16px;
}

.result-grid > div {
  min-height: 53px;
  padding: 15px 16px;
}

.result-grid span {
  font-size: 11px;
}

.result-grid strong {
  font-family: var(--font-mono);
  font-size: 12px;
}

.manual-area,
.reader-fallback {
  border-top-color: var(--line);
}

.history-card {
  border: 1px solid color-mix(in srgb, var(--surface) 65%, var(--line));
  border-radius: 22px;
  padding: 20px;
  background: color-mix(in srgb, var(--surface) 91%, transparent);
  box-shadow: var(--shadow-small);
}

.history-card:hover {
  border-color: color-mix(in srgb, var(--orange) 42%, var(--line));
}

.history-card-metrics div {
  min-height: 62px;
  border-radius: 13px;
  padding: 12px;
  background: var(--surface-soft);
}

.history-card-metrics strong {
  font-family: var(--font-mono);
}

.modal-layer {
  padding: 16px;
  background: rgba(10, 10, 9, .58);
  backdrop-filter: blur(8px);
  z-index: 40;
}

.modal-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 30px;
  box-shadow: var(--shadow-float);
}

.modal-card h2 {
  font-size: 29px;
  font-weight: 700;
}

.modal-card input,
.modal-card select,
.modal-card textarea,
.password-form input,
.manual-area input {
  min-height: 46px;
  border-radius: 12px;
  border-color: var(--line-strong);
  background: var(--surface-soft);
}

.modal-card textarea {
  min-height: 92px;
  resize: vertical;
}

.app-loading {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 32px;
  background:
    radial-gradient(circle at 50% 20%, rgba(243, 107, 36, .10), transparent 22rem),
    var(--bg);
}

.app-loading__content {
  display: grid;
  justify-items: center;
  gap: 22px;
  width: min(100%, 320px);
  text-align: center;
}

.app-loading__logo {
  width: min(78vw, 270px);
  height: auto;
  max-height: 112px;
  object-fit: contain;
}

:root[data-theme=dark] .app-loading__logo {
  filter: brightness(0) invert(1);
}

.app-loading__bar {
  width: 132px;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line-strong);
}

.app-loading__bar::after {
  content: "";
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: var(--orange);
  animation: verum-loading 1.2s ease-in-out infinite;
}

.app-loading__label {
  color: var(--muted);
  font-size: 12px;
}

@keyframes verum-loading {
  0% { transform: translateX(-130%); }
  100% { transform: translateX(330%); }
}

.mobile-nav {
  display: none;
}

.toast {
  right: 20px;
  bottom: 20px;
  border-radius: 14px;
  box-shadow: var(--shadow-float);
}

@media (max-width: 980px) {
  .legacy-app-shell .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 20;
    transform: translateX(-105%);
    transition: transform .24s ease;
  }

  .legacy-app-shell .sidebar.mobile-open {
    transform: translateX(0);
  }

  .legacy-topbar {
    z-index: 10;
  }

  .legacy-page-content {
    padding-top: 38px;
  }
}

@media (max-width: 720px) {
  body {
    padding-bottom: 76px;
  }

  .modal-layer {
    z-index: 40;
    padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
  }

  .modal-card {
    max-height: calc(100dvh - max(24px, env(safe-area-inset-top) + env(safe-area-inset-bottom)));
  }

  .legacy-topbar {
    height: 66px;
    padding-inline: 16px;
  }

  .legacy-header-right .legacy-online,
  .legacy-header-right .legacy-profile-button {
    display: none;
  }

  .legacy-page-content {
    padding: 30px 16px 48px;
  }

  .legacy-section-heading h2,
  .db-header h2 {
    font-size: 31px;
  }

  .db-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .db-kpi {
    min-height: 122px;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 15px;
  }

  .db-kpi-icon {
    width: 34px;
    height: 34px;
    border-radius: 11px;
  }

  .db-kpi strong {
    font-size: 22px;
  }

  .db-board {
    grid-template-columns: 1fr;
  }

  .db-col {
    min-height: 0;
    border-radius: 20px;
  }

  .db-cards {
    max-height: none;
  }

  .legacy-metrics-grid,
  .product-metrics-grid,
  .subproduct-legacy-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legacy-metric {
    min-height: 116px;
    padding: 15px;
    border-radius: 16px;
  }

  .legacy-metric strong {
    font-size: 20px;
  }

  .legacy-table-panel,
  .legacy-import-panel,
  .legacy-summary-panel {
    padding: 13px;
    border-radius: 17px;
  }

  .legacy-controls {
    align-items: stretch;
  }

  .legacy-controls > input {
    flex-basis: 100%;
  }

  .station-grid,
  .active-cut-grid {
    grid-template-columns: 1fr;
  }

  .station-waiting {
    min-height: 420px;
    border-radius: 21px;
    padding: 52px 16px;
  }

  .station-waiting-actions {
    display: grid;
    width: 100%;
  }

  .station-waiting-actions > *,
  .station-waiting-actions button,
  .station-waiting-actions .upload-button {
    width: 100%;
  }

  .camera-frame,
  .camera-frame video {
    min-height: 245px;
  }

  .active-cut-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mobile-nav {
    position: fixed;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 25;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 3px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 20px;
    background: rgba(22, 22, 21, .94);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .24);
    backdrop-filter: blur(18px);
  }

  .mobile-nav__item {
    display: grid;
    justify-items: center;
    gap: 4px;
    min-height: 55px;
    border: 0;
    border-radius: 15px;
    padding: 7px 3px;
    color: rgba(247, 245, 239, .62);
    background: transparent;
    font-size: 9px;
    font-weight: 600;
  }

  .mobile-nav__item.active {
    color: #fff;
    background: linear-gradient(145deg, rgba(243, 107, 36, .37), rgba(243, 107, 36, .14));
  }

  .mobile-nav__item.active svg {
    color: var(--orange);
  }
}

@media (max-width: 390px) {
  .legacy-page-content {
    padding-inline: 12px;
  }

  .db-kpis,
  .legacy-metrics-grid,
  .product-metrics-grid,
  .subproduct-legacy-metrics {
    gap: 7px;
  }

  .legacy-metric {
    padding: 13px;
  }

  .legacy-metric strong {
    font-size: 18px;
  }

  .db-kpi {
    padding: 12px;
  }

  .db-kpi strong {
    font-size: 19px;
  }

  .db-kpi span,
  .db-kpi small {
    font-size: 9px;
  }
}

:root[data-theme=dark] .legacy-app-shell .sidebar {
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 123, 54, .20), transparent 18rem),
    #101110;
}

:root[data-theme=dark] .legacy-table-panel,
:root[data-theme=dark] .legacy-import-panel,
:root[data-theme=dark] .legacy-summary-panel,
:root[data-theme=dark] .db-col,
:root[data-theme=dark] .station-waiting,
:root[data-theme=dark] .station-workspace {
  background: color-mix(in srgb, var(--surface) 91%, transparent);
}

:root[data-theme=dark] .auth-brand-panel .verum-logo,
:root[data-theme=dark] .center-card .verum-logo {
  filter: brightness(0) invert(1);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* Reference shell — restrained, editorial and operational */
.legacy-app-shell {
  background: var(--bg);
}

.legacy-app-shell .sidebar {
  flex: 0 0 294px;
  width: 294px;
  padding: 24px 20px 20px;
  overflow-y: auto;
  border-right: 1px solid rgba(255, 255, 255, .06);
  background:
    radial-gradient(circle at 0% 0%, rgba(243, 107, 36, .17), transparent 18rem),
    linear-gradient(180deg, #241914 0%, #171413 24%, #111211 68%, #101110 100%);
  box-shadow: 16px 0 46px rgba(17, 17, 15, .10);
}

.legacy-app-shell .sidebar-top {
  min-height: 82px;
  padding: 0 4px 0 7px;
  align-items: flex-start;
}

.legacy-app-shell .legacy-logo-lockup {
  align-items: flex-start;
  padding-top: 3px;
}

.legacy-app-shell .legacy-logo-lockup .verum-logo {
  width: 164px;
  max-height: 70px;
}

.legacy-app-shell .sidebar .mobile-close {
  display: grid;
  width: 38px;
  height: 38px;
  margin-top: 4px;
  border-radius: 12px;
  color: rgba(247, 245, 239, .70);
}

.legacy-app-shell .sidebar .mobile-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, .08);
}

.legacy-app-shell .legacy-nav {
  gap: 30px;
  padding-top: 24px;
}

.legacy-app-shell .legacy-nav .nav-group {
  gap: 4px;
}

.legacy-app-shell .legacy-nav .nav-label {
  margin: 0 14px 11px;
  color: rgba(247, 245, 239, .46);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .18em;
}

.legacy-app-shell .legacy-nav .nav-item {
  min-height: 47px;
  gap: 15px;
  padding: 0 15px;
  border-radius: 16px;
  color: rgba(247, 245, 239, .67);
  font-size: 14px;
  font-weight: 620;
  letter-spacing: -.015em;
}

.legacy-app-shell .legacy-nav .nav-item svg {
  width: 20px;
  height: 20px;
  opacity: .80;
  stroke-width: 1.65;
}

.legacy-app-shell .legacy-nav .nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, .07);
}

.legacy-app-shell .legacy-nav .nav-item.active {
  color: #fff;
  background: linear-gradient(100deg, rgba(243, 107, 36, .29), rgba(243, 107, 36, .12));
  box-shadow: inset 3px 0 0 var(--orange), 0 8px 24px rgba(0, 0, 0, .10);
}

.legacy-app-shell .legacy-nav .nav-item.active svg {
  opacity: 1;
  color: var(--orange);
}

.legacy-app-shell .sidebar-bottom {
  padding-top: 28px;
}

.legacy-app-shell .legacy-tenant-name {
  min-height: 70px;
  gap: 11px;
  margin: 0 7px 19px;
  padding: 11px 12px;
  border: 1px solid rgba(22, 22, 20, .10);
  border-radius: 16px;
  background: #f7f5ef;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .13);
}

.legacy-app-shell .legacy-tenant-name .workspace-avatar {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: #22231f;
  background: #eeece4;
  font-size: 13px;
}

.legacy-app-shell .legacy-tenant-name strong {
  color: #24241f !important;
  font-size: 12px;
  font-weight: 700;
}

.legacy-app-shell .legacy-tenant-name small {
  color: #8c887e !important;
  font-size: 10px;
  letter-spacing: .08em;
}

.legacy-app-shell .sidebar .profile-mini {
  min-height: 66px;
  gap: 11px;
  padding: 18px 7px 0;
  border-top: 1px solid rgba(255, 255, 255, .13);
}

.legacy-app-shell .sidebar .profile-mini .user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: #25251f;
  background: #f7f5ef;
  font-size: 13px;
}

.legacy-app-shell .sidebar .profile-name strong {
  color: #f7f5ef;
  font-size: 12px;
  font-weight: 650;
}

.legacy-app-shell .sidebar .profile-name span {
  color: rgba(247, 245, 239, .48);
  font-size: 10px;
  letter-spacing: .08em;
}

.legacy-app-shell .sidebar .profile-mini > .icon-button {
  width: 34px;
  height: 34px;
  margin-left: auto;
  color: rgba(247, 245, 239, .58);
}

.legacy-app-shell .legacy-topbar {
  height: 88px;
  padding: 0 clamp(26px, 4.2vw, 86px);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .40);
}

.legacy-app-shell .legacy-header-left h1 {
  color: var(--text);
  font-size: 17px;
  font-weight: 690;
  letter-spacing: -.035em;
}

.legacy-app-shell .legacy-header-right {
  display: flex;
  align-items: center;
  gap: 22px;
}

.legacy-app-shell .legacy-online {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .18em;
}

.legacy-app-shell .legacy-online i {
  width: 8px;
  height: 8px;
  margin-right: 9px;
  background: #43a971;
  box-shadow: 0 0 0 5px rgba(67, 169, 113, .13);
}

.legacy-app-shell .legacy-profile-button {
  min-width: 228px;
  min-height: 52px;
  gap: 12px;
  padding: 0 15px;
  border: 1px solid var(--line-strong);
  border-radius: 17px;
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: 0 5px 16px rgba(28, 28, 25, .035);
  font-size: 12px;
  font-weight: 650;
}

.legacy-app-shell .legacy-profile-button:hover {
  border-color: color-mix(in srgb, var(--orange) 55%, var(--line-strong));
  background: var(--surface);
}

.legacy-app-shell .legacy-profile-button .legacy-profile-icon {
  display: grid;
  place-items: center;
  color: var(--orange);
}

.legacy-app-shell .legacy-profile-button > span:nth-child(2) {
  overflow: hidden;
  flex: 1;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.legacy-app-shell .legacy-page-content {
  max-width: 1540px;
  padding: clamp(55px, 6.2vw, 94px) clamp(30px, 4.3vw, 90px) 100px;
}

.legacy-app-shell .legacy-section-heading {
  margin-bottom: 38px;
}

.legacy-app-shell .legacy-section-heading h2,
.legacy-app-shell .db-header h2 {
  font-size: clamp(38px, 4.1vw, 61px);
  font-weight: 720;
  line-height: .98;
  letter-spacing: -.075em;
}

.legacy-app-shell .legacy-section-heading p,
.legacy-app-shell .db-header p {
  max-width: 620px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.legacy-app-shell .settings-grid {
  gap: 20px;
}

.legacy-app-shell .settings-grid > .panel {
  min-height: 350px;
  padding: 38px 40px;
  border-radius: 24px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: 0 14px 38px rgba(27, 27, 23, .045);
}

.legacy-app-shell .settings-grid > .panel h3 {
  margin-top: 15px;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -.055em;
}

.legacy-app-shell .settings-grid > .panel .settings-copy {
  max-width: 480px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.legacy-app-shell .settings-grid > .panel .setting-row {
  margin-top: 42px;
  padding-top: 23px;
  border-top: 1px solid var(--line);
}

.legacy-app-shell .settings-grid > .panel .password-form {
  gap: 13px;
  margin-top: 36px;
}

.legacy-app-shell .settings-grid > .panel .password-form label {
  color: var(--muted);
  font-size: 12px;
}

.legacy-app-shell .settings-grid > .panel .password-form input {
  min-height: 58px;
  border-radius: 15px;
  padding-inline: 19px;
  background: color-mix(in srgb, var(--surface-soft) 84%, transparent);
  font-size: 14px;
}

:root[data-theme=dark] .legacy-app-shell .legacy-tenant-name {
  border-color: rgba(255, 255, 255, .10);
  background: #f0eee6;
}

:root[data-theme=dark] .legacy-app-shell .legacy-profile-button {
  background: color-mix(in srgb, var(--surface) 88%, transparent);
}

@media (max-width: 980px) {
  .legacy-app-shell .sidebar {
    width: min(86vw, 322px);
    flex-basis: min(86vw, 322px);
    padding: 22px 18px 18px;
  }

  .legacy-app-shell .legacy-topbar {
    padding-inline: 24px;
  }

  .legacy-app-shell .legacy-page-content {
    padding-inline: 24px;
  }
}

@media (max-width: 720px) {
  .legacy-app-shell .legacy-topbar {
    height: 72px;
    padding-inline: 16px;
  }

  .legacy-app-shell .legacy-header-right {
    gap: 7px;
  }

  .legacy-app-shell .legacy-page-content {
    padding: 38px 16px 56px;
  }

  .legacy-app-shell .legacy-section-heading h2,
  .legacy-app-shell .db-header h2 {
    font-size: 38px;
  }

  .legacy-app-shell .settings-grid > .panel {
    min-height: 0;
    padding: 27px 24px;
    border-radius: 21px;
  }

  .legacy-app-shell .settings-grid > .panel h3 {
    font-size: 24px;
  }

  .legacy-app-shell .settings-grid > .panel .setting-row {
    margin-top: 27px;
  }

  .auth-form input,
  .legacy-app-shell input,
  .legacy-app-shell select,
  .legacy-app-shell textarea,
  .modal-card input,
  .modal-card select,
  .modal-card textarea,
  .manual-area input {
    font-size: 16px;
  }

  .legacy-app-shell .tablet-input-num {
    font-size: 23px;
  }

  .auth-form button,
  .legacy-app-shell button,
  .modal-card button,
  .upload-button {
    min-height: 44px;
    touch-action: manipulation;
  }

  .auth-form input,
  .legacy-app-shell input,
  .legacy-app-shell select,
  .legacy-app-shell textarea,
  .modal-card input,
  .modal-card select,
  .modal-card textarea,
  .manual-area input,
  .upload-button {
    touch-action: manipulation;
  }
}
