/* 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}
.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;top:0}
html.appmode .phone{width:100%;max-width:none;height:100dvh;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:env(safe-area-inset-bottom)}
html.appmode .sbar{display:none}
html.appmode .top{padding-top:12px}
html.appmode input{font-size:16px}
