/* Sudoku · freezy.games. Classical design system tokens and components (ported from
   the design hand-off), plus the Sudoku additions (--sx-*). Fonts are self-hosted
   (SIL OFL 1.1, see ../fonts/). */

@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(../fonts/cormorant-garamond-latin.woff2) format('woff2'); }
@font-face { font-family: 'Lora'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(../fonts/lora-latin.woff2) format('woff2'); }
@font-face { font-family: 'Lora'; font-style: italic; font-weight: 400; font-display: swap;
  src: url(../fonts/lora-italic-latin.woff2) format('woff2'); }
@font-face { font-family: 'Fredoka'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(../fonts/fredoka-latin.woff2) format('woff2'); }

:root {
  --color-bg: #f3f2f2;
  --color-surface: #eae9e9;
  --color-text: #201f1d;
  --color-accent: #b68235;
  --color-divider: color-mix(in srgb, #201f1d 16%, transparent);
  --color-neutral-300: #d7d3d3;
  --color-neutral-900: #2d2b2b;
  --color-accent-100: #fff3e4;
  --color-accent-400: #e1ad66;
  --color-accent-600: #a06f24;
  --color-accent-700: #7d5411;
  --color-accent-800: #5a3b0a;

  --font-heading: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "Lora", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-brand: "Fredoka", "Nunito", ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;

  --radius-md: 4px;
  --radius-lg: 7px;
  --shadow-lg: 0 12px 32px color-mix(in srgb, #2d2b2b 22%, transparent);

  --sx-sel: color-mix(in srgb, var(--color-accent) 22%, var(--color-bg));
  --sx-same: color-mix(in srgb, var(--color-accent) 11%, var(--color-bg));
  --sx-unit: color-mix(in srgb, var(--color-text) 6%, var(--color-bg));
  --sx-hair: var(--color-neutral-300);
  --sx-err: oklch(0.54 0.21 27);
  --sx-err-bg: color-mix(in srgb, var(--sx-err) 16%, var(--color-bg));
  --sx-t: 140ms;

  /* freezy.games wordmark */
  --fz-ink: #12161c; --fz-muted: #6b7a8c;
  --fz-1: oklch(0.66 0.17 25); --fz-2: oklch(0.74 0.16 60); --fz-3: oklch(0.80 0.15 95);
  --fz-4: oklch(0.70 0.14 160); --fz-5: oklch(0.64 0.13 240); --fz-6: oklch(0.58 0.15 300);

  --pad-top: max(16px, env(safe-area-inset-top, 0px));
  --pad-bot: max(18px, env(safe-area-inset-bottom, 0px));
  color-scheme: light;
}

/* Dark: device preference unless the player forced Light; or forced Dark. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-bg: #1d1b1a; --color-surface: #282625; --color-text: #ece7e4;
    --color-accent: #e1ad66; --color-accent-400: #9b7232; --color-accent-600: #facb8d;
    --color-accent-700: #f3c98f; --color-accent-100: #3a270d; --color-accent-800: #ffe3bf;
    --color-divider: color-mix(in srgb, #ece7e4 18%, transparent); --color-neutral-300: #3b3836;
    --color-neutral-900: #0c0b0b;
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, .55);
    --sx-err: oklch(0.70 0.19 25);
    --sx-err-bg: color-mix(in srgb, var(--sx-err) 24%, var(--color-bg));
    --sx-sel: color-mix(in srgb, var(--color-accent) 26%, var(--color-bg));
    --sx-same: color-mix(in srgb, var(--color-accent) 13%, var(--color-bg));
    --sx-unit: color-mix(in srgb, var(--color-text) 7%, var(--color-bg));
    --sx-hair: #3b3836;
    --fz-ink: #eef2f6; --fz-muted: #8d9bab;
    --fz-1: oklch(0.74 0.16 25); --fz-2: oklch(0.80 0.15 60); --fz-3: oklch(0.87 0.14 95);
    --fz-4: oklch(0.80 0.13 160); --fz-5: oklch(0.74 0.12 240); --fz-6: oklch(0.70 0.14 300);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --color-bg: #1d1b1a; --color-surface: #282625; --color-text: #ece7e4;
  --color-accent: #e1ad66; --color-accent-400: #9b7232; --color-accent-600: #facb8d;
  --color-accent-700: #f3c98f; --color-accent-100: #3a270d; --color-accent-800: #ffe3bf;
  --color-divider: color-mix(in srgb, #ece7e4 18%, transparent); --color-neutral-300: #3b3836;
  --color-neutral-900: #0c0b0b;
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, .55);
  --sx-err: oklch(0.70 0.19 25);
    --sx-err-bg: color-mix(in srgb, var(--sx-err) 24%, var(--color-bg));
  --sx-sel: color-mix(in srgb, var(--color-accent) 26%, var(--color-bg));
  --sx-same: color-mix(in srgb, var(--color-accent) 13%, var(--color-bg));
  --sx-unit: color-mix(in srgb, var(--color-text) 7%, var(--color-bg));
  --sx-hair: #3b3836;
  --fz-ink: #eef2f6; --fz-muted: #8d9bab;
  --fz-1: oklch(0.74 0.16 25); --fz-2: oklch(0.80 0.15 60); --fz-3: oklch(0.87 0.14 95);
  --fz-4: oklch(0.80 0.13 160); --fz-5: oklch(0.74 0.12 240); --fz-6: oklch(0.70 0.14 300);
  color-scheme: dark;
}
@media (prefers-reduced-motion: reduce) { :root { --sx-t: 0ms; } }

/* — base — */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; background: var(--color-bg); color: var(--color-text); }
body {
  font-family: var(--font-body); font-size: 15px; line-height: 1.55; font-weight: 400;
  overflow-x: hidden; -webkit-tap-highlight-color: transparent;
}
h1, h2, h3 { font-family: var(--font-heading); font-weight: 600; line-height: 1.12; letter-spacing: -0.015em; margin: 0; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }
.num { font-variant-numeric: lining-nums tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ic { display: block; flex: none; }

/* — Classical components — */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; text-decoration: none;
  font-family: var(--font-heading); font-weight: 600; font-size: 14px; line-height: 1.2; color: var(--color-text);
  background: transparent; border: 1px solid transparent;
  padding: 9.2px 16.6px; border-radius: var(--radius-md); min-height: 44px;
  transition: background-color var(--sx-t);
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { color: var(--color-accent); border-color: var(--color-accent); }
.btn-primary:hover:not(:disabled) { background: color-mix(in srgb, var(--color-accent) 12%, transparent); }
.btn-primary:active:not(:disabled) { background: color-mix(in srgb, var(--color-accent) 22%, transparent); }
.btn-secondary { border-color: var(--color-divider); }
.btn-secondary:hover:not(:disabled) { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.btn-secondary:active:not(:disabled) { background: color-mix(in srgb, var(--color-text) 14%, transparent); }
.btn-ghost { color: var(--color-accent); padding-inline: 14px; }
.btn-ghost:hover { background: color-mix(in srgb, var(--color-accent) 10%, transparent); }
.btn-ghost:active { background: color-mix(in srgb, var(--color-accent) 18%, transparent); }
.btn-icon { width: 44px; height: 44px; padding: 0; min-height: 0; color: var(--color-text); }
.btn-icon:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }

.seg { display: flex; overflow: hidden; border: 1px solid var(--color-divider); border-radius: var(--radius-md); }
.seg-opt {
  position: relative; flex: 1; display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 42px; padding: 6px 4px; font-size: 12.5px; line-height: 1.25; cursor: pointer;
}
.seg-opt + .seg-opt { border-left: 1px solid var(--color-divider); }
.seg-opt input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.seg-opt.on { color: var(--color-accent); box-shadow: inset 0 0 0 1px var(--color-accent); }
.seg-opt:not(.on):hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.seg-opt:has(input:focus-visible) { outline: 2px solid var(--color-accent); outline-offset: -2px; }

.card {
  display: flex; flex-direction: column; gap: 4px; padding: 14px 16px;
  border-radius: var(--radius-md); background: transparent; border: 1px solid var(--color-accent);
  text-align: left; cursor: pointer; width: 100%;
}
.card:hover { background: color-mix(in srgb, var(--color-accent) 8%, transparent); }
.kicker { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-accent-700); line-height: 1.4; }
.card-title { font-family: var(--font-heading); font-weight: 600; font-size: 20px; line-height: 1.2; }
.card-meta { font-size: 11px; color: color-mix(in srgb, var(--color-text) 50%, transparent); }

.dialog-backdrop {
  position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; padding: 18.4px;
  background: color-mix(in srgb, var(--color-neutral-900) 50%, transparent);
}
.dialog {
  width: min(440px, 100%); display: flex; flex-direction: column; gap: 13.8px;
  padding: 18.4px; border-radius: var(--radius-lg);
  background: var(--color-surface); box-shadow: var(--shadow-lg); border: 1px solid var(--color-divider);
}
.dialog-title { font-family: var(--font-heading); font-weight: 600; font-size: 24px; line-height: 1.15; }
.dialog-body { font-size: 14px; opacity: 0.85; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9.2px; margin-top: 9.2px; }

/* — app shell: one phone-width column, centred — */
.app { position: relative; width: 100%; max-width: 420px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; }
.view { min-height: 100vh; min-height: 100dvh; }

/* — Game — */
/* The game screen shares out its height so the grid gets as much as possible.
   On short screens (phone browsers with toolbars) the other parts give way in
   order: padding first, then the toolbar, then the keypad. Each part has a
   floor that keeps 44px touch targets; on tall screens they grow back to the
   design sizes and the grid is capped by the width instead. */
.play {
  --p-top: max(6px, env(safe-area-inset-top, 0px));
  --p-bot: max(8px, env(safe-area-inset-bottom, 0px));
  --h-head: clamp(44px, 6.5dvh, 54px);
  --m-grid: clamp(4px, 1dvh, 10px);
  --h-status: clamp(24px, 4.5dvh, 40px);
  --h-tool: clamp(44px, 6.5dvh, 56px);
  --m-keys: clamp(4px, 1dvh, 10px);
  --h-key: clamp(44px, 6.6dvh, 52px);
  --g-key: clamp(6px, 1dvh, 8px);
  display: flex; flex-direction: column; padding: var(--p-top) 12px var(--p-bot);
}
.g-head { display: grid; grid-template-columns: 96px minmax(0, 1fr) 96px; align-items: center; height: var(--h-head); flex: none; }
.g-title {
  display: flex; flex-direction: column; align-items: center; background: none; border: 0; cursor: pointer;
  padding: 2px 0; min-height: 44px; justify-content: center; border-radius: var(--radius-md); min-width: 0;
}
.g-level { font-family: var(--font-heading); font-weight: 600; font-size: 23px; line-height: 1.1; }
.g-sub { font-size: 11.5px; line-height: 1.4; color: color-mix(in srgb, var(--color-text) 64%, transparent); font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.g-right { display: flex; align-items: center; justify-content: flex-end; gap: 2px; }
.g-timer { font-size: 13px; font-variant-numeric: lining-nums tabular-nums; color: color-mix(in srgb, var(--color-text) 70%, transparent); padding-right: 2px; }

.grid {
  --rest: calc(var(--p-top) + var(--p-bot) + var(--h-head) + var(--m-grid) + var(--h-status)
    + var(--h-tool) + var(--m-keys) + 2 * var(--h-key) + var(--g-key));
  position: relative; flex: none; margin: var(--m-grid) auto 0;
  width: min(100%, max(240px, calc(100vh - var(--rest))));
  width: min(100%, max(240px, calc(100dvh - var(--rest))));
  aspect-ratio: 1; border: 1.5px solid var(--color-text);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 1.5px; background: var(--color-text);
}
.box { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--sx-hair); }
.cell {
  position: relative; display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 0;
  padding: 0; margin: 0; border: 0; border-radius: 0; background: var(--color-bg); cursor: pointer;
  transition: background-color var(--sx-t); user-select: none; -webkit-user-select: none; touch-action: manipulation;
}
.cell:focus-visible { outline: 2px solid var(--color-accent); outline-offset: -2px; z-index: 1; }
.cell.given { cursor: default; }
.cell.unit { background: var(--sx-unit); }
.cell.same { background: var(--sx-same); box-shadow: inset 0 0 0 1px var(--color-accent-400); }
.cell.sel { background: var(--sx-sel); box-shadow: inset 0 0 0 2px var(--color-accent); }
.cell .d {
  font-family: var(--font-body); font-size: 24px; line-height: 1; font-variant-numeric: lining-nums tabular-nums;
  font-weight: 400; color: var(--color-accent-700);
  text-decoration-thickness: 1.5px; text-underline-offset: 5px;
}
.cell.given .d { font-weight: 600; color: var(--color-text); }
/* Errors: a red that sits well away from the gold accent, always paired with a
   shape cue (wavy underline = wrong, dotted = clashes with another digit) and a
   red tint on the player's cell, which wins over the highlight tints. */
.cell.wrong:not(.given), .cell.conflict:not(.given) { background: var(--sx-err-bg); }
.cell.wrong .d { color: var(--sx-err); text-decoration-line: underline; text-decoration-style: wavy; text-decoration-color: var(--sx-err); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.cell.conflict:not(.wrong) .d { text-decoration-line: underline; text-decoration-style: dotted; text-decoration-color: var(--sx-err); text-decoration-thickness: 2.5px; text-underline-offset: 5px; }
.cell.conflict:not(.given) .d { color: var(--sx-err); }
.cell.ghost .d { color: var(--color-accent); font-style: italic; font-weight: 400; }
.notes {
  position: absolute; inset: 2px; display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); pointer-events: none;
}
.notes span {
  display: flex; align-items: center; justify-content: center; font-size: 10.5px; line-height: 1;
  font-variant-numeric: lining-nums tabular-nums; color: color-mix(in srgb, var(--color-text) 68%, transparent);
}
.notes span.m { color: var(--color-accent-700); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.overlay { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.rect { position: absolute; border: 2px solid var(--color-accent); border-radius: 2px; pointer-events: none; z-index: 2; }
.rect.dashed { border-style: dashed; }

.status {
  min-height: var(--h-status); display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 0 12px; font-size: 12.5px; line-height: 1.35; font-style: italic;
  color: color-mix(in srgb, var(--color-text) 70%, transparent); text-wrap: pretty; flex: none;
}

.toolbar { display: flex; justify-content: space-evenly; align-items: center; flex: none; }
.tb {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  width: 58px; height: var(--h-tool); padding: 0; font-family: var(--font-body); font-weight: 400; font-size: 11px; line-height: 1.2;
  color: var(--color-text); background: transparent; border: 1px solid transparent; border-radius: var(--radius-md); cursor: pointer;
  transition: background-color var(--sx-t);
}
.tb:hover:not(:disabled) { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.tb:disabled { opacity: 0.45; cursor: not-allowed; }
.tb.on { color: var(--color-accent-700); border: 1px dashed var(--color-accent); }
.tb.on:hover { background: color-mix(in srgb, var(--color-accent) 10%, transparent); }

.keypad { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--g-key); margin-top: var(--m-keys); flex: none; }
.key {
  position: relative; height: var(--h-key); display: flex; align-items: center; justify-content: center; padding: 0;
  border-radius: var(--radius-md); border: 1px solid var(--color-divider); background: transparent; color: var(--color-text);
  font-family: var(--font-body); font-size: 26px; line-height: 1; font-variant-numeric: lining-nums tabular-nums;
  cursor: pointer; touch-action: manipulation; transition: font-size var(--sx-t), background-color var(--sx-t);
}
.key:hover { background: color-mix(in srgb, var(--color-text) 6%, transparent); }
.keypad.notes-mode .key.digit { border: 1px dashed var(--color-accent); font-size: 19px; font-style: italic; color: var(--color-accent-700); }
.key.armed, .keypad.notes-mode .key.armed { border: 2px solid var(--color-accent); background: var(--sx-same); color: var(--color-accent-700); }
.key.used { opacity: 0.35; }
.key .left {
  position: absolute; top: 4px; right: 6px; font-size: 10px; font-style: normal; line-height: 1;
  color: color-mix(in srgb, var(--color-text) 55%, transparent); font-variant-numeric: lining-nums tabular-nums;
}

/* — Hint sheet — */
.hint-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  background: var(--color-surface); border-top: 1px solid var(--color-divider); border-radius: 14px 14px 0 0;
  box-shadow: var(--shadow-lg); padding: 18px 20px max(26px, env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; gap: 6px; min-height: 236px;
}
.hint-top { display: flex; align-items: center; justify-content: space-between; }
.dots { display: flex; gap: 5px; }
.dots span { width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--color-accent); }
.dots span.f { background: var(--color-accent); }
.hint-title { font-family: var(--font-heading); font-weight: 600; font-size: 23px; line-height: 1.15; }
.hint-body { margin: 0; font-size: 14px; line-height: 1.5; text-wrap: pretty; }
.hint-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: auto; padding-top: 12px; }

/* — Completion — */
.done-dialog { gap: 6px; padding: 26px 24px 20px; }
.done-big { font-family: var(--font-heading); font-weight: 400; font-size: 44px; line-height: 1; }
.done-rows { border-top: 1px solid var(--color-divider); margin-top: 12px; }
.done-rows div { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--color-divider); font-size: 13.5px; }
.cd { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.cd-track { position: relative; height: 1px; background: var(--color-divider); overflow: hidden; }
.cd-bar { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: var(--color-accent); }
.cd-bar.run { width: 0%; transition: width 5s linear; }
.cd-cap { font-size: 11.5px; font-style: italic; color: color-mix(in srgb, var(--color-text) 62%, transparent); }

/* — Levels — */
.levels { display: flex; flex-direction: column; padding: var(--pad-top) 20px max(24px, env(safe-area-inset-bottom, 0px)); }
.l-top { display: flex; align-items: center; justify-content: space-between; height: 54px; }
.l-top .btn-icon { margin-right: -8px; }
.wordmark {
  display: inline-flex; flex-direction: column; gap: 3px; text-decoration: none; color: var(--fz-ink);
  font-family: var(--font-brand); font-weight: 600; font-size: 21px; line-height: 1; padding: 10px 0; margin: -10px 0;
  border-radius: var(--radius-md);
}
.wordmark .tld { font-weight: 400; font-size: 0.47em; color: var(--fz-muted); margin-left: 1px; }
.wordmark .strip { display: flex; gap: 1px; width: 52px; }
.wordmark .strip span { flex: 1; height: 3px; }
.l-title { font-family: var(--font-heading); font-size: 56px; font-weight: 400; margin: 30px 0 8px; line-height: 1; }
.l-intro { margin: 0 0 26px; font-size: 14px; line-height: 1.5; color: color-mix(in srgb, var(--color-text) 72%, transparent); text-wrap: pretty; }
.l-list { margin-top: 22px; border-top: 1px solid var(--color-divider); }
.l-row {
  width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 2px 12px;
  padding: 15px 2px 14px; background: none; border: 0; border-bottom: 1px solid var(--color-divider);
  text-align: left; cursor: pointer; transition: background-color var(--sx-t);
}
.l-row:hover { background: color-mix(in srgb, var(--color-text) 4%, transparent); }
.l-row:disabled { cursor: progress; }
.l-name { font-family: var(--font-heading); font-weight: 600; font-size: 25px; line-height: 1.1; }
.l-count { font-size: 12.5px; font-variant-numeric: lining-nums tabular-nums; color: color-mix(in srgb, var(--color-text) 70%, transparent); }
.l-desc { grid-column: 1 / -1; font-size: 12.5px; font-style: italic; color: color-mix(in srgb, var(--color-text) 66%, transparent); }
.l-track { grid-column: 1 / -1; position: relative; height: 1px; margin-top: 10px; background: var(--color-divider); }
.l-fill { position: absolute; left: 0; top: -0.5px; height: 2px; background: var(--color-accent); }
.l-msg { margin: 14px 0 0; font-size: 12.5px; font-style: italic; color: var(--sx-err); min-height: 1em; }

/* — Settings — */
.settings {
  position: fixed; inset: 0; z-index: 6; background: var(--color-bg); overflow-y: auto; overscroll-behavior: contain;
}
.settings-in { max-width: 420px; margin: 0 auto; padding: var(--pad-top) 18px max(30px, env(safe-area-inset-bottom, 0px)); }
.s-head { display: flex; align-items: center; justify-content: space-between; height: 54px; }
.s-head h2 { font-size: 27px; }
.s-head .btn-icon { margin-right: -8px; }
.s-row { padding: 13px 0 14px; border-top: 1px solid var(--color-divider); display: flex; flex-direction: column; gap: 8px; }
.s-label { font-size: 13.5px; }
.s-help { font-size: 12px; font-style: italic; line-height: 1.45; color: color-mix(in srgb, var(--color-text) 66%, transparent); text-wrap: pretty; }
.s-help:empty { display: none; }
.s-actions { display: flex; gap: 8px; flex-wrap: wrap; }
fieldset.s-row { margin: 0; min-width: 0; border-left: 0; border-right: 0; border-bottom: 0; }
fieldset.s-row legend { padding: 0; float: left; width: 100%; }
fieldset.s-row legend + * { clear: both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
}
