/* Swapsona: mobile first. Trans-flag tones for accents: sky #5bcefa, pink #f5a9b8, white. */
/* light by default; the switch at the top sets data-theme="dark" (Gavin, 2026-11-04). A flat warm-paper background
   instead of the blue-pink gradient (Gavin, 2026-11-05: the gradient read as made by AI) */
:root {
  color-scheme: light;
  --sky: #5bcefa; --pink: #f5a9b8; --ink: #1d2433; --muted: #575249; --line: #e6dece;
  --bg: #f6f2ea; --card: #fffdf8; --accent: #b23f6b; --accent-ink: #ffffff; --ok: #1f7a4d; --bad: #b3261e; --bad-ink: #ffffff;
  --warn: #b26a00;
  --tint-a: rgba(91,206,250,.10); --tint-b: rgba(245,169,184,.10);
  --radius: 14px; --gap: 16px;
}
:root[data-theme="dark"] { color-scheme: dark; --ink: #f3efe8; --muted: #c4bdb2; --line: #3b352e; --bg: #161412; --card: #201d1a; --warn: #f0b35a;
  --accent: #f49bbb; --accent-ink: #14171f; --ok: #6fd3a0; --bad: #ff8a80; --bad-ink: #14171f; --tint-a: rgba(91,206,250,.07); --tint-b: rgba(245,169,184,.05); }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html { background: var(--bg); }
body { margin: 0; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink);
  background: var(--bg); min-height: 100vh; }
main { padding: 0 16px 32px; max-width: 760px; margin: 0 auto; }
a { color: var(--accent); }
h1 { font-size: 1.6rem; line-height: 1.2; margin: .3em 0 .5em; }
h2 { font-size: 1.2rem; margin: 1.2em 0 .5em; }
.small { font-size: .875rem; color: var(--muted); }
.error { color: var(--bad); font-weight: 600; min-height: 1em; }
[hidden] { display: none !important; }   /* hidden wins over a layout's display (the preset step's other squares) */
/* the photo check's panel: the same for every reason, a warning or a refusal (Gavin, 2026-11-05) */
.photocheck { border: 1px solid var(--line); border-left: 6px solid var(--warn); border-radius: var(--radius); padding: 14px 18px;
  margin: 16px 0; background: var(--card); }
.photocheck.refuse { border-left-color: var(--bad); }
.photocheck h2 { font-size: 1.15rem; margin: 0 0 8px; }
.photocheck ul { margin: 0 0 4px; padding-left: 1.2em; }
.photocheck li + li { margin-top: 6px; }
.ok, .okc { color: var(--ok); }
.bad { color: var(--bad); }

/* the header: one row (logo, links, then the switch and Start) when it fits; on narrower screens two rows, the logo,
   switch, and Start on top and the links under them (Gavin, 2026-11-04) */
.top { display: flex; align-items: center; gap: 8px 20px; padding: 12px 16px; max-width: 1000px; margin: 0 auto;
  border-bottom: 1px solid var(--line); }
.logo { font-weight: 800; font-size: 1.25rem; text-decoration: none; color: var(--ink); letter-spacing: -.02em; }
.top .links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-left: auto; }
.top .links a { color: var(--ink); text-decoration: none; font-weight: 600; padding: 4px 0; white-space: nowrap; }
.top .links a:hover, .top .links a[aria-current="page"] { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.top .tools { display: flex; align-items: center; gap: 12px; }
.top .tools a.start { background: var(--accent); color: var(--accent-ink); padding: 6px 14px; border-radius: 999px;
  text-decoration: none; font-weight: 600; white-space: nowrap; }
.top .tools a.account { color: var(--accent); border: 2px solid var(--accent); padding: 4px 12px; border-radius: 999px;
  text-decoration: none; font-weight: 600; white-space: nowrap; max-width: 9em; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 760px) {
  .top { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "logo tools" "links links"; row-gap: 8px; }
  .top .logo { grid-area: logo; }
  .top .tools { grid-area: tools; }
  .top .links { grid-area: links; margin-left: 0; }
}
@media (max-width: 420px) { .top { padding: 10px 12px; } .top .links { gap: 4px 14px; } }
@media (max-width: 380px) { .top .links { font-size: .95rem; } }
@media (max-width: 340px) { .top .links { font-size: .9rem; gap: 4px 10px; } }
/* the light and dark switch, shaped like the iPhone's (Gavin, 2026-11-04): a 51 x 31 track, gray when off and green
   when on, and a white knob that slides across with a sun (light) or a moon (dark) on it */
.top .tools a.theme { position: relative; display: inline-block; width: 51px; height: 31px; padding: 0; border-radius: 999px;
  background: #e9e9eb; box-shadow: inset 0 0 0 1.5px rgba(0,0,0,.06); text-decoration: none; flex: none;
  transition: background-color .25s ease; -webkit-tap-highlight-color: transparent; }
.theme .knob { position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff;
  box-shadow: 0 3px 8px rgba(0,0,0,.15), 0 3px 1px rgba(0,0,0,.06); transition: transform .25s cubic-bezier(.4,.2,.2,1);
  display: grid; place-items: center; }
.theme svg { width: 15px; height: 15px; fill: none; stroke: #f0a500; stroke-width: 2; stroke-linecap: round; }
.theme .sun circle { fill: #f6b400; stroke: none; }
.theme .moon { display: none; fill: #5b6b9a; stroke: none; }
:root[data-theme="dark"] .top .tools a.theme { background: #34c759; box-shadow: none; }
:root[data-theme="dark"] .theme .knob { transform: translateX(20px); }
:root[data-theme="dark"] .theme .sun { display: none; }
:root[data-theme="dark"] .theme .moon { display: block; }
.theme:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

footer { text-align: center; padding: 24px 16px 40px; font-size: .9rem; color: var(--muted); line-height: 2; }
footer::before { content: ""; display: block; width: 110px; height: 5px; margin: 0 auto 16px; border-radius: 3px;
  background: linear-gradient(90deg, #5bcefa 0 20%, #f5a9b8 20% 40%, #ffffff 40% 60%, #f5a9b8 60% 80%, #5bcefa 80%);
  box-shadow: 0 0 0 1px var(--line); }
footer a, footer form { color: var(--ink); white-space: nowrap; }  /* a link never breaks inside itself */
footer .foot > *:not(:last-child)::after { content: "\00b7"; margin: 0 .45em; color: var(--muted); display: inline-block;
  text-decoration: none; }  /* the dot stays with the link before it */
.inline { display: inline; }
button.link { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; cursor: pointer; font: inherit; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 16px 0;
  box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.narrow { max-width: 460px; margin-left: auto; margin-right: auto; }
.text { background: var(--card); border-radius: var(--radius); padding: 18px; border: 1px solid var(--line); }
main > .text:first-child { margin-top: 16px; }   /* room under the menu (Gavin, 2026-11-05) */
li .bonus { color: var(--ok); font-weight: 700; }   /* a pack's bonus credits in the price list */

.cta, .secondary, .danger, .button-like, .pack { display: inline-block; border-radius: 999px; padding: 12px 22px; font: inherit;
  font-weight: 700; border: 0; cursor: pointer; text-decoration: none; text-align: center; min-height: 48px; }
.cta { background: var(--accent); color: var(--accent-ink); width: 100%; }
@media (min-width: 640px) { .cta { width: auto; } }
.secondary, .button-like { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
.danger { background: var(--bad); color: var(--bad-ink); }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0; }

.hero { text-align: center; padding-top: 12px; padding-bottom: 28px; }  /* room below the first button (Gavin, 2026-11-05) */
.hero h1 { font-size: 2rem; }
.lead { font-size: 1.1rem; color: var(--muted); }
.preview { margin: 8px auto 20px; max-width: 360px; }
.preview figcaption { margin-top: 6px; }
/* the home page's before and after: two full-quality pictures and a line that sweeps between them (smoother and
   sharper than a GIF; an even 10 s a loop with a pause on each side, Gavin 2026-11-04) */
.ba { position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: var(--radius); box-shadow: 0 8px 30px rgba(178,63,107,.18); }
.ba > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ba .before { position: absolute; top: 0; left: 0; bottom: 0; width: 100%; overflow: hidden; animation: ba-width 10s ease-in-out infinite; }
.ba .before img { position: absolute; top: 0; left: 0; height: 100%; width: auto; max-width: none; display: block; }
.ba .line { position: absolute; top: 0; bottom: 0; left: 100%; width: 3px; margin-left: -1.5px; background: #fff;
  box-shadow: 0 0 6px rgba(0,0,0,.35); animation: ba-left 10s ease-in-out infinite; }
@keyframes ba-width { 0%, 22.5% { width: 100%; } 50%, 72.5% { width: 0%; } 100% { width: 100%; } }
@keyframes ba-left { 0%, 22.5% { left: 100%; } 50%, 72.5% { left: 0%; } 100% { left: 100%; } }
@media (prefers-reduced-motion: reduce) {
  .ba .before, .ba .line { animation: none; }
  .ba .before { width: 50%; }
  .ba .line { left: 50%; }
}

.steps li { margin: 10px 0; }

.progress { display: flex; gap: 6px; list-style: none; padding: 0; margin: 12px 0 0; font-size: .8rem; color: var(--muted); }
/* the trans flag's colors in a few quiet places (Gavin, 2026-11-05: not the flag itself): the steps, the footer, and
   the run page's bar (not the before and after's sweep line: he had it taken off the same day) */
.progress li { flex: 1; text-align: center; padding-top: 9px; position: relative; }
.progress li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; border-radius: 3px; background: var(--line); }
.progress li:nth-child(1) { --c: #5bcefa; } .progress li:nth-child(2) { --c: #f5a9b8; } .progress li:nth-child(3) { --c: #ffffff; }
.progress li:nth-child(4) { --c: #f5a9b8; } .progress li:nth-child(5) { --c: #5bcefa; }
.progress .on::before, .progress .done::before { background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.progress .on { color: var(--ink); font-weight: 700; }

.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 2px dashed var(--sky);
  border-radius: var(--radius); padding: 36px 12px; text-align: center; cursor: pointer; }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone .big { font-weight: 700; font-size: 1.1rem; }
.dropzone.over { background: rgba(91,206,250,.08); }
.thumbrow img { border-radius: 10px; }

.field { display: block; margin: 12px 0; font-weight: 600; }
.field input, .field select, .field textarea { display: block; width: 100%; margin-top: 4px; padding: 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; min-height: 48px; }
.field .small { font-weight: 400; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; }
.check input { width: 22px; height: 22px; flex: none; margin-top: 2px; }
fieldset { border: 0; padding: 0; margin: 16px 0; }
legend { font-weight: 700; margin-bottom: 6px; }
.req { color: var(--bad); font-weight: 700; margin-left: 3px; }   /* a red asterisk (Gavin, 2026-11-05) */
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg legend { flex-basis: 100%; }
.seg label, .chips label, .cards label { position: relative; }
.seg input, .chips input, .cards input { position: absolute; opacity: 0; }
.seg label > span, .chips label > span { display: inline-block; padding: 10px 16px; border: 2px solid var(--line); border-radius: 999px; cursor: pointer; }
.seg input:checked + span, .chips input:checked + span, .cards input:checked + span { border-color: var(--accent); background: rgba(194,80,122,.08); }
.seg input:focus-visible + span, .chips input:focus-visible + span, .cards input:focus-visible + span { outline: 3px solid var(--sky); }
.cards { display: grid; gap: 8px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.cards label > span { display: block; padding: 12px; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; height: 100%; }
.cards small { display: block; font-size: .85rem; color: var(--muted); margin-top: 2px; }
.cards .helptext { grid-column: 1 / -1; margin: 0; }   /* the variance tip: full width, above all three */
.pill { font-style: normal; font-size: .72rem; font-weight: 700; background: var(--accent); color: var(--accent-ink);
  border-radius: 999px; padding: 2px 8px; vertical-align: 2px; white-space: nowrap; }
#buy { margin-top: 20px; padding-top: 4px; border-top: 1px solid var(--line); }
#buy h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.secure { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; font-weight: 700; color: var(--ok); }
svg.lock { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; flex: none; }
.trust { display: flex; gap: 12px; align-items: flex-start; margin: 16px 0 4px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ok); }
.trust svg.lock { width: 26px; height: 26px; margin-top: 2px; }
.trust p { margin: 0; color: var(--ink); }
.trust p.small { color: var(--muted); margin-top: 6px; }
.brands { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 8px 0 0; }
.brands li { font-size: .75rem; font-weight: 700; letter-spacing: .02em; color: var(--muted); border: 1px solid var(--line);
  border-radius: 6px; padding: 2px 8px; background: var(--card); }
#paycard > .cta { margin-top: 18px; }
/* makeup and nail polish side by side on every screen, their tone boxes on one line (Gavin, 2026-11-05) */
.pair { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
.tones.off { opacity: .45; }
.choices { display: grid; gap: 10px; margin: 12px 0; }
.choices form { margin: 0; }
.choices .cta, .choices .secondary { width: 100%; }
.choices .back { font-weight: 400; font-size: .9em; }
.sharepromo { font-weight: 700; color: var(--accent); }
.sharegift { font-weight: 700; color: var(--accent); }
.check.small { font-size: .85rem; gap: 8px; margin-top: 14px; }
.check.small input { width: 18px; height: 18px; }
.choiceimg { display: block; width: 100%; max-height: 42vh; object-fit: contain; border-radius: 12px; margin: 0 0 8px;
  background: var(--tint-b); }
.mehead { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.mehead h1 { margin: 0; }
.shavenpref { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.shavenpref .grid { margin-bottom: 10px; }
.shavenadd { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.pill.covers { background: var(--ok); color: #fff; margin-right: 4px; }
.looknav { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
.looknav a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.looknav a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.photo-head img.pv { border-radius: 12px; box-shadow: 0 0 0 3px var(--accent); }
.photo-head img.pv-new { animation: pvpop 1.4s ease-out 2; }
@keyframes pvpop { 0% { transform: scale(.92); box-shadow: 0 0 0 0 rgba(178, 63, 107, .7); }
  45% { transform: scale(1.08); } 100% { transform: scale(1); box-shadow: 0 0 0 16px rgba(178, 63, 107, 0); } }
@media (prefers-reduced-motion: reduce) { .photo-head img.pv-new { animation: none; } }
.pvnote { font-weight: 700; color: var(--accent); margin-top: 0; }
.pvavatar { display: block; width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 10px; overflow: hidden;
  box-shadow: 0 0 0 3px var(--accent); }
.pvavatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pvwait { background: linear-gradient(110deg, var(--tint-b) 30%, rgba(178, 63, 107, .22) 50%, var(--tint-b) 70%);
  background-size: 250% 100%; animation: pvshimmer 1.6s linear infinite; }
@keyframes pvshimmer { to { background-position: -150% 0; } }
@media (prefers-reduced-motion: reduce) { .pvwait { animation: none; } }
.pvbig .pvbox { width: min(100%, 340px); aspect-ratio: 4 / 5; margin: 0 auto 6px; border-radius: 14px; }
.pvbig { margin: 12px 0; text-align: center; }
.pvbig img { display: block; max-width: 100%; max-height: 60vh; width: auto; height: auto; margin: 0 auto 6px; border-radius: 14px; }
.sharepage { text-align: center; }
.sharepage img { display: block; max-width: 100%; height: auto; max-height: 75vh; width: auto; margin: 12px auto; border-radius: 12px; }
.notice { background: var(--tint-b); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.hairmix { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: -2px 0 6px; }
.hairmix .check { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.hairmix input { width: 20px; height: 20px; }
.toggles label { display: flex; gap: 10px; align-items: center; margin: 8px 0; }
.toggles input[type=checkbox], .tones input { width: 22px; height: 22px; }
.tones { display: flex; flex-wrap: wrap; gap: 14px; margin: -4px 0 10px; }
.tones label { display: flex; gap: 6px; align-items: center; }
.look[disabled], .off { opacity: .45; }
/* "Switch to...": side by side on a phone, light pink for feminine and light blue for masculine */
.seg.dir, .seg.row3 { flex-wrap: nowrap; }
.seg.dir label, .seg.row3 label { flex: 1; }
.seg.dir span, .seg.row3 span { display: block; text-align: center; padding-left: 6px; padding-right: 6px; }
.seg > .small, .seg > .shaven { flex-basis: 100%; margin: 4px 0 0; }   /* the shaving notes under the buttons */
.seg.dir .to-mf input:checked + span { background: #fde4ea; border-color: #f5a9b8; color: #1d2433; }
.seg.dir .to-fm input:checked + span { background: #ddf3fd; border-color: #5bcefa; color: #1d2433; }
/* the style page's dropdowns, two to a row where there's room */
.optgrid { display: grid; grid-template-columns: 1fr; column-gap: 20px; }
.optgrid .wide { grid-column: 1 / -1; }
.optgrid .field { margin: 10px 0; }
@media (min-width: 640px) { .optgrid { grid-template-columns: 1fr 1fr; } }
/* the preset step: a square for each preset */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 16px 0; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 10px; border: 2px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--ink);
  font: inherit; cursor: pointer; text-align: center; }
.tile:hover, .tile:focus-visible { border-color: var(--accent); }
.tile .ico { font-size: 2.2rem; line-height: 1.1; }
.tile .small { color: var(--muted); }
.photo-head { display: flex; align-items: center; gap: 12px; }
.photo-head img { border-radius: 10px; }

.picks { background: rgba(91,206,250,.08); border-radius: 12px; padding: 12px; margin: 16px 0; }
.picks h2 { margin-top: 0; }
.picks dl, details dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 12px; margin: 0 0 12px; }
.picks dt, details dt { font-weight: 700; }
.picks dd, details dd { margin: 0; }
.rnd { font-size: .7rem; font-weight: 600; background: var(--pink); color: #4a1f2e; border-radius: 999px; padding: 1px 6px; }

.estimate { background: rgba(245,169,184,.15); border-radius: 12px; padding: 12px; }
.help { border: 1px solid var(--muted); background: none; color: var(--muted); border-radius: 50%; width: 24px; height: 24px; cursor: pointer; }
.packs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pack { width: 100%; background: var(--bg); color: var(--ink); border: 2px solid var(--line); border-radius: 12px; }
.packs form { display: flex; }   /* every pack box as tall as its row, with or without a bonus line */
.packs .pack { height: 100%; }

.boxer { position: relative; user-select: none; margin: 12px 0; }   /* scrolls like the page until drawing starts */
.boxer.drawing { touch-action: none; }
.boxer .face { position: absolute; padding: 0; min-width: 24px; min-height: 24px; border: 3px solid #fff; border-radius: 50%;
  background: rgba(255,255,255,.14); box-shadow: 0 0 0 2px rgba(0,0,0,.35); cursor: pointer; }
.boxer .face.on { border-color: var(--accent); background: rgba(194,80,122,.18); }
.boxer.drawing .face { pointer-events: none; opacity: .4; }
.boxer .redraw { position: absolute; inset: 0; background: rgba(0,0,0,.45); border-radius: 10px; display: flex;
  align-items: center; justify-content: center; pointer-events: none; }
.boxer .redraw button { pointer-events: auto; background: var(--card); }
.drawhelp { font-weight: 700; color: var(--accent); margin: 8px 0 0; }
.boxer img { width: 100%; height: auto; display: block; border-radius: 10px; }
.boxer .box { position: absolute; border: 3px solid var(--accent); background: rgba(194,80,122,.12); border-radius: 6px; }

.bar { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.bar div { height: 100%; width: 30%; animation: slide 1.6s ease-in-out infinite;
  background: linear-gradient(90deg, #5bcefa 0 20%, #f5a9b8 20% 40%, #ffffff 40% 60%, #f5a9b8 60% 80%, #5bcefa 80%); }
@keyframes slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(340%); } }
@media (prefers-reduced-motion: reduce) { .bar div { animation: none; width: 100%; } }

.slider { position: relative; overflow: hidden; border-radius: 12px; }
.slider img { display: block; width: 100%; height: auto; }
.slider .beforewrap { position: absolute; inset: 0; width: 50%; overflow: hidden; border-right: 3px solid #fff; }
.slider .beforewrap img { width: auto; height: 100%; max-width: none; }
.slider input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; }
.grid figure { margin: 0; }
.revimg { max-width: 100%; max-height: 60vh; border-radius: 8px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pair figure { margin: 0; }
.report { margin: 6px 0 0; text-align: right; }
.report summary { font-weight: 400; font-size: .875rem; color: var(--muted); }
.report form, .report p { text-align: left; }
table { border-collapse: collapse; width: 100%; }
td, th { border-bottom: 1px solid var(--line); padding: 6px 4px; text-align: left; }
details.pricing { margin: 20px 0; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
details summary { cursor: pointer; font-weight: 700; }
.prices th, .prices td { text-align: center; vertical-align: top; }
.prices tbody th { text-align: left; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 12px; }
.tiles div { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.tiles strong { display: block; font-size: 1.4rem; }
.tiles span { font-size: .85rem; color: var(--muted); }
.funnel { list-style: none; padding: 0; }
.funnel li { margin: 10px 0; }
.funnel progress { display: block; width: 100%; height: 14px; accent-color: var(--accent); }
.lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.lists h3 { font-size: 1rem; margin: 0 0 6px; }
.pick { margin: 14px 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--tint-a); }
.pack .bonus { display: block; margin-top: 4px; font-size: .8rem; font-weight: 700; color: var(--ok); }
/* room for a finger on phones (at least 24 px): plain links in a line of text, and the fold-outs */
@media (max-width: 760px) {
  main p a:not([class]) { padding-block: 4px; }
  details summary { padding-block: 4px; }
}
dialog { border: 0; border-radius: var(--radius); max-width: 420px; background: var(--card); color: var(--ink); }
dialog::backdrop { background: rgba(0,0,0,.4); }
.giftform .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.custom input { width: 8em; padding: 10px; border-radius: 10px; border: 1px solid var(--line); }
.scroll { overflow-x: auto; }
.debug { margin: 16px 0; padding-top: 8px; border-top: 1px solid var(--line, #ddd); }
.debug .attempt { margin: 12px 0 20px; }
.debug h3 { font-size: 1rem; margin: 0 0 6px; }
.debug table { border-collapse: collapse; width: 100%; }
.debug th, .debug td, #tests th, #tests td { text-align: left; padding: 3px 6px; border-bottom: 1px solid var(--line, #ddd); white-space: nowrap; }
.debug .over { color: #c0392b; font-weight: 600; }
.debug dl { display: grid; grid-template-columns: max-content 1fr; gap: 2px 10px; margin: 6px 0 0; }
.debug dd { margin: 0; overflow-wrap: anywhere; }
.how h3 { font-size: 1.05rem; margin: 1.1em 0 .3em; }
