:root {
  --ink: #1a1327;
  --violet: #2d0d51;
  --violet-2: #241a3a;
  --violet-3: #3a1d66;
  --indigo: #272e6c;
  --pink: #dd3284;
  --yellow: #fabb00;
  --cyan: #6fe7ed;
  --orange: #ec8114;
  --text: #f3eefc;
  --muted: #cfc4e6;
  --faint: #a99cc4;
  --line: rgba(255, 255, 255, 0.1);
  --radius: 16px;
  --shell: 640px;
  --tabbar-h: 68px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --f-head: 'Zen Dots', 'Arimo', system-ui, sans-serif;
  --f-sub: 'Roboto', system-ui, sans-serif;
  --f-body: 'Arimo', 'Helvetica Neue', Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
@media (min-width: 700px) {
  body { background: #120c1d; }
  body::before {
    content: ''; position: fixed; inset: 0; pointer-events: none;
    background: url(/assets/img/pattern-icons.png) 0 0 / 120px auto; opacity: 0.05;
  }
}
img { max-width: 100%; }
a { color: var(--cyan); }
a:hover { color: #fff; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--yellow); color: var(--ink); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }
.pixel { image-rendering: pixelated; }
[hidden] { display: none !important; }

.pattern { position: relative; isolation: isolate; }
.pattern::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url(/assets/img/pattern-icons.png) 0 0 / 110px auto; opacity: 0.1;
}

/* ---------- shell ---------- */
.shell { position: relative; max-width: var(--shell); margin: 0 auto; min-height: 100dvh; background: var(--ink); }
@media (min-width: 700px) { .shell { box-shadow: 0 0 80px rgba(0, 0, 0, 0.5); } }

.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px;
  background: var(--violet); border-bottom: 1px solid var(--line);
}
.topbar__logo img { display: block; height: 50px; width: auto; }
.topbar__meta { text-align: right; font-family: var(--f-sub); line-height: 1.3; }
.topbar__dates { font-weight: 700; font-size: 14px; color: var(--yellow); }
.topbar__venue { font-size: 12px; color: var(--muted); }

.offline-banner { background: var(--orange); color: var(--ink); font-family: var(--f-sub); font-weight: 500; font-size: 13px; text-align: center; padding: 6px 12px; }

.main { padding: 18px 16px calc(var(--tabbar-h) + var(--safe-b) + 28px); outline: none; }

.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); z-index: 30;
  width: 100%; max-width: var(--shell);
  height: calc(var(--tabbar-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  background: var(--violet); border-top: 1px solid var(--line);
  font-family: var(--f-sub); font-size: 11px; font-weight: 500;
}
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--muted); text-decoration: none; }
.tabbar a[aria-current='page'] { color: var(--yellow); }
.tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tabbar a[data-tab='omat'][aria-current='page'] svg { fill: currentColor; }

.loading { display: grid; place-items: center; gap: 8px; padding: 80px 0; color: var(--muted); text-align: center; }

/* ---------- headings & generic ---------- */
.h1 { margin: 0 0 14px; font-family: var(--f-head); font-weight: 400; font-size: 28px; color: var(--pink); letter-spacing: 0.3px; }
.h1-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.h1-row .h1 { margin: 0; }
.clock { font-family: var(--f-sub); font-weight: 500; font-size: 14px; color: var(--muted); }
.h2 { margin: 24px 0 10px; display: flex; align-items: center; gap: 10px; font-family: var(--f-head); font-weight: 400; font-size: 17px; color: var(--cyan); }
.h2--yellow { color: var(--yellow); }
.h2 .rule { flex: 1; height: 1px; background: rgba(111, 231, 237, 0.25); }
.lead { margin: 0 0 4px; font-size: 14px; color: var(--muted); }
.muted { color: var(--muted); }

.seg { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: 6px; padding: 4px; background: var(--violet); border-radius: 14px; }
.seg button { border: 0; border-radius: 10px; padding: 9px 6px; background: transparent; color: var(--muted); text-align: center; min-height: 44px; }
.seg button[aria-pressed='true'], .seg button[aria-selected='true'] { background: var(--yellow); color: var(--ink); }
.seg__main { display: block; font-family: var(--f-sub); font-weight: 700; font-size: 15px; }
.seg__sub { display: block; font-size: 12px; margin-top: 2px; }
.seg--floors .seg__main { font-family: var(--f-head); font-weight: 400; font-size: 18px; }
.seg--floors .seg__sub { font-family: var(--f-sub); font-size: 11px; margin-top: 0; }

.search { display: flex; align-items: center; gap: 10px; margin-top: 14px; height: 46px; padding: 0 14px; background: var(--violet-2); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 12px; }
.search svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--faint); stroke-width: 2; stroke-linecap: round; }
.search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; font-size: 16px; }
.search input::placeholder { color: var(--faint); }
.search:focus-within { border-color: var(--yellow); }

.chips { display: flex; gap: 8px; margin: 12px -16px 0; padding: 0 16px 2px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 999px; white-space: nowrap; font-family: var(--f-sub); font-weight: 500; font-size: 13px; background: transparent; color: var(--text); border: 1px solid rgba(255, 255, 255, 0.2); }
.chip[aria-pressed='true'] { background: var(--text); color: var(--ink); border-color: var(--text); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--c, var(--text)); }

/* ---------- programme cards ---------- */
.group + .group { margin-top: 4px; }
.cards { display: flex; flex-direction: column; gap: 10px; }
.card { background: var(--violet); border-radius: var(--radius); padding: 14px 14px 12px; display: flex; flex-direction: column; gap: 5px; position: relative; }
.card--now { box-shadow: inset 0 0 0 2px rgba(250, 187, 0, 0.55); }
.card__top { display: flex; align-items: center; gap: 8px; min-height: 24px; }
.card__time { font-family: var(--f-sub); font-weight: 500; font-size: 14px; color: var(--cyan); }
.badge { font-family: var(--f-sub); font-weight: 700; font-size: 11px; letter-spacing: 0.5px; padding: 2px 6px; border-radius: 6px; background: var(--text); color: var(--ink); }
.badge--now { background: var(--yellow); }
.card__title { color: #fff; text-decoration: none; font-weight: 700; font-size: 17px; line-height: 1.3; background: none; border: 0; padding: 0; text-align: left; }
.card__title::after { content: ''; position: absolute; inset: 0; border-radius: var(--radius); }
.card__speaker { font-size: 14px; color: var(--muted); line-height: 1.35; }
.card__meta { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-family: var(--f-sub); font-size: 13px; color: var(--muted); }
.card__meta .place { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; }
.card__meta svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.catchip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.16); font-size: 12px; color: var(--text); white-space: nowrap; }
.catchip .dot { width: 8px; height: 8px; }
.star { position: relative; z-index: 2; margin: -10px -8px -10px auto; width: 44px; height: 44px; display: grid; place-items: center; background: transparent; border: 0; border-radius: 50%; }
.star svg { width: 22px; height: 22px; fill: none; stroke: var(--faint); stroke-width: 1.8; stroke-linejoin: round; }
.star[aria-pressed='true'] svg { fill: var(--yellow); stroke: var(--yellow); }

.cont-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.cont { position: relative; background: var(--violet-2); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 4px; text-align: left; color: var(--text); }
.cont__title { font-weight: 700; font-size: 14px; line-height: 1.3; }
.cont__place { font-family: var(--f-sub); font-size: 12px; color: var(--muted); }
.cont .dot { width: 8px; height: 8px; }

.empty { text-align: center; padding: 28px 12px; color: var(--muted); }
.empty img { width: 140px; height: auto; display: block; margin: 0 auto 10px; }

/* ---------- now ---------- */
.notice { margin: 0 0 6px; background: var(--yellow); color: var(--ink); border-radius: var(--radius); padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; }
.notice svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.notice__label { font-family: var(--f-sub); font-weight: 700; font-size: 13px; letter-spacing: 0.4px; text-transform: uppercase; }
.notice__text { font-size: 15px; line-height: 1.4; margin-top: 2px; white-space: pre-line; }
.notices { margin: 10px 0 0; }
.notices__head { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-family: var(--f-sub); font-weight: 700; font-size: 13px; letter-spacing: 0.4px; text-transform: uppercase; color: var(--yellow); }
.notices__head svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.notices__list { list-style: none; margin: 0; padding: 0; background: var(--violet-2); border: 1px solid rgba(250, 187, 0, 0.3); border-radius: var(--radius); overflow: hidden; }
.notices__list > li + li { border-top: 1px solid var(--line); }
.notices__item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 14px; color: var(--text); text-decoration: none; }
.notices__item--link:active { background: rgba(255, 255, 255, 0.05); }
.notices__item > svg { width: 18px; height: 18px; align-self: center; fill: none; stroke: var(--faint); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.notices__time { font-family: var(--f-sub); font-weight: 500; font-size: 13px; color: var(--yellow); white-space: nowrap; padding-top: 1px; }
.notices__title { display: block; font-weight: 700; font-size: 15px; line-height: 1.3; }
.notices__text { display: block; margin-top: 2px; font-size: 14px; line-height: 1.4; color: var(--muted); white-space: pre-line; overflow-wrap: anywhere; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px rgba(250, 187, 0, 0.25); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(250, 187, 0, 0.08); } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
.nowcard { position: relative; display: block; width: 100%; text-align: left; border: 0; color: var(--text); background: var(--violet); border-radius: var(--radius); padding: 14px; }
.nowcard__top { display: flex; justify-content: space-between; gap: 10px; font-family: var(--f-sub); font-size: 13px; }
.nowcard__place { display: inline-flex; align-items: center; gap: 6px; }
.nowcard__left { color: var(--muted); white-space: nowrap; }
.nowcard__title { font-weight: 700; font-size: 16px; line-height: 1.3; margin-top: 6px; color: #fff; }
.bar { margin-top: 10px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--yellow); border-radius: 3px; }
.bar-labels { display: flex; justify-content: space-between; margin-top: 4px; font-family: var(--f-sub); font-size: 12px; color: var(--muted); }
.list { background: var(--violet); border-radius: var(--radius); overflow: hidden; }
.row { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; width: 100%; padding: 14px; text-align: left; border: 0; background: transparent; color: var(--text); border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row__time { font-family: var(--f-head); font-size: 16px; color: #fff; }
.row__in { font-family: var(--f-sub); font-size: 12px; color: var(--yellow); margin-top: 2px; }
.row__title { font-weight: 700; font-size: 15px; line-height: 1.3; }
.row__place { font-family: var(--f-sub); font-size: 13px; color: var(--muted); margin-top: 3px; }
.btn-outline { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; margin-top: 14px; padding: 0 16px; border-radius: 12px; border: 1px solid rgba(111, 231, 237, 0.5); background: transparent; color: var(--cyan); text-decoration: none; font-family: var(--f-sub); font-weight: 500; }
.btn-outline svg, .btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border: 0; border-radius: 14px; background: var(--yellow); color: var(--ink); font-family: var(--f-sub); font-weight: 700; font-size: 15px; text-decoration: none; }
.btn:hover { color: var(--ink); filter: brightness(1.05); }
.hero { border-radius: 20px; background: var(--violet-3); padding: 18px; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: 8px; align-items: end; }
.hero__title { font-family: var(--f-head); font-size: 20px; color: var(--yellow); line-height: 1.2; }
.hero img { width: 110px; height: auto; margin: 0 -6px -18px 0; }
.hero dl { margin: 12px 0 0; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 4px; font-family: var(--f-sub); font-size: 14px; }
.hero dt { color: var(--muted); }
.hero dd { margin: 0; font-weight: 500; }

/* ---------- sheet ---------- */
.sheet-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(10, 6, 20, 0.7); animation: fade .15s ease-out; }
.sheet {
  position: fixed; z-index: 51; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 100%; max-width: var(--shell); max-height: calc(100dvh - 60px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--violet); border-radius: 24px 24px 0 0; box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
  padding: 10px 20px calc(24px + var(--safe-b)); animation: up .2s ease-out;
}
@keyframes up { from { transform: translate(-50%, 40px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sheet, .sheet-backdrop { animation: none; } }
.sheet__grab { width: 44px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.25); margin: 0 auto 8px; }
.sheet__bar { display: flex; align-items: center; justify-content: space-between; }
.iconbtn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.06); color: var(--text); }
.iconbtn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sheet__title { margin: 14px 0 6px; font-family: var(--f-head); font-weight: 400; font-size: 24px; line-height: 1.25; color: #fff; overflow-wrap: anywhere; }
.facts { margin: 18px 0 0; display: flex; flex-direction: column; gap: 12px; font-family: var(--f-sub); }
.fact { display: flex; gap: 12px; align-items: flex-start; }
.fact dt { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--violet-3); }
.fact dt svg { width: 20px; height: 20px; fill: none; stroke: var(--yellow); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fact dd { margin: 0; min-width: 0; min-height: 40px; display: flex; flex-direction: column; justify-content: center; overflow-wrap: anywhere; }
.fact__main { font-weight: 500; font-size: 15px; }
.fact__sub { font-size: 13px; color: var(--muted); }
.sheet__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.sheet__actions .btn, .sheet__actions .btn-outline { margin: 0; border-radius: 14px; min-height: 50px; font-weight: 700; border-width: 1.5px; }
.btn[aria-pressed='true'] { background: transparent; color: var(--yellow); box-shadow: inset 0 0 0 1.5px var(--yellow); }
.btn[aria-pressed='true'] svg { fill: var(--yellow); }
.prose { font-size: 15px; line-height: 1.6; color: #e6def5; overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose h2, .prose h3, .prose h4 { font-family: var(--f-head); font-weight: 400; color: var(--yellow); font-size: 17px; margin: 18px 0 6px; line-height: 1.3; }
.prose h3 { font-family: var(--f-sub); font-weight: 700; color: var(--cyan); font-size: 15px; }
.prose h4 { font-family: var(--f-sub); font-weight: 700; color: var(--text); font-size: 14px; }
.prose ul, .prose ol { padding-left: 20px; margin: 6px 0 10px; }
.prose p { margin: 8px 0; }
.prose img { border-radius: 12px; height: auto; }
.prose code { background: rgba(255, 255, 255, 0.08); padding: 1px 5px; border-radius: 5px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.sheet .prose { margin-top: 22px; }
.subhead { margin: 24px 0 10px; font-family: var(--f-sub); font-weight: 700; font-size: 13px; letter-spacing: 0.6px; text-transform: uppercase; color: var(--muted); }
.mini { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; width: 100%; padding: 12px; border-radius: 14px; background: #1f1636; border: 0; text-align: left; color: var(--text); margin-bottom: 8px; }
.mini__time { font-family: var(--f-head); font-size: 15px; color: var(--cyan); }
.mini__title { display: block; font-weight: 700; font-size: 15px; line-height: 1.3; }
.mini__sub { display: block; font-family: var(--f-sub); font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ---------- maps ---------- */
.mapbox { position: relative; margin-top: 14px; border-radius: var(--radius); overflow: hidden; background: #fff; }
.mapbox > button.mapimg { display: block; width: 100%; padding: 0; border: 0; background: #fff; cursor: zoom-in; }
.mapbox img { display: block; width: 100%; height: auto; }
.mapbox__tools { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 6px; }
.tool { width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--violet); display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); color: var(--text); }
.tool svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.nomap { padding: 40px 16px; text-align: center; color: #5d5170; }
.roomrow { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 14px; min-height: 44px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--text); text-align: left; }
.roomrow:last-child { border-bottom: 0; }
.roomrow__body { flex: 1; min-width: 0; }
.roomrow__name { display: block; font-weight: 700; font-size: 15px; }
.roomrow__code { font-family: var(--f-sub); font-weight: 400; font-size: 13px; color: var(--muted); }
.roomrow__note { display: block; font-family: var(--f-sub); font-size: 13px; color: var(--muted); margin-top: 2px; }
.roomrow__note--now { color: var(--yellow); }
.roomrow svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--faint); stroke-width: 2; stroke-linecap: round; }
.roomrow[aria-expanded='true'] svg { transform: rotate(90deg); }
.roomprog { padding: 0 14px 12px; border-bottom: 1px solid var(--line); }

.viewer { position: fixed; inset: 0; z-index: 60; background: #0d0916; touch-action: none; overflow: hidden; animation: fade .15s; }
.viewer img { position: absolute; left: 0; top: 0; transform-origin: 0 0; max-width: none; user-select: none; -webkit-user-drag: none; background: #fff; }
.viewer__tools { position: absolute; right: 12px; top: calc(12px + env(safe-area-inset-top, 0px)); display: flex; flex-direction: column; gap: 8px; z-index: 2; }
.viewer__label { position: absolute; left: 12px; top: calc(16px + env(safe-area-inset-top, 0px)); z-index: 2; font-family: var(--f-head); color: #fff; background: rgba(45, 13, 81, 0.85); padding: 8px 12px; border-radius: 10px; }

/* ---------- favourites ---------- */
.fav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.fav { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 10px; }
.fav__time { padding-top: 14px; text-align: right; }
.fav__start { font-family: var(--f-head); font-size: 14px; color: #fff; }
.fav__end { font-family: var(--f-sub); font-size: 12px; color: var(--muted); margin-top: 2px; }
.fav .card { padding: 12px 14px; }
.clash { display: flex; gap: 8px; align-items: flex-start; margin-top: 4px; padding: 8px 10px; border-radius: 10px; background: rgba(236, 129, 20, 0.16); color: #ffc489; font-family: var(--f-sub); font-size: 13px; line-height: 1.35; position: relative; z-index: 1; }
.clash svg { width: 16px; height: 16px; flex: none; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hint { margin-top: 26px; display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--radius); border: 1px dashed rgba(255, 255, 255, 0.22); }
.hint img { width: 72px; height: auto; flex: none; }
.hint p { margin: 0; font-size: 14px; line-height: 1.45; color: #e6def5; }

/* ---------- info ---------- */
.acc { margin-top: 20px; background: var(--violet); border-radius: var(--radius); overflow: hidden; }
.acc details { border-bottom: 1px solid var(--line); }
.acc details:last-child { border-bottom: 0; }
.acc summary { display: flex; align-items: center; gap: 12px; padding: 16px; min-height: 52px; cursor: pointer; list-style: none; font-weight: 700; font-size: 16px; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary svg { margin-left: auto; width: 18px; height: 18px; fill: none; stroke: var(--faint); stroke-width: 2; stroke-linecap: round; transition: transform .15s; }
.acc details[open] summary { color: var(--yellow); }
.acc details[open] summary svg { transform: rotate(180deg); stroke: var(--yellow); }
.acc .prose { padding: 0 16px 16px; font-size: 14px; }
.install { margin-top: 20px; border-radius: var(--radius); padding: 16px; background: var(--violet-2); border: 1px solid rgba(250, 187, 0, 0.35); display: flex; gap: 14px; align-items: center; }
.install img { width: 44px; height: auto; flex: none; }
.install__body { flex: 1; min-width: 0; }
.install__title { font-weight: 700; font-size: 15px; }
.install__text { font-size: 13px; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.install .btn { min-height: 44px; border-radius: 12px; padding: 0 16px; }
.pushcard { margin-top: 20px; border-radius: var(--radius); padding: 16px; background: var(--violet-2); border: 1px solid rgba(111, 231, 237, 0.35); display: flex; gap: 14px; align-items: flex-start; }
.pushcard > svg { width: 28px; height: 28px; flex: none; margin-top: 2px; fill: none; stroke: var(--cyan); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pushcard--prompt { margin: 4px 0 18px; border-color: rgba(250, 187, 0, 0.45); }
.pushcard--prompt > svg { stroke: var(--yellow); }
.pushcard__body { flex: 1; min-width: 0; }
.pushcard__title { font-weight: 700; font-size: 15px; }
.pushcard__text { font-size: 13px; color: var(--muted); line-height: 1.45; margin-top: 4px; }
.pushcard__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 12px; }
.pushcard .btn { min-height: 44px; border-radius: 12px; padding: 0 16px; }
.pushcard .btn:disabled, .pushcard .btn-ghost:disabled { opacity: 0.6; cursor: progress; }
.pushprefs { border: 0; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.pushpref { display: flex; align-items: flex-start; gap: 12px; padding: 8px 0; cursor: pointer; }
.pushpref input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--cyan); }
.pushpref__label { display: block; font-weight: 700; font-size: 14px; }
.pushpref__sub { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; margin-top: 1px; }
.btn-ghost { min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.3); background: transparent; color: var(--text); font-family: var(--f-sub); font-weight: 500; font-size: 14px; }
.linkbtn { border: 0; background: none; padding: 8px 0; color: var(--muted); font-family: var(--f-sub); font-size: 14px; text-decoration: underline; }
.footer-note { margin: 22px 0 0; text-align: center; font-family: var(--f-sub); font-size: 12px; color: var(--faint); }
.app-version { margin: 22px 0 0; text-align: center; font-family: var(--f-sub); font-size: 11px; color: var(--faint); opacity: 0.8; letter-spacing: 0.02em; }
.footer-note + .app-version { margin-top: 6px; }
.app-version:empty { display: none; }

.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + var(--safe-b) + 14px); transform: translateX(-50%); z-index: 70; background: var(--text); color: var(--ink); font-family: var(--f-sub); font-weight: 500; font-size: 14px; padding: 10px 16px; border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4); max-width: calc(100% - 32px); }

@media (min-width: 560px) {
  .main { padding-left: 24px; padding-right: 24px; }
  .chips { margin-left: -24px; margin-right: -24px; padding-left: 24px; padding-right: 24px; }
}
