/* Kommandozentrale -- dunkles HUD, zuerst fuers Handy gebaut.
   Eine Spalte auf dem Telefon, mehr Spalten wenn Platz da ist. */

:root {
  --bg:        #07080b;
  --bg-tile:   #0d1016;
  --bg-sunk:   #05060a;
  --line:      #1c2230;
  --line-soft: #141924;

  --fg:        #d7e0ee;
  --fg-dim:    #7f8ca3;
  --fg-faint:  #4a566b;

  --accent:    #35e0d0;   /* Normalzustand      */
  --info:      #4aa8ff;   /* Hinweis            */
  --warn:      #ffb43d;   /* Achtung            */
  --bad:       #ff4d5e;   /* Ausfall / Angriff  */
  --void:      #232a38;   /* keine Daten        */

  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 15px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;              /* die Seite selbst scrollt nie seitwaerts */
}

body {
  padding: 0 10px env(safe-area-inset-bottom) 10px;
  background-image:
    radial-gradient(900px 500px at 15% -10%, #0e1c26 0%, transparent 60%),
    radial-gradient(700px 400px at 100% 0%, #17121f 0%, transparent 55%);
}

/* --- Kopfzeile --------------------------------------------------------- */

.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  padding: calc(env(safe-area-inset-top) + 10px) 4px 10px;
  background: linear-gradient(var(--bg) 72%, transparent);
}

.brand { display: flex; align-items: baseline; gap: 8px; min-width: 0; }

.brand-mark {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  align-self: center; flex: none;
}

.brand-name {
  font-family: var(--mono); font-weight: 700; letter-spacing: .16em;
  font-size: 14px;
}

.brand-sub {
  font-family: var(--mono); font-size: 10px; letter-spacing: .22em;
  color: var(--fg-faint); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}

.topbar-right { display: flex; align-items: center; gap: 10px; flex: none; }
.clock { font-family: var(--mono); font-size: 13px; color: var(--fg-dim); }

.pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--fg-faint); transition: background .3s, box-shadow .3s;
}
.pulse.live { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.pulse.stale { background: var(--warn); box-shadow: 0 0 8px var(--warn); }
.pulse.dead  { background: var(--bad);  box-shadow: 0 0 8px var(--bad); }

.icon-btn {
  background: none; border: none; cursor: pointer; padding: 2px 4px;
  font-size: 15px; line-height: 1; color: var(--fg-dim);
  transition: color .15s;
}
.icon-btn:hover { color: var(--accent); }

/* --- Kopfbereich: Begruessung, Statusmeldung, Top-News ------------------ */

.hero {
  position: relative;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: 3px;
  background:
    linear-gradient(180deg, rgba(53,224,208,.05), transparent 60%),
    var(--bg-tile);
  padding: 14px 14px 15px;
  margin-bottom: 10px;
}

.greeting {
  margin: 0 0 3px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent);
}

.hero-status {
  margin: 0 0 10px;
  font-size: 16.5px; line-height: 1.45; color: var(--fg);
  letter-spacing: -.005em;
}

@media (min-width: 720px) { .hero-status { font-size: 18px; } }

.hero-news { margin-top: 13px; padding-top: 12px;
             border-top: 1px solid var(--line-soft); }
.hero-news h2 {
  margin: 0 0 9px;
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--fg-dim);
  display: flex; align-items: baseline; gap: 8px;
}

.news-list { list-style: none; margin: 0; padding: 0; counter-reset: news;
             display: flex; flex-direction: column; gap: 9px; }
.news-list li {
  counter-increment: news;
  display: grid; grid-template-columns: 20px 1fr; gap: 2px 9px;
}
.news-list li::before {
  content: counter(news);
  grid-row: 1 / span 3;
  font-family: var(--mono); font-size: 15px; color: var(--fg-faint);
  line-height: 1.2;
}
.news-head { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.news-head a, .news-head span.news-title {
  color: var(--fg); text-decoration: none; font-size: 14px; font-weight: 500;
  line-height: 1.35;
}
.news-head a:hover { color: var(--accent); }
.news-tag {
  font-family: var(--mono); font-size: 8.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent);
  border: 1px solid currentColor; border-radius: 2px; padding: 1px 5px;
  flex: none;
}
.news-sum { font-size: 12.5px; line-height: 1.45; color: var(--fg-dim); }
.news-src { font-family: var(--mono); font-size: 9.5px; color: var(--fg-faint); }

/* --- Projektlage ------------------------------------------------------- */

.projects {
  position: relative;
  background: var(--bg-tile);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 13px 13px 15px;
  margin-bottom: 10px;
}

.proj-top { display: flex; align-items: baseline; gap: 10px; margin-bottom: 9px; }
.proj-top h2 {
  margin: 0; flex: 1;
  font-family: var(--mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--fg-dim);
  display: flex; align-items: baseline; gap: 8px;
}

.proj-headline { margin: 0 0 6px; font-size: 15px; line-height: 1.45; color: var(--fg); }
.proj-focus {
  margin: 0 0 12px; padding-left: 9px;
  border-left: 2px solid var(--warn);
  font-size: 13px; line-height: 1.5; color: var(--fg-dim);
}

.proj-counts { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 11px; }
.count-chip {
  font-family: var(--mono); font-size: 10px; letter-spacing: .08em;
  padding: 3px 8px; border-radius: 2px;
  background: var(--bg-sunk); color: var(--fg-dim);
  border: 1px solid var(--line);
}
.count-chip b { color: var(--fg); font-weight: 600; }
.count-chip.crit { color: var(--bad); border-color: currentColor; }
.count-chip.warn { color: var(--warn); border-color: currentColor; }

/* Ein Projekt = ein aufklappbarer Block. <details> statt JS: das Aufklappen
   funktioniert damit auch, wenn das Skript klemmt. */
.proj-list { display: flex; flex-direction: column; gap: 6px; }

.proj {
  background: var(--bg-sunk); border-radius: 2px;
  border-left: 2px solid var(--void);
}
.proj.ok   { border-left-color: var(--accent); }
.proj.warn { border-left-color: var(--warn); }
.proj.crit { border-left-color: var(--bad); }

.proj > summary {
  cursor: pointer; list-style: none; padding: 9px 10px;
  display: grid; grid-template-columns: 1fr auto; gap: 2px 10px;
  align-items: baseline;
}
.proj > summary::-webkit-details-marker { display: none; }
.proj > summary::after {
  content: "▸"; grid-row: 1 / span 2; align-self: center;
  color: var(--fg-faint); font-size: 11px; transition: transform .15s;
}
.proj[open] > summary::after { transform: rotate(90deg); }

.proj-name { font-size: 14px; font-weight: 500; color: var(--fg); }
.proj-sub {
  grid-column: 1; font-family: var(--mono); font-size: 10px;
  color: var(--fg-faint); display: flex; flex-wrap: wrap; gap: 4px 9px;
}
.st { text-transform: uppercase; letter-spacing: .1em; }
.st-aktiv        { color: var(--accent); }
.st-blockiert    { color: var(--bad); }
.st-ruht         { color: var(--warn); }
.st-abgeschlossen{ color: var(--fg-faint); }

.proj-body { padding: 0 10px 11px 10px; }
.proj-state { margin: 0 0 10px; font-size: 13px; line-height: 1.5; color: var(--fg-dim); }

.proj-sec { margin-bottom: 10px; }
.proj-sec h4 {
  margin: 0 0 5px;
  font-family: var(--mono); font-size: 9px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--fg-faint);
}
.proj-sec.miss h4 { color: var(--warn); }

.proj-items { list-style: none; margin: 0; padding: 0;
              display: flex; flex-direction: column; gap: 5px; }
.proj-items li {
  display: grid; grid-template-columns: 10px 1fr; gap: 8px;
  font-size: 12.5px; line-height: 1.45; color: var(--fg-dim);
}
.proj-items li::before { content: "·"; color: var(--fg-faint); text-align: center; }
.proj-sec.miss .proj-items li::before { content: "!"; color: var(--warn);
                                        font-family: var(--mono); font-size: 11px; }
.proj-sec.next .proj-items li::before { content: "→"; color: var(--accent); font-size: 11px; }

.pi-meta { font-family: var(--mono); font-size: 9.5px; color: var(--fg-faint); }
.pi-why  { color: var(--fg-faint); font-size: 11.5px; }
.eff {
  font-family: var(--mono); font-size: 8.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--fg-faint);
  border: 1px solid var(--line); border-radius: 2px; padding: 0 4px;
  margin-right: 5px;
}

.proj-src { font-family: var(--mono); font-size: 9px; color: var(--fg-faint);
            margin-top: 8px; line-height: 1.5; }

.proj-extra {
  display: grid; grid-template-columns: 1fr; gap: 14px;
  margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--line-soft);
}
@media (min-width: 720px) { .proj-extra { grid-template-columns: 2fr 1fr; } }
.proj-extra h3 {
  margin: 0 0 7px;
  font-family: var(--mono); font-size: 9.5px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--fg-faint);
}

/* --- Raster ------------------------------------------------------------ */

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding-bottom: 14px;
}

@media (min-width: 720px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-wide { grid-column: 1 / -1; }
}
@media (min-width: 1180px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #tile-endpoints, #tile-ssh { grid-column: span 2; }
  #tile-briefing, #tile-feeds, #tile-actions { grid-column: 1 / -1; }
}

/* --- Kachel ------------------------------------------------------------ */

.tile {
  position: relative;
  background: var(--bg-tile);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 11px 12px 13px;
  min-width: 0;
}

/* Angeschnittene Ecke -- macht den technischen Eindruck ohne Bildmaterial. */
.tile::after {
  content: ""; position: absolute; top: 0; right: 0;
  width: 12px; height: 12px;
  background: linear-gradient(225deg, var(--bg) 50%, transparent 50%);
}

.tile h2 {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 10.5px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--fg-dim);
  display: flex; align-items: baseline; gap: 8px;
}

.tile h3 {
  margin: 0 0 6px;
  font-family: var(--mono); font-size: 9.5px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--fg-faint);
}

.tile-meta {
  margin-left: auto; font-size: 10px; letter-spacing: .08em;
  color: var(--fg-faint); font-weight: 400; text-transform: none;
}
.tile-meta.warn { color: var(--warn); }
.tile-meta.bad  { color: var(--bad); }

/* --- #18 Lagebild ------------------------------------------------------ */

.briefing-headline {
  margin: 0 0 9px; font-size: 15px; line-height: 1.45; color: var(--fg);
}
.briefing-items { list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 6px; }
.briefing-items li {
  display: flex; gap: 9px; align-items: flex-start;
  font-size: 13.5px; line-height: 1.45; color: var(--fg-dim);
}
.chip {
  flex: none; margin-top: 2px;
  font-family: var(--mono); font-size: 9px; letter-spacing: .12em;
  padding: 2px 6px; border-radius: 2px; text-transform: uppercase;
  border: 1px solid currentColor;
}
.chip-ok   { color: var(--accent); }
.chip-info { color: var(--info); }
.chip-warn { color: var(--warn); }
.chip-crit { color: var(--bad); background: rgba(255,77,94,.1); }

/* --- #2 Dienste -------------------------------------------------------- */

.led-grid { display: flex; flex-direction: column; gap: 5px; }

.led-row {
  display: grid; grid-template-columns: 10px 1fr auto;
  align-items: center; gap: 9px;
  padding: 5px 7px; background: var(--bg-sunk);
  border-left: 2px solid var(--void); border-radius: 2px;
}
.led-row.ok      { border-left-color: var(--accent); }
.led-row.warn    { border-left-color: var(--warn); }
.led-row.down    { border-left-color: var(--bad); }
.led-row.unknown { border-left-color: var(--void); }

.led { width: 8px; height: 8px; border-radius: 50%; background: var(--void); }
.led-row.ok   .led { background: var(--accent); box-shadow: 0 0 7px var(--accent); }
.led-row.warn .led { background: var(--warn);   box-shadow: 0 0 7px var(--warn); }
.led-row.down .led { background: var(--bad);    box-shadow: 0 0 8px var(--bad);
                     animation: blink 1.1s steps(2, end) infinite; }

@keyframes blink { 50% { opacity: .25; } }

.led-name { font-size: 13px; overflow: hidden; text-overflow: ellipsis;
            white-space: nowrap; }
.led-info { font-family: var(--mono); font-size: 10.5px; color: var(--fg-faint);
            text-align: right; white-space: nowrap; }

/* --- #3 Endpunkte ------------------------------------------------------ */

.ep-list { display: flex; flex-direction: column; gap: 9px; }

.ep {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 10px;
  padding: 7px 8px;
  background: var(--bg-sunk); border-radius: 2px;
}
.ep-head { display: flex; align-items: baseline; gap: 7px; min-width: 0; }
.ep-name { font-size: 13px; overflow: hidden; text-overflow: ellipsis;
           white-space: nowrap; }
.ep-status { font-family: var(--mono); font-size: 10px; padding: 1px 5px;
             border-radius: 2px; flex: none; }
.ep-status.ok  { color: var(--accent); background: rgba(53,224,208,.1); }
.ep-status.bad { color: var(--bad);    background: rgba(255,77,94,.12); }

.ep-ms { font-family: var(--mono); font-size: 12px; color: var(--fg-dim);
         text-align: right; white-space: nowrap; }

.ep-charts { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 4px; }
.spark { width: 100%; height: 24px; display: block; }

.heat { display: flex; gap: 1px; width: 100%; }
.heat i {
  flex: 1 1 0; height: 8px; border-radius: 1px; background: var(--void);
  min-width: 0;
}
.heat i.ok   { background: var(--accent); }
.heat i.part { background: var(--warn); }
.heat i.bad  { background: var(--bad); }

.legend {
  display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 9px;
  font-family: var(--mono); font-size: 9.5px; color: var(--fg-faint);
  align-items: center;
}
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend-note { margin-left: auto; }
.sw { width: 8px; height: 8px; border-radius: 1px; display: inline-block; }
.sw-ok { background: var(--accent); } .sw-part { background: var(--warn); }
.sw-bad { background: var(--bad); }   .sw-void { background: var(--void); }

/* --- #4 Zertifikate ---------------------------------------------------- */

.tls-list { display: flex; flex-direction: column; gap: 8px; }
.tls-row { display: flex; flex-direction: column; gap: 4px; }
.tls-head { display: flex; justify-content: space-between; gap: 8px;
            font-size: 12.5px; }
.tls-host { color: var(--fg-dim); overflow: hidden; text-overflow: ellipsis;
            white-space: nowrap; }
.tls-days { font-family: var(--mono); flex: none; }
.tls-days.ok { color: var(--accent); } .tls-days.warn { color: var(--warn); }
.tls-days.crit { color: var(--bad); } .tls-days.unknown { color: var(--fg-faint); }

.tls-bar { height: 5px; background: var(--bg-sunk); border-radius: 2px;
           overflow: hidden; }
.tls-fill { height: 100%; border-radius: 2px; transition: width .4s; }
.tls-fill.ok { background: var(--accent); } .tls-fill.warn { background: var(--warn); }
.tls-fill.crit { background: var(--bad); } .tls-fill.unknown { background: var(--void); }

/* --- #6 Angriffe ------------------------------------------------------- */

.ssh-map-wrap {
  background: var(--bg-sunk); border-radius: 2px; padding: 4px;
  margin-bottom: 10px; overflow: hidden;
}
#ssh-map { width: 100%; height: auto; display: block; }
#map-land { fill: #131a26; stroke: #1e2836; stroke-width: .3; }
#map-graticule line { stroke: #10161f; stroke-width: .25; }

.hit-glow { fill: url(#hit-glow); }
.hit-dot  { fill: var(--bad); }

.ssh-stats { display: flex; gap: 18px; margin-bottom: 10px; }
.bignum { display: flex; flex-direction: column; gap: 1px; }
.bignum b { font-family: var(--mono); font-size: 22px; font-weight: 600;
            color: var(--bad); line-height: 1; }
.bignum span { font-size: 10px; color: var(--fg-faint); letter-spacing: .04em; }

.hourbars { display: flex; align-items: flex-end; gap: 1px; height: 34px;
            margin-bottom: 11px; }
.hourbars i { flex: 1 1 0; background: var(--bad); opacity: .55;
              border-radius: 1px 1px 0 0; min-height: 1px; min-width: 0; }
.hourbars i.now { opacity: 1; }

.ssh-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.rank { list-style: none; margin: 0; padding: 0;
        display: flex; flex-direction: column; gap: 3px; }
.rank li { display: flex; justify-content: space-between; gap: 8px;
           font-size: 12px; color: var(--fg-dim); }
.rank b { font-family: var(--mono); color: var(--fg); font-weight: 500; }
.rank span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* --- #16 News ---------------------------------------------------------- */

.rel-list, .feed-list { list-style: none; margin: 0; padding: 0;
                        display: flex; flex-direction: column; gap: 6px; }
.feed-list { max-height: 320px; overflow-y: auto; }

.rel-list li, .feed-list li { display: flex; gap: 8px; align-items: baseline; }
.rel-list a, .feed-list a {
  color: var(--fg); text-decoration: none; font-size: 13px; line-height: 1.35;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1;
}
.rel-list a:hover, .feed-list a:hover { color: var(--accent); }

.src {
  font-family: var(--mono); font-size: 9px; letter-spacing: .08em;
  color: var(--fg-faint); text-transform: uppercase; flex: none;
  min-width: 46px;
}
.age { font-family: var(--mono); font-size: 9.5px; color: var(--fg-faint);
       flex: none; }
.dot-new { width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
           flex: none; box-shadow: 0 0 6px var(--accent); }
.dot-old { width: 5px; height: 5px; flex: none; }

/* --- #19 Aktionen ------------------------------------------------------ */

.action-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 7px;
}
.action-grid button {
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em;
  padding: 11px 8px; cursor: pointer;
  color: var(--fg-dim); background: var(--bg-sunk);
  border: 1px solid var(--line); border-radius: 2px;
  transition: color .15s, border-color .15s, background .15s;
}
.action-grid button:hover:not(:disabled) {
  color: var(--accent); border-color: var(--accent);
  background: rgba(53,224,208,.06);
}
.action-grid button.armed {
  color: var(--warn); border-color: var(--warn);
  background: rgba(255,180,61,.08);
}
.action-grid button:disabled { opacity: .45; cursor: default; }

.action-log { margin-top: 9px; font-family: var(--mono); font-size: 11px;
              color: var(--fg-faint); min-height: 15px; }
.action-log.ok  { color: var(--accent); }
.action-log.bad { color: var(--bad); }

/* --- Fusszeile & Zugang ------------------------------------------------ */

.foot {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 12px 4px calc(env(safe-area-inset-bottom) + 16px);
  font-family: var(--mono); font-size: 10.5px; color: var(--fg-faint);
}
.linkish {
  background: none; border: none; padding: 0; cursor: pointer;
  font-family: var(--mono); font-size: 10.5px; color: var(--fg-dim);
  text-decoration: underline; text-underline-offset: 3px;
}
.linkish:hover { color: var(--accent); }

.gate {
  position: fixed; inset: 0; z-index: 50; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(5,6,10,.96);
}
.gate.show { display: flex; }
.gate-box { width: 100%; max-width: 360px; background: var(--bg-tile);
            border: 1px solid var(--line); border-radius: 3px; padding: 20px; }
.gate-title { font-family: var(--mono); font-size: 11px; letter-spacing: .2em;
              color: var(--accent); margin-bottom: 10px; }
.gate-hint { font-size: 13px; color: var(--fg-dim); line-height: 1.5;
             margin: 0 0 14px; }
.gate input {
  width: 100%; padding: 11px; margin-bottom: 9px;
  font-family: var(--mono); font-size: 14px;
  color: var(--fg); background: var(--bg-sunk);
  border: 1px solid var(--line); border-radius: 2px;
}
.gate input:focus { outline: none; border-color: var(--accent); }
.gate button {
  width: 100%; padding: 11px; cursor: pointer;
  font-family: var(--mono); font-size: 12px; letter-spacing: .1em;
  color: var(--bg); background: var(--accent);
  border: none; border-radius: 2px;
}
.gate-error { margin-top: 9px; font-size: 12px; color: var(--bad); min-height: 16px; }

/* --- Einstellungen ----------------------------------------------------- */

.modal {
  position: fixed; inset: 0; z-index: 40; display: none;
  align-items: flex-start; justify-content: center;
  padding: calc(env(safe-area-inset-top) + 40px) 16px 24px;
  background: rgba(5,6,10,.9); overflow-y: auto;
}
.modal.show { display: flex; }

.modal-box {
  width: 100%; max-width: 420px;
  background: var(--bg-tile); border: 1px solid var(--line);
  border-radius: 3px; padding: 18px;
}
.modal-head { display: flex; align-items: center; justify-content: space-between;
              margin-bottom: 16px; }

.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 15px; }
.field-label {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--fg-dim);
}
.field-hint { font-size: 12px; line-height: 1.45; color: var(--fg-faint); }

.field input, .field select {
  width: 100%; padding: 10px;
  font-family: var(--sans); font-size: 14px;
  color: var(--fg); background: var(--bg-sunk);
  border: 1px solid var(--line); border-radius: 2px;
  margin-top: 2px;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); }

.field-row { display: grid; grid-template-columns: 90px 1fr; gap: 12px; }

button.primary {
  width: 100%; padding: 11px; cursor: pointer;
  font-family: var(--mono); font-size: 12px; letter-spacing: .1em;
  color: var(--bg); background: var(--accent);
  border: none; border-radius: 2px;
}
button.primary:disabled { opacity: .5; cursor: default; }

.modal-note { margin-top: 10px; font-family: var(--mono); font-size: 11px;
              min-height: 15px; color: var(--fg-faint); }
.modal-note.ok  { color: var(--accent); }
.modal-note.bad { color: var(--bad); }

.muted { color: var(--fg-faint); font-size: 12.5px; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
