/* Four Mirrors admin. Dark astro ground, gold hairlines, book typography. One focal element per screen. */

@font-face { font-family: 'EB Garamond'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/assets/fonts/eb-garamond-normal.woff2) format('woff2'); }
@font-face { font-family: 'EB Garamond'; font-style: italic; font-weight: 400 500; font-display: swap; src: url(/assets/fonts/eb-garamond-italic.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500 700; font-display: swap; src: url(/assets/fonts/cormorant-garamond-normal.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 500 600; font-display: swap; src: url(/assets/fonts/cormorant-garamond-italic.woff2) format('woff2'); }
@font-face { font-family: 'Cinzel'; font-style: normal; font-weight: 500 600; font-display: swap; src: url(/assets/fonts/cinzel-normal.woff2) format('woff2'); }

:root {
  color-scheme: dark;
  --ground: #05080F;
  --ground-raise: #080C15;
  --wash: rgba(227, 199, 126, 0.035);
  --ink: #EFE6D0;
  --ink-2: #BDB4A0;
  --ink-3: #8F8877;
  --gold: #C9A24A;
  --gold-hi: #E3C77E;
  --gold-lo: #8E7339;
  --line: rgba(201, 162, 74, 0.26);
  --line-soft: rgba(201, 162, 74, 0.14);
  --on-gold: #120E05;
  --serif: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --display: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  --caps: 'Cinzel', Georgia, serif;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* Area signals: text and hairlines only, never fills. */
  --a-four-mirrors: #D9B866;
  --a-etsy: #D99A6C;
  --a-content: #C59BB3;
  --a-prompt-it: #93B8B2;
  --a-hermes: #ACA6D0;
  --a-family: #C2B08E;
  --a-personal: #A7BE9F;
  --a-security: #BFBFB8;
  --a-other: #A39F94;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 17px/1.55 var(--serif);
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--gold-hi); text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--gold); color: var(--on-gold); padding: 10px 14px; z-index: 50; }
.skip:focus { top: 12px; }
[hidden] { display: none !important; }

/* ---------- top bar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: max(12px, env(safe-area-inset-top, 0px)) var(--gutter-r) 12px var(--gutter-l);
  max-width: 1160px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--gold); text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.brand-word { font: 500 12px/1 var(--caps); letter-spacing: 0.24em; color: var(--gold); }
.brand-sub { font: italic 400 15px/1 var(--display); color: var(--ink-3); letter-spacing: 0.02em; }
.linkish {
  background: none; border: 0; padding: 10px 4px; min-height: 44px; cursor: pointer;
  color: var(--ink-3); font: 400 15px/1 var(--serif); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px;
}
.linkish:hover { color: var(--ink-2); }

.page { max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter-r) 40px var(--gutter-l); }

/* ---------- shared bits ---------- */
.label {
  font: 500 12px/1.3 var(--caps); letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold);
}
.mini { font: 500 12px/1.4 var(--caps); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-lo); }
.star { width: 9px; height: 9px; fill: currentColor; flex: none; }
.src { font: italic 400 14.5px/1.45 var(--serif); color: var(--ink-3); }
.asof.is-stale, .is-stale > .asof { color: var(--ink-2); }
.stale-tag { font-style: italic; color: var(--ink-2); }

.block { margin-top: 52px; }
.block-head { text-align: center; margin-bottom: 22px; }
.block-head .label {
  display: flex; align-items: center; justify-content: center; gap: 12px;
}
.block-head .label::before, .block-head .label::after {
  content: ''; height: 1px; flex: 1 1 40px; max-width: 120px; background: linear-gradient(90deg, transparent, var(--line));
}
.block-head .label::after { background: linear-gradient(90deg, var(--line), transparent); }
.block-head .src { margin-top: 8px; }
.block.is-stale .data { opacity: 0.6; filter: saturate(0.55); }

.chip {
  --c: var(--a-other);
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 9px 3px; border: 1px solid color-mix(in srgb, var(--c) 42%, transparent); border-radius: 999px;
  color: var(--c); font: 500 14px/1.2 var(--serif); font-variant-caps: all-small-caps; letter-spacing: 0.08em; white-space: nowrap;
}
.chip[data-area='four-mirrors'] { --c: var(--a-four-mirrors); }
.chip[data-area='etsy'] { --c: var(--a-etsy); }
.chip[data-area='content'] { --c: var(--a-content); }
.chip[data-area='prompt-it'] { --c: var(--a-prompt-it); }
.chip[data-area='hermes'] { --c: var(--a-hermes); }
.chip[data-area='family'] { --c: var(--a-family); }
.chip[data-area='personal'] { --c: var(--a-personal); }
.chip[data-area='security'] { --c: var(--a-security); }
.since { font: italic 400 15px/1.3 var(--serif); color: var(--ink-3); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 2px;
  background: transparent; color: var(--ink); cursor: pointer;
  font: 500 16px/1.1 var(--serif); letter-spacing: 0.01em; text-align: center;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.btn:hover { border-color: var(--gold-lo); background: var(--wash); }
.btn:active { background: rgba(227, 199, 126, 0.08); }
.btn--primary { background: var(--gold); border-color: var(--gold); color: var(--on-gold); font-weight: 600; letter-spacing: 0.02em; }
.btn--primary:hover { background: var(--gold-hi); border-color: var(--gold-hi); }
.btn--approve { border-color: var(--gold-lo); color: var(--gold-hi); }
.btn--quiet { border-color: transparent; color: var(--ink-2); }
.btn--quiet:hover { color: var(--ink); border-color: var(--line-soft); }
.btn[disabled] { opacity: 0.5; cursor: default; }

/* ---------- today ---------- */
.today { text-align: center; padding: 6px 0 0; }
.today-date { font: italic 500 21px/1.2 var(--display); color: var(--ink-2); letter-spacing: 0.01em; }
.today-line { margin-top: 8px; font: 400 18px/1.45 var(--serif); color: var(--ink); text-wrap: balance; }
.today-line b { font-weight: 500; color: var(--gold-hi); }

/* ---------- the one thing ---------- */
.one { margin-top: 22px; }
.one > .label { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 12px; }
.frame {
  position: relative; border: 1px solid var(--gold-lo); border-radius: 2px;
  box-shadow: inset 0 0 0 5px var(--ground), inset 0 0 0 6px var(--line-soft);
}
.frame::before, .frame::after {
  content: ''; position: absolute; width: 9px; height: 9px; background: var(--gold-lo);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.frame::before { top: -5px; left: calc(50% - 4.5px); }
.frame::after { bottom: -5px; left: calc(50% - 4.5px); }
.card--one {
  max-width: 760px; margin: 0 auto; padding: 24px 20px 22px; text-align: center;
  background: radial-gradient(120% 70% at 50% 0%, rgba(227, 199, 126, 0.06), transparent 70%);
}
.card--one .meta { justify-content: center; }
.one-title {
  margin-top: 12px; font: 600 30px/1.1 var(--display); color: var(--ink); letter-spacing: -0.005em; text-wrap: balance;
}
.card--one .why { margin: 12px auto 0; max-width: 60ch; color: var(--ink-2); font-size: 16.5px; line-height: 1.5; text-wrap: pretty; }
.ask-block { margin: 16px auto 0; max-width: 56ch; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.ask-block .ask { margin-top: 4px; font: 500 19px/1.4 var(--serif); color: var(--ink); text-wrap: pretty; }
.then { margin: 12px auto 0; max-width: 56ch; color: var(--ink-2); font-size: 16.5px; line-height: 1.45; }
.then .mini { display: block; margin-bottom: 4px; }
.card--one .actions { margin-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.card--one .actions .btn--primary { grid-column: 1 / -1; min-height: 52px; font-size: 18px; }
.card--one .src { margin-top: 16px; }

.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.links { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; font-size: 15.5px; }
.links a { overflow-wrap: anywhere; }
.previews {
  margin: 18px -22px 0; padding: 4px 22px 6px; display: flex; gap: 10px; overflow-x: auto;
  scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--gold-lo) transparent;
  -webkit-overflow-scrolling: touch;
}
.card--one .previews { justify-content: safe center; }
.thumb {
  flex: none; width: 88px; padding: 0; border: 1px solid var(--line); border-radius: 2px; background: var(--ground-raise);
  cursor: zoom-in; scroll-snap-align: start; overflow: hidden;
}
.thumb img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.thumb:hover { border-color: var(--gold-lo); }
.thumb--square img { object-fit: contain; background: #000; }

.notes { margin-top: 14px; display: grid; gap: 6px; text-align: left; }
.note { font: italic 400 16px/1.45 var(--serif); color: var(--ink-2); padding-left: 12px; border-left: 1px solid var(--gold-lo); }
.note small { font-style: normal; color: var(--ink-3); font-size: 13.5px; margin-left: 6px; }

/* choices that replace the action row */
.choose, .noting { margin-top: 18px; }
.choose-q { font: italic 400 16px/1.3 var(--serif); color: var(--ink-2); margin-bottom: 10px; }
.choose-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.choose-row .btn { flex-direction: column; gap: 2px; min-height: 54px; padding: 6px 6px; }
.choose-row .btn small { font: italic 400 13.5px/1.1 var(--serif); color: var(--ink-3); }
.choose .linkish, .noting .linkish { margin-top: 4px; }
.noting textarea {
  width: 100%; min-height: 96px; padding: 12px; resize: vertical; border: 1px solid var(--line); border-radius: 2px;
  background: var(--ground-raise); color: var(--ink); font: 400 17px/1.5 var(--serif);
}
.noting textarea:focus { outline: none; border-color: var(--gold); }
.noting-row { margin-top: 8px; display: flex; gap: 8px; justify-content: flex-end; align-items: center; }

/* ---------- needs you ---------- */
.needs-list { display: grid; gap: 14px; }
.card {
  padding: 18px 16px 16px; border: 1px solid var(--line-soft); border-radius: 2px; background: var(--wash);
}
.card h3 { margin-top: 10px; font: 600 23px/1.18 var(--display); color: var(--ink); text-wrap: balance; }
.card .ask { margin-top: 8px; color: var(--ink-2); font-size: 16.5px; line-height: 1.5; }
.card .actions { margin-top: 16px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.card .actions .btn { padding: 0 6px; font-size: 15.5px; }
.more { margin-top: 6px; }
details.why-more { margin-top: 10px; }
details.why-more > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 36px;
  color: var(--gold-hi); font: italic 400 15.5px/1 var(--serif);
}
details.why-more > summary::-webkit-details-marker { display: none; }
details.why-more > summary::after { content: '+'; font-style: normal; color: var(--gold-lo); }
details.why-more[open] > summary::after { content: '\2212'; }
.why-body { margin-top: 6px; display: grid; gap: 10px; color: var(--ink-2); font-size: 16px; }
.why-body .previews { margin: 2px -16px 0; padding-inline: 16px; }
.why-body .links { justify-content: flex-start; margin-top: 0; }
.fold-btn {
  display: flex; width: 100%; align-items: center; justify-content: center; gap: 10px; margin-top: 14px; min-height: 48px;
  border: 1px dashed var(--line); border-radius: 2px; background: transparent; cursor: pointer;
  color: var(--ink-2); font: italic 400 17px/1 var(--serif);
}
.fold-btn:hover { color: var(--ink); border-color: var(--gold-lo); }
.resting { margin-top: 18px; }
.resting-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.resting-row p { color: var(--ink-2); font-size: 16px; }
.resting-row .since { display: block; font-size: 14.5px; }
.empty { text-align: center; color: var(--ink-2); font: italic 400 18px/1.5 var(--serif); padding: 18px 0; }

/* ---------- etsy ---------- */
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-soft); }
.kpi { padding: 14px 6px 12px; text-align: center; border-bottom: 1px solid var(--line-soft); }
.kpi:not(:nth-child(3n)) { border-right: 1px solid var(--line-soft); }
.kpi-n { font: 500 36px/1 var(--display); color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.kpi-n small { font: 500 15px/1 var(--serif); color: var(--ink-3); margin-right: 3px; letter-spacing: 0.04em; }
.kpi-l { margin-top: 6px; font-size: 14.5px; line-height: 1.25; color: var(--ink-2); }
.window { margin-top: 10px; text-align: center; }
.etsy-grid { display: grid; gap: 28px; margin-top: 26px; }
.sub { font: 600 21px/1.2 var(--display); color: var(--ink); margin-bottom: 10px; }
.sub small { font: italic 400 15px/1 var(--serif); color: var(--ink-3); margin-left: 6px; }
.listing { padding: 12px 0; border-top: 1px solid var(--line-soft); }
.listing:last-child { border-bottom: 1px solid var(--line-soft); }
.listing-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.listing-name { font: 500 18px/1.3 var(--serif); color: var(--ink); }
.listing-name a { color: inherit; text-decoration-color: var(--line); }
.price { white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; color: var(--gold-hi); }
.price s { color: var(--ink-3); margin-left: 6px; text-decoration-thickness: 1px; }
.listing-meta { margin-top: 3px; font-size: 15px; color: var(--ink-3); }
.listing-meta .chip { font-size: 13px; padding: 0 7px 1px; margin-right: 4px; }
.sale { padding: 14px 16px; border: 1px solid var(--line-soft); border-radius: 2px; }
.sale b { color: var(--gold-hi); font-weight: 500; }
.checkpoint { padding: 20px 18px 18px; }
.checkpoint h3 { font: 600 23px/1.2 var(--display); }
.checkpoint .when { margin-top: 2px; }
.rules { margin-top: 14px; display: grid; gap: 10px; counter-reset: r; }
.rules li { position: relative; padding-left: 30px; color: var(--ink-2); font-size: 16px; line-height: 1.5; counter-increment: r; }
.rules li::before { content: counter(r); position: absolute; left: 0; top: 0; font: 500 19px/1.3 var(--display); color: var(--gold-lo); }
.rules li.is-now { color: var(--ink); }
.rules li.is-now::before { color: var(--gold-hi); }
.rules .now-tag { display: block; margin-top: 3px; font: italic 400 15px/1.35 var(--serif); color: var(--gold-hi); }
.findings-wrap { margin-top: 26px; }
.findings { display: grid; gap: 8px; }
.findings li { position: relative; padding-left: 20px; color: var(--ink-2); font-size: 16px; }
.findings li::before { content: ''; position: absolute; left: 2px; top: 0.62em; width: 7px; height: 7px; background: var(--gold-lo); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.live-line { margin-top: 22px; text-align: center; font: italic 400 16px/1.5 var(--serif); color: var(--ink-3); }
.live { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.live-tag { display: inline-block; margin-right: 8px; color: var(--gold-hi); font: 500 12px/1 var(--caps); letter-spacing: 0.2em; }

/* ---------- four mirrors ---------- */
.checks { display: grid; gap: 0; }
.check { display: grid; grid-template-columns: 14px 1fr auto; gap: 4px 10px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.check:last-child { border-bottom: 1px solid var(--line-soft); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-hi); box-shadow: 0 0 0 3px rgba(227, 199, 126, 0.12); transform: translateY(-1px); }
.dot.is-off { background: transparent; border: 1px solid var(--ink-3); box-shadow: none; }
.check-name { font: 500 17px/1.3 var(--serif); overflow-wrap: anywhere; }
.check-num { font-variant-numeric: lining-nums tabular-nums; color: var(--ink-2); white-space: nowrap; }
.check-sub { grid-column: 2 / -1; font-size: 14.5px; color: var(--ink-3); }
.money { margin-top: 22px; text-align: center; }
.money-n { font: 500 30px/1.1 var(--display); }
.money p + p { margin-top: 4px; }
.fm-loops { margin-top: 22px; }
.fm-loops li { padding: 9px 0; border-top: 1px solid var(--line-soft); }
.fm-loops li:last-child { border-bottom: 1px solid var(--line-soft); }
.go { display: inline-block; margin-top: 10px; font: italic 400 16px/1.4 var(--serif); }

/* ---------- content ---------- */
.strip { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--gold-lo) transparent; }
.strip figure { flex: none; width: 128px; scroll-snap-align: start; }
.strip .thumb { width: 100%; }
.strip figcaption { margin-top: 6px; font-size: 14px; line-height: 1.3; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.content-status { margin: 4px 0 14px; color: var(--ink-2); font-size: 16px; }
details.fold { margin-top: 18px; border-top: 1px solid var(--line-soft); }
details.fold > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px;
  font: 500 17px/1.3 var(--serif); color: var(--ink);
}
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::after { content: '+'; color: var(--gold-lo); font-size: 20px; }
details.fold[open] > summary::after { content: '\2212'; }
.grid-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; padding-bottom: 14px; }
.grid-thumbs .thumb { width: 100%; }

/* ---------- open tabs ---------- */
.tabs-count { text-align: center; }
.tabs-n { font: 500 68px/1 var(--display); color: var(--gold-hi); font-variant-numeric: lining-nums; }
.tabs-word { margin-top: 2px; font: italic 500 22px/1.2 var(--display); color: var(--ink); }
.tabs-count .src { margin-top: 8px; }
.areas { margin-top: 22px; display: grid; gap: 0 28px; align-items: start; }
details.area { border-top: 1px solid var(--line-soft); }
details.area:last-child { border-bottom: 1px solid var(--line-soft); }
details.area > summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto 18px; align-items: center; gap: 12px; min-height: 56px;
}
details.area > summary::-webkit-details-marker { display: none; }
details.area > summary::after { content: '+'; color: var(--gold-lo); font-size: 20px; text-align: right; }
details.area[open] > summary::after { content: '\2212'; }
.area-name { font: 600 21px/1.2 var(--display); }
.area-oldest { display: block; font: italic 400 14.5px/1.3 var(--serif); color: var(--ink-3); }
.area-n { font: 500 24px/1 var(--display); color: var(--ink-2); font-variant-numeric: lining-nums tabular-nums; }
.loops { padding-bottom: 8px; }
.loop { padding: 14px 0 12px; border-top: 1px dashed var(--line-soft); }
.loop-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; }
.loop-title { font: 500 17px/1.35 var(--serif); color: var(--ink); overflow-wrap: anywhere; }
.loop-title .sc { font-variant-caps: all-small-caps; letter-spacing: 0.06em; font-size: 18.5px; }
.loop-title .paren { color: var(--ink-3); font-size: 15px; }
.loop-x { margin-top: 5px; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); overflow-wrap: anywhere; }
.loop-actions { margin-top: 10px; display: flex; gap: 8px; align-items: center; }
.loop-actions .btn { min-height: 40px; padding: 0 16px; font-size: 15px; }
.kept { font: italic 400 14.5px/1 var(--serif); color: var(--ink-3); margin-left: auto; }

/* ---------- decided ---------- */
.decided { max-width: 760px; margin-inline: auto; }
.decided li { display: grid; grid-template-columns: 1fr; gap: 2px 16px; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.decided li:last-child { border-bottom: 1px solid var(--line-soft); }
.d-what { font: 500 12px/1.9 var(--caps); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
.d-title { color: var(--ink); font-size: 16.5px; }
.d-when { font-size: 14.5px; color: var(--ink-3); }
.d-note { font-style: italic; color: var(--ink-2); font-size: 16px; }
@media (min-width: 700px) {
  .decided li { grid-template-columns: 9.5em 1fr; }
  .d-when, .d-note { grid-column: 2; }
}

/* ---------- sources footer ---------- */
.sources { max-width: 1160px; margin: 0 auto; padding: 18px var(--gutter-r) max(28px, env(safe-area-inset-bottom, 0px)) var(--gutter-l); }
.sources-in { max-width: 760px; margin: 0 auto; border-top: 1px solid var(--line); padding-top: 22px; }
.sources h2 { text-align: center; margin-bottom: 12px; }
.src-list { display: grid; gap: 0; }
.src-row { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
.src-row dt { color: var(--ink-2); }
.src-row dd { color: var(--ink-3); text-align: right; font-style: italic; }
.src-row.is-stale dd { color: var(--ink-2); }
.foot { margin-top: 20px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.foot img { width: 40px; height: 40px; opacity: 0.9; }
.motto { font: italic 500 17px/1.3 var(--display); color: var(--ink-3); }
.foot .src { font-style: normal; font-size: 13.5px; }

/* ---------- toast + viewer ---------- */
.toast {
  position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom, 0px)); z-index: 40;
  width: min(440px, calc(100vw - 32px)); transform: translateX(-50%);
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px;
  padding: 12px 12px 14px 16px; background: #0B101B; border: 1px solid var(--gold-lo); border-radius: 2px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55); overflow: hidden;
}
.toast p { font-size: 16px; line-height: 1.35; color: var(--ink); }
.toast p span { color: var(--ink-2); }
.toast .btn { min-height: 40px; padding: 0 14px; }
.toast-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold); transform-origin: left; }
.toast.is-in { animation: toast-in 260ms var(--ease) both; }
.toast.is-in .toast-bar { animation: drain 10s linear both; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes drain { from { transform: scaleX(1); } to { transform: scaleX(0); } }

.viewer { max-width: min(92vw, 560px); width: 100%; padding: 0; border: 1px solid var(--gold-lo); background: var(--ground); color: var(--ink); }
.viewer::backdrop { background: rgba(2, 4, 8, 0.86); }
.viewer img { width: 100%; height: auto; max-height: 78vh; object-fit: contain; background: #000; }
.viewer-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 14px; }
.viewer-bar p { font-size: 15.5px; color: var(--ink-2); }

/* ---------- motion that means something ---------- */
.is-leaving { animation: leave 240ms var(--ease) both; }
.is-arriving { animation: arrive 420ms var(--ease) both; }
@keyframes leave { to { opacity: 0; transform: translateY(-8px); } }
@keyframes arrive { from { opacity: 0.15; transform: translateY(6px); } to { opacity: 1; transform: none; } }

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

/* ---------- loading + errors ---------- */
.boot { text-align: center; padding: 30vh 0; color: var(--ink-3); font: italic 400 18px/1.4 var(--serif); }
.banner { margin-top: 14px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 2px; text-align: center; color: var(--ink-2); font-size: 15.5px; }

/* ---------- wider screens ---------- */
@media (min-width: 700px) {
  .today { padding-top: 18px; }
  .one { margin-top: 30px; }
  .card--one { padding: 40px 48px 30px; }
  .card--one .why { font-size: 17px; line-height: 1.6; text-align: justify; text-align-last: center; hyphens: auto; -webkit-hyphens: auto; }
  .one-title { font-size: 40px; }
  .card--one .actions { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .card--one .actions .btn--primary { grid-column: auto; }
  .kpis { grid-template-columns: repeat(6, 1fr); }
  .kpi:not(:nth-child(3n)) { border-right: 0; }
  .kpi:not(:last-child) { border-right: 1px solid var(--line-soft); }
  .strip figure { width: 140px; }
  .grid-thumbs { grid-template-columns: repeat(8, 1fr); }
}
@media (min-width: 960px) {
  .needs-list { grid-template-columns: repeat(3, 1fr); align-items: start; }
  .etsy-grid { grid-template-columns: 1.15fr 1fr; gap: 40px; }
  .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
  .areas { grid-template-columns: 1fr 1fr; }
  details.area:nth-last-child(2):nth-child(odd) { border-bottom: 1px solid var(--line-soft); }
  .tabs-n { font-size: 84px; }
}

/* ---------- login ---------- */
.login-page { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px var(--gutter-r) 24px var(--gutter-l); }
.login { width: 100%; max-width: 380px; text-align: center; }
.login-mark { width: 96px; height: 96px; margin: 0 auto 18px; }
.login .brand-word { display: block; font-size: 14px; }
.login h1 { margin-top: 10px; font: italic 500 28px/1.2 var(--display); color: var(--ink-2); }
.login form { margin-top: 30px; display: grid; gap: 12px; text-align: left; }
.login label { font: 500 12px/1.4 var(--caps); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.login input[type='password'] {
  width: 100%; min-height: 52px; padding: 0 14px; border: 1px solid var(--line); border-radius: 2px;
  background: var(--ground-raise); color: var(--ink); font: 400 18px/1 var(--serif); letter-spacing: 0.04em;
}
.login input[type='password']:focus { outline: none; border-color: var(--gold); }
.login .btn--primary { min-height: 52px; font-size: 18px; margin-top: 4px; }
.login-msg { margin-top: 18px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 2px; color: var(--ink-2); font-size: 16px; }
.login .motto { margin-top: 36px; }

/* grid children may shrink below their content (the thumbnail strip scrolls instead of widening the page) */
.pair > *, .etsy-grid > *, .needs-list > *, .areas > * { min-width: 0; }
.cp-wrap { margin-top: 18px; }
