/* Lodestar. Black sky, neutral gray surfaces, one star-gold tint. System type, generous space, capsule buttons.
   Design notes: the tint is the gold of the lodestar mark; surfaces stay neutral so the sky carries the colour.
   Radius by role: 980 capsule (buttons), 22 (cards, sheets), 12 (fields, charts), 6 (small marks). */
:root {
  color-scheme: dark;
  --bg: #000000; --panel: #1c1c1e; --raised: #2c2c2e; --line: #3a3a3c; --ink: #f5f5f7; --mute: #a1a1a8;
  --accent: #e0a33a; --accent-ink: #1a1305; --good: #30d158; --warn: #ffd60a; --bad: #ff6961; --focus: #8cc4ff;
  --field: #3a3a3c; --field-on-card: #48484a; --knob: #ffffff; --switch-on: #30d158; --scrim: rgba(0, 0, 0, .5);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: var(--sans); /* older panels ask for --serif; headings are set in the system face now */
  --tap: 44px; --gut: 20px;
  --r-card: 22px; --r-field: 12px; --r-pill: 980px;
  --ease: cubic-bezier(.25, .1, .3, 1);
}
:root[data-theme="red"] {
  color-scheme: dark;
  --bg: #080000; --panel: #120202; --raised: #1d0504; --line: #4a1410; --ink: #e04030; --mute: #b83a2c;
  --accent: #ff4a38; --accent-ink: #1a0200; --good: #e04030; --warn: #e04030; --bad: #ff6a58; --focus: #ff7a68;
  --field: #2a0806; --field-on-card: #360b08; --knob: #ff7a68; --switch-on: #8a2318; --scrim: rgba(0, 0, 0, .6);
}
:root[data-theme="paper"] {
  color-scheme: light;
  --bg: #f2f2f7; --panel: #f2f2f7; --raised: #ffffff; --line: #d1d1d6; --ink: #1d1d1f; --mute: #62626a;
  --accent: #a8620a; --accent-ink: #ffffff; --good: #1f7a45; --warn: #8a6200; --bad: #b3402e; --focus: #0b5cad;
  --field: #e4e4ea; --field-on-card: #eeeef2; --knob: #ffffff; --switch-on: #2a9d58; --scrim: rgba(0, 0, 0, .32);
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--bg); color: var(--ink); font: 17px/1.47 var(--sans); letter-spacing: -.01em; -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; overflow: hidden; }
h1, h2, h3, h4 { font-family: var(--sans); font-weight: 700; margin: 0; text-wrap: balance; }
h1 { font-size: 1.75rem; line-height: 1.18; letter-spacing: -.02em; margin-bottom: 10px; }
h2 { font-size: 1.375rem; line-height: 1.25; letter-spacing: -.015em; margin: 32px 0 10px; }
h3 { font-size: 1.0625rem; line-height: 1.3; font-weight: 600; margin: 26px 0 8px; }
h4 { font-size: .9375rem; font-weight: 600; margin: 22px 0 8px; }
h1:first-child, h2:first-child, h3:first-child, h4:first-child { margin-top: 0; }
p { margin: 0 0 14px; }
ol { padding-left: 1.4em; margin: 0 0 14px; } ol li { padding: 3px 0; }
a { color: var(--accent); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
b { font-weight: 600; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.muted { color: var(--mute); } .small { font-size: .9375rem; line-height: 1.4; } .num { font-variant-numeric: tabular-nums; }
.cap, h4.cap { font-size: .8125rem; line-height: 1.4; font-weight: 600; letter-spacing: 0; color: var(--mute); margin: 0 0 6px; }
h4.cap { margin-top: 24px; }
.cap + h1, .cap + h2 { margin-top: 0; }
.good { color: var(--good); } .warn { color: var(--warn); } .bad { color: var(--bad); }

/* frame: phone first. Full-screen sky, bottom tab bar (49 + safe area), bottom sheet with peek / half / full. */
:root { --hdr: 44px; --tab: 49px; --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px); --sal: env(safe-area-inset-left, 0px); --sar: env(safe-area-inset-right, 0px); --kb: 0px; }
html { overscroll-behavior: none; }
body { overscroll-behavior: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.app { position: fixed; inset: 0; }
.bar { position: absolute; top: 0; left: 0; right: 0; z-index: 5; height: calc(var(--hdr) + var(--sat)); padding: var(--sat) max(6px, var(--sar)) 0 max(16px, var(--sal)); display: flex; align-items: center; gap: 10px; background: var(--bg); }
.brand { display: flex; align-items: center; gap: 8px; font: 600 1.0625rem/1 var(--sans); letter-spacing: -.02em; color: var(--ink); text-decoration: none; min-height: 44px; margin-right: auto; }
.brand:hover { text-decoration: none; }
.brand svg { width: 22px; height: 22px; flex: none; }
.brand svg path { fill: var(--accent); }
.chip { color: var(--mute); font-size: .8125rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.iconbtn { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; background: none; border: 0; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; border-radius: var(--r-pill); padding: 0 8px; }
.iconbtn svg { width: 24px; height: 24px; display: block; }
#menuBtn { color: var(--ink); padding: 0; }
nav.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; display: grid; grid-template-columns: repeat(4, 1fr); height: calc(var(--tab) + var(--sab)); padding: 0 var(--sar) var(--sab) var(--sal); background: var(--panel); border-top: 1px solid var(--line); }
.tab { min-height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: none; border: 0; color: var(--mute); font: inherit; font-size: .6875rem; font-weight: 500; letter-spacing: .01em; cursor: pointer; transition: color .1s linear; }
.tab svg { width: 25px; height: 25px; display: block; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tab[aria-current="page"] { color: var(--accent); }
main { position: absolute; left: 0; right: 0; top: calc(var(--hdr) + var(--sat)); bottom: calc(var(--tab) + var(--sab)); min-height: 0; }
#stage { position: absolute; inset: 0; background: #000; overflow: hidden; }
#sky { width: 100%; height: 100%; display: block; touch-action: none; -webkit-touch-callout: none; user-select: none; }
#nightveil { position: absolute; inset: 0; background: #f00; mix-blend-mode: multiply; pointer-events: none; display: none; }
:root[data-theme="red"] #nightveil { display: block; }

/* controls that float on the sky: round, quiet, one column */
.hudbtns { position: absolute; top: 12px; right: max(12px, var(--sar)); display: flex; flex-direction: column; gap: 12px; z-index: 2; }
.hudbtns .zoom { display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: color-mix(in srgb, var(--panel) 86%, transparent); }
.hudbtns .zoom button + button { border-top: 1px solid var(--line); }
.hudbtns button { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; background: color-mix(in srgb, var(--panel) 86%, transparent); color: var(--ink); border: 0; border-radius: 50%; font: inherit; cursor: pointer; transition: background .1s linear; }
.hudbtns .zoom button { background: none; border-radius: 0; }
.hudbtns button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.hudbtns button.txt { font-size: .6875rem; font-weight: 600; letter-spacing: 0; }
.hudbtns button:active { background: var(--raised); }
.hudbtns button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
#prompt { position: absolute; top: 12px; left: max(12px, var(--sal)); right: calc(max(12px, var(--sar)) + 56px); background: var(--accent); color: var(--accent-ink); padding: 12px 16px; border-radius: 18px; font-weight: 600; line-height: 1.3; display: none; z-index: 2; }
#prompt small { display: block; font-size: .875rem; font-weight: 400; margin-top: 2px; }
#prompt .promptbtn { display: flex; width: fit-content; align-items: center; min-height: 44px; margin-top: 6px; padding: 0 16px; border: 0; border-radius: var(--r-pill); background: var(--accent-ink); color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; }
#loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--mute); background: #000; text-align: center; padding: 24px; z-index: 3; font-size: .9375rem; }
:root[data-theme="red"] #loading { color: #b83a2c; }

/* the bottom sheet that holds each mode */
#dock { position: absolute; left: 0; right: 0; bottom: var(--kb); z-index: 4; background: var(--panel); border-radius: var(--r-card) var(--r-card) 0 0; display: flex; flex-direction: column; height: 46%; transition: height .36s var(--ease), border-radius .2s linear; }
#dock[data-state="peek"] { height: 104px; }
#dock[data-state="half"] { height: 46%; }
#dock[data-state="full"] { height: 100%; border-radius: 0; }
#dock.dragging { transition: none; }
#grab { flex: none; width: 100%; height: 26px; background: none; border: 0; padding: 0; cursor: grab; display: grid; place-items: center; touch-action: none; position: relative; z-index: 1; }
#grab::after { content: ""; position: absolute; inset: -10px 0 -8px; }
#grab span { width: 36px; height: 5px; border-radius: 3px; background: var(--mute); opacity: .45; display: block; }
#panel { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 6px max(var(--gut), var(--sar)) calc(40px + var(--sab)) max(var(--gut), var(--sal)); -webkit-overflow-scrolling: touch; overflow-wrap: anywhere; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
#dock[data-state="peek"] #panel { overflow: hidden; }
@media (min-width: 900px), (orientation: landscape) and (max-height: 520px) and (min-width: 560px) {
  .brand { margin-right: 16px; }
  nav.tabs { position: static; display: flex; flex: 1; height: auto; padding: 0; border: 0; background: none; gap: 4px; z-index: auto; justify-content: flex-start; min-width: 0; }
  .tab { flex-direction: row; padding: 0; min-height: 44px; font-size: .9375rem; color: var(--mute); }
  .tab span { padding: 5px 14px; border-radius: var(--r-pill); }
  .tab svg { display: none; }
  .tab[aria-current="page"] { color: var(--ink); }
  .tab[aria-current="page"] span { background: var(--raised); }
  .bar > .chip { margin-left: auto; }
  main { bottom: 0; }
  #dock { top: 0; left: auto; right: 0; bottom: 0; width: 440px; height: auto !important; border-radius: 0; }
  #dock[data-state] { height: auto; }
  #grab { display: none; }
  #stage { right: 440px; }
  .hudbtns { right: 16px; top: 16px; }
  #prompt { right: 76px; }
  #panel { padding: 28px 28px 48px; }
}
@media (orientation: landscape) and (max-height: 520px) and (min-width: 560px) {
  #dock { width: 46%; } #stage { right: 46%; }
  .brand .wordmark { display: none; } .brand { margin-right: 4px; }
  .tab span { padding: 5px 11px; }
  #panel { padding: 16px max(var(--gut), var(--sar)) calc(28px + var(--sab)) var(--gut); }
  .hudbtns { gap: 8px; top: 8px; right: 12px; }
}
@media (orientation: landscape) and (max-height: 520px) and (min-width: 560px) and (max-width: 700px) { .bar > .chip { max-width: 9.5em; } }

/* buttons: capsules. One filled (tint), the rest quiet gray. */
button.btn, a.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 0 22px; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: var(--r-pill); font: inherit; font-weight: 600; letter-spacing: -.01em; cursor: pointer; text-decoration: none; transition: opacity .1s linear, transform .1s linear; }
button.btn:active, a.btn:active { opacity: .78; transform: scale(.98); }
button.btn.ghost, a.btn.ghost { background: var(--field); color: var(--ink); font-weight: 500; }
button.btn.small, a.btn.small { min-height: 44px; padding: 0 16px; font-size: .9375rem; }
button[disabled] { opacity: .4; cursor: not-allowed; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 16px 0; }
.stack > * + * { margin-top: 14px; }
.stack > h3 { margin-top: 28px; }

/* fields. The two-part selector outranks the styles older panels inject for their own inputs. */
:is(#panel, #sheet) :is(input, select, textarea):not([type=checkbox], [type=radio], [type=range], [type=file]) {
  display: block; width: 100%; min-height: 48px; background: var(--field); color: var(--ink); border: 1px solid transparent; border-radius: var(--r-field); padding: 0 14px; font: inherit; font-size: 17px; letter-spacing: -.01em; transition: border-color .1s linear; }
:is(#panel, #sheet) :is(input, select, textarea):focus-visible { outline: 0; border-color: var(--focus); }
:is(#panel, #sheet) textarea { padding: 12px 14px; min-height: 96px; resize: vertical; line-height: 1.4; }
:is(#panel, #sheet) :is(.plate, .list) :is(input, select, textarea):not([type=checkbox], [type=radio], [type=range], [type=file]) { background: var(--field-on-card); }
:is(#panel, #sheet) input[type=file] { width: 100%; min-height: var(--tap); font: inherit; font-size: .9375rem; color: var(--mute); }
input[type=file]::file-selector-button { min-height: 40px; margin-right: 12px; padding: 0 16px; border: 0; border-radius: var(--r-pill); background: var(--field-on-card); color: var(--ink); font: inherit; font-weight: 500; cursor: pointer; }
::placeholder { color: var(--mute); opacity: .8; }
label.f, #panel .ap label.f { display: block; font-size: .8125rem; font-weight: 500; color: var(--mute); }
label.f > :is(input, select), #panel .ap label.f > :is(input, select) { margin-top: 6px; }
label.f + p { margin-top: 16px; }
:root[data-theme="red"] ::-webkit-calendar-picker-indicator { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23e04030' stroke-width='1.6'%3E%3Crect x='3' y='4.5' width='14' height='12.5' rx='2'/%3E%3Cpath d='M3 8.5h14M7 2.5v3.5M13 2.5v3.5'/%3E%3C/svg%3E") center / 18px no-repeat; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
input[type=range], #panel .ap input[type=range] { display: block; width: 100%; min-height: var(--tap); margin: 0; padding: 0; border: 0; background: none; accent-color: var(--accent); }

/* switches: the label on the left, the switch on the right */
.check { display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: center; gap: 16px; min-height: 48px; padding: 8px 0; line-height: 1.3; cursor: pointer; flex: 1 1 100%; }
label.check input[type=checkbox] { appearance: none; -webkit-appearance: none; display: block; flex: none; width: 51px; height: 31px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 31px; background: var(--field-on-card); position: relative; cursor: pointer; transition: background .2s var(--ease); }
label.check input[type=checkbox]::before { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: var(--knob); box-shadow: 0 1px 3px rgba(0, 0, 0, .28); transition: transform .2s var(--ease); }
label.check input[type=checkbox]:checked { background: var(--switch-on); }
label.check input[type=checkbox]:checked::before { transform: translateX(20px); }
.stack > .check + .check { margin-top: 0; border-top: 1px solid var(--line); }
input[type=checkbox] { accent-color: var(--accent); }

/* cards and lists */
.plate { border-radius: var(--r-card); padding: 18px; background: var(--raised); margin: 16px 0; }
.plate > b:first-child, .plate > .row:first-child > b { display: block; font-size: 1.0625rem; font-weight: 600; letter-spacing: -.015em; }
.plate > b:first-child { margin-bottom: 6px; }
.plate > :last-child { margin-bottom: 0; }
.plate .row:last-child { margin-bottom: 0; }
.plate .plate { background: none; padding: 0; margin: 12px 0 0; border-radius: 0; }
.list { list-style: none; margin: 12px 0; padding: 0 16px; background: var(--raised); border-radius: var(--r-card); }
.list li + li { border-top: 1px solid var(--line); }
.plate .list { background: none; padding: 0; border-radius: 0; }
.list li > div { padding: 14px 0 !important; }
.list li > div .small { margin-top: 3px; }
.list .item { display: flex; width: 100%; min-height: 52px; align-items: center; gap: 12px; padding: 10px 0; background: none; border: 0; color: var(--ink); font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.list .item:active { opacity: .6; }
.list .dots, .plate .dots { flex: 1; min-width: 8px; }
.list a.item::after { content: ""; flex: none; width: 8px; height: 8px; margin-left: auto; border-right: 2px solid var(--mute); border-top: 2px solid var(--mute); transform: rotate(45deg); opacity: .6; }
#upl .item { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; min-height: 60px; }
#upl .dots { display: none; }
.row:has(> [data-dt]) { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.row:has(> [data-dt]) .btn { padding: 0; font-size: .875rem; }
p > .btn.small { margin-top: 10px; }
.day-n { font-weight: 600; font-size: 1.0625rem; width: 2.1ch; color: var(--accent); flex: none; }
.box { display: inline-flex; gap: 3px; vertical-align: middle; margin-left: 4px; } .box i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); display: block; } .box i.on { background: var(--accent); }
.opts { display: grid; gap: 10px; margin: 16px 0; }
.opts button { min-height: 54px; background: var(--raised); color: var(--ink); border: 1.5px solid transparent; border-radius: 16px; padding: 10px 18px; font: inherit; font-weight: 500; text-align: left; cursor: pointer; }
.opts button:active { background: var(--field-on-card); }
.opts button.right { border-color: var(--good); } .opts button.wrong { border-color: var(--bad); }
.bar-meter { height: 6px; background: var(--field-on-card); border-radius: 3px; overflow: hidden; }
.bar-meter > i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.verdict { display: inline-block; padding: 4px 14px; border-radius: var(--r-pill); background: color-mix(in srgb, currentColor 16%, transparent); font-size: .875rem; font-weight: 700; letter-spacing: .03em; }
table.t, #panel .ap table.t { width: 100%; border-collapse: collapse; font-size: .9375rem; margin: 12px 0; }
table.t th, table.t td, #panel .ap table.t th, #panel .ap table.t td { text-align: left; padding: 11px 12px 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t tr:last-child > * { border-bottom: 0; }
table.t th, #panel .ap table.t th { color: var(--mute); font-weight: 400; }
canvas.chart, #panel .ap canvas.chart { width: 100%; height: 200px; display: block; border: 0; border-radius: var(--r-field); background: var(--bg); margin: 12px 0; }
.nights { display: grid; gap: 2px; }
.nights button { display: grid; grid-template-columns: 4.6em 1fr 2.2em; align-items: center; gap: 12px; min-height: 44px; padding: 0; background: none; border: 0; color: var(--ink); font: inherit; font-size: .9375rem; cursor: pointer; text-align: left; }
.nights button > :last-child { text-align: right; color: var(--mute); }
.cond { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; font-size: .9375rem; margin-top: 12px; }
.credit { font-size: .8125rem; line-height: 1.45; color: var(--mute); margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); }
.kbd { display: inline-block; font: 500 .8125rem ui-monospace, "SF Mono", Menlo, Consolas, monospace; border-radius: 6px; padding: 3px 8px; background: var(--raised); white-space: nowrap; }

/* panels added by the module loader: one collapsible card each */
details.mod { padding: 0 18px; }
details.mod > summary { list-style: none; min-height: 60px !important; gap: 12px; font-size: 1.0625rem; letter-spacing: -.015em; }
details.mod > summary::-webkit-details-marker { display: none; }
details.mod > summary::after { content: ""; flex: none; width: 8px; height: 8px; margin: 0 4px 4px auto; border-right: 2px solid var(--mute); border-bottom: 2px solid var(--mute); transform: rotate(45deg); transition: transform .2s var(--ease); opacity: .7; }
details.mod[open] > summary::after { transform: rotate(-135deg); margin-bottom: -4px; }
details.mod > .modbody { padding-bottom: 18px; }
details.mod .credit { margin-top: 20px; }
#panel .ap .tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0; padding: 3px; margin: 0 0 18px; background: var(--field-on-card); border-radius: 13px; }
#panel .ap .tabs button { min-height: 44px; padding: 0 4px; border: 0; border-radius: 10px; color: var(--ink); font-size: .875rem; font-weight: 500; }
#panel .ap .tabs button[aria-selected="true"] { background: var(--panel); font-weight: 600; }
#panel .ap .nights button { border: 1.5px solid transparent; border-radius: 14px; padding: 0 12px; background: var(--field-on-card); }
#panel .ap .nights button[aria-pressed="true"] { border-color: var(--accent); }
#panel .ap .meter { height: 6px; border-radius: 3px; background: var(--line); }
#panel .ap .li { padding: 10px 0; gap: 10px; }
#panel .ap .checks { gap: 4px 18px; }
#panel .sat-row { gap: 12px; margin: 12px 0; }
#panel .sat-res li, #panel .sat-msg { font-size: .9375rem; }
#panel .sat-res li { padding: 12px 0; }
#panel .cstrip { gap: 4px; padding: 8px 0; }
#panel .cstrip-bar { border: 0; border-radius: 6px; }
#panel .cond-verdict { gap: 14px; }
#panel .cond-verdict b { font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
#panel .cond-table th, #panel .cond-table td { padding: 11px 0; }
#panel .cond-btns { gap: 12px; margin-top: 16px; }
#panel img { border-radius: var(--r-field); }

/* modal sheet (menu, settings, account, about, object details): rises from the bottom on phones */
#sheet { position: fixed; inset: 0; background: var(--scrim); display: none; z-index: 10; }
#sheet.open { display: block; animation: fade .24s linear; }
#sheet .inner { position: absolute; left: 0; right: 0; bottom: 0; top: calc(var(--sat) + 12px); background: var(--panel); border-radius: var(--r-card) var(--r-card) 0 0; overflow-y: auto; overscroll-behavior: contain; padding: 10px max(var(--gut), var(--sar)) calc(48px + var(--sab)) max(var(--gut), var(--sal)); scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
#sheet.open .inner { animation: rise .36s var(--ease); }
#sheet .top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 -8px 14px 0; min-height: 52px; }
#sheet .top h1 { font-size: 1.375rem; }
#sheet .list { margin-top: 4px; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(32px); opacity: 0; } }
@media (min-width: 900px) {
  #sheet .inner { left: auto; top: 0; width: 480px; border-radius: 0; padding: 20px 28px 64px; }
  #sheet.open .inner { animation-name: slidein; }
  @keyframes slidein { from { transform: translateX(32px); opacity: 0; } }
}
@media (orientation: landscape) and (max-height: 520px) { #sheet .inner { top: 0; left: auto; width: min(520px, 100%); border-radius: 0; padding-top: calc(var(--sat) + 8px); } }
.toast { position: fixed; left: 50%; bottom: calc(var(--tab) + var(--sab) + 116px + var(--kb)); transform: translateX(-50%); background: var(--raised); color: var(--ink); padding: 12px 20px; border-radius: 22px; z-index: 20; width: max-content; max-width: min(92vw, 30em); font-size: .9375rem; line-height: 1.35; text-align: center; box-shadow: 0 6px 24px rgba(0, 0, 0, .32); animation: rise .28s var(--ease); }
@media (min-width: 900px), (orientation: landscape) and (max-height: 520px) and (min-width: 560px) { .toast { bottom: 24px; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
