/* Icarus design form. Aegean noon: paper, ink, deep sea for actions, sun for small accents only.
   Hairline rules, no shadows, gradients or rounded corners. Light mode only. */
:root {
  --paper: #FBF7EC;
  --ink: #16242F;
  --sea: #1D5A85;
  --sun: #F9C74F;
  --wash: #FBEBC5;
  --hair: #DDD8C8;
  --grey: #56646F;
  --faint: #A9B4BC;
  --white: #FFFFFF;
  --danger: #A33A2B;
  --head: 'Faculty Glyphic', Georgia, serif;
  --body: 'Libre Franklin', system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); }
body { font-family: var(--body); font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
a { color: var(--sea); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Top bar */
.top { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--hair); }
.top-in { max-width: 640px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 12px; }
.top .logo { height: 30px; width: auto; fill: var(--ink); flex: none; }
.top .step-name { font-size: 13px; color: var(--grey); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .brief-btn { background: none; border: 1px solid var(--ink); padding: 6px 10px; font-size: 13px; font-weight: 600; cursor: pointer; flex: none; }
.progress { height: 3px; background: var(--hair); }
.progress i { display: block; height: 3px; width: 0; background: var(--ink); transition: width .25s; }

/* Screens */
main { max-width: 640px; margin: 0 auto; padding: 24px 16px 140px; }
.screen { display: none; }
.screen.on { display: block; animation: rise .22s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.kicker { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--grey); margin: 0 0 8px; }
h1, h2 { font-family: var(--head); font-weight: 400; margin: 0 0 10px; line-height: 1.15; }
h1 { font-size: 34px; }
h2 { font-size: 27px; }
h1 + .bar, h2 + .bar { width: 36px; height: 3px; background: var(--sun); outline: 1px solid var(--ink); outline-offset: 0; margin: 2px 0 16px; }
.lede { color: var(--grey); margin: 0 0 22px; }
.hint { font-size: 13px; color: var(--grey); margin: 6px 0 0; }
.hero { margin: -24px -16px 22px; border-bottom: 1px solid var(--hair); }
.hero img { width: 100%; height: auto; }

/* Fields */
.field { margin: 0 0 18px; }
.field > label, .label { display: block; font-weight: 600; font-size: 15px; margin: 0 0 6px; }
.opt { font-weight: 400; color: var(--grey); font-size: 13px; }
input[type=text], input[type=email], input[type=tel], input[type=date], select, textarea {
  width: 100%; background: var(--white); border: 1px solid var(--hair); border-radius: 0; padding: 12px; font-size: 16px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--sea); box-shadow: inset 0 0 0 1px var(--sea); }
textarea { min-height: 96px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.err { color: var(--danger); font-size: 13px; margin: 6px 0 0; display: none; }
.field.bad .err, [data-field].bad > .err { display: block; }
.field.bad input, .field.bad select, .field.bad textarea { border-color: var(--danger); }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--white); border: 1px solid var(--hair); padding: 10px 14px; cursor: pointer; font-size: 15px; text-align: left; }
.chip[aria-pressed=true] { background: var(--wash); border-color: var(--ink); }
.chip small { display: block; color: var(--grey); font-size: 12px; }

/* Tiles: picture cards */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tile { background: var(--white); border: 1px solid var(--hair); padding: 12px; cursor: pointer; text-align: left; display: flex; flex-direction: column; gap: 8px; }
.tile[aria-pressed=true] { background: var(--wash); border-color: var(--ink); box-shadow: inset 3px 0 0 var(--sun); }
.tile svg { width: 100%; height: 86px; }
.tile b { font-weight: 600; font-size: 15px; }
.tile span { font-size: 13px; color: var(--grey); }
.tile .tag { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.tile img { width: 100%; height: auto; background: #333; }

/* Segmented control */
.seg { display: flex; border: 1px solid var(--hair); background: var(--white); }
.seg button { flex: 1; border: 0; border-right: 1px solid var(--hair); background: none; padding: 10px 6px; cursor: pointer; font-size: 14px; }
.seg button:last-child { border-right: 0; }
.seg button[aria-pressed=true] { background: var(--wash); font-weight: 600; box-shadow: inset 0 -2px 0 var(--ink); }
.kitrow { border-top: 1px solid var(--hair); padding: 14px 0; }
.kitrow:last-child { border-bottom: 1px solid var(--hair); }
.kitrow .label { margin-bottom: 8px; }

/* Colour swatches */
.kit-colours { border-top: 1px solid var(--hair); padding: 16px 0; }
.kit-colours h3 { font: 600 16px var(--body); margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.picked { display: flex; gap: 6px; flex-wrap: wrap; min-height: 34px; margin-bottom: 10px; }
.picked .p { display: flex; align-items: center; gap: 6px; border: 1px solid var(--hair); background: var(--white); padding: 4px 8px 4px 4px; font-size: 13px; cursor: pointer; }
.picked .p i { width: 22px; height: 22px; border: 1px solid rgba(22,36,47,.25); }
.picked .none { font-size: 13px; color: var(--faint); align-self: center; }
.swatches { display: grid; grid-template-columns: repeat(9, 1fr); gap: 4px; }
.sw { aspect-ratio: 1; border: 1px solid rgba(22,36,47,.18); cursor: pointer; padding: 0; position: relative; }
.sw[aria-pressed=true]::after { content: ''; position: absolute; inset: 3px; border: 2px solid var(--white); outline: 2px solid var(--ink); }
.own { display: flex; gap: 8px; margin-top: 10px; }
.own input { flex: 1; }
.own button { flex: none; }
.notice { background: var(--wash); border-left: 3px solid var(--sun); padding: 10px 12px; font-size: 13px; margin: 10px 0 0; }

/* Buttons */
.btn { background: var(--sea); color: var(--paper); border: 0; padding: 14px 20px; font-weight: 600; font-size: 16px; cursor: pointer; }
.btn:disabled { opacity: .45; cursor: default; }
.btn.ghost { background: none; color: var(--sea); border: 1px solid var(--sea); }
.btn.small { padding: 8px 12px; font-size: 14px; }
.link { background: none; border: 0; color: var(--sea); text-decoration: underline; cursor: pointer; padding: 0; font-size: 14px; }
.nav { position: fixed; left: 0; right: 0; bottom: 0; background: var(--paper); border-top: 1px solid var(--hair); z-index: 15; }
.nav-in { max-width: 640px; margin: 0 auto; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); display: flex; gap: 10px; align-items: center; }
.nav .back { background: none; border: 1px solid var(--hair); padding: 14px 16px; cursor: pointer; font-weight: 600; }
.nav .next { flex: 1; }
.nav .save { font-size: 13px; }

/* Voice note */
.voice { border: 1px solid var(--hair); background: var(--white); padding: 18px; text-align: center; }
.rec { width: 76px; height: 76px; border-radius: 50%; border: 0; background: var(--sea); color: var(--paper); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.rec.on { background: var(--danger); }
.rec svg { width: 30px; height: 30px; fill: currentColor; }
.voice .time { font-variant-numeric: tabular-nums; margin: 10px 0 0; color: var(--grey); }
.voice audio { width: 100%; margin-top: 12px; }

/* Swipe deck */
.deck { position: relative; height: clamp(280px, calc(100svh - 400px), 480px); margin: 6px 0 12px; }
.card { position: absolute; inset: 0; background: var(--white); border: 1px solid var(--hair); display: flex; flex-direction: column; touch-action: pan-y; user-select: none; }
.card .pic { flex: 1; display: flex; align-items: center; justify-content: center; padding: 18px; min-height: 0; background: var(--white); }
.card .pic img { max-height: 100%; width: auto; object-fit: contain; pointer-events: none; }
.card .meta { border-top: 1px solid var(--hair); padding: 10px 14px; font-size: 13px; color: var(--grey); display: flex; justify-content: space-between; gap: 8px; }
.card .stamp { position: absolute; top: 16px; padding: 4px 10px; border: 2px solid; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; opacity: 0; background: var(--paper); }
.card .stamp.keep { left: 16px; color: var(--sea); }
.card .stamp.skip { right: 16px; color: var(--grey); }
.deck-btns { display: flex; gap: 10px; }
.deck-btns .btn { flex: 1; }
.deck-count { text-align: center; font-size: 13px; color: var(--grey); margin: 0 0 6px; font-variant-numeric: tabular-nums; }
.like { border: 1px solid var(--ink); background: var(--wash); padding: 14px; margin-top: 12px; }
.like p { margin: 0 0 10px; font-weight: 600; }
.kept { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 12px; }
.kept div { background: var(--white); border: 1px solid var(--hair); aspect-ratio: 1; padding: 4px; }
.kept img { width: 100%; height: 100%; object-fit: contain; }

/* Mild to wild */
.wild-pics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 6px 0 14px; }
.wild-pics div { background: var(--white); border: 1px solid var(--hair); aspect-ratio: 1; padding: 8px; display: flex; align-items: center; justify-content: center; }
.wild-pics img { max-height: 100%; object-fit: contain; }
input[type=range] { width: 100%; accent-color: var(--sea); }
.scale-ends { display: flex; justify-content: space-between; font-size: 13px; color: var(--grey); }
.wild-num { font-family: var(--head); font-size: 40px; line-height: 1; }
.wild-word { color: var(--grey); }

/* Uploads */
.drop { border: 1px dashed var(--faint); background: var(--white); padding: 18px; text-align: center; cursor: pointer; display: block; }
.drop input { display: none; }
.files { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.file { display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; align-items: start; background: var(--white); border: 1px solid var(--hair); padding: 8px; }
.file .th { width: 64px; height: 64px; background: var(--paper); display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--grey); overflow: hidden; }
.file .th img { max-width: 100%; max-height: 100%; object-fit: contain; }
.file .nm { font-size: 13px; word-break: break-all; }
.file .st { font-size: 12px; color: var(--grey); }
.file .chips { margin-top: 6px; gap: 4px; }
.file .chip { padding: 5px 9px; font-size: 13px; }
.file .x { background: none; border: 0; color: var(--grey); cursor: pointer; font-size: 20px; line-height: 1; }

/* Collar picker */
.collars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.collars .tile { padding: 8px; }
.collars .tile img { background: #2b2b2b; }

/* Date check */
.datecheck { margin-top: 10px; padding: 10px 12px; font-size: 14px; border-left: 3px solid var(--hair); background: var(--white); display: none; }
.datecheck.show { display: block; }
.datecheck.ok { border-left-color: #2E7D52; }
.datecheck.tight { border-left-color: var(--sun); background: var(--wash); }
.datecheck.risk { border-left-color: var(--danger); }

/* Checkboxes */
.check { display: flex; gap: 10px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--hair); cursor: pointer; }
.check:last-of-type { border-bottom: 1px solid var(--hair); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--sea); flex: none; }

/* Brief card (drawer) */
.drawer { position: fixed; inset: 0; z-index: 40; display: none; }
.drawer.on { display: block; }
.drawer .shade { position: absolute; inset: 0; background: rgba(22,36,47,.35); }
.drawer .panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(440px, 100%); background: var(--paper); border-left: 1px solid var(--ink); overflow-y: auto; padding: 20px 18px 40px; }
.drawer .close { float: right; background: none; border: 1px solid var(--hair); padding: 6px 10px; cursor: pointer; }
.brief h2 { font-size: 24px; }
.brief dl { margin: 0; }
.brief .sec { border-top: 1px solid var(--hair); padding: 12px 0; }
.brief dt { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--grey); margin-bottom: 4px; }
.brief dd { margin: 0; font-size: 14px; }
.brief .dots { display: flex; gap: 4px; flex-wrap: wrap; }
.brief .dots i { width: 18px; height: 18px; border: 1px solid rgba(22,36,47,.25); }
.brief .thumbs { display: flex; gap: 4px; flex-wrap: wrap; }
.brief .thumbs img { width: 44px; height: 44px; object-fit: contain; background: var(--white); border: 1px solid var(--hair); }
.brief .empty { color: var(--faint); }

/* Save dialog */
.saved-link { display: flex; gap: 6px; margin: 10px 0; }
.saved-link input { font-size: 13px; }

/* Done */
.done-mark { width: 52px; height: 52px; border: 2px solid var(--ink); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; background: var(--wash); }
.done-mark svg { width: 26px; height: 26px; stroke: var(--ink); fill: none; stroke-width: 2.5; }
.spin { display: inline-block; width: 16px; height: 16px; border: 2px solid var(--hair); border-top-color: var(--sea); border-radius: 50%; animation: sp .8s linear infinite; vertical-align: -3px; margin-right: 6px; }
@keyframes sp { to { transform: rotate(360deg); } }

@media (min-width: 560px) {
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .collars { grid-template-columns: repeat(4, 1fr); }
  .swatches { grid-template-columns: repeat(12, 1fr); }
  h1 { font-size: 40px; }
}
@media (prefers-reduced-motion: reduce) { .screen.on { animation: none; } .progress i { transition: none; } }

h1:focus, h2:focus { outline: none; }

/* ---- round 2: merged steps ---- */
h3.sub { font: 400 21px var(--head); margin: 30px 0 12px; padding-top: 20px; border-top: 1px solid var(--hair); }
.roles { border-left: 3px solid var(--sun); background: var(--wash); padding: 10px 12px; margin: 0 0 16px; font-size: 13px; }
.roles p { margin: 0 0 4px; } .roles p:last-child { margin: 0; }
.picked .p em { font-style: normal; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--grey); }

/* product tiles with line art */
.prod { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.ptile { background: var(--white); border: 1px solid var(--hair); padding: 12px 10px 10px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.ptile img { height: 64px; width: auto; max-width: 100%; object-fit: contain; }
.ptile.wide { grid-column: span 1; }
.ptile b { font-weight: 600; font-size: 14px; }
.ptile[aria-pressed=true] { background: var(--wash); border-color: var(--ink); box-shadow: inset 0 -3px 0 var(--sun); }
.kitrow { display: flex; gap: 14px; align-items: center; }
.kitrow-main { flex: 1; min-width: 0; }
.kitpic { width: 76px; flex: none; display: grid; grid-template-columns: 1fr 14px; grid-template-rows: auto auto; gap: 2px 4px; align-items: start; }
.kitpic .a-jersey { grid-column: 1; width: 100%; }
.kitpic .a-shorts { grid-column: 1; width: 80%; justify-self: center; }
.kitpic .a-socks { grid-column: 2; grid-row: 1 / span 2; width: 14px; align-self: end; }

/* voice note, inline */
.voice.inline { display: flex; gap: 14px; align-items: center; text-align: left; padding: 14px; margin: 6px 0 0; }
.voice.inline .rec { width: 56px; height: 56px; flex: none; }
.voice.inline .rec svg { width: 24px; height: 24px; }
.voice.inline .time { margin: 4px 0 0; font-size: 13px; }

/* Kit Compass */
.compass-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 620px) { .compass-wrap { grid-template-columns: 340px 1fr; } }
.compass { position: relative; aspect-ratio: 1; background: var(--white); border: 1px solid var(--ink); margin: 18px 22px; cursor: crosshair; touch-action: none; user-select: none; }
.compass .cross { position: absolute; background: var(--hair); pointer-events: none; }
.compass .cross.h { left: 0; right: 0; top: 50%; height: 1px; }
.compass .cross.v { top: 0; bottom: 0; left: 50%; width: 1px; }
.compass .ax { position: absolute; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--grey); pointer-events: none; }
.compass .ax-t { top: -18px; left: 50%; transform: translateX(-50%); }
.compass .ax-b { bottom: -18px; left: 50%; transform: translateX(-50%); }
.compass .ax-l { left: -20px; top: 50%; transform: translate(-50%, -50%) rotate(-90deg); }
.compass .ax-r { right: -20px; top: 50%; transform: translate(50%, -50%) rotate(90deg); }
.compass .dot { position: absolute; width: 10%; aspect-ratio: 1; padding: 0; transform: translate(-50%, 50%); background: var(--paper) center / cover; border: 1px solid var(--white); outline: 1px solid var(--hair); cursor: pointer; }
.compass .dot:hover { outline-color: var(--ink); z-index: 2; }
.compass .you { position: absolute; width: 18px; height: 18px; margin: 0 0 -9px -9px; background: var(--sun); border: 2px solid var(--ink); z-index: 3; pointer-events: none; }
.compass-side .cw { font: 400 20px var(--head); margin: 0 0 10px; }
.near { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.near figure { margin: 0; background: var(--white); border: 1px solid var(--hair); }
.near img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.near figcaption { font-size: 12px; color: var(--grey); padding: 6px 8px; }

/* moodboard */
.drop.small { padding: 14px; }
.search { border: 1px solid var(--hair); background: var(--white); padding: 12px; margin: 0 0 12px; }
.srcs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.chip.small { padding: 6px 10px; font-size: 13px; }
.sbar { display: flex; gap: 8px; }
.sbar input { flex: 1; min-width: 0; }
.results { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; margin-top: 10px; max-height: 420px; overflow: auto; }
.res { position: relative; padding: 0; border: 1px solid var(--hair); background: var(--paper); cursor: pointer; aspect-ratio: 1; overflow: hidden; }
.res img { width: 100%; height: 100%; object-fit: cover; display: block; }
.res span { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(22,36,47,.82); color: var(--paper); font-size: 11px; padding: 3px 0; text-align: center; }
.res[aria-pressed=true] { outline: 3px solid var(--sun); outline-offset: -3px; }
.board-drop { min-height: 90px; display: flex; align-items: center; justify-content: center; text-align: center; }
.board-drop.over { background: var(--wash); border-color: var(--ink); }
.board { columns: 2 150px; column-gap: 10px; margin-top: 12px; }
.pin { break-inside: avoid; position: relative; margin: 0 0 10px; background: var(--white); border: 1px solid var(--hair); }
.pin.open { border-color: var(--ink); }
.pin-img { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.pin-img img { width: 100%; height: auto; display: block; }
.pin-img .ext { display: block; padding: 34px 0; font-weight: 600; color: var(--grey); }
.pin-tag { position: absolute; left: 6px; bottom: 6px; background: var(--paper); font-size: 11px; padding: 2px 6px; border-left: 2px solid var(--sun); }
.pin-st { position: absolute; left: 0; right: 0; top: 0; background: rgba(251,247,236,.9); font-size: 12px; padding: 4px 6px; }
.pin .x { position: absolute; top: 4px; right: 4px; background: var(--paper); border: 1px solid var(--hair); width: 26px; height: 26px; cursor: pointer; line-height: 1; }
.pin-like { padding: 10px; border-top: 1px solid var(--hair); }
.pin-like p { margin: 0 0 6px; font-size: 13px; font-weight: 600; }
.pin-like .chip { padding: 6px 8px; font-size: 12px; }
.pin-like input { margin-top: 8px; padding: 8px; font-size: 14px; width: 100%; }

/* round 3 */
.picked { align-items: center; }
.picked .p { cursor: default; padding-right: 2px; }
.picked .p .mv { border: 0; background: none; cursor: pointer; font-size: 15px; padding: 2px 6px; color: var(--grey); line-height: 1; }
.picked .p .mv:hover { color: var(--ink); }
.picked .swap { border: 1px solid var(--ink); background: var(--white); width: 32px; height: 32px; cursor: pointer; font-size: 16px; line-height: 1; }
.picked .swap:hover { background: var(--wash); }
.compass-wrap { grid-template-columns: minmax(0, 1fr) !important; }
.compass { max-width: 600px; margin: 22px auto; width: calc(100% - 52px); }
.compass-side .cw { text-align: center; }
@media (min-width: 620px) { .near { grid-template-columns: repeat(4, 1fr); } }
.like input { width: 100%; }

/* round 4: club story prompts, type it or say it, place photos */
.story-seg { margin: 6px 0 14px; max-width: 320px; }
.story-seg button { font-size: 15px; padding: 12px 6px; }
.prompts { display: flex; flex-wrap: wrap; gap: 8px; }
.pchip { background: var(--white); border: 1px solid var(--hair); padding: 10px 14px; cursor: pointer; font-size: 15px; text-align: left; font-family: inherit; color: var(--ink); }
.pchip::before { content: '+'; color: var(--sea); font-weight: 700; margin-right: 8px; }
.pchip:hover { border-color: var(--ink); }
.pcard { border: 1px solid var(--ink); background: var(--white); margin: 0 0 10px; }
.pcard .pq { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px 0; font-family: var(--head); font-size: 17px; box-shadow: inset 3px 0 0 var(--sun); }
.pcard .pq .x { flex: none; background: none; border: 0; color: var(--grey); cursor: pointer; font-size: 20px; line-height: 1; padding: 0 2px; }
.pcard textarea { border: 0; width: 100%; min-height: 72px; padding: 8px 12px 12px; font-size: 16px; resize: vertical; background: transparent; }
.pcard textarea:focus { outline: 2px solid var(--sea); outline-offset: -2px; }
.voice.big { padding: 26px 18px; }
.voice.big .talk { margin: 16px auto 0; max-width: 420px; text-align: center; }

/* round 5: rating worn kits */
.card .pic.worn { padding: 6px; }
.kept div { aspect-ratio: 1; }

/* 30 Oct 2026: skip buttons, current kit, moodboard on the thanks screen */
.skipbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border: 1px solid var(--hair); background: #fff; padding: 10px 12px; margin: 0 0 16px; }
.skipbar span { color: var(--grey); font-size: 14px; }
.keeprow { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 6px 0; border-top: 1px solid var(--hair); }
.keeprow > span { font-size: 14px; min-width: 120px; }
.keeprow .seg { margin: 0; }
/* the Icarus shirt loader for long waits (Jonny, 5 Nov 2026); short inline waits keep .spin */
.kitload { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 0; text-align: center; }
.kitload img { width: 96px; height: 96px; display: block; }
.kitload p { margin: 0; color: var(--grey); font-size: 14px; }
.done-board { margin: 26px 0 18px; }
.done-board .brief { margin-top: 12px; }
.curcard { border: 1px solid var(--ink); background: var(--white); margin: 12px 0 0; padding: 12px; }
.keys-hint { text-align: center; margin-top: 8px; }
@media (hover: none) { .keys-hint { display: none; } }
.seg-wrap { flex-wrap: wrap; }
.seg-wrap button { min-width: 33%; border-bottom: 1px solid var(--hair); }
@media (max-width: 560px) { .seg-wrap button { min-width: 100%; border-right: 0; } }
/* wider on big screens (Jonny, 30 Oct 2026: the website frame is wide); keep reading lines and the kit card comfortable */
.lede { max-width: 62ch; }
.deck, .deck-btns, .deck-count, #likeBox { max-width: 560px; margin-left: auto; margin-right: auto; }
/* 2 Nov 2026 (Jonny): the form back at 640px, but the banner art stays wide (up to 920px) on big screens */
.hero { width: min(920px, 100vw); margin-left: 50%; transform: translateX(-50%); }
/* designer's sketchpad product tiles (Jonny, 2 Nov 2026) */
.ptile.sketch { position: relative; padding-top: 30px; background-color: var(--white);
  background-image: linear-gradient(rgba(29,90,133,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(29,90,133,.08) 1px, transparent 1px);
  background-size: 12px 12px; background-position: -1px -1px; transition: background-color .15s; }
.ptile.sketch img { height: 72px; filter: url(#pencil); }
.ptile.sketch .tape { position: absolute; top: 7px; left: 50%; transform: translateX(-50%) rotate(-3deg); background: rgba(249,199,79,.6); color: var(--ink);
  font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; white-space: nowrap; border-left: 1px dashed rgba(22,36,47,.15); border-right: 1px dashed rgba(22,36,47,.15); }
.ptile.sketch .glove { position: absolute; left: 7px; top: 6px; width: 20px; height: 20px; fill: none; stroke: #4a5560; stroke-width: 1.2; transform: rotate(12deg); }
.ptile.sketch .tick { position: absolute; top: 6px; right: 6px; width: 20px; height: 20px; background: var(--ink); color: var(--paper); font-size: 13px; line-height: 20px; text-align: center; }
.ptile.sketch[aria-pressed=true] { background-color: #FBEBC5; border-color: var(--ink); box-shadow: inset 0 -3px 0 var(--sun); }

/* collar per kit, in the kit row (2 Nov 2026) */
.cstrip { margin-top: 12px; }
.cstrip-l { font-size: 13px; font-weight: 600; margin: 0 0 6px; }
.cscroll { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ctile { position: relative; display: flex; min-width: 0; flex-direction: column; align-items: stretch; gap: 3px; padding: 5px; border: 1px solid var(--hair); background: var(--white); cursor: pointer; text-align: center; font: inherit; color: var(--ink); }
.ctile img, .ctile .cq { width: 100%; aspect-ratio: 120 / 70; object-fit: cover; display: block; background: #2b2b2b; }
.ctile .cq { display: flex; align-items: center; justify-content: center; font-family: var(--head); font-size: 26px; color: #fff; }
.cmain { position: absolute; top: 3px; left: 3px; background: var(--sun, #F9C74F); color: var(--ink); font-size: 10px; font-weight: 700; padding: 1px 5px; letter-spacing: .02em; }
.cmain.also { background: var(--white); border: 1px solid var(--ink); font-weight: 600; }
.ptile.sketch .multi { display: flex; justify-content: center; align-items: center; gap: 4px; }
.ptile.sketch .multi .extras { display: flex; flex-direction: column; gap: 1px; }
.ptile.sketch .multi .extras img { height: 30px; }
.ctile b { font-size: 12px; font-weight: 600; line-height: 1.2; }
.ctile .tag { font-size: 11px; color: var(--muted, #56646F); }
.ctile[aria-pressed=true] { background: var(--wash); box-shadow: inset 0 -2px 0 var(--ink); border-color: var(--ink); }
.ctile:focus-visible { outline: 2px solid var(--sea, #1D5A85); outline-offset: 1px; }
.kitrow { align-items: flex-start; }
@media (max-width: 599px) { .cstrip { margin-left: -90px; } .ctile { padding: 4px 3px; } .ctile b { font-size: 11px; } .ctile .tag { font-size: 10px; } }

/* where each sponsor logo goes (2 Nov 2026) */
.logo-at { font-size: 13px; font-weight: 600; margin: 8px 0 6px; }
.file .chips button { font-size: 13px; padding: 6px 10px; }

/* Shorts, socks and collar intro: short paragraphs with room before the first kit (2 Nov 2026) */
.kit-intro { margin: -6px 0 22px; }
.kit-intro p { margin: 0 0 8px; }

/* On another site (public/embed.js): the frame is as tall as the form, so nothing is fixed to the frame's
   window. The header and Back / Next sit in the page; the brief card opens on the part of the form on screen. */
html.embedded .top { position: static; }
html.embedded main { padding-bottom: 24px; }
html.embedded .nav { position: static; }
html.embedded .drawer { position: absolute; inset: auto; left: 0; right: 0; top: var(--vis-top, 0px); height: var(--vis-h, 100vh); }
