.locked .sidebar,.locked .topbar,.locked .skip { display:none; }
.locked .shell { display:grid; place-items:center; margin-left:0; }
.locked main { width:min(100%,460px); }
.local-login { padding:27px; }
.local-login p { margin:7px 0; color:var(--muted); }
.local-login .primary { margin-top:16px; }
.brand { margin-bottom:23px; }
.work-nav { gap:2px; }
.work-nav > a,.nav-toggle { min-height:37px; padding:7px 10px; }
.nav-toggle { display:flex; align-items:center; gap:10px; width:100%; border:1px solid transparent; border-radius:8px; background:transparent; color:#b9bac7; font-size:13px; text-align:left; }
.nav-toggle > span:not(.platform-mark) { flex:1; }
.nav-toggle svg { width:17px; height:17px; }
.nav-toggle > svg:last-child { width:12px; transition:transform .15s; }
.nav-toggle[aria-expanded=true] > svg:last-child { transform:rotate(90deg); }
.nav-toggle:hover { background:#21222b; color:var(--text); }
.nav-toggle.nav-active,.work-tabs button[aria-pressed=true] { color:var(--gold); background:#29241d; border-color:#57472c; }
.platform-mark { flex:0 0 21px; height:21px; display:grid; place-items:center; font-size:9px; font-weight:700; border:1px solid #3d3f4c; border-radius:5px; background:#23252e; color:#e3e4ed; }
.nav-sub { margin:3px 0 5px 18px; padding-left:21px; border-left:1px solid #363842; }
.nav-sub a { min-height:31px; padding:4px 9px; font-size:12px; }
.work-tabs { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:16px; }
.work-panel + .work-panel { margin-top:16px; }
.work-toolbar { padding-top:14px; }
.work-input,.field textarea { min-height:35px; background:#171820; border:1px solid #494c5a; border-radius:7px; color:var(--text); font:inherit; padding:6px 9px; }
.work-input[type=search] { width:min(310px,100%); }
.field textarea { width:100%; resize:vertical; }
.work-table { min-width:650px; }
.work-table :is(td,th):first-child { padding-left:17px; }
.work-table :is(td,th):last-child { padding-right:17px; }
.work-table td { white-space:normal; vertical-align:middle; }
.work-table small { display:block; margin-top:2px; color:var(--muted); }
.row-actions,.device-actions { display:flex; gap:5px; align-items:center; flex-wrap:wrap; }
.device-actions { justify-content:flex-end; }
.device-table .last-cell { width:143px; }
.task-progress { display:flex; gap:8px; align-items:center; font-variant-numeric:tabular-nums; }
.task-progress progress { width:clamp(54px,6vw,118px); height:8px; accent-color:var(--gold); }
.people-totals { display:flex; gap:8px; flex-wrap:wrap; padding:0 17px 13px; }
.people-totals span { padding:6px 10px; color:var(--muted); border:1px solid var(--line); border-radius:7px; font-size:12px; }
.people-totals strong { color:var(--text); margin-left:5px; }
#modal:has([data-work-form]),#modal:has(.work-table),#modal:has(.device-details) { width:min(850px,calc(100vw - 28px)); }
#modal fieldset { margin:12px 0 0; border:1px solid #424553; border-radius:8px; }
.choose-list { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(210px,100%),1fr)); gap:7px; max-height:156px; overflow:auto; }
.choose-list label { display:flex; align-items:center; gap:7px; font-size:12px; }
.work-details { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(170px,100%),1fr)); gap:9px; }
.work-details div { border:1px solid var(--line); border-radius:7px; padding:7px 9px; }
.work-details dt { color:var(--muted); font-size:11px; }
.work-details dd { margin:3px 0 0; overflow-wrap:anywhere; white-space:pre-wrap; }
.material-preview { display:block; max-width:100%; max-height:45vh; margin:0 auto; }
#material-text { white-space:pre-wrap; overflow-wrap:anywhere; max-height:38vh; overflow:auto; }
.device-details section { margin-top:14px; }
.device-details h3 { margin:0 0 7px; }
.device-details .row-actions,.device-details details { margin-top:8px; }
.screen-frame { min-height:310px; display:grid; place-items:center; padding:13px; background:#111319; border:1px solid #353641; border-radius:9px; }
.screen-frame:fullscreen { background:#111319; }
.phone-screen { display:flex; flex-direction:column; width:145px; aspect-ratio:9/18; padding:10px; border:3px solid #424552; border-radius:18px; background:linear-gradient(150deg,#2c3040,#1a1b24 65%); color:#c9cddd; font-size:10px; }
.screen-frame:fullscreen .phone-screen { width:min(43vh,85vw); }
.phone-caption { display:flex; justify-content:space-between; }
.phone-sim { flex:1; display:grid; place-content:center; justify-items:center; gap:8px; text-align:center; }
.phone-sim svg { color:var(--gold); width:29px; height:29px; }
.screen-pulse { width:8px; height:8px; border-radius:50%; background:var(--green); animation:screen-pulse 2s ease-in-out infinite; }
@keyframes screen-pulse { 50% { opacity:.3; } }
@media (prefers-reduced-motion:reduce) { .screen-pulse { animation:none; } }
@media (max-width:700px) {
  .device-table .last-cell { width:auto; }
  .device-actions { display:grid; }
}
@media (max-width:560px) {
  .header-logout { padding-inline:6px; }
  .breadcrumb > :first-child { display:inline; }
  .breadcrumb > svg { display:block; }
  .breadcrumb strong { white-space:normal; max-width:none; }
  .work-table { min-width:570px; }
  .screen-frame { min-height:265px; }
  .phone-screen { width:117px; }
}
.login-body { min-height:100vh; display:grid; place-items:center; background:radial-gradient(ellipse at 55% 15%,#26231f,#111218 65%); }
.login-main { width:min(100%,490px); padding:18px; }
.login-brand { display:flex; align-items:center; gap:12px; margin-bottom:25px; }
.login-brand strong,.login-brand small { display:block; }
.login-brand strong { font-size:22px; line-height:1.1; }
.login-brand small { color:var(--muted); font-size:12px; }
.login-body .local-login h1 { font-size:25px; }
.login-body .field input { font-size:14px; }
.login-body form .button { margin-top:16px; }
.header-user { display:inline-flex; align-items:center; gap:5px; }
.admin-settings { padding:20px; }
.admin-settings p { margin:7px 0 12px; color:var(--muted); }
.admin-settings h2:not(:first-child) { margin-top:25px; }
.admin-settings button + button { margin-left:8px; }
@media (max-width:560px) {
  .header-user .header-logout { min-height:29px; padding-inline:5px; font-size:10px; }
  .header-right .mode { display:none; }
}
