/* Dolldecode. Porcelain ground, white cards, aubergine ink and one berry rose for actions.
   Gloock for titles, Figtree for everything else, DM Mono for codes. Her photo leads every
   page about her; her recipe is a shade card of swatches. Sage marks a check that passed,
   amber a problem, always with an icon and words. */

:root {
  --ground: #fbf7f5;
  --card: #ffffff;
  --blush: #f6ecea;
  --tint: #fbeaf0;
  --photo: #f2e4e6;
  --line: #eee3df;
  --line-2: #e4d6d2;
  --ink: #2b2130;
  --ink-2: #5f5466;
  --muted: #6e6274;
  --field: #938598;
  --stitch: #d9afc0;
  --primary: #a62f59;
  --primary-hover: #87234a;
  --primary-ink: #ffffff;
  --primary-soft-ink: #87234a;
  --ok: #2e6b50;
  --ok-tint: #eaf3ed;
  --ok-track: #d3e4d9;
  --ok-text: #2f4a3c;
  --concern: #ae4b16;
  --concern-tint: #fcede1;
  --concern-track: #f3d6c2;
  --label: #fffdf8;
  --label-ink: #3a2a32;
  --label-edge: #e2d2d6;
  --label-stitch: #d2a8b7;
  --dot-on: #5f5466;
  --dot-off: #e4d6d2;
  --shadow: 0 24px 60px rgba(43, 33, 48, .22);
  --serif: Gloock, Georgia, "Times New Roman", serif;
  --sans: Figtree, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #1c1519; --card: #251c21; --blush: #2e2228; --tint: #3a2230; --photo: #33262d; --line: #3a2e34; --line-2: #4a3b42;
    --ink: #f5ecef; --ink-2: #d6c7cd; --muted: #a897a0; --field: #8c7c86; --stitch: #6e4d5b;
    --primary: #f08fb0; --primary-hover: #f7b8cd; --primary-ink: #2a0f1a; --primary-soft-ink: #f7b8cd;
    --ok: #8fcba9; --ok-tint: #1f3128; --ok-track: #2c4637; --ok-text: #cfe7d9; --concern: #f2a66e; --concern-tint: #3a2618; --concern-track: #5a3a24;
    --label: #f4efe6; --label-edge: #8d7782; --dot-on: #d6c7cd; --dot-off: #4a3b42; --shadow: 0 24px 60px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #1c1519; --card: #251c21; --blush: #2e2228; --tint: #3a2230; --photo: #33262d; --line: #3a2e34; --line-2: #4a3b42;
  --ink: #f5ecef; --ink-2: #d6c7cd; --muted: #a897a0; --field: #8c7c86; --stitch: #6e4d5b;
  --primary: #f08fb0; --primary-hover: #f7b8cd; --primary-ink: #2a0f1a; --primary-soft-ink: #f7b8cd;
  --ok: #8fcba9; --ok-tint: #1f3128; --ok-track: #2c4637; --ok-text: #cfe7d9; --concern: #f2a66e; --concern-tint: #3a2618; --concern-track: #5a3a24;
  --label: #f4efe6; --label-edge: #8d7782; --dot-on: #d6c7cd; --dot-off: #4a3b42; --shadow: 0 24px 60px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }
b, strong { font-weight: 600; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
[hidden] { display: none !important; }
.mono { font-family: var(--mono); letter-spacing: .03em; }
.muted { color: var(--muted); }
.alert, .concern-text { color: var(--concern); }
.ok-text { color: var(--ok); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--ground); padding: 8px 12px; z-index: 50; border-radius: 8px; }
.skip:focus { left: 8px; }
.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.wrap.narrow { width: min(820px, 100% - 48px); }
.serif { font-family: var(--serif); font-weight: 400; }
.fine { font-size: 13px; color: var(--muted); line-height: 1.55; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.crumbs a { color: var(--muted); }

/* ---------- header ---------- */
.topbar { border-bottom: 1px solid var(--line); background: var(--ground); position: relative; z-index: 5; }
.topbar-inner { min-height: 76px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 36px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--serif); font-size: 26px; line-height: 1; }
.brand:hover { color: var(--ink); }
.brand svg { width: 34px; height: 34px; flex: 0 0 auto; color: var(--primary); }
.nav { display: flex; flex-wrap: wrap; gap: 4px; font-size: 15px; font-weight: 500; }
.nav a { padding: 10px 14px; border-radius: 10px; color: var(--ink-2); text-decoration: none; }
.nav a:hover { color: var(--ink); background: var(--blush); }
.nav a[aria-current="page"] { background: var(--tint); color: var(--primary-soft-ink); }
.account { margin-left: auto; display: flex; align-items: center; gap: 12px; position: relative; }
.status-note { font-size: 13px; color: var(--muted); }
.status-note.off { color: var(--concern); }
.avatar-btn { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 10px 0 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); cursor: pointer; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--tint); color: var(--primary-soft-ink); display: flex; align-items: center; justify-content: center; font-weight: 600; overflow: hidden; flex: 0 0 auto; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-name { font-size: 15px; font-weight: 500; max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); box-shadow: var(--shadow); z-index: 20; }
.menu .who { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.menu .who b { display: block; font-weight: 600; }
.menu .who span { font-size: 13px; color: var(--muted); word-break: break-all; }
.menu a, .menu button { display: block; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: none; color: var(--ink); text-align: left; text-decoration: none; font-size: 15px; cursor: pointer; }
.menu a:hover, .menu button:hover { background: var(--blush); color: var(--ink); }
.gbtn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 44px; padding: 0 16px; border: 1px solid #dadce0; border-radius: 10px; background: #fff; color: #2b2130; font-size: 15px; font-weight: 500; cursor: pointer; }
.gbtn svg { width: 18px; height: 18px; }
.gbtn.big { height: 52px; width: 100%; max-width: 320px; font-size: 16px; font-weight: 600; border-radius: 12px; }

/* ---------- buttons & fields ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 22px; border: 1px solid var(--field); border-radius: 12px; background: var(--card); color: var(--ink); font-size: 16px; font-weight: 500; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.btn:hover { border-color: var(--ink-2); color: var(--ink); }
.btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); font-size: 17px; font-weight: 600; padding: 0 26px; }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--primary-ink); }
.btn-small { height: 44px; padding: 0 18px; font-size: 15px; }
.btn-wide { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.linkbtn { border: 0; background: none; padding: 4px 0; font-size: inherit; font-weight: 600; color: var(--primary); cursor: pointer; text-align: left; }
.linkbtn:hover { color: var(--primary-hover); }
.linkbtn.quiet { font-weight: 400; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 15px; font-weight: 600; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea, .input { height: 50px; padding: 0 16px; border: 1px solid var(--field); border-radius: 12px; background: var(--card); color: var(--ink); font-size: 16px; font-weight: 400; width: 100%; }
.field textarea, textarea.input { height: auto; padding: 12px 16px; line-height: 1.55; resize: vertical; }
select.input, .field select, select.answer { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%236e6274' stroke-width='1.6'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
select.answer { width: 100%; height: 44px; padding-left: 12px; border: 1px solid var(--field); border-radius: 10px; background-color: var(--card); color: var(--ink); font-size: 15px; margin-top: 10px; }
.search-box { position: relative; flex: 0 1 420px; min-width: 0; }
.search-box svg { position: absolute; left: 14px; top: 16px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.search-box .input { padding-left: 42px; }
.form-msg { font-size: 14px; color: var(--concern); margin-top: 12px; }
.form-msg.info { color: var(--ink-2); }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; font-weight: 400; line-height: 1.45; cursor: pointer; }
.check-row input { margin-top: 3px; accent-color: var(--primary); width: 18px; height: 18px; flex: 0 0 auto; }

/* ---------- cards & page bits ---------- */
.view { padding: 48px 0 88px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.card.soft { background: var(--blush); border-color: transparent; }
.card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.card-title { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.15; }
.card-title.small { font-size: 24px; }
.card-note { font-size: 14px; color: var(--muted); }
h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 5vw, 54px); line-height: 1.05; letter-spacing: -.01em; }
.lead { margin-top: 14px; max-width: 62ch; font-size: 18px; line-height: 1.6; color: var(--ink-2); }
.page-head { display: flex; flex-wrap: wrap; gap: 20px 48px; align-items: flex-end; justify-content: space-between; }
.page-head > div { flex: 999 1 520px; min-width: 0; }
.cols { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 44px; align-items: flex-start; }
.col-main { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.col-side { flex: 1 1 290px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.empty-state { padding: 40px 32px; border-radius: 20px; background: var(--blush); text-align: center; }
.empty-state h2 { font-family: var(--serif); font-weight: 400; font-size: 30px; }
.empty-state p { margin: 10px auto 0; max-width: 46ch; color: var(--ink-2); }
.empty-state .actions { justify-content: center; margin-top: 22px; }

/* ---------- decode page ---------- */
.hero { display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: flex-end; }
.hero > div { flex: 999 1 560px; min-width: 0; }
.hero h1 { font-size: clamp(40px, 5.6vw, 60px); line-height: 1.04; max-width: 720px; }
.hero .lead { font-size: 19px; max-width: 58ch; margin-top: 20px; }
.steps { flex: 1 1 320px; min-width: 0; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.steps .n { flex: 0 0 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--card); display: flex; align-items: center; justify-content: center; font-family: var(--serif); color: var(--primary); }
.steps span { color: var(--ink-2); }
.steps b { color: var(--ink); }
.decode-cols { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 48px; align-items: flex-start; }
.photos-card { flex: 999 1 640px; min-width: 0; padding: 32px; }
.tips { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.tips ul { margin: 14px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; font-size: 15px; line-height: 1.5; }
.tips li { display: flex; gap: 12px; }
.tips li svg { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 2px; color: var(--primary); }
.tips li span { color: var(--ink-2); }
.tips li b { color: var(--ink); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(170px, 40%), 1fr)); gap: 14px; margin-top: 24px; }
.slot { position: relative; min-width: 0; }
.slot.big { grid-column: span 2; grid-row: span 2; }
.slot-empty { width: 100%; aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 12px; border: 1.5px dashed var(--stitch); border-radius: 16px; background: var(--card); color: var(--ink); text-align: center; cursor: pointer; transition: border-color .15s, background-color .15s; }
.slot.big .slot-empty { height: 100%; min-height: 300px; aspect-ratio: auto; }
.slot-empty:hover, .slot.over .slot-empty { border-color: var(--primary); background: var(--tint); }
.slot-empty svg { width: 30px; height: 30px; color: var(--primary); }
.slot.big .slot-empty svg { width: 44px; height: 44px; }
.slot-empty b { font-size: 15px; font-weight: 600; }
.slot.big .slot-empty b { font-size: 18px; }
.slot-empty small { font-size: 13px; color: var(--muted); line-height: 1.35; }
.slot-filled { display: flex; flex-direction: column; gap: 8px; height: 100%; }
.slot-filled .pic { aspect-ratio: 1; width: 100%; border-radius: 16px; object-fit: cover; background: var(--photo); display: block; }
.slot.big .slot-filled .pic { flex: 1; aspect-ratio: auto; min-height: 300px; height: 0; }
.slot-filled .cap { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; }
.slot-filled .cap b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot.busy .pic { animation: pulse 1.2s ease-in-out infinite; }
.bulk { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 12px; border-radius: 16px; background: var(--blush); cursor: pointer; border: 1.5px solid transparent; text-align: center; }
.bulk:hover, .bulk.over { border-color: var(--stitch); }
.bulk svg { width: 28px; height: 28px; flex: 0 0 auto; color: var(--primary); }
.bulk b { font-size: 15px; font-weight: 600; color: var(--ink); }
.bulk span { font-size: 13px; line-height: 1.35; color: var(--muted); }
.extras { margin-top: 18px; }
.extras h3 { font-size: 14px; font-weight: 600; }
.extras ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.extras img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; display: block; background: var(--photo); }
.extras .cap { display: flex; justify-content: space-between; font-size: 13px; margin-top: 4px; color: var(--muted); }
.woven { display: inline-block; padding: 16px 26px; background: var(--label); border: 1px solid var(--label-edge); border-radius: 3px; outline: 1px dashed var(--label-stitch); outline-offset: -6px; font-family: var(--mono); font-size: 18px; line-height: 1.55; letter-spacing: .08em; color: var(--label-ink); }
.woven.small { padding: 14px 22px; font-size: 16px; }
.woven .unsure { text-decoration: underline wavy #ae4b16; text-underline-offset: 5px; }
.woven.empty { font-family: var(--sans); font-size: 14px; letter-spacing: 0; color: var(--muted); }

/* working */
.working { display: flex; flex-wrap: wrap; gap: 28px 40px; align-items: center; padding: 8px 0; }
.working .arch-sm { flex: 0 0 150px; height: 188px; }
.working ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; flex: 1 1 280px; }
.working li { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.working li .tick { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line-2); display: flex; align-items: center; justify-content: center; flex: 0 0 24px; }
.working li .tick svg { width: 14px; height: 14px; opacity: 0; }
.working li.now { color: var(--ink); font-weight: 600; }
.working li.now .tick { border-color: var(--primary); animation: pulse 1.2s ease-in-out infinite; }
.working li.done { color: var(--ink-2); }
.working li.done .tick { background: var(--ok); border-color: var(--ok); color: #fff; }
.working li.done .tick svg { opacity: 1; }

/* ---------- her portrait (an arch) ---------- */
.arch { border-radius: 999px 999px 24px 24px; background: var(--photo); border: 6px solid var(--card); outline: 1px solid var(--line); object-fit: cover; display: block; }
.arch.ph { display: flex; align-items: center; justify-content: center; color: var(--muted); }
.arch.ph svg { width: 56px; height: 56px; color: var(--stitch); }
.profile { display: flex; flex-wrap: wrap; gap: 32px 56px; align-items: center; }
.profile .arch { flex: 0 0 252px; width: 252px; height: 316px; }
.profile.doll .arch { flex-basis: 280px; width: 280px; height: 350px; }
.profile > div { flex: 1 1 520px; min-width: 0; }
.kicker { font-size: 15px; font-weight: 500; color: var(--primary); }
.profile h1 { margin-top: 10px; font-size: clamp(34px, 4.6vw, 52px); }
.profile .lead { font-size: 17px; }
.quick { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 20px; font-size: 15px; color: var(--ink-2); }
.quick > span { display: flex; align-items: center; gap: 8px; }
.quick svg { width: 18px; height: 18px; flex: 0 0 auto; }
.quick code { font-family: var(--mono); font-size: 15px; font-weight: 500; color: var(--ink); letter-spacing: .03em; }
.iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; }
.iconbtn:hover { background: var(--blush); color: var(--ink); }
.iconbtn svg { width: 16px; height: 16px; }
.profile .actions { margin-top: 26px; }
.rename { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 10px; }
.rename .input { flex: 1 1 280px; font-family: var(--serif); font-size: 26px; height: 58px; }
.name-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.name-row h1 { margin: 0; }
.chip-btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); color: var(--ink-2); font-size: 14px; font-weight: 500; cursor: pointer; }
.chip-btn svg { width: 16px; height: 16px; }

/* ---------- swatches & certainty ---------- */
.sw { display: inline-block; flex: 0 0 auto; border-radius: 50%; width: 34px; height: 34px; box-shadow: inset 0 0 0 1px rgba(43, 33, 48, .12); }
.sw.eye { box-shadow: inset 0 0 0 4px rgba(20, 30, 60, .25); position: relative; }
.sw.eye::after { content: ""; position: absolute; inset: 0; margin: auto; width: 32%; height: 32%; border-radius: 50%; background: #1c1820; }
.sw.hair { width: 24px; height: 36px; border-radius: 12px 12px 5px 5px; }
.sw.none { background: none; box-shadow: none; border: 1px dashed var(--field); }
.sw.sm { width: 18px; height: 18px; }
.sw.hair.sm { width: 13px; height: 19px; border-radius: 7px 7px 3px 3px; }
.sw.md { width: 22px; height: 22px; }
.sw.hair.md { width: 15px; height: 22px; border-radius: 8px 8px 3px 3px; }
.sw.eye.sm, .sw.eye.md { box-shadow: inset 0 0 0 3px rgba(20, 30, 60, .25); }
.swatch-row { display: flex; align-items: center; gap: 6px; }
.dots { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.dots i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--dot-off); }
.dots i.on { background: var(--dot-on); }
.dots .d3 { display: inline-flex; gap: 3px; }

/* ---------- recipe tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); gap: 14px; margin-top: 22px; }
.tile { border: 1px solid var(--line); border-radius: 14px; padding: 18px; min-width: 0; display: flex; flex-direction: column; }
.tile.unsure { border-style: dashed; border-color: var(--stitch); }
.tile.edited { border-color: var(--primary); }
.tile .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.tile .val { display: flex; align-items: center; gap: 12px; margin-top: 12px; font-size: 17px; font-weight: 600; line-height: 1.25; }
.tile .val.face { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.1; margin-top: 10px; }
.tile .val.dim { color: var(--muted); font-weight: 500; }
.tile .val small { font-weight: 400; font-size: 14px; color: var(--muted); }
.tile .why { margin-top: 8px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.tile .why .also { color: var(--muted); }
.tile .why .linkbtn { font-weight: 500; text-decoration: underline; text-underline-offset: 3px; padding: 0; }
.tile .foot { margin-top: auto; padding-top: 10px; }
.extras-line { display: flex; flex-wrap: wrap; gap: 8px 32px; margin: 16px 0 0; padding: 14px 18px; border-radius: 14px; background: var(--ground); font-size: 14px; }
.extras-line > div { display: flex; gap: 6px; align-items: center; }
.extras-line dt { color: var(--muted); }
.extras-line dd { font-weight: 600; }
.extras-line dd.dim { font-weight: 400; color: var(--muted); }
.extras-line select.answer { margin: 0; height: 36px; width: auto; font-size: 14px; }
.warn-list { margin: 16px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.warn-list li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--concern); }
.warn-list svg { width: 18px; height: 18px; flex: 0 0 18px; }
.corrections { margin-top: 12px; font-size: 14px; color: var(--primary); }
.facecheck { margin: 22px 0 0; border: 0; padding: 22px; border-radius: 16px; background: var(--blush); }
.facecheck legend { float: left; width: 100%; padding: 0; font-family: var(--serif); font-size: 22px; line-height: 1.2; }
.facecheck .opts { clear: both; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 12px; padding-top: 14px; }
.facecheck label { display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--card); cursor: pointer; }
.facecheck label:has(input:checked) { border: 1.5px solid var(--primary); padding: 15.5px; }
.facecheck label > span:first-child { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.facecheck input { margin: 0; accent-color: var(--primary); }
.facecheck label > span + span { font-size: 14px; line-height: 1.45; color: var(--ink-2); }

/* ---------- summary card with a ring ---------- */
.summary { display: flex; flex-wrap: wrap; gap: 20px 28px; align-items: center; }
.summary svg.ring { flex: 0 0 92px; width: 92px; height: 92px; }
.summary > div { flex: 1 1 340px; min-width: 0; }
.summary h2, .summary h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.15; }
.summary.concerns h2, .summary.concerns h3 { color: var(--concern); }
.summary p { margin-top: 6px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.summary .links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 12px; font-size: 15px; font-weight: 600; }
.ring .track { stroke: var(--line); }
.ring .bar { stroke: var(--ok); }
.ring .bar.bad { stroke: var(--concern); }
.ring text { fill: var(--ink); font-family: var(--serif); }
.ring text.sub { font-family: var(--sans); fill: var(--ok); }

/* ---------- tag card ---------- */
.tag-grid { display: flex; flex-wrap: wrap; gap: 24px 40px; margin-top: 20px; align-items: flex-start; }
.facts { flex: 1 1 340px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; font-size: 15px; }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { margin-top: 2px; font-weight: 600; }
.facts dd.mono { font-family: var(--mono); font-weight: 500; }
.facts dd.sub { font-weight: 400; font-size: 13px; color: var(--muted); }
.tag-notes { margin-top: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.tag-notes .alert { display: flex; gap: 8px; align-items: flex-start; }
.tag-notes svg { width: 18px; height: 18px; flex: 0 0 18px; }

/* ---------- row links (registry matches, registry list) ---------- */
.rows { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rowlink { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none; background: var(--card); }
.rowlink:hover { border-color: var(--line-2); background: var(--ground); color: var(--ink); }
.rowlink .id { font-family: var(--mono); font-size: 14px; }
.rowlink .tagtxt { font-family: var(--mono); font-size: 14px; color: var(--ink-2); }
.rowlink .what { font-weight: 600; }
.rowlink .src { margin-left: auto; font-size: 14px; color: var(--muted); }
.rowlink > svg { width: 18px; height: 18px; color: var(--muted); }
.reg-list { list-style: none; margin: 0; padding: 6px 0; background: var(--card); border: 1px solid var(--line); border-radius: 20px; flex: 999 1 700px; min-width: 0; }
.reg-list > li + li { border-top: 1px solid var(--line); }
.reg-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; padding: 18px 24px; color: var(--ink); text-decoration: none; }
.reg-row:hover { background: var(--ground); color: var(--ink); }
.reg-row .codes { flex: 0 0 170px; font-family: var(--mono); font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.reg-row .codes b { display: block; font-weight: 500; color: var(--ink); }
.reg-row .look { flex: 1 1 220px; min-width: 0; }
.reg-row .look .face { display: block; font-family: var(--serif); font-size: 20px; }
.reg-row .look .face.dim { font-family: var(--sans); font-size: 16px; color: var(--muted); }
.reg-row .look small { font-size: 14px; color: var(--ink-2); }
.reg-row .src { flex: 0 0 170px; font-size: 14px; color: var(--muted); }
.reg-row > svg { width: 18px; height: 18px; color: var(--muted); }
.reg-row.empty { color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin-top: 32px; }
.filters select.input { width: auto; height: 50px; font-size: 15px; }
.count-big { flex: 1 1 260px; font-size: 15px; color: var(--ink-2); }
.count-big strong { font-family: var(--serif); font-weight: 400; font-size: 40px; color: var(--ink); }

/* ---------- photos (side) ---------- */
.gallery { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
.gallery.three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.gallery img, .gallery .ph { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; display: block; background: var(--photo); }
.gallery a { display: block; color: var(--ink); text-decoration: none; }
.gallery b { display: block; margin-top: 6px; font-size: 14px; font-weight: 600; }
.gallery span { display: block; font-size: 13px; color: var(--muted); }
.gallery.three b { display: none; }
.gallery.three span { margin-top: 4px; font-size: 12px; }
.missing { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.missing p { font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.missing p b { color: var(--ink); }

/* ---------- authenticity page ---------- */
.hospital { flex: 1 1 320px; min-width: 0; padding: 18px 20px; border-radius: 16px; background: var(--blush); font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.hospital b { color: var(--ink); }
.verdict { margin-top: 36px; padding: 32px; border-radius: 20px; background: var(--ok-tint); display: flex; flex-wrap: wrap; gap: 24px 36px; align-items: center; }
.verdict.concerns { background: var(--concern-tint); }
.verdict.insufficient { background: var(--blush); }
.verdict svg.ring { flex: 0 0 120px; width: 120px; height: 120px; }
.verdict .ring .track { stroke: var(--ok-track); }
.verdict.concerns .ring .track { stroke: var(--concern-track); }
.verdict.insufficient .ring .track { stroke: var(--line-2); }
.verdict > div { flex: 1 1 420px; min-width: 0; }
.verdict h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3vw, 34px); line-height: 1.12; }
.verdict.concerns h2 { color: var(--concern); }
.verdict p { margin-top: 10px; max-width: 62ch; font-size: 16px; line-height: 1.6; color: var(--ok-text); }
.verdict.concerns p, .verdict.insufficient p { color: var(--ink-2); }
.groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 24px; margin-top: 28px; align-items: start; }
.group { padding: 8px 24px 12px; }
.group h2 { margin: 18px 0 6px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-family: var(--serif); font-weight: 400; font-size: 24px; }
.group h2 span { font-family: var(--sans); font-size: 14px; color: var(--muted); }
.group h2 span.ok-text { color: var(--ok); }
.group h2 span.concern-text { color: var(--concern); }
.group ul { list-style: none; margin: 0; padding: 0; }
.check { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.check > svg { flex: 0 0 22px; width: 22px; height: 22px; }
.check.consistent > svg { color: var(--ok); }
.check.concern > svg { color: var(--concern); }
.check.not_checked > svg { color: var(--muted); }
.check > div { flex: 1; min-width: 0; }
.check p { margin: 0; }
.check .name { font-weight: 600; }
.check .note { margin-top: 3px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.check.concern .name, .check.concern .note { color: var(--concern); }
.check.not_checked .name { color: var(--ink-2); }
.check.not_checked .note { color: var(--muted); }
.check .ev { font-size: 13px; color: var(--muted); white-space: nowrap; }
.check .linkbtn { margin-top: 6px; font-size: 14px; }
.cant { margin: 8px 0 12px; padding: 16px 18px; border-radius: 14px; background: var(--ground); }
.cant b { display: block; }
.cant p { margin-top: 4px; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.also-noticed { margin-top: 24px; }
.also-noticed ul { margin: 8px 0 0; padding-left: 18px; color: var(--concern); }

/* ---------- my dolls ---------- */
.doll-grid { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.doll-card { display: flex; flex-direction: column; height: 100%; padding: 16px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.doll-card:hover { border-color: var(--line-2); color: var(--ink); transform: translateY(-2px); }
.doll-card .pic { width: 100%; aspect-ratio: 4 / 5; border-radius: 999px 999px 16px 16px; object-fit: cover; background: var(--photo); display: block; }
.doll-card .pic.ph { display: flex; align-items: center; justify-content: center; }
.doll-card .pic.ph svg { width: 48px; height: 48px; color: var(--stitch); }
.doll-card h2 { margin: 16px 4px 0; font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.15; overflow-wrap: anywhere; }
.doll-card .meta { margin: 4px 4px 0; font-size: 14px; color: var(--ink-2); }
.doll-card .swatch-row { margin: 12px 4px 0; }
.doll-card .swatch-row span.txt { margin-left: 6px; font-size: 13px; color: var(--muted); }
.doll-card .verdict-line { margin: auto 4px 0; padding-top: 12px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.doll-card .spacer { flex: 1; min-height: 14px; }
.doll-card .verdict-line svg { width: 16px; height: 16px; flex: 0 0 auto; }
.doll-card .verdict-line.consistent { color: var(--ok); }
.doll-card .verdict-line.concerns { color: var(--concern); }
.add-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; height: 100%; min-height: 420px; padding: 24px; border: 1.5px dashed var(--stitch); border-radius: 20px; color: var(--ink); text-decoration: none; text-align: center; }
.add-card:hover { background: var(--tint); color: var(--ink); }
.add-card .plus { width: 56px; height: 56px; border-radius: 50%; background: var(--tint); display: flex; align-items: center; justify-content: center; }
.add-card .plus svg { width: 24px; height: 24px; color: var(--primary); }
.add-card b { font-family: var(--serif); font-weight: 400; font-size: 22px; }
.add-card span { max-width: 24ch; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin-top: 32px; }
.toolbar label.inline { font-size: 14px; color: var(--muted); }
.toolbar select.input { width: auto; font-size: 15px; }

/* her page */
.recipe-list { margin: 16px 0 0; }
.recipe-list > div { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.recipe-list > div:last-child { border-bottom: 1px solid var(--line); }
.recipe-list dt { flex: 0 0 120px; font-size: 14px; color: var(--muted); }
.recipe-list dd.v { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; font-weight: 600; }
.recipe-list dd.v.face { font-family: var(--serif); font-weight: 400; font-size: 20px; }
.recipe-list dd.v.dim { font-weight: 400; color: var(--muted); }
.recipe-list dd.c { font-size: 13px; color: var(--muted); white-space: nowrap; }
.story textarea { margin-top: 12px; }
.registry-card p { margin-top: 6px; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.registry-card .btn { margin-top: 14px; }

/* ---------- dialogs ---------- */
.dialog { border: 0; border-radius: 24px; padding: 40px 40px 32px; width: min(480px, 100% - 32px); background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.dialog::backdrop { background: rgba(43, 33, 48, .45); }
.dialog.center { text-align: center; }
.dialog .close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; display: flex; align-items: center; justify-content: center; color: var(--muted); cursor: pointer; }
.dialog .close:hover { background: var(--blush); }
.dialog .close svg { width: 20px; height: 20px; }
.dialog h2 { font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.1; }
.dialog p.sub { margin: 12px auto 0; max-width: 38ch; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.dialog form { display: flex; flex-direction: column; gap: 16px; margin-top: 22px; text-align: left; }
.dialog .gsi-slot { display: flex; justify-content: center; margin-top: 26px; min-height: 44px; }
.dialog .small-print { margin: 22px auto 0; max-width: 40ch; font-size: 13px; line-height: 1.55; color: var(--muted); }
.dialog .tilted { display: inline-block; padding: 12px 18px; font-size: 13px; transform: rotate(-3deg); }
.dev-login { margin-top: 14px; }

/* ---------- prose / tag lookup ---------- */
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin: 44px 0 10px; }
.prose p, .prose li { color: var(--ink-2); font-size: 16px; line-height: 1.65; }
.prose p + p { margin-top: 10px; }
.prose ul { padding-left: 20px; }
.prose li + li { margin-top: 6px; }
.prose code { font-family: var(--mono); font-size: .92em; }
.prose b { color: var(--ink); font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 14px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 10px; border-top: 1px solid var(--line); }
.prose thead th { border-top: 0; font-weight: 500; color: var(--muted); font-size: 13px; }
.prose th:first-child, .prose td:first-child { padding-left: 0; }
.two { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
.tag-form { margin-top: 32px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.result-block { margin-top: 28px; }

/* ---------- toast / footer ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--ground); padding: 12px 18px; border-radius: 12px; font-size: 15px; z-index: 60; box-shadow: var(--shadow); }
.footer { border-top: 1px solid var(--line); }
.footer-inner { padding: 22px 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 13px; color: var(--muted); }
.footer a { color: var(--muted); }

@keyframes pulse { 50% { opacity: .5; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

@media (max-width: 760px) {
  .wrap, .wrap.narrow { width: calc(100% - 32px); }
  .topbar-inner { min-height: 64px; padding: 10px 0 0; gap: 4px 12px; }
  .brand { font-size: 22px; }
  .brand svg { width: 30px; height: 30px; }
  .nav { order: 3; width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 10px; scrollbar-width: none; }
  .nav a { white-space: nowrap; }
  .avatar-name, .status-note { display: none; }
  .view { padding: 28px 0 64px; }
  .card, .photos-card { padding: 20px; }
  .card-title { font-size: 26px; }
  .profile { justify-content: center; text-align: center; }
  .profile .arch { flex-basis: 196px; width: 196px; height: 246px; }
  .profile.doll .arch { flex-basis: 196px; width: 196px; height: 246px; }
  .profile .quick, .profile .actions, .name-row { justify-content: center; }
  .profile .actions .btn-primary { width: 100%; }
  .profile .lead { margin-inline: auto; }
  .slot.big .slot-empty, .slot.big .slot-filled .pic { min-height: 220px; }
  .facts { grid-template-columns: 1fr; }
  .dialog { padding: 32px 22px 24px; }
  .two { grid-template-columns: 1fr; }
  .reg-row { padding: 16px 18px; }
  .reg-row .codes, .reg-row .src { flex-basis: auto; }
  .recipe-list dt { flex-basis: 90px; }
  .verdict { padding: 24px 20px; }
  .verdict svg.ring { width: 96px; height: 96px; flex-basis: 96px; }
}
@media print {
  .topbar, .footer, .actions, .no-print, .profile .actions { display: none !important; }
  body { background: #fff; }
  .card { border-color: #ccc; break-inside: avoid; }
}

/* =====================================================================
   Doll Exchange: shop, listing, selling, membership, orders
   ===================================================================== */
label.inline { font-size: 14px; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* shop */
.sell-aside { flex: 1 1 300px; min-width: 0; padding: 24px; }
.sell-aside p { margin-top: 6px; font-size: 15px; color: var(--ink-2); }
.sell-aside .actions { margin-top: 16px; }
.trust { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.trust li { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.trust svg { flex: 0 0 26px; width: 26px; height: 26px; color: var(--ok); }
.trust span { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.trust b { display: block; color: var(--ink); }
.listing-grid { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.listing-card { display: flex; flex-direction: column; height: 100%; padding: 14px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.listing-card:hover { border-color: var(--line-2); color: var(--ink); transform: translateY(-2px); }
.listing-card .pic { width: 100%; aspect-ratio: 4 / 5; border-radius: 999px 999px 16px 16px; object-fit: cover; background: var(--photo); display: block; }
.listing-card .pic.ph { display: flex; align-items: center; justify-content: center; }
.listing-card .pic.ph svg { width: 48px; height: 48px; color: var(--stitch); }
.listing-card.sold .pic { opacity: .6; }
.verified { margin: 14px 4px 0; display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.verified svg { width: 16px; height: 16px; flex: 0 0 auto; }
.listing-card h3 { margin: 6px 4px 0; font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.15; overflow-wrap: anywhere; }
.listing-card .meta { margin: 4px 4px 0; font-size: 14px; color: var(--ink-2); }
.listing-card .swatch-row { margin: 10px 4px 0; }
.listing-card .price { margin: auto 4px 0; padding-top: 14px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.listing-card .price strong { font-size: 21px; font-weight: 700; }
.listing-card .price span { font-size: 13px; color: var(--muted); }

/* one listing */
.listing-top { display: flex; flex-wrap: wrap; gap: 32px 56px; align-items: flex-start; }
.gallery-main { flex: 1 1 440px; min-width: 0; max-width: 540px; }
.gallery-main .arch { width: 100%; aspect-ratio: 4 / 5; height: auto; border-radius: 999px 999px 28px 28px; }
.thumbs-row { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.thumb-btn { width: 100%; aspect-ratio: 1; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--photo); overflow: hidden; cursor: pointer; }
.thumb-btn.on { border: 2px solid var(--primary); }
.thumb-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.listing-info { flex: 1 1 400px; min-width: 0; }
.listing-info h1 { margin-top: 10px; font-size: clamp(34px, 4.4vw, 50px); }
.price-big { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.price-big strong { font-family: var(--serif); font-weight: 400; font-size: 42px; line-height: 1; }
.price-big span { font-size: 15px; color: var(--ink-2); }
.verified-card { margin-top: 22px; padding: 20px 22px; border-radius: 18px; background: var(--ok-tint); color: var(--ok-text); }
.verified-card.concerns { background: var(--concern-tint); color: var(--ink-2); }
.verified-title { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; color: var(--ok); }
.verified-card.concerns .verified-title { color: var(--ok); }
.verified-title svg { width: 22px; height: 22px; }
.verified-card > p:not(.verified-title):not(.report-line) { margin-top: 8px; font-size: 15px; line-height: 1.55; }
.verified-card .woven { margin-top: 12px; padding: 10px 16px; font-size: 15px; }
.report-line { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--ok-track); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 15px; }
.report-line svg { width: 18px; height: 18px; flex: 0 0 auto; }
.report-line.consistent svg { color: var(--ok); }
.report-line.concerns { color: var(--concern); border-top-color: var(--concern-track); }
.report-line a { font-weight: 600; color: inherit; }
.buy-box { margin-top: 22px; }
.buy-btn { height: 58px; font-size: 18px; border-radius: 14px; }
.secure { margin-top: 12px; display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.secure svg { width: 16px; height: 16px; flex: 0 0 16px; margin-top: 2px; }
.sold-note { font-family: var(--serif); font-size: 26px; }
.seller-row { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 14px; }
.seller-row .avatar { width: 44px; height: 44px; }
.seller-row p { font-size: 15px; line-height: 1.45; }
.seller-row span { color: var(--muted); }

/* sell her */
.sell-head { display: flex; flex-wrap: wrap; gap: 20px 36px; align-items: center; }
.sell-head .arch { flex: 0 0 120px; width: 120px; height: 150px; border-width: 5px; }
.sell-head > div { flex: 1 1 420px; min-width: 0; }
.sell-form { display: flex; flex-direction: column; gap: 24px; padding: 32px; }
.two-up { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 20px; }
.money-input { position: relative; }
.money-input span { position: absolute; left: 16px; top: 13px; font-size: 17px; color: var(--muted); }
.money-input input { padding-left: 32px !important; font-size: 18px !important; }
.conds { margin: 0; padding: 0; border: 0; }
.conds legend { padding: 0; font-size: 15px; font-weight: 600; }
.cond-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); gap: 10px; margin-top: 10px; }
.cond { display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px solid var(--line-2); border-radius: 12px; cursor: pointer; }
.cond.on { border: 1.5px solid var(--primary); padding: 13.5px; background: var(--tint); }
.cond span { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.cond input { margin: 0; accent-color: var(--primary); }
.cond small { font-size: 13px; color: var(--muted); }
.fees { margin: 14px 0 0; font-size: 15px; }
.fees > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; }
.fees dd { margin: 0; white-space: nowrap; }
.fees .minus { color: var(--ink-2); }
.fees small { font-size: 13px; color: var(--muted); }
.fees .total { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); align-items: baseline; }
.fees .total dt { font-weight: 600; }
.fees .total dd { font-family: var(--serif); font-size: 30px; }
.upsell { margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: var(--tint); font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.upsell b { color: var(--primary-soft-ink); }
.upsell a { font-weight: 600; }
.payouts h2 { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; }
.payouts h2 svg { width: 20px; height: 20px; flex: 0 0 auto; }
.payouts p { margin-top: 6px; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.payouts.ok { background: var(--ok-tint); border-color: transparent; }
.payouts.ok h2 { color: var(--ok); }
.payouts.ok p { color: var(--ok-text); }

/* membership */
.plan-status { margin-top: 14px; font-size: 16px; color: var(--ink-2); }
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 22px; margin-top: 40px; align-items: stretch; }
.tier { position: relative; display: flex; flex-direction: column; padding: 44px 30px 30px; border: 1px solid var(--line); border-radius: 22px; background: var(--card); }
.tier.featured { border: 1.5px solid var(--primary); }
.tier-note { position: absolute; top: 18px; left: 30px; font-size: 14px; font-weight: 600; color: var(--primary); }
.tier h2 { font-family: var(--serif); font-weight: 400; font-size: 30px; }
.tier-price { margin-top: 10px; display: flex; align-items: baseline; gap: 6px; }
.tier-price strong { font-family: var(--serif); font-weight: 400; font-size: 46px; line-height: 1; }
.tier-price span { color: var(--muted); }
.tier-headline { margin-top: 8px; font-size: 16px; font-weight: 600; }
.tier ul { margin: 20px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--ink-2); }
.tier li { display: flex; gap: 10px; }
.tier li svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 2px; color: var(--ok); }
.tier-action { margin-top: auto; padding-top: 28px; }
.tier.current .tier-action .btn:disabled { opacity: 1; background: var(--ground); border-color: var(--line-2); color: var(--muted); }
.compare { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 16px; margin-top: 18px; }
.compare th, .compare td { text-align: left; padding: 14px 12px; border-top: 1px solid var(--line); }
.compare thead th { border-top: 0; font-weight: 500; font-size: 14px; color: var(--muted); }
.compare th:first-child { padding-left: 0; }
.compare tbody tr:last-child > * { border-bottom: 1px solid var(--line); }
.compare .best { font-weight: 600; color: var(--ok); }

/* orders */
.orders { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.order.card { display: flex; flex-wrap: wrap; gap: 24px 36px; align-items: flex-start; }
.o-main { flex: 1 1 340px; min-width: 0; display: flex; gap: 18px; align-items: flex-start; }
.o-pic { flex: 0 0 88px; width: 88px; height: 110px; border-radius: 999px 999px 12px 12px; object-fit: cover; background: var(--photo); display: block; }
.o-main h3 { margin-top: 6px; font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.15; }
.o-main h3 a { color: var(--ink); text-decoration: none; }
.o-status { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.o-status.attn { color: var(--primary); }
.o-status svg { width: 16px; height: 16px; flex: 0 0 auto; }
.ship-to { margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: var(--ground); font-size: 15px; line-height: 1.5; }
.ship-form { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.ship-form .two { grid-template-columns: 1fr 1.6fr; }
.ship-form .linkbtn { align-self: flex-start; font-size: 14px; }
.receive { flex: 1 1 280px; min-width: 0; }
.receive .card-note { margin-top: 10px; }
.fees.payout { flex: 1 1 240px; min-width: 0; margin: 0; padding: 16px 20px; border-radius: 16px; background: var(--blush); }
.fees.payout .total dd { font-size: 26px; }
.order.compact a { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; padding: 16px 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); color: var(--ink); text-decoration: none; }
.order.compact a:hover { border-color: var(--line-2); color: var(--ink); }
.order.compact .o-pic { flex-basis: 52px; width: 52px; height: 64px; border-radius: 999px 999px 10px 10px; }
.o-title { flex: 1 1 220px; min-width: 0; }
.o-title b { display: block; font-weight: 600; }
.o-title span { font-size: 14px; color: var(--ink-2); }
.o-money { font-weight: 600; }

@media (max-width: 760px) {
  .gallery-main { max-width: none; }
  .price-big strong { font-size: 36px; }
  .sell-form { padding: 20px; }
  .tier { padding: 24px; }
  .order.compact a { padding: 14px 16px; }
}
.table-box { overflow-x: auto; max-width: 100%; }

/* Listing: what the seller changed from the photo check */
.changes { margin-top: 20px; padding: 14px 18px; border-radius: 14px; background: var(--concern-tint); font-size: 15px; line-height: 1.55; }
.changes ul { margin: 6px 0 0; padding-left: 20px; }
