/* Diamond Core — Approved UI Styles */
/* Source: docs/ui/example.html */

:root{
  --font-sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  --radius-1: 10px;
  --radius-2: 16px;
  --shadow-1: 0 1px 2px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.08);
  --shadow-2: 0 10px 30px rgba(0,0,0,.12);
  --border: 1px solid rgba(0,0,0,.10);
  --border-soft: 1px solid rgba(0,0,0,.08);
  --focus: 0 0 0 3px rgba(37, 99, 235, .25);
  --space-1: .5rem;
  --space-2: .75rem;
  --space-3: 1rem;
  --space-4: 1.25rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --max: 2400px;  /* Fluid container with safety cap for ultra-wide monitors */
  --gutter-mobile: .75rem;  /* Mobile horizontal padding */
  --gutter-tablet: 1.5rem;  /* Tablet horizontal padding */
  --gutter-desktop: 2rem;   /* Desktop horizontal padding */
}

/* Light theme */
html[data-theme="light"]{
  --bg: #eef4fb;
  --surface: #ffffff;
  --surface-2: #f8fbff;
  --surface-3: #f1f6ff;
  --text: #0f172a;
  --muted: #475569;
  --muted-2: #64748b;
  --brand: #0b62d6;
  --brand-2: #0a4db0;
  --accent: #f0b429; /* yellow-ish */
  --danger: #dc2626;
  --warn: #f97316;
  --good: #059669;
  --chip: rgba(11,98,214,.10);
  --appbar: #0b2a3a;
  --appbar-text: #f8fafc;
  --sidebar: #ffffff;
  --sidebar-active: rgba(11,98,214,.10);
  --divider: rgba(15,23,42,.08);
}

/* Dark theme */
html[data-theme="dark"]{
  --bg: #0b1220;
  --surface: #0f1b2d;
  --surface-2: #0c1728;
  --surface-3: #12243d;
  --text: #e5e7eb;
  --muted: #cbd5e1;
  --muted-2: #94a3b8;
  --brand: #59a7ff;
  --brand-2: #2b79ff;
  --accent: #f0b429;
  --danger: #ff5b5b;
  --warn: #ff9a4d;
  --good: #34d399;
  --chip: rgba(89,167,255,.12);
  --appbar: #081826;
  --appbar-text: #e5e7eb;
  --sidebar: #0f1b2d;
  --sidebar-active: rgba(89,167,255,.14);
  --divider: rgba(148,163,184,.18);
  --border: 1px solid rgba(148,163,184,.18);
  --border-soft: 1px solid rgba(148,163,184,.14);
  --shadow-1: 0 1px 2px rgba(0,0,0,.35), 0 14px 34px rgba(0,0,0,.28);
  --shadow-2: 0 18px 44px rgba(0,0,0,.30);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.35;
  /* Sticky footer layout */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Site footer - sticky at viewport bottom */
.site-footer {
  margin-top: auto;
  text-align: center;
  padding: var(--space-4) var(--space-3);
  color: var(--muted-2);
  font-size: .88rem;
  background: var(--bg);
}

a{ color: var(--brand); text-decoration: none; }
a:hover{ text-decoration: underline; }

.skip-link{
  position:absolute; left:-9999px; top:auto;
  width:1px; height:1px; overflow:hidden;
}
.skip-link:focus{
  left: var(--space-3); top: var(--space-3);
  width:auto; height:auto;
  padding:.6rem .8rem;
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius-1);
  box-shadow: var(--shadow-1);
  z-index: 9999;
}

.appbar{
  position: sticky;
  top:0;
  z-index: 50;
  background: var(--appbar);
  color: var(--appbar-text);
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.appbar__inner{
  max-width: var(--max);
  margin:0 auto;
  padding: .65rem var(--gutter-mobile);
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: var(--space-3);
}
@media (min-width: 768px) {
  .appbar__inner {
    padding-left: var(--gutter-tablet);
    padding-right: var(--gutter-tablet);
  }
}
@media (min-width: 1280px) {
  .appbar__inner {
    padding-left: var(--gutter-desktop);
    padding-right: var(--gutter-desktop);
  }
}
.brand{
  display:flex; align-items:center; gap: .75rem;
  min-width: 220px;
}
.brand__logo{
  height: 34px;
  width: auto;
  border-radius: 6px;
}
.brand__title{
  font-weight: 800;
  letter-spacing: .2px;
}
.brand__sub{
  font-size: .84rem;
  color: rgba(248,250,252,.78);
}

.appbar__actions{ display:flex; align-items:center; gap:.5rem; }
.icon-btn{
  display:inline-flex; align-items:center; justify-content:center;
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  color: var(--appbar-text);
  cursor:pointer;
}
.icon-btn:hover{ background: rgba(255,255,255,.12); }
.icon-btn:focus{ outline:none; box-shadow: var(--focus); }

.theme-toggle{
  display:inline-flex; align-items:center; gap:.5rem;
  height: 38px;
  padding: 0 .8rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  color: var(--appbar-text);
  cursor:pointer;
  font-weight: 650;
}
.theme-toggle:hover{ background: rgba(255,255,255,.12); }
.theme-toggle:focus{ outline:none; box-shadow: var(--focus); }

.filters{
  background: rgba(255,255,255,.06);
  border-top: 1px solid rgba(255,255,255,.10);
}
.filters__inner{
  max-width: var(--max);
  margin:0 auto;
  padding: .55rem var(--gutter-mobile);
  display:flex;
  gap:.5rem;
  flex-wrap: wrap;
  align-items:center;
  color: rgba(248,250,252,.92);
}
@media (min-width: 768px) {
  .filters__inner {
    padding-left: var(--gutter-tablet);
    padding-right: var(--gutter-tablet);
  }
}
@media (min-width: 1280px) {
  .filters__inner {
    padding-left: var(--gutter-desktop);
    padding-right: var(--gutter-desktop);
  }
}
.filters__label{
  font-size:.78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .85;
}
.chip{
  display:inline-flex; align-items:center; gap:.45rem;
  padding: .35rem .6rem;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.12);
  font-size: .88rem;
}
.chip strong{ font-weight: 750; }

.shell{
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--space-3) var(--gutter-mobile) var(--space-6);
  display: block;  /* Mobile-first: no grid yet */
  position: relative;
  width: 100%;  /* Required for proper width in flex column body */
  flex: 1 0 auto;  /* Grow to fill vertical space, push footer down */
}
@media (min-width: 768px) {
  .shell {
    padding-left: var(--gutter-tablet);
    padding-right: var(--gutter-tablet);
  }
}
@media (min-width: 1024px) {
  .shell {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: var(--space-4);
  }
}
@media (min-width: 1280px) {
  .shell {
    padding-left: var(--gutter-desktop);
    padding-right: var(--gutter-desktop);
  }
}

.sidebar{
  background: var(--sidebar);
  border: var(--border-soft);
  border-radius: 0;  /* Mobile-first: no radius on off-canvas */
  box-shadow: var(--shadow-2);
  overflow: hidden;
  /* Mobile: off-canvas by default */
  position: fixed;
  top: 0;
  left: -280px;  /* Hidden off-screen */
  width: 260px;
  height: 100vh;
  z-index: 100;
  transition: left 0.3s ease;
}
.sidebar--open {
  left: 0;  /* Slide in when open */
}
@media (min-width: 1024px) {
  .sidebar {
    position: sticky;
    top: 110px;
    left: auto;
    width: auto;
    height: auto;
    border-radius: var(--radius-2);
    box-shadow: var(--shadow-1);
    align-self: start;
  }
  .sidebar--open {
    left: auto;  /* Reset mobile override */
  }
}
.sidebar__head{
  padding: var(--space-3);
  border-bottom: 1px solid var(--divider);
  background: var(--surface-2);
}
.sidebar__head strong{ display:block; font-weight: 800; }
.sidebar__head span{ color: var(--muted-2); font-size:.9rem; }
.nav{
  display:flex; flex-direction:column;
  padding: .35rem;
}
.nav a{
  display:flex; align-items:center; gap:.65rem;
  padding: .65rem .75rem;
  border-radius: 12px;
  color: var(--text);
  font-weight: 650;
}
.nav a span{ opacity:.9; }
.nav a:hover{ background: var(--surface-3); text-decoration:none; }
.nav a[aria-current="page"]{
  background: var(--sidebar-active);
  color: var(--brand);
}
.nav__divider{
  height:1px; background: var(--divider);
  margin: .5rem .65rem;
}
.nav-logout-btn{
  display:flex; align-items:center; gap:.65rem;
  padding: .65rem .75rem;
  border-radius: 12px;
  color: var(--text);
  font-weight: 650;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}
.nav-logout-btn span{ opacity:.9; }
.nav-logout-btn:hover{ background: var(--surface-3); text-decoration:none; }
.nav-logout-btn:focus{ outline:none; box-shadow: var(--focus); }

/* Mobile sidebar overlay */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.sidebar-overlay--visible {
  display: block;
  opacity: 1;
}
@media (min-width: 1024px) {
  .sidebar-overlay {
    display: none !important;  /* Never show on desktop */
  }
}

/* Mobile menu toggle button */
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  color: var(--appbar-text);
  cursor: pointer;
}
.menu-toggle:hover {
  background: rgba(255,255,255,.12);
}
.menu-toggle:focus {
  outline: none;
  box-shadow: var(--focus);
}
@media (min-width: 1024px) {
  .menu-toggle {
    display: none;  /* Hide on desktop */
  }
}

.main{
  display:flex; flex-direction:column;
  gap: var(--space-4);
}
.pagehead{
  display:flex; flex-wrap:wrap;
  align-items:flex-start; justify-content: space-between;
  gap: var(--space-3);
}
.breadcrumb{
  font-size: .88rem;
  color: var(--muted-2);
  display:flex; gap:.5rem; align-items:center;
}
.breadcrumb a{ color: var(--muted-2); }
.breadcrumb a:hover{ color: var(--brand); }
.h1{
  font-size: 1.9rem;
  margin: .35rem 0 0;
  letter-spacing: -.02em;
}
.subline{
  margin: .35rem 0 0;
  color: var(--muted);
}

.actions{
  display:flex; gap:.5rem; flex-wrap: wrap; align-items:center;
}
.btn{
  height: 40px;
  padding: 0 .9rem;
  border-radius: 12px;
  border: var(--border);
  background: var(--surface);
  color: var(--text);
  cursor:pointer;
  font-weight: 700;
}
.btn:hover{ filter: brightness(0.98); }
.btn:focus{ outline:none; box-shadow: var(--focus); }
.btn--primary{
  background: var(--brand);
  border-color: rgba(0,0,0,.0);
  color: #fff;
}
.btn--primary:hover{ background: var(--brand-2); }
.btn--ghost{
  background: transparent;
}
.btn--danger{
  background: var(--danger);
  border-color: rgba(0,0,0,.0);
  color: #fff;
}
.btn--danger:hover{ filter: brightness(0.9); }

.grid-kpis{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-3);
}
.card{
  background: var(--surface);
  border: var(--border-soft);
  border-radius: var(--radius-2);
  box-shadow: var(--shadow-1);
  overflow:hidden;
}
.card__body{ padding: var(--space-4); }
.card__title{
  display:flex; align-items:center; justify-content: space-between;
  gap: var(--space-2);
  font-weight: 800;
  letter-spacing: .2px;
}
.card__meta{
  color: var(--muted-2);
  font-size: .92rem;
  margin-top: .35rem;
}
.kpi{
  display:flex; align-items:flex-start; justify-content: space-between;
  gap: var(--space-3);
}
.kpi__value{
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -.02em;
}
.kpi__label{
  color: var(--muted);
  font-weight: 700;
  margin-top: .25rem;
}
.badge{
  display:inline-flex; align-items:center; gap:.35rem;
  padding: .25rem .55rem;
  border-radius: 999px;
  font-size: .86rem;
  font-weight: 750;
  background: var(--chip);
  color: var(--brand);
}
.badge--good{ background: rgba(5,150,105,.14); color: var(--good); }
.badge--warn{ background: rgba(249,115,22,.14); color: var(--warn); }
.badge--danger{ background: rgba(220,38,38,.14); color: var(--danger); }

.kpi-card{ grid-column: span 4; }

.split{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: var(--space-3);
}

.table-wrap{
  overflow-x: auto;  /* Horizontal scroll on mobile for tables */
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  /* Add subtle scroll indicator shadow */
  background:
    linear-gradient(to right, var(--surface) 30%, transparent),
    linear-gradient(to left, var(--surface) 30%, transparent),
    linear-gradient(to right, rgba(0,0,0,.1), transparent 10px),
    linear-gradient(to left, rgba(0,0,0,.1), transparent 10px);
  background-repeat: no-repeat;
  background-size: 30px 100%, 30px 100%, 10px 100%, 10px 100%;
  background-position: left, right, left, right;
  background-attachment: local, local, scroll, scroll;
}
.table{
  width:100%;
  border-collapse: collapse;
  min-width: 720px;
}
.table th, .table td{
  padding: .65rem .7rem;
  border-bottom: 1px solid var(--divider);
  text-align:left;
  white-space: nowrap;
}
.table th{
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted-2);
  background: var(--surface-2);
  position: sticky;
  top: 0;
  z-index: 1;
}
.table tr:hover td{ background: var(--surface-3); }

.scoreboard{
  display:flex; flex-direction:column; gap: var(--space-3);
}
.linescore{
  border-radius: var(--radius-2);
  overflow:hidden;
  border: var(--border-soft);
}
.linescore__head{
  padding: var(--space-3) var(--space-4);
  display:flex; flex-wrap:wrap;
  align-items:center; justify-content: space-between;
  gap: var(--space-2);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
}
.linescore__title{
  font-weight: 900;
  letter-spacing: -.01em;
}
.small{
  font-size: .9rem;
  color: var(--muted-2);
}
.pills{ display:flex; gap:.5rem; flex-wrap:wrap; }
.pill{
  padding: .28rem .55rem;
  border-radius: 999px;
  border: 1px solid var(--divider);
  background: var(--surface);
  font-size: .86rem;
  color: var(--muted);
  font-weight: 700;
}

.footer-note{
  margin-top: var(--space-3);
  color: var(--muted-2);
  font-size: .9rem;
}

/* Responsive - Mobile First */

/* Mobile (default styles above) */

/* Small Mobile adjustments */
@media (max-width: 390px){
  .h1{ font-size: 1.4rem; }
  .brand__title { font-size: .9rem; }
  .pagehead { gap: var(--space-2); }
}

/* Tablet */
@media (min-width: 768px){
  .h1{ font-size: 2rem; }
  .split{ grid-template-columns: 1fr; }  /* Still stacked */
  .kpi-card{ grid-column: span 6; }  /* 2 columns */
}

/* Desktop - Sidebar appears */
@media (min-width: 1024px){
  .split{ grid-template-columns: 1.2fr .8fr; }
  .kpi-card{ grid-column: span 4; }  /* 3 columns */
}

/* Large Desktop - Full width utilization */
@media (min-width: 1280px){
  /* Already handled by gutter-desktop in shell */
}

/* Hide brand subtitle on very small screens */
@media (max-width: 620px){
  .brand__sub{ display:none; }
}

/* ============================================================
   Game Detail Page — Scoped Styles (.page--game-detail)
   ============================================================ */

/* Page wrapper - vertical spacing between sections (matches example.html .main gap) */
.page--game-detail {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* Inline form helper */
.page--game-detail .inline-form {
  display: inline;
}

/* Matchup / Scoreboard */
.page--game-detail .matchup {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-4);
  text-align: center;
}
.page--game-detail .matchup__team-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: var(--space-2);
}
.page--game-detail .matchup__team-label {
  font-size: .88rem;
  font-weight: 700;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: var(--space-1);
}
.page--game-detail .matchup__score {
  font-size: 3rem;
  font-weight: 900;
  color: var(--brand);
  line-height: 1;
}
.page--game-detail .matchup__vs {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--muted-2);
}

/* Lineup Grid */
.page--game-detail .lineup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

/* Lineup Table */
.page--game-detail .lineup-table {
  width: 100%;
  border-collapse: collapse;
}
.page--game-detail .lineup-table th {
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted-2);
  background: var(--surface-2);
  padding: .65rem .7rem;
  border-bottom: 1px solid var(--divider);
  text-align: left;
}
.page--game-detail .lineup-table td {
  padding: .65rem .7rem;
  border-bottom: 1px solid var(--divider);
  color: var(--text);
}
.page--game-detail .lineup-table tr:hover td {
  background: var(--surface-3);
}
.page--game-detail .lineup-table-wrap {
  margin-top: var(--space-3);
}

/* Batting Order & Position Badge */
.page--game-detail .batting-order {
  font-weight: 700;
  color: var(--brand);
}
.page--game-detail .position-badge {
  display: inline-block;
  padding: .2rem .5rem;
  background: var(--chip);
  color: var(--brand);
  border-radius: .3rem;
  font-size: .82rem;
  font-weight: 700;
}

/* Line Score Table */
.page--game-detail .line-score-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-3);
}
.page--game-detail .line-score-table th {
  text-align: center;
  font-size: .8rem;
  font-weight: 700;
  color: var(--muted-2);
  padding: .5rem .4rem;
  border-bottom: 2px solid var(--divider);
}
.page--game-detail .line-score-table th:first-child {
  text-align: left;
}
.page--game-detail .line-score-table td {
  text-align: center;
  padding: .65rem .4rem;
  border-bottom: 1px solid var(--divider);
  color: var(--text);
}
.page--game-detail .line-score-table td:first-child {
  text-align: left;
  font-weight: 700;
  color: var(--brand);
}
.page--game-detail .line-score-table td.total {
  font-weight: 700;
  color: var(--brand);
  border-left: 2px solid var(--divider);
}
.page--game-detail .line-score-table input[type="number"] {
  width: 60px;
  padding: .3rem;
  border: var(--border);
  border-radius: .3rem;
  text-align: center;
  font-size: .92rem;
  background: var(--surface);
  color: var(--text);
  display: block;
  margin: 0 auto;
}
.page--game-detail .line-score-table input[type="number"]:focus {
  outline: none;
  box-shadow: var(--focus);
}

/* Line Score Form & Read-only */
.page--game-detail .line-score-form {
  margin-top: var(--space-3);
}
.page--game-detail .line-score-readonly {
  margin-top: var(--space-3);
}
.page--game-detail .line-score-actions {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-3);
}
.page--game-detail .add-inning-form {
  margin-top: var(--space-2);
}

/* Notice Boxes */
.page--game-detail .notice-box {
  background: var(--surface-2);
  padding: var(--space-3);
  border-radius: var(--radius-1);
  font-size: .92rem;
  color: var(--muted);
  margin-top: var(--space-3);
}
.page--game-detail .notice-box.warning {
  background: rgba(249,115,22,.14);
  color: var(--warn);
}

/* Venue Info */
.page--game-detail .venue-info {
  margin-top: var(--space-3);
  margin-bottom: var(--space-3);
  padding: var(--space-3);
  background: var(--surface-2);
  border-radius: var(--radius-1);
}
.page--game-detail .venue-info p {
  margin: .3rem 0;
  font-size: .92rem;
  color: var(--text);
}
.page--game-detail .venue-info strong {
  color: var(--brand);
}

/* Map Container */
.page--game-detail #map {
  height: 400px;
  border-radius: var(--radius-1);
  border: var(--border);
}

/* Empty State */
.page--game-detail .empty-state {
  text-align: center;
  padding: var(--space-6);
  color: var(--muted-2);
  font-style: italic;
}

/* Responsive - Game Detail */
@media (max-width: 768px) {
  .page--game-detail .matchup {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }
  .page--game-detail .matchup__vs {
    transform: rotate(90deg);
  }
  .page--game-detail .lineup-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Roster Eligibility Page — Scoped Styles
   ============================================================ */

/* Filter Panel */
.filter-panel {
    background: var(--surface);
    border: var(--border-soft);
    border-radius: var(--radius-2);
    box-shadow: var(--shadow-1);
    padding: var(--space-4);
    margin-bottom: var(--space-4);
}
.filter-panel h2 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: var(--space-3);
}

/* Filter Grid */
.filter-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}
@media (min-width: 600px) {
    .filter-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .filter-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Filter Group */
.filter-group {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.filter-group label {
    font-size: .88rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .05em;
}
.filter-group select,
.filter-group input[type="checkbox"] {
    padding: .6rem .75rem;
    border: var(--border);
    border-radius: var(--radius-1);
    background: var(--surface);
    color: var(--text);
    font-size: .92rem;
}
.filter-group select:focus {
    outline: none;
    box-shadow: var(--focus);
}

/* Checkbox Wrapper */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-top: .5rem;
}
.checkbox-wrapper input[type="checkbox"] {
    width: auto;
    padding: 0;
}
.checkbox-wrapper label {
    font-weight: normal;
    text-transform: none;
    letter-spacing: normal;
    color: var(--text);
    cursor: pointer;
}

/* Filter Actions */
.filter-actions {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-3);
}
.filter-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Help Text */
.help-text {
    font-size: .88rem;
    color: var(--muted-2);
    margin-top: var(--space-3);
    font-style: italic;
}

/* Sortable Table Headers */
.sortable {
    cursor: pointer;
    user-select: none;
}
.sortable::after {
    content: ' ⇅';
    color: var(--muted-2);
    font-size: .75rem;
}
.sortable.sorted-asc::after {
    content: ' ▲';
    color: var(--brand);
}
.sortable.sorted-desc::after {
    content: ' ▼';
    color: var(--brand);
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: .3rem .65rem;
    border-radius: 999px;
    font-size: .84rem;
    font-weight: 700;
}
.status-active {
    background: rgba(5,150,105,.14);
    color: var(--good);
}
.status-inactive {
    background: var(--chip);
    color: var(--muted);
}

/* Empty State (reusable across pages) */
.empty-state {
    text-align: center;
    padding: var(--space-6);
    color: var(--muted-2);
    font-style: italic;
}
