:root{color-scheme:light;--black:#171717;--text:#262626;--muted:#737373;--subtle:#a3a3a3;--line:#e5e5e5;--soft:#f5f5f5;--canvas:#fafafa;--white:#fff;--danger:#b91c1c;--danger-bg:#fef2f2;--sidebar:240px;--header:64px;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;font-synthesis:none}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--canvas);color:var(--text)}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.icon-sprite{position:absolute;width:0;height:0;overflow:hidden}.hidden{display:none!important}.mobile-only{display:none!important}.muted,.helper{color:var(--muted)}
.login-shell{min-height:100vh;display:grid;grid-template-rows:auto 1fr;place-items:center;background:#fff;padding:34px}.login-brand{justify-self:start;display:flex;align-items:center;gap:12px}.login-brand>div,.sidebar-brand>div{display:grid;gap:2px}.login-brand strong,.sidebar-brand strong{font-size:15px}.login-brand span:last-child,.sidebar-brand span:last-child{font-size:11px;color:var(--muted);letter-spacing:.08em}.brand-mark{display:grid;place-items:center;width:38px;height:38px;border:1px solid var(--black);font-size:11px;font-weight:700;letter-spacing:.08em}.brand-mark.inverse{border-color:#525252;color:#fff}.login-card{align-self:start;margin-top:10vh;width:min(100%,420px);border:1px solid var(--line);padding:40px;background:#fff}.environment-label{font-size:11px;letter-spacing:.1em;color:var(--muted);font-weight:650}.login-card h1{font-size:25px;margin:20px 0 7px;letter-spacing:-.03em}.login-card>p{margin:0 0 28px;font-size:14px}.login-card form{display:grid;gap:18px}.login-card form button{margin-top:6px;width:100%}.login-note{border-top:1px solid var(--line);padding-top:18px;margin-top:24px;color:var(--subtle);font-size:11px;text-align:center}.form-message{min-height:18px;margin:14px 0 0!important}.error{color:var(--danger)}
label{display:grid;gap:8px;font-size:12px;font-weight:650;color:#404040}input,select,textarea{width:100%;border:1px solid #d4d4d4;background:#fff;color:var(--text);border-radius:5px;padding:10px 12px;min-height:42px;outline:0;transition:border-color .15s,box-shadow .15s}textarea{min-height:86px;resize:vertical}input:focus,select:focus,textarea:focus{border-color:#737373;box-shadow:0 0 0 3px #1717170a}button[type="submit"],.primary-button{border:1px solid var(--black);border-radius:5px;background:var(--black);color:#fff;min-height:40px;padding:9px 15px;font-weight:650;font-size:13px}.secondary-button{border:1px solid #d4d4d4;border-radius:5px;background:#fff;color:var(--text);min-height:38px;padding:8px 13px;font-size:13px}.secondary-button:hover{background:var(--soft)}
.topbar{position:fixed;z-index:50;top:0;left:var(--sidebar);right:0;height:var(--header);display:flex;align-items:center;gap:20px;background:#fff;border-bottom:1px solid var(--line);padding:0 28px}.header-brand{display:none}.search-results{position:absolute;top:45px;left:0;right:0;max-height:340px;overflow:auto;background:#fff;border:1px solid var(--line);box-shadow:0 12px 30px #00000012;padding:6px;z-index:60}.search-result{width:100%;border:0;background:#fff;display:flex;align-items:center;justify-content:space-between;text-align:left;padding:10px;border-radius:4px;color:var(--text)}.search-result:hover{background:var(--soft)}.search-result div{display:grid;gap:2px}.search-result strong{font-size:13px}.search-result span{font-size:11px;color:var(--muted)}.header-actions{display:flex;align-items:center;gap:13px}.connection{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:11px}.connection>span{width:6px;height:6px;border-radius:50%;background:#a3a3a3}.connection.online>span{background:var(--black)}.icon-button{width:36px;height:36px;border:1px solid var(--line);border-radius:5px;background:#fff;display:grid;place-items:center;color:#525252}.icon-button:hover{background:var(--soft)}.header-user,.sidebar-user{display:flex;align-items:center;gap:9px}.header-user>div,.sidebar-user>div{display:grid;gap:2px}.header-user strong,.sidebar-user strong{font-size:12px}.header-user span:last-child,.sidebar-user span:last-child{font-size:10px;color:var(--muted);text-transform:uppercase}.avatar{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:var(--black);color:#fff;font-size:11px;font-weight:700}
.sidebar{position:fixed;z-index:70;left:0;top:0;bottom:0;width:var(--sidebar);display:flex;flex-direction:column;background:var(--black);color:#d4d4d4}.sidebar-brand{height:var(--header);display:flex;align-items:center;gap:11px;padding:0 20px;border-bottom:1px solid #2f2f2f}.sidebar-brand span:last-child{color:#737373}.sidebar nav{padding:18px 12px;overflow-y:auto;scrollbar-color:#404040 transparent;flex:1}.nav-group+.nav-group{margin-top:20px}.nav-label{display:flex;gap:8px;padding:0 10px 7px;color:#737373;font-size:9px;font-weight:700;letter-spacing:.13em}.nav-group button{position:relative;width:100%;height:36px;border:0;border-radius:4px;background:transparent;color:#a3a3a3;display:flex;align-items:center;gap:10px;padding:0 10px;text-align:left;font-size:12px}.nav-group button:hover{background:#242424;color:#fff}.nav-group button.active{background:#2d2d2d;color:#fff}.nav-group button.active:before{content:"";position:absolute;left:0;top:9px;bottom:9px;width:2px;background:#fff}.nav-group button svg{width:16px;flex:0 0 auto}.nav-group button>span{flex:1}.nav-group button small{font-size:8px;color:#737373}.nav-group button em{min-width:18px;height:18px;border-radius:9px;background:#353535;color:#d4d4d4;font-size:9px;display:grid;place-items:center;font-style:normal}.sidebar-footer{height:64px;border-top:1px solid #2f2f2f;display:flex;align-items:center;padding:0 13px;gap:8px}.sidebar-user{flex:1;min-width:0}.sidebar-user strong{color:#fff}.sidebar-user strong,.sidebar-user span{max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.inverse-avatar{background:#fff;color:#171717}.sidebar-logout{width:34px;height:34px;display:grid;place-items:center;border:0;background:transparent;color:#737373;border-radius:4px}.sidebar-logout:hover{background:#2d2d2d;color:#fff}
.main-content{margin-left:var(--sidebar);padding:calc(var(--header) + 34px) clamp(24px,3vw,48px) 60px;min-height:100vh;max-width:1680px}.page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;margin-bottom:28px}.page-head h1{font-size:25px;line-height:1.2;letter-spacing:-.035em;margin:5px 0 7px;color:var(--black)}.page-head p:not(.breadcrumb){font-size:13px;color:var(--muted);margin:0}.breadcrumb{margin:0;color:#a3a3a3;font-size:10px;letter-spacing:.04em}.surface{background:#fff;border:1px solid var(--line);border-radius:6px}.section-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;padding:18px 20px;border-bottom:1px solid var(--line)}.section-head h2,.context-card h2{font-size:14px;margin:0 0 4px;color:var(--black)}.section-head p{font-size:11px;color:var(--muted);margin:0}.text-button{border:0;background:transparent;color:#525252;display:flex;align-items:center;gap:5px;font-size:11px;padding:4px}.text-button svg{width:13px}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:12px}.metric{min-height:116px;background:#fff;border:1px solid var(--line);border-radius:6px;padding:18px 20px;display:grid;align-content:space-between}.metric-head{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:11px}.metric-head svg{width:16px;color:#a3a3a3}.metric strong{display:block;font-size:28px;line-height:1;font-weight:650;letter-spacing:-.04em;color:var(--black)}.metric small{font-size:10px;color:var(--subtle)}.reconciliation{font-size:11px;margin-bottom:18px;padding:0 2px;color:var(--muted)}.reconciliation.danger{color:var(--danger)}.dashboard-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(280px,1fr);gap:12px}.dashboard-grid>.surface:nth-child(3){grid-column:1/-1}
.table-wrap{overflow:auto;width:100%}table{width:100%;border-collapse:collapse;min-width:720px}th{height:40px;padding:0 16px;text-align:left;font-size:10px;font-weight:650;letter-spacing:.035em;color:#737373;background:#fafafa;border-bottom:1px solid var(--line);white-space:nowrap}td{height:54px;padding:9px 16px;border-bottom:1px solid #eee;font-size:12px;vertical-align:middle}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fafafa}.num{text-align:right;font-variant-numeric:tabular-nums}.sku{font-family:"SFMono-Regular",Consolas,monospace;font-size:11px;color:#525252}.cell-primary{font-weight:600;color:var(--black)}.cell-secondary{font-size:10px;color:var(--muted);margin-top:2px}.status-pill{display:inline-flex;align-items:center;gap:5px;border:1px solid #e5e5e5;border-radius:999px;padding:3px 7px;color:#525252;background:#fff;font-size:9px;white-space:nowrap}.status-pill:before{content:"";width:5px;height:5px;border-radius:50%;background:#737373}.status-pill.danger{border-color:#fecaca;color:var(--danger);background:var(--danger-bg)}.status-pill.danger:before{background:var(--danger)}.status-pill.muted:before{background:#d4d4d4}.row-action{border:0;background:transparent;color:#737373;padding:5px;font-size:11px}.row-action:hover{color:#000}.task-list,.activity-list,.record-list,.location-list{padding:4px 20px}.task-item{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:14px 0;border-bottom:1px solid #eee}.task-item:last-child{border:0}.task-item>div{display:grid;gap:3px}.task-item strong{font-size:12px}.task-item span{font-size:10px;color:var(--muted)}.task-item b{font-size:17px;font-weight:600}.activity-item{display:grid;grid-template-columns:34px 1fr auto;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid #eee}.activity-item:last-child{border:0}.activity-icon{width:30px;height:30px;border:1px solid var(--line);border-radius:50%;display:grid;place-items:center;color:#737373}.activity-icon svg{width:14px}.activity-main{display:grid;gap:3px;min-width:0}.activity-main strong{font-size:11px}.activity-main span,.activity-time{font-size:10px;color:var(--muted)}.activity-time{white-space:nowrap}.activity-list.compact{padding:0}.activity-list.compact .activity-item{grid-template-columns:1fr auto}.activity-list.compact .activity-icon{display:none}
.toolbar{display:flex;align-items:center;gap:10px;margin-bottom:12px}.table-search{position:relative;display:block;flex:1;max-width:420px}.toolbar select{width:auto;min-width:140px;min-height:38px}.table-surface{overflow:hidden}.empty-state{padding:48px 20px;text-align:center;color:var(--muted);font-size:12px}.expand-row td{padding:0;background:#fafafa}.location-breakdown{display:flex;gap:8px;flex-wrap:wrap;padding:12px 16px}.location-chip{border:1px solid var(--line);background:#fff;border-radius:4px;padding:8px 10px;display:grid;gap:3px;min-width:130px}.location-chip strong{font-size:11px}.location-chip span{font-size:10px;color:var(--muted)}.location-row{display:grid;grid-template-columns:1.2fr 1fr .7fr .7fr;gap:15px;align-items:center;padding:14px 0;border-bottom:1px solid #eee}.location-row:last-child{border:0}.location-row strong{font-size:12px}.location-row span{font-size:11px;color:var(--muted)}
.operation-layout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(260px,.75fr);gap:12px;align-items:start}.operation-card form{display:grid;gap:16px;padding:20px}.operation-card form>button[type="submit"]{justify-self:start;min-width:112px}.two-columns{display:grid;grid-template-columns:1fr 1fr;gap:12px}.context-card{padding:20px}.context-card ul{margin:14px 0 0;padding-left:18px;color:var(--muted);font-size:11px;line-height:2}.button-row{display:flex;gap:8px}.record-row{display:grid;grid-template-columns:1.4fr 1fr auto;gap:15px;align-items:center;padding:14px 0;border-bottom:1px solid #eee}.record-row:last-child{border:0}.record-row strong{font-size:12px}.record-row span{font-size:10px;color:var(--muted)}.record-row button{justify-self:end}.scan-video{width:min(100%,520px);margin:0 20px 16px;border-radius:5px;background:#111;aspect-ratio:4/3;object-fit:cover}.operation-card>.helper{font-size:10px;padding:0 20px 18px;margin:0}.operation-card>#asset-result{padding:0 20px 20px}.asset-result-card{border:1px solid var(--line);padding:14px;display:grid;gap:6px}.asset-result-card strong{font-size:13px}.asset-result-card span{font-size:11px;color:var(--muted)}
.drawer{position:fixed;z-index:80;right:0;top:var(--header);bottom:0;width:min(440px,100vw);background:#fff;border-left:1px solid var(--line);box-shadow:-16px 0 40px #0000000a;padding:24px;overflow:auto}.drawer-head{display:flex;justify-content:space-between;align-items:flex-start;border-bottom:1px solid var(--line);padding-bottom:20px;margin-bottom:22px}.drawer-head h2{margin:5px 0 0;font-size:20px}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px 12px}.detail-field{display:grid;gap:5px}.detail-field span{font-size:9px;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}.detail-field strong{font-size:12px}.detail-wide{grid-column:1/-1}.system-banner{border:1px solid #fecaca;background:var(--danger-bg);color:var(--danger);padding:10px 12px;margin-bottom:18px;font-size:11px;display:flex;align-items:center;gap:8px}.toast{position:fixed;z-index:100;right:24px;top:80px;width:min(360px,calc(100vw - 48px));border:1px solid #d4d4d4;background:#171717;color:#fff;padding:12px 14px;border-radius:5px;box-shadow:0 12px 32px #0002;font-size:12px}.toast.error{background:#fff;color:var(--danger);border-color:#fecaca}.no-permission{opacity:.55}.sidebar-backdrop{position:fixed;z-index:65;inset:0;border:0;background:#0008}
@media(max-width:1100px){:root{--sidebar:216px}.main-content{padding-left:24px;padding-right:24px}.metrics{grid-template-columns:repeat(2,1fr)}.dashboard-grid{grid-template-columns:1fr}.dashboard-grid>.surface:nth-child(3){grid-column:auto}.header-user>div{display:none}.operation-layout{grid-template-columns:1fr}}
@media(max-width:800px){:root{--sidebar:260px}.mobile-only{display:grid!important}.topbar{left:0;padding:0 14px;gap:10px}.header-brand{display:grid;gap:1px;margin-right:auto}.header-brand strong{font-size:12px}.header-brand span{font-size:9px;color:var(--muted)}.header-actions .connection,.header-actions>.icon-button,.header-user{display:none}.sidebar{transform:translateX(-100%);transition:transform .2s ease}.sidebar.open{transform:translateX(0)}.main-content{margin-left:0;padding:calc(var(--header) + 24px) 16px 40px}.page-head{margin-bottom:20px}.dashboard-grid{grid-template-columns:1fr}.toolbar{flex-wrap:wrap}.table-search{max-width:none;flex-basis:100%}.drawer{top:0}.location-row{grid-template-columns:1fr 1fr}}
@media(max-width:520px){.login-shell{padding:20px}.login-card{border:0;padding:10px 0;margin-top:8vh}.metrics{grid-template-columns:1fr 1fr;gap:8px}.metric{min-height:104px;padding:15px}.metric strong{font-size:24px}.page-head{display:grid}.page-head>button{justify-self:start}.section-head{padding:15px}.activity-list,.task-list,.record-list,.location-list{padding-left:15px;padding-right:15px}.activity-item{grid-template-columns:30px 1fr}.activity-time{display:none}.two-columns{grid-template-columns:1fr}.operation-card form{padding:15px}.button-row{display:grid}.button-row button{width:100%}.toolbar select,.toolbar>.secondary-button{flex:1}.record-row{grid-template-columns:1fr auto}.record-row>span{grid-column:1}.detail-grid{grid-template-columns:1fr}.detail-wide{grid-column:auto}.toast{right:16px;top:74px;width:calc(100vw - 32px)}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* UI Redesign V1.1 — continuous header and DEVlAN brand system */
:root{--header:72px;--sidebar:240px;--header-bg:#111;--sidebar-bg:#252525}
html,body,.app-shell{background:#fff}
.login-brand img{width:48px;height:42px;object-fit:contain;object-position:center}
.topbar{left:0;right:0;z-index:80;height:var(--header);padding:0 24px;background:var(--header-bg);border-bottom:1px solid #242424;color:#fff;gap:24px}
.header-brand{display:flex;align-items:center;gap:12px;width:216px;min-width:216px;height:100%;margin-right:0}
.header-brand img{display:block;width:50px;height:58px;object-fit:contain;object-position:center;filter:grayscale(1) invert(1);mix-blend-mode:screen}
.header-brand>div{display:grid;gap:3px;min-width:0}
.header-brand strong{font-size:14px;line-height:1;color:#fff;white-space:nowrap}
.header-brand span{font-size:10px;line-height:1;color:#a3a3a3;letter-spacing:.06em;white-space:nowrap}
.header-icon,.header-menu{border-color:#353535;background:#1b1b1b;color:#d4d4d4}
.header-icon:hover,.header-menu:hover{background:#2b2b2b;color:#fff}
.header-user strong{color:#fff}.header-user span:last-child{color:#a3a3a3}
.header-avatar{background:#f5f5f5;color:#171717}
.sidebar{z-index:70;top:var(--header);bottom:0;background:var(--sidebar-bg);color:#f5f5f5}
.sidebar nav{padding-top:22px;background:var(--sidebar-bg)}
.nav-label{color:#8a8a8a}
.nav-group button{color:#b8b8b8}
.nav-group button:hover{background:#303030;color:#fff}
.nav-group button.active{background:#3a3a3a;color:#fff}
.nav-group button small{color:#929292}
.sidebar-footer{flex:0 0 64px;background:var(--sidebar-bg);border-top-color:#3a3a3a}
.sidebar-logout:hover{background:#363636}
.main-content{background:#fff;max-width:none;min-height:100vh;padding-top:calc(var(--header) + 34px)}
.drawer{top:var(--header)}
.toast{top:calc(var(--header) + 16px)}
@media(max-width:1100px){:root{--sidebar:240px}.header-brand{width:216px;min-width:216px}.main-content{padding-left:24px;padding-right:24px}}
@media(max-width:800px){:root{--sidebar:260px;--header:64px}.topbar{padding:0 14px;gap:9px}.header-menu{order:0;flex:0 0 36px}.header-brand{order:1;width:auto;min-width:0;flex:1;gap:8px}.header-brand img{width:39px;height:49px}.header-brand strong{font-size:12px}.header-brand span{font-size:8px}.header-actions{display:none}.sidebar{top:var(--header)}.main-content{padding-top:calc(var(--header) + 24px)}}
@media(max-width:420px){.header-brand span{display:none}.header-brand img{width:36px}.header-brand>div{gap:0}}

/* UI Redesign V1.2 — softer chrome, subtle watermark and collapsible navigation */
:root{--header-bg:#383838;--sidebar-bg:#292929}
.topbar{background:var(--header-bg);border-bottom-color:#444}
.header-icon,.header-menu{background:#424242;border-color:#555}
.header-icon:hover,.header-menu:hover{background:#4d4d4d}
.sidebar,.sidebar nav,.sidebar-footer{background:var(--sidebar-bg)}
.nav-group+.nav-group{margin-top:14px}
.nav-group .nav-group-toggle{height:30px;padding:0 10px;color:#a3a3a3;font-size:9px;font-weight:700;letter-spacing:.12em;border-radius:4px}
.nav-group .nav-group-toggle:hover{background:#323232;color:#e5e5e5}
.nav-group .nav-group-toggle>span{display:flex;align-items:center;gap:8px;flex:1}
.nav-group .nav-group-toggle b{font:inherit;color:#8a8a8a}
.nav-group .nav-group-toggle>svg{width:12px;height:12px;transform:rotate(90deg);transition:transform .18s ease;color:#b8b8b8}
.nav-group.collapsed .nav-group-toggle>svg{transform:rotate(0)}
.nav-group-items{display:grid;grid-template-rows:1fr;opacity:1;transition:grid-template-rows .18s ease,opacity .15s ease}
.nav-group-inner{min-height:0;overflow:hidden}
.nav-group.collapsed .nav-group-items{grid-template-rows:0fr;opacity:0;pointer-events:none}
.main-content{position:relative;isolation:isolate;min-width:0;overflow-x:hidden}
.surface,.dashboard-grid>*{min-width:0}
.main-content::before{content:"";position:fixed;z-index:0;top:var(--header);left:var(--sidebar);right:0;bottom:0;background:url("assets/devlan-logo-original.png") no-repeat 68% 53%/360px auto;filter:grayscale(1);opacity:.025;pointer-events:none}
.main-content>.view,.main-content>.system-banner{position:relative;z-index:1}
@media(max-width:800px){.main-content::before{left:0;background-position:66% 54%;background-size:190px auto;opacity:.018}}

/* UI Redesign V1.3 — inverted chrome hierarchy and larger official brand */
:root{--header:78px;--header-bg:#292929;--sidebar-bg:#383838}
.topbar{background:var(--header-bg);border-bottom-color:#3d3d3d}
.header-brand{width:228px;min-width:228px;gap:12px}
.header-brand img{width:68px;height:72px}
.header-icon,.header-menu{background:#343434;border-color:#484848}
.header-icon:hover,.header-menu:hover{background:#404040}
.sidebar,.sidebar nav,.sidebar-footer{background:var(--sidebar-bg)}
.nav-group .nav-group-toggle:hover{background:#424242;color:#f5f5f5}
.nav-group-inner>button:hover{background:#454545;color:#fff}
.nav-group-inner>button.active{background:#505050;color:#fff}
.sidebar-footer{border-top-color:#4a4a4a}
.sidebar-logout:hover{background:#484848}
@media(max-width:1100px){.header-brand{width:228px;min-width:228px}}
@media(max-width:800px){:root{--header:68px}.header-brand{width:auto;min-width:0;gap:7px}.header-brand img{width:46px;height:56px}}
@media(max-width:420px){.header-brand img{width:44px;height:54px}}

/* UI Redesign V1.4 — premium header refinement */
:root{--header:76px}
.topbar{gap:28px;padding:0 28px;background:#292929;border-bottom:1px solid rgba(255,255,255,.06);box-shadow:0 4px 18px rgba(0,0,0,.10)}
.header-brand{width:276px;min-width:276px;gap:14px;justify-content:flex-start}
.header-brand img{width:80px;height:72px}
.header-brand>div{gap:4px}
.header-brand strong{font-size:15px;font-weight:650;letter-spacing:.01em}
.header-brand span{font-size:10px;color:#b3b3b3;letter-spacing:.07em}
.header-actions{gap:14px;margin-left:auto}
.header-icon{width:38px;height:38px}
.header-avatar{width:36px;height:36px}
.header-user{gap:10px}
.header-user strong{font-size:12px;font-weight:650}
.header-user span:last-child{font-size:10px;color:#a3a3a3}
@media(max-width:1100px){.topbar{gap:20px;padding:0 22px}.header-brand{width:260px;min-width:260px}}
@media(max-width:800px){:root{--header:68px}.topbar{padding:0 12px;gap:8px;box-shadow:0 3px 14px rgba(0,0,0,.10)}.header-brand{width:auto;min-width:0;gap:7px}.header-brand img{width:48px;height:56px}.header-brand strong{font-size:12px}.header-brand span{font-size:8px}.header-actions{display:flex;order:3;gap:6px;margin-left:0}.header-actions>.header-icon{display:none}.header-user{display:flex}.header-user>div{display:none}.header-avatar{width:34px;height:34px}}
@media(max-width:420px){.header-brand img{width:46px;height:54px}}

/* UI Redesign V1.5 — compact header account controls */
.header-actions{gap:12px}
.header-user>div{display:none}
@media(max-width:800px){.header-actions{gap:8px}.header-actions>.header-icon{display:grid;width:34px;height:34px}}

/* UI Redesign V1.6 — inventory workspace and warehouse operation UX */
.inventory-toolbar{display:grid;grid-template-columns:minmax(260px,1fr) repeat(3,minmax(132px,auto)) auto;align-items:center}
.inventory-toolbar .table-search{max-width:none}.inventory-toolbar select{min-width:132px}
.inventory-result-bar{display:flex;justify-content:space-between;gap:16px;margin:0 2px 10px;color:#8a8a8a;font-size:10px}.inventory-result-bar span:first-child{color:#404040;font-weight:600}
.inventory-table{min-width:980px}.sort-button{display:inline-flex;align-items:center;gap:4px;border:0;background:transparent;color:inherit;font:inherit;letter-spacing:inherit;padding:0;white-space:nowrap}.sort-button:after{content:"↕";font-size:9px;color:#b8b8b8}.sort-button.active{color:#171717}.sort-button.active[data-direction="asc"]:after{content:"↑"}.sort-button.active[data-direction="desc"]:after{content:"↓"}
.item-detail-button{border:0;background:transparent;padding:0;color:#171717;font:inherit;font-weight:600;text-align:left}.item-detail-button:hover{text-decoration:underline;text-underline-offset:3px}
.inventory-anomaly{background:#fff7f7}.inventory-anomaly:hover{background:#fff1f1}.location-chip{grid-template-columns:1fr auto;column-gap:12px;align-items:center}.location-chip strong{grid-column:1}.location-chip span{grid-column:2;grid-row:1;font-variant-numeric:tabular-nums}.location-chip small{grid-column:1/-1;color:#8a8a8a;font-size:9px}.location-chip.frozen{border-color:#fecaca;background:#fff8f8}.location-chip.frozen small{color:var(--danger)}.empty-inline{padding:12px 2px;color:#8a8a8a;font-size:11px}
.operation-layout{grid-template-columns:minmax(0,1.3fr) minmax(300px,.7fr);gap:16px}.operation-card form{gap:17px}.operation-card form label{display:grid;gap:7px;font-size:11px;font-weight:600;color:#404040}.operation-card form label select,.operation-card form label input,.operation-card form label textarea{font-weight:400}.operation-card form textarea{min-height:94px;resize:vertical}.operation-card form>button[type="submit"]{min-width:132px;height:40px}
.context-card{position:sticky;top:calc(var(--header) + 22px)}.operation-context{display:grid;gap:0;margin:13px 0 4px;border-top:1px solid var(--line)}.context-metric{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:12px 0;border-bottom:1px solid #eee}.context-metric span{color:#737373;font-size:10px}.context-metric strong{max-width:68%;text-align:right;font-size:11px;font-weight:600}.context-metric.emphasis strong{font-size:16px;color:#171717;font-variant-numeric:tabular-nums}.asset-operation-note{display:none;margin-top:14px;padding:11px 12px;border:1px solid #e5e5e5;background:#fafafa;color:#666;font-size:10px;line-height:1.65}.asset-operation-note.visible{display:block}.operation-validation{display:none;margin:0;padding:9px 11px;border:1px solid #fecaca;background:#fff7f7;color:var(--danger);font-size:10px;line-height:1.5}.operation-validation.visible{display:block}.context-subhead{margin-top:24px!important;padding-top:18px;border-top:1px solid var(--line)}
.transfer-route{display:grid;grid-template-columns:minmax(0,1fr) 34px minmax(0,1fr);gap:10px;align-items:end}.transfer-route label{min-width:0}.transfer-route label span{display:block}.transfer-arrow{height:38px;display:grid;place-items:center;color:#737373;font-size:18px}
.confirm-dialog{width:min(480px,calc(100vw - 32px));padding:0;border:1px solid #d4d4d4;border-radius:8px;background:#fff;color:#171717;box-shadow:0 24px 70px rgba(0,0,0,.2)}.confirm-dialog::backdrop{background:rgba(0,0,0,.44)}.confirm-dialog form{padding:0}.confirm-dialog-head{display:flex;justify-content:space-between;align-items:flex-start;padding:20px 22px 16px;border-bottom:1px solid var(--line)}.confirm-dialog-head h2{margin:5px 0 0;font-size:17px}.confirm-summary{padding:8px 22px}.confirm-row{display:flex;justify-content:space-between;gap:20px;padding:11px 0;border-bottom:1px solid #eee}.confirm-row span{font-size:10px;color:#737373}.confirm-row strong{font-size:11px;text-align:right}.confirm-warning{margin:4px 22px 0;padding:10px 11px;background:#fafafa;border:1px solid var(--line);font-size:10px;line-height:1.55;color:#666}.confirm-actions{display:flex;justify-content:flex-end;gap:8px;padding:18px 22px}.confirm-actions button{min-width:96px}
@media(max-width:1180px){.inventory-toolbar{grid-template-columns:minmax(240px,1fr) repeat(2,minmax(130px,auto))}.inventory-toolbar #inventory-status-filter{grid-column:2}.inventory-toolbar>.refresh{grid-column:4;grid-row:1}}
@media(max-width:1100px){.operation-layout{grid-template-columns:1fr}.context-card{position:static}.inventory-toolbar{grid-template-columns:minmax(220px,1fr) repeat(2,minmax(130px,auto))}.inventory-toolbar>.refresh{grid-column:auto;grid-row:auto}}
@media(max-width:800px){.inventory-toolbar{display:flex;flex-wrap:wrap}.inventory-toolbar .table-search{flex:1 0 100%}.inventory-toolbar select{flex:1 1 calc(50% - 8px)}.inventory-result-bar{display:grid;gap:4px}.table-surface{max-width:100%}.transfer-route{grid-template-columns:1fr 28px 1fr}}
@media(max-width:520px){.inventory-toolbar select,.inventory-toolbar>.secondary-button{flex:1 0 100%;width:100%}.operation-card form>button[type="submit"]{width:100%;justify-self:stretch}.transfer-route{grid-template-columns:1fr}.transfer-arrow{height:20px;transform:rotate(90deg)}.context-metric strong{max-width:62%}.confirm-actions{display:grid;grid-template-columns:1fr 1fr}.confirm-actions button{width:100%}.confirm-dialog-head,.confirm-summary,.confirm-actions{padding-left:16px;padding-right:16px}.confirm-warning{margin-left:16px;margin-right:16px}}

/* UI Redesign V1.7 — refined typography, right-aligned header tools and collapsible active groups */
body,input,select,textarea,button{font-family:"PingFang SC","Microsoft YaHei","Noto Sans CJK SC","Helvetica Neue",Arial,sans-serif}
.topbar{gap:26px}
.header-brand{width:300px;min-width:300px;gap:16px}
.header-brand img{width:78px;height:72px;flex:0 0 auto}
.header-brand>div{gap:7px;justify-content:center}
.header-brand strong{font-size:19px;font-weight:650;line-height:1.05;letter-spacing:.035em;color:#fff}
.header-brand span{font-size:13px;font-weight:450;line-height:1.05;letter-spacing:.055em;color:#bdbdbd}
.header-actions{display:flex;align-items:center;justify-content:flex-end;gap:20px;margin-left:auto;min-width:0}
.header-notification{width:40px;height:40px;min-width:40px;display:grid;place-items:center;padding:0;border:0;background:transparent;color:#b8b8b8;border-radius:6px}
.header-notification svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round}
.header-notification:hover,.header-notification:focus-visible{background:transparent;color:#fff;outline:1px solid rgba(255,255,255,.12);outline-offset:1px}
.nav-group .nav-group-toggle{height:36px;font-size:12.5px;font-weight:600;letter-spacing:.055em;color:#c4c4c4}
.nav-group .nav-group-toggle b{min-width:19px;color:#a8a8a8;font-size:11px;letter-spacing:.08em}
.nav-group .nav-group-toggle>svg{width:13px;height:13px}
.page-head{margin-bottom:32px}
.page-head h1{margin:6px 0 7px;color:#292929;font-size:29px;font-weight:600;letter-spacing:-.02em;line-height:1.3}
.page-head p:not(.breadcrumb){color:#737373;font-size:14px;line-height:1.6}
.breadcrumb{color:#999;font-size:12px;line-height:1.4;letter-spacing:.025em}
.section-head h2,.context-card h2{color:#292929;font-size:14px;font-weight:600;letter-spacing:-.005em}
@media(max-width:1100px){.header-brand{width:270px;min-width:270px}.header-actions{gap:16px}}
@media(max-width:800px){.topbar{gap:9px}.header-brand{width:auto;min-width:0;gap:8px}.header-brand img{width:47px;height:56px}.header-brand>div{gap:3px}.header-brand strong{font-size:13px;letter-spacing:.025em}.header-brand span{font-size:9px}.header-actions{order:3;gap:5px;margin-left:0;flex:0 0 auto}.header-notification{order:1;width:38px;height:38px;min-width:38px}.header-notification svg{width:18px;height:18px}.page-head{margin-bottom:25px}.page-head h1{font-size:27px}.page-head p:not(.breadcrumb){font-size:13px}.breadcrumb{font-size:11px}}
@media(max-width:420px){.header-brand span{display:none}.header-brand strong{font-size:13px}.page-head h1{font-size:26px}}

/* UI Redesign V1.8 — refined brand, quieter dashboard and neutral feedback */
.topbar{gap:24px;box-shadow:0 6px 20px rgba(0,0,0,.08);border-bottom:1px solid rgba(255,255,255,.055)}
.header-brand{width:390px;min-width:390px;gap:15px;color:#e8e5de}
.header-brand img{width:70px;height:62px;object-fit:contain;filter:none;mix-blend-mode:normal;flex:0 0 auto}
.header-brand>strong{display:flex;align-items:center;min-width:0;color:#e8e5de;font-size:19px;font-weight:575;line-height:1;letter-spacing:.01em;white-space:nowrap}
.header-brand>strong i{font-style:normal;font-weight:400;color:#a8a69f;margin:0 5px}
.header-actions{gap:20px}
.page-head{margin-bottom:28px}
.page-head h1{margin:9px 0 0;color:#292929;font-size:28px;font-weight:575;line-height:1.35;letter-spacing:.01em}
.page-head p:not(.breadcrumb){margin-top:7px}
.breadcrumb{font-size:12px;color:#999;line-height:1.45}
.dashboard-head{align-items:flex-end;margin-bottom:26px}
.dashboard-head .refresh{margin-bottom:2px}
.refresh{min-height:34px;padding:0 11px;display:inline-flex;align-items:center;gap:6px;color:#595959;background:#fff;border-color:#dedede;font-size:11px;font-weight:500}
.refresh svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.refresh:hover{background:#fafafa;border-color:#cfcfcf;color:#292929}
.refresh:disabled{opacity:.58;cursor:wait}
.refresh.is-loading svg{animation:refresh-spin .75s linear infinite}
@keyframes refresh-spin{to{transform:rotate(360deg)}}
.metrics{gap:14px;margin-bottom:18px}
.metric{min-height:108px;padding:18px 20px 17px;align-content:space-between}
.metric-head{font-size:11px;color:#656565}
.metric-head svg{width:14px;height:14px;opacity:.72}
.metric strong{font-size:31px;font-weight:620;letter-spacing:-.035em}
.metric small{display:none}
.reconciliation{margin:0 0 18px;padding:10px 12px;border:1px solid #fecaca;background:#fff7f7;font-size:11px}
.dashboard-grid{grid-template-columns:minmax(0,2.2fr) minmax(250px,.8fr);gap:14px}
.dashboard-grid>.surface:nth-child(3){grid-column:1/-1}
.dashboard-grid .section-head{min-height:56px;padding:17px 20px;align-items:center}
.dashboard-grid .section-head h2{margin:0;font-size:14px}
.dashboard-table{min-width:660px}
.dashboard-table th,.dashboard-table td{height:50px}
.dashboard-table th:nth-child(1){width:20%}.dashboard-table th:nth-child(2){width:32%}.dashboard-table th:nth-child(n+3){width:16%}
.task-list{padding:4px 20px}
.task-item{min-height:54px;padding:0;border-bottom:1px solid #ececec}
.task-item:last-child{border-bottom:0}
.task-item>strong{font-size:11px;font-weight:580;color:#404040}
.task-item>b{font-size:18px;font-weight:600;color:#292929}
.toast{right:24px;top:calc(var(--header) + 14px);width:auto;max-width:min(320px,calc(100vw - 48px));padding:9px 12px;border:1px solid #dedede;border-radius:6px;background:#fff;color:#404040;box-shadow:0 8px 24px rgba(0,0,0,.08);font-size:11px;line-height:1.4;pointer-events:none}
.toast.success{background:#fff;color:#404040;border-color:#dedede}
.toast.error{background:#fff7f7;color:#b91c1c;border-color:#fecaca;box-shadow:0 8px 24px rgba(127,29,29,.08)}
@media(prefers-reduced-motion:reduce){.refresh.is-loading svg{animation:none}}
@media(max-width:1100px){.header-brand{width:330px;min-width:330px}.header-brand>strong{font-size:17px}}
@media(max-width:800px){.topbar{box-shadow:0 4px 16px rgba(0,0,0,.08)}.header-brand{width:auto;min-width:0;gap:7px}.header-brand img{width:48px;height:48px}.header-brand>strong{font-size:13px;font-weight:575}.header-brand>strong i{margin:0 2px}.brand-context{display:none}.header-brand>strong i{display:none}.page-head{margin-bottom:24px}.page-head h1{font-size:27px}.dashboard-head{display:flex;align-items:flex-end}.dashboard-grid{grid-template-columns:1fr}.dashboard-grid>.surface:nth-child(3){grid-column:auto}.toast{right:14px;max-width:calc(100vw - 28px)}}
@media(max-width:520px){.metrics{grid-template-columns:1fr 1fr;gap:9px}.metric{min-height:96px;padding:15px}.metric strong{font-size:27px}.dashboard-table{min-width:620px}.dashboard-grid .section-head{padding:15px 16px}.task-list{padding:3px 16px}.dashboard-head .refresh{justify-self:auto}}
@media(max-width:420px){.header-brand>strong>span:first-child{display:inline}}

/* UI Redesign V1.9 — restrained brand scale, simplified navigation and visible watermark */
.header-brand{width:360px;min-width:360px;gap:12px}
.header-brand img{width:54px;height:48px}
.nav-group{position:relative;margin-top:8px!important;padding-top:12px}
.nav-group:first-child{margin-top:0!important}
.nav-group::before{content:"";display:block;width:70%;height:1px;margin:0 auto 8px;background:rgba(255,255,255,.10)}
.nav-group .nav-group-toggle{font-size:13px;font-weight:600;letter-spacing:.02em;color:#c4c4c4}
.nav-group .nav-group-toggle>span{gap:0}
.dashboard-head .refresh{height:34px;min-height:34px;margin-bottom:1px;padding:0 9px;border-color:transparent;background:transparent}
.dashboard-head .refresh:hover{border-color:transparent;background:#f3f3f3}
.main-content::before{background-image:url("assets/devlan-beast-header.png");background-repeat:no-repeat;background-position:70% 55%;background-size:420px auto;filter:grayscale(1) brightness(0);opacity:.05}
.view[data-panel="dashboard"] .surface{background:rgba(255,255,255,.15)}
@media(max-width:1100px){.header-brand{width:320px;min-width:320px}.main-content::before{background-size:370px auto}}
@media(max-width:800px){.header-brand{width:auto;min-width:0;gap:6px}.header-brand img{width:40px;height:36px}.main-content::before{left:0;background-position:72% 57%;background-size:205px auto;opacity:.026}.view[data-panel="dashboard"] .surface{background:rgba(255,255,255,.12)}}

/* UI Redesign V2.0 — compact sidebar and viewport-centered watermark */
:root{--sidebar:230px}
.sidebar nav{padding:16px 10px 14px}
.nav-group{margin-top:6px!important;padding-top:8px}

/* Cloud Phase 4C-2 — authentication completion and MFA security surfaces */
.auth-flow-card{align-self:start}
.auth-flow-card .text-button{margin-top:14px}
.security-dialog{width:min(520px,calc(100vw - 32px))}
.security-content{display:grid;gap:15px;padding:20px 22px 22px}
.security-status{display:grid;gap:7px;padding:13px 14px;border:1px solid #e5e5e5;background:#fafafa;color:#404040;font-size:11px;line-height:1.6}
.security-status strong{color:#292929;font-size:13px}
.security-content form{display:grid;gap:13px;padding:15px;border:1px solid #e5e5e5;background:#fafafa}
.security-content form label{display:grid;gap:7px;color:#404040;font-size:11px;font-weight:600}
.security-content form img{display:block;width:min(230px,100%);aspect-ratio:1;object-fit:contain;margin:0 auto;background:#fff;border:1px solid #e5e5e5}
.security-content code{display:block;overflow-wrap:anywhere;padding:10px;background:#fff;border:1px solid #e5e5e5;color:#404040;font-size:11px;user-select:all}
@media(max-width:520px){.security-content{padding:16px}.auth-flow-card{margin-top:5vh}.security-content form img{width:min(210px,100%)}}
.nav-group:first-child{margin-top:0!important;padding-top:0}
.nav-group::before{margin-bottom:12px}
.main-content::before{top:calc(var(--header) + (100vh - var(--header))/2);left:calc(var(--sidebar) + (100vw - var(--sidebar))/2);right:auto;bottom:auto;width:400px;height:356px;transform:translate(-50%,-50%);background-position:center;background-size:contain}
@media(max-width:1100px) and (min-width:801px){:root{--sidebar:220px}.main-content::before{width:380px;height:338px}}
@media(max-width:800px){:root{--sidebar:260px}.sidebar nav{padding:16px 10px 14px}.main-content::before{top:calc(var(--header) + (100vh - var(--header))/2);left:50%;width:200px;height:178px;transform:translate(-50%,-50%);background-position:center;background-size:contain}}

/* UX Redesign V2.1 — project-led navigation and business-first inventory */
.header-brand>strong{font-size:21px}
.page-head h1{margin-top:13px}
.quick-actions{margin-bottom:16px}
.section-title-row{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:12px}
.section-title-row h2{margin:4px 0 0;color:#292929;font-size:18px;font-weight:600;letter-spacing:.01em}
.eyebrow{margin:0;color:#8a8a8a;font-size:10px;font-weight:600;letter-spacing:.08em}
.quick-action-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.quick-action-card{min-height:82px;padding:15px 16px;border:1px solid #e5e5e5;border-radius:6px;background:rgba(255,255,255,.9);color:#292929;display:grid;grid-template-columns:30px 1fr auto;align-items:center;gap:11px;text-align:left}
.quick-action-card:hover{background:#fafafa;border-color:#d4d4d4}
.quick-action-card>svg{width:19px;height:19px;color:#666}
.quick-action-card>span{display:grid;gap:5px}
.quick-action-card strong{font-size:13px;font-weight:600}
.quick-action-card small{color:#8a8a8a;font-size:10px;font-weight:400}
.quick-action-card>i{font-style:normal;color:#a3a3a3;font-size:15px}
.quick-action-card.coming{background:rgba(250,250,250,.88);color:#595959}
.workflow-overview{display:grid;grid-template-columns:1.15fr .85fr;gap:14px;margin-bottom:14px}
.workflow-overview>.surface{min-width:0}
.coming-label{color:#8a8a8a;font-size:9px;border:1px solid #e5e5e5;border-radius:999px;padding:3px 7px}
.compact-empty{padding:32px 20px}
.dashboard-inventory{margin-bottom:14px;overflow:hidden}
.inventory-summary-strip{margin:0;gap:0;border-bottom:1px solid #e5e5e5}
.inventory-summary-strip .metric{min-height:82px;padding:15px 20px;border:0;border-right:1px solid #ececec;border-radius:0;background:transparent}
.inventory-summary-strip .metric:last-child{border-right:0}
.inventory-summary-strip .metric strong{font-size:24px}
.recent-operations{overflow:hidden}
.advanced-filters{position:relative}
.advanced-filters summary{min-height:38px;padding:10px 12px;border:1px solid #d4d4d4;border-radius:5px;background:#fff;color:#525252;font-size:12px;cursor:pointer;list-style:none}
.advanced-filters summary::-webkit-details-marker{display:none}
.advanced-filters summary:after{content:"⌄";margin-left:10px;color:#999}
.advanced-filters[open] summary:after{content:"⌃"}
.advanced-filters>div{position:absolute;z-index:20;right:0;top:44px;width:210px;padding:10px;border:1px solid #e5e5e5;border-radius:6px;background:#fff;box-shadow:0 12px 30px rgba(0,0,0,.08);display:grid;gap:8px}
.advanced-filters select{width:100%;min-width:0}
.business-inventory-table{min-width:860px}
.business-inventory-table th:nth-child(1){width:16%}
.business-inventory-table th:nth-child(2){width:24%}
.business-inventory-table th:nth-child(3){width:12%}
.business-inventory-table th:nth-child(4){width:9%}
.business-inventory-table th:nth-child(5){width:29%}
.business-inventory-table th:nth-child(6){width:10%}
.inventory-category{font-weight:550;color:#525252}
.inventory-quantity{font-size:14px;font-weight:650;color:#292929}
.inventory-unit{color:#525252}
.inventory-note{max-width:360px;white-space:normal;line-height:1.55;color:#525252}
.inventory-note.muted-note{color:#a3a3a3}
.inventory-detail-summary{display:flex;align-items:center;gap:18px;flex-wrap:wrap;padding:12px 16px 0;color:#595959;font-size:11px}
.inventory-detail-summary strong{margin-left:auto}
@media(max-width:1100px){.header-brand>strong{font-size:18px}.quick-action-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.workflow-overview{grid-template-columns:1fr}.inventory-summary-strip{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:800px){.header-brand>strong{font-size:13px}.page-head h1{margin-top:11px}.quick-action-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.quick-action-card{min-height:76px;padding:12px;grid-template-columns:25px 1fr auto}.workflow-overview{grid-template-columns:1fr}.inventory-summary-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.inventory-summary-strip .metric:nth-child(2){border-right:0}.inventory-summary-strip .metric:nth-child(-n+2){border-bottom:1px solid #ececec}.advanced-filters>div{position:fixed;left:16px;right:16px;top:auto;width:auto}.business-inventory-table{min-width:780px}}

/* UX V2.2 / Phase 5A — project profiles and draft material requirements */
.page-head>div{min-width:0}.page-head h1{overflow-wrap:anywhere}
.project-table{min-width:920px}.project-table th:nth-child(1){width:14%}.project-table th:nth-child(2){width:23%}.project-table th:nth-child(3){width:17%}.project-table th:nth-child(4){width:18%}.project-table th:nth-child(5){width:15%}
.project-compact-row{width:100%;min-height:58px;padding:10px 20px;border:0;border-bottom:1px solid #ececec;background:transparent;display:flex;align-items:center;justify-content:space-between;gap:14px;text-align:left}.project-compact-row:last-child{border-bottom:0}.project-compact-row:hover{background:#fafafa}.project-compact-row>span:first-child{display:grid;gap:5px}.project-compact-row strong{font-size:12px;color:#292929}.project-compact-row small{font-size:10px;color:#8a8a8a}
.project-form-card{max-width:920px}.project-form-card form{padding:22px;display:grid;gap:22px}.form-section{display:grid;gap:14px}.form-section h2{margin:0;padding-bottom:10px;border-bottom:1px solid #ececec;font-size:14px;color:#292929}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.project-form-card label,.inline-requirement-form label{display:grid;gap:7px;color:#404040;font-size:11px;font-weight:600}.project-form-card textarea{min-height:104px;resize:vertical}.project-advanced{border:1px solid #e5e5e5;border-radius:6px;background:#fafafa}.project-advanced summary{padding:13px 15px;color:#525252;font-size:11px;font-weight:600;cursor:pointer}.project-advanced .form-grid{padding:2px 15px 15px}.project-notes{display:grid;gap:7px}.project-form-card .button-row{justify-content:flex-end}
.project-detail-head{align-items:flex-end}.project-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:14px;border:1px solid #e5e5e5;border-radius:6px;overflow:hidden;background:rgba(255,255,255,.82)}.project-summary-item{min-height:78px;padding:14px 16px;display:grid;align-content:center;gap:7px;border-right:1px solid #e5e5e5;border-bottom:1px solid #e5e5e5;background:rgba(255,255,255,.88)}.project-summary-item:nth-child(4n){border-right:0}.project-summary-item:nth-last-child(-n+3){border-bottom:0}.project-summary-item span{font-size:10px;color:#8a8a8a}.project-summary-item strong{font-size:12px;font-weight:600;color:#292929;white-space:normal}.phase-boundary-note{margin:0 0 14px;padding:11px 13px;border:1px solid #e5e5e5;border-radius:5px;background:#fafafa;color:#666;font-size:10px;line-height:1.6}.project-detail-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(280px,.65fr);gap:14px}.inline-requirement-form{margin:0 20px 16px;padding:16px;border:1px solid #e5e5e5;border-radius:6px;background:#fafafa;display:grid;grid-template-columns:minmax(180px,1.4fr) 130px 90px minmax(160px,1fr) auto;gap:10px;align-items:end}.inline-requirement-form.hidden{display:none}.inline-requirement-form .button-row{align-items:end}.requirements-table{min-width:700px}.requirements-table td strong{display:block;font-size:11px}.requirements-table td small{display:block;margin-top:4px;color:#999;font-size:9px}.requirement-actions{white-space:nowrap}.requirement-actions button+button{margin-left:8px}.danger-text{color:#b91c1c}.danger-text:hover{color:#991b1b}
@media(max-width:1180px){.project-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.project-summary-item:nth-child(4n){border-right:1px solid #e5e5e5}.project-summary-item:nth-child(3n){border-right:0}.project-summary-item:nth-last-child(-n+3){border-bottom:0}.project-detail-grid{grid-template-columns:1fr}.inline-requirement-form{grid-template-columns:repeat(2,minmax(0,1fr))}.inline-requirement-form .button-row{grid-column:1/-1;justify-content:flex-end}}
@media(max-width:800px){.project-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.project-summary-item:nth-child(3n){border-right:1px solid #e5e5e5}.project-summary-item:nth-child(2n){border-right:0}.project-summary-item:nth-last-child(-n+3){border-bottom:1px solid #e5e5e5}.project-summary-item:nth-last-child(-n+2){border-bottom:0}.project-detail-head{align-items:start}.project-detail-head>.button-row{justify-self:start}.project-form-card form{padding:17px}.form-grid{grid-template-columns:1fr}.inline-requirement-form{margin:0 15px 14px;grid-template-columns:1fr}.inline-requirement-form .button-row{grid-column:auto}.project-table{min-width:820px}}
@media(max-width:520px){.project-summary{grid-template-columns:1fr 1fr}.project-summary-item{min-height:70px;padding:12px}.project-form-card form{padding:15px}.project-form-card .button-row{display:grid;grid-template-columns:1fr 1fr}.project-form-card .button-row button{width:100%}.inline-requirement-form .button-row{display:grid;grid-template-columns:1fr 1fr}}

/* UX V2.3 / Phase 5B — date-aware availability and controlled reservations */
.reservation-table{min-width:1120px}.reservation-table th:nth-child(1){width:21%}.reservation-table th:nth-child(6){width:24%}.reservation-table th:nth-child(7){width:20%}
.reservation-status{min-width:220px}.occupancy-copy{margin-bottom:6px;color:#525252;font-size:10px;white-space:nowrap}.conflict-projects,.estimated-note{display:block;margin-top:5px;color:#737373;font-size:9px;line-height:1.45}.shortage-text{color:#b42318;font-weight:650}.reservation-status .status-pill.danger{border-color:#fecaca;background:#fff7f7;color:#b42318}.requirement-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.requirement-actions button+button{margin-left:0}
.reservation-dialog form{display:grid;gap:15px}.reservation-dialog label{display:grid;gap:7px;color:#404040;font-size:11px;font-weight:600}.reservation-dialog textarea{min-height:76px;resize:vertical}.reservation-dialog .confirm-summary{margin:0}.reservation-dialog .confirm-warning{margin:0}.reservation-dialog .hidden{display:none}
@media(max-width:800px){.reservation-table{min-width:980px}.reservation-dialog{width:min(92vw,520px)}}
@media(max-width:520px){.reservation-dialog{width:calc(100vw - 24px);max-height:calc(100vh - 24px);margin:12px;padding:0}.reservation-dialog form{padding:16px}.reservation-dialog .confirm-summary{grid-template-columns:1fr 1fr}.reservation-dialog .confirm-actions{display:grid;grid-template-columns:1fr 1fr}.reservation-dialog .confirm-actions button{width:100%}}

/* UX V2.4 / Phase 5C — project picking workbench */
.picking-workbench{display:grid;grid-template-columns:minmax(270px,.72fr) minmax(0,2fr);gap:14px;align-items:start}
.picking-projects,.picking-detail{min-width:0;overflow:hidden}
.picking-project-row{width:100%;min-height:72px;padding:13px 18px;border:0;border-bottom:1px solid #ececec;background:transparent;color:#292929;display:flex;align-items:center;justify-content:space-between;gap:14px;text-align:left}
.picking-project-row:last-child{border-bottom:0}.picking-project-row:hover,.picking-project-row.active{background:#f7f7f7}.picking-project-row.active{box-shadow:inset 2px 0 #292929}
.picking-project-row>span:first-child{min-width:0;display:grid;gap:5px}.picking-project-row strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.picking-project-row small{color:#858585;font-size:9px;line-height:1.4}.picking-project-metrics{display:grid;justify-items:end;gap:7px;flex:0 0 auto}.picking-project-metrics b{font-size:11px;font-weight:650}
.picking-table{min-width:880px}.picking-table th:nth-child(1){width:22%}.picking-table th:nth-child(6){width:25%}.picking-table td strong{display:block;font-size:11px}.picking-table td small{display:block;margin-top:4px;color:#8a8a8a;font-size:9px}.pick-source-summary{display:grid;gap:7px}.pick-source-summary>span:first-child{color:#595959;font-size:10px;line-height:1.45;white-space:normal}
.picking-dialog form{display:grid;gap:14px}.picking-dialog label{display:grid;gap:7px;color:#404040;font-size:11px;font-weight:600}.picking-dialog textarea{min-height:72px;resize:vertical}.picking-dialog .hidden{display:none}
@media(max-width:1050px){.picking-workbench{grid-template-columns:1fr}.picking-projects .record-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.picking-project-row:nth-child(odd){border-right:1px solid #ececec}}
@media(max-width:800px){.picking-workbench{grid-template-columns:1fr}.picking-projects .record-list{display:block}.picking-project-row:nth-child(odd){border-right:0}.picking-table{min-width:800px}.picking-dialog{width:min(92vw,520px)}}
@media(max-width:520px){.picking-dialog{width:calc(100vw - 24px);max-height:calc(100vh - 24px);margin:12px}.picking-dialog form{padding:16px}.picking-dialog .confirm-summary{grid-template-columns:1fr 1fr}.picking-dialog .confirm-actions{display:grid;grid-template-columns:1fr 1fr}.picking-dialog .confirm-actions button{width:100%}}

/* UX V2.5 / Phase 6A — project loading and controlled dispatch */
.fulfillment-workbench{display:grid;grid-template-columns:minmax(270px,.72fr) minmax(0,2fr);gap:14px;align-items:start}
.fulfillment-projects,.fulfillment-detail{min-width:0;overflow:hidden}
.fulfillment-table{min-width:1040px}.fulfillment-table th:nth-child(1){width:20%}.fulfillment-table th:nth-child(7){width:22%}.fulfillment-table th:nth-child(8){width:18%}
.fulfillment-table td strong{display:block;font-size:11px}.fulfillment-table td small{display:block;margin-top:4px;color:#8a8a8a;font-size:9px}
.fulfillment-dialog form{display:grid;gap:14px}.fulfillment-dialog label{display:grid;gap:7px;color:#404040;font-size:11px;font-weight:600}.fulfillment-dialog textarea{min-height:72px;resize:vertical}.fulfillment-dialog .hidden{display:none}
@media(max-width:1050px){.fulfillment-workbench{grid-template-columns:1fr}.fulfillment-projects .record-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.fulfillment-projects .picking-project-row:nth-child(odd){border-right:1px solid #ececec}}
@media(max-width:800px){.fulfillment-workbench{grid-template-columns:1fr}.fulfillment-projects .record-list{display:block}.fulfillment-projects .picking-project-row:nth-child(odd){border-right:0}.fulfillment-table{min-width:940px}.fulfillment-dialog{width:min(92vw,520px)}}
@media(max-width:520px){.fulfillment-dialog{width:calc(100vw - 24px);max-height:calc(100vh - 24px);margin:12px}.fulfillment-dialog form{padding:16px}.fulfillment-dialog .confirm-summary{grid-template-columns:1fr 1fr}.fulfillment-dialog .confirm-actions{display:grid;grid-template-columns:1fr 1fr}.fulfillment-dialog .confirm-actions button{width:100%}}

/* UX V2.6 / Phase 6B — project returns, warehouse receipt and inspection */
.returns-workbench{display:grid;grid-template-columns:minmax(270px,.72fr) minmax(0,2fr);gap:14px;align-items:start}
.returns-projects,.returns-detail{min-width:0;overflow:hidden}
.returns-table{min-width:900px}.returns-table th:first-child{width:23%}.returns-table th:nth-child(6){width:13%}.returns-table th:nth-child(7){width:22%}
.returns-table td strong{display:block;font-size:11px}.returns-table td small{display:block;margin-top:4px;color:#8a8a8a;font-size:9px}
.return-dialog form{display:grid;gap:14px}.return-dialog label{display:grid;gap:7px;color:#404040;font-size:11px;font-weight:600}.return-dialog textarea{min-height:72px;resize:vertical}.return-dialog .hidden{display:none}
@media(max-width:1050px){.returns-workbench{grid-template-columns:1fr}.returns-projects .record-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.returns-projects .picking-project-row:nth-child(odd){border-right:1px solid #ececec}}
@media(max-width:800px){.returns-projects .record-list{display:block}.returns-projects .picking-project-row:nth-child(odd){border-right:0}.returns-table{min-width:820px}.return-dialog{width:min(92vw,520px)}}
@media (max-width: 640px){.return-dialog{width:calc(100vw - 24px);max-height:calc(100vh - 24px);margin:12px}.return-dialog form{padding:16px}.return-dialog .confirm-summary{grid-template-columns:1fr 1fr}.return-dialog .confirm-actions{display:grid;grid-template-columns:1fr 1fr}.return-dialog .confirm-actions button{width:100%}}

/* UX 3.1.2 / Master Data V2 Phase A-021 */
.phase-a-filters{display:grid;grid-template-columns:minmax(260px,1.4fr) repeat(5,minmax(130px,.7fr)) auto auto;gap:9px;align-items:center}
.phase-a-filters .table-search{max-width:none}.phase-a-filters select{min-width:0;width:100%}
.business-inventory-table{min-width:1040px}.business-inventory-table th:nth-child(1){width:15%}.business-inventory-table th:nth-child(2){width:22%}.business-inventory-table th:nth-child(3){width:28%}.business-inventory-table th:nth-child(4){width:11%}.business-inventory-table th:nth-child(5){width:9%}.business-inventory-table th:nth-child(6){width:10%}
.inventory-product{color:#404040;line-height:1.45}.inventory-product .cell-secondary{margin-top:5px;white-space:normal}
.master-data-profile{display:grid;grid-template-columns:minmax(120px,.35fr) minmax(0,1fr);margin:0;padding:0 20px 20px}.master-data-profile dt,.master-data-profile dd{margin:0;padding:11px 0;border-bottom:1px solid #ededed}.master-data-profile dt{color:#666;font-weight:600}.master-data-profile dd{color:#292929;overflow-wrap:anywhere}
.master-data-dialog{width:min(760px,calc(100vw - 32px));max-height:calc(100vh - 32px);overflow:auto}.master-data-dialog form{display:grid;gap:14px}.master-data-dialog fieldset{display:grid;gap:12px;margin:0 20px;padding:15px;border:1px solid #e2e2e2;border-radius:6px;background:#fafafa}.master-data-dialog legend{padding:0 7px;color:#292929;font-size:14px;font-weight:650}.master-data-dialog label{display:grid;gap:7px;color:#404040;font-size:14px;font-weight:600}.master-data-dialog textarea{min-height:76px;resize:vertical}.master-data-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.master-data-dialog .checkbox-label{display:flex;align-items:center;gap:8px}.master-data-dialog .checkbox-label input{width:auto}.master-data-dialog .confirm-actions{padding:0 20px 20px}.small-dialog{width:min(540px,calc(100vw - 32px))}.small-dialog form{padding-bottom:20px}.small-dialog>form>label,.small-dialog>form>.form-message,.small-dialog>form>.confirm-warning{margin-inline:20px}.form-helper{margin:0;color:#595959;font-size:13px;line-height:1.55}
@media(max-width:1250px){.phase-a-filters{grid-template-columns:minmax(240px,1.4fr) repeat(3,minmax(130px,.7fr))}.phase-a-filters>#inventory-brand-filter,.phase-a-filters>#inventory-model-filter{grid-row:2}.phase-a-filters>.advanced-filters,.phase-a-filters>.refresh{grid-row:2}}
.master-data-inline-actions{justify-content:flex-start;margin-top:8px}.master-data-dialog input[readonly]{background:#f3f3f3;color:#555}
@media(max-width:800px){.phase-a-filters{display:flex;flex-wrap:wrap}.phase-a-filters .table-search{flex:1 0 100%}.phase-a-filters select{flex:1 1 calc(50% - 8px)}.master-data-grid{grid-template-columns:1fr}.master-data-profile{grid-template-columns:1fr;padding:0 16px 16px}.master-data-profile dt{padding-bottom:3px;border-bottom:0}.master-data-profile dd{padding-top:3px}.master-data-dialog fieldset{margin-inline:14px}.master-data-dialog .confirm-actions{padding-inline:14px}}

/* UX V2.7 / Phase 6C — project incidents and controlled closure */
.incident-workbench{display:grid;grid-template-columns:minmax(260px,.7fr) minmax(0,2fr);gap:14px;align-items:start}.incident-projects,.incident-detail{min-width:0;overflow:hidden}.incident-row,.closure-row{min-height:68px;padding:13px 18px;border-bottom:1px solid #ececec;display:flex;align-items:center;justify-content:space-between;gap:14px}.incident-row:last-child,.closure-row:last-child{border-bottom:0}.incident-row.open{box-shadow:inset 2px 0 #b42318}.incident-row>div:first-child,.closure-row>div:first-child{min-width:0;display:grid;gap:5px}.incident-row strong,.closure-row strong{font-size:12px;color:#292929}.incident-row small,.closure-row small{font-size:9px;color:#858585}.incident-row p{margin:3px 0 0;color:#595959;font-size:10px;line-height:1.5}.closure-ok{color:#404040;font-size:10px;font-weight:650}.closure-blocked{color:#b42318;font-size:10px;font-weight:650}.incident-dialog form{display:grid;gap:13px}.incident-dialog label{display:grid;gap:7px;color:#404040;font-size:11px;font-weight:600}.incident-dialog textarea{min-height:68px;resize:vertical}
@media(max-width:900px){.incident-workbench{grid-template-columns:1fr}.incident-projects .record-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.incident-projects .record-list{display:block}.incident-row,.closure-row{align-items:flex-start;flex-wrap:wrap;padding:12px 14px}.incident-row .button-row,.closure-row .button-row{width:100%;justify-content:flex-end}.incident-dialog{width:calc(100vw - 24px);max-height:calc(100vh - 24px);margin:12px}.incident-dialog form{padding:16px}.incident-dialog .confirm-actions{display:grid;grid-template-columns:1fr 1fr}}

/* Cloud Phase 4A — isolated employee and capability administration */
.access-workbench{display:grid;grid-template-columns:minmax(0,2fr) minmax(300px,.75fr);gap:14px;align-items:start}
.access-users,.access-side,.access-side>.surface{min-width:0}.access-side{display:grid;gap:14px}
.access-table{min-width:760px}.access-table th:nth-child(1){width:28%}.access-table th:nth-child(6){width:28%}
.access-person{display:grid;gap:4px}.access-person strong{font-size:11px}.access-person small{font-size:9px;color:#858585}
.access-actions{display:flex;gap:6px;flex-wrap:wrap}.access-actions button{min-height:30px;padding:0 9px;font-size:9px}
.access-form{padding:18px;display:grid;gap:13px}.access-form label,.access-dialog label{display:grid;gap:7px;color:#404040;font-size:11px;font-weight:600}
.access-form button{width:100%}.access-audit{margin-top:14px}.access-dialog form{display:grid;gap:14px}.access-dialog textarea{min-height:76px;resize:vertical}
.access-invitation{padding:12px 16px;border-bottom:1px solid #ececec;display:grid;gap:6px}.access-invitation:last-child{border-bottom:0}.access-invitation>div{display:flex;justify-content:space-between;gap:10px}.access-invitation strong{font-size:11px}.access-invitation small{font-size:9px;color:#858585}.access-invitation button{justify-self:start}
@media(max-width:1050px){.access-workbench{grid-template-columns:1fr}.access-side{grid-template-columns:1fr 1fr}}
@media(max-width:800px){.access-side{grid-template-columns:1fr}.access-table{min-width:700px}.access-dialog{width:min(92vw,520px)}}
@media(max-width:520px){.access-dialog{width:calc(100vw - 24px);max-height:calc(100vh - 24px);margin:12px}.access-dialog form{padding:16px}.access-dialog .confirm-actions{display:grid;grid-template-columns:1fr 1fr}}

/* Warehouse UX 3.1 / Phase 1B — three-domain navigation and continuous business detail */
.primary-navigation{display:grid;align-content:start;gap:7px;padding-top:26px!important}
.primary-navigation .primary-nav-item{position:relative;width:100%;height:44px;border:0;border-radius:5px;background:transparent;color:#c4c4c4;display:flex;align-items:center;gap:12px;padding:0 13px;text-align:left;font-size:13px;font-weight:560}
.primary-navigation .primary-nav-item:hover{background:#444;color:#fff}.primary-navigation .primary-nav-item.active{background:#4a4a4a;color:#fff}.primary-navigation .primary-nav-item.active:before{content:"";position:absolute;left:0;top:10px;bottom:10px;width:2px;background:#fff}.primary-navigation .primary-nav-item svg{width:17px;height:17px}
.account-shell{position:relative;overflow:visible}.account-toggle{width:100%;padding:0;border:0;background:transparent;color:inherit;text-align:left}.account-toggle>div{min-width:0;flex:1}.account-toggle>svg{width:13px;color:#9a9a9a;transform:rotate(-90deg)}.account-toggle[aria-expanded="true"]>svg{transform:rotate(90deg)}
.account-menu{position:absolute;z-index:95;left:12px;right:12px;bottom:58px;padding:7px;border:1px solid #555;border-radius:7px;background:#303030;box-shadow:0 16px 42px #0005}.account-menu button{width:100%;min-height:38px;padding:0 10px;border:0;border-radius:4px;background:transparent;color:#d4d4d4;display:flex;align-items:center;gap:10px;text-align:left;font-size:11px}.account-menu button:hover{background:#404040;color:#fff}.account-menu button svg{width:15px;height:15px}.account-menu button.hidden{display:none}.account-menu button:last-child{border-top:1px solid #474747;border-radius:0;margin-top:5px;padding-top:5px}
.dashboard-project-overview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.dashboard-project-overview>.surface{min-width:0;overflow:hidden}.dashboard-return-projects{grid-column:1/-1}.dashboard-project-row{width:100%;min-height:68px;padding:13px 0;border:0;border-bottom:1px solid #ececec;background:transparent;display:flex;align-items:center;justify-content:space-between;gap:16px;text-align:left}.dashboard-project-row:last-child{border-bottom:0}.dashboard-project-row:hover{background:#fafafa}.dashboard-project-row>span:first-child{min-width:0;display:grid;gap:5px}.dashboard-project-row strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.dashboard-project-row small{font-size:9px;color:#858585}.dashboard-project-meta{display:grid;justify-items:end;gap:6px;flex:0 0 auto}
.context-navigation{display:flex;gap:5px;margin:0 0 12px;padding:5px;border:1px solid #e5e5e5;border-radius:7px;background:#fafafa;overflow-x:auto}.context-navigation button{flex:0 0 auto;min-height:34px;padding:0 12px;border:0;border-radius:4px;background:transparent;color:#666;font-size:10px}.context-navigation button:hover,.context-navigation button.active{background:#fff;color:#171717;box-shadow:0 1px 4px #0001}.data-boundary-note{margin:0 0 12px;padding:10px 12px;border-left:2px solid #a3a3a3;background:#fafafa;color:#666;font-size:10px;line-height:1.55}.inventory-page-metrics{margin-bottom:12px}.inventory-page-metrics .metric{min-height:84px}.inventory-page-metrics .metric strong{font-size:24px}
.inventory-detail-actions{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.inventory-detail-section{margin-bottom:14px;overflow:hidden}.inventory-detail-section>.location-breakdown{padding:16px 20px}.inventory-detail-summary-grid{margin-bottom:12px}.inventory-detail-summary-grid .project-summary-item:nth-last-child(-n+2){border-bottom:0}.inventory-detail-section .project-compact-row{padding-left:20px;padding-right:20px}.account-profile-card{max-width:840px;overflow:hidden}.account-profile-card .project-summary{margin:0;border:0;border-radius:0}.account-actions{display:flex;align-items:center;gap:12px;padding:18px 20px;border-top:1px solid #ececec}
.project-workflow-surface{margin-bottom:14px;overflow:hidden}.project-workflow{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0}.workflow-step{position:relative;min-height:82px;padding:14px 16px;border:0;border-right:1px solid #ececec;border-bottom:1px solid #ececec;background:#fff;display:grid;grid-template-columns:28px 1fr auto;align-items:center;gap:10px;text-align:left}.workflow-step:nth-child(3n){border-right:0}.workflow-step:nth-last-child(-n+3){border-bottom:0}.workflow-step:hover{background:#fafafa}.workflow-step.current{box-shadow:inset 0 2px #292929;background:#fafafa}.workflow-step-index{width:26px;height:26px;border:1px solid #d4d4d4;border-radius:50%;display:grid;place-items:center;color:#777;font-size:9px}.workflow-step>span:nth-child(2){display:grid;gap:5px}.workflow-step strong{font-size:11px}.workflow-step small{color:#858585;font-size:9px;line-height:1.4}.workflow-step i{font-style:normal;color:#aaa}
@media(max-width:1000px){.project-workflow{grid-template-columns:repeat(2,minmax(0,1fr))}.workflow-step:nth-child(3n){border-right:1px solid #ececec}.workflow-step:nth-child(2n){border-right:0}.workflow-step:nth-last-child(-n+3){border-bottom:1px solid #ececec}.workflow-step:nth-last-child(-n+2){border-bottom:0}}
@media(max-width:800px){.dashboard-project-overview{grid-template-columns:1fr}.dashboard-return-projects{grid-column:auto}.account-menu{position:fixed;left:12px;right:auto;bottom:12px;width:236px}.inventory-page-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.project-workflow{grid-template-columns:1fr}.workflow-step,.workflow-step:nth-child(2n),.workflow-step:nth-child(3n){border-right:0;border-bottom:1px solid #ececec}.workflow-step:last-child{border-bottom:0}.inventory-detail-actions{display:grid;grid-template-columns:1fr 1fr}.inventory-detail-actions button{width:100%}.account-actions{align-items:stretch;flex-direction:column}.dashboard-project-row{align-items:flex-start;flex-direction:column}.dashboard-project-meta{justify-items:start}}

/* Warehouse UX 3.1 / Phase 1C — inventory-first density and contextual navigation */
:root{--muted:#616161;--subtle:#737373}
body{font-size:15px}
.page-head{margin-bottom:20px}.page-head p:not(.breadcrumb){font-size:15px;color:#595959}.breadcrumb{font-size:13px;color:#6b6b6b}
.section-head{padding:15px 18px}.section-head h2,.context-card h2{font-size:16px}.section-head p{font-size:14px;color:#616161;line-height:1.5}
label{font-size:14px}input,select,textarea{font-size:15px}.primary-button,button[type="submit"],.secondary-button{font-size:14px}.text-button,.row-action{font-size:14px}
table th{height:38px;font-size:13px;color:#595959}table td{height:50px;font-size:15px}.sku{font-size:14px}.cell-secondary{font-size:13px;color:#616161}.status-pill{font-size:13px}.inventory-category,.inventory-quantity{font-size:15px}.inventory-unit,.inventory-note{color:#4f4f4f}.inventory-note.muted-note{color:#717171}
.inventory-compact-summary{display:flex;align-items:center;gap:0;margin:-6px 0 10px;padding:7px 0;border-top:1px solid #e5e5e5;border-bottom:1px solid #e5e5e5;color:#4f4f4f}
.inventory-summary-fact{display:flex;align-items:baseline;gap:6px;padding:0 16px;border-right:1px solid #dedede;font-size:13px}.inventory-summary-fact:first-child{padding-left:0}.inventory-summary-fact:last-child{border-right:0}.inventory-summary-fact strong{font-size:16px;color:#202020;font-variant-numeric:tabular-nums}
.inventory-command-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:10px;padding:9px 11px;border:1px solid #dedede;border-radius:6px;background:#f8f8f8}
.inventory-primary-actions,.inventory-utility-actions{display:flex;align-items:center;gap:7px}.inventory-primary-actions>span{margin-right:3px;color:#595959;font-size:13px;font-weight:650}.inventory-command-bar button,.inventory-more-menu summary{min-height:34px;padding:7px 11px;border:1px solid #d4d4d4;border-radius:4px;background:#fff;color:#303030;font-size:14px;line-height:1.2}
.inventory-command-bar button:hover,.inventory-more-menu summary:hover{border-color:#a8a8a8;background:#fdfdfd}.scan-shortcut{display:flex;align-items:center;gap:7px}.scan-shortcut svg{width:15px;height:15px}
.inventory-more-menu{position:relative}.inventory-more-menu summary{display:flex;align-items:center;cursor:pointer;list-style:none}.inventory-more-menu summary::-webkit-details-marker{display:none}.inventory-more-menu summary:after{content:"⌄";margin-left:8px;color:#666}.inventory-more-menu[open] summary:after{transform:rotate(180deg)}
.inventory-more-menu>div{position:absolute;z-index:45;right:0;top:40px;width:190px;padding:6px;border:1px solid #d4d4d4;border-radius:6px;background:#fff;box-shadow:0 12px 30px #0002}.inventory-more-menu>div button{width:100%;border:0;text-align:left}.inventory-more-menu>div button:hover{background:#f1f1f1}
.data-boundary-note{margin-bottom:10px;padding:8px 11px;font-size:13px;color:#595959}.inventory-toolbar{margin-bottom:8px}.inventory-result-bar{margin-bottom:7px;font-size:13px}.business-inventory-table td{padding-top:10px;padding-bottom:10px}
.inventory-back{white-space:nowrap}.inventory-history-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.inventory-history-grid>.surface{min-width:0;overflow:hidden}
.activity-main strong{font-size:15px}.activity-main span,.activity-time{font-size:13px;color:#616161}.location-chip strong{font-size:14px}.location-chip span,.location-chip small,.empty-inline{font-size:13px;color:#616161}
.inventory-detail-summary-grid .project-summary-item{min-height:66px}.inventory-detail-summary-grid .project-summary-item span{font-size:13px;color:#616161}.inventory-detail-summary-grid .project-summary-item strong{font-size:15px}
.inventory-detail-section .project-compact-row strong{font-size:15px}.inventory-detail-section .project-compact-row small{font-size:13px;color:#616161}
.operation-card form label{font-size:14px}.context-metric span{font-size:13px;color:#616161}.context-metric strong{font-size:14px}.asset-operation-note,.operation-validation,.confirm-warning{font-size:13px}
@media(max-width:900px){.inventory-command-bar{align-items:flex-start}.inventory-primary-actions{flex-wrap:wrap}.inventory-history-grid{grid-template-columns:1fr}}
@media(max-width:640px){.inventory-compact-summary{flex-wrap:wrap;row-gap:6px}.inventory-summary-fact{flex:1 0 calc(50% - 1px);padding:2px 10px}.inventory-summary-fact:nth-child(2){border-right:0}.inventory-summary-fact:nth-child(3){padding-left:0}.inventory-command-bar{display:grid}.inventory-primary-actions,.inventory-utility-actions{flex-wrap:wrap}.inventory-primary-actions>span{flex:1 0 100%}.inventory-primary-actions button{flex:1}.inventory-utility-actions{justify-content:space-between}.inventory-more-menu>div{left:auto;right:0}.page-head>.inventory-back{justify-self:start}}

/* U-001: keep the search and filters readable beside the persistent sidebar. */
.phase-a-filters{display:flex;flex-wrap:wrap}
.phase-a-filters .table-search{flex:1 1 100%;max-width:none}
.phase-a-filters>select{flex:1 1 150px;width:auto;min-width:130px}
.phase-a-filters>.advanced-filters,.phase-a-filters>.refresh{flex:0 0 auto}
.phase-a-filters>.advanced-filters summary{white-space:nowrap}
