
/* Layout: one mobile-first column (max 560px) with a sticky header and bottom navigation; on wide screens it sits centred like a card.
   Every color, type style, space and radius comes from themes.css (هوية داري). No color value is written here:
   the system identity sits on <body>, and a house's own identity sits on the app frame (.app). */
:root{
  --f-display:var(--font-display); --f-text:var(--font-sans);
  --f-deva:"Noto Sans Devanagari","Nirmala UI","Mangal",sans-serif;
  --scrim:rgb(20 30 26 / .5);
}
:root,[data-theme]:not([data-theme="night"]){--elev:var(--shadow-card);--elev-sheet:var(--shadow-sheet)}
[data-theme="night"]{--elev:none;--elev-sheet:none}
*{box-sizing:border-box}
[hidden]{display:none!important}
html,body{height:100%}
body,body[data-theme]{margin:0;font:var(--text-body);background:var(--surface-sunken);color:var(--ink)}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer;background:none;border:0;padding:0}
:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px;border-radius:var(--radius-sm)}
h1,h2,h3{font-family:var(--f-display);font-weight:600;margin:0;text-wrap:balance}
.brandwrap{display:flex;flex-direction:column;gap:var(--space-2)}
.brand{display:flex;align-items:center;gap:var(--space-3);color:var(--brand)}
.brand b{font:var(--text-display);color:var(--ink)}
.brand .lm{width:52px;height:52px;flex:none}
.brandwrap small{font:var(--text-label);color:var(--ink-muted)}
.fine{font:var(--text-caption)}
.top{flex:none;display:flex;align-items:center;gap:var(--space-3);padding-block:var(--space-2);padding-left:max(var(--space-4), env(safe-area-inset-left, 0px));padding-right:max(var(--space-4), env(safe-area-inset-right, 0px));background:var(--surface-raised);border-bottom:1px solid var(--line)}
.hlogo{display:flex;align-items:center;gap:6px;color:var(--brand);flex:none}
.hlogo b{font:var(--text-title);font-weight:700;color:var(--ink)}
.hlogo .lm{width:28px;height:28px}
.house{display:flex;align-items:center;gap:6px;min-width:0;flex:1;text-align:right;padding-inline-start:var(--space-3);border-inline-start:1px solid var(--line)}
.house .hn{font-family:var(--f-display);font-weight:600;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.house .hm{font:var(--text-caption);color:var(--ink-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.house .col{display:flex;flex-direction:column;min-width:0;line-height:1.3}
.house svg{width:16px;height:16px;flex:none;color:var(--ink-muted)}
.today{font:var(--text-caption);color:var(--ink-muted)}
.ib{width:38px;height:38px;flex:none;border-radius:var(--radius-md);display:grid;place-items:center;color:var(--ink);background:var(--surface);border:1px solid var(--line)}
.ib.solid{background:var(--accent);color:var(--on-accent);border-color:var(--accent)}
.ib svg,.btn svg,.navb svg,.row svg,.mini svg{width:20px;height:20px}
.scr{flex:1;min-height:0;overflow-y:auto;padding-block:var(--space-4) var(--space-5);padding-left:max(var(--space-4), env(safe-area-inset-left, 0px));padding-right:max(var(--space-4), env(safe-area-inset-right, 0px));display:flex;flex-direction:column;gap:var(--space-4);scroll-behavior:smooth}
.scr > *,.drvbody > *,.sheet > *{flex-shrink:0}
.big{white-space:nowrap}
.nav{flex:none;display:grid;grid-template-columns:repeat(5,1fr);align-items:end;background:var(--surface-raised);border-top:1px solid var(--line);padding-block:6px var(--space-2);padding-left:max(var(--space-2), env(safe-area-inset-left, 0px));padding-right:max(var(--space-2), env(safe-area-inset-right, 0px))}
.navb{display:flex;flex-direction:column;align-items:center;gap:2px;font:var(--text-caption);color:var(--ink-muted);padding:var(--space-1) 0}
.navb.on{color:var(--brand);font-weight:600}
.navb.plus span{width:48px;height:48px;border-radius:var(--radius-md);background:var(--accent);color:var(--on-accent);display:grid;place-items:center;margin-top:-18px;box-shadow:var(--elev)}
.navb.plus svg{width:24px;height:24px}
.card{background:var(--surface-raised);border:1px solid var(--line);border-radius:var(--radius-lg);padding:var(--space-4);display:flex;flex-direction:column;gap:var(--space-3)}
.card.flat{border:0;background:transparent;padding:0}
/* House card (brand guide): identity cover on top, name + status badge, metric, accent progress on sunken track. */
.hero{padding:0;gap:0;overflow:hidden;box-shadow:var(--elev)}
.hero .cover{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);min-height:64px;padding:var(--space-3) var(--space-4);background:var(--brand-soft);color:var(--brand)}
.hero .cover .cv{width:32px;height:32px}
.hero .hbody{display:flex;flex-direction:column;gap:var(--space-3);padding:var(--space-4)}
.hero h2{font:var(--text-title)}
.thbtn{display:inline-flex;align-items:center;gap:var(--space-1);font:var(--text-label);color:var(--brand);background:var(--surface-raised);border-radius:var(--radius-pill);padding:6px var(--space-3)}
.thbtn svg{width:16px;height:16px}
.metric{font:var(--text-metric);font-variant-numeric:tabular-nums;color:var(--ink)}
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--space-2)}
.stats > div{display:flex;flex-direction:column;background:var(--surface-sunken);border-radius:var(--radius-md);padding:var(--space-2) var(--space-3)}
.eyebrow{font:var(--text-label);color:var(--ink-muted)}
.muted{color:var(--ink-muted);font-size:13px;line-height:20px}
.small{font-size:13px}
.between{display:flex;justify-content:space-between;align-items:center;gap:var(--space-2)}
.wrap{display:flex;flex-wrap:wrap;gap:var(--space-2)}
.prog,.bar{height:8px;border-radius:var(--radius-pill);background:var(--surface-sunken);overflow:hidden}
.prog i,.bar i{display:block;height:100%;background:var(--accent);border-radius:var(--radius-pill)}
.bar.warn i{background:var(--status-build)}
.bar.bad i{background:var(--danger)}
.bar.good i{background:var(--status-live)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:var(--space-2);border-radius:var(--radius-md);padding:10px var(--space-4);font-weight:600;background:var(--brand);color:var(--on-brand);border:1px solid var(--brand);text-decoration:none}
.btn.ghost{background:transparent;color:var(--brand);border-color:var(--line)}
.btn.bad{background:transparent;color:var(--danger);border-color:var(--line)}
.btn.block{width:100%}
.btn:disabled{opacity:.45;cursor:not-allowed}
.pill{display:inline-flex;align-items:center;gap:var(--space-1);font:var(--text-caption);font-weight:600;padding:2px 9px;border-radius:var(--radius-pill);background:var(--surface);color:var(--ink-muted);border:1px solid var(--line);white-space:nowrap}
.pill svg{width:14px;height:14px}
.pill.good{background:var(--status-live-soft);color:var(--status-live);border-color:transparent}
.pill.warn{background:var(--status-build-soft);color:var(--status-build);border-color:transparent}
.pill.bad{background:var(--danger-soft);color:var(--danger);border-color:transparent}
.pill.info{background:var(--brand-soft);color:var(--brand);border-color:transparent}
.badge{display:inline-flex;align-items:center;gap:var(--space-1);font:var(--text-label);font-weight:600;padding:2px var(--space-2);white-space:nowrap}
.badge svg{width:15px;height:15px}
.sec{display:flex;justify-content:space-between;align-items:center;margin-top:var(--space-1)}
.sec h3{font-size:15px}
.sec button{font:var(--text-label);font-weight:600;color:var(--brand)}
.list{display:flex;flex-direction:column;background:var(--surface-raised);border:1px solid var(--line);border-radius:var(--radius-lg);overflow:hidden}
.row{display:flex;align-items:center;gap:var(--space-3);padding:var(--space-3) var(--space-4);border-bottom:1px solid var(--line);text-align:right;width:100%;min-width:0}
.row:last-child{border-bottom:0}
.row .grow{flex:1;min-width:0}
.row .t{font-weight:500;display:block}
.row .m{font:var(--text-caption);color:var(--ink-muted);display:block}
.row .end{flex:none;display:flex;flex-direction:column;align-items:flex-end;gap:var(--space-1);font-size:13px;font-variant-numeric:tabular-nums}
.chev{color:var(--ink-muted);flex:none}
.chk{flex:none;width:26px;height:26px;border-radius:var(--radius-pill);border:2px solid var(--line);display:grid;place-items:center;color:transparent}
.chk.on{background:var(--brand);border-color:var(--brand);color:var(--on-brand)}
.chk svg{width:15px;height:15px}
.dot{flex:none;width:28px;height:28px;border-radius:var(--radius-pill);display:grid;place-items:center;background:var(--surface);color:var(--ink-muted);border:1px solid var(--line)}
.dot.done{background:var(--status-live-soft);color:var(--status-live);border-color:transparent}
.dot.doing{background:var(--status-build-soft);color:var(--status-build);border-color:transparent}
.dot svg{width:15px;height:15px}
.tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--space-3)}
.tile{background:var(--surface-raised);border:1px solid var(--line);border-radius:var(--radius-md);padding:var(--space-3) var(--space-2);display:flex;flex-direction:column;align-items:center;gap:6px;font:var(--text-label);text-align:center}
.tile .ti{width:36px;height:36px;border-radius:var(--radius-md);background:var(--brand-soft);color:var(--brand);display:grid;place-items:center}
.tile .ti svg{width:20px;height:20px}
.ihd{display:inline-flex;align-items:center;gap:var(--space-2)}
.ihd svg{width:20px;height:20px;color:var(--brand)}
.quick{display:flex;gap:var(--space-2);align-items:center;background:var(--surface-raised);border:1px solid var(--line);border-radius:var(--radius-md);padding:6px}
.quick input{flex:1;min-width:0;border:0;background:transparent;padding:6px var(--space-2);outline:none}
.prev{display:flex;flex-wrap:wrap;gap:6px;min-height:0}
.field{display:flex;flex-direction:column;gap:var(--space-1)}
.field label{font:var(--text-label);color:var(--ink-muted)}
.field input,.field select,.inp,.field textarea,.stepper input,.stepper select{border:1px solid var(--line);background:var(--surface-sunken);border-radius:var(--radius-sm);padding:9px 10px;width:100%;min-width:0}
.field textarea{resize:vertical}
.field.low input,.field.low select{border-color:var(--status-build);background:var(--status-build-soft)}
.field .why{font:var(--text-caption);color:var(--status-build)}
.seg{display:flex;gap:6px;overflow-x:auto;padding-bottom:2px}
.chip{flex:none;border:1px solid var(--line);background:var(--surface-raised);border-radius:var(--radius-pill);padding:6px var(--space-3);font-size:13px;white-space:nowrap}
.chip.on{background:var(--brand-soft);border-color:var(--brand);color:var(--brand);font-weight:600}
.ph{display:flex;align-items:center;gap:var(--space-2)}
.ph h2{font:var(--text-title);flex:1;min-width:0}
.back{width:36px;height:36px;border-radius:var(--radius-md);display:grid;place-items:center;border:1px solid var(--line);background:var(--surface-raised);flex:none}
.back svg{width:18px;height:18px}
.kv{display:grid;grid-template-columns:auto 1fr;gap:6px var(--space-4);font-size:13.5px}
.kv dt{color:var(--ink-muted)}
.kv dd{margin:0}
.note{font:var(--text-caption);color:var(--ink-muted);display:flex;gap:6px;align-items:flex-start}
.note svg{width:15px;height:15px;flex:none;margin-top:2px}
.photos{display:grid;grid-template-columns:repeat(4,1fr);gap:var(--space-2)}
.photo{aspect-ratio:1;border-radius:var(--radius-sm);background:var(--brand-soft);border:1px solid var(--line);display:grid;place-items:center;color:var(--brand);font:var(--text-caption)}
.photo.empty{background:var(--surface);border-style:dashed;color:var(--ink-muted)}
.stars{display:inline-flex;gap:2px;color:var(--accent)}
.stars svg{width:15px;height:15px}
.stars .off{color:var(--line)}
.stars.big svg{width:28px;height:28px}
.avatar{flex:none;width:40px;height:40px;border-radius:var(--radius-md);background:var(--brand-soft);color:var(--brand);display:grid;place-items:center;font-family:var(--f-display);font-weight:600}
.avatar.c{background:var(--accent-soft);color:var(--ink)}
.num{font-variant-numeric:tabular-nums}
.big{font:var(--text-metric);font-size:24px;line-height:32px;font-variant-numeric:tabular-nums}
.sheetwrap{position:absolute;inset:0;background:var(--scrim);display:flex;align-items:flex-end;z-index:20}
.sheet{width:100%;max-height:90%;overflow-y:auto;background:var(--surface-raised);border-radius:var(--radius-lg) var(--radius-lg) 0 0;padding:10px var(--space-4) var(--space-5);display:flex;flex-direction:column;gap:var(--space-3);box-shadow:var(--elev-sheet);animation:up .22s ease}
.grab{width:42px;height:5px;border-radius:var(--radius-pill);background:var(--line);margin:2px auto var(--space-1)}
@keyframes up{from{transform:translateY(30px);opacity:.4}to{transform:none;opacity:1}}
.toast{position:absolute;left:var(--space-4);right:var(--space-4);bottom:86px;z-index:40;background:var(--ink);color:var(--surface);border-radius:var(--radius-md);padding:11px var(--space-4);font-size:13.5px;display:flex;gap:var(--space-2);align-items:flex-start;box-shadow:var(--elev)}
.toast svg{width:18px;height:18px;flex:none}
.viewfinder{position:relative;border-radius:var(--radius-md);background:var(--ink);aspect-ratio:4/3;display:grid;place-items:center;overflow:hidden}
.viewfinder .corner{position:absolute;inset:14%;border:2px dashed var(--line);border-radius:var(--radius-md)}
.viewfinder span{color:var(--surface);font-size:13px;position:relative}
.samples{display:grid;grid-template-columns:repeat(2,1fr);gap:var(--space-2)}
.sample{border:1px solid var(--line);border-radius:var(--radius-md);padding:10px;text-align:right;background:var(--surface);display:flex;flex-direction:column;gap:2px}
.sample b{font-size:13px}
.sample span{font:var(--text-caption);color:var(--ink-muted)}
.receipt{position:relative;width:62%;margin:var(--space-2) auto;background:var(--surface-raised);color:var(--ink);border-radius:6px;padding:14px var(--space-3);font-size:12px;line-height:1.7;box-shadow:var(--elev);overflow:hidden}
.receipt.hand{font-style:italic;background:var(--accent-soft)}
.receipt .scan{position:absolute;left:0;right:0;height:3px;background:var(--accent);top:0;animation:scan 1.1s ease-in-out infinite alternate}
@keyframes scan{to{top:calc(100% - 3px)}}
.bubble{background:var(--brand-soft);color:var(--ink);border-radius:14px 14px 4px 14px;padding:10px var(--space-3);font-size:13px;white-space:pre-line}
.drv{position:absolute;inset:0;z-index:30;background:var(--surface);display:flex;flex-direction:column}
.urlbar{flex:none;display:flex;align-items:center;gap:var(--space-2);background:var(--surface-raised);border-bottom:1px solid var(--line);padding:10px var(--space-4);font:var(--text-caption);color:var(--ink-muted);direction:ltr}
.urlbar svg{width:14px;height:14px}
.urlbar button{margin-left:auto;direction:rtl;font:var(--text-label);font-weight:600;color:var(--brand)}
.drvbody{flex:1;overflow-y:auto;padding:var(--space-4);display:flex;flex-direction:column;gap:var(--space-3)}
.ditem{background:var(--surface-raised);border:1px solid var(--line);border-radius:var(--radius-md);padding:var(--space-3);display:flex;flex-direction:column;gap:var(--space-2)}
.ditem.ok{border-color:var(--status-live)}
.ditem.na{border-color:var(--danger);opacity:.85}
.ditem.sub{border-color:var(--status-build)}
.ditem .nm{font-weight:600;font-size:16px}
.ditem .ar{font:var(--text-caption);color:var(--ink-muted)}
.dbtns{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.dbtn{border:1px solid var(--line);border-radius:var(--radius-sm);padding:var(--space-2) var(--space-1);font:var(--text-label);font-weight:600;background:var(--surface)}
.dbtn.ok.on{background:var(--status-live);color:var(--on-brand);border-color:var(--status-live)}
.dbtn.na.on{background:var(--danger);color:var(--on-brand);border-color:var(--danger)}
.dbtn.sub.on{background:var(--status-build);color:var(--on-brand);border-color:var(--status-build)}
.drvfoot{flex:none;display:grid;grid-template-columns:1fr 1fr;gap:var(--space-2);padding:10px var(--space-4) 14px;background:var(--surface-raised);border-top:1px solid var(--line)}
[lang="hi"]{font-family:var(--f-deva)}
.onb{display:flex;flex-direction:column;gap:var(--space-4);padding-top:var(--space-3)}
.onb .brand b{font:var(--text-title-lg)}
.onb .brand .lm{width:40px;height:40px}
.readyh{font:var(--text-title-lg)}
.choice{display:flex;gap:var(--space-4);align-items:center;text-align:right;background:var(--surface-raised);border:1.5px solid var(--line);border-radius:var(--radius-lg);padding:var(--space-4)}
.choice:hover{border-color:var(--brand)}
.choice .ci{width:52px;height:52px;border-radius:var(--radius-md);display:grid;place-items:center;background:var(--brand-soft);color:var(--brand);flex:none}
.choice .ci svg{width:26px;height:26px}
.choice b{font-family:var(--f-display);font-size:18px;display:block}
.q{display:flex;flex-direction:column;gap:var(--space-2)}
.q > span{font-weight:600;font-size:14px}
.q .chip svg{width:14px;height:14px;vertical-align:-2px;margin-left:4px}
.onbin{border:1px solid var(--brand);background:var(--surface-raised);border-radius:var(--radius-sm);padding:9px 10px;width:100%;min-width:0}
.bars{display:flex;flex-direction:column;gap:var(--space-3)}
.brow{display:flex;flex-direction:column;gap:var(--space-1)}
.brow .bl{display:flex;justify-content:space-between;font-size:13px}
.twin{display:flex;flex-direction:column;gap:3px}
.twin .bar{height:7px}
.twin .bar.plan i{background:var(--line);border:1px solid var(--ink-muted)}
.legend{display:flex;gap:14px;font:var(--text-caption);color:var(--ink-muted)}
.legend i{display:inline-block;width:10px;height:10px;border-radius:3px;margin-left:5px;vertical-align:middle}
.empty{color:var(--ink-muted);text-align:center;padding:18px;font-size:13px}
.thumb{flex:none;width:44px;height:44px;border-radius:var(--radius-sm);overflow:hidden;background:var(--brand-soft);color:var(--brand);display:grid;place-items:center;font-family:var(--f-display);font-weight:600;font-size:16px}
.thumb img{width:100%;height:100%;object-fit:cover;display:block}
.thumb svg{width:20px;height:20px}
.thumb.big{width:72px;height:72px;border-radius:var(--radius-md);font-size:24px}
.thumbbtn{flex:none;border-radius:var(--radius-sm)}
.sug{border-color:var(--brand)}
.sug .row{background:var(--brand-soft)}
mark{background:var(--accent-soft);color:var(--ink);border-radius:3px;padding:0 1px}
.stepper{display:flex;gap:6px;align-items:center}
.stepper input{width:76px;text-align:center;padding:9px 6px}
.stepper select{flex:1;padding:9px var(--space-2)}
.stepper .ib{font-size:20px;font-weight:600}
.imgpick{display:flex;gap:var(--space-3);align-items:center}
.vh{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden;pointer-events:none}
.ihead{display:flex;gap:10px;align-items:center;min-width:0}
/* Identity picker: each card carries its own data-theme, so it previews that theme's brand + accent with no color code. */
.thgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--space-2)}
.thc{position:relative;display:flex;flex-direction:column;align-items:center;gap:6px;padding:var(--space-3) var(--space-2);border-radius:var(--radius-md);border:2px solid var(--line);background:var(--surface);color:var(--ink);text-align:center}
.thc[aria-pressed="true"]{border-color:var(--brand)}
.thc .lm{width:30px;height:30px;color:var(--brand)}
.thc .sw{display:flex;gap:var(--space-1)}
.thc .sw i{width:18px;height:18px;border-radius:var(--radius-pill);background:var(--brand)}
.thc .sw i + i{background:var(--accent)}
.thc .tn{font:var(--text-label)}
.thc .tick{position:absolute;top:6px;left:6px;width:20px;height:20px;border-radius:var(--radius-pill);background:var(--brand);color:var(--on-brand);display:grid;place-items:center}
.thc .tick svg{width:13px;height:13px}
.thc .sg{font:var(--text-caption);color:var(--brand);font-weight:600}
.thc.follow{flex-direction:row;justify-content:flex-start;gap:var(--space-3);padding:var(--space-3);text-align:right}
.thc.follow .tn{display:block;font-weight:600}
.thc.follow .m{font:var(--text-caption);color:var(--ink-muted)}
.hlist{display:flex;flex-direction:column;gap:var(--space-2)}
.hrow{display:flex;align-items:center;gap:var(--space-2);padding:var(--space-3);border:1px solid var(--line);border-inline-start:4px solid var(--brand);border-radius:var(--radius-md);background:var(--surface);color:var(--ink)}
.hrow .hmain{display:flex;align-items:center;gap:var(--space-3);text-align:right;min-width:0}
.hrow .t{font-weight:600;display:block}
.hrow .m{display:flex;flex-wrap:wrap;gap:var(--space-1) var(--space-2);align-items:center;font:var(--text-caption);color:var(--ink-muted);margin-top:2px}
.hav{flex:none;width:40px;height:40px;border-radius:var(--radius-pill);background:var(--brand-soft);color:var(--brand);display:grid;place-items:center;font-family:var(--f-display);font-weight:700;font-size:17px}
.grow{flex:1;min-width:0}
@media (prefers-reduced-motion: reduce){*{animation:none!important;scroll-behavior:auto!important}}

/* App frame */
.app{position:relative;max-width:560px;min-height:100dvh;margin:0 auto;background:var(--surface);color:var(--ink);display:flex;flex-direction:column}
@media (min-width:600px){.app{min-height:calc(100dvh - 32px);margin-block:16px;border:1px solid var(--line);border-radius:var(--radius-lg);overflow:clip;box-shadow:var(--elev)}}
.app .top{position:sticky;top:0;z-index:10}
.app .nav{position:sticky;bottom:0;z-index:10}
.scr{overflow:visible}
a{color:var(--brand)}
a.btn,a.chip,a.tile,a.row,a.card,a.navb,a.back,a.ib,a.pill{text-decoration:none;color:inherit}
a.btn{color:var(--on-brand)} a.btn.ghost{color:var(--brand)} a.pill.info{color:var(--brand)}
form{margin:0}
.flash{background:var(--status-live-soft);color:var(--status-live);border-radius:var(--radius-md);padding:10px var(--space-4);font:var(--text-label)}
.flash.err{background:var(--danger-soft);color:var(--danger)}
.errors{color:var(--danger);font:var(--text-caption)}
.auth{max-width:420px;margin:0 auto;padding:var(--space-6) var(--space-4);display:flex;flex-direction:column;gap:var(--space-4);min-height:100dvh;justify-content:center}
dialog.sheetd{border:0;padding:0;margin:auto auto 0;width:min(560px,100%);max-height:90dvh;background:transparent}
dialog.sheetd::backdrop{background:var(--scrim)}
dialog.sheetd .sheet{max-height:90dvh}
.check-inline{display:flex;gap:var(--space-2);align-items:center;font:var(--text-label)}
.table{width:100%;border-collapse:collapse;font-size:13.5px;font-variant-numeric:tabular-nums}
.table th,.table td{border-bottom:1px solid var(--line);padding:8px 6px;text-align:right;vertical-align:top}
.table th{font:var(--text-label);color:var(--ink-muted)}
.inline{display:inline}
.hidden-submit{display:none}
.drvpage{max-width:560px;margin:0 auto;min-height:100dvh;background:var(--surface);display:flex;flex-direction:column}
/* Chips that wrap a radio/checkbox: the choice is a real form field, styled as a chip. */
.chip:has(input:checked){background:var(--brand-soft);border-color:var(--brand);color:var(--brand);font-weight:600}
label.chip,label.thc{cursor:pointer}
.thc:has(input:checked){border-color:var(--brand)}
.thc:has(input:checked) .tick{display:grid}
.thc .tick{display:none}
.q .ownbox{display:none}
.q:has(input[value="__own"]:checked) .ownbox{display:block}
.onbin,.q .ownbox input{border:1px solid var(--brand);background:var(--surface-raised);border-radius:var(--radius-sm);padding:9px 10px;width:100%;min-width:0}
.q .chip svg{width:14px;height:14px;vertical-align:-2px;margin-left:4px}
.topacts{display:flex;gap:var(--space-2)}
.mini-form{display:flex;gap:var(--space-2);align-items:center}
.mini-form input,.mini-form select{flex:1;min-width:0}
.thumb.big svg{width:28px;height:28px}
@media print{.top,.nav,dialog,.quick,.prev,.btn,form{display:none!important}.app{border:0;box-shadow:none;max-width:none}body{background:#fff}}
