/* Product look "Seekarte" (sport kit Segeln, breakfinder-design#5, product-status#69)
   on top of base.css and tokens.css. Light = Kartentisch, dark = Hundewache.
   Readability for older sailors: base 17 px, line height 1.55, nothing under 13 px,
   touch targets of at least 48 px, body text pairs at 7:1 (tokens). */

:root { --fs-xs: 13px; --fs-sm: 15px; --fs-md: 17px; --fs-lg: 20px; --fs-xl: 24px; --fs-2xl: 30px; --fs-3xl: clamp(30px, 5vw, 46px); }
body { font-size: 17px; line-height: 1.55; }
.eyebrow { font-size: 13px; letter-spacing: .1em; font-weight: 700; }
.note { font-size: 15px; }
.small { font-size: 15px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3 { overflow-wrap: break-word; }
.page { overflow-wrap: break-word; }
.back { margin: 0 0 8px; }
.back a { display: inline-flex; min-height: 48px; align-items: center; }

/* Frame */
.site-header .wordmark { font-size: 28px; }
.site-nav { font-size: 16px; gap: 0 4px; }
.site-nav a, .site-nav .link-button { display: inline-flex; align-items: center; min-height: 48px; padding: 0 8px; }
.site-nav .btn.small { min-height: 48px; padding: 0 16px; }
.site-footer { font-size: 15px; }
.priv { font-size: 14px; font-weight: 700; }

/* Controls */
.btn { min-height: 48px; padding: 12px 22px; font-size: 17px; font-weight: 700; }
.btn.small { min-height: 48px; padding: 8px 16px; font-size: 16px; }
.btn.danger { border-color: var(--event); color: var(--event); }
.chip { font-size: 15px; padding: 6px 14px; min-height: 44px; }
.chips { gap: 8px; margin: 12px 0; }
.link-button { min-height: 48px; padding: 0 4px; text-decoration: underline; text-underline-offset: 3px; }
.link-button.small { font-size: 15px; color: var(--muted); }
.tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: var(--radius-pill); border: 1px solid var(--line2); font-size: 13px; color: var(--muted); }
form.inline, form.button_to { display: inline; margin: 0; }
input[type="email"], input[type="password"], input[type="text"], input[type="number"], input[type="date"], input[type="datetime-local"], select, textarea {
  font: inherit; font-size: 17px; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line2); border-radius: var(--radius-sm);
  padding: 11px 12px; width: 100%; min-width: 0; min-height: 48px; }
input[type="file"] { font: inherit; font-size: 16px; min-height: 48px; max-width: 100%; }
input[type="checkbox"] { appearance: none; -webkit-appearance: none; width: 24px; height: 24px; flex: none; margin: 0; cursor: pointer;
  background: var(--bg); border: 2px solid var(--line); border-radius: 4px; display: inline-grid; place-content: center; }
input[type="checkbox"]::before { content: ""; width: 12px; height: 12px; transform: scale(0); background: var(--on-accent);
  clip-path: polygon(14% 44%, 0 59%, 40% 100%, 100% 17%, 84% 2%, 38% 68%); }
input[type="checkbox"]:checked { background: var(--accent); border-color: var(--accent); }
input[type="checkbox"]:checked::before { transform: scale(1); }
input[type="checkbox"]:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.form > *, .field { min-width: 0; }
.field { grid-template-columns: minmax(0, 1fr); }
/* iOS gives native date inputs an intrinsic width that ignores width:100% (knotlog#80) */
input[type="date"], input[type="datetime-local"] { -webkit-appearance: none; appearance: none; display: block; max-width: 100%; box-sizing: border-box; }
input[type="date"]::-webkit-date-and-time-value, input[type="datetime-local"]::-webkit-date-and-time-value { text-align: left; min-width: 0; }
.form { grid-template-columns: minmax(0, 1fr); }
.form .btn { max-width: 100%; }
input[type="file"] { width: 100%; }
.field label { font-size: 15px; }
.field.checkbox { min-height: 48px; }
.form-page { max-width: 720px; margin: 0 auto; }

/* Chart paper: fine graticule */
.chartpaper { background-color: var(--bg);
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--course) 10%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--course) 10%, transparent) 1px, transparent 1px);
  background-size: 56px 56px; }
main.chartpaper { max-width: none; }
main.chartpaper > .wl { max-width: 1180px; margin: 0 auto; }

/* Drawn scene: light and dark versions, the theme decides */
.scene, .art { display: block; overflow: hidden; }
.scene img, .art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.scene { width: 100%; border-radius: var(--radius-md); border: 1.5px solid var(--line); background: var(--sunk); margin: 0 0 var(--space-4); }
.scene.banner { aspect-ratio: 1200 / 240; }
.scene-dark { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .scene-light { display: none !important; }
  :root:not([data-theme="light"]) .scene-dark { display: block !important; }
}
:root[data-theme="dark"] .scene-light { display: none !important; }
:root[data-theme="dark"] .scene-dark { display: block !important; }
.logline, .flags { color: var(--ink); vertical-align: middle; flex: none; max-width: 100%; height: auto; }

/* Landing */
main.landing { width: 100%; }
.hero { position: relative; min-height: 560px; display: flex; align-items: flex-start; border-bottom: 1.5px solid var(--line); }
.hero .art { position: absolute; inset: 0; }
.hero .art img { object-position: center bottom; }
.hero .copy { position: relative; padding: 40px max(24px, calc((100% - 1180px) / 2 + 16px)); max-width: 680px; box-sizing: content-box; }
.hero h1 { font-family: var(--f-display); font-size: clamp(34px, 5.5vw, 56px); line-height: 1.05; margin: 8px 0 12px; color: var(--ink); }
.hero .copy p { color: var(--ink); font-size: 19px; margin: 0 0 18px; max-width: 46ch; }
.hero .paper { background: color-mix(in srgb, var(--bg) 90%, transparent); border-radius: var(--radius-md); padding: 20px 22px; border: 1px solid var(--line2); }
.landing-body { max-width: 1180px; margin: 0 auto; padding: 0 16px 48px; }
.web-sec { padding: 36px 8px; border-top: 1px solid var(--line2); }
.web-sec:first-child { border-top: 0; }
h2.big { font-family: var(--f-display); font-size: clamp(26px, 4vw, 36px); margin: 4px 0 16px; line-height: 1.15; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: start; }
.step .k { font-family: var(--f-hand); font-size: 36px; line-height: 1; color: var(--course); }
.step p { margin: 4px 0 0; }
.plain-list { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.price { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.price .card h3 { font-family: var(--f-display); font-size: 24px; margin: 0; }
.price .card .muted { font-size: 15px; margin: 4px 0; }
.price .card ul { margin: 8px 0 0; padding-left: 20px; font-size: 16px; }
.price .card.premium { border: 2px solid var(--accent); }
.watch-shots { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 24px 16px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.watch-shots li { text-align: center; }
.watch-shots img { width: 100%; max-width: 240px; height: auto; border-radius: 50%; box-shadow: var(--shadow); }
.watch-shots p { margin: 10px auto 0; max-width: 24ch; font-size: 15px; }
.watches { display: flex; flex-wrap: wrap; gap: 8px; }
.watches .chip.soon { border-style: dashed; }
.checkout-pending { margin: var(--space-5) 0; }

/* Proof preview: paper with watermark (always light, like the printed PDF) */
.pdf { position: relative; background: #FFFFFF; color: #14212B; border: 1px solid #C4BBA2; border-radius: 4px; padding: 16px 18px; font-size: 15px; box-shadow: var(--shadow); overflow: hidden; }
.pdf h3 { font-family: var(--f-display); font-size: 20px; margin: 0 0 4px; color: #14212B; }
.pdf .pdf-brand { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #8E1263; }
.pdf .pdf-notice { margin: 4px 0 10px; font-size: 14px; font-weight: 700; border: 1.5px solid #8E1263; padding: 6px 8px; border-radius: 3px; color: #14212B; }
.pdf table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pdf td, .pdf th { border-bottom: 1px solid #DDD6C2; padding: 6px 4px; text-align: left; color: #14212B; }
.pdf .r, table.log .r { text-align: right; }
.pdf .sig { margin-top: 18px; border-top: 1.5px solid #14212B; padding-top: 4px; width: 60%; font-size: 14px; }
.pdf .wm { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.pdf .wm span { transform: rotate(-24deg); font: 700 34px/1 var(--f-display); color: #A3176F; opacity: .2; letter-spacing: .08em; white-space: nowrap; }

/* Logbook */
.wl { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 900px) { .wl { grid-template-columns: minmax(0, 1fr) 300px; } }
.wl-side { display: grid; gap: 14px; align-content: start; }
.wl-side .card p { margin: 4px 0; }
.season { font-size: 17px; }
.season .hand { font-size: 40px; line-height: 1; }
table.log { font-size: 16px; }
table.log th { font-size: 13px; letter-spacing: .08em; padding: 10px 8px; }
table.log td { padding: 12px 8px; }
table.log td.n { font-family: var(--f-mono); white-space: nowrap; }
table.log a { display: inline-flex; min-height: 44px; align-items: center; }
table.log.compact td { padding: 8px; }
.empty h2 { margin-top: 0; }
.weather-list { display: none; list-style: none; margin: 0; padding: 0; gap: 10px; }
.weather-card { border: 1.5px solid var(--line2); border-radius: var(--radius-sm); background: var(--bg); padding: 10px 14px; }
.weather-card__time { margin: 0 0 6px; font-family: var(--f-mono); font-weight: 700; }
.weather-card dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; margin: 0; }
.weather-card dt { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.weather-card dd { margin: 0; font-size: 16px; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .weather-table { display: none; }
  .weather-list { display: grid; }
}

/* Voyage */
.facts { gap: 12px 32px; }
.facts dt { font-size: 13px; font-weight: 700; }
.facts dd { font-size: 22px; font-weight: 700; }
.ports { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 16px; }
.grid-voyage { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); margin: var(--space-4) 0; }
.grid-voyage .card h2 { font-size: 22px; }
.leg { position: relative; display: grid; grid-template-columns: 30px 1fr auto; gap: 4px 10px; align-items: start; padding: 12px 0; border-bottom: 1px dashed var(--line2); }
.leg:last-child { border-bottom: 0; }
.leg .k { font-family: var(--f-hand); font-size: 26px; line-height: 1; color: var(--course); text-align: center; }
.leg b { font-size: 17px; }
.leg .meta { font-size: 15px; color: var(--muted); }
.leg .stop { padding-left: 12px; border-left: 3px solid var(--course); margin-top: 4px; }
.leg-end { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.leg-link { color: inherit; text-decoration: none; }
.leg-link::after { content: ""; position: absolute; inset: 0; }
.leg-link:focus-visible { outline: 2px solid var(--event); outline-offset: 2px; }
.leg .chev { color: var(--muted); font-size: 22px; line-height: 1; }
.leg:hover { background: color-mix(in srgb, var(--course) 6%, transparent); }
.leg-delete { margin-top: var(--space-4); }
.proof-state { font-size: 14px; color: var(--muted); }
.proof-state.named { color: var(--course); font-weight: 700; }
.crew-edit { flex-basis: auto; }
.crew-edit[open] { flex-basis: 100%; }
.crew-edit summary { min-height: 36px; font-size: 15px; }
.crew-edit summary, .card details.more > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 600; color: var(--course); }
.crew-edit form, .crew-edit .button_to { display: inline-block; margin-right: 12px; }
.photos img { height: auto; }
.leg .n { font-family: var(--f-mono); font-weight: 700; white-space: nowrap; }
.crew-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; }
.crew-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 4px 0; border-bottom: 1px dashed var(--line2); }
.crew-list .who { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; margin-right: auto; }
.crew-list .who i { width: 10px; height: 10px; border-radius: 50%; background: var(--course); }
.crew-list small { font-weight: 400; color: var(--muted); font-size: 14px; }
.crew-form { margin-top: var(--space-3); }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-bottom: var(--space-3); }
.photos figure { margin: 0; }
.photos img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: var(--radius-sm); border: 1.5px solid var(--line); }
.notes { margin: var(--space-4) 0; }

/* Purchase moment and gates */
.moment { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; border-top: 1.5px solid var(--line2); padding: 12px 0 0; margin: var(--space-4) 0; }
.moment p { margin: 0; font-size: 16px; flex: 1 1 220px; }
.moment .btn, .moment .note { flex: 0 0 auto; margin: 0; }
.moment-note { border: 2px solid var(--accent); border-radius: var(--radius-md); background: var(--surface); padding: 16px; display: grid; gap: 8px; margin: var(--space-4) 0; }
.moment-note h2 { font-family: var(--f-display); font-size: 22px; margin: 0; }
.moment-note p { margin: 0; font-size: 16px; }
.unlocked-list { list-style: none; padding: 0; margin: 0 0 var(--space-4); display: grid; gap: 12px; }
.unlocked-list li { display: grid; gap: 2px; }
.gate { border: 1.5px dashed var(--line2); border-radius: var(--radius-md); background: var(--sunk); padding: 12px 14px; margin: 8px 0; }
.gate p { margin: 0 0 8px; }

/* Mile account */
.bigstat { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 4px 0 8px; }
.bigstat b { font-family: var(--f-display); font-size: 52px; line-height: 1; }
.progress { height: 16px; border-radius: 99px; background: var(--sunk); border: 1.5px solid var(--line2); overflow: hidden; margin: 12px 0; }
.progress i { display: block; height: 100%; background: var(--course); }
.stat-line { display: flex; justify-content: space-between; gap: 10px; font-size: 16px; padding: 10px 0; border-bottom: 1px dashed var(--line2); }
.stat-line:last-child { border-bottom: 0; }
.years { margin: var(--space-4) 0; }

@media (max-width: 640px) {
  .hero { flex-direction: column; min-height: 0; }
  .hero .art { position: relative; inset: auto; height: 220px; width: 100%; }
  .hero .copy { padding: 18px 16px 24px; max-width: none; }
  .hero .paper { background: transparent; padding: 0; border: 0; }
  .web-sec { padding: 28px 0; }
  .leg { grid-template-columns: 26px 1fr; }
  .leg-end { grid-column: 2; justify-content: flex-start; }
  .grid-voyage { gap: var(--space-3); margin: var(--space-3) 0; }
  .weather-card { padding: 6px 12px; }
  .weather-card__time { margin-bottom: 2px; }
  .weather-card dl { gap: 4px 12px; }
  .scene.banner { aspect-ratio: 358 / 120; }
}

/* Logbook table as stacked entries on phones */
table.log .unit { display: none; }
@media (max-width: 640px) {
  table.log.voyages thead { display: none; }
  table.log.voyages tr { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "date nm" "title title" "role ports";
    gap: 2px 12px; padding: 12px 0; border-bottom: 1px solid var(--line2); }
  table.log.voyages td { padding: 0; border: 0; }
  table.log.voyages .c-date { grid-area: date; }
  table.log.voyages .c-nm { grid-area: nm; }
  table.log.voyages .c-title { grid-area: title; font-size: 18px; font-weight: 700; }
  table.log.voyages .c-role { grid-area: role; color: var(--muted); }
  table.log.voyages .c-ports { grid-area: ports; justify-self: end; }
  table.log .unit { display: inline; }
}

/* The whole logbook row opens the voyage: the title link is stretched over the row (one focusable link, nothing nested). */
table.log.voyages tr.row-open { position: relative; }
table.log.voyages .row-link::after { content: ""; position: absolute; inset: 0; }
table.log.voyages tr.row-open:hover { background: color-mix(in srgb, var(--line2) 35%, transparent); }
table.log.voyages tr.row-open:has(.row-link:focus-visible) { outline: 2px solid var(--event); outline-offset: -2px; }

.btn.gpx-locked { display: inline-flex; align-items: center; gap: 8px; }

/* Language switch in the footer */
.locale-switch { display: inline-flex; gap: .75rem; }
.locale-switch a[aria-current="true"] { font-weight: 700; text-decoration: none; }

/* Legal pages (LegalController) and the links to them in footer, account and paywall. */
.legal { max-width: 70ch; }
.legal section { margin-top: var(--space-6); }
.legal h2 { font-size: var(--fs-xl); margin: 0 0 var(--space-2); }
.legal p, .legal li { line-height: 1.6; }
.legal ul { padding-left: 1.2em; }
.legal a { color: inherit; text-underline-offset: 3px; }
.legal mark.todo { background: var(--c-dusk-haze); color: var(--c-sea); padding: 0 .2em; border-radius: 3px; }
.legal-links { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: var(--fs-sm); }
.legal-links a { color: inherit; }
.watch-shots + .note .chip { height: auto; white-space: normal; }

/* Shop link in the footer (only while the merch shop is on) */
.site-footer .footer-shop { color: inherit; font-size: var(--fs-sm); text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 44px; }

/* Fest: the short leg form (Philwi/knotlog#35). Watch-like panel for the miles, the error sits at the field. */
.leg-form .field-error { margin: 2px 0 0; color: var(--event); font-weight: 700; font-size: 15px; }
.leg-form input[aria-describedby*="error"]:user-invalid, .leg-form .field:has(.field-error) input { border-color: var(--event); }
/* Voyage and sign-up forms: the same error at the field (Philwi/knotlog#49). */
.voyage-form .field-error, .auth .field-error { margin: 2px 0 0; color: var(--event); font-weight: 700; font-size: 15px; }
.voyage-form [aria-invalid="true"], .auth [aria-invalid="true"], .voyage-form [aria-describedby*="error"]:user-invalid, .auth [aria-describedby*="error"]:user-invalid { border-color: var(--event); }
.auth .field-error--client { display: none; }
.auth .field:has(input:user-invalid) .field-error--client { display: block; }
.leg-form .fest-miles { background: var(--watch-bg); color: var(--watch-ink); border-radius: var(--radius-md); padding: 14px; }
.leg-form .fest-miles label { color: var(--watch-accent); }
.leg-form .fest-miles input { background: transparent; color: var(--watch-ink); border-color: var(--watch-sea); font-size: 28px; font-weight: 700; }
.leg-form .fest-miles .note { color: var(--watch-muted); margin: 0; }
.leg-form .fest-miles .field-error { color: var(--watch-event); }
.leg-form .more summary { min-height: 48px; display: flex; align-items: center; cursor: pointer; font-weight: 600; }
.leg-form .fest-submit { width: 100%; min-height: 56px; font-size: 19px; }
.fest-btn { min-height: 56px; }

/* Mobile bottom tabs (Philwi/knotlog#44): web twin of the shell tabs, Fest as the anchor button in the middle. */
.tabbar { display: none; }
@media (max-width: 640px) {
  .site-nav-account { display: none; } /* the tab bar replaces the header links */
  .has-tabbar { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .has-tabbar .site-footer { padding-bottom: 18px; }
  .tabbar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: color-mix(in srgb, var(--surface) 96%, transparent);
    backdrop-filter: blur(10px); border-top: 1px solid var(--line2);
    padding: 6px max(8px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px)); }
  .tabbar ul { list-style: none; margin: 0 auto; padding: 0; max-width: 430px; display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; }
  .tabbar a { display: grid; justify-items: center; gap: 2px; min-height: 56px; padding-top: 6px; font-size: 13px; font-weight: 700; color: var(--muted); text-decoration: none; }
  .tabbar a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 3px 0 var(--course); }
  .tabbar a[aria-current="page"] svg { color: var(--course); }
  .tabbar .fab { width: 64px; height: 64px; margin: -26px auto 0; border-radius: 50%; background: var(--watch-event); color: var(--watch-on-event);
    display: grid; place-items: center; box-shadow: 0 8px 20px rgba(200, 53, 43, .35); border: 3px solid var(--bg); }
  .tabbar .fab-l { color: var(--event); box-shadow: none; }
}

.goal-chips { display: flex; flex-wrap: wrap; }
.goal-chips .chip[aria-pressed="true"] { background: var(--course); color: var(--paper, #fff); border-color: var(--course); font-weight: 700; }
.goal-checklist { list-style: none; margin: 0; padding: 0; }
.goal-checklist .stat-line { align-items: flex-start; }
.goal-card h3 { font-size: 17px; margin: 16px 0 4px; }

/* Skipper confirmation (knotlog#39) */
.check-code { letter-spacing: 0.06em; overflow-wrap: anywhere; }
.status.ok { color: var(--success, #1d6b3a); }
.status.warn { color: var(--danger, #8a2a1d); }
#confirmation input[readonly] { width: 100%; }
.legs-brief { padding-left: var(--space-4); margin: var(--space-3) 0 0; }
.page > .card + .card { margin-top: var(--space-4); }

/* Voyage map (MapLibre; maplibre-gl.css is linked by the voyage page only). */
.voyage-map-wrap { margin: var(--space-4) 0; display: grid; gap: 6px; }
.voyage-map { width: 100%; height: min(50vh, 380px); border: 1px solid var(--line, #d8d4c8); border-radius: 12px; overflow: hidden; background: #e9e6dc; }
.voyage-map-note { margin: var(--space-3) 0; }
.voyage-map-wrap .voyage-map-note { margin: 0; }
.harbour-marker { display: inline-block; padding: 3px 9px; border-radius: 999px; background: #fff; color: #1c2b2a; border: 2px solid #1f4e79; font: 600 13px/1.2 system-ui, sans-serif; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); white-space: nowrap; }
@media (prefers-color-scheme: dark) { .harbour-marker { background: #1c2b2a; color: #f3eedf; border-color: #7fb4e0; } }

/* Watches: /devices and /w (knotlog#43) */
.watch-pair { max-width: 640px; }
.watch-sketch { margin: 0 0 var(--space-4); display: grid; justify-items: center; text-align: center; gap: var(--space-2); }
.steps { list-style: none; padding: 0; margin: 0 0 var(--space-4); display: grid; gap: var(--space-3); }
.step { display: grid; grid-template-columns: 36px 1fr; gap: var(--space-3); align-items: start; }
.step p { margin: 0 0 var(--space-2); }
.step-no { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: var(--fs-lg); }
.code-form { margin-top: var(--space-3); display: grid; gap: var(--space-3); justify-items: start; }
.code-form .field { width: 100%; }
.code-input { width: 100%; max-width: 15ch; min-height: 56px; font-size: 28px; letter-spacing: .2em; text-transform: uppercase; text-align: center; }
.code-form .field:has(.field-error) .code-input { border-color: var(--event); }
.code-form .field-error { margin: 2px 0 0; color: var(--event); font-weight: 700; font-size: 15px; }
.paired { list-style: none; padding: 0; margin: 0 0 var(--space-4); display: grid; gap: var(--space-3); }
.paired-item { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-3); }
.paired-item p { margin: 4px 0 0; }
.paired-item .status { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.paired-item form { margin: 0; }
.test-session { margin-bottom: var(--space-4); }
.add-watch summary { cursor: pointer; font-weight: 600; min-height: 48px; display: flex; align-items: center; }
.add-watch .steps { margin-top: var(--space-3); }
.code-card { display: grid; gap: var(--space-4); justify-items: center; text-align: center; }
.code-card .code { font-size: 36px; letter-spacing: .2em; margin: 0; }
.code-card form { margin: 0; }
.step .chip { white-space: normal; border-radius: var(--radius-md); }
