/* Dragon LFG — 龍王揪團板 */
/* Design tokens */
:root {
  --ink: #0a0e0d;
  --ink-2: #0f1513;
  --panel: #141b18;
  --panel-2: #1a2320;
  --line: #26322c;
  --line-2: #33433b;
  --jade: #3ddc97;
  --jade-dim: #2aa978;
  --gold: #f3c258;
  --gold-dim: #b88c2e;
  --text: #e9f0ec;
  --muted: #8b9c92;
  --muted-2: #5f6e66;
  --danger: #e36464;
  --display: 'Chakra Petch', -apple-system, BlinkMacSystemFont, sans-serif;
  --cjk: -apple-system, BlinkMacSystemFont, "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", "Hiragino Sans GB", sans-serif;
  --radius: 14px;
}

/* Reset & base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--cjk);
  background: var(--ink);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Shell */
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 13, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 12px 24px;
}

.topbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
}

.topbar-spacer { flex: 1; }

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand .crest {
  font-size: 1.8rem;
  line-height: 1;
}

.brand h1.display {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--jade);
}

.brand .sub {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.3px;
}

/* Tally */
.tally {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--muted);
}

.tally .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--jade);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: var(--panel);
  color: var(--text);
  font-size: 0.85rem;
  font-family: var(--cjk);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.btn:hover {
  background: var(--panel-2);
  border-color: var(--jade-dim);
}

.btn-primary {
  background: var(--jade);
  color: var(--ink);
  border-color: var(--jade);
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--jade-dim);
  border-color: var(--jade-dim);
}

.btn-danger {
  border-color: var(--danger);
  color: var(--danger);
}

.btn-danger:hover {
  background: rgba(227, 100, 100, 0.1);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.icon-btn:hover {
  background: var(--panel);
  color: var(--text);
}

/* Intro section */
.intro {
  text-align: center;
  padding: 56px 0 36px;
}

.intro .eyebrow {
  font-family: var(--display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--muted-2);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.intro h2 {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
}

.intro .accent {
  color: var(--jade);
}

.intro p {
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 520px;
  margin: 0 auto;
}

.dungeon-hero-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 24px 0 8px;
}

.dungeon-hero-btn {
  padding: 12px 36px;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: var(--cjk);
  border-radius: 12px;
  border: 2px solid var(--line);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s;
  letter-spacing: 0.5px;
}

.dungeon-hero-btn:hover {
  border-color: var(--line-2);
  background: var(--panel-2);
}

.dungeon-hero-btn.on {
  border-color: var(--jade);
  color: var(--jade);
  background: rgba(0,255,180,0.06);
}

/* Controls */
.controls {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}

.controls-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.controls-row + .controls-row { margin-top: 8px; }

.filter-label {
  font-size: 0.72rem;
  color: var(--muted);
  min-width: 56px;
  flex-shrink: 0;
}

.ctl-spacer { flex: 1; }

/* Segmented tabs */
.seg {
  display: inline-flex;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.seg button {
  padding: 7px 14px;
  font-size: 0.8rem;
  font-family: var(--cjk);
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.seg button[aria-selected="true"] {
  background: var(--jade);
  color: var(--ink);
  font-weight: 600;
}

.seg button:not([aria-selected="true"]):hover {
  background: var(--panel);
  color: var(--text);
}

.seg .c {
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.12);
  padding: 1px 6px;
  border-radius: 9px;
}

.seg button[aria-selected="true"] .c {
  background: rgba(0, 0, 0, 0.2);
}

/* Filter button groups */
.filter-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.filter-btn {
  padding: 5px 12px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font-size: 0.78rem;
  font-family: var(--cjk);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.filter-btn:hover { border-color: var(--line-2); color: var(--text); }

.filter-btn.on {
  background: rgba(61,220,151,0.1);
  border-color: var(--jade);
  color: var(--jade);
  font-weight: 600;
}

/* Search */
.search {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.search svg { color: var(--muted); flex-shrink: 0; }

.search input {
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 0.82rem;
  font-family: var(--cjk);
  outline: none;
  width: 160px;
}

.search-clear {
  background: none;
  border: none;
  color: var(--muted-2);
  cursor: pointer;
  font-size: 0.82rem;
  padding: 0 2px;
  line-height: 1;
  flex-shrink: 0;
  transition: color 0.15s;
}
.search-clear:hover { color: var(--text); }

.dc-contact {
  gap: 5px;
  color: #5865f2;
  border-color: rgba(88, 101, 242, 0.4);
}
.dc-contact:hover {
  background: rgba(88, 101, 242, 0.1);
  border-color: #5865f2;
  color: #7289da;
}

.search input::placeholder { color: var(--muted-2); }

/* Toggle */
.toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}

.toggle input[type="checkbox"] {
  accent-color: var(--jade);
  width: 14px;
  height: 14px;
}

/* Board / Cards */
.board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s, transform 0.15s;
  cursor: pointer;
}

.card:hover {
  border-color: var(--jade-dim);
  transform: translateY(-2px);
}

/* Solo card — gold theme overrides */
.card.t-solo:hover { border-color: var(--gold-dim); }
.card.t-solo .status-pill.open { color: var(--gold); }
.card.t-solo .status-pill.open .dot { background: var(--gold); }
.card.t-solo .bk-clock { color: var(--gold); }
.card.t-solo .bk-date svg { color: var(--gold); }
.card.t-solo .chip.req {
  color: var(--gold);
  border-color: var(--gold-dim);
  background: rgba(243, 194, 88, 0.06);
}

.card.filled {
  opacity: 0.5;
}

/* Card internal structure */
.stripe {
  height: 3px;
  border-radius: 3px 3px 0 0;
  margin: -18px -18px 0;
}

.stripe.t-host { background: var(--jade); }
.stripe.t-solo { background: var(--gold); }

.card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.card-top .right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.ptype {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 5px;
  white-space: nowrap;
}

.ptype.t-host {
  background: rgba(61, 220, 151, 0.12);
  color: var(--jade);
}

.ptype.t-solo {
  background: rgba(243, 194, 88, 0.12);
  color: var(--gold);
}

.dungeon {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
}

.age {
  font-size: 0.7rem;
  color: var(--muted-2);
  white-space: nowrap;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 9px;
}

.status-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.status-pill.open { color: var(--jade); }
.status-pill.open .dot { background: var(--jade); }
.status-pill.done { color: var(--muted-2); }
.status-pill.done .dot { background: var(--muted-2); }

/* Block list (time schedule) */
.bk-head {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}

.bk-head .lvreq {
  color: var(--jade);
  font-weight: 500;
}

.bk-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bk {
  padding: 6px 10px;
  border-radius: 7px;
  background: var(--ink-2);
  border: 1px solid var(--line);
}

.bk-time {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text);
}

.bk-date {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
}

.bk-date svg { color: var(--jade); }

.bk-clock {
  font-weight: 600;
  color: var(--jade);
}

.runs {
  font-size: 0.72rem;
  color: var(--muted-2);
}

/* Need slots */
.slots-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}

.slots {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.slot {
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
}

.slot.glow {
  border-color: var(--jade-dim);
  background: rgba(61, 220, 151, 0.08);
  color: var(--jade);
}

.none-needed {
  font-size: 0.75rem;
  color: var(--muted-2);
}

/* Self class (solo) */
.selfclass {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 500;
}

.selfclass .badge {
  background: var(--gold);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 5px;
}

/* Chips (reqs / members) */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.chip {
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 500;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
}

.chip.req {
  border-color: var(--jade-dim);
  color: var(--jade);
  background: rgba(61, 220, 151, 0.06);
}

.chip.member {
  color: var(--text);
}

.chip.member b {
  color: var(--jade);
}

/* Note */
.card .note {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Card footer */
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  margin-top: auto;
}

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

.who .ava {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--line-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text);
  flex-shrink: 0;
}

.who img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  flex-shrink: 0;
}

.nm {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.owner-tag {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--jade);
  background: rgba(61, 220, 151, 0.1);
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 4px;
}

.contact {
  font-size: 0.7rem;
  color: var(--muted-2);
}

.foot-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* Empty state block */
.empty-block {
  text-align: center;
  padding: 48px 20px;
  color: var(--muted);
  font-size: 0.9rem;
  grid-column: 1 / -1;
}

.empty-block .block-emoji {
  font-size: 2rem;
  margin-bottom: 10px;
}

/* =========================================================
   Form — row / label / inputs / pickers
   ========================================================= */
.form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.form .row + .row {
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding-top: 16px;
}

.form .row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.form .row.two > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form .lab {
  font-size: 0.78rem;
  color: var(--text);
  font-weight: 500;
}

.form .row-sep {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}

.form .req-star {
  color: var(--danger);
}

.form input,
.form select,
.form textarea {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font-size: 0.88rem;
  font-family: var(--cjk);
  outline: none;
  transition: border-color 0.15s;
  width: 100%;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  border-color: var(--jade-dim);
}

.form textarea {
  resize: vertical;
  min-height: 70px;
}

.form input::placeholder,
.form textarea::placeholder {
  color: var(--muted-2);
}

.form .hint {
  font-size: 0.72rem;
  color: var(--muted-2);
  margin-top: 2px;
}

/* Pick grid (classes / reqs / runs) */
.pick-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pick-wrap .grp-label {
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 600;
  margin-top: 4px;
}

.pick-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pick {
  padding: 5px 12px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font-size: 0.78rem;
  font-family: var(--cjk);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.pick:hover {
  border-color: var(--line-2);
  color: var(--text);
}

.pick.on {
  background: rgba(61, 220, 151, 0.1);
  border-color: var(--jade-dim);
  color: var(--jade);
  font-weight: 500;
}

.pick.jade.on {
  background: rgba(61, 220, 151, 0.12);
  border-color: var(--jade);
  color: var(--jade);
}

/* Blocks box (time slots) */
.blocks-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.block-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.block-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
}

.block-del {
  font-size: 0.72rem;
  color: var(--danger);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--cjk);
}

.block-del:hover {
  text-decoration: underline;
}

.block-sub {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.block-note {
  font-weight: 400;
  color: var(--muted-2);
}

.bdate-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bdate-wd {
  font-size: 0.78rem;
  color: var(--jade);
  font-weight: 500;
}

.b-date {
  color-scheme: dark;
  color: var(--jade);
}

.add-block,
.add-member {
  padding: 10px;
  border-radius: 8px;
  border: 1px dashed var(--line-2);
  background: transparent;
  color: var(--muted);
  font-size: 0.8rem;
  font-family: var(--cjk);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  width: 100%;
  text-align: center;
}

.add-block:hover,
.add-member:hover {
  border-color: var(--jade-dim);
  color: var(--jade);
}

/* Members box */
.members-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.member-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.member-idx {
  font-size: 0.72rem;
  color: var(--muted-2);
  font-weight: 600;
  min-width: 18px;
}

.member-row input,
.member-row select {
  flex: 1;
  padding: 7px 10px;
  font-size: 0.82rem;
}

.m-del {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--muted-2);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, background 0.15s;
}

.m-del:hover:not(:disabled) {
  color: var(--danger);
  background: rgba(227, 100, 100, 0.1);
}

.m-del:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Modal footer */
.modal-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.modal-foot .grow {
  flex: 1;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-family: var(--cjk);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.btn-ghost:hover {
  background: var(--panel);
  color: var(--text);
}

.btn-sm {
  padding: 5px 10px;
  font-size: 0.78rem;
}

/* Modal / Overlay */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.err {
  color: #ef4444;
  font-size: 13px;
  font-weight: 500;
  margin-top: 12px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.2s, opacity 0.2s;
}

.err.show {
  max-height: 60px;
  opacity: 1;
}

.modal {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-head h3 {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 700;
}

.closebtn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.closebtn:hover {
  background: var(--panel);
  color: var(--text);
}

/* Type picker */
.typepick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.typepick button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  font-family: var(--cjk);
}

.typepick button[aria-selected="true"] {
  border-color: var(--jade);
  background: rgba(61, 220, 151, 0.06);
  color: var(--text);
}

.typepick button:not([aria-selected="true"]):hover {
  border-color: var(--line-2);
  background: var(--panel);
}

.typepick .ti { font-size: 1.4rem; }
.typepick .tn { font-size: 0.85rem; font-weight: 600; }
.typepick .td { font-size: 0.7rem; color: var(--muted); }



/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--panel-2);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 300;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.toast .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--jade);
}

/* Pagination */
.pag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px 0 8px;
}

.pag-info {
  font-size: 0.82rem;
  color: var(--muted);
  min-width: 80px;
  text-align: center;
}

/* Footer */
.legal {
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted-2);
  padding: 32px 0 0;
  border-top: 1px solid var(--line);
  margin-top: 32px;
}

/* Focus-visible */
:focus-visible {
  outline: 2px solid var(--jade);
  outline-offset: 2px;
}

button:focus:not(:focus-visible),
input:focus:not(:focus-visible),
select:focus:not(:focus-visible),
textarea:focus:not(:focus-visible) {
  outline: none;
}

/* Responsive */
@media (max-width: 700px) {
  .topbar { padding: 10px 14px; }
  .topbar-inner { gap: 10px; }
  .brand h1.display { font-size: 1rem; }
  .brand .sub { display: none; }
  .intro { padding: 36px 0 24px; }
  .intro h2 { font-size: 1.25rem; }
  .controls-row { gap: 6px; }
  .filter-label { min-width: 48px; }
  .seg button { padding: 6px 10px; font-size: 0.72rem; }
  .board { grid-template-columns: 1fr; }
  .modal { padding: 18px; max-height: 90vh; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
  .tally { display: none; }
  .wrap { padding: 0 12px 40px; }
}

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