/* Shell + roster board styles — color tokens live in revamp.css only. */

.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ═══════════════════════════════════════════════════════════════════════════
 * App Shell — 3-column layout (icon rail + sidebar + main).
 * Replaces the old fixed .nav-bar. Uses revamp.css vars so it adapts to
 * both dark and light themes automatically.
 * ═══════════════════════════════════════════════════════════════════════════ */

html, body { height: 100%; }

/* Google Material Symbols (variable icon font) */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  display: inline-block;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.app-shell {
  --shell-rail-w: 76px;
  --shell-drawer-w: 264px;
  --shell-handle-w: 10px;
  --shell-drawer-col: var(--shell-drawer-w);
  --shell-shadow-rail: 10px 0 32px rgba(0, 0, 0, 0.28), 4px 0 14px rgba(0, 0, 0, 0.16);
  --shell-shadow-drawer: 14px 0 40px rgba(0, 0, 0, 0.22), 6px 0 18px rgba(0, 0, 0, 0.12);
  display: grid;
  grid-template-columns: var(--shell-rail-w) var(--shell-drawer-col) 1fr;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  transition: grid-template-columns 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
.app-shell.sidebar-collapsed {
  --shell-drawer-col: var(--shell-handle-w);
}

/* ── Icon Rail (76px) — sits above drawer when it slides closed ─────────── */
.shell-rail {
  display: flex; flex-direction: column; align-items: center;
  padding: 14px 0; gap: 6px;
  background: var(--obsidian);
  border-right: 1px solid var(--panel-border);
  position: relative;
  z-index: calc(var(--z-shell) + 2);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: var(--shell-shadow-rail);
}
.shell-rail__logo {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  overflow: hidden; margin-bottom: 6px; flex-shrink: 0;
  background: var(--panel-bg);
}
.shell-rail__logo img { width: 100%; height: 100%; object-fit: contain; }
.shell-rail__logo-link {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
}
.shell-rail__logo-text { font-weight: 900; font-size: .9rem; color: var(--text-primary); }
.shell-rail__icon {
  width: 44px; height: 44px; border-radius: 11px;
  display: grid; place-items: center;
  color: var(--cool-grey); cursor: pointer;
  transition: background .15s, color .15s;
  flex-shrink: 0; border: 0; background: none;
  text-decoration: none;
}
.shell-rail__icon:hover { background: var(--bg-translucent-md); color: var(--text-secondary); }
.shell-rail__icon.is-active { background: var(--vibrant-orange) !important; color: var(--btn-primary-text) !important; }
.shell-rail__icon .material-symbols-outlined {
  font-size: 22px;
  line-height: 1;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.shell-rail__icon.is-active .material-symbols-outlined {
  font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}
.shell-rail__spacer { flex: 1; }
.shell-rail__toggle {
  width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--panel-border);
  background: none; color: var(--cool-grey); cursor: pointer;
  display: grid; place-items: center; flex-shrink: 0;
}
.shell-rail__toggle:hover { background: var(--bg-translucent-md); color: var(--text-secondary); }

/* Commissioner / Admin gear flyout */
.shell-rail__menu-wrap { position: relative; flex-shrink: 0; }
.shell-rail__flyout {
  position: fixed;
  left: calc(var(--shell-rail-w) + 10px);
  min-width: 168px;
  padding: 6px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: var(--z-overlay);
}
.shell-rail__flyout-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
}
.shell-rail__flyout-link:hover {
  background: var(--bg-translucent-md);
  color: var(--text-primary);
}
.shell-rail__flyout-link.is-active {
  background: var(--bg-translucent-hover);
  color: var(--accent-blue);
}

/* ── Sidebar drawer slot — resizes main; panel slides behind rail ─────── */
.shell-drawer-slot {
  position: relative;
  min-width: 0;
  overflow: hidden;
  z-index: var(--z-shell);
  box-shadow: var(--shell-shadow-drawer);
  transition: box-shadow 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.shell-side {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--shell-drawer-w);
  background: var(--panel-bg);
  border-right: none;
  display: flex; flex-direction: column;
  overflow-y: auto; overflow-x: hidden;
  transform: translateX(0);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 8px 0 12px -8px rgba(0, 0, 0, 0.18);
}
.app-shell.sidebar-collapsed .shell-side {
  transform: translateX(calc(-1 * var(--shell-drawer-w)));
  box-shadow: none;
  pointer-events: none;
}

/* Backdrop — mobile overlay only (hidden on desktop) */
.shell-drawer-backdrop { display: none; }

/* Pull tab — full-height strip; always theme-default (never team-branded) */
.shell-drawer-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  z-index: calc(var(--z-shell) + 1);
  width: var(--shell-handle-w);
  padding: 0;
  border: none;
  border-left: 1px solid var(--panel-border);
  border-radius: 0;
  background: var(--panel-bg);
  color: var(--text-secondary);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.shell-drawer-handle:hover {
  background: var(--bg-translucent-hover);
  color: var(--text-primary);
  border-left-color: var(--panel-border-hover);
}
.shell-drawer-handle__grip {
  width: 2px;
  height: 20px;
  border-radius: 1px;
  background: currentColor;
  opacity: 0.65;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}
:root.theme-light .shell-drawer-handle,
:root:not(.theme-dark) .shell-drawer-handle {
  background: #ffffff;
  border-left-color: rgba(0, 0, 0, 0.14);
  color: #64748b;
}
:root.theme-light .shell-drawer-handle:hover,
:root:not(.theme-dark) .shell-drawer-handle:hover {
  background: #f1f5f9;
  border-left-color: rgba(0, 0, 0, 0.22);
  color: #334155;
}
:root.theme-dark .shell-drawer-handle {
  background: #12151c;
  border-left-color: rgba(255, 255, 255, 0.14);
  color: #94a3b8;
}
:root.theme-dark .shell-drawer-handle:hover {
  background: #1a1f2a;
  border-left-color: rgba(255, 255, 255, 0.22);
  color: #e2e8f0;
}
.shell-side::-webkit-scrollbar { width: 6px; }
.shell-side::-webkit-scrollbar-thumb { background: var(--bg-translucent-lg); border-radius: 6px; }

.shell-side__head { padding: 18px 14px 6px; flex-shrink: 0; }
.shell-side__titlerow { display: flex; align-items: center; gap: 6px; }
.shell-side__title { font-weight: 800; font-size: .95rem; color: var(--text-primary); flex: 1; }
.shell-side__title--gm {
  display: flex; align-items: center; gap: 8px; min-width: 0;
}
.shell-side__title--gm span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shell-side__title-link {
  text-decoration: none;
  color: inherit;
  flex: 1;
  min-width: 0;
  transition: opacity .12s;
}
.shell-side__title-link:hover { opacity: 0.82; }
.shell-side__gm-logo { width: 22px; height: 22px; object-fit: contain; flex-shrink: 0; }
.shell-side__sub { font-size: .68rem; color: var(--cool-grey); font-weight: 600; margin-top: 4px; padding: 0 2px; }
.shell-side__collapse {
  width: 28px; height: 28px; border-radius: 8px;
  border: 1px solid var(--panel-border); background: none; color: var(--cool-grey);
  cursor: pointer; display: grid; place-items: center; flex-shrink: 0;
}
.shell-side__collapse:hover { background: var(--bg-translucent-md); color: var(--text-secondary); }

.shell-search {
  margin: 10px 10px 4px; display: flex; align-items: center; gap: 8px;
  background: var(--bg-translucent-sm); border: 1px solid var(--panel-border);
  border-radius: 10px; padding: 9px 11px;
}
.shell-search input {
  background: none; border: 0; outline: none; width: 100%;
  font-family: inherit; font-size: .82rem; color: var(--text-primary);
}
.shell-search input::placeholder { color: var(--cool-grey); }

.shell-grp { padding: 0 6px; margin-top: 10px; }
.shell-grp__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 8px; cursor: pointer; color: var(--cool-grey);
  font-weight: 700; font-size: .66rem; text-transform: uppercase; letter-spacing: .9px;
  user-select: none;
}
.shell-grp__items { display: flex; flex-direction: column; gap: 1px; margin-top: 2px; }

.shell-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px;
  cursor: pointer; color: var(--text-secondary); font-size: .84rem; font-weight: 600;
  transition: background .12s, color .12s; text-decoration: none;
}
.shell-item:hover { background: var(--bg-translucent-md); color: var(--text-primary); }
.shell-item.is-active {
  background: var(--shell-active-bg, var(--bg-translucent-hover));
  color: var(--shell-active-text, var(--accent-blue));
  font-weight: 700;
  box-shadow: none;
}
.shell-item.is-active .item-count { color: var(--accent-blue); }
.shell-item .tag {
  width: 24px; height: 24px; border-radius: 7px;
  display: grid; place-items: center;
  font-size: .58rem; font-weight: 800; color: #fff; flex-shrink: 0;
}
.shell-item .item-count { margin-left: auto; font-size: .7rem; font-weight: 700; color: var(--cool-grey); }
.shell-flat { border-top: 1px solid var(--panel-border); margin: 10px 6px 8px; padding-top: 6px; }
.shell-rail__lang { flex-shrink: 0; width: 100%; padding: 0 10px; }
.shell-rail__lang-toggle,
.shell-rail__lang-select {
  width: 100%; max-width: 56px; margin: 0 auto; display: block;
  font-size: .62rem; font-weight: 800; padding: 5px 2px; border-radius: 7px;
  border: 1px solid var(--panel-border); background: var(--bg-translucent-md);
  color: var(--text-secondary); cursor: pointer; text-align: center;
  font-family: inherit; letter-spacing: 0.04em;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.shell-rail__lang-toggle:hover {
  background: var(--bg-translucent-hover);
  color: var(--text-primary);
  border-color: var(--accent-blue);
}

/* Labeled logout / login — visible text, not icon-only */
.shell-rail__logout {
  width: calc(100% - 16px);
  max-width: 60px;
  margin: 4px 8px 2px;
  padding: 8px 4px 6px;
  border-radius: 11px;
  border: 1px solid rgba(248, 113, 113, 0.55);
  background: rgba(248, 113, 113, 0.1);
  color: #f87171;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex-shrink: 0;
  text-decoration: none;
  font-family: inherit;
  transition: background .15s, border-color .15s, color .15s;
}
.shell-rail__logout:hover {
  background: rgba(248, 113, 113, 0.22);
  border-color: #f87171;
  color: #fca5a5;
}
.shell-rail__logout--login {
  border-color: rgba(74, 222, 128, 0.5);
  background: rgba(74, 222, 128, 0.1);
  color: #4ade80;
}
.shell-rail__logout--login:hover {
  background: rgba(74, 222, 128, 0.2);
  border-color: #4ade80;
  color: #86efac;
}
.shell-rail__logout-label {
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  letter-spacing: 0.2px;
  max-width: 100%;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
}

.shell-lang { padding: 10px 16px; margin-top: auto; flex-shrink: 0; }
.shell-lang-toggle,
.shell-lang-select {
  width: 100%; background: var(--bg-translucent-sm); border: 1px solid var(--panel-border);
  border-radius: 8px; padding: 6px 10px; color: var(--text-secondary); font-size: .76rem;
  cursor: pointer; outline: none; font-family: inherit; font-weight: 700;
  letter-spacing: 0.04em; transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.shell-lang-toggle:hover {
  background: var(--bg-translucent-md);
  color: var(--text-primary);
  border-color: var(--accent-blue);
}

/* League selector inside sidebar */
.shell-league-select { width: 100%; margin: 0 0 6px; padding: 7px 10px;
  background: var(--bg-translucent-sm); border: 1px solid var(--panel-border);
  border-radius: 9px; color: var(--text-primary); font-family: inherit; font-size: .82rem;
  cursor: pointer; outline: none; }

/* ── Main content area ──────────────────────────────────────────────────── */
.app-main {
  overflow-y: auto;
  overflow-x: hidden;
  min-width: 0;
  padding: 26px 30px 22px;
  box-shadow: inset 12px 0 28px -14px rgba(0, 0, 0, 0.12);
  position: relative;
  z-index: 0;
}
/* Pages that want viewport-locked scroll (e.g. roster board) add this class
   via the bodyClass local set in their route. */
.app-main.is-locked { overflow: hidden; display: flex; flex-direction: column; }
.app-main::-webkit-scrollbar { width: 8px; }
.app-main::-webkit-scrollbar-thumb { background: var(--bg-translucent-lg); border-radius: 8px; }

/* Season state badge (shown in sidebar sub-header) */
.shell-season-badge {
  display: inline-block; font-size: .58rem; font-weight: 900; letter-spacing: .6px;
  padding: 2px 7px; border-radius: 4px; margin-left: 6px; vertical-align: middle;
}

/* ─────────────────────────────────────────────────────────────────────────── */

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

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Navigation - Modern Fixed Bar */
.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: var(--obsidian);
  border-bottom: 3px solid var(--teal);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: var(--z-shell);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.nav-content {
  width: 100%;
  max-width: 1440px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
}

.nav-logo {
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--teal);
  text-decoration: none;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition);
}

.nav-logo:hover {
  color: var(--vibrant-orange);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  color: var(--cool-grey);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.nav-link:hover, .nav-link.active {
  color: #fff;
  border-bottom-color: var(--vibrant-orange);
}

/* Dropdown - Clean & High Contrast */
.dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--obsidian);
  min-width: 220px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.6);
  border: 2px solid var(--teal);
  border-radius: var(--radius-sm);
  padding: 10px 0;
  z-index: var(--z-overlay);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  margin-top: 10px;
}

.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  margin-top: 0;
}

.dropdown-item {
  color: var(--cool-grey);
  padding: 12px 24px;
  text-decoration: none;
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
}

.dropdown-item:hover {
  background: var(--teal);
  color: #fff;
  padding-left: 30px;
}

/* Nav Special Buttons */
.nav-btn {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px; /* Fixed height to match standard links */
}

.nav-btn-outline {
  border: 2px solid var(--vibrant-orange);
  color: #fff;
}

.nav-btn-solid {
  background: var(--vibrant-orange);
  color: #fff;
}

.nav-btn:hover {
  filter: brightness(1.2);
}

.nav-auth-section {
  margin-left: 10px;
  padding-left: 20px;
  border-left: 2px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Page Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 50px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.team-info h1 {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -1.5px;
  color: #fff;
  margin: 0;
}

.team-info p {
  color: var(--cool-grey);
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 5px;
}

.gm-info {
  background: var(--teal);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Dashboard Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 50px;
}

.stat-card {
  background: var(--teal);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 30px;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--vibrant-orange);
}

.stat-label {
  color: rgba(255,255,255,0.6);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.stat-value {
  font-size: 2.2rem;
  font-weight: 900;
  font-family: var(--font-stats);
  color: #fff;
}

/* Modern Progress Bar */
.cap-progress-bg {
  width: 100%;
  height: 12px;
  background: rgba(0,0,0,0.3);
  border-radius: 6px;
  margin-top: 20px;
  overflow: hidden;
}

.cap-progress-fill {
  height: 100%;
  background: var(--vibrant-orange);
  border-radius: 6px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Tables - Readability First */
.roster-section {
  background: var(--obsidian);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  padding: 0; /* Let headers handle padding */
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.roster-grid {
  display: grid;
  grid-template-columns: 0.4fr 1.2fr 0.4fr;
  gap: 25px;
  align-items: flex-start;
}

.roster-column {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

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

.compact-table thead {
  background: var(--table-head-bg);
}

.compact-table th {
  text-align: left;
  color: var(--text-secondary);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
  padding: 16px 12px;
  letter-spacing: 1.5px;
  border-bottom: 3px solid var(--vibrant-orange);
  background: var(--table-head-bg);
}

.compact-table td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.95rem;
  font-weight: 500;
  color: #fff;
}

.compact-table td:nth-child(n+3) {
  font-family: var(--font-stats);
  font-weight: 600;
  color: #fff;
}

.compact-table tr:hover {
  background: rgba(255,255,255,0.03);
}

.compact-table tr:last-child td {
  border-bottom: none;
}

.player-name {
  font-weight: 800;
  font-size: 1.05rem;
}

.player-pos {
  font-size: 0.7rem;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--obsidian);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  text-transform: uppercase;
}

.nhl-link-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 3px;
  background: var(--teal, #0ea5e9);
  color: #000;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 6px;
  vertical-align: middle;
  line-height: 1.4;
}

/* Buttons - Bold Actions */
.btn {
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: var(--vibrant-orange);
  color: #fff;
}

.btn-primary:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 102, 0, 0.4);
}

.btn-secondary {
  background: var(--obsidian);
  color: #fff;
  border: 2px solid var(--cool-grey);
}

.btn-secondary:hover {
  background: var(--cool-grey);
  color: var(--obsidian);
}

/* LTIR toggle button */
.ltir-btn {
  background: rgba(167, 139, 250, 0.08);
  color: #a78bfa;
  border: 1px solid rgba(167, 139, 250, 0.4);
  font-weight: 800;
}
.ltir-btn:hover { background: rgba(167, 139, 250, 0.2); }
.ltir-btn.ltir-on {
  background: #a78bfa;
  color: #000;
  border-color: #a78bfa;
}

/* News Ticker - Clean Information */
.news-ticker-container {
  background: var(--obsidian);
  border: 2px solid var(--teal);
  border-radius: var(--radius-sm);
  padding: 12px 25px;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.ticker-label {
  background: var(--vibrant-orange);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 6px 12px;
  border-radius: 2px;
  letter-spacing: 2px;
}

.ticker-content {
  font-size: 0.9rem;
  color: var(--cool-grey);
  font-weight: 600;
}

/* Drag & Drop Feedback */
.dragging {
  opacity: 0.4;
  border: 2px dashed var(--vibrant-orange) !important;
}

.drag-over-row {
  background: rgba(0, 128, 128, 0.2) !important; /* Teal tint */
  border-left: 4px solid var(--vibrant-orange) !important;
}

.swap-target-highlight {
  background: rgba(255, 102, 0, 0.15) !important;
  box-shadow: inset 0 0 15px rgba(255, 102, 0, 0.2);
}

.valid-slot-highlight {
  background: rgba(0, 128, 128, 0.05);
}

.invalid-slot-dim {
  opacity: 0.3;
  filter: grayscale(1);
  pointer-events: none;
}

/* Footer - Strong Anchor */
footer {
  margin-top: 100px;
  background: var(--teal);
  padding: 60px 30px;
  text-align: center;
  border-top: 6px solid var(--vibrant-orange);
  color: #fff;
}

@media (max-width: 1024px) {
  .roster-grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------
 * Hamburger button — mobile only
 * ------------------------------------------------------------------ */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.hamburger-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--cool-grey);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------------------------
 * Mobile drawer overlay + panel
 * ------------------------------------------------------------------ */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: var(--z-modal);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

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

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  height: 100%;
  background: var(--obsidian);
  border-left: 2px solid var(--teal);
  z-index: var(--z-toast);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-drawer.open {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 2px solid var(--teal);
}

.drawer-close-btn {
  background: none;
  border: none;
  color: var(--cool-grey);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: var(--transition);
}

.drawer-close-btn:hover { color: #fff; }

.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  padding: 12px 0 40px;
}

.mobile-drawer-link {
  display: block;
  padding: 13px 24px;
  color: var(--cool-grey);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.15s, color 0.15s;
  border-left: 3px solid transparent;
}

.mobile-drawer-link:hover,
.mobile-drawer-link.active {
  color: #fff;
  background: rgba(255,255,255,0.05);
  border-left-color: var(--teal);
}

.mobile-drawer-section-label {
  font-size: 0.65rem;
  font-weight: 900;
  color: var(--teal);
  letter-spacing: 1.5px;
  padding: 18px 24px 6px;
}

.mobile-drawer-user {
  display: block;
  padding: 10px 24px;
  font-size: 0.8rem;
  color: var(--cool-grey);
  font-weight: 800;
  text-transform: uppercase;
}

/* FR/EN segmented switch in the mobile drawer. */
.mobile-drawer-lang {
  display: flex;
  gap: 8px;
  padding: 0 24px 8px;
}

.drawer-lang-btn {
  flex: 1;
  padding: 8px 0;
  background: none;
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  color: var(--cool-grey);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.drawer-lang-btn.active {
  background: var(--vibrant-orange);
  color: var(--btn-primary-text);
  border-color: var(--vibrant-orange);
}

@media (max-width: 768px) {
  header { flex-direction: column; align-items: flex-start; gap: 25px; }
  .team-info h1 { font-size: 2.2rem; }
  .nav-links { display: none; }
  .nav-auth-section { display: none; }
  .league-selector { max-width: 140px; }
  .hamburger-btn { display: flex; }
  .nav-content { gap: 8px; }
  .nav-logo { font-size: 1rem; }
}

/* ------------------------------------------------------------------
 * Phase 8: Mobile stacked-card layouts for premium tables.
 * Collapses the standard `<table class="premium-table">` and the
 * dashboard `.compact-table` into stacked cards on narrow viewports.
 * Each row becomes a card; `<td>` cells render as label/value rows
 * via the column header passed in via `data-label="…"`. Tables that
 * don't set data-label still render — just without the column key.
 * ------------------------------------------------------------------ */
@media (max-width: 700px) {
  .stats-grid { grid-template-columns: 1fr; }

  /* Quick-actions row wraps to column */
  .container > div[style*="display: flex"][style*="gap: 15px"] { flex-direction: column; align-items: stretch; }
}
/* NOTE: mobile tables stay tabular (not stacked cards). The reduced-column
 * mobile views live in mobile.css. */

/* ── Roster Board master/detail layout ── */
.pl-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 372px;
  gap: 18px;
  align-items: start;
  margin-bottom: 30px;
}
.pl-board__main,
.pl-board__side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.pl-board__main > .pl-tier { flex: 0 0 auto; width: 100%; }
/* Side tiers must size to content — flex: 1 1 0 collapses to 0 height when the
   372px column has no viewport-locked parent (demo fills the viewport). */
.pl-board__side > .pl-tier { flex: 0 0 auto; width: 100%; }

.pl-tier {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.pl-tier__head {
  background: var(--obsidian);
  padding: 13px 16px;
  border-bottom: 1px solid var(--panel-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.pl-tier__label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.2px;
}
.pl-tier__dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}
.pl-tier__head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pl-rtable-wrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: auto;
  max-height: 560px;
  overflow-y: auto;
}
.pl-tier.is-compact .pl-rtable-wrap {
  flex: 0 1 auto;
  max-height: 280px;
}

.pl-rtable-wrap .compact-table thead th {
  background: var(--table-head-bg) !important;
}

/* Board tables: demo-style sticky headers */
.pl-board .compact-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--table-head-bg);
  font-size: 0.63rem;
  letter-spacing: 0.3px;
  padding: 9px 8px;
  border-bottom: 1px solid var(--panel-border);
}
.pl-board .compact-table td {
  padding: 7px 8px;
  font-size: 0.8rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.pl-board .compact-table tbody tr:hover td {
  background: var(--bg-translucent-hover);
}

/* Compact: hide auto-sort / views buttons */
.pl-tier.is-compact .pl-tier-head-btns { display: none; }

/* Tier select tabs — demo blue accent */
.pl-tier-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.pl-tier-tab {
  background: var(--bg-translucent-sm);
  border: 1px solid var(--panel-border);
  color: var(--cool-grey);
  padding: 8px 22px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.85rem;
  transition: var(--transition);
}
.pl-tier-tab:hover { color: var(--text-primary); background: var(--bg-translucent-md); }
.pl-tier-tab.is-active {
  background: var(--accent-blue);
  color: #fff;
  border-color: var(--accent-blue);
}

/* Mobile: stack to single column */
@media (max-width: 900px) {
  .pl-board { grid-template-columns: 1fr; }
  .pl-board__side { flex-direction: row; flex-wrap: wrap; }
  .pl-rtable-wrap { max-height: none; }
}

/* ── Roster page chrome ── */
.pl-sechead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  flex-shrink: 0;
}
.pl-sechead h2 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin: 0;
}
.pl-sechead__meta {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex-shrink: 0;
}
.pl-sechead__caps {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  min-width: 0;
}
.pl-sechead__caps .pl-capchip {
  width: 100%;
  justify-content: flex-start;
  box-sizing: border-box;
}
.pl-capchip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  padding: 6px 13px;
}
.pl-capchip b { color: var(--text-primary); font-weight: 800; }
.tonight-chip {
  display: inline-block;
  margin-left: 4px;
  padding: 0 5px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  vertical-align: middle;
  background: color-mix(in srgb, var(--vibrant-orange) 18%, transparent);
  color: var(--vibrant-orange);
}
#tonight-banner {
  border-color: color-mix(in srgb, var(--vibrant-orange) 40%, var(--panel-border));
}
.tonight-scoreboard {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -4px 0 14px;
}
.tonight-scoreboard[hidden] { display: none; }
.tonight-game {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  background: var(--panel-bg);
  font-size: 0.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-secondary);
  white-space: nowrap;
}
.tonight-game--live {
  border-color: color-mix(in srgb, var(--vibrant-orange) 45%, var(--panel-border));
  color: var(--text-primary);
}
.tonight-game__score {
  color: var(--text-primary);
  font-weight: 800;
}
.tonight-game__tag {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tonight-game--live .tonight-game__tag {
  color: var(--vibrant-orange);
}
.pl-capchip .sp { color: #15803d; }
:root.theme-dark .pl-capchip .sp { color: #4ade80; }
.pl-retchip {
  border-color: rgba(248, 113, 113, 0.35);
}
.pl-retchip b { color: #f87171; }
#retentions-panel .pl-rtable-wrap {
  max-height: none;
}
#retentions-panel .pl-ret-section + .pl-ret-section {
  border-top: 1px solid var(--panel-border);
}
#retentions-panel .pl-ret-section__hint {
  margin: 0;
  padding: 10px 16px 0;
  font-size: 0.72rem;
  color: var(--cool-grey);
}
#retentions-panel .pl-ret-empty {
  margin: 0;
  padding: 16px;
  font-size: 0.8rem;
  color: var(--cool-grey);
}
.pl-link {
  color: var(--accent-blue);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}
.pl-link:hover { text-decoration: underline; }
.pl-hint {
  font-size: 0.78rem;
  color: var(--cool-grey);
  margin: -6px 0 14px;
}

/* Light demo shell — white cards on soft gray canvas */
:root.theme-light .app-shell,
:root:not(.theme-dark) .app-shell {
  background: #ffffff;
  --shell-shadow-rail: 6px 0 24px rgba(0, 0, 0, 0.12), 2px 0 10px rgba(0, 0, 0, 0.06);
  --shell-shadow-drawer: 10px 0 32px rgba(0, 0, 0, 0.1), 4px 0 14px rgba(0, 0, 0, 0.05);
}
:root.theme-light .app-main,
:root:not(.theme-dark) .app-main {
  box-shadow: inset 10px 0 24px -12px rgba(0, 0, 0, 0.06);
}
:root.theme-dark .app-shell {
  --shell-shadow-rail: 12px 0 36px rgba(0, 0, 0, 0.45), 5px 0 16px rgba(0, 0, 0, 0.25);
  --shell-shadow-drawer: 16px 0 48px rgba(0, 0, 0, 0.32), 8px 0 22px rgba(0, 0, 0, 0.18);
}
:root.theme-dark .app-main {
  box-shadow: inset 14px 0 32px -14px rgba(0, 0, 0, 0.28);
}
:root.theme-light body,
:root:not(.theme-dark) body {
  background: radial-gradient(circle at 30% 20%, #d6dae0, #b9bfc8) !important;
}
:root.theme-light .shell-rail,
:root:not(.theme-dark) .shell-rail {
  background: #ffffff;
  border-right-color: #edeff2;
}
:root.theme-light .shell-side,
:root:not(.theme-dark) .shell-side {
  background: #ffffff;
  box-shadow: inset 6px 0 10px -6px rgba(0, 0, 0, 0.06);
}
:root.theme-dark .shell-side {
  box-shadow: inset 8px 0 14px -8px rgba(0, 0, 0, 0.28);
}

:root.theme-light .shell-item.is-active,
:root:not(.theme-dark) .shell-item.is-active {
  --shell-active-bg: #eaf1ff;
  --shell-active-text: #1d4ed8;
}
:root.theme-light .shell-rail__icon.is-active,
:root:not(.theme-dark) .shell-rail__icon.is-active {
  background: #2563eb !important;
  color: #fff !important;
}
:root.theme-light .pl-tier__head,
:root:not(.theme-dark) .pl-tier__head {
  background: #ffffff;
}

/* ── My Pool NHL team branding (GM dashboard) ── */
.app-shell.is-pool-branded #shell-side {
  background: var(--pool-sidebar-bg) !important;
  color: var(--pool-text-on-sidebar);
}

/* Handle stays theme-default so it contrasts with branded main background */
.app-shell.is-pool-branded #shell-drawer-handle {
  background: var(--panel-bg) !important;
  border-left-color: var(--panel-border) !important;
  color: var(--text-secondary) !important;
}
:root.theme-light .app-shell.is-pool-branded #shell-drawer-handle,
:root:not(.theme-dark) .app-shell.is-pool-branded #shell-drawer-handle {
  background: #ffffff !important;
  border-left-color: rgba(0, 0, 0, 0.14) !important;
  color: #64748b !important;
}
:root.theme-dark .app-shell.is-pool-branded #shell-drawer-handle {
  background: #12151c !important;
  border-left-color: rgba(255, 255, 255, 0.14) !important;
  color: #94a3b8 !important;
}

.app-shell.is-pool-branded #shell-side .shell-side__title,
.app-shell.is-pool-branded #shell-side .shell-side__sub,
.app-shell.is-pool-branded #shell-side .shell-grp__head {
  color: var(--pool-text-on-sidebar);
}
.app-shell.is-pool-branded #shell-side .shell-item {
  color: var(--pool-text-on-sidebar);
}
.app-shell.is-pool-branded #shell-side .shell-item:hover {
  background: rgba(0, 0, 0, 0.08);
}
.app-shell.is-pool-branded #shell-side .shell-item.is-active {
  background: rgba(0, 0, 0, 0.14) !important;
  color: var(--pool-text-on-sidebar) !important;
}
.app-shell.is-pool-branded #shell-side .shell-flat {
  border-top-color: rgba(0, 0, 0, 0.1);
}

.app-main.is-pool-branded {
  position: relative;
  background: var(--pool-bg) !important;
  color: var(--pool-text-on-bg);
}
.app-main.is-pool-branded::before {
  content: '';
  position: fixed;
  top: 5%;
  bottom: 5%;
  left: calc(var(--shell-rail-w) + var(--shell-drawer-col));
  right: 5%;
  background-image: var(--pool-logo-url);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
.app-main.is-pool-branded > * {
  position: relative;
  z-index: 1;
}

.app-shell.is-pool-branded .pl-sechead h2,
.app-shell.is-pool-branded .pl-hint {
  color: var(--pool-text-on-bg);
}

/* Cap chip always uses default site panel colors — never team-branded */
.app-shell.is-pool-branded .pl-capchip,
:root.theme-light .pl-capchip,
:root:not(.theme-dark) .pl-capchip {
  background: var(--panel-bg) !important;
  border-color: var(--panel-border) !important;
  color: var(--text-secondary) !important;
}
.app-shell.is-pool-branded .pl-capchip b,
:root.theme-light .pl-capchip b,
:root:not(.theme-dark) .pl-capchip b {
  color: var(--text-primary) !important;
}
.app-shell.is-pool-branded .pl-capchip .sp {
  color: #15803d !important;
}
:root.theme-dark .app-shell.is-pool-branded .pl-capchip .sp {
  color: #4ade80 !important;
}
.app-shell.is-pool-branded .pl-tier {
  background: var(--panel-bg) !important;
  border-color: var(--panel-border) !important;
  box-shadow: var(--shadow-card) !important;
}
.app-shell.is-pool-branded .pl-tier__head {
  background: var(--obsidian) !important;
  color: var(--text-primary) !important;
  border-bottom-color: var(--panel-border) !important;
}
:root.theme-light .app-shell.is-pool-branded .pl-tier__head,
:root:not(.theme-dark) .app-shell.is-pool-branded .pl-tier__head {
  background: #ffffff !important;
}
.app-shell.is-pool-branded .pl-tier__label {
  color: var(--text-primary) !important;
}

.app-shell.is-pool-branded .pl-board .compact-table thead th,
.app-shell.is-pool-branded .pl-rtable-wrap .compact-table thead th {
  background: var(--pool-table-head-bg) !important;
  color: var(--pool-text-on-bg) !important;
  border-bottom-color: rgba(0, 0, 0, 0.18) !important;
}
.app-shell.is-pool-branded .pl-board .compact-table tbody td,
.app-shell.is-pool-branded .pl-rtable-wrap .compact-table tbody td {
  background: var(--panel-bg) !important;
  color: var(--text-primary) !important;
  border-bottom-color: var(--panel-border) !important;
}
.app-shell.is-pool-branded .pl-board .compact-table tbody tr:hover td,
.app-shell.is-pool-branded .pl-rtable-wrap .compact-table tbody tr:hover td {
  background: var(--bg-translucent-md) !important;
}

/* Modals use theme panel colors — not pool table branding */
.app-shell.is-pool-branded .glass:not(.modal-content),
.app-shell.is-pool-branded .roster-card,
.app-shell.is-pool-branded .stat-card,
.app-shell.is-pool-branded .control-panel {
  background: var(--pool-table-bg) !important;
  color: var(--pool-text-on-table) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
}

.app-shell.is-pool-branded .sticky-col-header {
  background: var(--pool-table-head-bg) !important;
  border-bottom-color: rgba(0, 0, 0, 0.18) !important;
}
.app-shell.is-pool-branded .sticky-col-header .compact-table thead th {
  background: var(--pool-table-head-bg) !important;
  color: var(--pool-text-on-bg) !important;
  border-bottom-color: rgba(0, 0, 0, 0.18) !important;
}

/* Pool-branded main: panel surfaces keep theme text (fix white cards on team-colored bg) */
.app-main.is-pool-branded .trade-card,
.app-main.is-pool-branded .trade-card .asset-item,
.app-main.is-pool-branded .trade-card .trade-card-header,
.app-main.is-pool-branded .trade-card .trade-actions,
.app-main.is-pool-branded .empty-state,
.app-main.is-pool-branded .loading-state,
.app-main.is-pool-branded .filter-bar,
.app-main.is-pool-branded #db-section-finance,
.app-main.is-pool-branded #db-section-assets .assets-panel,
.app-main.is-pool-branded .fin-tab-content,
.app-main.is-pool-branded .modal-content,
.app-main.is-pool-branded .theme-surface {
  color: var(--text-primary) !important;
}
.app-main.is-pool-branded .trade-card .asset-label,
.app-main.is-pool-branded .trade-card .empty-hint,
.app-main.is-pool-branded .empty-hint {
  color: var(--text-secondary) !important;
}

/* Page subtitles/labels on team-colored background (override inline cool-grey) */
.app-main.is-pool-branded .page-header p,
.app-main.is-pool-branded .page-header .header-badge,
.app-main.is-pool-branded .container > header > div > p {
  color: var(--pool-text-on-bg) !important;
  opacity: 0.92;
}

/* Inbox folder buttons sit on team-colored background — not theme cool-grey */
.app-main.is-pool-branded .inbox-nav-btn:not(.active) {
  color: var(--pool-text-on-bg) !important;
  background: rgba(0, 0, 0, 0.22) !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
}
.app-main.is-pool-branded .inbox-nav-btn:not(.active):hover {
  background: rgba(0, 0, 0, 0.32) !important;
  color: var(--pool-text-on-bg) !important;
}
.app-main.is-pool-branded .inbox-nav-btn:not(.active) .badge {
  background: rgba(255, 255, 255, 0.22) !important;
  color: var(--pool-text-on-bg) !important;
}

/* Sub-tabs on team-colored background */
.app-main.is-pool-branded .sub-tab:not(.active) {
  color: var(--pool-text-on-bg) !important;
  opacity: 0.9;
}
.app-main.is-pool-branded .sub-tab:not(.active):hover {
  color: var(--pool-text-on-bg) !important;
  opacity: 1;
  background: rgba(0, 0, 0, 0.15) !important;
}
.app-main.is-pool-branded .tab-group {
  background: rgba(0, 0, 0, 0.18) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}
.app-main.is-pool-branded .sub-tab.active {
  color: var(--text-primary) !important;
  background: var(--panel-bg) !important;
}

/* Non-branded inbox nav — still readable on default backgrounds */
.inbox-nav-btn:not(.active) {
  color: var(--text-primary);
}

/* ── Modals: center in main column (rail + drawer offset), sync with drawer toggle ── */
.modal,
.modal-overlay,
#claim-modal {
  left: calc(var(--shell-rail-w, 0px) + var(--shell-drawer-col, 0px)) !important;
  right: 0 !important;
  width: auto !important;
  top: 0 !important;
  bottom: 0 !important;
  transition: left 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

