:root{--lab-ink:#302b36;--lab-muted:#6f6975;--lab-line:#e0dce2;--lab-shell:#f6f5f3;--lab-ui:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif}
.app-window { --device-action-divider-gap: 8px; }
html,body,#app{height:auto;min-width:0}
body{background:var(--lab-shell);overflow:auto}
#app{display:block;width:100%;min-height:100dvh;background:linear-gradient(116deg,#faf9f6 0%,#f5f3f3 53%,#f2f0f6 100%)}
.lab-header,.hardware-panel,.lab-footer,.mobile-views{font-family:var(--lab-ui);color:var(--lab-ink)}
.lab-header{border-bottom:1px solid var(--lab-line)}
.lab-header-inner{max-width:1100px;margin:auto;min-height:66px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 32px}
.lab-identity,.lab-header-actions,.lab-header-actions button{display:flex;align-items:center}
.lab-identity{gap:12px;font-size:17px;font-weight:650;letter-spacing:.065em}
.interlock-mark{position:relative;width:30px;height:34px;display:block}
.interlock-mark i{position:absolute;background:transparent;border:2.5px solid #594864;width:17px;height:26px;border-radius:50%;transform:rotate(30deg);top:2px;left:3px}
.interlock-mark i+i{border-color:#b89dbb;left:12px;top:7px}
.lab-header-actions{gap:12px}.lab-header-actions button{gap:6px;color:#57505f;font-size:14px;min-height:44px}
.lab-header-actions button:hover,.lab-text:hover{color:#795b93}
.help-symbol{border:1.6px solid currentColor;width:15px;height:15px;border-radius:50%;font:600 11px/13px var(--lab-ui);text-align:center}
.workspace{display:grid;grid-template-columns:minmax(350px,530px) 375px;justify-content:space-between;align-items:start;gap:clamp(28px,6vw,88px);max-width:1100px;margin:auto;width:100%;padding:30px 32px 20px;overflow:visible}
.workspace .hardware-panel{position:static;width:100%;max-width:none;height:auto;max-height:initial;min-height:0;padding:0;overflow:visible;align-self:start;display:grid;gap:14px;border:0;border-radius:0;background:transparent;box-shadow:none}
.ring-card,.device-strip{background:#fff;border:1px solid #e5e1e3;border-radius:24px;min-width:0;box-shadow:0 5px 24px #31223705}
.ring-card{position:relative;padding:24px 24px 0;overflow:hidden}
.product-kicker{display:flex;gap:8px;align-items:center;color:#645764;font-size:14px;font-weight:550}
.product-line{width:18px;height:2px;background:#ae7a94}.product-head{container-type:inline-size}
.product-head h1{font:600 clamp(22px,7.2cqw,36px)/1.18 var(--lab-ui);color:#2b2630;letter-spacing:-.035em;margin:12px 0 14px;overflow-wrap:anywhere}
.product-status{position:absolute;top:25px;right:22px;display:flex;gap:7px;align-items:center;border-radius:20px;background:#f2f0f2;padding:5px 10px;color:#605a64;font-size:13px}
.product-status i{width:7px;height:7px;background:#9b929e;border-radius:50%}.product-status.online{background:#e9f2ec;color:#3d6854}.product-status.online i{background:#568268}
.product-status.warning{background:#fff0df;color:#97511c}.product-status.warning i{background:#b9652c}
.finish-picker{border-top:1px solid #e9e5e9;display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:66px;font-size:14px;color:var(--lab-muted)}
.finish-picker b{margin-left:6px;color:var(--lab-ink);font-weight:550}.finish-swatches{display:flex;gap:2px}
.finish-swatches button{display:grid;place-items:center;width:34px;height:40px;padding:0;border-radius:50%}
.finish-swatches i{display:block;width:19px;height:19px;border-radius:50%;background:var(--swatch);border:1px solid #302b361c}
.finish-swatches [aria-pressed=true] i{outline:1.5px solid #59515d;outline-offset:3px}
.device-strip{padding:17px 23px 19px}.device-strip-head{display:flex;align-items:center;justify-content:space-between}
.device-strip h2{font-size:17px;letter-spacing:.02em;font-weight:600}.lab-text{font-size:14px;color:#745780}
.ring-select{display:block;margin:8px 0 14px;max-width:100%}.ring-select select{width:100%;font:14px var(--lab-ui);padding:9px 14px;border-radius:9px;background:#faf9fb;color:var(--lab-ink);border:1px solid var(--lab-line)}
.strip-items{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.strip-items>div{display:grid;gap:2px}.strip-items span{font-size:13px;color:var(--lab-muted)}.strip-items strong{font-size:17px;font-weight:550;font-variant-numeric:tabular-nums}
.lab-primary{display:block;width:100%;min-height:43px;margin:15px 0 0;border-radius:12px;background:#403548;color:#fff;font:550 14px var(--lab-ui)}
.lab-primary:hover{background:#58465d}.app-column{min-width:0;justify-self:center}
.strip-battery{text-align:left;justify-self:start;padding:0;font-size:17px;font-weight:550;line-height:1.5}.strip-battery span{font-size:12px;font-weight:400;color:#745780}
.app-column>.app-window{margin:0;box-shadow:0 0 0 1px #dcd5e1,0 12px 40px #5846620b}
.lab-footer{max-width:1100px;padding:0 32px 22px;margin:0 auto;display:flex;justify-content:space-between;gap:12px;font-size:12px;color:#736c77}.mobile-views{display:none}
@media(max-width:790px){.lab-header-inner{min-height:55px;padding:0 16px}.lab-identity{font-size:15px;gap:6px}.lab-header-actions{gap:4px}.lab-header-actions button{font-size:13px}.workspace{display:block;max-width:530px;padding:0 12px 16px}.lab-footer{max-width:530px;padding:0 14px 18px}.mobile-views{display:flex;max-width:400px;margin:11px auto;justify-content:center;gap:5px}.mobile-views button{border-radius:20px;padding:7px 15px;min-height:40px;font-size:14px;color:#635a69}.mobile-views button[aria-pressed=true]{background:#403548;color:white}.workspace .app-column{width:min(375px,100%);margin-inline:auto}.app-column .app-window{max-width:100%;min-width:0;width:100%;height:min(812px,calc(100dvh - 130px));min-height:440px;margin:auto}.ring-card{padding:18px 16px 0}.device-strip{padding:14px 16px}.finish-swatches{gap:0}.finish-swatches button{width:30px}#app[data-mobile-view=ring] .app-column,#app[data-mobile-view=app] .hardware-panel{display:none}.product-status{right:16px;top:19px}}

.lab-acceptance-link{color:#614776;font:600 14px/1.5 var(--lab-ui);text-decoration:none;display:inline-flex;align-items:center;min-height:44px}
.lab-acceptance-link:hover{text-decoration:underline}.test-intro .lab-acceptance-link{text-decoration:underline}
@media(max-width:670px){.lab-header-inner{padding-inline:12px;gap:4px}.lab-header-actions{gap:8px}.lab-header-actions button{gap:3px}.lab-identity{font-size:15px;gap:4px}.lab-header-actions .help-symbol{display:none}}

@media(max-width:399px){#app[data-mobile-view="app"] .workspace{padding-inline:0}}
@media(max-width:399px){
  .lab-header-inner{display:flex;flex-wrap:wrap;gap:0 6px;padding:0 10px}
  .lab-identity,.lab-header-actions{white-space:nowrap}
  .lab-header-actions{margin-left:auto;gap:8px}
  .lab-header-actions button{font-size:13px;padding:0}
  .lab-header-actions button svg{display:none}
  .lab-header-actions .lab-acceptance-link{font-size:13px}
}

.reading-editor{border-top:1px solid #e9e5e9;padding:11px 0 13px;margin:0}
.reading-editor-head,.reading-editor-entry{display:flex;align-items:center;gap:10px}
.reading-editor-head{justify-content:space-between;margin-bottom:5px}
.reading-editor-head label{color:var(--lab-ink);font:600 15px/1.45 var(--lab-ui)}
.reading-shortcut{color:#705387;font:500 14px/1.4 var(--lab-ui);padding:6px 0 6px 8px}
.reading-shortcut:hover{text-decoration:underline}
.reading-editor-entry input{flex:1;min-width:0;width:100%;height:42px;box-sizing:border-box;padding:0 12px;background:#faf9fb;border:1px solid #d8d2db;border-radius:9px;font:550 20px/1 var(--lab-ui);font-variant-numeric:tabular-nums;color:#342d39}
.reading-editor-entry button{flex:none;height:42px;border-radius:9px;padding:0 16px;background:#514057;color:#fff;font:550 14px/1.3 var(--lab-ui)}
.reading-editor :is(input,button):focus-visible{outline:2px solid #8666a1;outline-offset:2px}
.reading-editor p{font:400 13px/1.5 var(--lab-ui);color:var(--lab-muted);margin:7px 0 0}

.sim-device-actions{display:flex;align-items:center;gap:10px}
.sim-device-actions button,.device-strip-empty .lab-text{display:inline-flex;align-items:center;justify-content:center;min-height:44px;font-size:14px}
.sim-device-remove{gap:4px;color:#984856;padding-inline:6px;border-radius:8px}
.sim-device-remove:hover:not(:disabled){background:#fbf0f1}
.sim-device-remove:disabled{color:#78707a}
.sim-device-owner,.device-strip-empty p{font-size:14px;color:var(--lab-muted)}
.device-strip-empty{padding-block:23px}
.device-strip-empty h2,.device-strip-empty p{margin:0 0 8px}
.device-strip-empty .lab-text{padding:0 12px;border:1px solid var(--lab-line);border-radius:9px}
#dialog .sim-device-loss{margin:12px 0 0;padding:10px 12px;background:#fff1ef;border-radius:8px;color:#943747;font-size:14px;line-height:1.6}

/* Keep persistent phone actions inside the desktop viewport below the lab header. */
@media(min-width:791px) {
  .app-column > .app-window:has(> .ring-count-dock, > .practice-detail-toolbar, > .ip-list-toolbar) {
    height: min(812px, calc(100dvh - 110px));
    min-height: 0;
  }
}
