/* KeyGenerators: Cobalt design system */

@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk-wght-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Martian Mono";
  src: url("../fonts/martian-mono-std.woff2") format("woff2");
  font-weight: 100 800;
  font-stretch: 75% 112.5%;
  font-display: swap;
}

/* ---------- Tokens ---------- */

:root {
  --bg: #F6F5F0;
  --surface: #FFFFFF;
  --surface-2: #EEEDE6;
  --line: #DDDBD1;
  --line-strong: #C7C4B8;
  --ink: #0F1533;
  --ink-2: #3A4160;
  --muted: #61677F;
  --accent: #2340E8;
  --accent-hover: #1A31C4;
  --accent-soft: #E4E8FD;
  --on-accent: #FFFFFF;
  --danger: #B4331F;
  --danger-soft: #F7E3DE;
  --good: #1F6B43;
  --code-bg: #0F1533;
  --code-ink: #E8EBF7;
  --code-muted: #9AA2C2;
  --shadow: 0 1px 2px rgba(15, 21, 51, .05), 0 18px 40px -18px rgba(15, 21, 51, .22);
  --shadow-pop: 0 24px 60px -20px rgba(15, 21, 51, .35);
  --header-bg: rgba(246, 245, 240, .86);

  --font-sans: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Martian Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --r-control: 10px;
  --r-panel: 16px;
  --r-chip: 999px;

  --s-1: 4px;
  --s-2: 8px;
  --s-3: 16px;
  --s-4: 24px;
  --s-5: 40px;
  --s-6: 72px;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0C1024;
    --surface: #141A33;
    --surface-2: #1B2241;
    --line: #2A3256;
    --line-strong: #3A4470;
    --ink: #E8EBF7;
    --ink-2: #C3C9E0;
    --muted: #9AA2C2;
    --accent: #8193FF;
    --accent-hover: #9AA9FF;
    --accent-soft: #1F2754;
    --on-accent: #0B0F22;
    --danger: #FF8A75;
    --danger-soft: #3A1E22;
    --good: #6FD69E;
    --code-bg: #090C1C;
    --code-ink: #E8EBF7;
    --code-muted: #8790B5;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 40px -18px rgba(0, 0, 0, .6);
    --shadow-pop: 0 24px 60px -20px rgba(0, 0, 0, .7);
    --header-bg: rgba(12, 16, 36, .86);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0C1024;
  --surface: #141A33;
  --surface-2: #1B2241;
  --line: #2A3256;
  --line-strong: #3A4470;
  --ink: #E8EBF7;
  --ink-2: #C3C9E0;
  --muted: #9AA2C2;
  --accent: #8193FF;
  --accent-hover: #9AA9FF;
  --accent-soft: #1F2754;
  --on-accent: #0B0F22;
  --danger: #FF8A75;
  --danger-soft: #3A1E22;
  --good: #6FD69E;
  --code-bg: #090C1C;
  --code-ink: #E8EBF7;
  --code-muted: #8790B5;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 40px -18px rgba(0, 0, 0, .6);
  --shadow-pop: 0 24px 60px -20px rgba(0, 0, 0, .7);
  --header-bg: rgba(12, 16, 36, .86);
  color-scheme: dark;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
:where(h1, h2, h3, h4, h5, p, ul, ol, dl, dd, figure, blockquote, pre) { margin: 0; }
:where(ul, ol) { padding: 0; }
:where(h1, h2, h3, h4) { font-weight: 750; line-height: 1.12; letter-spacing: -0.015em; color: var(--ink); }
:where(a) { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
:where(a:hover) { color: var(--accent-hover); }
:where(img, svg) { display: block; max-width: 100%; }
:where(button, input, select, textarea) { font: inherit; color: inherit; }
:where(button) { cursor: pointer; }
:where(code, pre, kbd) { font-family: var(--font-mono); font-stretch: 87.5%; }
:where(:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--on-accent); }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--accent); color: var(--on-accent); border-radius: var(--r-control); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; color: var(--on-accent); }
.muted { color: var(--muted); }
kbd { display: inline-block; min-width: 1.6em; padding: 1px 6px; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 6px; font-size: .78em; line-height: 1.5; text-align: center; color: var(--ink-2); background: var(--surface); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.site-header__inner { display: flex; align-items: center; gap: var(--s-4); min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 780; font-size: 1.1rem; letter-spacing: -0.02em; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__tld { color: var(--muted); font-weight: 500; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 2px; list-style: none; }
.nav a { display: block; padding: 8px 12px; border-radius: var(--r-control); color: var(--ink-2); font-weight: 560; font-size: .95rem; text-decoration: none; }
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav .current-menu-item > a, .nav .current-menu-ancestor > a, .nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
.header-tools { display: flex; align-items: center; gap: 6px; }
.ibtn.nav-toggle { display: none; }
.theme-toggle .i.i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i.i-sun { display: inline-flex; }
:root[data-theme="dark"] .theme-toggle .i.i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i.i-sun { display: inline-flex; }
  :root:not([data-theme="light"]) .theme-toggle .i.i-moon { display: none; }
}

@media (max-width: 900px) {
  .site-header__inner { flex-wrap: wrap; gap: var(--s-2); }
  .header-tools { margin-left: auto; }
  .ibtn.nav-toggle { display: inline-flex; }
  .nav { order: 3; width: 100%; margin: 0; display: none; padding-bottom: var(--s-3); }
  .site-header.is-open .nav { display: block; }
  .nav ul { flex-direction: column; }
  .nav a { padding: 12px; font-size: 1rem; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-control);
  background: var(--surface);
  color: var(--ink);
  font-weight: 620;
  font-size: .95rem;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color .15s, border-color .15s, color .15s, transform .08s;
}
.btn:hover { border-color: var(--ink-2); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.btn--ghost { background: transparent; }
.btn--sm { min-height: 34px; padding: 0 12px; font-size: .88rem; }
.btn.is-done { border-color: var(--good); color: var(--good); }
.btn .i, .ibtn .i { display: inline-flex; }

.ibtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: none;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--r-control);
  background: transparent;
  color: var(--muted);
  transition: background-color .15s, color .15s;
}
.ibtn:hover { background: var(--surface-2); color: var(--ink); }
.ibtn:disabled { opacity: .35; cursor: default; background: transparent; }
.ibtn.is-done { color: var(--good); }
.ibtn--outline { border-color: var(--line-strong); }
.link-btn { padding: 0; border: 0; background: none; color: var(--muted); font-size: .9rem; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--ink); }

/* ---------- Chips ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-chip);
  background: var(--surface);
  color: var(--ink-2);
  font-size: .9rem;
  font-weight: 560;
  line-height: 1.2;
  transition: border-color .15s, background-color .15s, color .15s;
}
.chip:hover { border-color: var(--line-strong); color: var(--ink); }
.chip[aria-checked="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }

/* ---------- Meter ---------- */

.meter { display: flex; align-items: center; gap: 12px; min-width: 0; }
.meter__bars { display: inline-grid; grid-template-columns: repeat(5, 18px); gap: 3px; flex: none; }
.meter__bars i { height: 6px; border-radius: 3px; background: var(--line); }
.meter__bars i.on { background: var(--accent); }
.meter[data-tone="weak"] .meter__bars i.on { background: var(--danger); }
.meter__text { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: .92rem; color: var(--muted); }
.meter__text strong { color: var(--ink); font-weight: 700; }
.meter[data-tone="weak"] .meter__text strong { color: var(--danger); }
.meter--sm { gap: 8px; }
.meter--sm .meter__bars { grid-template-columns: repeat(5, 12px); gap: 2px; }
.meter--sm .meter__bars i { height: 5px; }
.meter--sm .meter__text { font-size: .82rem; }

/* ---------- Keys ---------- */

.keys { display: grid; gap: 8px; }
.key {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 6px 6px 14px;
  border-radius: var(--r-control);
  background: var(--surface-2);
  min-width: 0;
}
.key__val {
  flex: 1;
  min-width: 0;
  padding: 7px 0;
  font-size: .9rem;
  line-height: 1.55;
  word-break: break-all;
  overflow-wrap: anywhere;
  color: var(--ink);
  white-space: pre-wrap;
  user-select: all;
  -webkit-user-select: all;
}
.key__val:focus-visible { outline-offset: 4px; }
pre.key__val { overflow-x: auto; white-space: pre; word-break: normal; overflow-wrap: normal; user-select: text; -webkit-user-select: text; font-size: .82rem; }
.key--block { align-items: flex-start; }
.keys.is-fresh .key__val, .card__keys.is-fresh .key__val, .quick__val.is-fresh { animation: kg-fresh .32s ease-out; }
@keyframes kg-fresh { from { opacity: .25; } to { opacity: 1; } }

.keyset { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-control); background: var(--surface); }
.keys .keyset + .keyset { margin-top: 4px; }
.keyset__field { display: grid; gap: 6px; min-width: 0; }
.keyset__head { display: flex; align-items: center; gap: 8px; min-height: 34px; }
.keyset__label { font-size: .86rem; font-weight: 680; color: var(--ink-2); }
.keyset__actions { display: flex; gap: 2px; margin-left: auto; }
.keyset .key__val { padding: 10px 12px; border-radius: 8px; background: var(--surface-2); }
.keyset .key__val--block { max-height: 260px; overflow: auto; }
.keyset--compact { padding: 0; border: 0; background: none; gap: 6px; }
.keyset--compact .keyset__head { min-height: 28px; }
.keyset--compact .key__val { font-size: .8rem; padding: 8px 10px; }

.tag { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: var(--r-chip); background: var(--surface-2); color: var(--muted); font-size: .74rem; font-weight: 650; letter-spacing: .02em; white-space: nowrap; }
.tag--secret { background: var(--danger-soft); color: var(--danger); }

/* ---------- Form controls ---------- */

.field { display: grid; gap: 8px; min-width: 0; }
.field__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.field__label { font-size: .88rem; font-weight: 650; color: var(--ink-2); }
.field__num {
  width: 68px;
  padding: 5px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: .88rem;
  text-align: center;
}
.input, .select {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-control);
  background: var(--surface);
  color: var(--ink);
  font-size: .95rem;
}
.input::placeholder { color: var(--muted); opacity: .85; }
.input:focus, .select:focus, .field__num:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
.input--mono { font-family: var(--font-mono); font-stretch: 87.5%; font-size: .9rem; }
.input--lg { min-height: 52px; font-size: 1.05rem; }
.input--count { width: 110px; font-family: var(--font-mono); font-stretch: 87.5%; }
.textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.select { appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 48px; }
.input-wrap .ibtn { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); }

.range { --p: 50%; width: 100%; height: 22px; margin: 0; background: transparent; appearance: none; -webkit-appearance: none; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(to right, var(--accent) var(--p), var(--line) var(--p)); }
.range::-moz-range-track { height: 6px; border-radius: 3px; background: var(--line); }
.range::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--accent); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -7px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); box-shadow: 0 1px 3px rgba(15, 21, 51, .25); }
.range::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); }
.range:focus-visible { outline: none; }
.range:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--accent); outline-offset: 2px; }

.switch { position: relative; display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: .93rem; color: var(--ink); }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track { position: relative; flex: none; width: 38px; height: 22px; border-radius: 11px; background: var(--line-strong); transition: background-color .15s; }
.switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 2px rgba(15, 21, 51, .3); transition: transform .15s; }
.switch input:checked + .switch__track { background: var(--accent); }
.switch input:checked + .switch__track::after { transform: translateX(16px); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--accent); outline-offset: 2px; }

.seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: var(--r-control); background: var(--surface-2); }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg label { flex: 1 1 auto; padding: 7px 10px; border-radius: 7px; font-size: .86rem; font-weight: 600; text-align: center; color: var(--ink-2); cursor: pointer; white-space: nowrap; transition: background-color .15s, color .15s; }
.seg label:hover { color: var(--ink); }
.seg input:checked + label { background: var(--surface); color: var(--accent); box-shadow: 0 1px 2px rgba(15, 21, 51, .12); }
.seg input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 1px; }

.stepper { display: inline-flex; align-items: center; gap: 2px; padding: 3px 3px 3px 12px; border: 1px solid var(--line); border-radius: var(--r-control); background: var(--surface); }
.stepper__label { font-size: .86rem; color: var(--muted); margin-right: 4px; }
.stepper__val { min-width: 26px; text-align: center; font-family: var(--font-mono); font-stretch: 87.5%; font-size: .88rem; }
.count-input { display: inline-flex; align-items: center; gap: 10px; }

/* ---------- Tool panel ---------- */

.tool {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.tool__output { padding: var(--s-4); display: grid; gap: var(--s-3); min-width: 0; }
.tool__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; }
.tool__meter { min-width: 0; }
.tool__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tool__options { display: grid; gap: 20px; align-content: start; padding: var(--s-4); border-left: 1px solid var(--line); background: color-mix(in srgb, var(--surface-2) 45%, var(--surface)); min-height: 100%; }
.tool__options-title { font-size: 1rem; font-weight: 720; }
.tool__options .link-btn { justify-self: start; }
.tool__status { font-size: .92rem; color: var(--muted); min-height: 0; }
.tool__status:empty { display: none; }
.tool__status.is-error { color: var(--danger); }
.tool--solo, .tool--transform { grid-template-columns: minmax(0, 1fr); }
.tool.is-busy .btn--primary { opacity: .75; }
.tool__extra:empty { display: none; }
.tool__extra { margin-top: var(--s-4); }
.bulk { width: 100%; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-control); background: var(--surface-2); color: var(--ink); font-family: var(--font-mono); font-stretch: 87.5%; font-size: .85rem; line-height: 1.6; resize: vertical; }

.skeleton { display: grid; gap: 10px; }
.skeleton i { display: block; height: 46px; border-radius: var(--r-control); background: linear-gradient(90deg, var(--surface-2), color-mix(in srgb, var(--surface-2) 40%, var(--surface)), var(--surface-2)); background-size: 200% 100%; animation: kg-shimmer 1.2s linear infinite; }
.skeleton i:nth-child(2) { height: 120px; }
@keyframes kg-shimmer { to { background-position: -200% 0; } }

@media (max-width: 860px) {
  .tool { grid-template-columns: minmax(0, 1fr); }
  .tool__options { border-left: 0; border-top: 1px solid var(--line); }
  .tool__output, .tool__options { padding: var(--s-3); }
}
@media (max-width: 560px) {
  .tool__head { align-items: stretch; }
  .tool__actions { width: 100%; }
  .tool__actions .btn--primary { flex: 1; }
}

/* Extras */
.extra { display: grid; gap: 14px; padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--surface); }
.extra--split { grid-template-columns: minmax(0, 1fr) 240px; align-items: start; gap: var(--s-4); }
.extra__main { display: grid; gap: 14px; min-width: 0; }
.extra__title { font-size: 1.2rem; }
.extra__lede { color: var(--muted); max-width: 62ch; }
.extra__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: end; }
.extra__grid .field--wide { grid-column: 1 / -1; }
.qr { display: grid; gap: 10px; justify-items: center; }
.qr__img { width: 100%; max-width: 240px; padding: 8px; border: 1px solid var(--line); border-radius: var(--r-control); background: #FFFFFF; }
.qr__img svg { width: 100%; height: auto; }
.qr__actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.qr__empty { display: grid; place-items: center; width: 100%; aspect-ratio: 1; padding: 20px; border: 1px dashed var(--line-strong); border-radius: var(--r-control); color: var(--muted); font-size: .9rem; text-align: center; }
.otp { display: grid; gap: 6px; padding: 14px 16px; border-radius: var(--r-control); background: var(--surface-2); }
.otp__code { font-family: var(--font-mono); font-stretch: 87.5%; font-size: 2rem; font-weight: 500; letter-spacing: .04em; color: var(--ink); }
.otp__meta { display: flex; align-items: center; gap: 12px; }
.otp__bar { flex: 1; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.otp__bar i { display: block; height: 100%; background: var(--accent); transform-origin: left; transition: transform 1s linear; }
.otp__remain { font-size: .82rem; color: var(--muted); white-space: nowrap; }
@media (max-width: 760px) {
  .extra--split { grid-template-columns: minmax(0, 1fr); }
  .extra__grid { grid-template-columns: minmax(0, 1fr); }
  .extra { padding: var(--s-3); }
}

/* Hash tool */
.hashes { display: grid; gap: 14px; }
.hash { display: grid; gap: 6px; }
.hash__head { display: flex; align-items: center; gap: 8px; }
.drop-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.drop { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 240px; padding: 14px 16px; border: 1px dashed var(--line-strong); border-radius: var(--r-control); color: var(--muted); font-size: .92rem; cursor: pointer; transition: border-color .15s, background-color .15s; }
.drop:hover, .drop.is-over { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }

/* Strength checker */
.strength { display: grid; gap: var(--s-4); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats > div { padding: 14px 16px 14px 0; }
.stats > div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.stats dt { font-size: .8rem; color: var(--muted); font-weight: 600; }
.stats dd { font-weight: 680; font-size: 1.02rem; }
.times__title { font-size: 1rem; margin-bottom: 8px; }
.times ul { list-style: none; display: grid; }
.times li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.times li span { display: grid; }
.times small { color: var(--muted); font-size: .84rem; }
.times b { font-weight: 720; text-align: right; }
.notes__list { display: grid; gap: 8px; padding-left: 20px; }
.notes__list li { color: var(--ink-2); }
.notes__list li.warn { color: var(--danger); }
.pwned-row { display: grid; gap: 8px; justify-items: start; }
.pwned__note { font-size: .84rem; color: var(--muted); max-width: 62ch; }
.pwned { font-weight: 650; }
.pwned:empty { display: none; }
.pwned.is-bad { color: var(--danger); }
.pwned.is-good { color: var(--good); }
@media (max-width: 600px) {
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stats > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Home: hero ---------- */

.hero { padding: clamp(32px, 6vw, 72px) 0 clamp(40px, 6vw, 64px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero__title { font-size: clamp(2.3rem, 1.3rem + 3.2vw, 3.6rem); line-height: 1.04; letter-spacing: -0.03em; font-weight: 790; max-width: 13ch; }
.hero__title em { font-style: italic; font-weight: 760; color: var(--accent); padding-right: .04em; }
.hero__lede { margin-top: 20px; font-size: 1.12rem; line-height: 1.55; color: var(--ink-2); max-width: 44ch; }
.hero__links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 620; text-decoration: none; }
.text-link .i { transition: transform .15s; }
.text-link:hover .i { transform: translateX(3px); }

.quick { display: grid; gap: 18px; padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--surface); box-shadow: var(--shadow); min-width: 0; }
.quick__box { display: flex; align-items: center; gap: 8px; min-height: 92px; padding: 14px 10px 14px 18px; border-radius: var(--r-control); background: var(--surface-2); }
.quick__val { flex: 1; min-width: 0; font-size: clamp(1.05rem, .9rem + .7vw, 1.4rem); line-height: 1.45; word-break: break-all; overflow-wrap: anywhere; color: var(--ink); user-select: all; -webkit-user-select: all; }
.quick__val.is-long { font-size: clamp(.9rem, .85rem + .3vw, 1.05rem); }
.quick__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.quick__actions { display: flex; gap: 8px; }
.quick__link { display: inline-flex; align-items: center; gap: 6px; justify-self: start; font-size: .92rem; font-weight: 600; text-decoration: none; }
.quick__link:hover .i { transform: translateX(3px); }
.quick__link .i { transition: transform .15s; }
.quick .chips { gap: 6px; }
.quick .chip { padding: 6px 12px; font-size: .86rem; }
.quick-shell { min-height: 360px; }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__title { max-width: 16ch; }
}
@media (max-width: 560px) {
  .quick { padding: var(--s-3); }
  .quick__actions { width: 100%; }
  .quick__actions .btn { flex: 1; }
}

/* Facts band */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; }
.facts li { display: flex; gap: 12px; align-items: flex-start; padding: 20px 20px 20px 0; font-size: .93rem; color: var(--ink-2); }
.facts li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.facts li .i { color: var(--accent); margin-top: 2px; }
.facts strong { display: block; color: var(--ink); font-weight: 700; }
@media (max-width: 900px) {
  .facts ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts li:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .facts ul { grid-template-columns: minmax(0, 1fr); }
  .facts li, .facts li + li { padding-left: 0; border-left: 0; }
  .facts li + li { border-top: 1px solid var(--line); }
}

/* ---------- Sections ---------- */

.section { padding: clamp(48px, 7vw, 88px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section__head { display: grid; gap: 10px; margin-bottom: var(--s-5); max-width: 720px; }
.section__title { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem); line-height: 1.08; letter-spacing: -0.025em; }
.section__lede { color: var(--muted); font-size: 1.05rem; max-width: 62ch; }
.section--tint { background: var(--surface-2); }
.section--tint + .section { border-top: 0; }

/* ---------- Board ---------- */

.board__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: var(--s-4); }
.board__bar .link-btn { margin-left: auto; }
.board__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 16px; }
.card { display: grid; gap: 12px; align-content: start; padding: 14px 14px 16px; border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--surface); min-width: 0; transition: border-color .15s, box-shadow .15s; }
.card:hover { border-color: var(--line-strong); }
.card.is-dragging { opacity: .55; box-shadow: var(--shadow-pop); }
.card__head { display: flex; align-items: center; gap: 4px; min-width: 0; }
.card__grip { display: inline-flex; color: var(--line-strong); cursor: grab; margin-left: -4px; }
.card__grip:active { cursor: grabbing; }
.card__title { flex: 1; min-width: 0; font-size: 1rem; font-weight: 720; letter-spacing: -0.01em; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a:hover { color: var(--accent); }
.card__tools { display: flex; margin-right: -6px; }
.card__tools .ibtn { width: 30px; height: 30px; }
.card__keys { display: grid; gap: 6px; }
.card .key { padding: 3px 3px 3px 10px; }
.card .key__val { font-size: .8rem; padding: 6px 0; }
.card .ibtn--copy { width: 30px; height: 30px; }
.board__empty { grid-column: 1 / -1; display: grid; justify-items: start; gap: 14px; padding: var(--s-5); border: 1px dashed var(--line-strong); border-radius: var(--r-panel); color: var(--muted); }
@media (max-width: 600px) {
  .board__bar .link-btn { margin-left: 0; }
}

/* ---------- Picker dialog ---------- */

.picker { width: min(640px, calc(100vw - 32px)); max-height: min(80vh, 760px); padding: 0; border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-pop); }
.picker[open] { display: flex; flex-direction: column; }
.picker::backdrop { background: rgba(12, 16, 36, .45); }
.picker__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 18px 10px 22px; }
.picker__head h2 { font-size: 1.2rem; }
.picker__search { position: relative; margin: 0 22px 12px; }
.picker__search .i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.picker__search .input { padding-left: 40px; }
.picker__list { overflow-y: auto; padding: 0 12px 16px; display: grid; gap: 14px; }
.picker__group h3 { font-size: .8rem; font-weight: 700; color: var(--muted); padding: 6px 10px; letter-spacing: .04em; text-transform: uppercase; }
.picker__item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; width: 100%; padding: 10px; border: 0; border-radius: var(--r-control); background: none; text-align: left; }
.picker__item:hover, .picker__item:focus-visible { background: var(--surface-2); }
.picker__item strong { font-weight: 680; }
.picker__item span:not(.i) { grid-column: 1; font-size: .86rem; color: var(--muted); }
.picker__item .i { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--accent); }
.picker__none { padding: 12px 10px; }

/* ---------- Directory ---------- */

.dir { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); }
.dir__col { padding-top: 16px; border-top: 2px solid var(--ink); min-width: 0; }
.dir__col h3 { font-size: 1.1rem; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.dir__col h3 a { color: var(--ink); text-decoration: none; }
.dir__col h3 a:hover { color: var(--accent); }
.dir__count { font-size: .85rem; font-weight: 600; color: var(--muted); }
.dir__list { list-style: none; margin-top: 14px; display: grid; }
.dir__list a { display: grid; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.dir__list a:hover strong { color: var(--accent); }
.dir__list strong { font-weight: 640; font-size: .97rem; transition: color .15s; }
.dir__list span { font-size: .86rem; color: var(--muted); line-height: 1.45; }
.dir__list a:has(> strong:only-child) { padding: 9px 0; }
.dir__list a:hover { color: var(--accent); }
@media (max-width: 1000px) { .dir { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5) var(--s-4); } }
@media (max-width: 560px) { .dir { grid-template-columns: minmax(0, 1fr); } }

/* ---------- How it works ---------- */

.how { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.how__copy { display: grid; gap: 16px; }
.how__copy p { color: var(--ink-2); max-width: 60ch; }
.how__visual { display: grid; gap: 16px; }
.diagram { width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--surface); }
.diagram .d-box { fill: var(--surface-2); stroke: var(--line-strong); }
.diagram .d-accent { fill: var(--accent-soft); stroke: var(--accent); }
.diagram .d-ink { fill: var(--ink); }
.diagram .d-muted { fill: var(--muted); }
.diagram .d-acc { fill: var(--accent); }
.diagram .d-line { stroke: var(--line-strong); fill: none; }
.diagram .d-line-acc { stroke: var(--accent); fill: none; }
.diagram .d-danger { stroke: var(--danger); fill: none; }
.diagram text { font-family: var(--font-sans); }
.diagram .d-mono { font-family: var(--font-mono); font-stretch: 87.5%; }
@media (max-width: 900px) { .how { grid-template-columns: minmax(0, 1fr); } }

.code { position: relative; border-radius: var(--r-panel); background: var(--code-bg); color: var(--code-ink); overflow: hidden; }
.code__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 10px 10px 18px; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: .84rem; color: var(--code-muted); }
.code__head .ibtn { color: var(--code-muted); }
.code__head .ibtn:hover { background: rgba(255, 255, 255, .08); color: var(--code-ink); }
.code pre { padding: 16px 18px 18px; overflow-x: auto; font-size: .82rem; line-height: 1.75; }
.code .c { color: var(--code-muted); }

/* Tips */
.tips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s-5); }
.tips li { list-style: none; padding: 20px 0; border-top: 1px solid var(--line); }
.tips h3 { font-size: 1.08rem; margin-bottom: 6px; }
.tips p { color: var(--ink-2); max-width: 54ch; }
@media (max-width: 760px) { .tips { grid-template-columns: minmax(0, 1fr); } }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.faq__intro { position: sticky; top: 96px; display: grid; gap: 10px; }
.faq__intro p { color: var(--muted); }
@media (max-width: 860px) { .faq { grid-template-columns: minmax(0, 1fr); } .faq__intro { position: static; } }

.wp-block-details, .faq-list details {
  border-bottom: 1px solid var(--line);
}
.wp-block-details:first-of-type, .faq-list details:first-of-type { border-top: 1px solid var(--line); }
.wp-block-details summary, .faq-list summary {
  position: relative;
  padding: 18px 40px 18px 0;
  font-weight: 680;
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -7px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform .2s;
}
.wp-block-details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.wp-block-details summary:hover { color: var(--accent); }
.wp-block-details > :not(summary) { margin: 0 0 18px; color: var(--ink-2); max-width: 66ch; }

/* ---------- Page heads and breadcrumbs ---------- */

.crumbs { padding-top: 22px; font-size: .88rem; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.page-head { padding: 18px 0 28px; display: grid; gap: 12px; }
.page-head__title { font-size: clamp(2rem, 1.3rem + 2.4vw, 3rem); line-height: 1.06; letter-spacing: -0.028em; font-weight: 780; max-width: 22ch; }
.page-head__lede { font-size: 1.1rem; color: var(--ink-2); max-width: 62ch; }
.page-head__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.page-head__meta a.tag { text-decoration: none; }
.page-head__meta a.tag:hover { color: var(--accent); }
.tag--accent { background: var(--accent-soft); color: var(--accent); }

.tool-section { padding-bottom: var(--s-5); }

.tool-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 72px); align-items: start; padding: var(--s-5) 0 var(--s-6); border-top: 1px solid var(--line); }
.aside { display: grid; gap: var(--s-4); position: sticky; top: 96px; }
.aside__title { font-size: 1rem; margin-bottom: 10px; }
.related { list-style: none; display: grid; }
.related a { display: grid; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.related a:hover strong { color: var(--accent); }
.related strong { font-weight: 640; font-size: .95rem; }
.related span { font-size: .84rem; color: var(--muted); line-height: 1.45; }
@media (max-width: 960px) { .tool-body { grid-template-columns: minmax(0, 1fr); } .aside { position: static; } }

/* ---------- Prose ---------- */

.prose { font-size: 1.04rem; line-height: 1.7; color: var(--ink-2); max-width: 70ch; }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 2em; font-size: 1.55rem; color: var(--ink); line-height: 1.2; }
.prose h3 { margin-top: 1.6em; font-size: 1.2rem; color: var(--ink); }
.prose > h2:first-child, .prose > h3:first-child { margin-top: 0; }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose strong { color: var(--ink); font-weight: 680; }
.prose code { padding: 2px 6px; border-radius: 6px; background: var(--surface-2); font-size: .86em; color: var(--ink); word-break: break-word; }
.prose pre { padding: 16px 18px; border-radius: var(--r-control); background: var(--code-bg); color: var(--code-ink); overflow-x: auto; font-size: .84rem; line-height: 1.7; }
.prose pre code { padding: 0; background: none; color: inherit; }
.prose a { font-weight: 560; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { color: var(--ink); font-weight: 680; }
.prose .wp-block-details { margin-top: 0; }
.prose h2 + .wp-block-details { margin-top: 1em; }
.prose .wp-block-table { overflow-x: auto; }
.prose figure { margin-inline: 0; }

.page-body { padding: 8px 0 var(--s-6); }

/* ---------- Catalog (all tools / categories) ---------- */

.catalog-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: var(--s-4); }
.catalog-search { position: relative; flex: 1; max-width: 420px; }
.catalog-search .i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.catalog-search .input { padding-left: 40px; }
.catalog { display: grid; gap: var(--s-5); padding-bottom: var(--s-6); }
.catalog__group h2 { display: flex; align-items: baseline; gap: 12px; font-size: 1.35rem; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.catalog__group h2 a { color: var(--ink); text-decoration: none; }
.catalog__group h2 a:hover { color: var(--accent); }
.catalog__group h2 .dir__count { margin-left: auto; }
.catalog__desc { margin-top: 10px; color: var(--muted); max-width: 70ch; }
.catalog__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--s-4); list-style: none; margin-top: 4px; }
.catalog__list a { display: grid; gap: 3px; height: 100%; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.catalog__list a:hover strong { color: var(--accent); }
.catalog__list strong { font-weight: 660; transition: color .15s; }
.catalog__list span { font-size: .88rem; color: var(--muted); line-height: 1.45; }
.catalog__empty { padding: var(--s-5) 0; color: var(--muted); }
@media (max-width: 900px) { .catalog__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .catalog__list { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Posts list ---------- */

.post-list { list-style: none; display: grid; gap: 0; max-width: 820px; padding-bottom: var(--s-6); }
.post-list li { padding: 22px 0; border-bottom: 1px solid var(--line); }
.post-list h2 { font-size: 1.35rem; }
.post-list h2 a { color: var(--ink); text-decoration: none; }
.post-list h2 a:hover { color: var(--accent); }
.post-list p { margin-top: 6px; color: var(--muted); }
.pagination { display: flex; gap: 8px; padding-bottom: var(--s-6); }
.pagination .page-numbers { padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r-control); text-decoration: none; color: var(--ink); }
.pagination .current { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* ---------- 404 ---------- */

.lost { display: grid; gap: 18px; justify-items: start; padding: var(--s-6) 0; max-width: 640px; }
.lost__code { font-family: var(--font-mono); font-stretch: 87.5%; font-size: 1rem; color: var(--muted); }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); background: var(--surface-2); padding: var(--s-6) 0 var(--s-4); font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(5, minmax(0, 1fr)); gap: var(--s-5) var(--s-4); }
.footer-brand p { margin-top: 14px; color: var(--muted); max-width: 32ch; }
.footer-col h2 { font-size: .9rem; font-weight: 720; margin-bottom: 12px; }
.footer-col h2 a { color: var(--ink); text-decoration: none; }
.footer-col ul { list-style: none; display: grid; gap: 8px; }
.footer-col a { color: var(--ink-2); text-decoration: none; }
.footer-col a:hover { color: var(--accent); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; }
.footer-base a { color: var(--muted); }
@media (max-width: 1100px) { .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Print: WiFi card ---------- */

.print-card { display: none; }
@media print {
  body.is-printing-card > *:not(.print-card) { display: none !important; }
  body.is-printing-card .print-card { display: grid !important; gap: 10px; justify-items: center; width: 90mm; margin: 20mm auto; padding: 10mm; border: 1px solid #0F1533; border-radius: 6mm; color: #0F1533; font-family: var(--font-sans); text-align: center; }
  .print-card .qr__img { width: 55mm; max-width: none; border: 0; padding: 0; }
  .print-card__eyebrow { font-size: 10pt; letter-spacing: .1em; text-transform: uppercase; }
  .print-card__name { font-size: 18pt; font-weight: 750; }
  .print-card__label { font-size: 9pt; margin-top: 4mm; }
  .print-card__pw { font-family: var(--font-mono); font-size: 12pt; word-break: break-all; }
  .print-card__hint { font-size: 9pt; }
  .site-header, .site-footer { display: none; }
}

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- Brand, diagram and loading details ---------- */

.brand__tile { fill: var(--accent); }
.brand__key { stroke: var(--on-accent); }
.nav .current-post-ancestor > a, .nav .current-menu-parent > a { color: var(--accent); background: var(--accent-soft); }
.diagram .d-surface { fill: var(--surface); stroke: var(--line-strong); }
.diagram .d-dashed { stroke-dasharray: 5 5; fill: none; }
.tool--loading { display: block; min-height: 360px; }
.tool--loading .tool__output { padding: var(--s-4); }
.lost__quick { width: 100%; }
.aside .code pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.extra__main .field { max-width: 520px; }

/* ---------- Cookie consent ---------- */

.consent {
  position: fixed;
  z-index: 60;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: grid;
  gap: 12px;
  max-width: 480px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  background: var(--surface);
  color: var(--ink-2);
  box-shadow: var(--shadow-pop);
  font-size: .92rem;
  line-height: 1.5;
}
.consent__text strong { display: block; margin-bottom: 2px; color: var(--ink); font-size: .98rem; }
.consent__text a { font-weight: 600; }
.consent__actions { display: flex; justify-content: flex-end; gap: 8px; }
.consent__actions .btn { min-width: 104px; }
@media (min-width: 700px) { .consent { left: 24px; right: auto; bottom: 24px; } }
@media print { .consent { display: none !important; } }
.footer-base__btn { margin-left: 10px; font-size: inherit; color: var(--muted); }

/* ---------- Contact form ---------- */

.contact-form {
  position: relative;
  display: grid;
  gap: 18px;
  max-width: 640px;
  padding: var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 1rem;
}
.prose .contact-form { margin-top: 1.6em; }
.contact-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.contact-form__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .textarea { min-height: 170px; }
.contact-form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.contact-form__privacy { margin: 0; font-size: .86rem; color: var(--muted); }
.contact-form__status { margin: 0; font-weight: 600; font-size: .95rem; }
.contact-form__status:empty { display: none; }
.contact-form__status.is-ok { color: var(--good); }
.contact-form__status.is-error { color: var(--danger); }
.field__hint { font-size: .84rem; color: var(--muted); }
.field__error { font-size: .86rem; font-weight: 600; color: var(--danger); }
.field__error:empty { display: none; }
.input[aria-invalid="true"] { border-color: var(--danger); }
.input[aria-invalid="true"]:focus { outline-color: var(--danger); }
.contact-done { display: grid; gap: 6px; padding: 8px 0; }
.contact-done:focus { outline: none; }
.contact-done__title { margin: 0; font-size: 1.25rem; font-weight: 720; color: var(--good); }
.contact-done p { margin: 0; }
@media (max-width: 600px) {
  .contact-form { padding: var(--s-3); }
  .contact-form__row { grid-template-columns: minmax(0, 1fr); }
  .contact-form__foot .btn { width: 100%; }
}
