:root {
  color-scheme: light dark;
  --paper: #faf5ec;
  --surface: #f1e6d4;
  --card: #fffcf6;
  --ink: #241d18;
  --ink-soft: #5c4d42;
  --accent: #b84322;
  --accent-ink: #fffaf5;
  --line: #d8cab5;
  --night: #181412;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.58 'plus-jakarta-sans', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
}

a { color: inherit; text-underline-offset: 3px; }
button, .button, input, textarea, select { font: inherit; }
button, .button, summary { cursor: pointer; }

button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 46px;
  padding: 9px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--ink);
  background: var(--card);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.primary-btn {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.ghost-btn {
  background: transparent;
  min-height: 44px;
  padding: 6px 13px;
  font-size: 14px;
}

.text-btn {
  border: 0;
  background: transparent;
  text-decoration: underline;
  padding: 6px 8px;
  min-height: 44px;
  font-size: 14px;
}

button:focus-visible, .button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible, .chip:has(input:focus-visible) {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

button:disabled { opacity: 0.55; cursor: not-allowed; }

h1, h2, h3, .brand {
  font-family: 'fraunces', Georgia, serif;
  font-weight: 600;
  line-height: 1.14;
}

h1 { font-size: clamp(32px, 4.6vw, 56px); letter-spacing: -0.03em; margin: 6px 0 10px; }
h2 { font-size: clamp(24px, 3vw, 34px); margin: 6px 0 12px; }
h3 { font-size: 20px; margin: 4px 0 8px; }

.eyebrow {
  font: 700 11px/1.4 'ibm-plex-mono', monospace;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  margin: 0;
}

.muted, small { color: var(--ink-soft); }

.mast, .intro, .studio, .craft-banner, .reading, .examples-grid, .foot {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.mast {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.mast > a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 600; }
.brand { text-decoration: none; font-size: 21px; gap: 10px; }

.intro { padding: 26px 0 18px; }
.intro > p:last-child { color: var(--ink-soft); max-width: 68ch; margin: 6px 0 0; }

.studio {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 48px);
  align-items: start;
}

.preview-column {
  position: sticky;
  top: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
}

.switch {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.switch button {
  min-height: 44px;
  border-radius: 0;
  border: 1.5px solid #3c3028;
  background: #fdf9f2;
  color: #241d18;
  padding: 6px 16px;
  font-size: 14px;
}

.switch button:first-child { border-radius: 999px 0 0 999px; }
.switch button:last-child { border-radius: 0 999px 999px 0; border-left: 0; }
.switch button[aria-pressed="true"] { background: #241d18; color: #faf5ec; }

/* Skeuomorphic Cassette Shell */
.cassette {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1.58 / 1;
  margin: 0 auto;
  border-radius: 16px;
  padding: 18px 22px 30px;
  background: linear-gradient(145deg, #4b4642 0%, #2d2926 55%, #3c3734 100%);
  border: 2px solid #1d1917;
  box-shadow: 0 14px 28px rgba(24, 18, 14, 0.28), inset 0 1px 1px rgba(255, 255, 255, 0.22);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #241d18;
  transition: transform 0.35s ease;
}

.cassette[data-side="B"] { transform: rotateY(360deg); }

.cassette.shell-amber { background: linear-gradient(145deg, #b85324 0%, #7d3212 60%, #963f19 100%); border-color: #541f09; }
.cassette.shell-teal { background: linear-gradient(145deg, #276e67 0%, #164742 60%, #1e5953 100%); border-color: #0e2e2b; }
.cassette.shell-midnight { background: linear-gradient(145deg, #221f1d 0%, #100e0d 65%, #1c1917 100%); border-color: #8f6d24; }

.screw {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle, #b5ada5 25%, #5c544e 80%);
  border: 1px solid #1d1917;
}
.screw.tl { top: 8px; left: 9px; }
.screw.tr { top: 8px; right: 9px; }
.screw.bl { bottom: 8px; left: 9px; }
.screw.br { bottom: 8px; right: 9px; }

.cassette-label {
  flex: 1;
  background: repeating-linear-gradient(180deg, #fcf7ec 0 22px, #efe4cf 22px 23px);
  border-radius: 9px;
  border: 1px solid #cbbba0;
  padding: 10px 12px 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.shell-midnight .cassette-label {
  background: linear-gradient(180deg, #fbf4e4, #f2e4c6);
  border: 1.5px solid #b5892e;
}

.label-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border-bottom: 2px solid #b84322;
  padding-bottom: 5px;
}

.shell-teal .label-top { border-bottom-color: #1f6e66; }
.shell-midnight .label-top { border-bottom-color: #966f1e; }

.side-pill {
  background: #241d18;
  color: #faf5ec;
  font: 600 10px/1 'ibm-plex-mono', monospace;
  padding: 5px 6px;
  border-radius: 4px;
}

.label-titles { min-width: 0; }
.hand-title {
  display: block;
  font: 600 22px/1.05 'caveat', cursive, sans-serif;
  color: #241d18;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.for-from {
  display: block;
  font-size: 11px;
  color: #54453a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tape-meta {
  font: 600 10px/1.1 'ibm-plex-mono', monospace;
  color: #54453a;
}

.cassette-window {
  margin: auto 0;
  height: 44%;
  min-height: 54px;
  background: #1f1b18;
  border-radius: 999px;
  border: 2px solid #3c342e;
  padding: 5px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.reel {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle, #181412 0 32%, #f4ede1 33% 66%, #cfc3b0 67% 100%);
  border: 2px solid #493f38;
  position: relative;
  flex-shrink: 0;
}

.spokes { position: absolute; inset: 0; }
.spokes i {
  position: absolute;
  left: 50%;
  top: 4px;
  width: 3px;
  height: calc(100% - 8px);
  margin-left: -1.5px;
  background: #241d18;
}
.spokes i:nth-child(2) { transform: rotate(60deg); }
.spokes i:nth-child(3) { transform: rotate(120deg); }

.is-spinning .spokes { animation: reel-spin 2.4s linear infinite; }
@keyframes reel-spin { to { transform: rotate(360deg); } }

.window-glass {
  flex: 1;
  height: 30px;
  background: #120f0d;
  border-radius: 5px;
  border: 1px solid #453b34;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pack {
  position: absolute;
  top: -12px;
  width: 48px;
  height: 54px;
  border-radius: 50%;
  background: #472b1d;
  opacity: 0.85;
}
.left-pack { left: -20px; }
.right-pack { right: -24px; width: 38px; }

.scale {
  position: relative;
  z-index: 1;
  font: 400 9px/1 'ibm-plex-mono', monospace;
  color: #dfd4c3;
}

.label-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font: 600 11px/1.2 'ibm-plex-mono', monospace;
  color: #493b31;
}

.now-line {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.head-shield {
  position: absolute;
  bottom: 0;
  left: 17%;
  right: 17%;
  height: 24px;
  background: rgba(20, 17, 15, 0.55);
  clip-path: polygon(6% 0, 94% 0, 100% 100%, 0 100%);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 18px;
}

.head-shield .hole, .head-shield .pin {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #14110f;
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.head-shield .pin { width: 6px; height: 6px; }

.deck-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 14px 0 10px;
}

.deck-btn { min-height: 46px; padding: 8px 13px; font-size: 14px; }

.embed-stage {
  margin: 10px 0;
  border-radius: 12px;
  overflow: hidden;
  background: #181412;
  padding: 6px;
}

.embed-stage iframe {
  width: 100%;
  height: 190px;
  border: 0;
  border-radius: 8px;
  display: block;
}
.embed-stage iframe.spotify-frame { height: 152px; }
.embed-ext { margin: 6px 4px 2px; font-size: 13px; text-align: right; color: #f6efe4; }

.liner-readout {
  background: #fcf8f0;
  color: #241d18;
  border: 1px solid #d5c6b0;
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 10px;
}
.liner-readout small { color: #5c4d42; }
.liner-readout p {
  margin: 4px 0 0;
  font: 600 20px/1.25 'caveat', cursive, sans-serif;
  color: #241d18;
}

.deck-tracklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}

.track-pill {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
  padding: 8px 12px;
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid #cfc0aa;
  background: #fffcf6;
  color: #241d18;
  font-weight: 600;
}
.track-pill.is-active {
  border: 2px solid #b84322;
  background: #fceddf;
}
.t-code { font: 600 12px/1 'ibm-plex-mono', monospace; color: #8c3117; min-width: 26px; }
.t-main { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.t-main small { color: #5c4d42; font-weight: 400; }
.t-badge { font: 600 11px/1 'ibm-plex-mono', monospace; color: #4f4238; }

/* J-Card Screen & Print Component */
.jcard {
  background: #fffdf8;
  color: #201a16;
  border: 1.5px solid #241d18;
  border-radius: 6px;
  padding: 10px;
  font-size: 12px;
}

.jcard-grid {
  display: grid;
  grid-template-columns: 0.75fr 0.42fr 2.45fr;
  min-height: 290px;
  border: 1px solid #3c322b;
}

.j-panel { padding: 10px; position: relative; }
.j-flap { border-right: 1px dashed #6b5b4f; background: #f8f1e3; display: flex; flex-direction: column; justify-content: space-between; }
.j-spine { border-right: 1px dashed #6b5b4f; background: #241d18; color: #faf5ec; display: flex; align-items: center; justify-content: center; }
.shell-tint-amber .j-spine { background: #9c3d16; }
.shell-tint-teal .j-spine { background: #1a5750; }
.shell-tint-midnight .j-spine { background: #171412; color: #f2d488; }

.spine-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font: 600 12px/1.1 'ibm-plex-mono', monospace;
  max-height: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.j-cover { display: flex; flex-direction: column; justify-content: space-between; gap: 8px; }
.j-cover-head, .j-cover-foot {
  display: flex;
  justify-content: space-between;
  font: 600 10px/1.2 'ibm-plex-mono', monospace;
  color: #54463b;
}
.j-cover-art {
  background: #f3e7d3;
  border-left: 4px solid #b84322;
  padding: 10px 12px;
}
.j-cover-art h3 { margin: 0 0 3px; font-size: 18px; color: #241d18; }
.j-dedication { margin: 0; font: 600 17px/1.1 'caveat', cursive, sans-serif; color: #4c3e34; }
.j-tracks-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.j-tracks-columns h4, .j-inner-notes h4 { margin: 0 0 4px; font: 600 10px/1.2 'ibm-plex-mono', monospace; color: #7d2d16; }
.j-tracks-columns ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 3px; font-size: 11px; }
.j-tracks-columns li { display: flex; gap: 5px; line-height: 1.25; }
.j-tracks-columns .num { font: 600 10px/1.3 'ibm-plex-mono', monospace; color: #54463b; }
.j-kicker { font: 600 10px/1.2 'ibm-plex-mono', monospace; color: #7d2d16; margin: 0; }
.j-liner { font-size: 11px; line-height: 1.35; margin: 6px 0; overflow-wrap: anywhere; }
.j-from { font-size: 10px; color: #54463b; margin: 0; }
.j-inner-notes { margin-top: 10px; padding-top: 8px; border-top: 1px dashed #7a6a5d; }
.j-inner-notes ol { margin: 4px 0 0; padding-left: 18px; display: grid; gap: 3px; font-size: 11px; }
.preview-caption { text-align: center; font-size: 12px; color: #54453a; margin: 8px 0 0; }

/* Editor Form */
.editor-column { min-width: 0; }
.field { display: grid; gap: 5px; font-weight: 600; margin: 10px 0; font-size: 14px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

input:not([type="radio"]):not([type="checkbox"]), textarea, select {
  width: 100%;
  min-height: 44px;
  background: var(--card);
  color: var(--ink);
  border: 1.5px solid var(--ink-soft);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 16px;
}

.shell-fieldset { border: 0; padding: 0; margin: 12px 0; }
.shell-fieldset legend { font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; min-height: 44px; align-items: center; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1.5px solid var(--ink-soft);
  background: var(--card);
  font-size: 14px;
  font-weight: 600;
}
.chip span::before {
  content: '';
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #433e3a;
  border: 1px solid #1d1917;
}
.chip span[data-swatch="amber"]::before { background: #b85324; }
.chip span[data-swatch="teal"]::before { background: #246b64; }
.chip span[data-swatch="midnight"]::before { background: #181513; border-color: #b5892e; }
.chip:has(:checked) span {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.tracks-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.helper-line { margin: 2px 0 12px; font-size: 14px; }
.tracks-editor { display: grid; gap: 12px; }
.track-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
}
.track-card-head { display: flex; justify-content: space-between; align-items: center; }
.slot-badge { font: 600 11px/1 'ibm-plex-mono', monospace; color: var(--ink-soft); }
.form-footer-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 14px; }
.inline-date { max-width: 220px; }
.feedback { min-height: 1.4em; font-weight: 600; color: var(--accent); }

.dock {
  position: sticky;
  bottom: 12px;
  z-index: 6;
  display: flex;
  gap: 10px;
  width: max-content;
  max-width: calc(100% - 24px);
  margin: 22px auto;
  padding: 8px;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(28, 21, 16, 0.16);
}
.dock button { min-height: 48px; padding-inline: 20px; }

.craft-banner {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 32px;
  align-items: center;
  margin-top: 32px;
  padding: 28px 0;
  border-block: 1px solid var(--line);
}
.craft-banner img { width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line); }

.reading { max-width: 780px; padding: 34px 0; }
.feature-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 20px 0 26px; }
.feature-card, .chapter {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}
.guide-chapters { display: grid; gap: 14px; margin: 18px 0 24px; }
.steps-list { padding-left: 20px; display: grid; gap: 8px; }
.faq-list details { border-top: 1px solid var(--line); padding: 4px 0; }
.faq-list summary { min-height: 44px; display: flex; align-items: center; font-weight: 700; }

.examples-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; padding: 10px 0 24px; }
.example-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  display: grid;
  gap: 14px;
}
.mini-list { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 4px; font-size: 14px; }
.mini-list span { font: 600 12px/1 'ibm-plex-mono', monospace; color: var(--accent); margin-right: 6px; }
.example-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.foot {
  padding: 26px 0 100px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
}
.foot-top { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; color: var(--ink-soft); }
.foot-top strong { color: var(--ink); font-family: 'fraunces', Georgia, serif; font-size: 18px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot nav a { min-height: 44px; display: inline-flex; align-items: center; }

.mini-preview { display: none; }

/* Dialogs & Consent */
dialog {
  background: var(--paper);
  color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: 18px;
  width: min(480px, 94vw);
  padding: 0;
}
dialog::backdrop { background: rgba(20, 16, 13, 0.68); }
.modal-panel { position: relative; padding: 26px; display: grid; gap: 12px; }
.close-btn { position: absolute; top: 8px; right: 8px; border: 0; background: transparent; font-size: 26px; min-height: 44px; width: 44px; }
.check-row { display: flex; gap: 10px; align-items: center; min-height: 44px; font-weight: 600; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 8px; }

#consent {
  width: min(740px, calc(100% - 32px));
  margin: 0 auto 96px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
#consent p { margin: 0; font-size: 14px; }
.consent-actions { display: flex; gap: 8px; }
#print-area { display: none; }

/* Unseal Private Delivery Room */
.night {
  background: radial-gradient(ellipse at top, #332720 0%, #161210 72%);
  color: #faf3e8;
  min-height: 100svh;
}
.night .mast { border-color: #3d312a; }
.night .eyebrow { color: #d6c3ae; }
.delivery { width: min(580px, calc(100% - 32px)); margin: 36px auto 80px; text-align: center; }
.envelope {
  position: relative;
  width: min(320px, 92%);
  height: 196px;
  margin: 40px auto 16px;
  background: linear-gradient(30deg, #cfa97e 49.5%, transparent 50%) left bottom/50% 100% no-repeat,
              linear-gradient(-30deg, #cfa97e 49.5%, transparent 50%) right bottom/50% 100% no-repeat,
              #e2bf94;
  border-radius: 10px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.5);
}
.flap {
  position: absolute;
  inset: 0;
  background: #d7b184;
  clip-path: polygon(0 0, 100% 0, 50% 68%);
  transform-origin: top;
}
.envelope #open-seal {
  position: absolute;
  left: 50%;
  top: 54%;
  transform: translate(-50%, -50%);
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #b84322;
  color: #fff;
  border: 3px double #f8dfb6;
  font-size: 26px;
}
.parcel-tag {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  font: 600 10px/1 'ibm-plex-mono', monospace;
  color: #3b2a1e;
  letter-spacing: 0.14em;
}
.opening .flap { animation: flap-open 0.55s ease forwards; }
.opening { animation: parcel-fade 0.5s 0.45s ease forwards; }
@keyframes flap-open { to { transform: rotateX(170deg); } }
@keyframes parcel-fade { to { opacity: 0; transform: translateY(24px); } }

#opened { text-align: left; }
.recipient-liner {
  text-align: center;
  color: #eadbc9;
  font: 600 22px/1.3 'caveat', cursive, sans-serif;
  margin: 0 0 16px;
}
.recipient-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #191513;
    --surface: #251f1c;
    --card: #2d2622;
    --ink: #f5ede2;
    --ink-soft: #cbbba8;
    --accent: #d95d39;
    --accent-ink: #191513;
    --line: #433831;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media (max-width: 760px) {
  .mast, .intro, .studio, .craft-banner, .reading, .examples-grid, .foot { width: calc(100% - 28px); }
  .mast { min-height: 48px; }
  .brand { font-size: 18px; }
  .intro { padding: 12px 0; }
  .intro > .eyebrow { display: none; }
  h1 { font-size: 29px; }
  .studio, .craft-banner, .examples-grid, .feature-trio, .two-col { grid-template-columns: 1fr; }
  .preview-column { position: relative; top: auto; padding: 12px; }
  .cassette { padding: 12px 14px 24px; }
  .hand-title { font-size: 19px; }
  .reel { width: 34px; height: 34px; }
  .jcard-grid { grid-template-columns: 1fr; }
  .j-flap, .j-spine { border-right: 0; border-bottom: 1px dashed #6b5b4f; }
  .spine-text { writing-mode: horizontal-tb; transform: none; }
  .mini-preview:not([hidden]) {
    position: sticky;
    top: 0;
    z-index: 7;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    height: 88px;
    padding: 10px 14px;
    margin-bottom: 10px;
    background: var(--card);
    border: 1.5px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
    text-align: left;
  }
  .mini-icon { font-size: 30px; }
  .mini-copy { display: grid; min-width: 0; }
  .mini-copy strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dock {
    position: fixed;
    inset: auto 0 0 0;
    width: 100%;
    max-width: none;
    margin: 0;
    border-radius: 0;
    border-inline: 0;
    border-bottom: 0;
    padding: 8px 14px max(8px, env(safe-area-inset-bottom));
  }
  .dock button { flex: 1; padding-inline: 8px; font-size: 14px; }
  .foot { padding-bottom: 92px; }
}
