/* ===========================================================
   COMBO LOG — design tokens
   =========================================================== */
:root {
  --ink: #12141c;
  --ink-deep: #0c0e15;
  --panel: #1c1f2c;
  --panel-raised: #262a3a;
  --line: rgba(232, 226, 208, 0.10);
  --line-strong: rgba(232, 226, 208, 0.18);
  --parchment: #ece6d4;
  --muted: #8d92ab;

  --gold: #d7a23b;
  --gold-soft: rgba(215, 162, 59, 0.14);
  --gold-line: rgba(215, 162, 59, 0.45);

  --teal: #3fa9a0;
  --teal-soft: rgba(63, 169, 160, 0.14);

  --rose: #c2547a;
  --rose-soft: rgba(194, 84, 122, 0.14);

  --danger: #c2554a;
  --danger-soft: rgba(194, 85, 74, 0.14);

  --font-display: "Rajdhani", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius: 10px;
  --radius-sm: 7px;
  --shadow-soft: 0 12px 30px -16px rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--ink);
  color: var(--parchment);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

button, input, select, textarea {
  font-family: var(--font-body);
  color: inherit;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.01em;
}

::selection { background: var(--gold-soft); }

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

/* faint duel-field rail texture behind everything, fixed, decorative only */
.rail-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 900px 500px at 15% -10%, rgba(215, 162, 59, 0.07), transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 10%, rgba(63, 169, 160, 0.06), transparent 60%),
    var(--ink-deep);
}

/* ===========================================================
   Topbar
   =========================================================== */
.topbar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}
.brand-mark { color: var(--gold); font-size: 1.3rem; }

.topbar-search {
  flex: 1 1 280px;
  display: flex;
  max-width: 460px;
}
.topbar-search input {
  flex: 1;
  background: var(--panel);
  border: 1px solid var(--line);
  border-right: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  padding: 9px 12px;
  font-size: 0.92rem;
}
.topbar-search input:focus { outline: 2px solid var(--gold-line); outline-offset: -2px; }
.topbar-search button {
  background: var(--panel-raised);
  border: 1px solid var(--line);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--gold);
  width: 40px;
  cursor: pointer;
}

.topbar-nav { display: flex; gap: 18px; margin-left: auto; }
.topbar-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  color: var(--muted);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.topbar-nav a:hover { color: var(--parchment); }
.topbar-nav a.active { color: var(--gold); border-bottom-color: var(--gold); }

/* ===========================================================
   Layout
   =========================================================== */
.page { max-width: 1040px; margin: 0 auto; padding: 32px 28px 80px; }

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 18px;
}
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { margin: 0 4px; opacity: 0.6; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--gold);
  margin: 0 0 6px;
}
h1 { font-size: 1.7rem; }
.deck-notes { color: var(--muted); margin: 8px 0 0; max-width: 60ch; }
.head-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.foot-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
  padding: 30px 0 50px;
}

/* ===========================================================
   Buttons
   =========================================================== */
.btn {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: #1b1304; }
.btn-gold:hover { background: #e3af4c; }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--parchment); }
.btn-ghost:hover { border-color: var(--gold-line); color: var(--gold); }
.btn-danger-ghost { background: transparent; border-color: var(--danger-soft); color: var(--danger); }
.btn-danger-ghost:hover { border-color: var(--danger); background: var(--danger-soft); }
.btn-small { padding: 7px 14px; font-size: 0.8rem; }

/* ===========================================================
   Flash messages
   =========================================================== */
.flash-stack { max-width: 1040px; margin: 18px auto 0; padding: 0 28px; }
.flash { padding: 10px 14px; border-radius: var(--radius-sm); font-size: 0.88rem; margin-bottom: 8px; }
.flash-error { background: var(--danger-soft); color: var(--danger); border: 1px solid var(--danger); }
.flash-success { background: var(--teal-soft); color: var(--teal); border: 1px solid var(--teal); }

/* ===========================================================
   Deck grid / tiles
   =========================================================== */
.deck-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.deck-tile {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 110px;
  transition: border-color 0.15s ease, transform 0.12s ease;
}
.deck-tile:hover { border-color: var(--gold-line); transform: translateY(-2px); }
.deck-tile-name { font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; display: block; }
.deck-tile-archetype {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
  margin-top: 4px;
}
.deck-tile-bottom { display: flex; justify-content: space-between; margin-top: 14px; font-size: 0.78rem; color: var(--muted); }

/* ===========================================================
   Empty state
   =========================================================== */
.empty-state {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
  color: var(--parchment);
}
.empty-sub { color: var(--muted); font-size: 0.9rem; max-width: 46ch; margin: 8px auto 0; }

/* ===========================================================
   Tags / chips (read-only, link style)
   =========================================================== */
.tag-filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tag-chip {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.tag-chip:hover { border-color: var(--gold-line); color: var(--parchment); }
.tag-chip.tag-card { color: var(--teal); border-color: rgba(63, 169, 160, 0.35); }
.tag-chip.tag-situation { color: var(--rose); border-color: rgba(194, 84, 122, 0.35); }
.tag-chip.is-active { background: var(--gold-soft); border-color: var(--gold); color: var(--gold); }
.tag-n { opacity: 0.6; font-size: 0.7rem; }

.mini-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid currentColor;
  opacity: 0.85;
}
.mini-tag.tag-situation { color: var(--rose); }

/* ===========================================================
   Combo grid / tiles
   =========================================================== */
.combo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}
.combo-tile {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.15s ease, transform 0.12s ease;
}
.combo-tile:hover { border-color: var(--gold-line); transform: translateY(-2px); }
.combo-tile-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.combo-tile-title { font-family: var(--font-display); font-weight: 600; font-size: 1rem; }
.combo-tile-deck { font-family: var(--font-mono); font-size: 0.7rem; color: var(--gold); margin: -6px 0 0; text-transform: uppercase; letter-spacing: 0.05em; }
.combo-tile-hand { display: flex; flex-wrap: wrap; gap: 5px; }
.hand-chip {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: var(--teal-soft);
  color: var(--teal);
  padding: 3px 8px;
  border-radius: 6px;
}
.hand-chip-more { color: var(--muted); background: transparent; border: 1px solid var(--line-strong); }
.combo-tile-foot { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 0.75rem; color: var(--muted); margin-top: auto; }
.step-count { font-family: var(--font-mono); }

.going-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
  border: 1px solid currentColor;
}
.going-primo { color: var(--gold); }
.going-secondo { color: var(--teal); }

/* ===========================================================
   Combo detail page — chain visualization (signature element)
   =========================================================== */
.combo-head { align-items: center; }
.combo-section { margin: 34px 0; }
.combo-section-title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 14px;
}
.muted-note { color: var(--muted); font-size: 0.9rem; }

.hand-fan { display: flex; flex-wrap: wrap; gap: 12px; }
.card-chip-img {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 14px 8px 8px;
  font-size: 0.92rem;
}
.card-chip-img img { width: 56px; height: 80px; object-fit: cover; border-radius: 5px; display: block; }
.card-chip-sm { padding: 6px 12px 6px 6px; font-size: 0.84rem; }
.card-chip-sm img { width: 42px; height: 60px; }

.chain-rail {
  position: relative;
  padding-left: 26px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.chain-rail::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), rgba(215, 162, 59, 0.15));
}
.chain-link { position: relative; }
.chain-link::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 6px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--gold);
}
.chain-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.chain-link-action::before { border-color: var(--teal); background: var(--ink); }
.chain-link-action .chain-badge { color: var(--teal); }
.chain-body {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.chain-text { margin: 0; font-size: 0.96rem; }
.chain-cards { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

.end-board-panel {
  background: linear-gradient(160deg, var(--gold-soft), transparent 60%), var(--panel);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.end-board-text { margin: 0 0 12px; font-size: 0.96rem; }
.combo-notes { color: var(--parchment); max-width: 70ch; }

.danger-zone { margin-top: 50px; border-top: 1px solid var(--line); padding-top: 18px; }

/* ===========================================================
   Forms (deck modal, combo form)
   =========================================================== */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field > span:first-child { font-size: 0.82rem; color: var(--muted); font-family: var(--font-mono); }
.field input[type="text"], .field textarea, .field select,
.search-form select {
  background: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.94rem;
  resize: vertical;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--gold-line); outline-offset: 1px; }
.field-hint { font-size: 0.76rem; color: var(--muted); }

.form-title { font-size: 1.5rem; margin-bottom: 22px; }
.combo-form { max-width: 720px; }
.form-row { margin-bottom: 16px; }
.form-row-split { display: flex; gap: 14px; }
.form-row-split .grow { flex: 1; }
.form-row-split select { min-width: 160px; }

.field-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}
.field-card-gold { border-color: var(--gold-line); }
.field-help { font-size: 0.82rem; color: var(--muted); margin: -6px 0 14px; }

.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.form-actions-end { margin-top: 30px; }

/* ===========================================================
   Card picker (autocomplete chip input) — form-only
   =========================================================== */
.card-picker { position: relative; }
.card-picker-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--teal-soft);
  color: var(--teal);
  border-radius: 7px;
  padding: 4px 6px 4px 4px;
  font-size: 0.82rem;
}
.chip-thumb { width: 30px; height: 43px; object-fit: cover; border-radius: 4px; }
.chip-x {
  background: none; border: none; color: inherit; cursor: pointer; opacity: 0.6;
  font-size: 0.95rem; line-height: 1; padding: 0 2px;
}
.chip-x:hover { opacity: 1; }

.card-picker-input-wrap { position: relative; }
.card-picker-input-wrap input {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-size: 0.9rem;
}
.card-picker-input-wrap input:focus { outline: 2px solid var(--gold-line); outline-offset: 1px; }

.card-picker-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--panel-raised);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  max-height: 260px;
  overflow-y: auto;
  z-index: 30;
  box-shadow: var(--shadow-soft);
}
.suggestion-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 0.86rem;
}
.suggestion-item:hover, .suggestion-item.is-active { background: var(--gold-soft); }
.suggestion-thumb { width: 44px; height: 63px; object-fit: cover; border-radius: 5px; flex-shrink: 0; }
.suggestion-empty { padding: 10px; font-size: 0.8rem; color: var(--muted); }

/* ===========================================================
   Step rows (chain editor in form)
   =========================================================== */
.step-row {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 12px;
  background: var(--ink);
}
.step-row-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.step-row-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.step-row-label-action { color: var(--teal); }
.step-row-controls { display: flex; gap: 4px; align-items: center; }

.type-toggle { display: flex; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); overflow: hidden; margin-right: 6px; }
.type-toggle-btn {
  background: var(--ink);
  color: var(--muted);
  border: none;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 9px;
  cursor: pointer;
}
.type-toggle-btn + .type-toggle-btn { border-left: 1px solid var(--line-strong); }
.type-toggle-btn.is-active { background: var(--gold-soft); color: var(--gold); }
.type-toggle-btn.is-active[data-type="action"] { background: var(--teal-soft); color: var(--teal); }

.step-label-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.step-label-input {
  background: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  font-size: 0.86rem;
  color: var(--teal);
  flex: 1 1 200px;
  min-width: 160px;
}
.step-label-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.step-label-chip {
  background: var(--panel-raised);
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 999px;
  font-size: 0.74rem;
  padding: 4px 10px;
  cursor: pointer;
}
.step-label-chip:hover { color: var(--teal); border-color: var(--teal); }
.icon-btn {
  background: var(--panel);
  border: 1px solid var(--line-strong);
  color: var(--muted);
  width: 26px; height: 26px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
}
.icon-btn:hover { color: var(--parchment); border-color: var(--gold-line); }
.icon-btn-danger:hover { color: var(--danger); border-color: var(--danger); }
.step-textarea {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-size: 0.9rem;
  resize: vertical;
  margin-bottom: 10px;
}
.step-textarea:focus { outline: 2px solid var(--gold-line); outline-offset: 1px; }

/* ===========================================================
   Modal
   =========================================================== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(8, 9, 14, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}
.modal[hidden] { display: none; }
.modal-card {
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 24px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-soft);
}
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.modal-close { background: none; border: none; color: var(--muted); font-size: 1.4rem; cursor: pointer; line-height: 1; }
.modal-close:hover { color: var(--parchment); }

/* ===========================================================
   Search page
   =========================================================== */
.search-form { display: flex; gap: 10px; margin-bottom: 22px; flex-wrap: wrap; }
.search-form input[type="text"] {
  flex: 1 1 280px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.92rem;
}
.search-form select { min-width: 180px; }
.active-filter { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; font-size: 0.85rem; color: var(--muted); }
.clear-filter { color: var(--danger); font-family: var(--font-mono); font-size: 0.78rem; }

/* ===========================================================
   Bulk import page
   =========================================================== */
.import-intro { max-width: 70ch; margin-bottom: 24px; }
.import-errors {
  background: rgba(194, 85, 74, 0.1);
  border: 1px solid var(--danger);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 22px;
}
.import-errors-title { color: var(--danger); font-weight: 600; margin: 0 0 8px; }
.import-errors ul { margin: 0; padding-left: 20px; }
.import-errors li { font-size: 0.88rem; margin-bottom: 4px; }
.import-textarea {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  background: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 12px;
  resize: vertical;
}
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  font-size: 0.86rem;
  color: var(--muted);
  cursor: pointer;
}
.checkbox-row input { width: 16px; height: 16px; accent-color: var(--gold); margin-top: 2px; flex-shrink: 0; }
.import-format-help {
  margin-top: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
}
.import-format-help summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--gold);
}
.import-format-help p { margin-top: 12px; }
.import-format-help code {
  font-family: var(--font-mono);
  font-size: 0.82em;
  background: var(--panel-raised);
  padding: 1px 5px;
  border-radius: 3px;
  color: var(--teal);
}
.json-example {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
  overflow-x: auto;
  margin-top: 12px;
  white-space: pre;
}
@media (max-width: 640px) {
  .page { padding: 22px 16px 60px; }
  .topbar { padding: 14px 16px; gap: 12px; }
  .topbar-nav { width: 100%; justify-content: flex-start; margin-left: 0; }
  .topbar-search { order: 3; flex: 1 1 100%; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .form-row-split { flex-direction: column; }
  .deck-grid, .combo-grid { grid-template-columns: 1fr; }
  h1 { font-size: 1.4rem; }
}

/* ===========================================================
   Topbar user menu
   =========================================================== */
.topbar-user {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}
.topbar-user-name { color: var(--parchment); display: flex; align-items: center; gap: 6px; }
.admin-badge {
  font-size: 0.62rem;
  color: var(--gold);
  border: 1px solid var(--gold-line);
  border-radius: 4px;
  padding: 1px 5px;
  letter-spacing: 0.05em;
}
.topbar-user a { color: var(--muted); }
.topbar-user a:hover, .topbar-user a.active { color: var(--gold); }
.logout-form { display: inline; }
.logout-form button {
  background: none;
  border: none;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0;
}
.logout-form button:hover { color: var(--danger); }

/* ===========================================================
   Auth pages (setup / login / password)
   =========================================================== */
.auth-page { display: flex; justify-content: center; padding-top: 30px; }
.auth-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  width: 100%;
  max-width: 420px;
}
.auth-card h1 { font-size: 1.4rem; margin-bottom: 10px; }
.auth-card .field-help { margin-bottom: 18px; }

.lang-options { display: flex; flex-direction: column; gap: 4px; margin-bottom: 6px; }
.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.92rem;
}
.lang-option:hover { background: var(--panel-raised); }
.lang-option input { width: 16px; height: 16px; accent-color: var(--gold); }

/* ===========================================================
   Shared-by badges, sub-section heads
   =========================================================== */
.shared-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--teal);
}
.section-head-sub { margin-top: 46px; }

/* ===========================================================
   Admin: user list
   =========================================================== */
.user-list { display: flex; flex-direction: column; gap: 10px; }
.user-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
}
.user-row-info { display: flex; flex-direction: column; gap: 3px; }
.user-row-name { font-family: var(--font-display); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.user-row-username { font-family: var(--font-mono); font-size: 0.76rem; color: var(--muted); }

/* ===========================================================
   Sharing checkbox list
   =========================================================== */
.share-user-list { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; max-height: 240px; overflow-y: auto; }
.share-user-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
}
.share-user-row:hover { background: var(--panel-raised); }
.share-user-row input { width: 16px; height: 16px; accent-color: var(--gold); }
