/* TEDDY web / PWA overrides on top of the desktop GUI's style.css.
   Mobile first and simple: a header with an always visible "Vissza", one
   screen, the home screen is a big icon grid. Text follows the iPhone's
   text size setting; every control is at least 44×44 pt. Safe areas keep
   the notch and the home indicator clear. */

:root {
  --tabbar-h: 58px;
  --sa-top: env(safe-area-inset-top, 0px);
  --sa-right: env(safe-area-inset-right, 0px);
  --sa-bottom: env(safe-area-inset-bottom, 0px);
  --sa-left: env(safe-area-inset-left, 0px);
  --gutter: 14px;
}

html, body { height: 100%; overscroll-behavior: none; -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; }
body { position: fixed; inset: 0; }
.grow { flex: 1; }
a { color: var(--honey); }
button { touch-action: manipulation; }

/* ---------- text size: follows the iPhone's text size setting ---------- */
html { font-size: 106.25%; } /* 17px */
@supports (font: -apple-system-body) { html { font: -apple-system-body; } }
body { font-family: var(--ui); font-size: 1rem; line-height: 1.45; }
.hint, .qmeta, .empty, .muted, .notice, .tmeta, .qwarn { font-size: .88rem; }
h2 { font-size: 1.35rem; }
h3, .card h3 { font-size: 1.1rem; }

/* ---------- layout: one simple screen with "Vissza" ---------- */
#app { display: flex; flex-direction: column; height: 100%; height: 100dvh; }
nav.side, nav.tabbar { display: none; }
main { flex: 1; min-height: 0; display: flex; flex-direction: column; }
header.top {
  display: flex; align-items: center; gap: 8px; min-height: 56px;
  padding: calc(6px + var(--sa-top)) max(var(--gutter), var(--sa-right)) 6px max(var(--gutter), var(--sa-left));
  background: rgba(17, 21, 28, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
header.top h1 { flex: 1; font-family: var(--ui); font-size: 1.15rem; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
body.at-home header.top h1 { color: var(--honey); letter-spacing: 1px; }
.back, .bell { all: unset; box-sizing: border-box; cursor: pointer; min-width: 48px; min-height: 48px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px; color: var(--honey); font-weight: 700; font-size: 1.05rem; padding: 0 10px; position: relative; }
.back { border: 1px solid var(--line); background: var(--panel-2); }
.back:focus-visible, .bell:focus-visible, .htile:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
.back.hidden, .bell.hidden { display: none; }

section.view {
  flex: 1; overflow-y: auto; padding: 16px max(var(--gutter), var(--sa-right)) calc(var(--sa-bottom) + 32px) max(var(--gutter), var(--sa-left));
  -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
}

/* ---------- home screen: big icons ---------- */
.hello { margin: 0 0 14px; font-size: 1.1rem; color: var(--muted); }
.hello b { color: var(--text); }
.home { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 10px; }
@media (min-width: 560px) { .home { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 900px) { .home { grid-template-columns: repeat(6, minmax(0, 1fr)); max-width: 980px; } }
.htile { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 6px 2px; border-radius: 16px; text-align: center; min-height: 112px; }
.htile:active .hpic { transform: scale(.94); }
.hpic { position: relative; width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line); transition: transform .15s; }
.hpic img, .hpic .appph { width: 72px; height: 72px; border-radius: 20px; }
.hpic .appph { font-size: 30px; }
.hicon { color: var(--honey); display: grid; place-items: center; }
.hname { font-size: .95rem; font-weight: 600; line-height: 1.2; word-break: break-word; max-width: 100%; }
.hbadge { position: absolute; top: -6px; right: -6px; min-width: 24px; height: 24px; padding: 0 6px; box-sizing: border-box; border-radius: 12px; background: var(--red); color: #fff;
  font: 700 13px/24px var(--ui); text-align: center; }
.bell .hbadge { top: 2px; right: 0; }
.hbadge.hidden { display: none; }
.skeleton .ph .hpic, .skeleton .ph .hname { background: linear-gradient(90deg, var(--panel) 20%, var(--panel-2) 50%, var(--panel) 80%); background-size: 300% 100%; animation: shimmer 1.4s infinite linear; border-color: transparent; }
.skeleton .ph .hname { width: 64px; height: 14px; border-radius: 7px; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
body.reduce-motion .skeleton .ph .hpic, body.reduce-motion .skeleton .ph .hname { animation: none; }

/* ---------- big, easy buttons ---------- */
.btn.big { min-height: 52px; font-size: 1.05rem; font-weight: 700; padding: 10px 18px; border-radius: 12px; }
.btn.wide { width: 100%; box-sizing: border-box; margin-top: 10px; }
.bigact { display: flex; gap: 10px; margin-top: 14px; }
.bigact > .btn { flex: 1; }
.bigmenu { display: flex; flex-direction: column; gap: 0; margin-top: 18px; }
.check.big { display: flex; gap: 12px; align-items: center; min-height: 48px; font-size: 1rem; }
.check.big input { width: 24px; height: 24px; flex: none; }
label.field { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; font-weight: 600; }
label.field.big input { min-height: 52px; font-size: 1.2rem; }
.hint.big { font-size: 1rem; color: var(--text); }
ul.plain { padding-left: 20px; margin: 8px 0 14px; display: flex; flex-direction: column; gap: 6px; }
ol.steps { padding-left: 22px; margin: 10px 0 14px; display: flex; flex-direction: column; gap: 8px; }

/* received file: one card, two big buttons */
.qcard.got { display: block; border-color: rgba(249, 179, 76, .45); }
.qcard.got .qhead { font-weight: 700; color: var(--honey); margin-bottom: 8px; font-size: 1.05rem; }
.qcard.got .qrow { display: flex; gap: 12px; align-items: center; }
.qcard.got .qname { font-size: 1.05rem; }

/* notifications */
.notices { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.nbtn { all: unset; box-sizing: border-box; width: 100%; cursor: pointer; display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; min-height: 56px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.notice-row.unread .nbtn { border-left: 4px solid var(--honey); }
.ntitle { font-weight: 700; }
.nbody { color: var(--text); word-break: break-word; }
.ntime { font-size: .8rem; color: var(--muted); }

/* introduction */
.intro { text-align: center; }
.intro h2, .modal h2 { font-family: var(--ui); letter-spacing: 0; }
.intro .ipic { margin: 4px auto 6px; }
.intro .itext { font-size: 1.05rem; line-height: 1.5; }
.idots { display: flex; justify-content: center; gap: 8px; margin: 14px 0 4px; }
.idots span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.idots span.on { background: var(--honey); }
.istep { font-size: .85rem; color: var(--muted); margin: 0; }
details.other { margin: 14px 0; text-align: left; }
details.other summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--muted); }

/* app window: notes above the app, the "no internet" panel */
.appnote { display: flex; gap: 10px; align-items: center; padding: 10px 14px; background: rgba(234, 179, 8, .12); border-bottom: 1px solid rgba(234, 179, 8, .3); font-size: .95rem; }
.appnote span { flex: 1; }
.appnote.hidden { display: none; }
.appfail { position: absolute; inset: 56px 0 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 20px; text-align: center; background: var(--bg); font-size: 1.05rem; }

#banners .banner { display: flex; align-items: center; gap: 10px; padding-left: max(var(--gutter), var(--sa-left)); padding-right: max(var(--gutter), var(--sa-right)); }
#banners .banner span { flex: 1; }
.banner.inline { margin: 0 0 14px; border-radius: 8px; border: 1px solid rgba(234, 179, 8, .3); padding: 9px 12px; }

/* toasts and upload progress: above the tab bar */
#progress { left: max(12px, var(--sa-left)); right: max(12px, var(--sa-right)); width: auto; bottom: calc(var(--sa-bottom) + 12px); z-index: 45; pointer-events: none; }
#progress > * { pointer-events: auto; }
.notice { word-break: break-word; }
.notice.uploading.ok { border-left-color: var(--green); }
.notice.uploading.error { border-left-color: var(--red); }
.uprow .lbl { display: flex; gap: 8px; justify-content: space-between; align-items: baseline; }
.uprow .un { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.uprow .us { color: var(--muted); font-size: 11px; white-space: nowrap; }
.uprow .bar { margin-top: 8px; min-width: 0; }
.uprow .spd .btn { margin-left: auto; }

/* ---------- controls: touch sized, no iOS zoom on focus ---------- */
.btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; color: var(--text); }
.btn.primary { color: #1a1205; }
.btn.small { min-height: 44px; }
a.btn.danger, .btn.danger { color: var(--red); }
input[type=text], input[type=password], input[type=number], input[type=date], input[type=time], input[type=search], input[type=color], select, textarea { font-size: max(16px, 1rem); min-height: 44px; }
input[type=search] { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; outline: none; min-width: 0; }
input[type=color] { padding: 2px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; width: 100%; }
input[type=checkbox], input[type=radio] { width: 22px; height: 22px; accent-color: var(--honey); }
.toolbar input[type=search], .toolbar input[type=text] { flex: 1 1 160px; }
.toolbar select { flex: 0 1 auto; max-width: 48%; }
.filebtn { position: relative; overflow: hidden; cursor: pointer; }
.filebtn input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; }
.linkbtn { all: unset; display: block; margin: 10px auto 0; color: var(--muted); font-size: .95rem; min-height: 44px; line-height: 44px; cursor: pointer; text-decoration: underline; }
.seg { gap: 6px; }

/* ---------- cards / lists ---------- */
.grid { grid-template-columns: 1fr; gap: 14px; }
.counters { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
.counter .cv { font-size: 26px; }
@media (max-width: 480px) { .charts { grid-template-columns: 1fr; } }
.card { padding: 14px; }
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tablewrap table { min-width: 560px; }
.dgroup { margin-bottom: 18px; }
.dgroup > h3 { margin: 0 0 10px; font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: 1.5px; color: var(--honey); display: flex; justify-content: space-between; }
.dgroup > h3.red { color: var(--red); }
.dgroup > h3 .count { color: var(--muted); }
h3.sub { margin: 14px 0 6px; font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: 1px; color: var(--honey); }

.cards { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.qcard { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: start; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.qcard > .qbody:first-child { grid-column: 1 / -1; }
.qcard.danger { border-left: 3px solid var(--red); }
.qcard.revoked { opacity: .6; }
.qicon { padding-top: 2px; }
.qname { font-weight: 600; word-break: break-word; }
.qmeta { font-size: 12px; color: var(--muted); margin-top: 3px; word-break: break-word; }
.qmeta b { color: var(--text); font-weight: 600; }
.qwarn { margin-top: 6px; font-size: 12px; color: #fca5a5; }
.qact { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.qact .btn.busy { opacity: .6; }
.rlist { list-style: none; margin: 6px 0 0; padding: 0; font-size: 12px; display: flex; flex-direction: column; gap: 2px; }

.recips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 20px; border: 1px solid var(--line); background: var(--panel-2); cursor: pointer; font-size: 13px; }
.chip.on { border-color: var(--honey); background: rgba(249, 179, 76, .08); }
.chip input { width: 16px; height: 16px; }
.send .drop { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 22px 14px; }
.send .drop b { margin: 0; }
.send .drop .hint { margin: 0; }

.tcards { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.tcard { display: flex; gap: 12px; align-items: flex-start; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; }
.tcard.overdue { border-left: 3px solid var(--red); }
.tcard.overdue .due { color: var(--red); }
.tcard.done .tt { text-decoration: line-through; color: var(--muted); }
.tcheck { all: unset; flex: none; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #3a4250; display: grid; place-items: center; color: #0b0d12; font-weight: 800; cursor: pointer; transition: background .2s, border-color .2s, transform .15s; }
.tcheck:active { transform: scale(.9); }
.tcard.done .tcheck { background: var(--green); border-color: var(--green); }
.tbody { flex: 1; min-width: 0; cursor: pointer; }
.tt { font-weight: 600; word-break: break-word; }
.tmeta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--muted); margin-top: 5px; }

.audit { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
.audit li { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; padding: 6px 8px; border-left: 3px solid var(--line); border-radius: 4px; background: rgba(255, 255, 255, .015); }
.audit li.red { border-left-color: var(--red); color: #fca5a5; }
.audit .aa { word-break: break-word; }
.audit .ar, .audit .ad { grid-column: 2; }

.apptiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 12px; }
.apptile { all: unset; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); text-align: center; transition: transform .2s, border-color .2s; }
.apptile:hover, .apptile:focus-visible { border-color: var(--honey); transform: translateY(-2px); }
.apptile img { border-radius: 14px; }
.appph { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; font: 700 24px var(--mono); color: #1a1205; background: linear-gradient(135deg, #ffd166, var(--coral)); }
.apptile .an { font-weight: 600; font-size: 13px; word-break: break-word; }
.apptile .av { font-size: 10px; color: var(--muted); }
.perms { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.howto { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: 13px; }
.howto ol { margin: 6px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }

/* ---------- folders ---------- */
.fgrid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.fcard { position: relative; }
.more { all: unset; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 8px; color: var(--muted); font-size: 18px; line-height: 1; }
.more:hover, .more:focus-visible { background: var(--panel-2); color: var(--honey); }
.fcard .more { position: absolute; top: 4px; right: 4px; }
.entries.list .ent { grid-template-columns: 24px 26px 1fr auto 32px; gap: 8px; padding: 6px 6px; cursor: pointer; }
.entries.list .ent .tm { display: none; }
.entries.grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
.entries.grid .ent { position: relative; cursor: pointer; }
.entries.grid .ent .esel { position: absolute; top: 6px; left: 6px; }
.entries.grid .ent .more { position: absolute; top: 2px; right: 2px; }
.esel { display: grid; place-items: center; }
.ent .nm .sub { font-size: 11px; white-space: normal; }
.entries.drop.hover { border-color: var(--honey); background: rgba(249, 179, 76, .05); }
.crumbs { min-width: 0; }
.crumbs a { padding: 6px; }
.secretbar span { flex: 1; }
.empty-lock { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 40px 0; }
.mvlist { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; max-height: 45vh; overflow: auto; }
.mvdir { all: unset; cursor: pointer; padding: 10px 12px; border-radius: 8px; background: var(--panel-2); }
.mvdir:hover { color: var(--honey); }
.aclrow { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.aclrow select { flex: 1; min-width: 0; }
.lockfx { z-index: 60; }

/* ---------- modals: bottom sheets on phones ---------- */
.overlay { align-items: flex-end; z-index: 30; }
.modal {
  width: 100%; max-height: calc(100dvh - var(--sa-top) - 24px); border-radius: 16px 16px 0 0;
  padding: 20px max(18px, var(--sa-right)) calc(20px + var(--sa-bottom)) max(18px, var(--sa-left));
  animation: sheetin .22s cubic-bezier(.2, .8, .2, 1);
}
.modal.wide { width: 100%; }
.modal .actions { flex-wrap: wrap; }
.modal .mtext { color: var(--text); word-break: break-word; }
.form { grid-template-columns: 1fr; }
@media (min-width: 600px) { .form { grid-template-columns: 1fr 1fr; } }
@keyframes sheetin { from { transform: translateY(40px); opacity: 0; } }
.pv-img { max-height: 65dvh; }
.pv-pdf { height: 65dvh; }

.ctxmenu.sheet { left: max(8px, var(--sa-left)); right: max(8px, var(--sa-right)); bottom: calc(8px + var(--sa-bottom)); top: auto; border-radius: 14px; padding: 6px; animation: sheetin .18s ease-out; }
.ctxmenu.sheet button { padding: 13px 14px; font-size: 15px; text-align: center; }
.ctxmenu .ctitle { padding: 8px 12px 6px; font: 12px var(--mono); color: var(--muted); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ctxback { position: fixed; inset: 0; z-index: 49; background: rgba(5, 7, 10, .55); }

/* ---------- login / boot screen ---------- */
.screen { padding: calc(20px + var(--sa-top)) max(20px, var(--sa-right)) calc(20px + var(--sa-bottom)) max(20px, var(--sa-left)); overflow-y: auto; align-items: safe center; }
.screen .box { margin: auto; }
.screen .bear { display: block; margin: 0 auto 10px; }
.screen input { min-height: 46px; }
.screen form { display: flex; flex-direction: column; }
.screen .warnbox { text-align: left; margin-bottom: 12px; }
.screen .check { justify-content: center; margin: 12px 0; }
.screen .row.center { justify-content: center; margin: 10px 0; }
.screen .row.center .btn { width: auto; padding: 6px 16px; }
.screen .box { text-align: left; max-width: 440px; width: 100%; }
.screen .box h2, .screen .box > p:first-of-type { text-align: center; }
.screen .err { color: #fca5a5; margin-top: 10px; min-height: 1.4em; font-size: 1rem; }
.screen .steps { text-align: left; color: var(--text); font-size: 1rem; padding-left: 22px; margin: 0 0 14px; }
.screen .qr { display: block; margin: 0 auto 10px; background: #fff; padding: 8px; border-radius: 10px; image-rendering: pixelated; width: 200px; height: 200px; }
.screen .secret { font-size: 14px; letter-spacing: 1px; margin-bottom: 10px; user-select: all; -webkit-user-select: all; word-break: break-all; }
.screen #e-uri { margin-bottom: 14px; }
.codes { list-style: none; padding: 0; margin: 0 0 6px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; user-select: text; -webkit-user-select: text; }
.codes li { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 6px; font-size: 14px; }
.boot p { margin-top: 14px; }
.spinner { width: 34px; height: 34px; margin: 0 auto; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--honey); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.screen a.btn { width: 100%; }

/* ---------- apps: full screen on phones ---------- */
.appview {
  position: fixed; inset: 0; z-index: 26; background: var(--bg); display: flex;
  padding: var(--sa-top) var(--sa-right) var(--sa-bottom) var(--sa-left);
}
.appbox { position: relative; flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.appbar { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-bottom: 1px solid var(--line); background: var(--panel); }
.apptitle { font: 600 1rem var(--ui); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.appbar .appback, .appback { flex: none; font-size: 1rem; font-weight: 700; color: var(--honey); min-height: 44px; min-width: 48px; }
.appback.floating { position: absolute; top: 8px; left: 8px; z-index: 2; }
.appframe { flex: 1; width: 100%; border: 0; background: var(--bg); }


/* ---------- desktop: the GUI's sidebar layout ---------- */
@media (min-width: 900px) {
  header.top { padding: max(12px, var(--sa-top)) max(22px, var(--sa-right)) 12px 22px; }
  section.view { padding: 20px max(22px, var(--sa-right)) max(40px, var(--sa-bottom)) 22px; }
  #progress { left: auto; right: max(18px, var(--sa-right)); bottom: max(18px, var(--sa-bottom)); width: 380px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
  .counters { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
  .qcard { grid-template-columns: auto 1fr auto; }
  .qcard > .qbody:first-child { grid-column: 1 / 3; }
  .qact { grid-column: auto; align-self: center; }
  .overlay { align-items: center; }
  .modal { width: min(560px, 92vw); max-height: 88vh; border-radius: 14px; padding: 22px; animation: in .2s ease-out; }
  .modal.wide { width: min(980px, 94vw); }
  .entries.list .ent { grid-template-columns: 24px 26px 1fr 100px 110px 32px; }
  .entries.list .ent .tm { display: block; }
  .ent .more { opacity: 0; }
  .ent:hover .more, .ent .more:focus-visible, .ent.sel .more { opacity: 1; }
  .appview { inset: 28px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 0 0 100vmax rgba(5, 7, 10, .72), 0 30px 80px rgba(0, 0, 0, .6); padding: 0; }
  .bigmenu { max-width: 520px; }
}

/* reduced motion (setting or OS) also covers the web-only animations */
body.reduce-motion .spinner { animation: spin 2s linear infinite !important; }

/* the shared app bridge inside the web app view: fill the box */
.appbox .appwin { width: 100%; height: 100%; border-radius: 0; border: 0; box-shadow: none; animation: none; }
.appbox .appbar { padding-top: max(8px, env(safe-area-inset-top)); }
