/* Additions on top of the oplæg stylesheet (style.css) */
.panel{margin-top:18px;background:var(--surface);border-radius:var(--r-card);padding:16px 18px;display:grid;gap:12px}
.prow{display:grid;gap:6px}
.plabel{font-size:13px;font-weight:500;color:var(--ink)}
.seg-lg button{font-size:13px;padding:8px 10px}
.typein{display:flex;gap:8px}
.typein input{flex:1;min-width:0;border:1px solid var(--line);background:#F2F2F2;border-radius:var(--r-btn);padding:9px 12px;font-size:14px;color:#1d1d1d}
.panel .democtl{margin-top:0}
.panel .note{margin-top:0}
.status-live::before{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--ok);margin-right:8px;vertical-align:1px}
.status-off::before{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--warn);margin-right:8px;vertical-align:1px}
.under{margin-top:14px;background:var(--surface);border-radius:var(--r-card);padding:14px 18px}
.under summary{cursor:pointer;font-weight:500;color:var(--ink)}
.heard{display:grid;gap:10px;margin-top:10px;font-size:14px}
.heard .q{border:0;padding:0;background:none;display:block;border-radius:0}
.heard .t{font-size:12px;color:var(--muted)}
.three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.three .big{display:block;font-size:28px;font-weight:600;color:var(--ink);line-height:1;margin-bottom:10px}
@media (max-width:880px){.three{grid-template-columns:minmax(0,1fr)}}

/* phone additions */
.top .icon[hidden]{display:none}
.maal{display:flex;gap:8px;align-items:flex-start;padding:2px 4px;margin:0 -4px;border-radius:8px}
.maal .txt{flex:1;min-width:0}
.maal .v{font-weight:600;color:var(--ink);white-space:nowrap}
.maal.unconf .v{background:var(--hl);padding:0 5px;border-radius:4px}
.okbtn{border:1px solid var(--ok);color:var(--ok);background:transparent;border-radius:999px;font-size:11px;padding:0 9px;cursor:pointer;white-space:nowrap;align-self:center}
.okchip{font-size:11px;color:var(--ok);align-self:center}
.dot{width:6px;height:6px;border-radius:50%;background:var(--muted);flex:none;margin-top:9px}
.item{cursor:default}
.tick{cursor:pointer}
.bubble-me{justify-self:end;max-width:88%;background:var(--surface-2);color:var(--ink);border-radius:16px 16px 4px 16px;padding:8px 12px;font-size:13px}
.reply{max-width:92%}
.chat{display:grid;gap:8px}
.thinking{display:flex;gap:4px;padding:12px}
.thinking i{width:6px;height:6px;border-radius:50%;background:currentColor;opacity:.4;animation:blink 1s infinite}
.thinking i:nth-child(2){animation-delay:.15s}.thinking i:nth-child(3){animation-delay:.3s}
@keyframes blink{50%{opacity:1}}
.ph img{width:100%;height:100%;object-fit:cover;display:block}
.newcase{display:flex;gap:6px}
.casesearch{width:100%;border:1px solid var(--line);background:var(--screen-card);border-radius:12px;padding:10px 12px;font-size:15px;min-height:44px}
.casegroup{font-size:13px;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--muted,#6b6b6b);margin:14px 2px 6px;cursor:pointer;list-style:none}
.casegroup .count{font-weight:400}
.casehead{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:8px 2px 4px}
.casehead .casegroup{margin:0;cursor:default}
.casehead[hidden]{display:none}
.sortbtn{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 14px;border:1.5px solid var(--ink,#1d1d1d);border-radius:999px;background:transparent;color:var(--ink,#1d1d1d);font:inherit;font-size:14px;font-weight:600;white-space:nowrap;cursor:pointer;-webkit-tap-highlight-color:transparent}
.sortbtn svg{width:18px;height:18px;flex:none}
.sortbtn:active{background:var(--ink,#1d1d1d);color:var(--screen-card,#fff)}
.closedcases>summary::-webkit-details-marker{display:none}
.closedcases>summary::before{content:"▸ ";}
.closedcases[open]>summary::before{content:"▾ ";}
.pcard.case.closed{opacity:.7}
.pcard.case[hidden]{display:none}
.newcase input{flex:1;min-width:0;border:1px solid var(--line);background:var(--screen-card);border-radius:12px;padding:8px 12px;font-size:14px}
.newcase button{border:0;background:var(--strong);color:var(--on-strong);border-radius:12px;padding:0 12px;cursor:pointer;font-weight:500}
.count{font-size:11px;color:var(--muted);font-weight:500;margin-left:4px}
.listen .hint{font-size:13px;color:var(--muted)}
.listen .clock{font-variant-numeric:tabular-nums;font-size:13px;color:var(--muted)}
.err{background:var(--warn-bg);color:var(--warn);border-radius:12px;padding:8px 12px;font-size:12.5px}
.mic:disabled{opacity:.5;cursor:wait}
.talk{padding:6px 14px 0;display:grid;gap:6px;max-height:42%;overflow-y:auto}
.talk .bubble-me{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tonechip{flex:none;border:1px solid var(--line);background:var(--screen-card);color:var(--ink);border-radius:999px;font-size:11px;font-weight:500;padding:4px 10px;cursor:pointer}

/* App mode: the phone is the whole page (iPhone and other small screens) */
html.appmode,html.appmode body{background:var(--screen);height:100%;overflow:hidden}
html.appmode body>*:not(.phonewrap){display:none!important}
html.appmode body::before{display:none}
html.appmode .phonewrap{position:fixed;inset:0}
html.appmode .phone{width:100%;max-width:none;height:100%;border-radius:0;padding:0;background:var(--screen);box-shadow:none}
html.appmode .screen{border-radius:0;padding-top:env(safe-area-inset-top);padding-bottom:var(--safe-b,env(safe-area-inset-bottom))}
html.appmode .sbar{display:none}
html.appmode .top{padding-top:12px}
/* The dock sits just above the home indicator: the safe area plus a little air, nothing more. */
html.appmode .dock{--dock-pb:6px;padding-bottom:var(--dock-pb)}
html.appmode input{font-size:16px}

/* device tabs + PC view */
.devcol{position:sticky;top:76px;display:grid;gap:12px}
.devcol .phonewrap{position:static}
.devtabs{max-width:360px;margin:0 auto;width:100%}
.demo.pcmode{grid-template-columns:minmax(0,1fr)}
.demo.pcmode>div:first-child{display:none}
.demo.pcmode .phonewrap{display:none}
.demo.pcmode .devcol{position:static}
.pcwrap[hidden]{display:none}
.laptop{background:var(--phone-bezel);border-radius:16px;padding:10px;box-shadow:0 30px 60px -30px rgba(0,0,0,.45)}
.lbar{display:flex;align-items:center;gap:6px;padding:2px 6px 10px;color:#9a988f;font-size:12px}
.lbar i{width:10px;height:10px;border-radius:50%;background:#3a3c41}
.lbar span{margin-left:10px;background:#26282c;border-radius:6px;padding:2px 10px;color:#b9b7ac}
.lscreen{background:var(--bg);border-radius:8px;min-height:640px;overflow:hidden;color:var(--fg);font-size:14px}
.pc-top{display:flex;align-items:center;gap:16px;padding:12px 18px;background:var(--band);color:var(--band-fg)}
.pc-top img{height:18px;width:auto}
.pc-top b{font-weight:500}
.pc-top input{margin-left:auto;background:#2a2c30;border:0;border-radius:8px;padding:6px 12px;color:#F5F3E8;font-size:13px;width:220px}
.pc-top .who{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--band-muted)}
.pc-top .av{width:28px;height:28px;border-radius:50%;background:#F5F3E8;color:#1D1D1D;display:grid;place-items:center;font-weight:600;font-size:12px}
.pc-body{display:grid;grid-template-columns:300px minmax(0,1fr);min-height:600px}
.pc-side{border-right:1px solid var(--line);padding:16px;display:grid;gap:14px;align-content:start;background:var(--surface-2)}
.stats{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.stat{background:var(--surface);border-radius:12px;padding:10px 12px}
.stat .n{font-size:22px;font-weight:600;color:var(--ink);line-height:1.1}
.stat .l{font-size:11.5px;color:var(--muted)}
.stat.warn .n{color:var(--warn)}
.pc-list{display:grid;gap:6px}
.pc-case{background:var(--surface);border-radius:12px;padding:10px 12px;cursor:pointer;border:1px solid transparent;display:grid;gap:2px;text-align:left;font:inherit;color:inherit}
.pc-case[aria-current="true"]{border-color:var(--strong)}
.pc-case b{color:var(--ink);font-weight:600;font-size:13.5px}
.pc-case small{color:var(--muted);font-size:12px}
.pc-main{padding:18px 22px;display:grid;gap:14px;align-content:start}
.pc-head{display:flex;align-items:flex-start;gap:12px;flex-wrap:wrap}
.pc-head h3{font-size:22px}
.pc-head .acts{margin-left:auto;display:flex;gap:8px}
.quote{background:var(--surface);border-left:3px solid var(--strong);border-radius:8px;padding:10px 14px;font-size:13.5px}
.quote small{display:block;color:var(--muted);font-size:11.5px;margin-top:2px}
.pc-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.pc-card{background:var(--surface);border-radius:14px;padding:14px 16px;display:grid;gap:8px;align-content:start}
.pc-card h4{font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);font-weight:600}
.pc-card ul{margin:0;padding-left:18px;display:grid;gap:3px}
.pc-card table{min-width:0}
.pc-card td,.pc-card th{padding:6px 4px;font-size:13px}
.pc-card .ok{color:var(--ok);font-size:12px;font-weight:500}
.bar{height:6px;border-radius:3px;background:var(--surface-2);overflow:hidden}
.bar i{display:block;height:100%;background:var(--ok)}
.pc-photos{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.pc-photos figure{margin:0;display:grid;gap:4px;font-size:11.5px;color:var(--muted)}
.pc-photos img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:8px}
.feed{display:grid;gap:6px;font-size:13px}
.feed div{display:grid;grid-template-columns:48px minmax(0,1fr);gap:8px}
.feed .t{color:var(--muted);font-size:12px}
.toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);background:var(--strong);color:var(--on-strong);padding:10px 16px;border-radius:10px;font-size:14px;z-index:50;max-width:90vw}
.syncnote{font-size:12px;color:var(--muted);text-align:center}
@media (max-width:1000px){.pc-body{grid-template-columns:minmax(0,1fr)}.pc-side{border-right:0}.pc-grid{grid-template-columns:minmax(0,1fr)}.pc-photos{grid-template-columns:repeat(3,1fr)}}
.del{border:0;background:transparent;color:var(--muted);font-size:12px;cursor:pointer;padding:2px 6px;border-radius:6px}.del:hover{background:var(--warn-bg);color:var(--warn)}
/* Lock sideways scrolling/wobble in the app */
/* No double-tap zoom anywhere in the app (a double tap on the list zoomed by accident, 26/11 2026). Zero specificity, so
   any element with its own touch-action (the photo viewer, the level) keeps it. maximum-scale=1 in the viewport too. */
:where(html.appmode, html.appmode *){touch-action:manipulation}
html.appmode,html.appmode body{overflow-x:hidden;overscroll-behavior:none;touch-action:pan-y;width:100%;max-width:100vw}
html.appmode .phonewrap,html.appmode .phone,html.appmode .screen{overflow-x:hidden;max-width:100vw}
html.appmode .body,html.appmode .talk{overflow-x:hidden;overscroll-behavior:contain;touch-action:pan-y}
.body,.talk{overflow-x:hidden}
.pcard,.item .txt,.maal .txt,.reply,.bubble-me{overflow-wrap:anywhere}

/* Main screen pass (design critique 11/11 2026): the byggeseddel owns the screen, big red record button, glove-sized targets */
:root{--rec:#D7372B;--rec-ring:rgba(215,55,43,.45)}
html.appmode .screen{font-size:16px}
html.appmode .pcard{border-radius:20px;padding:14px 16px}
html.appmode .sec h4{font-size:12px}
html.appmode .item .src,html.appmode .maal .src{display:block;font-size:12.5px;color:var(--muted)}
html.appmode .maal{padding-block:3px}
/* Header buttons: 44 px to hit, icon stays the same size */
html.appmode .top{gap:8px}
html.appmode .top .icon{width:44px;height:44px}
html.appmode .top h3{font-size:19px}
/* Empty-section hints read as hints, not content */
.hintx{display:flex;gap:8px;align-items:flex-start;margin:0;color:color-mix(in srgb,var(--muted) 80%,transparent);font-style:italic;font-size:.92em;line-height:1.4}
.hintx svg{width:15px;height:15px;flex:none;margin-top:.2em;opacity:.7}
/* Measures: heading says what yellow means, one tap confirms everything */
.sechead{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-height:28px}
.sechead h4{margin-right:auto}
.sechead .need{font-size:12px;font-weight:500;color:var(--ink);background:var(--hl);border-radius:999px;padding:2px 9px}
.okall{border:0;background:var(--ok);color:#fff;border-radius:999px;font:600 13.5px var(--font);padding:0 14px;min-height:36px;cursor:pointer;position:relative;white-space:nowrap}
.maal{align-items:center}
.maal .v{font-size:1.05em}
.maal.unconf .v{padding:2px 8px;border-radius:999px}
.okbtn{position:relative;border:0;background:var(--ok-bg);color:var(--ok);font:600 14px var(--font);min-width:52px;min-height:36px;padding:0 14px;border-radius:999px}
.okbtn::before,.okall::before{content:"";position:absolute;inset:-6px -4px}
.okchip{font-size:16px;font-weight:600;min-width:52px;text-align:center}
/* Mikkel's reply: full when it arrives, then one line. The transcript only shows when open. */
.talk{max-height:none;overflow:visible;padding:4px 14px 0}
.reply{border-radius:20px 20px 20px 6px;cursor:pointer;font-size:15px;line-height:1.45;padding:12px 14px;max-height:40vh;overflow-y:auto}
.reply.thinking{cursor:default}
.reply .rt{display:block}
.reply .heardline{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:13px;opacity:.65;font-style:italic;margin-bottom:8px}
.reply.mini{display:flex;align-items:center;gap:8px;padding:9px 14px;border-radius:999px;max-width:100%}
.reply.mini .heardline,.reply.mini small{display:none}
.reply.mini .rt{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px}
.reply.mini::after{content:"";flex:none;width:8px;height:8px;border-right:2px solid currentColor;border-top:2px solid currentColor;transform:rotate(-45deg);margin-top:4px;opacity:.7}
html.appmode .reply small{font-size:12px}
/* The case briefing: a heading per part, one line per item, quantity first. Taller than a normal reply and scrolls
   inside itself; the bottom fades so a cut line reads as "more below", never as clipped. */
.reply.brief{max-height:min(58vh,560px);overscroll-behavior:contain;padding-bottom:22px;-webkit-mask-image:linear-gradient(#000 calc(100% - 26px),transparent);mask-image:linear-gradient(#000 calc(100% - 26px),transparent)}
.reply.brief.mini{max-height:none;padding-bottom:9px;-webkit-mask-image:none;mask-image:none}
.reply .bvmini,.reply.mini .bv{display:none}
.reply.mini .bvmini{display:block}
.bv .bh{display:block;font-weight:600;font-size:16px;line-height:1.3}
.bv .bs{margin-top:14px}
.bv .bs.sub{margin-top:10px}
.bv h5{margin:0 0 4px;font:600 11.5px/1.3 var(--font);letter-spacing:.06em;text-transform:uppercase;opacity:.62}
.bv h6{margin:0 0 2px;font:600 11.5px/1.3 var(--font);opacity:.62}
.bv .bs.warn h5{opacity:1}
.bv ul{list-style:none;margin:0;padding:0}
.bv li{display:flex;gap:10px;padding:6px 0;border-top:1px solid color-mix(in srgb,currentColor 12%,transparent)}
.bv li:first-child{border-top:0;padding-top:2px}
.bv li>b.num{display:none}
.bv ul.qty li>b.num{display:block;flex:none;width:6.2em;font-weight:600}
.bv li>span{flex:1;min-width:0}
.bv li small{display:block;font-size:12.5px;opacity:.62;margin-top:1px}
.bv li.bm{justify-content:space-between}
.bv li.bm>b.num{display:block;font-weight:600;white-space:nowrap}
.bv li.bm.unconf b{opacity:.7;font-style:italic}
.bv .bmore{margin:4px 0 0;font-size:13px;opacity:.62}
.bv>p{margin:10px 0 0}
/* Record button: bigger and red. Stop state stays red with a ring. */
.dock{padding-top:6px}
.dockrow{gap:28px}
.mic{width:88px;height:88px;background:var(--rec);color:#fff;box-shadow:0 10px 24px -8px var(--rec-ring)}
.mic svg{width:36px;height:36px}
.mic.live{background:var(--rec)}
@keyframes pulse{0%{box-shadow:0 0 0 0 var(--rec-ring)}70%{box-shadow:0 0 0 18px transparent}100%{box-shadow:0 0 0 0 transparent}}
.side{width:52px;height:52px}
.side svg{width:22px;height:22px}
.icon.side.off{color:var(--muted);background:var(--surface-2)}
.sechead{flex-wrap:nowrap}
.sechead .when{font-size:12px;color:var(--muted);white-space:nowrap}
.notelbl{font-size:12px;color:var(--muted);margin-top:6px;padding-top:6px;border-top:1px solid var(--line)}
.sechead+.notelbl{margin-top:0;padding-top:0;border-top:0}
html.appmode .seg button{min-height:40px;font-size:13.5px}

/* Case list header: the brand sits top right, Mikkel's tone lives in the settings below the list */
.top .brandlogo{flex:none;height:16px;width:auto;opacity:.9}
html.appmode .top .brandlogo{height:18px}

/* Case list: brand left, cog right, a large title. Nothing else above the cases. */
.top .sp{flex:1}
.top:has(.apptitle){position:relative}
.top .apptitle{position:absolute;left:50%;transform:translateX(-50%);border:0;background:none;padding:10px 12px;min-height:44px;font:600 15px var(--font);color:#393A3D;letter-spacing:.01em;white-space:nowrap;cursor:pointer}
.cmdsheet{display:grid;gap:16px;text-align:left}
.cmdsheet .slbl{text-align:left}
.cmdsheet h2{font-size:22px;margin:0 44px 0 0}
.cmdrow{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:56px;padding:6px 0;border-bottom:1px solid var(--line);font:500 15px var(--font)}
.cmdrow:last-child{border-bottom:0}
.cmdtry{flex:none;display:grid;place-items:center;width:52px;height:52px;padding:0;border:1.5px solid #393A3D;border-radius:50%;background:transparent;color:#393A3D;cursor:pointer}
.cmdtry svg{width:20px;height:20px;margin-left:3px}
.cmdclose{min-height:52px;width:100%}
.top .icon.gear svg{width:22px;height:22px}
.bigtitle{font-size:26px;font-weight:600;color:var(--ink);margin:2px 2px 12px;letter-spacing:-.01em}

/* Settings sheet and welcome: one place, big targets, left aligned */
.pwa-sheet.settings{text-align:left;justify-items:stretch;max-height:92dvh;overflow:auto;padding-top:22px}
.setx{display:grid;gap:18px}
.setx h2{font-size:22px;margin:0 44px 0 0}
.welcome .setx{justify-items:stretch;text-align:left}
.welcome .setx>.pwa-icon,.welcome .setx>h2,.welcome .setx>.pwa-lead{justify-self:center;text-align:center;margin-right:0}
.who{display:flex;align-items:center;gap:12px}
.who{border:0;background:none;padding:0;font:inherit;text-align:left;cursor:pointer;width:100%}
.who .av{position:relative;width:56px;height:56px;border-radius:50%;background:var(--strong);color:var(--on-strong);display:grid;place-items:center;font-weight:600;font-size:18px;flex:none}
.who .av img{width:100%;height:100%;border-radius:50%;object-fit:cover}
.avcam{position:absolute;right:-4px;bottom:-4px;width:24px;height:24px;border-radius:50%;background:var(--surface);color:var(--ink);display:grid;place-items:center;box-shadow:0 1px 3px rgba(0,0,0,.25)}
.avcam svg{width:14px;height:14px}
.whot{display:grid}
.who b{display:block;font-size:17px;color:var(--ink)}
.who small{color:var(--muted);font-size:13.5px}
.sgrp{display:grid;gap:8px}
.slbl{font-size:12px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.sheetseg button{min-height:48px;font-size:15px}
.sex{margin:0;font-size:14px;color:var(--muted);font-style:italic}
.srow{display:flex;align-items:center;gap:12px;min-height:56px;background:var(--surface-2);border-radius:16px;padding:8px 14px}
.vtrow .vtbtn{width:auto;flex:none;min-height:48px;padding:0 22px}
.vtres{margin:8px 4px 0;font-size:13.5px;line-height:1.45;color:var(--muted)}
.vtres span{display:block}
.vtres span+span{margin-top:6px}
.srow+.srow{margin-top:0}
.stxt{flex:1;font-size:16px;color:var(--ink);font-weight:500}
.stxt small{display:block;font-size:12.5px;color:var(--muted);font-weight:400}
.srowstack{flex-direction:column;align-items:stretch;padding:12px 14px}
.srowstack .pwa-btn{width:100%}
.son{font-weight:600;color:var(--ok)}
.switch{flex:none;width:56px;height:34px;border-radius:999px;border:0;background:var(--line);position:relative;cursor:pointer;transition:background .15s}
.switch::after{content:"";position:absolute;top:3px;left:3px;width:28px;height:28px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:transform .15s}
.switch[aria-checked="true"]{background:var(--ok)}
.switch[aria-checked="true"]::after{transform:translateX(22px)}
.switch::before{content:"";position:absolute;inset:-8px}
.sbtn{border:0;border-radius:14px;min-height:48px;font:600 15px var(--font);background:var(--strong);color:var(--on-strong);cursor:pointer}
.slink{justify-self:start;border:0;background:none;color:var(--muted);font:500 14px var(--font);text-decoration:underline;padding:6px 2px;cursor:pointer}
.snote{margin:0;font-size:13px;color:var(--muted)}
.snote.center{text-align:center}
.sfoot{margin:6px 0 0;text-align:center;font:400 12px var(--font);color:var(--muted)}
.sfoot a{color:inherit;text-decoration:underline;text-underline-offset:2px}
.cogi{display:inline-grid;vertical-align:-4px}
.cogi svg{width:18px;height:18px}
.slogout{border:1px solid var(--line);background:transparent;border-radius:14px;min-height:52px;font:600 15px var(--font);color:#B3261E;cursor:pointer;margin-top:4px}
/* packing list (#6) and KS strip (#36) */
.pack .item b.num{font-weight:600;color:var(--ink);margin-right:2px}
.ksbar{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 10px}
.ksbar .ks{font-size:12px;border:1px dashed var(--line);color:var(--muted);border-radius:999px;padding:3px 10px;white-space:nowrap}
.ksbar .ks.on{border-style:solid;border-color:var(--ok);color:var(--ok);background:var(--ok-bg)}
.ph .ksstep{display:block;font-style:normal;font-size:10.5px;letter-spacing:.04em;text-transform:uppercase;opacity:.8}

/* One number, big: tap a measurement to adjust it with gloves on. */
.maal[data-edit]{cursor:pointer;-webkit-tap-highlight-color:transparent}
.maal[data-edit]:active{background:var(--surface-2)}
.pwa-sheet.vpanel{gap:0;padding-top:22px}
.vsheet{display:grid;gap:12px;width:100%;text-align:center;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.vs-label{margin:0 44px;font-size:15px;font-weight:500;color:var(--muted)}
.vs-num{display:flex;justify-content:center;align-items:baseline;gap:8px;font-size:76px;font-weight:600;line-height:1;color:var(--ink);font-variant-numeric:tabular-nums}
.vs-num small{font-size:28px;font-weight:500;color:var(--muted)}
.vs-was,.vs-msg{min-height:19px;margin:0;font-size:14px;color:var(--muted)}
.vs-pm{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.vs-btn{min-height:104px;border:0;border-radius:22px;background:var(--surface-2);color:var(--ink);font:500 60px/1 var(--font);cursor:pointer;touch-action:manipulation}
.vs-btn:active{background:var(--strong);color:var(--on-strong)}
.vs-step{margin:-2px 0 4px;font-size:13px;color:var(--muted)}
.vs-say{display:flex;align-items:center;justify-content:center;gap:10px;min-height:68px;border:2px solid var(--strong);background:transparent;color:var(--ink);border-radius:18px;font:600 17px var(--font);cursor:pointer;touch-action:manipulation}
.vs-say svg{width:26px;height:26px}
.vs-say.live{background:var(--strong);color:var(--on-strong);animation:pulse 1.2s infinite}
.vs-say:disabled{opacity:.6}
.vs-ok{min-height:62px;font-size:18px}
@media (prefers-reduced-motion:reduce){.vs-say.live{animation:none}}
/* daily log (#8, #35) and briefing (#34) */
.day.on{outline:2px solid var(--ink);outline-offset:-2px}
.dayq{margin:2px 0 10px;font-size:17px;font-weight:600;color:var(--ink)}
.daysteps{display:grid;gap:8px}
.daysteps span,.daysteps button{width:100%;border:0;text-align:left;font:inherit;cursor:pointer;display:flex;align-items:center;gap:10px;min-height:48px;background:var(--surface-2);border-radius:14px;padding:8px 12px;font-size:15px;color:var(--ink)}
.daysteps .ok{color:var(--ok);background:var(--ok-bg)}
.daysteps svg,.daybtn svg{width:22px;height:22px;flex:none}
.daybtn{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:52px;margin-top:8px;border:0;border-radius:14px;background:var(--strong);color:var(--on-strong);font:600 15px var(--font);cursor:pointer}
.day .item.past .txt{color:var(--muted)}
.day .trouble{display:block;color:#B3261E;font-size:13.5px}

/* photo sheet: tap a photo to see it big and delete it */
.ph[data-foto]{cursor:pointer}
.fsheet img{width:100%;max-height:36dvh;object-fit:contain;border-radius:14px;display:block;background:#1d1d1d}
.fsheet .fs-cap{font-size:17px;margin:14px 0 4px;line-height:1.35}
.fsheet .fs-cap .ksstep{display:block;font-style:normal;font-size:12px;letter-spacing:.04em;text-transform:uppercase;opacity:.7}
.fsheet .fs-hint{font-size:14px;opacity:.65;margin:0 0 16px}
.fsheet .fs-del{width:100%;min-height:52px}
.fsheet .fs-close{width:100%;min-height:52px;margin-top:10px;background:transparent;color:var(--ink);border:1.5px solid var(--line,#ccc)}
.fsheet .fs-fix{width:100%;margin:10px 0 8px}
.fsheet .fs-type{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin:0 0 6px}
.fsheet .fs-type input{width:100%;min-width:0;box-sizing:border-box;min-height:48px;border:1.5px solid var(--line,#ccc);border-radius:14px;padding:0 14px;font:400 16px var(--font);background:transparent;color:var(--ink)}
.fsheet .fs-type .pwa-btn{width:auto;min-height:48px;padding:0 18px}
.fsheet .vs-msg{margin:0 0 12px}
.fsheet .fs-del.armed{background:#c0392b;border-color:#c0392b;color:#fff}

/* Feedback: small, quiet, bottom left of the dock, well clear of the mic. The hit area is 48px for gloves. */
.dock{position:relative}
.fbbtn{position:absolute;left:4px;bottom:calc(var(--dock-pb,18px) + 20px);width:48px;height:48px;border:0;background:transparent;color:var(--muted);display:grid;place-items:center;cursor:pointer;opacity:.75;touch-action:manipulation;z-index:2}
.fbbtn svg{width:20px;height:20px}
.fbbtn::before{content:"";position:absolute;width:34px;height:34px;border-radius:50%;border:1px solid var(--line);background:var(--screen-card)}
.fbbtn svg{position:relative}
.fbbtn:active{opacity:1;color:var(--ink)}
.fbsheet{display:grid;gap:14px}
.fbsheet h2{font-size:22px;margin:0 44px 0 0}
.fb-ico{width:44px;height:44px;border-radius:50%;background:var(--surface-2);display:grid;place-items:center;color:var(--ink)}
.fb-ico svg{width:24px;height:24px}
.fb-lead{margin:0;color:var(--muted);font-size:15px;line-height:1.45}
.fb-text{margin:0;padding:12px 14px;border-left:3px solid var(--strong);background:var(--surface-2);border-radius:0 14px 14px 0;font-size:16px;line-height:1.45;max-height:30dvh;overflow:auto;white-space:pre-wrap}
.fb-row{display:grid;grid-template-columns:1fr 1.4fr;gap:10px}
.fb-row[hidden],.fb-rec[hidden]{display:none}
.fb-again{min-height:58px;font-size:16px}
.fb-again svg{width:22px;height:22px}
.fb-send{min-height:58px;font-size:17px}
.fb-thanks{display:grid;justify-items:center;gap:6px;padding:48px 8px 40px;text-align:center;cursor:pointer}
.fb-thanks b{font-size:40px;font-weight:600;color:var(--ink);letter-spacing:-.01em}
.fb-thanks span{font-size:16px;color:var(--muted)}
.confetti{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:3}
/* Toasts are added to <body>, which app mode hides except for the phone: show them, above the dock. (Before this no toast ever showed on the phone.) */
html.appmode body>div.toast,html.appmode body>button.toast{display:block!important;bottom:calc(var(--safe-b,env(safe-area-inset-bottom)) + 132px);text-align:center;width:max-content;max-width:calc(100vw - 32px)}

/* The quote on the case (no prices) */
.pcard.quote > summary { cursor: pointer; list-style: none; min-height: 48px; }
.pcard.quote > summary::-webkit-details-marker { display: none; }
.pcard.quote > summary h4::after { content: " ›"; opacity: .5; }
.pcard.quote[open] > summary h4::after { content: " ˅"; }
.pcard.quote .item.sub { padding-left: 22px; opacity: .85; }
.pcard.quote .qtext .txt, .pcard.quote .qnote { white-space: normal; opacity: .8; font-size: .92em; }
.pcard.quote .qtitle { font-weight: 600; margin: 4px 0; }
.pcard.quote .qwarn, .pcard.pack .qwarn { display: block; margin: 6px 0; }

/* Mikkel's rule proposal (kontoret) on the case list */
.pcard.rulecard{display:flex;flex-direction:column;gap:6px;border:2px solid var(--strong)}
.rulecard b{font-size:17px;line-height:1.35}
.rulecard .rulebtns{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:6px}
.rulecard .rulebtns .pwa-btn{min-height:52px}
.rulecard .pwa-btn.ghost{border:2px solid var(--strong);color:var(--ink);font-weight:600;padding:14px 16px}
/* Products and data sheets (cog, or "vis mig databladet for ...") */
.dssheet{display:grid;gap:12px;text-align:left;width:100%}
.dssheet h2{margin:0}
.dsq{width:100%;box-sizing:border-box;min-height:48px;border:1.5px solid var(--line,#ccc);border-radius:14px;padding:0 14px;font:400 16px var(--font);background:transparent;color:var(--ink)}
.dslist{display:grid;gap:8px}
.dsrow{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line,#e5e2d6)}
.dst b{display:block;font-weight:600;color:var(--ink)}.dst small{display:block;color:var(--muted);font-size:13px;margin-top:2px}
.dsbtns{display:flex;flex-wrap:wrap;gap:8px}.dsbtns .dsopen{width:auto;flex:1 1 100%}.dsbtns .dsalt{flex:1 1 40%;min-height:44px;font-size:15px}
.dsalt{background:transparent!important;color:var(--ink,#1f1f22)!important;box-shadow:inset 0 0 0 1.5px currentColor}
.dsopen{min-height:44px;padding:0 14px;display:inline-grid;place-items:center;text-decoration:none;white-space:nowrap}
.dsnone{font-size:13px;color:var(--muted)}
.srowbtn{width:100%;background:none;border:0;padding:0;font:inherit;color:inherit;text-align:left;cursor:pointer}
.srowbtn .chev{font-size:22px;color:var(--muted)}

/* Mikkels Dojo: full screen card stack on the phone, glove-sized buttons */
.dojocard{display:flex;align-items:center;gap:14px;width:100%;text-align:left;border:2px solid var(--strong);border-radius:16px;padding:12px 14px;margin:4px 0 14px;background:var(--surface);color:var(--ink);font:inherit;cursor:pointer;touch-action:manipulation}
.dojocard b{display:block;font-size:17px}.dojocard small{display:block;color:var(--muted);font-size:13px;margin-top:2px}
.dojoic{flex:none;display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:var(--strong);color:var(--on-strong)}.dojoic svg{width:26px;height:26px}
.brandbtn{border:0;background:none;padding:10px 8px 10px 0;margin:-10px 0;cursor:pointer;display:flex;align-items:center;touch-action:manipulation}

/* One field finds a case or starts a new one: no match shows this row instead of a separate Create button. */
.createhit{display:flex;align-items:center;gap:12px;width:100%;min-height:48px;padding:8px 16px;border:1.5px dashed var(--line);border-radius:20px;background:var(--screen-card);color:var(--ink);font:inherit;font-size:16px;font-weight:600;text-align:left;cursor:pointer}
.createhit[hidden]{display:none}
.createhit svg{flex:none;width:22px;height:22px}
.createhit span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html.appmode .casesearch{font-size:16px;height:42px;min-height:0;padding:0 14px;line-height:42px}

/* Live waveform while recording (app.js waveStart): bars scale with the microphone, charcoal, faded at the ends. */
.wave{display:flex;align-items:center;justify-content:center;gap:3px;height:96px;width:min(100%,300px)}
.wave i{flex:1;max-width:5px;height:5px;border-radius:3px;background:var(--ink);transition:background .3s}
.wave i:nth-child(-n+4),.wave i:nth-last-child(-n+4){opacity:.45}
.wave i:nth-child(n+5):nth-child(-n+8),.wave i:nth-last-child(n+5):nth-last-child(-n+8){opacity:.7}
.wave.weak i{background:#E07B2E}
.listen:not(.gate){background:var(--screen)}
.recwarn{margin:-6px 0 0;min-height:1.3em;font-size:14px;font-weight:500;color:#C4621C}
.listen #pstop{animation:none;--lvl:0;box-shadow:0 0 0 calc(4px + var(--lvl) * 22px) rgba(215,55,43,.13),0 0 0 calc(2px + var(--lvl) * 10px) rgba(215,55,43,.2)}

/* The line above the mic: one real command to try, now and then a dry joke. Quiet, one line, never in the way of a tap. */
.nudge{margin:0;padding:2px 6px 0;text-align:center;font-size:13px;line-height:1.35;color:var(--muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-wrap:balance;pointer-events:none;transition:opacity .35s ease}
.nudge.out{opacity:0}
.nudge[hidden]{display:none}
.nudge .nc{color:var(--ink);font-weight:500}
.nudge .nj{font-style:italic}
@media (prefers-reduced-motion:reduce){.nudge{transition:none}}

/* iOS 26 short viewport (pwa.js measure): everything below innerHeight is clipped, so full-screen layers use the
   viewport's own height, never 100lvh/screen height, and the app's bottom edge is the edge iOS gives. */
html.ios-short .dojo{height:100%}
html.appmode.ios-short .dock{--dock-pb:16px} /* room for the mic's glow, which .screen would clip */
/* Fold shadows (app.js foldShadows): under the header when the list is scrolled, over whatever follows the list
   (Mikkel's reply, the nudge or the dock) when more is below. */
html.appmode .top,html.appmode .body + *{position:relative;z-index:3;background:var(--screen);transition:box-shadow .2s}
html.appmode .screen.sh-top .top{box-shadow:0 8px 14px -10px rgba(29,29,29,.28)}
html.appmode .screen.sh-bot .body + *{box-shadow:0 -8px 14px -10px rgba(29,29,29,.28)}

/* iOS 26 installed app (WebKit bug 301108): with viewport-fit=cover + black-translucent, iOS gives a document that is
   shorter than the screen a viewport that is short by the status bar (Bram's iPhone 15 Pro: 793 of 852), and paints
   nothing below it. A document at least screen-tall gets the full viewport. min() keeps it at the visible height
   everywhere else, so nothing scrolls. Same fix as frappe-ui #1284 / dizey #155. */
@media (display-mode: standalone){
  html.appmode{height:auto;min-height:min(100lvh,calc(100% + env(safe-area-inset-top,0px)))}
}

/* Mikkels Dojo, built to mock-up E (Bram 25/11 2026; /mnt/project-files/ai-mikkel/dojo/mockups/dojo-mock-E-final.png), with his
   two changes: no counter on the screen, and Næste is one green circle over the text box. Values are the mock's own. */
.dojo{position:fixed;top:0;left:0;right:0;bottom:auto;height:100lvh;z-index:60;background:#000;color:#fff;opacity:0;transform:translateY(16px);transition:opacity .2s,transform .2s;overscroll-behavior:contain;overflow:hidden}
.dojo.in{opacity:1;transform:none}
.dj-top{position:absolute;top:0;left:0;right:0;z-index:4;display:flex;align-items:center;gap:10px;padding:calc(env(safe-area-inset-top) + 5px) 18px 40px;background:linear-gradient(rgba(0,0,0,.55),rgba(0,0,0,0));pointer-events:none;transition:opacity .18s}
.dj-top b{flex:1;font-size:17px;font-weight:600}
.dj-x{pointer-events:auto;width:40px;height:40px;border-radius:50%;border:0;padding:0;background:rgba(255,255,255,.18);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);color:#fff;display:grid;place-items:center;cursor:pointer}
.dj-x svg{width:20px;height:20px}
.dj-stage{position:absolute;inset:0}
.dj-img{position:absolute;inset:0;transition:opacity .18s}
.dj-img{overflow:hidden}.dj-img img{position:absolute;display:block;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;pointer-events:none}
.dj-bg{inset:0;width:100%;height:100%;object-fit:cover;filter:blur(28px) brightness(.55);transform:scale(1.15);display:none!important}.dj-img.fitted .dj-bg{display:block!important}
.dj-dots{position:absolute;left:0;top:0;width:100%;height:100%}
.dj-pin{position:absolute;z-index:4;display:flex;align-items:center;gap:8px;transform:translate(-13px,-13px);border:0;background:none;padding:0;color:#fff;font:500 14px var(--font);cursor:pointer;touch-action:manipulation}
.dj-pin::before{content:"";position:absolute;left:-11px;top:-11px;width:48px;height:48px} /* a glove-sized target around the dot */
.dj-pin i{width:26px;height:26px;border-radius:50%;background:#111;border:3px solid #fff;box-shadow:0 2px 10px rgba(0,0,0,.5)}
.dj-pin span{background:#111;color:#fff;padding:5px 11px;border-radius:999px;white-space:nowrap}
.dj-pin.left{flex-direction:row-reverse;transform:translate(calc(-100% + 13px),-13px)}
.dj-pin.new{transform:translate(-15px,-15px)}
.dj-pin.new i{width:30px;height:30px;box-shadow:0 0 0 10px rgba(255,255,255,.28)}
.dj-tags{position:absolute;z-index:4;top:calc(env(safe-area-inset-top) + 53px);left:16px;display:grid;gap:8px;justify-items:start;transition:opacity .18s}
.dj-tag{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 14px;border-radius:999px;border:0;background:rgba(22,22,22,.72);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);color:#fff;font:500 14px var(--font);cursor:pointer;touch-action:manipulation}
.dj-tag small{font-size:10px;opacity:.6;margin-left:4px}
.dj-tag.add{background:rgba(255,255,255,.16);border:1.5px dashed rgba(255,255,255,.6)}
.dj-nudge{position:absolute;z-index:4;left:50%;top:40%;transform:translate(-50%,-50%);display:grid;justify-items:center;gap:14px;pointer-events:none}
.dj-nudge i{width:70px;height:70px;border-radius:50%;border:3px solid #fff;box-shadow:0 0 0 12px rgba(255,255,255,.22),0 0 0 26px rgba(255,255,255,.1)}
.dj-nudge span{white-space:nowrap;font-size:16px;font-weight:500;padding:9px 16px;border-radius:999px;background:rgba(22,22,22,.7);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}
.dj-foot{position:absolute;z-index:4;left:12px;right:12px;bottom:max(28px,calc(var(--safe-b,env(safe-area-inset-bottom)) + 12px));transition:opacity .18s}
.dj-txt{width:100%;display:grid;gap:4px;text-align:left;padding:14px 16px;border:0;border-radius:22px;background:rgba(22,22,22,.7);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);color:#fff;font:inherit;cursor:pointer;touch-action:manipulation;max-height:40vh;overflow:auto}
.dj-txt small{display:flex;justify-content:space-between;gap:10px;padding-right:66px;font-size:11px;letter-spacing:.05em;text-transform:uppercase;color:rgba(255,255,255,.65)}
.dj-txt small span{display:inline-flex;align-items:center;gap:4px}.dj-txt small svg{width:13px;height:13px}
.dj-txt.rec{box-shadow:0 0 0 3px #D7372B}.dj-txt.rec .dj-q{opacity:.55}
.dj-live{color:#FF8A80}.dj-ok{color:#8CCBA6}
.dj-q{font-size:17px;font-weight:500;line-height:1.3}
.dj-wave{display:flex;gap:3px;align-items:center;height:28px}
.dj-wave i{width:4px;height:8px;border-radius:2px;background:#fff;animation:djwave .9s ease-in-out infinite}
.dj-wave i:nth-child(3n){animation-delay:.15s}.dj-wave i:nth-child(3n+1){animation-delay:.3s}.dj-wave i:nth-child(4n){animation-delay:.45s}
@keyframes djwave{50%{height:26px}}
.dj-wait{color:rgba(255,255,255,.7);animation:blink 1.2s infinite}
.dj-retry{margin-left:8px;font-size:14px;border-bottom:1.5px solid currentColor}
.dj-msg{font-size:13px;color:rgba(255,255,255,.75)}.dj-msg:empty{display:none}
.dj-next{position:absolute;right:10px;top:-32px;width:64px;height:64px;border-radius:50%;border:0;background:#2E6A4C;color:#fff;font:600 28px/1 var(--font);display:grid;place-items:center;box-shadow:0 6px 18px rgba(0,0,0,.4);cursor:pointer;touch-action:manipulation}
.dj-next.dim{opacity:.4}
.dj-next.skip{background:rgba(255,255,255,.2);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
.dj-empty{position:absolute;inset:0;display:grid;place-items:center;text-align:center;color:rgba(255,255,255,.75);font-size:17px;padding:24px}
.dojo.idle{background:var(--bg);color:var(--ink)}.dojo.idle .dj-top{background:none}.dojo.idle .dj-x{background:var(--surface-2);color:var(--muted)}.dojo.idle .dj-empty{color:var(--muted)}
.dj-pause{position:absolute;inset:0;margin:auto;height:max-content;display:grid;justify-items:center;gap:12px;text-align:center;max-width:320px;padding:24px}
.dj-pause b{font-size:20px}.dj-pause p{margin:0;color:var(--muted);font-size:15px;line-height:1.45}.dj-pause .pwa-btn{min-width:160px;min-height:52px;margin-top:6px}
/* Sheets, as in the mock-ups: light, whatever the phone's theme, so the photo behind stays the dark part. */
.dj-sheetwrap{position:absolute;inset:0;z-index:6;background:rgba(0,0,0,0);transition:background .18s;display:flex;align-items:flex-end}
.dj-sheetwrap.in{background:rgba(0,0,0,.25)}.dj-sheetwrap.whole.in{background:rgba(0,0,0,.45)}
.dojo.dj-open .dj-top,.dojo.dj-open .dj-tags,.dojo.dj-open .dj-foot,.dojo.dj-open .dj-nudge{opacity:0;pointer-events:none}
.dj-sheet{width:100%;display:grid;gap:14px;background:#F6F3EA;color:#1D1D1D;border-radius:28px 28px 0 0;padding:12px 20px max(34px,calc(var(--safe-b,env(safe-area-inset-bottom)) + 12px));transform:translateY(100%);transition:transform .18s ease-out;max-height:85%;overflow:auto}
.dj-sheetwrap.in .dj-sheet{transform:none}
.dj-grab{width:40px;height:5px;border-radius:3px;background:#CFCABC;justify-self:center}
.dj-sheet h3{margin:0;font-size:19px;font-weight:600}
.dj-g small{display:block;font-size:11px;letter-spacing:.05em;text-transform:uppercase;color:#77746A;margin-bottom:6px}
.dj-chips{display:flex;flex-wrap:wrap}
.dj-chip{display:inline-flex;align-items:center;height:52px;padding:0 18px;margin:0 6px 6px 0;border-radius:999px;border:2px solid #D8D3C5;background:transparent;color:#1D1D1D;font:500 16px var(--font);cursor:pointer;touch-action:manipulation}
.dj-sheetwrap.whole .dj-chip{height:44px;padding:0 16px;font-size:15px}
.dj-chip.on{background:#37383C;border-color:#37383C;color:#fff}
.dj-word{justify-self:start;display:inline-flex;align-items:center;gap:8px;height:52px;padding:0 18px;border-radius:999px;border:2px solid #37383C;background:transparent;color:#1D1D1D;font:600 15px var(--font);cursor:pointer}
.dj-word svg{width:18px;height:18px}.dj-word.live{background:#D7372B;border-color:#D7372B;color:#fff}
.dj-sheet .dj-msg{color:#77746A;margin:0}
.dj-del{justify-self:start;border:0;background:none;color:#B3261E;font:600 16px var(--font);padding:10px 2px;cursor:pointer}
.dj-done{height:56px;border:0;border-radius:16px;background:#37383C;color:#fff;font:600 16px var(--font);cursor:pointer}
@media (prefers-reduced-motion:reduce){.dojo,.dj-img,.dj-sheet,.dj-sheetwrap,.dj-top,.dj-tags,.dj-foot{transition:none}.dj-wave i,.dj-wait{animation:none}}
html.ios-short .dojo{height:100%}
/* Gloves (field app): every tap area at least ~60px, without changing how anything looks. The extra area is an
   invisible frame around the button; it never reaches over a neighbouring button. */
html.appmode .okbtn::before,html.appmode .okall::before{inset:-12px -6px}
html.appmode .del{position:relative}
html.appmode .del::after{content:"";position:absolute;inset:-18px -12px}
html.appmode .sortbtn{position:relative}
html.appmode .sortbtn::after{content:"";position:absolute;inset:-8px -4px}
html.appmode .top .icon{position:relative}
html.appmode .top .icon::after{content:"";position:absolute;inset:-8px}
html.appmode .seg button{position:relative}
html.appmode .seg button::after{content:"";position:absolute;inset:-10px 0}
html.appmode .fbbtn{width:60px;height:60px;left:-2px;bottom:calc(var(--dock-pb,18px) + 14px)}
/* No grey flash or text selection when a gloved thumb rests on a button. */
html.appmode button{-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none;touch-action:manipulation}
/* The undo bar (a button) was hidden by the rule above until now. A glove-sized target: 56px, full text. */
html.appmode body>.toast{z-index:200}
html.appmode body>button.toast.undo{min-height:56px;padding:0 22px;border-radius:16px;font-size:15px}
/* The press effect on buttons (scale) must keep the toast centred, or it jumps away under the thumb and the tap misses. */
html.appmode body>button.toast:active{transform:translateX(-50%) scale(.97)}
/* Vaterpas (public/level.js): the value sheet's look, a big number, one vial with the bubble. Locked = the number is kept. */
.lv{display:grid;gap:12px;width:100%;text-align:center;user-select:none;-webkit-user-select:none}
.lv-num{display:flex;justify-content:center;align-items:baseline;gap:8px;font-size:76px;font-weight:600;line-height:1;color:var(--ink);font-variant-numeric:tabular-nums}
.lv-num small{font-size:28px;font-weight:500;color:var(--muted)}
.lv-num small.deg{align-self:flex-start;font-size:46px;color:var(--ink);margin-left:-6px}
.lv-stage{height:216px;display:grid;align-items:center}
.lv-sub{margin:-4px 0 0;min-height:19px;font-size:15px;color:var(--muted)}
.lv-vial{container-type:inline-size;position:relative;height:64px;width:100%;border-radius:32px;background:var(--surface-2);border:2px solid var(--line);overflow:hidden;transition:border-color .2s,background .2s}
.lv-vial.round{height:216px;width:216px;justify-self:center;border-radius:50%}
.lv-tick{position:absolute;top:14px;bottom:14px;width:2px;background:var(--line)}
.lv-vial.round .lv-tick{display:none}
.lv-vial.ok{border-color:var(--ok);background:var(--ok-bg)}
.lv-mark{position:absolute;left:50%;top:50%;width:52px;height:52px;transform:translate(-50%,-50%);border:2px solid var(--muted);border-radius:50%;opacity:.5}
.lv-bub{position:absolute;left:50%;top:50%;width:44px;height:44px;border-radius:50%;background:var(--strong);opacity:.85;transform:translate(-50%,-50%);will-change:transform;box-shadow:inset 0 -5px 9px rgba(0,0,0,.14),inset 0 4px 6px rgba(255,255,255,.35)}
.lv-vial.ok .lv-bub{background:var(--ok)}
.lv.locked .lv-num{color:var(--ok)}
.lv-msg{min-height:40px;margin:0;font-size:15px;color:var(--muted)}
.lv-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.lv-row .vs-say,.lv-start{min-height:60px;font-size:16px}
.vs-say svg+span{pointer-events:none}
.lv #lvuse:disabled{opacity:.28}
.lv-gate,.lv-startb{display:none}
.lv.wait{display:flex;flex-direction:column}
.lv.wait>*{display:none}
.lv.wait>.vs-label{display:block;order:1}
.lv.wait>.lv-gate{display:grid;justify-items:center;order:2;padding:10px 0 2px}
.lv.wait>.lv-msg{display:block;order:3}
.lv.wait>.lv-startb{display:block;order:4}
.lv-ic{display:grid;place-items:center;width:96px;height:96px;border-radius:50%;background:var(--surface-2);color:var(--ink)}
.lv-ic svg{width:52px;height:52px}
.lv-stage{cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:none}
.lv-sat.big{width:26px;height:26px}
.lv-sat{position:absolute;left:50%;top:50%;width:14px;height:14px;border-radius:50%;background:var(--strong);opacity:0;transform:translate(-50%,-50%);transition:opacity .18s;will-change:transform;box-shadow:inset 0 2px 3px rgba(255,255,255,.35)}
.lv-sat.on{opacity:.75}
.lv-vial.ok .lv-sat{background:var(--ok)}
.lv-vial.hit .lv-mark{animation:lvhit .55s cubic-bezier(.2,.8,.3,1)}
@keyframes lvhit{0%{transform:translate(-50%,-50%) scale(1);opacity:.5}35%{transform:translate(-50%,-50%) scale(1.22);opacity:1;border-color:var(--ok)}100%{transform:translate(-50%,-50%) scale(1);opacity:.5}}
@media (prefers-reduced-motion:reduce){.lv-vial.hit .lv-mark{animation:none}}

/* Mikkel's voice is being made: the speaker's sound waves pulse until he starts talking. */
#pspk.vwait .w1{animation:vwave 1s ease-in-out infinite}
#pspk.vwait .w2{animation:vwave 1s ease-in-out .25s infinite}
@keyframes vwave{0%,100%{opacity:.15}50%{opacity:1}}
@media (prefers-reduced-motion:reduce){#pspk.vwait .w1,#pspk.vwait .w2{animation:none;opacity:.6}}

/* Easter egg: Mikkel above the case list when it is pulled far down (Bram 26/11 2026). Built in app.js, easterEgg(). */
.body.egging{position:relative;z-index:1;will-change:transform}
.egg{position:absolute;left:0;right:0;height:0;overflow:hidden;pointer-events:none;z-index:0;--p:0}
.egg-pat{position:absolute;inset:-80% -60%;background:url(assets/egg-logos.webp) 0 0/320px 150px repeat;transform:rotate(-16deg);opacity:calc(var(--p) * .13);
  -webkit-mask-image:linear-gradient(transparent 38%,#000 62%);mask-image:linear-gradient(transparent 38%,#000 62%)}
:root[data-theme="dark"] .egg-pat{background-image:url(assets/egg-logos-dark.webp);opacity:calc(var(--p) * .14)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .egg-pat{background-image:url(assets/egg-logos-dark.webp);opacity:calc(var(--p) * .14)}}
.egg-m{position:absolute;left:50%;bottom:10px;height:156px;transform:translate(-50%,40px) scale(.6);transform-origin:50% 100%;opacity:0;transition:transform .32s cubic-bezier(.3,1.6,.5,1),opacity .18s}
.egg-m img{display:block;height:100%;width:auto;transform-origin:50% 96%}
.egg.show .egg-m{opacity:1;transform:translate(-50%,0) scale(1)}
.egg.show .egg-m img{animation:egg-sway 1.5s ease-in-out .3s infinite}
@keyframes egg-sway{0%,100%{transform:rotate(0)}20%{transform:rotate(-5deg) translateY(-3px)}45%{transform:rotate(4deg)}70%{transform:rotate(-2deg) translateY(-2px)}}
@media (prefers-reduced-motion:reduce){.egg-m{transition:opacity .15s;transform:translate(-50%,0)}.egg.show .egg-m img{animation:none}}
/* The office's rules on the phone: standard questions per job type, number checks and recordings. Big fields for gloves. */
.stdlist{display:grid;gap:12px}
.stdcard{display:grid;gap:8px;background:var(--surface-2);border-radius:18px;padding:12px}
.stdname,.stditems,.limpair input{box-sizing:border-box;width:100%;min-height:52px;border:1.5px solid var(--line,#ccc);border-radius:14px;padding:12px 14px;font:400 17px var(--font);background:var(--bg,transparent);color:var(--ink)}
.stdname{font-weight:600}
.stditems{line-height:1.45;resize:vertical}
.stddel{justify-self:end;width:auto;min-height:44px}
.stdadd{width:100%}
.limpair{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.limpair label{display:grid;gap:4px;font-size:13px;color:var(--muted)}
.limpair label:only-child{grid-column:1/-1}
.vs-hear.live{animation:none}
