/* Sort Me Out: graphite and dark orange, classic type. Square blocks, dense, an application not a shop. */
:root {
  --graphite: #16181b;
  --graphite-900: #1d2024;
  --graphite-800: #26292e;
  --graphite-700: #353a40;
  --graphite-600: #4a5058;
  --graphite-300: #a3a9b0;
  --graphite-200: #d5d8dc;
  --graphite-100: #eceef0;
  --graphite-50: #f3f4f5;
  --paper: #f6f5f3;
  --card: #ffffff;
  --ink: #16181b;
  --muted: #565c63;
  --soft-on-dark: #c9cdd2;
  --line: #e2e3e6;
  --ember: #ea6a1f;
  --accent: #c2410c;
  --accent-press: #9a3412;
  --peach: #fde8da;
  --peach-soft: #fff6f0;
  --good: #166534;
  --good-bg: #e7f5ec;
  --bad: #7f1d1d;
  --bad-bg: #fde2e2;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --topbar-h: 48px;
  --side-w: 232px;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; overflow-x: hidden; background: var(--paper); }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-press); }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; margin: 0 0 0.4rem; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.4vw, 3.6rem); letter-spacing: -0.02em; line-height: 1.05; }
h2 { font-size: clamp(1.4rem, 2.2vw, 2rem); margin-top: 1.5rem; }
h3 { font-size: 1.15rem; }
p { margin: 0.25rem 0 0.7rem; text-wrap: pretty; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--graphite); color: white; padding: 0.5rem 0.8rem; z-index: 60; }
.skip:focus { top: 0.5rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 1px; }
main:focus, h1:focus, [tabindex="-1"]:focus { outline: none; }
.bleed { margin-inline: calc(50% - 50vw); padding-inline: calc(50vw - 50%); }
.env-banner { position: relative; z-index: 41; text-align: center; font-size: 0.82rem; font-weight: 600; padding: 0.2rem 1rem; color: var(--graphite); background: repeating-linear-gradient(-45deg, #ea6a1f 0 14px, #f08a4b 14px 28px); }
.eyebrow { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin: 0 0 0.4rem; }
.lead { font-size: 1.05rem; color: var(--muted); }
.hint { color: var(--muted); font-size: 0.87rem; margin: 0.2rem 0; }
.optional { color: var(--muted); font-weight: 400; font-size: 0.85em; }

/* ---------------- Brand ---------------- */
.brand { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--paper); text-decoration: none; }
.brand:hover { color: white; }
.mark { width: 1.9rem; height: 1.9rem; flex: none; }
.wordmark { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; letter-spacing: -0.02em; line-height: 1; text-transform: lowercase; white-space: nowrap; }
.wordmark em { font-style: italic; color: var(--ember); padding-inline: 0.04em; }

/* ---------------- Buttons ---------------- */
button, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 34px; padding: 0.35rem 0.85rem; border: 1px solid var(--accent); border-radius: var(--radius);
  background: var(--accent); color: white; font: inherit; font-weight: 600; font-size: 0.93rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap; transition: background 0.15s ease, border-color 0.15s ease;
}
button:hover, .button:hover { background: var(--accent-press); border-color: var(--accent-press); color: white; }
button:disabled { opacity: 0.55; cursor: not-allowed; }
button.secondary, .button.secondary { background: var(--card); color: var(--ink); border-color: var(--graphite-200); }
button.secondary:hover, .button.secondary:hover { background: var(--graphite-50); border-color: var(--graphite-300); color: var(--ink); }
button.danger, .button.danger { background: var(--card); color: var(--bad); border-color: #e7b4b4; }
button.danger:hover { background: var(--bad-bg); color: var(--bad); border-color: var(--bad); }
button.small, .button.small { min-height: 28px; padding: 0.2rem 0.6rem; font-size: 0.85rem; }
.button.large, button.large { min-height: 44px; padding: 0.6rem 1.2rem; font-size: 1rem; }
.block { width: 100%; }
.icon-only { display: inline-grid; place-items: center; width: 32px; height: 32px; min-height: 0; padding: 0; border: 1px solid transparent; background: transparent; color: inherit; border-radius: var(--radius); }
.icon-only:hover { background: rgba(127, 127, 127, 0.14); border-color: transparent; color: inherit; }
.push-right { margin-left: auto; }
.arrow { display: inline-block; transition: transform 0.2s var(--ease); }
.button:hover .arrow { transform: translateX(3px); }

/* ---------------- Forms ---------------- */
.form { display: grid; gap: 0.7rem; }
.form label, .form legend { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.4rem; font-weight: 600; font-size: 0.88rem; }
.form label > input:not([type=checkbox]):not([type=radio]), .form label > select, .form label > textarea, .form label > .hint { flex-basis: 100%; }
.form label > .hint { font-weight: 400; }
::placeholder { color: #8a9097; opacity: 1; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 0.25rem; font-weight: 600; font-size: 0.88rem; display: flex; align-items: center; gap: 0.35rem; }
input, select, textarea {
  font: inherit; font-size: 0.95rem; color: var(--ink); background: var(--card); width: 100%;
  border: 1px solid var(--graphite-200); border-radius: var(--radius); padding: 0.35rem 0.55rem; min-height: 34px;
}
textarea { resize: vertical; min-height: 0; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px rgba(194, 65, 12, 0.18); }
input[type="checkbox"], input[type="radio"] { width: auto; min-height: 0; accent-color: var(--accent); margin: 0; }
.check { display: flex !important; align-items: center; gap: 0.45rem; font-weight: 400 !important; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; align-items: start; }
.field-row.three { grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr) minmax(0, 1fr); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; }
.form-actions.sticky { position: sticky; bottom: 0; background: var(--card); padding: 0.6rem 0 0.2rem; border-top: 1px solid var(--line); margin-top: 0.2rem; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.code-input { font-size: 1.4rem; letter-spacing: 0.15em; text-transform: uppercase; font-weight: 700; max-width: 14rem; }

.segmented-field legend { margin-bottom: 0.2rem; }
.segmented { display: inline-flex; border: 1px solid var(--graphite-200); border-radius: var(--radius); background: var(--card); }
.segmented label { display: block !important; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: block; padding: 0.3rem 0.7rem; font-weight: 600; font-size: 0.87rem; cursor: pointer; border-left: 1px solid var(--graphite-200); white-space: nowrap; }
.segmented label:first-child span { border-left: 0; }
.segmented input:checked + span { background: var(--graphite); color: white; }
.segmented input:focus-visible + span { outline: 2px solid var(--ember); outline-offset: -2px; }

.switch-row { display: flex !important; align-items: flex-start; gap: 0.8rem; justify-content: space-between; padding: 0.5rem 0; border-top: 1px solid var(--line); cursor: pointer; }
.switch-text { display: grid; gap: 0.1rem; }
.switch-label { font-weight: 600; }
.switch-row .hint { font-weight: 400; }
.switch-row input { position: absolute; opacity: 0; }
.switch { flex: none; width: 36px; height: 20px; background: var(--graphite-200); position: relative; margin-top: 0.15rem; transition: background 0.15s ease; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; background: white; transition: transform 0.15s ease; }
.switch-row input:checked + .switch { background: var(--accent); }
.switch-row input:checked + .switch::after { transform: translateX(16px); }
.switch-row input:focus-visible + .switch { outline: 2px solid var(--ember); outline-offset: 2px; }

.choice-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.choice-card { display: flex !important; gap: 0.5rem; align-items: flex-start; padding: 0.5rem 0.6rem; border: 1px solid var(--graphite-200); background: var(--card); cursor: pointer; font-weight: 400 !important; }
.choice-card input { margin-top: 0.2rem; }
.choice-card strong { display: flex; align-items: center; gap: 0.3rem; font-weight: 600; }
.choice-card small { display: block; color: var(--muted); font-size: 0.83rem; }
.choice-card:has(input:checked) { border-color: var(--accent); background: var(--peach-soft); }

.chips { display: flex; flex-wrap: wrap; gap: 0.3rem; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.15rem 0.5rem; border: 1px solid var(--graphite-200); background: var(--card); color: var(--ink); font-size: 0.85rem; font-weight: 600; text-decoration: none; border-radius: var(--radius); white-space: nowrap; }
.chip small { color: var(--muted); font-weight: 400; }
.chip:hover { border-color: var(--graphite-300); color: var(--ink); }
.chip.on { background: var(--graphite); border-color: var(--graphite); color: white; }
.chip.on small { color: var(--graphite-300); }
.chip.static { background: var(--peach); border-color: var(--peach); color: var(--accent-press); }
.chip-check { display: inline-flex !important; cursor: pointer; }
.chip-check input { position: absolute; opacity: 0; }
.chip-check span { padding: 0.15rem 0.5rem; border: 1px solid var(--graphite-200); background: var(--card); font-size: 0.85rem; font-weight: 600; }
.chip-check input:checked + span { background: var(--peach); border-color: var(--accent); color: var(--accent-press); }
.chip-check input:focus-visible + span { outline: 2px solid var(--ember); outline-offset: 1px; }
.chip-new { display: inline-flex; gap: 0.25rem; align-items: center; }
.chip-new input { width: 9rem; min-height: 28px; padding: 0.15rem 0.45rem; font-size: 0.87rem; }
.tag-picker legend, .tag-chooser legend { font-weight: 600; font-size: 0.88rem; }

.price-inputs { display: grid; grid-template-columns: 6rem minmax(0, 1fr) auto minmax(0, 1fr); gap: 0.35rem; align-items: center; max-width: 26rem; }
.price-inputs label { display: block !important; }
.currency-pick select { font-weight: 600; }
.input-button { display: flex; gap: 0.35rem; }
.input-button input { flex: 1; }
.link-row { display: grid; grid-template-columns: minmax(0, 1fr) 10rem; gap: 0.35rem; margin-bottom: 0.35rem; }
.link-row label { display: block !important; }
.from-link { display: grid; gap: 0.3rem; padding: 0.6rem; background: var(--graphite-50); border: 1px solid var(--line); }
.from-link > label { display: flex !important; align-items: center; gap: 0.35rem; font-weight: 600; font-size: 0.88rem; }
.found-image { font-size: 0.88rem; }
.found-image img { width: 56px; height: 56px; object-fit: contain; background: white; border: 1px solid var(--line); }
.image-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.4rem; }
.image-remove { display: grid !important; gap: 0.2rem; font-weight: 400 !important; font-size: 0.85rem; }
.image-remove img { width: 72px; height: 72px; object-fit: cover; border: 1px solid var(--line); }
.image-remove span { display: flex; gap: 0.3rem; align-items: center; }
.image-drop { display: block !important; position: relative; cursor: pointer; border: 1px dashed var(--graphite-300); background: var(--card); padding: 0.6rem; }
.image-drop:hover { border-color: var(--accent); }
.image-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.image-drop-text { display: flex; align-items: center; gap: 0.5rem; font-weight: 400; }
.image-drop-text small { color: var(--muted); }
.image-previews { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.image-previews img { width: 56px; height: 56px; object-fit: cover; }

/* ---------------- Messages ---------------- */
.flash { display: flex; align-items: flex-start; gap: 0.5rem; padding: 0.45rem 0.7rem; margin: 0 0 0.6rem; font-size: 0.92rem; border-left: 3px solid; animation: flash-in 0.25s var(--ease) both; }
.flash.good { background: var(--good-bg); color: var(--good); border-color: var(--good); }
.flash.bad { background: var(--bad-bg); color: var(--bad); border-color: var(--bad); }
.flash.info { background: var(--peach-soft); color: var(--accent-press); border-color: var(--accent); }
.flash svg { flex: none; margin-top: 0.1rem; }
@keyframes flash-in { from { opacity: 0; transform: translateY(-4px); } }
.strip { display: flex; align-items: center; gap: 0.4rem; margin: 0; padding: 0.3rem 0.9rem; background: var(--graphite-50); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 0.83rem; }
.owner-note { display: flex; gap: 0.45rem; align-items: flex-start; padding: 0.45rem 0.6rem; background: var(--graphite-50); border: 1px solid var(--line); color: var(--muted); font-size: 0.87rem; }

/* ---------------- Landing page shell (Razor) ---------------- */
.shell { width: min(1180px, calc(100% - 2.5rem)); margin: 0 auto; }
.top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.5rem 1.5rem; padding: 0.5rem 0; position: sticky; top: 0; z-index: 30;
  background: var(--graphite); color: var(--paper);
  box-shadow: 0 0 0 100vmax var(--graphite); clip-path: inset(0 -100vmax);
}
.top nav { display: flex; flex-wrap: wrap; gap: 0.3rem 1.3rem; align-items: center; font-size: 0.95rem; }
.top nav a { color: var(--soft-on-dark); text-decoration: none; font-weight: 600; }
.top nav a:hover { color: white; }
.top nav form { margin: 0; }
.top .button { color: white; }
.top .secondary, .top button.secondary { color: var(--paper); border-color: var(--graphite-600); background: transparent; }
.top .secondary:hover, .top button.secondary:hover { background: var(--graphite-800); color: white; }
.shell > main { padding-bottom: 4rem; min-height: 60vh; }
.foot {
  color: var(--graphite-300); padding: 2rem 0 1.4rem; background: var(--graphite);
  box-shadow: 0 0 0 100vmax var(--graphite); clip-path: inset(0 -100vmax);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.2rem 2rem; font-size: 0.93rem;
}
.foot .brand { margin-bottom: 0.4rem; }
.foot p { margin: 0; max-width: 24rem; }
.foot h3 { font-family: var(--sans); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--paper); margin: 0 0 0.5rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.25rem; }
.foot a { color: var(--soft-on-dark); text-decoration: none; }
.foot a:hover { color: white; }
.foot .fine { grid-column: 1 / -1; border-top: 1px solid var(--graphite-700); padding-top: 0.9rem; margin: 0; font-size: 0.86rem; max-width: none; }
.prose-page { max-width: 46rem; padding: 2rem 0; }
.prose-page h2 { font-size: 1.35rem; }
.empty { text-align: center; padding: 3rem 1rem; max-width: 34rem; margin: 0 auto; }
.empty-art { width: 56px; height: 56px; margin: 0 auto 0.8rem; }

/* ---------------- App shell (React): top bar, sidebar, workspace ---------------- */
.app { min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 40; height: var(--topbar-h); display: flex; align-items: center; gap: 0.6rem;
  padding: 0 0.75rem; background: var(--graphite); color: var(--paper); border-bottom: 2px solid var(--ember);
}
.topbar .brand .wordmark { font-size: 1.2rem; }
.topbar .mark { width: 1.7rem; height: 1.7rem; }
.topbar-spacer { flex: 1; }
.topbar-user { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--soft-on-dark); text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.topbar-user:hover { color: white; }
.topbar-links { display: flex; align-items: center; gap: 0.9rem; }
.topbar-links a:not(.button) { color: var(--soft-on-dark); text-decoration: none; font-weight: 600; }
.topbar-links a:not(.button):hover { color: white; }
.nav-toggle { display: none; color: var(--paper); }
.offline-bar { display: flex; gap: 0.4rem; align-items: center; justify-content: center; margin: 0; padding: 0.25rem 1rem; background: var(--graphite-800); color: var(--paper); font-size: 0.85rem; }

.workspace { flex: 1; display: flex; min-height: 0; }
.sidebar {
  width: var(--side-w); flex: none; background: var(--graphite-50); border-right: 1px solid var(--line);
  position: sticky; top: var(--topbar-h); height: calc(100vh - var(--topbar-h)); overflow-y: auto;
}
.sidebar-inner { padding: 0.7rem 0 1rem; display: flex; flex-direction: column; }
.compose { margin: 0 0.75rem 0.5rem; width: auto; min-height: 36px; }
.side-h { margin: 0.8rem 0.9rem 0.2rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.side-h-row { display: flex; align-items: center; justify-content: space-between; }
.side-add { width: 22px; height: 22px; min-height: 0; padding: 0; background: transparent; border: 1px solid var(--graphite-200); color: var(--muted); }
.side-add:hover { background: var(--card); color: var(--accent); border-color: var(--accent); }
.side-link { display: flex; align-items: center; gap: 0.55rem; padding: 0.3rem 0.9rem; color: var(--ink); text-decoration: none; border-left: 3px solid transparent; font-size: 0.93rem; }
.side-link svg { flex: none; color: var(--muted); }
.side-link:hover { background: var(--graphite-100); color: var(--ink); }
.side-link.active { background: var(--peach); border-left-color: var(--accent); color: var(--accent-press); font-weight: 600; }
.side-link.active svg { color: var(--accent); }
.side-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-count { font-size: 0.78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.side-form { display: flex; flex-wrap: wrap; gap: 0.3rem; padding: 0.2rem 0.9rem 0.4rem; }
.side-form input { flex: 1; min-width: 0; min-height: 28px; padding: 0.15rem 0.4rem; font-size: 0.88rem; }
.side-error { flex-basis: 100%; margin: 0; color: var(--bad); font-size: 0.82rem; }
.side-empty { margin: 0 0.9rem; font-size: 0.82rem; color: var(--muted); }
.side-foot { margin: 1rem 0.9rem 0; font-size: 0.82rem; color: var(--muted); }
.side-foot a { color: var(--muted); }
.scrim { display: none; }

.main { flex: 1; min-width: 0; background: var(--card); }
.page-pad { padding: 1rem 1.25rem 3rem; max-width: 1100px; }
.page-pad.narrow { max-width: 720px; }
.page-head { margin-bottom: 0.8rem; }
.page-head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.page-head h1 { font-size: 1.6rem; margin: 0 0 0.15rem; }
.page-head .lead { font-size: 0.95rem; margin: 0; }
.page-actions { display: flex; gap: 0.4rem; }
.back { display: inline-flex; align-items: center; gap: 0.2rem; font-size: 0.88rem; margin-bottom: 0.3rem; text-decoration: none; }
.section-title { font-family: var(--sans); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 1.2rem 0 0.4rem; }
.panel { background: var(--card); border: 1px solid var(--line); padding: 0.9rem 1rem; margin-bottom: 0.9rem; }
.panel > h2 { font-family: var(--sans); font-size: 1rem; font-weight: 700; margin: 0 0 0.5rem; }
.sub-panel { border: 1px solid var(--line); background: var(--graphite-50); padding: 0.7rem; margin: 0.5rem 0; }
.sub-panel h3 { font-family: var(--sans); font-size: 0.98rem; font-weight: 700; }
.stack { display: grid; gap: 0.5rem; margin-top: 0.6rem; }
.guest-foot { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; padding: 1rem 1.25rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; }
.guest-foot a { color: var(--muted); }

/* ---------------- Lists: toolbar, rows, reading pane (like a mail app) ---------------- */
.mail { display: grid; grid-template-columns: minmax(0, 1fr); min-height: calc(100vh - var(--topbar-h)); }
.mail.has-pane { grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr); }
.mail-list { min-width: 0; border-right: 1px solid var(--line); }
.mail-pane { min-width: 0; position: sticky; top: var(--topbar-h); height: calc(100vh - var(--topbar-h)); overflow-y: auto; background: var(--card); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; padding: 0.55rem 0.9rem; border-bottom: 1px solid var(--line); background: var(--card); position: sticky; top: var(--topbar-h); z-index: 5; }
.toolbar-title { display: flex; align-items: baseline; gap: 0.5rem; min-width: 0; }
.toolbar-title h1 { font-size: 1.25rem; margin: 0; letter-spacing: -0.01em; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toolbar-count { color: var(--muted); font-size: 0.83rem; white-space: nowrap; }
.search { flex: 1; min-width: 9rem; max-width: 20rem; display: flex; align-items: center; gap: 0.3rem; border: 1px solid var(--graphite-200); padding: 0 0.45rem; background: var(--graphite-50); margin-left: auto; color: var(--muted); }
.search input { border: 0; background: transparent; min-height: 30px; padding: 0.1rem 0.2rem; }
.search input:focus { box-shadow: none; }
.search:focus-within { border-color: var(--accent); background: var(--card); }
.toolbar-actions { display: flex; gap: 0.35rem; }
.tag-bar { display: flex; gap: 0.3rem; overflow-x: auto; padding: 0.45rem 0.9rem; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tag-bar::-webkit-scrollbar { display: none; }
.mobile-only { display: none; }

.rows { display: flex; flex-direction: column; }
.row {
  display: flex; align-items: center; gap: 0.65rem; padding: 0.45rem 0.9rem; min-height: 52px;
  border: 0; border-bottom: 1px solid var(--line); border-left: 3px solid transparent; border-radius: 0;
  background: var(--card); color: var(--ink); text-decoration: none; text-align: left; font-weight: 400; width: 100%; white-space: normal;
}
a.row:hover, button.row:hover { background: var(--graphite-50); color: var(--ink); border-color: var(--line); border-left-color: var(--graphite-200); }
.row.selected, .row.selected:hover { background: var(--peach-soft); border-left-color: var(--accent); }
.row-thumb { width: 38px; height: 38px; flex: none; display: grid; place-items: center; background: var(--graphite-100); color: var(--graphite-600); font-weight: 700; overflow: hidden; }
.row-thumb img { width: 100%; height: 100%; object-fit: cover; }
.row-main { flex: 1; min-width: 0; display: grid; gap: 0.05rem; }
.row-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); text-decoration: none; }
a.row-title:hover { color: var(--accent); }
.row-star { color: var(--accent); vertical-align: -1px; margin-right: 0.25rem; }
.row-sub { display: flex; flex-wrap: wrap; gap: 0.15rem 0.6rem; font-size: 0.8rem; color: var(--muted); min-width: 0; }
.row-sub a { color: var(--muted); }
.row-tag { color: var(--accent-press); background: var(--peach); padding: 0 0.3rem; }
.row-side { display: flex; align-items: center; gap: 0.45rem; flex: none; }
.row-price { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; min-width: 4rem; text-align: right; }
.expired { color: var(--bad); }
.empty-rows { padding: 2rem 1.25rem; max-width: 36rem; }
.empty-rows h2 { margin-top: 0; font-size: 1.3rem; }

.badge { display: inline-flex; align-items: center; gap: 0.2rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 0.08rem 0.35rem; border: 1px solid; white-space: nowrap; }
.badge.public { color: var(--good); border-color: #9cc9ad; background: var(--good-bg); }
.badge.private { color: var(--graphite-600); border-color: var(--graphite-200); background: var(--graphite-50); }
.status { display: inline-flex; align-items: center; gap: 0.2rem; font-size: 0.75rem; font-weight: 700; padding: 0.08rem 0.4rem; white-space: nowrap; }
.status.open { background: var(--graphite-100); color: var(--graphite-600); }
.status.part, .status.planned { background: var(--peach); color: var(--accent-press); }
.status.bought { background: var(--graphite); color: white; }
.seg { display: inline-flex; border: 1px solid var(--graphite-200); }
.seg button { min-height: 26px; padding: 0.1rem 0.55rem; font-size: 0.8rem; background: var(--card); color: var(--ink); border: 0; border-left: 1px solid var(--graphite-200); }
.seg button:first-child { border-left: 0; }
.seg button.on { background: var(--graphite); color: white; }
.seg button:hover:not(.on) { background: var(--graphite-50); }

.ranker { padding: 0.6rem 0.9rem; }
.ranker-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 0.4rem; }
.ranker ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.25rem; }
.ranker li { display: flex; align-items: center; gap: 0.6rem; padding: 0.35rem 0.6rem; border: 1px solid var(--line); background: var(--card); cursor: grab; }
.ranker li.dragging { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15); z-index: 2; position: relative; }
.rank { width: 1.6rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.rank-title { flex: 1; font-weight: 600; }
.grip { color: var(--muted); }

/* Reading pane */
.detail { padding: 0 1.1rem 2rem; }
.detail-bar { display: flex; align-items: center; gap: 0.5rem; padding: 0.45rem 0; border-bottom: 1px solid var(--line); margin-bottom: 0.8rem; position: sticky; top: 0; background: var(--card); z-index: 2; }
.detail-crumb { flex: 1; color: var(--muted); font-size: 0.85rem; }
.detail-head { display: flex; gap: 0.9rem; align-items: flex-start; margin-bottom: 0.6rem; }
.detail-image { width: 96px; height: 96px; flex: none; display: grid; place-items: center; background: var(--graphite-50); border: 1px solid var(--line); color: var(--graphite-300); overflow: hidden; }
.detail-image img { width: 100%; height: 100%; object-fit: contain; background: white; }
.detail h1 { font-size: 1.45rem; margin: 0 0 0.3rem; }
.facts { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.8rem; margin: 0; color: var(--muted); font-size: 0.88rem; }
.facts span { display: inline-flex; align-items: center; gap: 0.2rem; }
.fact-price { font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.fact-hot { color: var(--accent-press); font-weight: 600; }
.gallery { display: flex; gap: 0.4rem; overflow-x: auto; margin-bottom: 0.6rem; }
.gallery img { height: 120px; width: auto; border: 1px solid var(--line); background: white; }
.prose { white-space: pre-line; }
.detail-section { border-top: 1px solid var(--line); padding-top: 0.7rem; margin-top: 0.8rem; }
.detail-section h2 { font-family: var(--sans); font-size: 0.95rem; font-weight: 700; margin: 0 0 0.45rem; display: flex; align-items: center; gap: 0.35rem; }
.shop-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3rem; }
.shop-links li { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.shop-link { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0.6rem; border: 1px solid var(--graphite-200); color: var(--ink); text-decoration: none; }
.shop-link:hover { border-color: var(--accent); color: var(--accent-press); }
.shop-link small { color: var(--muted); }
.original-link { font-size: 0.82rem; color: var(--muted); }
.tag-row { display: flex; flex-wrap: wrap; gap: 0.3rem; align-items: center; color: var(--muted); margin: 0.7rem 0; }
.people-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.people-list li { display: flex; align-items: center; gap: 0.55rem; }
.person-text { flex: 1; display: grid; }
.person-text small { color: var(--muted); }
.claim-box { background: var(--peach-soft); border: 1px solid var(--peach); padding: 0.7rem; }
.covered { display: flex; gap: 0.35rem; align-items: center; color: var(--good); font-weight: 600; margin: 0; }
.lock-note { display: inline-flex; gap: 0.3rem; align-items: center; margin: 0; }
.chat { list-style: none; margin: 0 0 0.5rem; padding: 0; display: grid; gap: 0.45rem; }
.chat li { display: flex; gap: 0.5rem; align-items: flex-start; }
.bubble { background: var(--graphite-50); border: 1px solid var(--line); padding: 0.35rem 0.55rem; flex: 1; }
.bubble small { color: var(--muted); }
.bubble p { margin: 0.15rem 0 0; }
.chat-form { display: flex; gap: 0.4rem; align-items: flex-end; }
.chat-form textarea { flex: 1; }

/* ---------------- Avatars ---------------- */
.avatar { display: inline-grid; place-items: center; flex: none; font-weight: 700; color: white; background: var(--graphite-600); }
.avatar-xs { width: 18px; height: 18px; font-size: 0.6rem; }
.avatar-sm { width: 28px; height: 28px; font-size: 0.75rem; }
.avatar-md { width: 40px; height: 40px; font-size: 0.95rem; }
.avatar-lg { width: 56px; height: 56px; font-size: 1.3rem; }
.avatar.tone-0 { background: var(--accent); }
.avatar.tone-1 { background: var(--graphite-600); }
.avatar.tone-2 { background: var(--accent-press); }
.avatar.tone-3 { background: #3f6b5a; }
.avatar.tone-4 { background: #5b4a7a; }
.topbar .avatar { background: var(--ember); color: var(--graphite); }

/* ---------------- Sharing ---------------- */
.share-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; align-items: start; }
.share-grid .panel { margin-bottom: 0; }
.share-grid + .panel { margin-top: 0.9rem; }
.link-card { border: 1px solid var(--line); padding: 0.55rem 0.65rem; display: grid; gap: 0.35rem; }
.link-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin: 0; }
.link-card-head small { color: var(--muted); }
.copy-field { display: flex; gap: 0.3rem; align-items: flex-end; }
.copy-field label { flex: 1; display: grid !important; gap: 0.1rem; min-width: 0; }
.copy-label { font-size: 0.75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.copy-field input { font-family: ui-monospace, Consolas, monospace; font-size: 0.82rem; background: var(--graphite-50); }
.icon-button { min-height: 34px; }
.icon-button.is-done { background: var(--good-bg); color: var(--good); border-color: var(--good); }
.copy-pair { display: grid; gap: 0.3rem; margin-top: 0.35rem; }
.invite-code { font-family: ui-monospace, Consolas, monospace; letter-spacing: 0.1em; }
.table { display: grid; }
.table-row { display: flex; align-items: flex-start; gap: 0.6rem; padding: 0.55rem 0; border-top: 1px solid var(--line); }
.table-row:first-child { border-top: 0; }
.table-main { flex: 1; min-width: 0; display: grid; gap: 0.1rem; }
.table-main small { color: var(--muted); font-size: 0.83rem; }
.table-actions { display: flex; gap: 0.3rem; flex: none; }

/* ---------------- Add from a shop ---------------- */
.found-card { display: flex; gap: 0.8rem; align-items: center; }
.found-card img, .found-blank { width: 64px; height: 64px; object-fit: contain; flex: none; display: grid; place-items: center; background: var(--graphite-50); }
.found-card div { display: grid; gap: 0.15rem; }
.price { font-weight: 700; }
.bookmarklet { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.8rem; background: var(--graphite); color: white; font-weight: 600; text-decoration: none; cursor: grab; }

/* ---------------- Account and sign-in ---------------- */
.auth { max-width: 26rem; margin: 2rem auto; padding: 1.4rem 1.4rem 1.2rem; background: var(--card); border: 1px solid var(--line); text-align: center; }
.auth h1 { font-size: 1.6rem; }
.auth .lead { font-size: 0.95rem; }
.auth .form, .auth .flash, .auth .provider-buttons { text-align: left; }
.auth-mark { width: 44px; height: 44px; margin: 0 auto 0.6rem; }
.auth-foot { margin-top: 0.8rem; }
.divider { display: flex; align-items: center; gap: 0.6rem; color: var(--muted); font-size: 0.83rem; margin: 0.7rem 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.provider-buttons { display: grid; gap: 0.4rem; }
.provider-buttons form { margin: 0; }
button.provider { width: 100%; min-height: 40px; justify-content: center; gap: 0.6rem; font-size: 0.95rem; }
.provider-mark { display: inline-grid; place-items: center; width: 20px; height: 20px; }
button.provider-google { background: #ffffff; color: #1f1f1f; border: 1px solid #747775; font-family: Roboto, var(--sans); font-weight: 500; }
button.provider-google:hover { background: #f8faff; color: #1f1f1f; border-color: #747775; }
button.provider-microsoft { background: #ffffff; color: #5e5e5e; border: 1px solid #8c8c8c; font-family: "Segoe UI", var(--sans); font-weight: 600; }
button.provider-microsoft:hover { background: #f5f5f5; color: #5e5e5e; border-color: #8c8c8c; }
button.provider-twitter { background: #000000; color: #ffffff; border: 1px solid #000000; }
button.provider-twitter:hover { background: #1a1a1a; color: #ffffff; border-color: #1a1a1a; }
button.provider-amazon { background: #232f3e; color: #ffffff; border: 1px solid #232f3e; }
button.provider-amazon:hover { background: #37475a; color: #ffffff; border-color: #37475a; }
.profile { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.8rem; }
.profile h1 { font-size: 1.5rem; margin: 0; }
.profile .lead { margin: 0; font-size: 0.92rem; }
.plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.plain-list li { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; }
.plain-bullets { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.25rem; }
.danger-zone { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.lp-notice { margin: 0; padding: 0.7rem 1rem; background: var(--peach); color: var(--accent-press); font-weight: 600; text-align: center; }
.sign-out { margin-top: 1rem; }

/* ---------------- Loading ---------------- */
.skeleton { padding: 0.9rem; display: grid; gap: 0.45rem; }
.skeleton i { display: block; background: var(--graphite-100); animation: pulse 1.2s ease-in-out infinite; }
.sk-card { height: 44px; }
.sk-hero { height: 90px; }
.sk-line { height: 14px; }
.sk-line.w60 { width: 60%; }
.sk-line.w40 { width: 40%; }
.sk-block { height: 140px; }
@keyframes pulse { 50% { opacity: 0.55; } }

/* ---------------- Smaller screens ---------------- */
@media (max-width: 1100px) {
  .mail.has-pane { grid-template-columns: minmax(0, 1fr); }
  .mail.has-pane .mail-list { display: none; }
  .mail-pane { position: static; height: auto; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-grid; }
  .topbar-name { display: none; }
  .sidebar { position: fixed; z-index: 50; left: 0; top: var(--topbar-h); bottom: 0; height: auto; transform: translateX(-100%); visibility: hidden; transition: transform 0.2s var(--ease), visibility 0.2s; }
  .drawer-open .sidebar { transform: none; visibility: visible; box-shadow: 8px 0 24px rgba(0, 0, 0, 0.18); }
  .drawer-open .scrim { display: block; position: fixed; inset: var(--topbar-h) 0 0 0; z-index: 45; background: rgba(22, 24, 27, 0.35); border: 0; min-height: 0; padding: 0; border-radius: 0; }
  .mobile-only { display: flex; }
  .share-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  :root { font-size: 15px; }
  .topbar .wordmark { font-size: 1.05rem; }
  .toolbar { padding: 0.5rem 0.75rem; }
  .search { order: 3; flex-basis: 100%; max-width: none; margin-left: 0; }
  .toolbar-actions { margin-left: auto; }
  .row { padding: 0.45rem 0.75rem; }
  .row-side { flex-direction: column; align-items: flex-end; gap: 0.15rem; }
  .field-row, .field-row.three, .choice-pair { grid-template-columns: minmax(0, 1fr); }
  .link-row { grid-template-columns: minmax(0, 1fr); }
  .page-pad { padding: 0.8rem 0.75rem 3rem; }
  .detail { padding: 0 0.75rem 2rem; }
  .detail-image { width: 72px; height: 72px; }
  .auth { margin: 1rem 0.75rem; }
}

/* ================= Landing page ================= */
/* Square blocks, dense, app-like. Radii stay at 0-4px on the landing page. */
.lp { margin-bottom: -4rem; }
.lp .button, .lp button { border-radius: 3px; }
.lp .button.large { min-height: 48px; padding: 0.75rem 1.3rem; font-size: 1.02rem; }
.lp .button:hover { box-shadow: none; }
.lp .lead { max-width: 40rem; }

/* Hero */
.lp-hero { background: var(--graphite); color: var(--paper); padding-top: clamp(2rem, 4vw, 3.25rem); padding-bottom: clamp(2rem, 4vw, 3rem); border-bottom: 4px solid var(--ember); }
.lp-hero-top { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 1.25rem 3rem; align-items: end; margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.lp-hero .eyebrow { color: var(--ember); }
.lp-hero h1 { color: white; font-size: clamp(2.1rem, 4.4vw, 3.6rem); margin: 0; max-width: 13em; }
.lp-hero h1 em { font-style: italic; color: var(--ember); }
.lp-hero .lead { color: var(--soft-on-dark); font-size: 1.08rem; margin: 0 0 1.1rem; }
.lp-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0 0 1rem; }
.lp-assure { display: flex; flex-wrap: wrap; gap: 0.3rem 1.2rem; list-style: none; padding: 0; margin: 0; color: var(--graphite-300); font-size: 0.92rem; }
.lp-assure li { display: inline-flex; align-items: center; gap: 0.45rem; }
.lp-assure li::before { content: ""; width: 7px; height: 7px; background: var(--ember); flex: none; }

/* App window preview */
.lp-app { background: var(--card); color: var(--ink); border: 1px solid var(--graphite-700); border-radius: 4px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); font-size: 0.88rem; line-height: 1.4; }
.lp-app-bar { display: flex; align-items: center; gap: 0.8rem; padding: 0.5rem 0.75rem; background: var(--graphite-900); color: var(--soft-on-dark); border-bottom: 1px solid var(--graphite-700); }
.lp-crumb { display: flex; gap: 0.45rem; align-items: baseline; white-space: nowrap; min-width: 0; }
.lp-crumb b { color: white; font-weight: 600; }
.lp-crumb span { color: var(--graphite-300); }
.lp-search { flex: 1; max-width: 340px; margin-left: auto; display: flex; align-items: center; gap: 0.45rem; background: var(--graphite-800); color: var(--graphite-300); padding: 0.3rem 0.6rem; border-radius: 2px; }
.lp-btn { background: var(--accent); color: white; font-weight: 600; padding: 0.3rem 0.7rem; border-radius: 2px; white-space: nowrap; }
.lp-me { width: 26px; height: 26px; display: grid; place-items: center; background: var(--ember); color: var(--graphite); font-weight: 700; border-radius: 2px; flex: none; }
.lp-app-body { display: grid; grid-template-columns: 190px minmax(0, 1.2fr) minmax(0, 1fr); min-height: 380px; }

.lp-side { background: var(--graphite-50); border-right: 1px solid var(--line); padding: 0.5rem 0 0.75rem; display: flex; flex-direction: column; }
.lp-side-h { margin: 0.7rem 0.85rem 0.25rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.lp-side-h:first-child { margin-top: 0.25rem; }
.lp-nav { display: flex; align-items: center; gap: 0.5rem; padding: 0.28rem 0.85rem; color: var(--ink); border-left: 3px solid transparent; white-space: nowrap; }
.lp-nav i { margin-left: auto; font-style: normal; font-size: 0.78rem; color: var(--muted); }
.lp-nav i.dot { width: 7px; height: 7px; background: var(--good); }
.lp-nav s { width: 9px; height: 9px; background: var(--c); flex: none; }
.lp-nav.on { background: var(--peach); border-left-color: var(--accent); color: var(--accent-press); font-weight: 600; }
.lp-nav.on i { color: var(--accent-press); }

.lp-items { border-right: 1px solid var(--line); min-width: 0; }
.lp-items-h { display: flex; align-items: baseline; gap: 0.6rem; padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--line); }
.lp-items-h b { font-family: var(--serif); font-size: 1.1rem; }
.lp-items-h small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.lp-hidden-note { display: flex; align-items: center; gap: 0.4rem; margin: 0; padding: 0.35rem 0.8rem; background: var(--graphite-50); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 0.8rem; }
.lp-item { display: flex; align-items: center; gap: 0.65rem; padding: 0.5rem 0.8rem; border-bottom: 1px solid var(--line); border-left: 3px solid transparent; }
.lp-item.sel { background: var(--peach-soft); border-left-color: var(--accent); }
.lp-item .th { width: 34px; height: 34px; flex: none; background: var(--graphite-100); }
.lp-item .t1 { background: var(--ember); } .lp-item .t2 { background: var(--graphite-700); } .lp-item .t3 { background: var(--graphite-200); }
.lp-item .t4 { background: var(--peach); } .lp-item .t5 { background: var(--accent-press); } .lp-item .t6 { background: #d9c7b8; }
.lp-item .nm { flex: 1; min-width: 0; }
.lp-item b, .lp-item small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-item b { font-weight: 600; }
.lp-item small { color: var(--muted); font-size: 0.78rem; }
.lp-item .pr { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.lp-lock { display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 0.1rem 0.35rem; border: 1px solid var(--graphite-300); color: var(--muted); border-radius: 2px; white-space: nowrap; vertical-align: 1px; }

.lp-detail { padding: 0.8rem 0.9rem; min-width: 0; }
.lp-d-top { display: flex; gap: 0.8rem; align-items: center; margin-bottom: 0.75rem; }
.lp-d-img { width: 72px; height: 72px; flex: none; display: grid; background: var(--peach); }
.lp-d-img > * { grid-area: 1 / 1; }
.lp-d-img .lp-sk { margin: 0; }
.lp-d-img svg { width: 100%; height: 100%; }
.lp-d-head { min-width: 0; flex: 1; }
.lp-d-head small { display: block; color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; }
.lp-d-head b { font-family: var(--serif); font-size: 1.15rem; line-height: 1.2; }
.lp-fill { display: grid; }
.lp-fill > * { grid-area: 1 / 1; align-self: center; }
.lp-sk { display: block; height: 0.8em; background: var(--graphite-100); width: 85%; }
.lp-field { display: flex; flex-direction: column; gap: 0.2rem; margin-bottom: 0.3rem; }
.lp-field label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.lp-url { display: flex; align-items: center; border: 1px solid var(--graphite-300); padding: 0.3rem 0.5rem; border-radius: 2px; min-height: 2rem; overflow: hidden; }
.lp-url .typed, .lp-mini .typed { overflow: hidden; white-space: nowrap; max-width: 0; animation: lp-type 10s steps(24) infinite; }
.lp-caret { width: 2px; height: 1.05em; background: var(--accent); flex: none; animation: lp-blink 1s steps(1) infinite; }
.lp-read { margin: 0 0 0.6rem; font-size: 0.8rem; color: var(--muted); }
.lp-swap { display: grid; }
.lp-swap > * { grid-area: 1 / 1; }
.lp-swap .before { animation: lp-out 10s infinite; }
.lp-swap .after { color: var(--good); font-weight: 600; opacity: 0; animation: lp-in 10s infinite; }
.lp-fill .lp-sk, .lp-d-img .lp-sk { animation: lp-out 10s infinite; }
.lp-fill .v, .lp-d-img .v { opacity: 0; animation: lp-in 10s infinite; }
.lp-d-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.45rem 0.8rem; margin: 0; padding-top: 0.6rem; border-top: 1px solid var(--line); align-items: center; }
.lp-d-grid dt { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.lp-d-grid dd { margin: 0; min-width: 0; }
.lp-tag { display: inline-block; padding: 0.1rem 0.45rem; background: var(--peach); color: var(--accent-press); font-weight: 600; font-size: 0.8rem; border-radius: 2px; margin-right: 0.3rem; }
.lp-tag.add { background: transparent; border: 1px dashed var(--graphite-300); color: var(--muted); }
.lp-seg { display: inline-flex; border: 1px solid var(--graphite-300); border-radius: 2px; font-size: 0.8rem; }
.lp-seg span { padding: 0.15rem 0.5rem; white-space: nowrap; }
.lp-seg .on { background: var(--graphite); color: white; }

/* Sections */
.lp-section { padding-block: clamp(2.25rem, 4.5vw, 3.5rem); }
.lp-section.alt { background: white; border-bottom: 1px solid var(--line); }
.lp-section.dark { background: var(--graphite); color: var(--paper); }
.lp-section.dark h2, .lp-section.dark h3 { color: white; }
.lp-section.dark .eyebrow { color: var(--ember); }
.lp-head { max-width: 46rem; margin-bottom: 1.4rem; }
.lp-head h2 { margin: 0 0 0.3rem; }
.lp-head .lead { margin: 0; }

/* Who sees what */
.lp-seats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--graphite-200); }
.lp-seat { padding: 0 0 0.6rem; border-left: 1px solid var(--graphite-200); background: var(--paper); }
.lp-seat:first-child { border-left: 0; }
.lp-seat-h { padding: 0.75rem 0.9rem; background: var(--graphite); color: var(--soft-on-dark); margin-bottom: 0.3rem; min-height: 5.4rem; }
.lp-seat-h b { display: block; color: white; font-family: var(--serif); font-size: 1.1rem; }
.lp-seat-h small { font-size: 0.86rem; }
.lp-srow { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; padding: 0.45rem 0.9rem; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.lp-srow em { font-style: normal; color: var(--muted); font-size: 0.82rem; white-space: nowrap; }
.lp-st { font-size: 0.75rem; font-weight: 700; padding: 0.15rem 0.45rem; border-radius: 2px; white-space: nowrap; }
.lp-st.planned { background: var(--peach); color: var(--accent-press); }
.lp-st.bought { background: var(--graphite-100); color: var(--graphite-600); }
.lp-st.act { background: var(--accent); color: white; }
.lp-seat-f { margin: 0.6rem 0.9rem 0; font-size: 0.88rem; color: var(--muted); }

/* Feature grid: one ruled block, like a spec sheet */
.lp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--graphite-200); border-left: 1px solid var(--graphite-200); background: var(--card); }
.lp-cell { padding: 1rem 1.1rem 1.1rem; border-right: 1px solid var(--graphite-200); border-bottom: 1px solid var(--graphite-200); }
.lp-cell h3 { font-family: var(--sans); font-size: 1rem; font-weight: 700; letter-spacing: 0; margin: 0 0 0.3rem; display: flex; align-items: center; gap: 0.5rem; }
.lp-cell h3::before { content: ""; width: 8px; height: 8px; background: var(--accent); flex: none; }
.lp-cell p { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.45; }

/* Steps */
.lp-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; counter-reset: lp; list-style: none; padding: 0; margin: 0; border: 1px solid var(--graphite-700); }
.lp-step { counter-increment: lp; padding: 1.1rem 1.2rem 1.2rem; display: grid; gap: 0.35rem; align-content: start; border-left: 1px solid var(--graphite-700); }
.lp-step:first-child { border-left: 0; }
.lp-step::before { content: counter(lp, decimal-leading-zero); font-weight: 700; font-size: 0.85rem; color: var(--ember); letter-spacing: 0.1em; }
.lp-step h3 { margin: 0; font-size: 1.2rem; }
.lp-step p { color: var(--graphite-300); margin: 0; font-size: 0.97rem; }
.lp-mini { margin-top: 0.5rem; background: var(--graphite-900); padding: 0.7rem; font-size: 0.85rem; color: var(--soft-on-dark); border: 1px solid var(--graphite-700); }
.lp-mini .field { display: flex; align-items: center; background: white; color: var(--ink); padding: 0.45rem 0.6rem; border-radius: 2px; min-height: 2.2rem; }
.lp-share { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.lp-share span { padding: 0.3rem 0.55rem; background: var(--graphite-700); color: var(--soft-on-dark); font-weight: 600; font-size: 0.8rem; border-radius: 2px; }
.lp-share span.on { background: var(--ember); color: var(--graphite); }
.lp-shop { display: grid; gap: 0.3rem; }
.lp-shop b { color: white; }
.lp-shop span { display: flex; justify-content: space-between; gap: 0.5rem; }
.lp-shop em { font-style: normal; color: var(--ember); font-weight: 600; }

/* FAQ */
.lp-faq { max-width: 52rem; border-top: 1px solid var(--graphite-200); }
.lp-faq details { border-bottom: 1px solid var(--graphite-200); }
.lp-faq summary { cursor: pointer; list-style: none; padding: 0.8rem 0; font-weight: 600; font-size: 1.05rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--accent); }
.lp-faq details[open] summary::after { content: "\2212"; }
.lp-faq summary:hover { color: var(--accent-press); }
.lp-faq details p { color: var(--muted); margin: 0 0 0.9rem; max-width: 46rem; }

/* Closing call to action */
.lp-end { padding-top: 0; }
.lp-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding: clamp(1.4rem, 3vw, 2rem); background: var(--accent); color: white; border-radius: 0; border-left: 8px solid var(--graphite); }
.lp-cta h2 { color: white; margin: 0 0 0.2rem; }
.lp-cta p { color: #fff3ea; margin: 0; max-width: 34rem; }
.lp-cta .lp-actions { margin: 0; }
.lp-cta .button { background: var(--graphite); }
.lp-cta .button:hover { background: black; }
.lp-cta .button.secondary { background: transparent; color: white; border-color: rgba(255, 255, 255, 0.7); }
.lp-cta .button.secondary:hover { background: rgba(255, 255, 255, 0.12); }

/* Reveal on scroll (only when the script is running, so nothing hides without it) */
.js-reveal [data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); transition-delay: var(--d, 0s); }
.js-reveal [data-reveal].in { opacity: 1; transform: none; }

/* Animations: a pasted link being read, then the fields filling in */
@keyframes lp-blink { 50% { opacity: 0; } }
@keyframes lp-type { 0%, 5% { max-width: 0; } 30%, 90% { max-width: 16em; } 100% { max-width: 0; } }
@keyframes lp-out { 0%, 36% { opacity: 1; } 40%, 92% { opacity: 0; } 96%, 100% { opacity: 1; } }
@keyframes lp-in { 0%, 36% { opacity: 0; } 40%, 92% { opacity: 1; } 96%, 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js-reveal [data-reveal] { opacity: 1; transform: none; }
  .lp-swap .before, .lp-fill .lp-sk, .lp-d-img .lp-sk { opacity: 0; }
  .lp-swap .after, .lp-fill .v, .lp-d-img .v { opacity: 1; }
  .lp-url .typed, .lp-mini .typed { max-width: none; }
  .lp-caret { display: none; }
  .page, .flash { animation: none; }
}

@media (max-width: 1020px) {
  .lp-app-body { grid-template-columns: 170px minmax(0, 1fr); }
  .lp-detail { grid-column: 1 / -1; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 1.2rem; }
  .lp-detail > .lp-d-grid { grid-column: 2; grid-row: 1 / span 3; border-top: 0; padding-top: 0; }
  .lp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .lp-hero-top { grid-template-columns: 1fr; }
  .lp-seats, .lp-steps { grid-template-columns: 1fr; }
  .lp-seat { border-left: 0; border-top: 1px solid var(--graphite-200); }
  .lp-seat:first-child { border-top: 0; }
  .lp-seat-h { min-height: 0; }
  .lp-step { border-left: 0; border-top: 1px solid var(--graphite-700); }
  .lp-step:first-child { border-top: 0; }
}
@media (max-width: 640px) {
  .lp-search, .lp-me { display: none; }
  .lp-btn { margin-left: auto; }
  .lp-app-body { grid-template-columns: 1fr; min-height: 0; }
  .lp-side { flex-direction: row; overflow: hidden; padding: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .lp-side-h, .lp-side .lp-nav:not(.tagged) { display: none; }
  .lp-side .lp-nav.tagged { border-left: 0; border-bottom: 3px solid transparent; padding: 0.45rem 0.7rem; }
  .lp-side .lp-nav.tagged.on { border-bottom-color: var(--accent); }
  .lp-items { border-right: 0; }
  .lp-items-h small { display: none; }
  .lp-item.lp-more { display: none; }
  .lp-detail { display: block; }
  .lp-d-grid { border-top: 1px solid var(--line) !important; padding-top: 0.6rem !important; }
  .lp-grid { grid-template-columns: 1fr; }
  .lp-cta { border-left-width: 6px; }
}
