/* ============================================================
   LogYour.Net — Amateur Radio Net Logger
   Dark theme with amber accents
   ============================================================ */

:root {
  --bg:           #0d1117;
  --surface:      #161b22;
  --surface-2:    #1c2128;
  --surface-3:    #21262d;
  --border:       #30363d;
  --border-focus: #388bfd;
  --text:         #e6edf3;
  --text-muted:   #8b949e;
  --text-dim:     #6e7681;

  --accent:       #f0a500;
  --accent-faint: rgba(240, 165, 0, 0.12);
  --accent-glow:  rgba(240, 165, 0, 0.25);
  --accent-text:  #000;

  --blue:         #58a6ff;
  --green:        #3fb950;
  --red:          #ff7b72;
  --orange:       #ffa657;

  /* Comment code colors */
  --code-N: #8b949e;
  --code-C: #3fb950;
  --code-A: #f0a500;
  --code-R: #ff7b72;

  --radius:    6px;
  --radius-lg: 10px;
  --shadow:    0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ── Light Theme ─────────────────────────────────────────────── */

[data-theme="light"] {
  --bg:           #faf5f0;
  --surface:      #fffdf9;
  --surface-2:    #f5efe8;
  --surface-3:    #ebe3d9;
  --border:       #d4c9bb;
  --border-focus: #d00000;
  --text:         #1a1a1a;
  --text-muted:   #6b5f54;
  --text-dim:     #8c7f72;

  --accent:       #d00000;          /* Nebraska Scarlet */
  --accent-faint: rgba(208, 0, 0, 0.08);
  --accent-glow:  rgba(208, 0, 0, 0.20);
  --accent-text:  #fffde6;          /* Cream */

  --blue:         #8b1a1a;          /* Scarlet-tinted links */
  --green:        #2d6a2e;
  --red:          #d00000;
  --orange:       #b84600;

  --code-N: #6b5f54;
  --code-C: #2d6a2e;
  --code-A: #d00000;
  --code-R: #a30000;

  --shadow:    0 8px 24px rgba(100, 50, 20, 0.10);
  --shadow-sm: 0 2px 8px  rgba(100, 50, 20, 0.06);
}

/* SVG logo colored by accent */
.nav-logo, .hero-logo-img, .auth-logo-img { color: var(--accent); }

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0) 50%) fixed,
    var(--bg) url('lyn-bg-dark.png') no-repeat center center fixed;
  background-size: cover, cover;
  color: var(--text);
  min-height: 100vh;
}

[data-theme="light"] body {
  background:
    linear-gradient(to bottom, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0) 50%) fixed,
    var(--bg) url('lyn-bg-light.png') no-repeat center center fixed;
  background-size: cover, cover;
}

a { color: var(--blue); }
code { font-family: 'SF Mono', 'Menlo', 'Monaco', 'Courier New', monospace; font-size: 0.875em; }


/* ── Top Navigation ──────────────────────────────────────── */

.topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  height: 54px;
  padding: 0 1.25rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  display: flex;
  align-items: baseline;
  gap: 0.625rem;
  min-width: 0;
  flex: 1 1 0;
}

.nav-home {
  display: flex;
  align-items: baseline;
  gap: 0.625rem;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.nav-logo {
  height: 30px;
  width: auto;
  flex-shrink: 0;
}

.nav-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.nav-greeting {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
  letter-spacing: 0.02em;
}

.nav-clock {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
}
.clock-local {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
}
.clock-utc {
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex: 1 1 0;
}



/* ── Main Layout ─────────────────────────────────────────── */

main {
  max-width: 860px;
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
}


/* ── Hero / No-session View ──────────────────────────────── */

.center-view {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding-top: 15vh;
}

.home-view {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
  padding: 4vh 1rem 3rem;
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.home-view .hero-card {
  padding: 1.75rem 2rem 1.5rem;
  flex: 0 0 340px;
  margin: 0;
}

.home-view .hero-card h1 {
  font-size: 1.75rem;
  margin-bottom: 0.35rem;
}

.home-view .hero-card p {
  margin-bottom: 1.25rem;
}

.home-view .hero-card .hero-greeting {
  margin-bottom: 1.25rem;
}

.home-view .hero-icon { margin-bottom: 0.5rem; }
.home-view .hero-logo-img { height: 60px; }

.home-sessions-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem 1.5rem;
  flex: 1 1 420px;
  max-width: 640px;
  box-shadow: var(--shadow);
}

.home-sessions-heading {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.85rem;
}

.home-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 1.25rem 0.5rem;
  font-style: italic;
  margin: 0;
}

/* Collapse to a single column on narrow viewports */
@media (max-width: 820px) {
  .home-view {
    flex-direction: column;
    align-items: stretch;
  }
  .home-view .hero-card {
    flex: 0 0 auto;
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
  }
  .home-sessions-card {
    flex: 1 1 auto;
    max-width: 640px;
    width: 100%;
    margin: 0 auto;
  }
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  text-align: center;
  max-width: 380px;
  width: 100%;
  margin: 0 auto;
  box-shadow: var(--shadow);
}

.hero-icon { margin-bottom: 0.75rem; }
.hero-logo-img { height: 72px; width: auto; }

.hero-card h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.hero-card p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.hero-card .hero-greeting {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 2rem;
}

.hero-card .btn {
  display: block;
  width: 100%;
  margin-bottom: 0.75rem;
  justify-content: center;
}


/* ── Cards ───────────────────────────────────────────────── */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

#checkin-form {
  position: sticky;
  top: 54px;
  z-index: 50;
  box-shadow: var(--shadow);
}

/* ── Theme toggle button ──────────────────────────────────── */

.btn-theme-toggle {
  background: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0.25rem 0.4rem;
  border-radius: var(--radius);
  color: var(--text-muted);
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.btn-theme-toggle:hover {
  color: var(--text);
  background: var(--surface-2);
  border-color: var(--border);
}

.card-heading {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.checkin-alert {
  background: rgba(255,80,80,0.15);
  border: 1px solid var(--red);
  color: var(--red);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
}

/* ── Session Header ──────────────────────────────────────── */

.session-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.75rem 0;
}

.session-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.session-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.session-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.unique-count-block {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--accent-faint);
  border: 1px solid var(--accent-glow);
  border-radius: 8px;
  padding: 0.4rem 0.9rem;
  flex-shrink: 0;
}
.unique-count-number {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.unique-count-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}


/* ── Form Layout ─────────────────────────────────────────── */

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

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.field-group.flex-1 { flex: 1; min-width: 160px; }
.field-group.align-end { justify-content: flex-end; }

.field-group label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.field-group label .label-hint {
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  color: var(--text-dim);
  margin-left: 0.25rem;
}


/* ── Inputs ──────────────────────────────────────────────── */

input[type="text"],
input[type="password"],
input[type="date"],
input[type="datetime-local"],
select,
textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 0.45rem 0.65rem;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
input[type="datetime-local"]:focus,
select:focus,
textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(56, 139, 253, 0.15);
}

/* Make placeholders clearly distinguishable from real input — the browser
   default inherits from the input's color, which for the callsign field is
   a bold blue and reads as pre-filled data. */
input::placeholder,
textarea::placeholder {
  color: var(--text-dim);
  opacity: 0.55;
  font-weight: 400;
  font-style: italic;
  letter-spacing: normal;
}

/* Callsign input: monospace, blue. Accepts a full command line —
   "CALLSIGN [-flags] [comment]" — so it needs to stretch, and we can't
   text-transform: uppercase the whole field or the comment would shout.
   The JS input handler uppercases just the first token. */
#callsign-input {
  font-family: 'SF Mono', 'Menlo', 'Monaco', 'Courier New', monospace;
  font-size: 1rem;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.03em;
  width: 100%;
  min-width: 220px;
}

#name-input { width: 160px; }

/* Error flash on callsign input */
@keyframes errorFlash {
  0%   { border-color: var(--border); box-shadow: none; }
  40%  { border-color: var(--red); box-shadow: 0 0 0 3px rgba(255,123,114,0.25); }
  100% { border-color: var(--border); box-shadow: none; }
}
input.shake { animation: errorFlash 0.55s ease; }


/* ── Autocomplete Dropdown ───────────────────────────────── */

.autocomplete-wrap { position: relative; }

.autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 3px);
  left: 0;
  min-width: 260px;
  width: 100%;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 300;
  overflow: hidden;
  max-height: 220px;
  overflow-y: auto;
}

/* Net name dropdown sits inside a modal (z-index 500), so needs to be above it */
#ns-name-dropdown { z-index: 600; }

.ac-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
}
.ac-item:last-child { border-bottom: none; }
.ac-item:hover, .ac-item.ac-highlighted {
  background: var(--accent-faint);
}

.ac-callsign {
  font-family: 'SF Mono', 'Menlo', 'Monaco', monospace;
  font-weight: 700;
  color: var(--blue);
  font-size: 0.9rem;
  min-width: 88px;
}
.ac-name {
  color: var(--text);
  font-size: 0.875rem;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ac-class {
  font-size: 0.7rem;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.1rem 0.3rem;
  flex-shrink: 0;
}
.ac-new {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-style: italic;
}


/* ── Code Selector ───────────────────────────────────────── */

.code-selector {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.code-opt {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  user-select: none;
  transition: background 0.12s, border-color 0.12s;
}

.code-opt input[type="radio"] { display: none; }

.code-letter {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
}

.code-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
  transition: color 0.12s;
}

/* Color coding */
.code-N .code-letter { color: var(--code-N); }
.code-C .code-letter { color: var(--code-C); }
.code-A .code-letter { color: var(--code-A); }
.code-R .code-letter { color: var(--code-R); }

/* Selected state — driven by JS adding .code-selected */
.code-opt.code-selected {
  background: var(--accent-faint);
  border-color: currentColor;
}
.code-N.code-selected { border-color: var(--code-N); }
.code-C.code-selected { border-color: var(--code-C); }
.code-A.code-selected { border-color: var(--code-A); }
.code-R.code-selected { border-color: var(--code-R); }

.code-opt.code-selected .code-desc { color: inherit; }


/* ── Flag Legend (check-in input shortcuts) ──────────────── */

.flag-legend {
  font-size: 0.72rem;
  color: var(--text-muted);
  padding: 0.5rem 0.65rem;
  margin: 0.5rem 0 0.25rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1rem;
  line-height: 1.4;
}

.flag-legend code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
  color: var(--accent);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.05rem 0.3rem;
  margin-right: 0.25rem;
}

.flag-legend .flag-legend-intro {
  white-space: nowrap;
}

.flag-legend .flag-group {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  padding-left: 0.75rem;
  border-left: 1px solid var(--border);
}

.flag-legend .flag-item {
  white-space: nowrap;
}

.flag-legend .flag-legend-note {
  flex-basis: 100%;
  font-style: italic;
  color: var(--text-dim);
  padding-top: 0.15rem;
}


/* ── Form Footer ─────────────────────────────────────────── */

.form-footer {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding-top: 0.25rem;
}

.key-hint {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.lookup-status {
  font-size: 0.8rem;
  flex: 1;
  text-align: right;
}
.lookup-status.qs-ok    { color: var(--green); }
.lookup-status.qs-err   { color: var(--red); }
.lookup-status.qs-busy  { color: var(--text-muted); }


/* ── Buttons ─────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.45rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s, background 0.15s;
  text-decoration: none;
}
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn:not(:disabled):hover  { opacity: 0.82; }
.btn:not(:disabled):active { opacity: 0.65; }

.btn-primary { background: var(--accent); color: var(--accent-text); font-weight: 600; }
.btn-ghost   { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:not(:disabled):hover { background: var(--surface-2); opacity: 1; }
.btn-danger  { background: transparent; border-color: var(--red); color: var(--red); }
.btn-danger:not(:disabled):hover { background: rgba(255,123,114,0.1); opacity: 1; }

.btn-sm { padding: 0.3rem 0.65rem; font-size: 0.8rem; }
.btn-lg { padding: 0.65rem 1.5rem; font-size: 1rem; }


/* ── Check-in List ───────────────────────────────────────── */

.list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.875rem;
}

.list-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 0.4rem;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 10px;
}

#checkin-table-wrap {
  overflow-x: auto;
  max-height: 60vh;
  overflow-y: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.checkin-table {
  width: 100%;
  border-collapse: collapse;
}

.checkin-table thead {
  position: sticky;
  top: 0;
  background: var(--surface-2);
  z-index: 1;
}

.checkin-table th {
  text-align: left;
  padding: 0.45rem 0.75rem;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.checkin-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.checkin-row:last-child td { border-bottom: none; }
.checkin-row:hover { background: var(--surface-2); }

/* New-row highlight */
.checkin-row.row-flash {
  animation: rowFlash 1.2s ease-out;
}
@keyframes rowFlash {
  0%   { background: var(--accent-faint); }
  100% { background: transparent; }
}

/* Column sizing */
.col-seq     { width: 36px; }
.col-call    { width: 110px; }
.col-name    { }
.col-code    { width: 110px; } /* wider to fit Ack button */
.col-comment { }
.col-time    { width: 70px; }
.col-del     { width: 32px; text-align: right; }

.cell-seq  { color: var(--text-dim); font-size: 0.8rem; }
.cell-call {
  font-family: 'SF Mono', 'Menlo', 'Monaco', monospace;
  font-weight: 700;
  color: var(--blue);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}
.cell-license {
  display: block;
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.03em;
  margin-top: 0.1rem;
}

.cell-name    { }
.cell-notes {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.3;
  margin-top: 0.1rem;
}
.cell-comment {
  font-size: 0.875rem;
  cursor: text;
  min-width: 120px;
}
.cell-comment:hover .comment-text { text-decoration: underline dotted var(--border); text-underline-offset: 3px; }
.comment-text { color: var(--text-muted); font-style: italic; }
/* Amber "click to add…" prompt on pending rows that still need a comment */
.comment-text.comment-needed::after {
  content: 'click to add…';
  color: var(--accent);
  font-style: italic;
  font-size: 0.8rem;
}
/* Seamless inline edit input — overrides the global input[type="text"] rules */
.cell-comment .comment-edit {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-focus);
  border-radius: 0;
  padding: 0;
  width: 100%;
  color: var(--text);
  font-size: 0.875rem;
  font-style: normal;
  box-shadow: none;
}
.cell-comment .comment-edit:focus {
  border-bottom-color: var(--accent);
  box-shadow: none;
}
.cell-time    { color: var(--text-dim); font-size: 0.78rem; white-space: nowrap; }

.empty-row td {
  text-align: center;
  color: var(--text-muted);
  padding: 2.5rem;
  font-style: italic;
}

/* Code badges */
.code-badge {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: 'SF Mono', monospace;
  background: rgba(255,255,255,0.04);
}
.badge-N { color: var(--code-N); }
.badge-C { color: var(--code-C); background: rgba(63,185,80,0.1); }
.badge-A { color: var(--code-A); background: rgba(240,165,0,0.1); }
.badge-R { color: var(--code-R); background: rgba(255,123,114,0.1); }

/* Pending rows (C / A / R not yet acknowledged) */
.row-pending { background: var(--accent-faint); }
.row-pending .cell-seq { box-shadow: inset 3px 0 0 var(--accent); }
.row-pending:hover { background: var(--accent-glow); }

/* Partial callsign rows (??xxx) */
.row-partial { background: rgba(255,200,50,0.10); }
.row-partial .cell-seq { box-shadow: inset 3px 0 0 #e6a817; }
.row-partial .cell-call { color: #e6a817; }

/* Input with inline button */
.input-with-btn { display: flex; gap: 0.4rem; align-items: center; }
.input-with-btn input { flex: 1; }

/* Separator row */
.separator-row { background: transparent; }
.separator-row:hover { background: transparent; }
.separator-cell {
  padding: 2px 0 !important;
  border: none;
}
.separator-cell::before {
  content: '';
  display: block;
  border-top: 2px dashed var(--accent);
  opacity: 0.75;
}
.separator-row .btn-del { opacity: 0.3; }
.separator-row:hover .btn-del { opacity: 1; }

/* Separator button */
.btn-separator {
  margin-left: auto;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-separator:not(:disabled):hover { background: var(--accent-faint); opacity: 1; }

/* Net Control row */
.row-nc .cell-seq { box-shadow: inset 3px 0 0 #4a9eff; }
.nc-badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #4a9eff;
  border: 1px solid #4a9eff;
  border-radius: 3px;
  padding: 0.05rem 0.3rem;
  vertical-align: middle;
  line-height: 1.4;
  margin-left: 0.3rem;
}

/* Acknowledge button */
.btn-ack {
  background: none;
  border: 1px solid var(--green);
  color: var(--green);
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  margin-left: 0.4rem;
  vertical-align: middle;
  line-height: 1.5;
  transition: background 0.12s;
  white-space: nowrap;
}
.btn-ack:hover { background: rgba(63, 185, 80, 0.15); }

/* Pending badge in list header */
.pending-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent-text);
  background: var(--accent);
  padding: 0.12rem 0.45rem;
  border-radius: 10px;
  margin-left: 0.25rem;
  animation: pendingPulse 2.5s ease-in-out infinite;
}
@keyframes pendingPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.55; }
}

/* Delete button */
.btn-del {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  transition: color 0.12s, background 0.12s;
}
.btn-del:hover { color: var(--red); background: rgba(255,123,114,0.1); }

.btn-edit {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  transition: color 0.12s, background 0.12s;
}
.btn-edit:hover { color: var(--accent); background: var(--accent-faint); }


/* ── Modals ──────────────────────────────────────────────── */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  padding: 1rem;
}

.modal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.modal-wide { max-width: 660px; }
.modal-tall { max-height: 90vh; }
.modal-xlwide { max-width: 860px; }

/* ── Callsign Manager Modal ─────────────────────────────── */

.csm-header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.csm-count {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.csm-toolbar {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.csm-toolbar input {
  flex: 1;
}

.csm-body {
  padding: 0 !important;
  overflow-y: auto;
}

.csm-table {
  font-size: 0.85rem;
}

.csm-table th {
  position: sticky;
  top: 0;
  background: var(--surface-2);
  z-index: 1;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.csm-sortable:hover { color: var(--accent); }
.csm-sortable.sort-asc::after  { content: ' ▲'; font-size: 0.6em; }
.csm-sortable.sort-desc::after { content: ' ▼'; font-size: 0.6em; }

.csm-table td {
  padding: 0.4rem 0.75rem;
}

.csm-call {
  font-family: 'SF Mono', 'Menlo', 'Monaco', monospace;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.04em;
  cursor: pointer;
}
.csm-call:hover { text-decoration: underline; }

.csm-notes {
  color: var(--text-muted);
  font-size: 0.8rem;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.csm-count-cell {
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.csm-date-cell {
  font-size: 0.78rem;
  color: var(--text-dim);
  white-space: nowrap;
}

.csm-actions {
  white-space: nowrap;
  text-align: right;
}

.csm-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 2.5rem;
  font-style: italic;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.modal-header h2 { font-size: 1rem; font-weight: 600; }

.modal-body {
  padding: 1.25rem;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 0.875rem 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  flex-shrink: 0;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 0.2rem;
  border-radius: 3px;
  transition: color 0.12s;
}
.modal-close:hover { color: var(--text); }

/* Spacing between field groups inside modals */
.modal-body .field-group { margin-bottom: 0.875rem; }
.modal-body .field-group:last-child { margin-bottom: 0; }


/* ── Settings Modal ──────────────────────────────────────── */

.settings-section {
  margin-bottom: 1.75rem;
}
.settings-section:last-child { margin-bottom: 0; }

.settings-section h3 {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: 0.875rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}

.settings-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  cursor: pointer;
  user-select: none;
}


.danger-zone h3 { border-color: rgba(255,123,114,0.3); }

.danger-btns {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}


/* ── Sessions List (home view) ───────────────────────────── */

.session-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
  background: var(--bg);
  transition: border-color 0.12s;
}
.session-item:hover { border-color: var(--accent); }
.session-item.session-active { border-color: var(--accent); background: var(--accent-faint); }

.session-item-info { flex: 1; min-width: 0; }
.session-item-name {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.session-item-meta { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.15rem; }
.session-item-badge {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-faint);
  border: 1px solid var(--accent);
  border-radius: 3px;
  padding: 0.1rem 0.35rem;
  margin-left: 0.4rem;
}

.session-item-actions { display: flex; gap: 0.35rem; flex-shrink: 0; }


/* ── Export Modal ────────────────────────────────────────── */

.export-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.export-tabs { display: flex; gap: 0; }

.tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  padding: 0.4rem 0.875rem;
  cursor: pointer;
  font-size: 0.875rem;
  font-family: inherit;
  transition: color 0.12s, border-color 0.12s;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }

.export-actions { display: flex; gap: 0.5rem; }

#export-content {
  width: 100%;
  height: 360px;
  background: var(--bg);
  color: var(--text);
  font-family: 'SF Mono', 'Menlo', 'Monaco', 'Courier New', monospace;
  font-size: 0.8rem;
  line-height: 1.6;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem;
  resize: vertical;
}


/* ── Conditions Card (weather + solar) ──────────────────── */

/* The conditions block is a .card, so it inherits the surface background,
   border, radius, and padding. These overrides just tighten vertical
   rhythm and keep the refresh button flush to the right of the heading. */
.conditions-bar {
  padding: 0.9rem 1.1rem;
}

.conditions-bar .card-heading {
  margin-bottom: 0.55rem;
}

.conditions-bar .card-heading .btn-cond-refresh {
  margin-left: auto;
}

.cond-row {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  min-height: 1.4em;
}

.cond-row + .cond-row { margin-top: 0.25rem; }

.cond-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-transform: uppercase;
  min-width: 40px;
  flex-shrink: 0;
}

.cond-nws-link {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  text-decoration: none;
  flex-shrink: 0;
  opacity: 0.6;
  transition: opacity 0.15s, color 0.15s;
}
.cond-nws-link:hover { opacity: 1; color: var(--blue); }

.cond-body {
  font-size: 0.83rem;
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  flex-wrap: wrap;
  line-height: 1.5;
}

/* Individual value tokens */
.cond-val     { color: var(--text); }
.cond-muted   { color: var(--text-muted); font-size: 0.78rem; }
.cond-sep     { color: var(--border); }
.cond-loading { color: var(--text-dim); font-style: italic; }
.cond-err     { color: var(--red); font-size: 0.8rem; }

/* Temperature */
.wx-temp { font-weight: 600; color: var(--text); font-size: 0.9rem; }

/* Band condition colour coding */
.cond-good { color: var(--green); font-weight: 600; }
.cond-fair { color: var(--accent); font-weight: 600; }
.cond-poor { color: var(--red); }

/* K-index colour helpers reuse cond-good/fair/poor */

.cond-updated {
  font-size: 0.7rem;
  color: var(--text-dim);
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
}

.btn-cond-refresh {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.95rem;
  padding: 0.05rem 0.2rem;
  border-radius: 3px;
  line-height: 1;
  transition: color 0.12s, transform 0.3s;
}
.btn-cond-refresh:hover { color: var(--accent); }
.btn-cond-refresh.spinning { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }


/* ── Map Modal ───────────────────────────────────────────── */

.modal-map {
  max-width: 960px;
  width: 95vw;
  max-height: 88vh;
  overflow: hidden;
}

.map-header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.map-count-badge {
  font-size: 0.75rem;
  color: var(--text-muted);
}

#checkin-map {
  flex: 1;
  min-height: 400px;
  width: 100%;
}

#map-no-location {
  flex-shrink: 0;
  padding: 0.5rem 1rem;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
  max-height: 7rem;
  overflow-y: auto;
  font-size: 0.78rem;
}

.map-no-loc-label {
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.map-unmapped-call {
  color: var(--text-dim);
  white-space: nowrap;
}

.map-error {
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
}

/* Leaflet popup dark theme */
.map-popup .leaflet-popup-content-wrapper {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.map-popup .leaflet-popup-tip {
  background: var(--surface-2);
}
.map-popup .leaflet-popup-content {
  margin: 0.55rem 0.75rem;
  line-height: 1.6;
  font-size: 0.82rem;
}
.mp-call {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
}
.mp-name { display: block; color: var(--text); }
.mp-city { display: block; color: var(--text-muted); font-size: 0.78rem; }
.mp-via  { display: block; color: var(--text-dim);   font-size: 0.72rem; margin-top: 0.2rem; }


/* ── Responsive ──────────────────────────────────────────── */

/* ── Auth Overlay ────────────────────────────────────────── */

#auth-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
  padding-bottom: 15vh;
}

.auth-box {
  width: 100%;
  max-width: 360px;
  text-align: center;
}

.auth-logo {
  margin-bottom: 0.75rem;
}

.auth-logo-img {
  height: 80px;
  width: auto;
}

.auth-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 0.25rem;
}

.auth-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
}

.auth-warning {
  font-size: 0.72rem;
  color: var(--red);
  margin: 0 0 1.25rem;
}

.auth-tabs {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.auth-tab {
  flex: 1;
  padding: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.auth-tab.active {
  background: var(--accent);
  color: var(--accent-text);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.auth-input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 0.9rem;
  box-sizing: border-box;
}

.auth-input:focus {
  outline: none;
  border-color: var(--border-focus);
}

.auth-submit {
  width: 100%;
  padding: 0.65rem;
  font-size: 0.9rem;
}

.auth-error {
  font-size: 0.8rem;
  color: var(--red, #f85149);
  min-height: 1.2em;
  margin: 0;
}

.pw-strength-wrap { display: flex; align-items: center; gap: 0.6rem; margin-top: -0.25rem; }
.pw-strength {
  flex: 1;
  height: 5px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.pw-strength-bar {
  height: 100%;
  width: 0;
  border-radius: 3px;
  transition: width 0.25s ease, background-color 0.25s ease;
}
.pw-strength-label {
  font-size: 0.72rem;
  font-weight: 600;
  min-width: 3.5rem;
  text-align: right;
  color: var(--text-muted);
}

/* Nav dropdown menu */
.nav-menu { position: relative; }
.nav-menu-trigger[aria-expanded="true"] {
  color: var(--text);
  background: var(--surface-2);
  border-color: var(--border);
}
.nav-menu-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 180px;
  padding: 0.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.nav-menu-panel[hidden] { display: none; }
.nav-menu-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.65rem;
  background: none;
  border: 0;
  border-radius: calc(var(--radius) - 2px);
  color: var(--text);
  font-size: 0.85rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s;
}
.nav-menu-item:hover,
.nav-menu-item:focus-visible {
  background: var(--surface-2);
  outline: none;
}
.nav-menu-icon {
  flex-shrink: 0;
  color: var(--text-muted);
}
.nav-menu-item:hover .nav-menu-icon,
.nav-menu-item:focus-visible .nav-menu-icon {
  color: var(--text);
}
.nav-menu-divider {
  height: 1px;
  margin: 0.25rem 0.1rem;
  background: var(--border);
}


/* ── Wide two-column layout ─────────────────────────────── */

@media (min-width: 1200px) {
  main {
    max-width: 1400px;
  }

  #active-session-view {
    display: grid;
    grid-template-columns: minmax(380px, 1fr) minmax(400px, 1.4fr);
    grid-template-rows: auto auto 1fr;
    gap: 0 1.5rem;
  }

  .session-header {
    grid-column: 1 / -1;
  }

  .conditions-bar {
    grid-column: 1;
    grid-row: 2;
  }

  #checkin-form {
    grid-column: 1;
    grid-row: 3;
    align-self: start;
  }

  #checkin-list-card {
    grid-column: 2;
    grid-row: 2 / -1;
  }

  /* Let the list use more vertical space in the wider layout */
  #checkin-table-wrap {
    max-height: calc(100vh - 160px);
  }
}

@media (max-width: 600px) {
  .session-header { flex-direction: column; }
  .unique-count-block { align-self: flex-start; }
  .session-actions { width: 100%; justify-content: flex-end; }
  .form-row { flex-direction: column; }
  .field-group, #callsign-input, #name-input { width: 100%; }
  .code-selector { flex-wrap: wrap; }
  .modal-box { max-height: 95vh; }
}


/* ── Flatpickr Date/Time Picker ───────────────────────────────── */

/* altInput is type="text", styled by the input[type="text"] rule above.
   Override flatpickr's default cursor to make it feel like a picker. */
.flatpickr-input[readonly] { cursor: pointer; }

.flatpickr-calendar {
  background:    var(--surface-2);
  border:        1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow:    var(--shadow);
  color:         var(--text);
  font-family:   inherit;
  font-size:     0.875rem;
  padding:       0.25rem 0 0.5rem;  /* no horizontal padding — avoids squeezing the fixed-width day grid */
}

/* Arrow pointing to the input */
.flatpickr-calendar.arrowTop::before  { border-bottom-color: var(--border); }
.flatpickr-calendar.arrowTop::after   { border-bottom-color: var(--surface-2); }
.flatpickr-calendar.arrowBottom::before { border-top-color: var(--border); }
.flatpickr-calendar.arrowBottom::after  { border-top-color: var(--surface-2); }

/* Month / Year header */
.flatpickr-months .flatpickr-month { background: transparent; color: var(--text); fill: var(--text); }
.flatpickr-current-month            { color: var(--text); font-size: 1rem; font-weight: 600; }

.flatpickr-current-month .flatpickr-monthDropdown-months {
  background:  var(--surface-2);
  color:       var(--text);
  border:      none;
  outline:     none;
  appearance:  none;
  font-weight: 600;
}
.flatpickr-current-month .flatpickr-monthDropdown-months:hover { background: var(--surface-3); }
.flatpickr-current-month input.cur-year                        { background: transparent; color: var(--text); border: none; outline: none; font-weight: 600; }

/* Prev / Next month arrows */
.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month          { fill: var(--text-muted); padding: 0.35rem 0.5rem; }
.flatpickr-months .flatpickr-prev-month:hover    svg,
.flatpickr-months .flatpickr-next-month:hover    svg { fill: var(--accent); }

/* Weekday row */
.flatpickr-weekdays                  { background: transparent; }
span.flatpickr-weekday               { background: transparent; color: var(--text-muted); font-size: 0.72rem; font-weight: 700; }

/* Day cells — do NOT override width/height/max-width; flatpickr's grid math depends on them */
.flatpickr-day {
  background:    transparent;
  border:        1px solid transparent;
  border-radius: var(--radius);
  color:         var(--text);
}
.flatpickr-day:hover,
.flatpickr-day.prevMonthDay:hover,
.flatpickr-day.nextMonthDay:hover    { background: var(--surface-3); border-color: transparent; color: var(--text); }
.flatpickr-day.today                 { border-color: var(--accent); }
.flatpickr-day.today:hover           { background: var(--accent-faint); border-color: var(--accent); color: var(--text); }
.flatpickr-day.selected,
.flatpickr-day.selected:hover        { background: var(--accent); border-color: var(--accent); color: var(--accent-text); font-weight: 700; }
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay          { color: var(--text-dim); }
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover { color: var(--text-dim); cursor: default; }

/* Date + time select row in New Session modal */
.datetime-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.datetime-row .flatpickr-input { flex: 1; min-width: 0; cursor: pointer; }
.time-sep { color: var(--text-muted); font-weight: 700; flex-shrink: 0; }
.datetime-row select { width: auto; flex-shrink: 0; }

/* ── Admin Modal ──────────────────────────────────────── */

.admin-header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.admin-count {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.admin-body {
  padding: 0.75rem 1.25rem;
  overflow-y: auto;
}
.admin-table {
  width: 100%;
  font-size: 0.85rem;
}
.admin-table th {
  white-space: nowrap;
}
.admin-callsign {
  font-family: 'SF Mono', 'Menlo', 'Consolas', monospace;
  font-weight: 600;
  color: var(--blue);
  text-transform: uppercase;
}

/* ── Help Modal Content ──────────────────────────────────── */

.help-body {
  padding: 1.25rem 1.5rem;
  overflow-y: auto;
  line-height: 1.7;
  font-size: 0.92rem;
  color: var(--text);
}
.help-body h1 {
  font-size: 1.4rem;
  color: var(--accent);
  margin: 0 0 0.75rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}
.help-body h2 {
  font-size: 1.1rem;
  color: var(--accent);
  margin: 1.5rem 0 0.5rem;
}
.help-body h3 {
  font-size: 0.95rem;
  color: var(--text);
  margin: 1rem 0 0.35rem;
}
.help-body p {
  margin: 0.4rem 0;
}
.help-body ul {
  margin: 0.4rem 0 0.4rem 1.25rem;
  padding: 0;
}
.help-body li {
  margin: 0.25rem 0;
}
.help-body code {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.1em 0.35em;
  font-size: 0.85em;
  font-family: 'SF Mono', 'Menlo', 'Consolas', monospace;
}
.help-body strong {
  color: var(--text);
}
.help-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0;
  font-size: 0.85rem;
}
.help-table th,
.help-table td {
  border: 1px solid var(--border);
  padding: 0.4rem 0.6rem;
  text-align: left;
}
.help-table th {
  background: var(--surface-2);
  font-weight: 600;
  color: var(--text);
}
.help-table td {
  background: var(--surface);
}
