/* Mia Looks: True Summer.
   Cool, soft, muted colour on a light warm-grey ground, an elegant
   high-contrast serif, and overlapping colour swatches as the motif. */

:root {
  --paper: #f2eee8;
  --surface: #fbf9f6;
  --sunken: #e9e4de;
  --ink: #2e3047;
  --ink-soft: #6e6b7b;
  --line: #ddd6cf;

  --sage: #3f8c7e;
  --rose: #c25f86;
  --lavender: #7d70b0;
  --dusty-blue: #4f6fa8;
  --raspberry: #a63d6b;
  --slate: #56637f;
  --powder: #a9c3cc;
  --blush: #e8b9cc;

  --primary: #3a4573;
  --on-primary: #fbf9f6;
  --accent: var(--raspberry);
  --focus: var(--lavender);
  --danger: #b0384f;

  --shadow-sm: 0 1px 2px rgb(46 48 71 / 6%);
  --shadow: 0 2px 6px rgb(46 48 71 / 6%), 0 14px 32px rgb(46 48 71 / 9%);
  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Jost", "Futura", "Avenir Next", -apple-system, "Segoe UI", sans-serif;
  --radius: 18px;
  --gutter: 16px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1a1c2c;
    --surface: #23263a;
    --sunken: #2b2f46;
    --ink: #eeeaf2;
    --ink-soft: #aaa6b8;
    --line: #383c56;
    --sage: #7cc7b6;
    --rose: #f09bbb;
    --lavender: #b9aee6;
    --dusty-blue: #8fb0e8;
    --raspberry: #e58ab0;
    --slate: #a3aee0;
    --powder: #9fc1cc;
    --blush: #e8b9cc;
    --primary: #b9c3f0;
    --on-primary: #1a1c2c;
    --danger: #ff9aa8;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 30%);
    --shadow: 0 2px 6px rgb(0 0 0 / 25%), 0 14px 32px rgb(0 0 0 / 35%);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #1a1c2c;
  --surface: #23263a;
  --sunken: #2b2f46;
  --ink: #eeeaf2;
  --ink-soft: #aaa6b8;
  --line: #383c56;
  --sage: #7cc7b6;
  --rose: #f09bbb;
  --lavender: #b9aee6;
  --dusty-blue: #8fb0e8;
  --raspberry: #e58ab0;
  --slate: #a3aee0;
  --powder: #9fc1cc;
  --blush: #e8b9cc;
  --primary: #b9c3f0;
  --on-primary: #1a1c2c;
  --danger: #ff9aa8;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 30%);
  --shadow: 0 2px 6px rgb(0 0 0 / 25%), 0 14px 32px rgb(0 0 0 / 35%);
  color-scheme: dark;
}

/* Occasion colours (set in app.js). Text on a solid tone uses --on-tone. */
[data-tone="0"] { --tone: var(--sage); }
[data-tone="1"] { --tone: var(--rose); }
[data-tone="2"] { --tone: var(--lavender); }
[data-tone="3"] { --tone: var(--dusty-blue); }
[data-tone="4"] { --tone: var(--raspberry); }
[data-tone="5"] { --tone: var(--slate); }
[data-tone] { --on-tone: #fbf9f6; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) [data-tone] { --on-tone: #1a1c2c; }
}
:root[data-theme="dark"] [data-tone] { --on-tone: #1a1c2c; }

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  padding-bottom: calc(100px + env(safe-area-inset-bottom));
}

button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-soft); }
.small { font-size: 14px; }

/* Small uppercase label style, like "COLOR PALETTE". */
.detail-section h4, .field > span, .field-head label, .pill {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* ---------- header ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: calc(env(safe-area-inset-top) + 16px) var(--gutter) 12px;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.top > * { max-width: 1100px; margin-inline: auto; }

.top-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }

.wordmark {
  margin: 0;
  font: 500 24px/1 var(--display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.wordmark span { font-style: italic; text-transform: none; letter-spacing: 0.01em; color: var(--accent); }

.top-buttons { display: flex; gap: 8px; }
.size-icon {
  display: grid;
  grid-template-columns: repeat(var(--cells), 1fr);
  gap: 1.5px;
  width: 17px; height: 17px;
}
.size-icon i { background: currentColor; border-radius: 1px; }

.icon-btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
}
.icon-btn:hover { border-color: var(--ink-soft); }
.icon-btn svg { width: 20px; height: 20px; fill: currentColor; stroke: none; }

.search {
  display: flex; align-items: center; gap: 10px;
  height: 46px;
  padding: 0 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.search:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 18%, transparent); }
.search svg { width: 18px; height: 18px; color: var(--ink-soft); flex: none; }
.search input {
  flex: 1; min-width: 0;
  border: 0; outline: 0; background: transparent;
  font-size: 16px;
}
.search input::placeholder { color: var(--ink-soft); font-size: 14px; }

/* ---------- chips ---------- */

.chips {
  display: flex; gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-inline: calc(var(--gutter) * -1);
  padding: 2px var(--gutter);
}
/* Scroll edge-to-edge on phones, but line up with the 1100px column on wide screens. */
.top > .chips {
  max-width: none;
  padding-inline: max(var(--gutter), calc((100% + 2 * var(--gutter) - 1100px) / 2));
}
.chips::-webkit-scrollbar { display: none; }
.chips.wrap { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; }

.chip {
  flex: none;
  display: inline-flex; align-items: center; gap: 7px;
  height: 34px;
  padding: 0 14px 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 14px; font-weight: 500;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.chip:not([data-tone]) { padding-left: 14px; }
.chip[data-tone]::before {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--tone);
}
.chip span { color: var(--ink-soft); font-size: 12px; font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip[data-tone][aria-pressed="true"] { background: var(--tone); border-color: var(--tone); color: var(--on-tone); }
.chip[aria-pressed="true"]::before { background: currentColor; opacity: 0.7; }
.chip[aria-pressed="true"] span { color: inherit; opacity: 0.75; }

/* ---------- catalog ---------- */

main { max-width: calc(1100px + 2 * var(--gutter)); margin: 0 auto; padding: 4px var(--gutter) 0; }

.month h2 {
  display: flex; align-items: baseline; gap: 10px;
  margin: 30px 0 14px;
  font: 400 26px/1.1 var(--display);
}
.month-toggle small {
  margin-left: auto;
  font: 500 11px var(--sans);
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft);
}

/* Two across on phones; on wider screens tiles stay small (~150-190px)
   and more fit per row, instead of stretching. */
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 12px;
}
@media (min-width: 520px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 24px 16px; }
}

/* Smaller thumbnails: more per row, occasion badge shrinks to a colour dot. */
[data-size="medium"] .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 8px; }
[data-size="small"] .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
@media (min-width: 520px) {
  [data-size="medium"] .grid { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 18px 12px; }
  [data-size="small"] .grid { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 6px; }
}
[data-size="medium"] .card-photo { border-radius: 12px; }
[data-size="small"] .card-photo { border-radius: 8px; box-shadow: none; }
[data-size="medium"] .card-photo .pill, [data-size="small"] .card-photo .pill {
  top: 6px; left: 6px;
  width: 10px; height: 10px; padding: 0;
  font-size: 0;
  outline: 1.5px solid var(--surface);
}
[data-size="medium"] .card-meta { padding-top: 6px; }
[data-size="medium"] .card-meta strong { font-size: 13px; }
[data-size="medium"] .card-meta time, [data-size="small"] .card-meta { display: none; }

/* Month headings collapse and expand. */
.month-toggle {
  display: flex; align-items: baseline; gap: 10px;
  width: 100%; padding: 0;
  border: 0; background: none;
  font: inherit; color: inherit; text-align: left;
}
.chevron {
  width: 8px; height: 8px;
  align-self: center;
  border-right: 1.5px solid var(--ink-soft);
  border-bottom: 1.5px solid var(--ink-soft);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.15s;
}
.month-toggle[aria-expanded="false"] .chevron { transform: rotate(-45deg); }

.card {
  display: flex; flex-direction: column;
  padding: 0; border: 0; background: none;
  text-align: left;
}
.card-photo {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sunken);
  box-shadow: var(--shadow);
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1);
}
.card-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.card-photo .pill {
  position: absolute;
  top: 10px; left: 10px;
}
.card:hover .card-photo { transform: translateY(-3px); }
.card:focus-visible { outline: none; }
.card:focus-visible .card-photo { outline: 2px solid var(--focus); outline-offset: 3px; }

.card-meta { display: grid; gap: 2px; padding: 11px 2px 0; }
.card-meta strong {
  font: 500 16px/1.25 var(--display);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.card-meta time { color: var(--ink-soft); font-size: 13px; }

.pill {
  justify-self: start;
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--tone, var(--ink));
  color: var(--on-tone, var(--paper));
  font-size: 10px; font-weight: 600;
}

.empty {
  max-width: 420px;
  margin: 10vh auto 0;
  text-align: center;
}
.empty h2 { font: 400 30px/1.15 var(--display); margin: 0 0 10px; }
.empty p { color: var(--ink-soft); margin: 0 0 24px; }
.empty-art { width: 150px; margin: 0 auto 16px; }
.empty-art svg { width: 100%; height: auto; }
.empty-art .hanger { stroke: var(--ink); stroke-width: 2.5; }
.empty-art .dot { stroke: none; opacity: 0.85; }
.empty-art .t0 { fill: var(--sage); }
.empty-art .t1 { fill: var(--rose); }
.empty-art .t2 { fill: var(--lavender); }
.empty-art .t3 { fill: var(--dusty-blue); }
.empty-art .t4 { fill: var(--raspberry); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid var(--primary);
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 500; font-size: 15px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.1s;
}
.btn:active { transform: scale(0.98); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink-soft); }
.btn.danger-ghost {
  width: 100%; margin-top: 32px;
  background: transparent; color: var(--danger);
  border-color: color-mix(in srgb, var(--danger) 35%, transparent);
}
.btn:disabled { opacity: 0.5; }

.text-btn {
  border: 0; background: none;
  padding: 8px 4px;
  color: var(--ink-soft);
  font-size: 16px;
}
.text-btn.strong { color: var(--accent); font-weight: 600; }
.text-btn:disabled { opacity: 0.35; cursor: default; }
.text-btn.danger { color: var(--danger); justify-self: center; font-size: 15px; }

.fab {
  position: fixed;
  right: max(var(--gutter), env(safe-area-inset-right));
  bottom: calc(env(safe-area-inset-bottom) + 22px);
  z-index: 6;
  display: inline-flex; align-items: center; gap: 8px;
  height: 56px;
  padding: 0 24px 0 19px;
  border: 0; border-radius: 999px;
  background: var(--accent);
  color: #fbf9f6;
  font-weight: 500; font-size: 16px;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 26px color-mix(in srgb, var(--accent) 35%, transparent);
  transition: transform 0.1s;
}
.fab:active { transform: scale(0.97); }
.fab svg { width: 20px; height: 20px; stroke-width: 2; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fab { color: #1a1c2c; } }
:root[data-theme="dark"] .fab { color: #1a1c2c; }

/* ---------- sheets (dialogs) ---------- */

dialog.sheet {
  width: 100%;
  max-width: 560px;
  max-height: 92dvh;
  margin: auto auto 0;
  padding: 0;
  border: 0;
  border-radius: 26px 26px 0 0;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 -12px 44px rgb(30 30 50 / 20%);
  overflow: hidden;
}
dialog.sheet[open] { display: flex; flex-direction: column; animation: rise 0.3s cubic-bezier(.2,.8,.2,1); }
dialog.sheet > form { display: flex; flex-direction: column; min-height: 0; flex: 1; }
dialog::backdrop { background: rgb(30 30 50 / 40%); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }

@media (min-width: 640px) {
  dialog.sheet { margin: auto; border-radius: 26px; max-height: 88dvh; }
}
@keyframes rise { from { transform: translateY(28px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  dialog.sheet[open] { animation: none; }
  .card-photo, .chip, .btn, .fab { transition: none; }
}

.sheet-head {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  flex: none;
}
.sheet-head > :first-child { justify-self: start; }
.sheet-head > :last-child { justify-self: end; }
.sheet-head h2 { margin: 0; font: 500 19px var(--display); }

.sheet-body {
  overflow-y: auto;
  padding: 18px var(--gutter) calc(env(safe-area-inset-bottom) + 28px);
  -webkit-overflow-scrolling: touch;
}

/* form */
.photo-slot {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 46dvh;
  margin: 0 auto;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 18% 22%, color-mix(in srgb, var(--powder) 55%, transparent) 0 16%, transparent 16.5%),
    radial-gradient(circle at 84% 30%, color-mix(in srgb, var(--blush) 55%, transparent) 0 13%, transparent 13.5%),
    radial-gradient(circle at 76% 82%, color-mix(in srgb, var(--lavender) 30%, transparent) 0 18%, transparent 18.5%),
    var(--sunken);
  border: 1px dashed color-mix(in srgb, var(--ink-soft) 40%, transparent);
  overflow: hidden;
  display: grid; place-items: center;
}
.photo-slot:has(img:not([hidden])) { border-style: solid; border-color: transparent; }
.photo-slot img { width: 100%; height: 100%; object-fit: contain; }
.photo-empty { text-align: center; color: var(--ink-soft); }
.photo-empty svg { width: 42px; height: 42px; color: var(--ink); }
.photo-empty p { margin: 8px 0 0; font: 400 18px var(--display); color: var(--ink); }
.photo-status {
  position: absolute; inset: auto 12px 12px; margin: 0;
  padding: 8px 12px; border-radius: 999px;
  text-align: center; font-size: 13px; font-weight: 500;
  background: var(--ink); color: var(--paper);
}
.photo-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 24px; }
.photo-actions .btn { padding: 0 12px; font-size: 15px; white-space: nowrap; }

.field { display: grid; gap: 7px; margin-top: 20px; }
.field > span, .field-head label { font-size: 11px; font-weight: 600; color: var(--ink-soft); }
.field em { font-style: normal; font-weight: 400; text-transform: none; letter-spacing: 0; opacity: 0.85; }
.field input, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  font-size: 16px;
  outline: 0;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field textarea:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 18%, transparent);
}
#occasion-suggestions { margin-top: 10px; gap: 7px; }
#occasion-suggestions .chip { height: 32px; padding: 0 12px 0 10px; font-size: 13px; }

.field-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.link-btn {
  flex: none;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px;
  border: 0; border-radius: 999px;
  background: color-mix(in srgb, var(--lavender) 16%, transparent);
  color: var(--lavender);
  font-size: 13px; font-weight: 600;
}
.link-btn::before { content: "✦"; font-size: 11px; }
.link-btn:disabled { opacity: 0.5; cursor: default; }
.field-status { margin: 2px 0 0; font-size: 13px; color: var(--ink-soft); }
#f-items { min-height: 70px; }

/* detail */
.detail-photo { margin: -18px calc(var(--gutter) * -1) 0; background: var(--sunken); }
.detail-photo img { display: block; width: 100%; max-height: 62dvh; object-fit: contain; }
.detail-info { padding-top: 20px; }
.detail-info h3 { margin: 12px 0 4px; font: 400 34px/1.1 var(--display); }
.detail-info > .muted { margin: 0; }
.detail-section { margin-top: 28px; }
.detail-section h4 {
  margin: 0 0 12px;
  font-size: 11px; font-weight: 600;
  color: var(--ink-soft);
}
.detail-section h4 .muted { text-transform: none; letter-spacing: 0; font-weight: 400; }
.hint { margin: 10px 0 0; font-size: 13px; color: var(--ink-soft); }
.notes { margin: 0; white-space: pre-wrap; }
.mini-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mini { padding: 0; border: 0; background: none; }
.mini img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; display: block; background: var(--sunken); }

/* menu */
.menu .sheet-body p { margin: 0 0 12px; }
#stats { font: 400 21px/1.35 var(--display); color: var(--ink); }
.stack { display: grid; gap: 12px; margin-top: 20px; }

/* toast */
.toast {
  position: fixed;
  left: 50%; bottom: calc(env(safe-area-inset-bottom) + 94px);
  transform: translateX(-50%);
  z-index: 20;
  max-width: calc(100vw - 32px);
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow);
  animation: pop 0.25s ease-out;
}
@keyframes pop { from { transform: translate(-50%, 10px); opacity: 0; } }

/* ---------- sign-in ---------- */

.auth {
  position: relative;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: calc(env(safe-area-inset-top) + 24px) var(--gutter) calc(env(safe-area-inset-bottom) + 24px);
  margin-bottom: calc(-100px - env(safe-area-inset-bottom));
  overflow: hidden;
}
/* Overlapping colour swatches, like a seasonal palette card. */
.auth-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 9%, var(--powder) 0 64px, transparent 65px),
    radial-gradient(circle at 52% 6%, var(--blush) 0 50px, transparent 51px),
    radial-gradient(circle at 70% 15%, var(--dusty-blue) 0 38px, transparent 39px),
    radial-gradient(circle at 92% 10%, var(--slate) 0 56px, transparent 57px),
    radial-gradient(circle at 34% 19%, var(--raspberry) 0 36px, transparent 37px),
    radial-gradient(circle at 86% 26%, var(--lavender) 0 30px, transparent 31px),
    radial-gradient(circle at 8% 88%, var(--sage) 0 44px, transparent 45px),
    radial-gradient(circle at 26% 95%, var(--rose) 0 30px, transparent 31px),
    radial-gradient(circle at 94% 90%, var(--powder) 0 52px, transparent 53px);
  opacity: 0.85;
}
.auth-card {
  position: relative;
  width: 100%; max-width: 400px;
  padding: 34px 24px 26px;
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.wordmark.big { font-size: 40px; line-height: 1.05; text-align: center; white-space: normal; }
.wordmark.big span { display: block; font-size: 0.9em; }
.tagline {
  margin: 14px 0 30px;
  text-align: center;
  font: italic 400 19px/1.4 var(--display);
  color: var(--ink-soft);
}
.btn.block { width: 100%; margin-top: 20px; }
.fine { margin: 18px 0 0; text-align: center; font-size: 13px; color: var(--ink-soft); }
.sent { margin: 0 0 4px; color: var(--ink-soft); }
.sent strong { color: var(--ink); word-break: break-all; }
#auth-code { font-size: 22px; letter-spacing: 0.3em; text-align: center; font-variant-numeric: tabular-nums; }
.auth-links { display: flex; justify-content: space-between; margin-top: 12px; }
.auth-links .text-btn { font-size: 14px; }
.auth-error {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--danger) 12%, transparent);
  color: var(--danger);
  font-size: 14px;
}
.setup { padding: 18px; border: 1px dashed var(--line); border-radius: var(--radius); }
.setup h2 { margin: 0 0 6px; font: 400 24px var(--display); }
.setup p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.setup code { font-size: 14px; color: var(--ink); }

/* settings and legal links */
.setting { display: flex; align-items: center; gap: 14px; margin-top: 22px; padding: 14px 0; border-block: 1px solid var(--line); }
.setting input { flex: none; width: 22px; height: 22px; accent-color: var(--accent); }
.legal { margin: 18px 0 0; text-align: center; font-size: 13px; color: var(--ink-soft); }
.legal a { color: inherit; }
