@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/jakarta-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/jakarta-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Light: bright white, near-black buttons, Cratos lime for the keep button */
:root {
  --bg: #f7f7f8;
  --surface: #ffffff;
  --surface-2: #efeff2;
  --text: #15161a;
  --muted: #7c7d86;
  --line: rgba(21, 22, 26, .08);
  --accent: #15161a;
  --accent-ink: #ffffff;
  --accent-soft: rgba(21, 22, 26, .06);
  --danger: #c0352b;
  --ring: 0 0 0 3px rgba(21, 22, 26, .2);
  --shadow: 0 1px 2px rgba(21, 22, 26, .04), 0 14px 34px -10px rgba(21, 22, 26, .14);
  --shadow-soft: 0 1px 2px rgba(21, 22, 26, .05), 0 8px 20px -8px rgba(21, 22, 26, .16);
  --shadow-hero: 0 26px 50px -22px rgba(21, 22, 26, .5);
  --shadow-dock: 0 14px 34px -12px rgba(21, 22, 26, .3);
  --shadow-keep: 0 12px 26px -10px rgba(110, 170, 10, .75);
  --keep: #9ef01a;
  --keep-icon: #10110f;
  --tint-keep: rgba(110, 170, 10, .4);
  --pill-bg: #ffffff;
  --pill-on: #10110f;
  --pill-on-text: #ffffff;
  --glass: rgba(16, 18, 21, .36);
  --dock-bg: rgba(255, 255, 255, .94);
  --slab: #e6e6ea;
  --slab-2: #efeff2;
  --r-hero: 28px;
  --r: 24px;
  --r-sm: 14px;
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

/* Dark: the shop's own near-black and lime */
:root.theme-dark {
  --bg: #10110f;
  --surface: #1b1d19;
  --surface-2: #262823;
  --text: #f4f3ef;
  --muted: #9a9d93;
  --line: rgba(255, 255, 255, .08);
  --accent: #9ef01a;
  --accent-ink: #10110f;
  --accent-soft: rgba(158, 240, 26, .12);
  --danger: #ff7a6e;
  --ring: 0 0 0 3px rgba(158, 240, 26, .4);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 14px 34px -10px rgba(0, 0, 0, .6);
  --shadow-soft: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 20px -8px rgba(0, 0, 0, .6);
  --shadow-hero: 0 26px 50px -20px rgba(0, 0, 0, .85);
  --shadow-dock: 0 12px 32px -8px rgba(0, 0, 0, .7);
  --shadow-keep: 0 10px 26px -8px rgba(158, 240, 26, .45);
  --pill-bg: #1b1d19;
  --pill-on: #9ef01a;
  --pill-on-text: #10110f;
  --glass: rgba(16, 17, 15, .5);
  --dock-bg: rgba(27, 29, 25, .95);
  --slab: #23251f;
  --slab-2: #1b1d19;
  --r-hero: 32px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 var(--font);
  word-spacing: .08em;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button, input, textarea { font: inherit; color: inherit; word-spacing: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: none; box-shadow: var(--ring); }
input::-ms-reveal, input::-ms-clear { display: none; }
svg.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.muted { color: var(--muted); }
.hidden { display: none !important; }

/* ---------- login ---------- */
.login { min-height: 100dvh; display: grid; place-items: center; padding: 16px; }
.login-card { width: 100%; max-width: 360px; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 32px 28px; }
.brand { font-weight: 800; font-size: 18px; letter-spacing: -.025em; }
.brand span { color: var(--muted); font-weight: 600; }
.login-card .muted { margin: 4px 0 24px; }
.form-error { color: var(--danger); margin: 0 0 12px; font-size: 14px; }

/* ---------- fields + buttons ---------- */
.field { display: block; margin: 0 0 16px; }
.field > span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field small { display: block; color: var(--muted); font-size: 13px; margin-top: 6px; }
.field input, .field textarea {
  width: 100%; border: 1px solid var(--line); background: var(--surface-2); border-radius: var(--r-sm);
  padding: 11px 14px; outline: none; transition: border-color .15s, background .15s;
}
.field input:focus, .field textarea:focus { border-color: var(--accent); background: var(--surface); box-shadow: var(--ring); }
.field textarea { resize: vertical; min-height: 120px; line-height: 1.5; overflow: hidden; }
.field .count { float: right; font-weight: 500; color: var(--muted); font-size: 12px; }
.field .count.over { color: var(--danger); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px;
  padding: 11px 20px; font-weight: 700; font-size: 14px; background: var(--surface-2); color: var(--text);
  transition: transform .1s, opacity .15s, background .15s; text-decoration: none; white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.ghost { background: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.danger { color: var(--danger); }
.btn.wide { width: 100%; padding: 12px 18px; }
.btn.small { padding: 7px 12px; font-size: 13px; }
.btn svg.i { width: 18px; height: 18px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ---------- layout ---------- */
.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 20px; background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
}
.tabs { display: flex; gap: 4px; }
.tab {
  display: flex; align-items: center; gap: 8px; border: 0; background: transparent; padding: 8px 14px;
  border-radius: 999px; font-weight: 600; color: var(--muted); text-decoration: none; font-size: 14px;
}
.tab:hover { color: var(--text); }
.tab.on { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-soft); }
.tab.on .n { color: inherit; opacity: .7; }
.tab .n { font-weight: 500; color: var(--muted); }
.main { max-width: 1080px; margin: 0 auto; padding: 8px 20px 40px; }
h1 { font-size: 30px; font-weight: 800; letter-spacing: -.035em; line-height: 1.15; margin: 8px 0 6px; }
h2 { font-size: 17px; font-weight: 750; margin: 0 0 4px; letter-spacing: -.02em; }
.lead { color: var(--muted); margin: 0 0 20px; }

@media (max-width: 720px) {
  .top { padding: 10px 16px; }
  .top .tabs { display: none; }
  .main { padding: 4px 16px calc(88px + env(safe-area-inset-bottom)); }
  h1 { font-size: 28px; }
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(4, 1fr);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--surface) 97%, transparent);
    backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); border-top: 1px solid var(--line);
  }
  .tabbar .tab { flex-direction: column; gap: 2px; font-size: 11px; padding: 6px 4px; border-radius: 12px; box-shadow: none; background: transparent; }
  .tabbar .tab { position: relative; }
  .tabbar .tab.on { color: var(--text); background: transparent; }
  .tabbar .tab.on::after { content: ""; position: absolute; bottom: -1px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--keep); }
  .tabbar .tab .n { display: none; }
}
@media (min-width: 721px) { .tabbar { display: none; } }

/* ---------- status line ---------- */
.status { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); flex: none; }
.dot.ok { background: var(--accent); }
.dot.busy { background: var(--accent); animation: pulse 1.2s ease-in-out infinite; }
.dot.bad { background: var(--danger); }
@keyframes pulse { 50% { opacity: .25; } }

/* ---------- deck: photos, then text, then keep/skip ---------- */
.deck-page { max-width: 440px; margin: 0 auto; }
.page-head { padding: 6px 2px 0; }
.page-head h1 { margin: 0; font-size: 32px; font-weight: 800; letter-spacing: -.04em; }
.page-head p { margin: 4px 0 0; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.post { position: relative; margin-top: 18px; will-change: transform; }
.hero-wrap { position: relative; padding-bottom: 0; }
.slab { position: absolute; border-radius: var(--r-hero); background: var(--slab); }
.slab.s1 { left: 5%; right: 5%; bottom: -10px; height: 60px; }
.slab.s2 { left: 10%; right: 10%; bottom: -20px; height: 60px; background: var(--slab-2); }
.hero {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-hero); overflow: hidden; background: var(--surface-2);
  box-shadow: var(--shadow-hero); touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab;
}
.hero:active { cursor: grabbing; }
.hero img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.hero .bars { position: absolute; z-index: 2; top: 12px; left: 16px; right: 16px; display: flex; gap: 5px; filter: drop-shadow(0 0 1.5px rgba(0, 0, 0, .4)); }
.hero .bars i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .45); }
.hero .bars i.on { background: #fff; }
.img-kind { position: absolute; z-index: 2; top: 24px; left: 16px; font-size: 12px; font-weight: 600; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.tint { position: absolute; inset: 0; z-index: 3; opacity: 0; pointer-events: none; }
.tint.keep { background: var(--tint-keep); }
.tint.skip { background: rgba(0, 0, 0, .45); }
.hint {
  position: absolute; z-index: 4; top: 46px; font-size: 24px; font-weight: 800; letter-spacing: .03em; color: #fff;
  text-transform: uppercase; text-shadow: 0 2px 14px rgba(0, 0, 0, .35); opacity: 0; pointer-events: none;
}
.hint.keep { left: 20px; }
.hint.skip { right: 20px; }
.glass {
  position: absolute; z-index: 2; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: flex-end; justify-content: space-between; gap: 14px;
  padding: 14px 16px; border-radius: 22px; color: #fff; background: var(--glass);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
}
.g-main { min-width: 0; }
.g-title { font-size: 20px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.g-sub { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; opacity: .9; margin-bottom: 4px; min-width: 0; }
.g-sub span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-sub svg.i { width: 14px; height: 14px; }
.g-price { text-align: right; flex: none; }
.g-price span { display: block; font-size: 12px; opacity: .8; }
.g-price b { display: block; font-size: 20px; letter-spacing: -.01em; }
.post-body { padding: 30px 2px calc(130px + env(safe-area-inset-bottom)); }
.pills { display: inline-flex; gap: 8px; padding: 0; }
.pills button {
  border: 0; border-radius: 999px; padding: 11px 20px; font-weight: 700; font-size: 14px; background: var(--pill-bg); color: var(--muted);
  box-shadow: var(--shadow-soft); transition: background .15s, color .15s;
}
.pills button.on { background: var(--pill-on); color: var(--pill-on-text); }
.post-text { margin: 20px 2px 18px; white-space: pre-wrap; font-size: 16px; line-height: 1.65; color: var(--text); overflow-wrap: anywhere; }
.product-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--muted); text-decoration: none; }
.product-link svg.i { width: 15px; height: 15px; }
.dock {
  position: fixed; z-index: 25; left: 50%; transform: translateX(-50%); bottom: calc(22px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 16px; padding: 10px 14px; border-radius: 999px; background: var(--dock-bg);
  backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5); box-shadow: var(--shadow-dock);
}
@media (max-width: 720px) { .dock { bottom: calc(80px + env(safe-area-inset-bottom)); } }
.round {
  width: 56px; height: 56px; border-radius: 50%; border: 0; display: grid; place-items: center; flex: none;
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-soft); transition: transform .12s, opacity .15s;
}
.round:active { transform: scale(.92); }
.round svg.i { width: 26px; height: 26px; }
.round.keep { width: 68px; height: 68px; background: var(--keep); color: var(--keep-icon); box-shadow: var(--shadow-keep); }
.round.keep svg.i { width: 30px; height: 30px; }
.round.small { width: 42px; height: 42px; background: transparent; box-shadow: none; color: var(--muted); }
.round.small svg.i { width: 20px; height: 20px; }
.round:disabled { opacity: .3; cursor: default; }

/* Wide screens: photo on the left, text on the right */
@media (min-width: 900px) {
  .deck-page { max-width: 940px; }
  .post { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 40px; align-items: start; }
  .hero-wrap { position: sticky; top: 84px; }
  .post-body { padding-top: 4px; }
}

/* Look B (Discover): photo with a big title on a soft dark fade instead of a glass panel */
:root:not(.theme-dark) .glass { left: 0; right: 0; bottom: 0; border-radius: 0; padding: 70px 20px 20px; background: linear-gradient(transparent, rgba(0, 0, 0, .62)); backdrop-filter: none; -webkit-backdrop-filter: none; }
:root:not(.theme-dark) .g-title { font-size: 25px; font-weight: 800; text-shadow: 0 1px 10px rgba(0, 0, 0, .3); }
:root:not(.theme-dark) .g-price b { font-size: 19px; }

.empty { text-align: center; padding: 48px 16px; max-width: 420px; margin: 0 auto; }
.empty .big { width: 60px; height: 60px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-soft); display: grid; place-items: center; margin: 0 auto 16px; }
.empty h2 { font-size: 20px; }
.empty p { color: var(--muted); margin: 6px 0 20px; }

.card-angle { font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.linkish { border: 0; background: none; padding: 0; color: var(--muted); font-weight: 600; font-size: 13px; text-align: left; margin-top: 4px; text-decoration: underline; text-underline-offset: 2px; }
.theme-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--surface); color: var(--text); box-shadow: var(--shadow-soft); }
.theme-btn svg.i { width: 19px; height: 19px; }

/* ---------- tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.tile { text-decoration: none; color: inherit; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; text-align: left; border: 0; padding: 0; display: flex; flex-direction: column; }
.tile img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; background: var(--surface-2); }
.tile .tb { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 2px; }
.tile .tb b { font-size: 15px; }
.tile .tb .err { color: var(--danger); font-size: 13px; }

.list { display: flex; flex-direction: column; gap: 10px; }
.item { display: flex; gap: 14px; align-items: center; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); padding: 10px; }
.item img { width: 64px; height: 80px; object-fit: cover; border-radius: 10px; flex: none; background: var(--surface-2); }
.item .ib { flex: 1; min-width: 0; }
.item .ib b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .ib .muted { font-size: 13px; }

/* ---------- editor ---------- */
.ed-head { display: flex; align-items: center; gap: 8px; margin: 4px 0 16px; flex-wrap: wrap; }
.ed-head .grow { flex: 1; min-width: 0; }
.ed-head h1 { margin: 0; font-size: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.editor { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 860px) { .editor { grid-template-columns: 1fr; } }
.pane { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 18px; }
.preview { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; display: block; background: var(--surface-2); }
.thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumb { position: relative; width: 84px; flex: none; }
.thumb button.pic { border: 0; padding: 0; background: none; display: block; width: 84px; border-radius: 10px; overflow: hidden; }
.thumb img { width: 84px; height: 105px; object-fit: cover; display: block; transition: opacity .15s; }
.thumb.off img { opacity: .35; }
.thumb.cur button.pic { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.thumb button.pic { transition: transform .15s; }
.thumb .tools { display: flex; justify-content: space-between; margin-top: 6px; }
.icon-btn { border: 0; background: var(--surface-2); width: 32px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: var(--text); }
.icon-btn svg.i { width: 16px; height: 16px; }
.icon-btn.on { background: var(--accent); color: var(--accent-ink); }
.icon-btn:disabled { opacity: .35; cursor: default; }
.pub { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.switches { display: flex; gap: 10px; flex-wrap: wrap; }
.switch {
  display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: var(--surface-2);
  border-radius: 999px; padding: 8px 14px 8px 8px; font-weight: 600; font-size: 14px;
}
.switch .knob { width: 36px; height: 22px; border-radius: 11px; background: var(--line); position: relative; transition: background .15s; flex: none; }
.switch .knob::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .15s; }
.switch.on .knob { background: var(--accent); }
.switch.on .knob::after { transform: translateX(14px); }
.switch:disabled { opacity: .5; cursor: default; }
.note { font-size: 14px; color: var(--muted); }
.note.err { color: var(--danger); white-space: pre-line; }
.done-links { display: flex; gap: 14px; flex-wrap: wrap; font-size: 14px; }
.done-links a { font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.done-links svg.i { width: 15px; height: 15px; }

/* ---------- settings ---------- */
.sections { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 16px; align-items: start; }
.section { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 20px; }
.section > p.muted { margin: 0 0 16px; font-size: 14px; }
.section .status { margin: 0 0 16px; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg button { border: 0; background: var(--surface-2); border-radius: 10px; min-width: 42px; padding: 8px 10px; font-weight: 600; font-size: 14px; }
.seg button.on { background: var(--accent); color: var(--accent-ink); }
.stepper { display: inline-flex; align-items: center; background: var(--surface-2); border-radius: 999px; padding: 3px; }
.stepper button { border: 0; background: transparent; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; }
.stepper button:hover:not(:disabled) { background: var(--surface); }
.stepper button:disabled { opacity: .3; cursor: default; }
.stepper output { min-width: 64px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; flex-wrap: wrap; }
.set-row > span { font-weight: 600; font-size: 14px; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; background: var(--surface-2); border-radius: 8px; padding: 2px 6px; word-break: break-all; }
.runs { display: flex; flex-direction: column; gap: 2px; margin-top: 16px; }
.run { border-top: 1px solid var(--line); padding: 10px 0; }
.run-top { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.run pre { white-space: pre-wrap; font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); background: var(--surface-2); border-radius: 10px; padding: 10px 12px; margin: 8px 0 0; }

/* ---------- toast + sheet ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0;
  background: var(--text); color: var(--bg); padding: 11px 18px; border-radius: 999px; font-weight: 600; font-size: 14px;
  transition: opacity .2s, transform .2s; z-index: 80; max-width: calc(100vw - 32px); text-align: center; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 720px) { .toast { bottom: calc(92px + env(safe-area-inset-bottom)); } }
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .4); z-index: 60; display: grid; place-items: center; padding: 16px; animation: fade .15s; }
.sheet { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); width: 100%; max-width: 520px; max-height: 86dvh; display: flex; flex-direction: column; overflow: hidden; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px 8px; gap: 12px; }
.sheet-body { padding: 4px 18px 18px; overflow: auto; }
.sheet-body .txt { white-space: pre-wrap; font-size: 15px; }
.sheet-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 18px 18px; }
@keyframes fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
