/* DomainHunter.si - all styles. System fonts only, one accent colour, light and dark themes.

WCAG 2.x contrast of every foreground/background pair used below, recomputed from the
   shipped custom properties (text needs 4.5:1, chip borders and focus rings 3:1).

   LIGHT
   body text                                   text               #1D2624 on bg                 #F4F5F2  14.16  min 4.5  pass
   muted text, placeholder, queued chip label  muted              #556461 on bg                 #F4F5F2   5.67  min 4.5  pass
   links, accent text                          accent             #076D60 on bg                 #F4F5F2   5.70  min 4.5  pass
   focus ring                                  accent             #076D60 on bg                 #F4F5F2   5.70  min 3.0  pass
   control border, queued chip border          edge               #718480 on bg                 #F4F5F2   3.61  min 3.0  pass
   body text                                   text               #1D2624 on surface            #FFFFFF  15.49  min 4.5  pass
   muted text, placeholder, queued chip label  muted              #556461 on surface            #FFFFFF   6.20  min 4.5  pass
   links, accent text                          accent             #076D60 on surface            #FFFFFF   6.23  min 4.5  pass
   focus ring                                  accent             #076D60 on surface            #FFFFFF   6.23  min 3.0  pass
   control border, queued chip border          edge               #718480 on surface            #FFFFFF   3.95  min 3.0  pass
   body text                                   text               #1D2624 on surface-2          #EBECE7  13.05  min 4.5  pass
   muted text, placeholder, queued chip label  muted              #556461 on surface-2          #EBECE7   5.22  min 4.5  pass
   links, accent text                          accent             #076D60 on surface-2          #EBECE7   5.25  min 4.5  pass
   focus ring                                  accent             #076D60 on surface-2          #EBECE7   5.25  min 3.0  pass
   control border, queued chip border          edge               #718480 on surface-2          #EBECE7   3.32  min 3.0  pass
   primary button label                        on-accent          #FFFFFF on accent-fill        #077567   5.60  min 4.5  pass
   primary button label, hover                 on-accent          #FFFFFF on accent-fill-hover  #065F53   7.58  min 4.5  pass
   primary button shape                        accent-fill        #077567 on surface            #FFFFFF   5.60  min 3.0  pass
   primary button shape                        accent-fill        #077567 on bg                 #F4F5F2   5.11  min 3.0  pass
   pressed filter, checked ending label        surface            #FFFFFF on text               #1D2624  15.49  min 4.5  pass
   chip and notice label                       chip-neutral-fg    #505E73 on chip-neutral-bg    #EAEDF0   5.60  min 4.5  pass
   chip and notice border                      chip-neutral-edge  #70829B on bg                 #F4F5F2   3.58  min 3.0  pass
   chip and notice border                      chip-neutral-edge  #70829B on surface            #FFFFFF   3.92  min 3.0  pass
   chip and notice border                      chip-neutral-edge  #70829B on surface-2          #EBECE7   3.30  min 3.0  pass
   chip and notice label                       chip-amber-fg      #835607 on chip-amber-bg      #F8F0E2   5.62  min 4.5  pass
   chip and notice border                      chip-amber-edge    #B17309 on bg                 #F4F5F2   3.60  min 3.0  pass
   chip and notice border                      chip-amber-edge    #B17309 on surface            #FFFFFF   3.94  min 3.0  pass
   chip and notice border                      chip-amber-edge    #B17309 on surface-2          #EBECE7   3.32  min 3.0  pass
   chip and notice label                       chip-teal-fg       #136D61 on chip-teal-bg       #E2F8F5   5.60  min 4.5  pass
   chip and notice border                      chip-teal-edge     #199081 on bg                 #F4F5F2   3.58  min 3.0  pass
   chip and notice border                      chip-teal-edge     #199081 on surface            #FFFFFF   3.92  min 3.0  pass
   chip and notice border                      chip-teal-edge     #199081 on surface-2          #EBECE7   3.30  min 3.0  pass
   chip and notice label                       chip-red-fg        #AB2A1C on chip-red-bg        #F8E5E2   5.61  min 4.5  pass
   chip and notice border                      chip-red-edge      #E04F3E on bg                 #F4F5F2   3.58  min 3.0  pass
   chip and notice border                      chip-red-edge      #E04F3E on surface            #FFFFFF   3.91  min 3.0  pass
   chip and notice border                      chip-red-edge      #E04F3E on surface-2          #EBECE7   3.30  min 3.0  pass
   chip and notice label                       chip-dim-fg        #5E5E57 on chip-dim-bg        #EEEEEC   5.62  min 4.5  pass
   chip and notice border                      chip-dim-edge      #818177 on bg                 #F4F5F2   3.59  min 3.0  pass
   chip and notice border                      chip-dim-edge      #818177 on surface            #FFFFFF   3.93  min 3.0  pass
   chip and notice border                      chip-dim-edge      #818177 on surface-2          #EBECE7   3.31  min 3.0  pass

   DARK
   body text                                   text               #EBF0EE on bg                 #111514  15.97  min 4.5  pass
   muted text, placeholder, queued chip label  muted              #8B9C97 on bg                 #111514   6.39  min 4.5  pass
   links, accent text                          accent             #0BAC96 on bg                 #111514   6.44  min 4.5  pass
   focus ring                                  accent             #0BAC96 on bg                 #111514   6.44  min 3.0  pass
   control border, queued chip border          edge               #687A75 on bg                 #111514   4.05  min 3.0  pass
   body text                                   text               #EBF0EE on surface            #181D1C  14.80  min 4.5  pass
   muted text, placeholder, queued chip label  muted              #8B9C97 on surface            #181D1C   5.92  min 4.5  pass
   links, accent text                          accent             #0BAC96 on surface            #181D1C   5.97  min 4.5  pass
   focus ring                                  accent             #0BAC96 on surface            #181D1C   5.97  min 3.0  pass
   control border, queued chip border          edge               #687A75 on surface            #181D1C   3.75  min 3.0  pass
   body text                                   text               #EBF0EE on surface-2          #222827  13.01  min 4.5  pass
   muted text, placeholder, queued chip label  muted              #8B9C97 on surface-2          #222827   5.21  min 4.5  pass
   links, accent text                          accent             #0BAC96 on surface-2          #222827   5.25  min 4.5  pass
   focus ring                                  accent             #0BAC96 on surface-2          #222827   5.25  min 3.0  pass
   control border, queued chip border          edge               #687A75 on surface-2          #222827   3.30  min 3.0  pass
   primary button label                        on-accent          #111514 on accent-fill        #24CBB5   9.01  min 4.5  pass
   primary button label, hover                 on-accent          #111514 on accent-fill-hover  #58E2CF  11.56  min 4.5  pass
   primary button shape                        accent-fill        #24CBB5 on surface            #181D1C   8.35  min 3.0  pass
   primary button shape                        accent-fill        #24CBB5 on bg                 #111514   9.01  min 3.0  pass
   pressed filter, checked ending label        surface            #181D1C on text               #EBF0EE  14.80  min 4.5  pass
   chip and notice label                       chip-neutral-fg    #8F9DB1 on chip-neutral-bg    #1F252D   5.60  min 4.5  pass
   chip and notice border                      chip-neutral-edge  #657892 on bg                 #111514   4.07  min 3.0  pass
   chip and notice border                      chip-neutral-edge  #657892 on surface            #181D1C   3.78  min 3.0  pass
   chip and notice border                      chip-neutral-edge  #657892 on surface-2          #222827   3.32  min 3.0  pass
   chip and notice label                       chip-amber-fg      #E2930C on chip-amber-bg      #362A17   5.60  min 4.5  pass
   chip and notice border                      chip-amber-edge    #A36A09 on bg                 #111514   4.05  min 3.0  pass
   chip and notice border                      chip-amber-edge    #A36A09 on surface            #181D1C   3.75  min 3.0  pass
   chip and notice border                      chip-amber-edge    #A36A09 on surface-2          #222827   3.30  min 3.0  pass
   chip and notice label                       chip-teal-fg       #22BFAA on chip-teal-bg       #173631   5.65  min 4.5  pass
   chip and notice border                      chip-teal-edge     #178576 on bg                 #111514   4.07  min 3.0  pass
   chip and notice border                      chip-teal-edge     #178576 on surface            #181D1C   3.77  min 3.0  pass
   chip and notice border                      chip-teal-edge     #178576 on surface-2          #222827   3.32  min 3.0  pass
   chip and notice label                       chip-red-fg        #E77A6D on chip-red-bg        #361A17   5.62  min 4.5  pass
   chip and notice border                      chip-red-edge      #DC3825 on bg                 #111514   4.06  min 3.0  pass
   chip and notice border                      chip-red-edge      #DC3825 on surface            #181D1C   3.76  min 3.0  pass
   chip and notice border                      chip-red-edge      #DC3825 on surface-2          #222827   3.30  min 3.0  pass
   chip and notice label                       chip-dim-fg        #A0A098 on chip-dim-bg        #282825   5.61  min 4.5  pass
   chip and notice border                      chip-dim-edge      #77776D on bg                 #111514   4.06  min 3.0  pass
   chip and notice border                      chip-dim-edge      #77776D on surface            #181D1C   3.77  min 3.0  pass
   chip and notice border                      chip-dim-edge      #77776D on surface-2          #222827   3.31  min 3.0  pass

   WATCH PAGE AND RADAR COUNTDOWN, LIGHT (no new colours: every pair reuses the tokens above)
   countdown digits, private numbers           text               #1D2624 on surface-2         #EBECE7  13.05  min 4.5  pass
   countdown unit labels, private tags         muted              #556461 on surface-2         #EBECE7   5.22  min 4.5  pass
   card text, headline, timeline               text               #1D2624 on surface           #FFFFFF  15.49  min 4.5  pass
   card hints, checked line, dates             muted              #556461 on surface           #FFFFFF   6.20  min 4.5  pass
   note field border in the private strip      edge               #718480 on surface-2         #EBECE7   3.32  min 3.0  pass
   focus ring in the private strip             accent             #076D60 on surface-2         #EBECE7   5.25  min 3.0  pass
   released card border                        chip-teal-edge     #199081 on surface           #FFFFFF   3.92  min 3.0  pass
   released card border                        chip-teal-edge     #199081 on bg                #F4F5F2   3.58  min 3.0  pass
   window-open card border                     chip-amber-edge    #B17309 on surface           #FFFFFF   3.94  min 3.0  pass
   window-open card border                     chip-amber-edge    #B17309 on bg                #F4F5F2   3.60  min 3.0  pass
   large Register button label                 on-accent          #FFFFFF on accent-fill       #077567   5.60  min 4.5  pass
   large Register button shape                 accent-fill        #077567 on surface           #FFFFFF   5.60  min 3.0  pass

   WATCH PAGE AND RADAR COUNTDOWN, DARK (no new colours: every pair reuses the tokens above)
   countdown digits, private numbers           text               #EBF0EE on surface-2         #222827  13.01  min 4.5  pass
   countdown unit labels, private tags         muted              #8B9C97 on surface-2         #222827   5.21  min 4.5  pass
   card text, headline, timeline               text               #EBF0EE on surface           #181D1C  14.80  min 4.5  pass
   card hints, checked line, dates             muted              #8B9C97 on surface           #181D1C   5.92  min 4.5  pass
   note field border in the private strip      edge               #687A75 on surface-2         #222827   3.30  min 3.0  pass
   focus ring in the private strip             accent             #0BAC96 on surface-2         #222827   5.25  min 3.0  pass
   released card border                        chip-teal-edge     #178576 on surface           #181D1C   3.77  min 3.0  pass
   released card border                        chip-teal-edge     #178576 on bg                #111514   4.07  min 3.0  pass
   window-open card border                     chip-amber-edge    #A36A09 on surface           #181D1C   3.75  min 3.0  pass
   window-open card border                     chip-amber-edge    #A36A09 on bg                #111514   4.05  min 3.0  pass
   large Register button label                 on-accent          #111514 on accent-fill       #24CBB5   9.01  min 4.5  pass
   large Register button shape                 accent-fill        #24CBB5 on surface           #181D1C   8.35  min 3.0  pass

   ------------------------------------------------------------------------------------------- */

:root {
  color-scheme: light;
  --bg: #F4F5F2;
  --surface: #FFFFFF;
  --surface-2: #EBECE7;
  --line: #D9DAD2;
  --text: #1D2624;
  --muted: #556461;
  --accent: #076D60;
  --edge: #718480;
  --on-accent: #FFFFFF;
  --accent-fill: #077567;
  --accent-fill-hover: #065F53;
  --chip-neutral-bg: #EAEDF0;
  --chip-neutral-fg: #505E73;
  --chip-neutral-edge: #70829B;
  --chip-amber-bg: #F8F0E2;
  --chip-amber-fg: #835607;
  --chip-amber-edge: #B17309;
  --chip-teal-bg: #E2F8F5;
  --chip-teal-fg: #136D61;
  --chip-teal-edge: #199081;
  --chip-red-bg: #F8E5E2;
  --chip-red-fg: #AB2A1C;
  --chip-red-edge: #E04F3E;
  --chip-dim-bg: #EEEEEC;
  --chip-dim-fg: #5E5E57;
  --chip-dim-edge: #818177;

  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", "DejaVu Sans Mono", monospace;
  --radius: 6px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #111514;
    --surface: #181D1C;
    --surface-2: #222827;
    --line: #343D3A;
    --text: #EBF0EE;
    --muted: #8B9C97;
    --accent: #0BAC96;
    --edge: #687A75;
    --on-accent: #111514;
    --accent-fill: #24CBB5;
    --accent-fill-hover: #58E2CF;
    --chip-neutral-bg: #1F252D;
    --chip-neutral-fg: #8F9DB1;
    --chip-neutral-edge: #657892;
    --chip-amber-bg: #362A17;
    --chip-amber-fg: #E2930C;
    --chip-amber-edge: #A36A09;
    --chip-teal-bg: #173631;
    --chip-teal-fg: #22BFAA;
    --chip-teal-edge: #178576;
    --chip-red-bg: #361A17;
    --chip-red-fg: #E77A6D;
    --chip-red-edge: #DC3825;
    --chip-dim-bg: #282825;
    --chip-dim-fg: #A0A098;
    --chip-dim-edge: #77776D;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111514;
  --surface: #181D1C;
  --surface-2: #222827;
  --line: #343D3A;
  --text: #EBF0EE;
  --muted: #8B9C97;
  --accent: #0BAC96;
  --edge: #687A75;
  --on-accent: #111514;
  --accent-fill: #24CBB5;
  --accent-fill-hover: #58E2CF;
  --chip-neutral-bg: #1F252D;
  --chip-neutral-fg: #8F9DB1;
  --chip-neutral-edge: #657892;
  --chip-amber-bg: #362A17;
  --chip-amber-fg: #E2930C;
  --chip-amber-edge: #A36A09;
  --chip-teal-bg: #173631;
  --chip-teal-fg: #22BFAA;
  --chip-teal-edge: #178576;
  --chip-red-bg: #361A17;
  --chip-red-fg: #E77A6D;
  --chip-red-edge: #DC3825;
  --chip-dim-bg: #282825;
  --chip-dim-fg: #A0A098;
  --chip-dim-edge: #77776D;
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
}

.wrap {
  width: 100%;
  max-width: 76rem;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

main {
  flex: 1 0 auto;
  min-width: 0;
  padding-top: 2rem;
  padding-bottom: 3rem;
}

main:focus {
  outline: none;
}

h1 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h2 {
  margin: 2.25rem 0 0.75rem;
  font-size: 1.15rem;
  line-height: 1.3;
}

h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

code,
.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.92em;
}

code {
  padding: 0.05em 0.35em;
  border-radius: 4px;
  background: var(--surface-2);
}

.lede {
  max-width: 68ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.hint {
  color: var(--muted);
  font-size: 0.875rem;
}

.none {
  color: var(--muted);
}

.tag {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.name {
  font-weight: 600;
}

.offscreen {
  position: fixed;
  top: 0;
  left: -9999px;
  opacity: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 8px;
  z-index: 10;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
}

.skip-link:focus {
  top: 8px;
}

/* ---------- Header and footer ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.site-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.wordmark {
  font-family: var(--mono);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

.wordmark-tld {
  color: var(--accent);
}

.site-nav {
  flex: 1 1 auto;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav a[aria-current="page"] {
  border-bottom-color: var(--accent);
  color: var(--text);
  font-weight: 600;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.25rem 0 1.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer p {
  margin: 0 0 0.25rem;
}

.site-footer-meta {
  font-family: var(--mono);
  font-size: 0.8rem;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.12s ease, border-color 0.12s ease;
}

.btn:hover {
  background: var(--surface-2);
}

.btn:disabled {
  opacity: 0.55;
  cursor: default;
}

.btn-primary {
  border-color: var(--accent-fill);
  background: var(--accent-fill);
  color: var(--on-accent);
  font-weight: 600;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.btn-primary:hover {
  border-color: var(--accent-fill-hover);
  background: var(--accent-fill-hover);
}

.btn-filter[aria-pressed="true"] {
  border-color: var(--text);
  background: var(--text);
  color: var(--surface);
}

.btn-mini {
  min-height: 1.6rem;
  margin-left: 0.6rem;
  padding: 0.1rem 0.5rem;
  font-size: 0.75rem;
}

.btn-quiet {
  min-height: 2.1rem;
  padding: 0.3rem 0.7rem;
  font-size: 0.85rem;
}

/* ---------- Forms ---------- */

.panel {
  margin: 1.5rem 0 1rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.field label,
.tld-set legend {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
}

.field .hint {
  margin: 0.15rem 0 0.6rem;
}

textarea,
input[type="search"],
select,
.input {
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

textarea {
  display: block;
  width: 100%;
  min-height: 9rem;
  padding: 0.7rem 0.8rem;
  font-family: var(--mono);
  font-size: 0.95rem;
  line-height: 1.5;
  resize: vertical;
}

input[type="search"],
select {
  min-height: 2.5rem;
  padding: 0.35rem 0.6rem;
  font-size: 0.9rem;
}

input[type="search"] {
  width: 12rem;
  max-width: 100%;
  font-family: var(--mono);
}

::placeholder {
  color: var(--muted);
  opacity: 1;
}

.tld-set {
  min-width: 0;
  margin: 1rem 0 0;
  padding: 0;
  border: 0;
}

.tld-set legend {
  padding: 0;
  margin-bottom: 0.5rem;
}

.tld-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tld {
  position: relative;
  display: inline-flex;
}

.tld input {
  position: absolute;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.tld span {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0.25rem 0.85rem;
  border: 1px solid var(--edge);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.9rem;
}

.tld input:checked + span {
  border-color: var(--text);
  background: var(--text);
  color: var(--surface);
  font-weight: 600;
}

.tld input:checked + span::before {
  content: "\2713\00a0";
}

.tld input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.field-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.5rem;
}

.field-inline label {
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------- Messages ---------- */

.progress {
  min-height: 1.5em;
  margin: 0.75rem 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.85rem;
}

.notice {
  max-width: 76ch;
  margin: 0.75rem 0;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--chip-dim-edge);
  border-left-width: 4px;
  border-radius: var(--radius);
  background: var(--chip-dim-bg);
  color: var(--chip-dim-fg);
  font-size: 0.92rem;
}

.notice a {
  color: inherit;
}

.notice-amber {
  border-color: var(--chip-amber-edge);
  background: var(--chip-amber-bg);
  color: var(--chip-amber-fg);
}

.notice-red {
  border-color: var(--chip-red-edge);
  background: var(--chip-red-bg);
  color: var(--chip-red-fg);
}

.empty {
  margin: 0.75rem 0;
  color: var(--muted);
}

.explainer {
  max-width: 72ch;
  padding-left: 0.9rem;
  border-left: 3px solid var(--accent);
}

.toolbar-status {
  min-height: 1.4em;
  margin: 0.4rem 0;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------- Toolbars ---------- */

.toolbar,
.radar-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin: 0.75rem 0;
}

.radar-meta .progress {
  margin: 0;
}

.filters,
.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.radar-section .toolbar {
  justify-content: flex-start;
}

.count {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.9em;
  font-weight: 400;
}

/* ---------- Tables ---------- */

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

table.data caption {
  padding: 0.7rem 0.9rem;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: left;
  caption-side: top;
}

table.data th {
  padding: 0.6rem 0.9rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

table.data td {
  padding: 0.7rem 0.9rem;
  border-top: 1px solid var(--line);
  vertical-align: middle;
  white-space: nowrap;
}

table.data tbody tr:first-child td {
  border-top: 0;
}

table.data tbody tr:hover {
  background: var(--surface-2);
}

table.data td.cell-detail {
  min-width: 10rem;
  max-width: 22rem;
  white-space: normal;
}

table.data-wrap td {
  min-width: 11rem;
  vertical-align: top;
  white-space: normal;
}

th[aria-sort] {
  color: var(--text);
}

.sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 1.6rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}

.sort-btn::after {
  content: "\2195";
  font-family: var(--mono);
}

th[aria-sort="ascending"] .sort-btn::after {
  content: "\2191";
}

th[aria-sort="descending"] .sort-btn::after {
  content: "\2193";
}

/* ---------- State chips (always with a text label) ---------- */

.chip {
  display: inline-block;
  padding: 0.1rem 0.6rem;
  border: 1px solid var(--chip-dim-edge);
  border-radius: 999px;
  background: var(--chip-dim-bg);
  color: var(--chip-dim-fg);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}

.chip-neutral {
  border-color: var(--chip-neutral-edge);
  background: var(--chip-neutral-bg);
  color: var(--chip-neutral-fg);
}

.chip-amber {
  border-color: var(--chip-amber-edge);
  background: var(--chip-amber-bg);
  color: var(--chip-amber-fg);
}

.chip-teal {
  border-color: var(--chip-teal-edge);
  background: var(--chip-teal-bg);
  color: var(--chip-teal-fg);
}

.chip-red {
  border-color: var(--chip-red-edge);
  background: var(--chip-red-bg);
  color: var(--chip-red-fg);
}

.chip-queued {
  border-style: dashed;
  border-color: var(--edge);
  background: transparent;
  color: var(--muted);
}

/* ---------- Prose blocks ---------- */

.plain-list {
  max-width: 76ch;
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.plain-list li {
  margin-bottom: 0.45rem;
}

.empty-state {
  margin-top: 2rem;
}

.defs {
  display: grid;
  grid-template-columns: minmax(6rem, max-content) 1fr;
  gap: 0.4rem 1.25rem;
  max-width: 76ch;
  margin: 0 0 1rem;
}

.defs dt {
  font-weight: 600;
}

.defs dd {
  margin: 0;
}

.contact:empty {
  display: none;
}

/* ---------- Drop radar: status lines and countdown ---------- */

.radar-lines {
  min-width: 0;
}

.radar-lines .progress {
  min-height: 0;
}

.countdown-cell {
  white-space: nowrap;
}

/* ---------- Private watchlist ---------- */

.input {
  width: 100%;
  min-height: 2.5rem;
  padding: 0.35rem 0.6rem;
  font-size: 0.95rem;
}

.input-mono {
  font-family: var(--mono);
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.form-row .field {
  flex: 0 1 16rem;
  min-width: 0;
}

.form-row .field-grow {
  flex: 1 1 16rem;
}

.form-row .field label {
  margin-bottom: 0.3rem;
}

.watch-panel h2 {
  margin-top: 0;
}

.watch-panel .actions {
  margin-top: 0.25rem;
}

.hint .btn-mini {
  margin: 0 0.2rem 0 0.5rem;
}

.watch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr));
  gap: 1rem;
  margin: 1rem 0 2rem;
}

.watch-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-width: 0;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.watch-card p {
  margin: 0;
}

.watch-card-window {
  border-left: 4px solid var(--chip-amber-edge);
}

.watch-card-released {
  grid-column: 1 / -1;
  border: 2px solid var(--chip-teal-edge);
}

.watch-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 0.75rem;
}

.watch-name {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.watch-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.watch-headline {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
}

.watch-card-released .watch-headline {
  font-size: 1.6rem;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.4rem;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.45rem 0.25rem;
  border-radius: var(--radius);
  background: var(--surface-2);
}

.countdown-num {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
}

.countdown-lbl {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.watch-count-label,
.watch-checked {
  color: var(--muted);
  font-size: 0.85rem;
}

.watch-line {
  font-size: 0.9rem;
}

.watch-dates {
  color: var(--muted);
  font-size: 0.8rem;
}

.watch-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.btn-large {
  min-height: 3rem;
  padding-left: 2rem;
  padding-right: 2rem;
  font-size: 1.05rem;
}

.watch-card .toolbar-status {
  min-height: 0;
  margin: 0;
}

.watch-private {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.75rem;
  border-radius: var(--radius);
  background: var(--surface-2);
}

.watch-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
  gap: 0.5rem 0.75rem;
}

.watch-fact {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.watch-fact-value {
  font-size: 0.95rem;
  font-weight: 600;
}

.watch-never {
  font-size: 0.85rem;
}

.watch-note label {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.watch-note textarea {
  min-height: 3.25rem;
  padding: 0.45rem 0.6rem;
  font-family: var(--sans);
  font-size: 0.9rem;
}

.watch-card-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.watch-card-foot .btn-mini {
  min-height: 2rem;
  margin-left: 0.4rem;
  padding: 0.2rem 0.7rem;
}

.watch-confirm {
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
}

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.timeline-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.9rem;
  padding: 0.55rem 0.9rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.timeline-item:first-child {
  border-top: 0;
}

.timeline-when {
  flex: 0 0 6.5rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.timeline-detail {
  color: var(--muted);
}

/* ---------- Narrow screens ---------- */

@media (max-width: 560px) {
  h1 {
    font-size: 1.4rem;
  }

  main {
    padding-top: 1.5rem;
  }

  .site-header-inner {
    justify-content: space-between;
  }

  .site-nav {
    order: 3;
    flex: 1 0 100%;
  }

  .panel {
    padding: 1rem;
  }

  .defs {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }

  .defs dd {
    margin-bottom: 0.6rem;
  }
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
