
/* Layout: one calm reading column (max 680px), tabs on top, one question per screen */
:root{
  --bg:#F3F5F4; --surface:#FFFFFF; --soft:#E9EEEC; --line:#DCE3E0;
  --fg:#12211D; --muted:#55645F;
  --accent:#0E5F52; --accent-fg:#FFFFFF; --accent-soft:#E1EFEB; --accent-ink:#0A463C; --accent-mid:#6FAE9F;
  --disabled:#9DB5AE; --danger:#A23B2A; --danger-soft:#F7E6E2;
  --good:#1F7A4D; --good-soft:#DFF1E6; --mid:#8A6A12; --mid-soft:#F5EDD3; --bad:#B23A2B; --bad-soft:#F8E3DF;
  --ic-web:#0E5F52; --ic-mob:#7A3B73; --ic-adm:#3E5C8A; --ic-doc:#9A6B1E; --ic-fg:#FFFFFF; --bezel:#1B2522; --page:#E2E8E5;
  --font-display:'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-body:'Inter', 'Segoe UI', system-ui, sans-serif;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --bg:#0F1614; --surface:#17201D; --soft:#1E2925; --line:#2C3A35;
    --fg:#E7EEEB; --muted:#9AABA5;
    --accent:#4FB39C; --accent-fg:#0B1311; --accent-soft:#1D3530; --accent-ink:#8FD6C4; --accent-mid:#2F6E60;
    --disabled:#2F4A43; --danger:#E58A78; --danger-soft:#3A221D;
    --good:#6FD39C; --good-soft:#18352A; --mid:#E3C35E; --mid-soft:#3A3218; --bad:#F08C7C; --bad-soft:#3B201C; --page:#090D0C;
    color-scheme:dark;
  }
}
:root[data-theme="dark"]{
  --bg:#0F1614; --surface:#17201D; --soft:#1E2925; --line:#2C3A35;
  --fg:#E7EEEB; --muted:#9AABA5;
  --accent:#4FB39C; --accent-fg:#0B1311; --accent-soft:#1D3530; --accent-ink:#8FD6C4; --accent-mid:#2F6E60;
  --disabled:#2F4A43; --danger:#E58A78; --danger-soft:#3A221D;
    --good:#6FD39C; --good-soft:#18352A; --mid:#E3C35E; --mid-soft:#3A3218; --bad:#F08C7C; --bad-soft:#3B201C; --page:#090D0C;
  color-scheme:dark;
}
*{box-sizing:border-box}
body{background:var(--page); color:var(--fg); font-family:var(--font-body); font-size:16px; line-height:1.5}
.wrap{max-width:1040px; margin:0 auto; padding-block:24px 48px; padding-left:max(16px, env(safe-area-inset-left, 0px)); padding-right:max(16px, env(safe-area-inset-right, 0px)); display:flex; flex-direction:column; gap:24px}
header{display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px}
.brand{font-family:var(--font-display); font-weight:600; font-size:22px; color:var(--accent)}
nav{display:flex; flex-wrap:wrap; gap:6px; padding:4px; border-radius:14px; background:var(--soft)}
nav button{font:inherit; font-size:14px; font-weight:600; min-height:40px; padding:0 14px; border:none; border-radius:10px; background:transparent; color:var(--muted); cursor:pointer}
nav button[aria-current="page"]{background:var(--surface); color:var(--fg); box-shadow:0 1px 2px rgba(0,0,0,.08)}
button:focus-visible, textarea:focus-visible, input:focus-visible{outline:3px solid var(--accent-mid); outline-offset:2px}

.topline{display:flex; align-items:center; justify-content:space-between; gap:12px; font-size:14px; font-weight:600; color:var(--muted)}
.bars{display:flex; gap:6px}
.bars span{flex:1; height:6px; border-radius:3px; background:var(--line)}
.bars span.done{background:var(--accent)}
.bars span.now{background:var(--accent-mid)}
.chip{display:flex; flex-direction:column; gap:2px; padding:12px 16px; border-radius:14px; background:var(--soft)}
.chip small{font-size:12px; font-weight:600; color:var(--muted)}
.chip div{font-size:15px; overflow-wrap:anywhere}
h1{margin:0; font-family:var(--font-display); font-weight:600; font-size:clamp(24px, 4.5cqi, 32px); line-height:1.2; text-wrap:balance}
.sub{margin:6px 0 0; color:var(--muted)}
label{display:block; font-size:13px; font-weight:600; color:var(--muted); margin-bottom:6px}
textarea, input[type="text"]{width:100%; font:inherit; color:var(--fg); background:var(--surface); border:1.5px solid var(--line); border-radius:16px; padding:14px 16px}
textarea{resize:vertical; min-height:180px}
textarea.main{border-color:var(--accent)}
textarea::placeholder, input::placeholder{color:var(--muted); opacity:.8}
.row{display:flex; gap:12px; flex-wrap:wrap}
.btn{font:inherit; font-size:16px; font-weight:600; min-height:52px; padding:0 22px; border-radius:14px; border:1px solid var(--line); background:var(--surface); color:var(--fg); cursor:pointer; display:inline-flex; align-items:center; justify-content:center; gap:8px}
.btn.primary{flex:1; border:none; background:var(--accent); color:var(--accent-fg)}
.btn.primary:disabled{background:var(--disabled); cursor:not-allowed}
.btn:not(.primary):disabled{opacity:.5; cursor:not-allowed}
.btn.small{min-height:44px; font-size:14px; padding:0 14px}
.btn.danger{color:var(--danger); border-color:var(--danger)}
.btn.danger.confirm{background:var(--danger); color:var(--surface); border-color:var(--danger)}
.stack{display:flex; flex-direction:column; gap:16px}
.card{background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:16px 18px; display:flex; flex-direction:column; gap:8px; min-width:0}
.card .q{font-size:13px; font-weight:600; color:var(--muted)}
.card .a{white-space:pre-line; overflow-wrap:anywhere}
.muted{color:var(--muted)}
.done-mark{width:60px; height:60px; border-radius:30px; background:var(--accent-soft); color:var(--accent); display:flex; align-items:center; justify-content:center}
.amal{color:var(--accent-ink); font-weight:600}
details summary{cursor:pointer; font-size:14px; font-weight:600; color:var(--accent-ink); min-height:32px; display:flex; align-items:center}
details .stack{margin-top:10px; gap:10px}
.meta{display:flex; justify-content:space-between; align-items:center; gap:12px; font-size:13px; color:var(--muted)}

.qlist{list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px}
.grip{display:flex; align-items:center; justify-content:center; width:28px; height:48px; padding:0; border:none; border-radius:10px; background:transparent; color:var(--fg); cursor:grab; touch-action:none; user-select:none}
.grip:hover{background:var(--soft)}
.grip:active{cursor:grabbing}
.grip .num{margin-top:0}
.qitem.dragging{border-color:var(--accent); box-shadow:0 10px 28px rgba(0,0,0,.22); position:relative; z-index:2}
body.is-dragging{cursor:grabbing; user-select:none}
.qitem .num{margin-top:0}
.sync{margin-left:12px; font-size:12px; font-weight:500; color:var(--muted)}
[hidden]{display:none!important}
.qitem.dirty{border-color:var(--accent)}
.qsave{display:flex; flex-wrap:wrap; gap:8px; margin-top:10px}
.qsave .btn.primary{flex:0 0 auto}
.saved-msg{display:inline-flex; align-items:center; gap:6px; margin-top:8px; font-size:14px; font-weight:600; color:var(--accent-ink)}
.qitem{display:grid; grid-template-columns:28px 32px minmax(0,1fr) 44px; gap:10px; align-items:center; background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:12px}
.num{width:32px; height:32px; border-radius:16px; background:var(--accent); color:var(--accent-fg); font-family:var(--font-display); font-weight:600; display:flex; align-items:center; justify-content:center; margin-top:4px}
.qitem textarea{min-height:48px; resize:none; border-radius:10px; padding:10px 12px; font-weight:500; line-height:1.4}
.qitem input{border-radius:10px; padding:8px 10px; font-size:14px; margin-top:6px}
.qctl{display:flex; flex-direction:column; gap:6px}
.icon{width:44px; height:40px; padding:0; border-radius:10px; border:1px solid var(--line); background:var(--surface); color:var(--fg); cursor:pointer; display:flex; align-items:center; justify-content:center}
.icon:disabled{opacity:.35; cursor:not-allowed}
.icon.del{color:var(--danger)}
.icon.del.confirm{background:var(--danger); color:var(--surface); border-color:var(--danger)}
.note{font-size:14px; color:var(--muted); margin:0}
@container (max-width:480px){ .qitem{grid-template-columns:24px 26px minmax(0,1fr) 44px; gap:8px; padding:10px} .num{width:26px;height:26px;font-size:13px} }
@media (prefers-reduced-motion:no-preference){ .fade{animation:fade .18s ease-out} @keyframes fade{from{opacity:.4; transform:translateY(4px)} to{opacity:1; transform:none}} }
.brand{border:none; background:none; padding:0; cursor:pointer}
.modbar{display:flex; flex-direction:column; gap:14px}
.modhead{display:flex; flex-direction:column; gap:2px}
.back{align-self:flex-start; font:inherit; font-size:14px; font-weight:600; color:var(--accent-ink); background:none; border:none; padding:0; min-height:36px; cursor:pointer; display:inline-flex; align-items:center; gap:6px}
.mod-title{font-family:var(--font-display); font-weight:600; font-size:clamp(22px, 4cqi, 28px); line-height:1.2}
.modbar nav{align-self:flex-start}
.mods{display:grid; grid-template-columns:repeat(auto-fit, minmax(190px, 1fr)); gap:14px}
.modcard{text-align:left; font:inherit; color:var(--fg); background:var(--surface); border:1px solid var(--line); border-radius:18px; padding:20px; display:flex; flex-direction:column; gap:10px; cursor:pointer; min-width:0}
.modcard:hover{border-color:var(--accent)}
.modcard-title{font-family:var(--font-display); font-size:22px; font-weight:600; line-height:1.2}
.modcard-desc{color:var(--muted); font-size:15px}
.modcard-meta{font-size:13px; color:var(--muted)}
.modcard-meta b{color:var(--accent-ink)}
.modcard-go{margin-top:auto; align-self:flex-start; display:inline-flex; align-items:center; gap:8px; min-height:44px; padding:0 18px; border-radius:12px; background:var(--accent); color:var(--accent-fg); font-weight:600}
.addtopic{display:flex; flex-direction:column; gap:10px; background:var(--surface); border:1px solid var(--line); border-radius:18px; padding:16px}
.addtopic textarea{min-height:64px; resize:none; border-radius:12px; padding:12px 14px}
.addtopic .row .btn{flex:0 0 auto}
.tlist{list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px}
.titem{display:grid; grid-template-columns:minmax(0,1fr) 44px; gap:10px; align-items:center; background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:6px 8px 6px 6px}
.titem:hover{border-color:var(--accent)}
.topen{font:inherit; text-align:left; color:var(--fg); background:none; border:none; border-radius:12px; padding:10px 12px; cursor:pointer; display:flex; flex-direction:column; gap:8px; min-width:0}
.ttitle{font-weight:600; font-size:17px; overflow-wrap:anywhere}
.tmeta{display:flex; flex-wrap:wrap; gap:4px 12px; font-size:13px; color:var(--muted)}
.tmeta b{color:var(--accent-ink); font-weight:600}
.tbar{height:5px; border-radius:3px; background:var(--line); overflow:hidden}
.tbar span{display:block; height:100%; background:var(--accent); border-radius:3px}
.section-h{margin:0; font-size:13px; font-weight:600; letter-spacing:.04em; text-transform:uppercase; color:var(--muted)}
.sr{position:absolute; left:-9999px}
.pill{display:inline-flex; align-items:center; padding:2px 10px; border-radius:999px; font-size:12px; font-weight:600; white-space:nowrap}
.pill-good{background:var(--good-soft); color:var(--good)}
.pill-mid{background:var(--mid-soft); color:var(--mid)}
.pill-bad{background:var(--bad-soft); color:var(--bad)}
.t-good{color:var(--good); font-weight:600}
.t-bad{color:var(--bad); font-weight:600}
.ncat{display:flex; flex-direction:column; gap:10px; background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:16px}
.ncat-top{display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px}
.ncat .row .btn, .ncat-edit .row .btn{flex:0 0 auto}
.flash{border-color:var(--good); background:var(--good-soft)}
.flash .a{color:var(--good); font-weight:600}
.nq{gap:10px}
.nq-t{font-weight:600; font-size:16px; color:var(--fg); margin:0}
.scale{display:flex; flex-wrap:wrap; gap:6px}
.sbtn{font:inherit; font-size:14px; font-weight:600; min-height:44px; padding:0 14px; border-radius:12px; border:1px solid var(--line); background:var(--surface); color:var(--fg); cursor:pointer}
.sbtn:hover{border-color:var(--accent)}
.sbtn[aria-checked="true"].s-good{background:var(--good); border-color:var(--good); color:var(--surface)}
.sbtn[aria-checked="true"].s-mid{background:var(--mid); border-color:var(--mid); color:var(--surface)}
.sbtn[aria-checked="true"].s-bad{background:var(--bad); border-color:var(--bad); color:var(--surface)}
.numrow{display:flex; align-items:center; gap:10px}
.numrow input{max-width:260px}
.unit{font-weight:600; color:var(--muted)}
textarea.short{min-height:80px}
.prev{font-size:13px; color:var(--muted)}
.hwrap{overflow-x:auto}
.htable{border-collapse:collapse; width:100%; font-size:14px; font-variant-numeric:tabular-nums}
.htable th, .htable td{padding:10px 8px; border-bottom:1px solid var(--line); text-align:left; vertical-align:top}
.htable thead th{font-size:12px; color:var(--muted); font-weight:600; white-space:nowrap}
.htable tbody th{font-weight:500; min-width:200px; max-width:320px}
.htable td{white-space:nowrap}
.htable td .txt{white-space:normal; display:inline-block; min-width:160px; max-width:240px}
.htable tr.avg th, .htable tr.avg td{font-weight:600; border-bottom:none}
.diff{font-size:12px; color:var(--muted)}
.ncat-edit{gap:12px}
.ncat-head{display:flex; flex-wrap:wrap; gap:8px; align-items:center}
.ncat-head .ncat-title{flex:1; min-width:160px; font-weight:600; font-size:17px; border-radius:12px; padding:10px 12px}
select{font:inherit; font-size:14px; color:var(--fg); background:var(--surface); border:1.5px solid var(--line); border-radius:10px; min-height:44px; padding:0 10px}
select:focus-visible{outline:3px solid var(--accent-mid); outline-offset:2px}
.nitem{display:grid; grid-template-columns:28px minmax(0,1fr) 44px; gap:10px; align-items:start; background:var(--bg); border:1px solid var(--line); border-radius:14px; padding:10px}
.nitem.dirty{border-color:var(--accent)}
.nitem .grip{height:44px}
.nitem textarea{min-height:44px; resize:none; border-radius:10px; padding:10px 12px; font-weight:500; line-height:1.4}
.nitem-opts{margin-top:8px; gap:8px}
.nitem .unit-in{max-width:180px; border-radius:10px; padding:8px 10px; font-size:14px}
.addq{gap:8px}
.addq input{flex:1; min-width:160px; border-radius:12px; padding:10px 12px}
.apps{display:flex; flex-wrap:nowrap; gap:4px; padding:6px; border-radius:18px; background:var(--soft); align-self:flex-start; max-width:100%; overflow-x:auto}
.app{display:flex; flex-direction:column; align-items:center; gap:6px; min-width:68px; min-height:0; padding:8px 8px; border-radius:14px; border:none; background:transparent; color:var(--muted); font:inherit; font-size:13px; font-weight:600; text-decoration:none; cursor:pointer; white-space:nowrap}
.app:hover{color:var(--fg)}
.app[aria-current="page"]{background:var(--surface); color:var(--fg); box-shadow:0 1px 3px rgba(0,0,0,.12)}
.app:focus-visible{outline:3px solid var(--accent-mid); outline-offset:2px}
.app-ic{position:relative; width:36px; height:36px; border-radius:10px; display:flex; align-items:center; justify-content:center; color:var(--ic-fg)}
.app[aria-disabled="true"]{cursor:not-allowed}
.app[aria-disabled="true"] .app-ic{opacity:.45}
.app[aria-disabled="true"]:hover{color:var(--muted)}
.app-lock{position:absolute; right:-7px; bottom:-7px; width:20px; height:20px; border-radius:10px; background:var(--fg); color:var(--bg); display:flex; align-items:center; justify-content:center; border:2px solid var(--soft)}
#adminHead{display:flex; flex-direction:column}
input[type="number"], select.full{width:100%; font:inherit; color:var(--fg); background:var(--surface); border:1.5px solid var(--line); border-radius:12px; padding:12px 14px}
.form-grid{display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:14px}
.form-grid .full{grid-column:1 / -1}
.form-grid textarea{min-height:90px}
.form-grid label{margin-bottom:6px}
@container (max-width:520px){ .form-grid{grid-template-columns:1fr} }
.segb[aria-checked="true"]{background:var(--accent); border-color:var(--accent); color:var(--accent-fg)}
.req{color:var(--danger)}
.err{color:var(--danger); font-size:14px; font-weight:600; margin:0}
.kv{display:grid; grid-template-columns:minmax(110px, auto) minmax(0,1fr); gap:6px 16px; font-size:15px}
.kv dt{color:var(--muted)}
.kv dd{margin:0; overflow-wrap:anywhere}
.guest-note{border-color:var(--mid); background:var(--mid-soft)}
.combo{position:relative}
.selbtn{width:100%; font:inherit; color:var(--fg); background:var(--surface); border:1.5px solid var(--line); border-radius:12px; min-height:48px; padding:0 14px; display:flex; align-items:center; justify-content:space-between; gap:10px; cursor:pointer; text-align:left}
.selbtn[aria-expanded="true"]{border-color:var(--accent)}
.combo-panel{position:absolute; left:0; right:0; top:calc(100% + 4px); z-index:20; background:var(--surface); border:1px solid var(--line); border-radius:14px; box-shadow:0 12px 30px rgba(0,0,0,.2); padding:8px; display:flex; flex-direction:column; gap:8px}
.combo-panel > input{border-radius:10px; padding:10px 12px}
.combo-items{list-style:none; margin:0; padding:0; max-height:260px; overflow-y:auto}
.combo-items li{display:flex; align-items:center; gap:8px; padding:10px 12px; border-radius:8px; cursor:pointer; min-height:40px}
.combo-items li:hover, .combo-items li.active{background:var(--soft)}
.combo-items li[aria-selected="true"]{font-weight:600; color:var(--accent-ink)}
.combo-items li.new{position:sticky; bottom:0; background:var(--surface); border-top:1px solid var(--line); border-radius:0 0 8px 8px; color:var(--accent-ink); font-weight:600}
.combo-items li.new:hover, .combo-items li.new.active{background:var(--soft)}
.combo-items li.empty{cursor:default; color:var(--muted)}
.newjob{border-top:1px solid var(--line); padding-top:8px}
.newjob input{border-radius:10px; padding:10px 12px}
.combo-list{position:absolute; left:0; right:0; top:calc(100% + 4px); z-index:20; list-style:none; margin:0; padding:6px; background:var(--surface); border:1px solid var(--line); border-radius:12px; box-shadow:0 10px 28px rgba(0,0,0,.18); max-height:280px; overflow-y:auto}
.combo-list li{display:flex; align-items:center; gap:8px; padding:10px 12px; border-radius:8px; cursor:pointer; min-height:40px}
.combo-list li:hover, .combo-list li[aria-selected="true"]{background:var(--soft)}
.combo-list li.new{color:var(--accent-ink); font-weight:600}
.flabel{display:block; font-size:13px; font-weight:600; color:var(--muted); margin-bottom:6px}
.date3{display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.4fr) minmax(0,1fr); gap:8px}
.date3 select{width:100%; min-height:48px; border-radius:12px}
.stepper{display:flex; align-items:center; gap:12px}
.stepper output{min-width:32px; text-align:center; font-size:20px; font-weight:600; font-variant-numeric:tabular-nums}
.stepper .icon{font-size:22px; font-weight:600; width:48px; height:48px; color:var(--fg)}
.modcard:disabled{opacity:.55; cursor:not-allowed}
.modcard:disabled:hover{border-color:var(--line)}
.cab-btn{font:inherit; font-size:14px; font-weight:600; color:var(--fg); background:var(--surface); border:1px solid var(--line); border-radius:12px; min-height:40px; padding:0 12px; display:inline-flex; align-items:center; gap:8px; cursor:pointer}
.cab-btn[aria-current="page"]{border-color:var(--accent); color:var(--accent-ink)}
.switch{font:inherit; display:flex; align-items:center; gap:12px; text-align:left; background:none; border:none; padding:6px 0; color:var(--fg); cursor:pointer; min-height:44px}
.sw-track{flex:0 0 auto; width:46px; height:28px; border-radius:14px; background:var(--line); position:relative; transition:background .15s}
.sw-knob{position:absolute; top:3px; left:3px; width:22px; height:22px; border-radius:11px; background:var(--surface); box-shadow:0 1px 3px rgba(0,0,0,.25); transition:left .15s}
.switch[aria-checked="true"] .sw-track{background:var(--accent)}
.switch[aria-checked="true"] .sw-knob{left:21px}
.switch:focus-visible{outline:3px solid var(--accent-mid); outline-offset:2px; border-radius:8px}
.sw-text{display:flex; flex-direction:column; gap:2px}
.sw-label{font-weight:600; font-size:15px}
.sw-sub{font-size:13px; color:var(--muted)}
.linkbtn{font:inherit; font-size:13px; font-weight:600; color:var(--accent-ink); background:none; border:none; padding:4px 0; cursor:pointer; text-decoration:underline; align-self:flex-start}
.share-row{display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px 16px; padding:10px 0; border-top:1px solid var(--line)}
.share-row:first-of-type{border-top:none}
.share-row .ttitle{font-size:16px}
#shareBar{display:flex; flex-wrap:wrap; align-items:center; gap:4px 14px}
.ulist{list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px}
#appFrame{display:flex; flex-direction:column; min-width:0}
a{color:var(--accent-ink)}
body.area-admin #appInner{max-width:1000px}
.utable tbody th{min-width:0; white-space:nowrap}
.utable td{white-space:nowrap}
#appInner{container-type:inline-size; display:flex; flex-direction:column; gap:24px; width:100%; max-width:680px; margin:0 auto; min-width:0}
.dock{position:sticky; top:env(safe-area-inset-top, 0px); z-index:30; display:flex; justify-content:center; background:var(--page); border-bottom:1px solid var(--line); padding-block:10px; padding-left:max(16px, env(safe-area-inset-left, 0px)); padding-right:max(16px, env(safe-area-inset-right, 0px))}
.dock .apps{align-self:auto}
.chrome{display:none}
body.device-web #appFrame{background:var(--bg); border:1px solid var(--line); border-radius:14px; box-shadow:0 12px 40px rgba(0,0,0,.12); overflow:hidden}
body.device-web #appInner{padding:28px 24px 40px}
body.device-web .chrome{display:flex; align-items:center; gap:7px; padding:10px 14px; background:var(--soft); border-bottom:1px solid var(--line); font-size:12px; color:var(--muted)}
.chrome span{width:11px; height:11px; border-radius:6px; background:var(--line)}
.chrome em{font-style:normal; margin-left:10px; padding:4px 12px; border-radius:8px; background:var(--surface); flex:1; max-width:360px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
@media (max-width:520px){ body, .dock{background:var(--bg)} body.device-web #appFrame{border:none; border-radius:0; box-shadow:none; background:transparent; overflow:visible} body.device-web #appInner{padding:0} body.device-web .chrome{display:none} }
body.device-mobile #appFrame{width:390px; max-width:100%; height:min(844px, calc(100vh - 150px)); min-height:560px; margin:0 auto; border:10px solid var(--bezel); border-radius:46px; overflow-y:auto; overflow-x:hidden; padding:24px 16px 32px; background:var(--bg); box-shadow:0 20px 50px rgba(0,0,0,.25); scrollbar-width:thin}
body.device-mobile .apps{align-self:center}
@media (max-width:520px){ body.device-mobile #appFrame{width:auto; height:auto; min-height:0; border:none; border-radius:0; padding:0; box-shadow:none; overflow:visible} }
