@import url("./theme.css");
@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700;900&display=swap");

.blue-flag-request { display:inline-flex; align-items:center; gap:6px; margin:4px; padding:6px 9px; border:1px solid #287abf; border-radius:7px; background:#102b43; color:#83c8ff; font-size:11px; white-space:nowrap; cursor:pointer; }
.blue-flag-request:disabled { opacity:.4; cursor:not-allowed; }
.blue-flag-request:not(:disabled):hover { background:#184263; border-color:#83c8ff; }
.blue-flag-request:focus-visible { outline:2px solid #83c8ff; outline-offset:2px; }
.blue-flag-badge { display:inline-flex; padding:5px 8px; border:1px solid #287abf; border-radius:999px; color:#83c8ff; background:#102b43; font-size:11px; }
.blue-flag-badge.stale { color:#e6be74; background:#302617; border-color:#70552c; }

#screenShareButton { position:relative; }
#screenShareButton .screen-share-dot { position:absolute; top:4px; right:4px; width:8px; height:8px; border-radius:50%; background:#ff3655; box-shadow:0 0 0 2px #101113; }
#screenShareButton .screen-share-dot[hidden] { display:none; }
#screenShareButton.is-sharing { color:#50c878; }
#screenShareButton.is-sharing > svg { filter:drop-shadow(0 0 5px #50c87880); }
#screenShareButton.is-sharing .screen-share-dot { background:#50c878; }
#screenShareButton.is-sharing .screen-share-dot::after { content:""; position:absolute; inset:-1px; border:1px solid #50c878; border-radius:50%; animation:screen-share-active-pulse 2.4s ease-out infinite; }
@keyframes screen-share-active-pulse { 0% { transform:scale(1); opacity:.85; } 70%,100% { transform:scale(2.8); opacity:0; } }
@media(prefers-reduced-motion:reduce) { #screenShareButton.is-sharing .screen-share-dot::after { animation:none; } }

/* WebKit rules cover older embedded Chromium versions used by tablets. */
html, body {
  scrollbar-width: thin;
  scrollbar-color: #3b3d44 #101113;
}
html::-webkit-scrollbar, body::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
html::-webkit-scrollbar-track, body::-webkit-scrollbar-track {
  background: #101113;
}
html::-webkit-scrollbar-thumb, body::-webkit-scrollbar-thumb {
  background: #3b3d44;
  border-radius: 3px;
}
html::-webkit-scrollbar-thumb:hover, body::-webkit-scrollbar-thumb:hover {
  background: #5b5e68;
}
html::-webkit-scrollbar-button, body::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}
html::-webkit-scrollbar-corner, body::-webkit-scrollbar-corner {
  background: #101113;
}

.qualifying-rounds{padding:16px;margin-bottom:16px;border:1px solid var(--border);border-radius:8px;background:var(--panel)}
.qualifying-rounds>.table-scroll{display:block;overflow-x:auto;margin-bottom:20px}.qualifying-rounds table{width:100%;border-collapse:collapse}.qualifying-rounds th,.qualifying-rounds td{padding:10px;text-align:left;border-bottom:1px solid var(--border)}.qualifying-rounds th{font-size:10px;color:var(--muted)}.qualifying-rounds p{font-size:12px;color:var(--muted);margin:10px 0}.qualifying-rounds button{margin:8px 0}
.qualifying-rounds h3{font-size:13px;margin:0 0 12px}.qualifying-rounds>div{display:grid;gap:10px}.qualifying-rounds details{border:1px solid var(--border);border-radius:5px;overflow:hidden}.qualifying-rounds summary{padding:12px;cursor:pointer;font-size:12px}.qualifying-rounds summary span{margin-left:12px;color:var(--muted);font-size:10px}.qualifying-rounds td{font-size:11px}

@font-face {
  font-family: "Oxanium";
  src: url("/assets/fonts/oxanium-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Oxanium";
  src: url("/assets/fonts/oxanium-500.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Oxanium";
  src: url("/assets/fonts/oxanium-600.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Oxanium";
  src: url("/assets/fonts/oxanium-700.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
:root {
  color-scheme: dark;
  /* Historical names of the MFA tokens (theme.css). */
  --bg: var(--mfa-bg);
  --panel: rgba(20, 21, 24, 0.72);
  --panel-soft: rgba(24, 25, 29, 0.6);
  --border: var(--mfa-border);
  --text: var(--mfa-text);
  --muted: var(--mfa-text-muted);
  --red: var(--ui-accent);
  --red-soft: var(--ui-accent-soft);
  --green: var(--mfa-success);
  --purple: #b698f8;
  --amber: var(--mfa-warning);
  --sidebar: 236px;
  --glass-blur: blur(16px);
  /* Closest free substitute for the commercial "Microgramma D Bold Extended" used on F1 broadcast graphics. */
  --font-display: "Orbitron", "Oxanium", sans-serif;
  font-family: Oxanium, "Segoe UI", sans-serif;
  font-size: 14px;
  background: var(--bg);
  color: var(--text);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  position: relative;
  min-height: 100dvh;
}
/* Fond façon régie broadcast F1 : bandes diagonales, halo et vignette sous tout le contenu. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 70% 42% at 50% 0%, color-mix(in srgb, var(--ui-accent) 7%, transparent) 0%, transparent 62%),
    radial-gradient(ellipse 40% 30% at 88% 12%, rgba(182, 152, 248, 0.045) 0%, transparent 60%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.028) 0px, rgba(255, 255, 255, 0.028) 2px, transparent 2px, transparent 68px),
    repeating-linear-gradient(-35deg, rgba(255, 255, 255, 0.018) 0px, rgba(255, 255, 255, 0.018) 1px, transparent 1px, transparent 46px),
    linear-gradient(180deg, #121316 0%, #0b0c0e 45%, var(--bg) 100%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.4) 100%);
}
:where(button, input, select, textarea) {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
a {
  color: inherit;
  text-decoration: none;
}
.secondary {
  background: transparent;
  color: #b5b8c0;
  border-color: rgba(255, 255, 255, 0.08);
}
.secondary:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}
.danger {
  background: rgba(220, 60, 75, 0.04);
  border-color: rgba(220, 60, 75, 0.16);
  color: #df939b;
}
.danger:hover {
  background: rgba(220, 60, 75, 0.10);
  border-color: rgba(220, 60, 75, 0.30);
  color: #ffadb5;
  box-shadow: none;
}

.icon {
  width: 19px;
  height: 19px;
  flex: none;
  vertical-align: middle;
}
.button .icon,
button .icon {
  width: 16px;
  height: 16px;
}
:focus-visible {
  outline: 2px solid #ff6870;
  outline-offset: 4px;
}
input:focus-visible,
select:focus-visible {
  outline-offset: 1px;
}
[hidden] {
  display: none !important;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 20px;
  z-index: 100;
  background: var(--red);
  padding: 12px 20px;
  border-radius: 4px;
}
.skip-link:focus {
  top: 12px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  display: flex;
  flex-direction: column;
  background: rgba(15, 16, 18, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-right: 1px solid var(--border);
  box-shadow: 1px 0 0 rgba(255, 255, 255, 0.03);
  z-index: 40;
}
.brand {
  display: block;
  padding: 22px 22px 10px;
}
.brand-image {
  position: relative;
  display: block;
  width: 190px;
  height: 63px;
  overflow: hidden;
}
.brand-image img {
  position: absolute;
  width: 200px;
  height: 200px;
  max-width: none;
  left: -5px;
  top: -68px;
  object-fit: contain;
}
.red-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ui-danger);
  flex: none;
}
.nav-search {
  position: relative;
  flex: none;
  margin: 8px 12px 0;
}
.nav-search > .icon {
  position: absolute;
  left: 10px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
/* Underlined field: a line in the accent colour of the dashboard grows from the left on focus. */
.sidebar .nav-search input {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  box-sizing: border-box;
  padding: 9px 10px 9px 32px;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  color: var(--text);
  font: inherit;
  font-size: 11px;
}
.nav-search input::placeholder { color: var(--muted); }
.sidebar .nav-search input:focus,
.sidebar .nav-search input:focus-visible { outline: none; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); }
.nav-search-border {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--ui-accent);
  transition: width 0.3s cubic-bezier(0.6, -0.28, 0.735, 0.045);
  pointer-events: none;
}
.nav-search input:focus ~ .nav-search-border { width: 100%; }
.nav-search-empty { margin: 12px 20px; color: var(--muted); font-size: 12px; }
.sidebar nav {
  padding: 10px 12px 0;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #000 transparent;
}
.sidebar nav::-webkit-scrollbar {
  width: 4px;
}
.sidebar nav::-webkit-scrollbar-track {
  background: transparent;
}
.sidebar nav::-webkit-scrollbar-thumb {
  background: #000;
  border-radius: 4px;
}
.nav-separator {
  height: 0;
  margin: 6px 0;
}
.nav-section {
  margin-top: 4px;
}
.nav-section[open] {
  margin-bottom: 12px;
}
.nav-heading > span {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-count {
  flex: none;
  margin: 0;
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0;
  color: inherit;
  opacity: 0.7;
}
.nav-section[open] > .nav-heading .nav-count {
  display: none;
}
.nav-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.2px;
  white-space: nowrap;
  color: #666872;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color 0.15s;
}
.nav-heading::-webkit-details-marker {
  display: none;
}
.nav-heading::after {
  content: '';
  flex: none;
  width: 6px;
  height: 6px;
  margin-right: 2px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.2s;
}
.nav-section[open] > .nav-heading::after {
  transform: rotate(45deg);
}
.nav-heading:hover {
  color: #b5b8c0;
}
.nav-heading:focus-visible {
  outline-offset: -2px;
}
.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 36px;
  padding: 0 12px;
  margin: 1px 0;
  border-radius: 6px;
  color: #8d8f98;
  font-size: 12px;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-link:hover {
  color: #fff;
}
.nav-link:focus-visible {
  outline-offset: -2px;
}
.nav-link.selected {
  color: #fff;
}
.nav-link.selected::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--red);
  border-radius: 0 2px 2px 0;
}
.nav-link .icon {
  width: 18px;
  height: 18px;
}.nav-live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
  margin-left: auto;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 20px 18px 18px;
}
.precision-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #787981;
  margin: 0;
  border-top: 1px solid var(--border);
  padding-top: 17px;
}
.precision-mark i {
  display: block;
  background: #a52c34;
  width: 5px;
  height: 13px;
  transform: skew(-25deg);
}
.precision-mark i:nth-child(2) {
  opacity: 0.6;
}
.precision-mark i:nth-child(3) {
  opacity: 0.3;
}
.precision-mark span {
  font-family: "Oxanium", sans-serif;
  font-size: 9px;
  letter-spacing: 1.1px;
  margin-left: 7px;
}
/* Date and time (Paris) at the foot of the menu, after the three red bars. */
.precision-mark .shell-clock {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  flex: 0 1 auto;
  min-width: 0;
  gap: 8px;
  margin-left: 9px;
  font-family: "Oxanium", sans-serif;
  font-size: 10px;
  letter-spacing: 0.6px;
  white-space: nowrap;
  overflow: hidden;
}
.precision-mark #shellTime {
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
}
/* Narrow menu: the time alone. */
@media (max-width: 340px) {
  .precision-mark #shellDate { display: none; }
}
.team-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--border);
  padding-top: 17px;
}
.team-avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 34px;
  border-radius: 5px;
  background: #2a1d21;
  color: #f2646c;
  font-family: "Oxanium", sans-serif;
  font-size: 20px;
  font-weight: 700;
}
.team-profile strong {
  display: block;
  font-size: 11px;
  font-weight: 600;
}
.team-profile div > span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.profile-indicator {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
  margin-left: auto;
}
.topbar {
  height: 69px;
  margin-left: var(--sidebar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 32px;
  border-bottom: 1px solid var(--border);
  background: rgba(13, 14, 16, 0.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.breadcrumb,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 11px;
}
.breadcrumb-parent {
  color: var(--muted);
}
.breadcrumb-divider {
  color: #4f5057;
}
.breadcrumb strong {
  font-weight: 500;
}
.topbar-right {
  color: var(--muted);
  gap: 20px;
}
.shell-profile { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--text); }
.shell-profile-name { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.settings-button { position:relative; display:grid; place-items:center; border:1px solid transparent; color:var(--muted); }
.settings-button:hover, .settings-button[aria-expanded="true"] { color:var(--text); border-color:var(--border); background:#ffffff08; }
.settings-button .icon { width:18px; height:18px; transition:transform .25s ease; }
.settings-button[aria-expanded="true"] .icon { transform:rotate(55deg); }
.friend-invite-badge { display:inline-flex; align-items:center; justify-content:center; min-width:16px; height:16px; padding:0 4px; border:2px solid #0d0e10; border-radius:999px; background:var(--red); color:#fff; font:700 9px/1 var(--font-body); box-sizing:border-box; box-shadow:0 0 0 1px color-mix(in srgb, var(--ui-accent) 33.33%, transparent); }
.settings-button .friend-invite-badge { position:absolute; top:-3px; right:-3px; }
/* Topbar actions: bare icons, accent underline on hover/open, thin separator before the profile. */
body .topbar-right { gap:2px; align-self:stretch; }
body .topbar-right .shell-clock { margin-right:18px; }
body .topbar-right .icon-button { position:relative; display:grid; place-items:center; align-self:stretch; box-sizing:border-box; width:40px; min-width:40px; height:auto; min-height:0; padding:0; border:0; border-radius:0; background:transparent; box-shadow:none; color:var(--muted); transition:color .15s; }
body .topbar-right .icon-button::after { content:""; position:absolute; left:9px; right:9px; bottom:0; height:2px; background:var(--ui-accent); transform:scaleX(0); transform-origin:center; transition:transform .2s ease; pointer-events:none; }
body .topbar-right .icon-button:hover:not(:disabled), body .topbar-right .icon-button[aria-expanded="true"] { background:transparent; border-color:transparent; color:var(--text); }
body .topbar-right .icon-button:hover:not(:disabled)::after, body .topbar-right .icon-button[aria-expanded="true"]::after, body .topbar-right .icon-button:focus-visible::after { transform:scaleX(1); }
body .topbar-right .icon-button:focus-visible { outline:0; color:var(--text); }
body .topbar-right .icon-button svg { width:18px; height:18px; }
body .topbar-right .settings-button .friend-invite-badge { top:calc(50% - 16px); right:4px; }
body #screenShareButton .screen-share-dot { top:calc(50% - 12px); right:9px; box-shadow:0 0 0 2px #0d0e10; }
@media (min-width:801px) {
  body .topbar-right .shell-profile { margin-left:14px; padding-left:16px; border-left:1px solid var(--border); }
}
#settings-friends-tab .friend-invite-badge { position:static; }
.settings-dialog { position:relative; width:min(1040px,calc(100vw - 28px)); max-height:90dvh; overflow:auto; padding:0; border:1px solid var(--border); border-radius:14px; color:var(--text); background:var(--panel); backdrop-filter:var(--glass-blur); -webkit-backdrop-filter:var(--glass-blur); box-shadow:0 24px 80px #000b; }
.settings-dialog::before { content:""; position:absolute; inset:0 12px auto; height:1px; background:linear-gradient(90deg,transparent,var(--red),rgba(182,152,248,.65),transparent); pointer-events:none; }
.settings-dialog::backdrop { background:#06070a99; backdrop-filter:blur(5px); }
.settings-panel { margin:0; }
.settings-panel>header { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; padding:22px 24px 18px; border-bottom:1px solid var(--border); background:rgba(8,9,11,.16); }
.settings-panel h2 { margin:5px 0 0; font-size:20px; font-weight:600; }
.settings-tabs { display:flex; gap:5px; padding:12px 24px 0; border-bottom:1px solid var(--border); }
.settings-tab { border:0; border-bottom:2px solid var(--red); border-radius:0; padding:9px 3px 11px; background:transparent; color:var(--text); font:600 11px var(--font-body); }
.settings-tab-content { padding:18px 24px 4px; }
.settings-intro { margin:0 0 18px; color:var(--muted); font-size:11px; line-height:1.7; }
.settings-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px 14px; }
.settings-grid label, .settings-check { display:flex; flex-direction:column; gap:7px; color:#b8bec9; font-size:10px; }
.settings-grid input[type="number"] { width:100%; height:38px; box-sizing:border-box; padding:8px 10px; color:var(--text); font:500 13px var(--font-body); }
.settings-check { position:relative; flex-direction:row; align-items:center; gap:10px; margin-top:18px; cursor:pointer; white-space:nowrap; }
.settings-check input { position:absolute; z-index:1; left:0; top:50%; transform:translateY(-50%); width:39px; height:22px; margin:0; padding:0; opacity:0; cursor:pointer; }
.settings-message { min-height:18px; margin:12px 0 0; color:var(--green); font-size:10px; }
[data-medical-status="VALID"] { color:var(--green); }
[data-medical-status="EXPIRING_SOON"] { color:#f5b942; }
[data-medical-status="EXPIRED"] { color:var(--red); }
[data-medical-status="MISSING"] { color:var(--muted,#b8bec9); }
.medical-settings-card { margin-top:14px; overflow:hidden; }
.medical-settings-head { align-items:center; }
.medical-settings-head>div { min-width:0; }
.medical-settings-head h3 { margin:2px 0 4px; }
.medical-settings-head p { margin:0; color:var(--muted); font-size:10px; line-height:1.55; }
.medical-settings-kicker { color:var(--red)!important; font-size:8px!important; font-weight:700; letter-spacing:.14em; }
.medical-private-badge { flex:none; padding:5px 8px; border:1px solid #4b4f59; border-radius:999px; color:#c7cad1; background:#ffffff08; font-size:9px; font-weight:600; }
.medical-settings-body { display:grid; gap:16px; }
.medical-settings-status { display:grid; grid-template-columns:34px minmax(0,1fr) minmax(130px,.55fr); align-items:center; gap:12px; padding:13px 14px; border:1px solid var(--border); border-radius:var(--ui-control-radius); background:#0c0d0f; color:var(--text); }
.medical-status-icon { display:grid; place-items:center; width:30px; height:30px; border:1px solid currentColor; border-radius:50%; color:var(--muted); background:color-mix(in srgb,currentColor 8%,transparent); }
.medical-status-icon span { width:7px; height:7px; border-radius:50%; background:currentColor; box-shadow:0 0 10px currentColor; }
.medical-settings-status>div:not(.medical-status-icon) { display:grid; gap:2px; min-width:0; }
.medical-settings-status span { color:var(--muted); font-size:9px; }
.medical-settings-status strong { color:var(--text); font-size:12px; overflow-wrap:anywhere; }
.medical-screen-reader { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
.medical-expiry { padding-left:16px; border-left:1px solid var(--border); }
.medical-settings-status[data-medical-status="VALID"] .medical-status-icon { color:var(--green); }
.medical-settings-status[data-medical-status="EXPIRING_SOON"] .medical-status-icon { color:#f5b942; }
.medical-settings-status[data-medical-status="EXPIRED"],.medical-settings-status[data-medical-status="ERROR"] .medical-status-icon { color:var(--red); }
.medical-settings-fields { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(210px,.65fr); gap:14px; }
.medical-settings-fields .profile-field { min-width:0; }
.medical-settings-fields .profile-field>span { color:#d1d3d8; font-size:10px; font-weight:600; }
.medical-settings-fields .profile-field small { color:var(--muted); font-size:9px; line-height:1.45; }
.medical-settings-footer { display:flex; align-items:center; justify-content:space-between; gap:18px; padding-top:15px; border-top:1px solid var(--border); }
.medical-settings-footer p { display:grid; gap:2px; margin:0; color:var(--muted); font-size:9px; line-height:1.45; }
.medical-settings-footer p strong { color:#cdd0d6; font-size:10px; }
.medical-settings-footer button { flex:none; min-width:164px; }
@media(max-width:700px) {
  .medical-settings-fields { grid-template-columns:minmax(0,1fr); }
  .medical-settings-status { grid-template-columns:30px minmax(0,1fr); }
  .medical-expiry { grid-column:2; padding:8px 0 0; border-left:0; border-top:1px solid var(--border); }
  .medical-settings-footer { align-items:stretch; flex-direction:column; }
  .medical-settings-footer button { width:100%; }
}
.settings-panel>footer { display:flex; justify-content:flex-end; gap:10px; padding:16px 24px 22px; border-top:1px solid var(--border); }
.settings-panel>footer button { min-width:100px; }
.settings-tabs { gap:24px; }
.settings-tab:not(.active) { border-bottom-color:transparent; color:var(--muted); }
.settings-tab-content[hidden] { display:none; }
.settings-panel>.settings-message { padding:0 24px 12px; }
.settings-check { white-space:normal; }
.cockpit-layout-toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:18px; margin-bottom:14px; }
.cockpit-layout-toolbar label { display:flex; align-items:center; gap:8px; font-size:12px; }
.cockpit-layout-toolbar input { accent-color:var(--red); }
.cockpit-layout-toolbar label { white-space:nowrap; }
.settings-panel>footer { position:sticky; bottom:0; background:#15181e; z-index:2; }
.cockpit-layout-toolbar input[type="range"] { width:100px; }
/* Layout editor: blocks placed freely on the 12 columns of the cockpit grid. */
.cockpit-grid { display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); grid-template-rows:repeat(var(--grid-rows,4),44px); gap:6px; padding:10px; background:#0c1017; border:1px solid var(--border); border-radius:8px; margin-bottom:8px; user-select:none; }
.cockpit-grid-guide { grid-row:1 / -1; border:1px dashed #ffffff12; border-radius:4px; pointer-events:none; }
.cockpit-grid-block { position:relative; z-index:1; display:flex; flex-direction:column; justify-content:center; align-items:center; gap:2px; min-width:0; padding:4px 20px; border:1px solid #475875; border-radius:6px; background:#253044; color:#e9eff9; font-size:11px; text-align:center; cursor:grab; touch-action:pan-y; overflow:hidden; }
.cockpit-grid-label { overflow-wrap:anywhere; line-height:1.25; }
.cockpit-grid-block small { color:#aeb8c8; font-size:9px; white-space:nowrap; }
.cockpit-grid-block.is-selected { outline:2px solid var(--red); outline-offset:1px; }
.cockpit-grid-block.is-dragging { z-index:2; cursor:grabbing; opacity:.92; box-shadow:0 8px 24px #000a; }
.cockpit-grid-hide { position:absolute; top:3px; right:3px; width:20px; height:20px; padding:0; border:0; border-radius:4px; background:transparent; color:#aeb8c8; font-size:15px; line-height:1; cursor:pointer; }
.cockpit-grid-hide:hover { background:#ffffff14; color:#fff; }
.cockpit-grid-resize { position:absolute; right:1px; bottom:1px; width:16px; height:16px; cursor:nwse-resize; touch-action:none; color:#aeb8c8; background:linear-gradient(135deg,transparent 55%,currentColor 55% 62%,transparent 62% 72%,currentColor 72% 79%,transparent 79%); }
.cockpit-grid-status { min-height:16px; margin:0 0 12px; color:var(--muted); font-size:11px; }
.cockpit-grid-hidden { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:14px; }
.cockpit-grid-hidden>span { margin-right:4px; color:var(--muted); font-size:11px; }
@media (max-width:600px) { .cockpit-grid-block { padding:2px 4px; font-size:9px; } .cockpit-grid-block small, .cockpit-grid-hide { display:none; } }
.cockpit-layout-rows { display:grid; gap:8px; }
.cockpit-layout-row { display:grid; grid-template-columns:minmax(160px,1.4fr) repeat(5,minmax(0,1fr)); align-items:end; gap:10px; padding:12px; border:1px solid var(--border); border-radius:6px; }
.cockpit-layout-row label { display:flex; flex-direction:column; gap:5px; font-size:10px; color:#c6cedc; }
.cockpit-layout-name { display:flex; align-items:center; justify-content:space-between; gap:5px; min-height:39px; }
.cockpit-layout-name label { flex-direction:row; align-items:center; font-size:12px; }
.cockpit-layout-name>div { display:flex; align-self:flex-end; gap:4px; }
.cockpit-layout-name button { width:28px; padding:0; }
.cockpit-layout-name>div { flex:none; }
.cockpit-layout-name .settings-check, .cockpit-layout-toolbar .settings-check { margin:0; gap:8px; }
.settings-workspace { display:grid; grid-template-columns:200px minmax(0,1fr); }
.settings-categories { display:flex; flex-direction:column; gap:16px; padding:20px 14px; border-right:1px solid var(--border); background:rgba(8,9,11,.28); }
.settings-category-group { display:flex; flex-direction:column; gap:6px; padding:12px 8px; border:1px solid rgba(255,255,255,.05); border-radius:10px; background:rgba(255,255,255,.015); }
.settings-categories h3 { margin:0 6px 4px; color:var(--muted); font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.7px; }
.settings-categories .settings-tabs { display:flex; flex-direction:column; gap:2px; padding:0; border:0; }
.settings-categories .settings-tab { position:relative; display:flex; align-items:center; justify-content:flex-start; text-align:left; min-height:0; padding:10px 12px 10px 16px; border:0; border-radius:6px; background:transparent; color:var(--muted); font-weight:500; transition:background .15s ease, color .15s ease; }
.settings-categories .settings-tab:hover { background:rgba(255,255,255,.05); color:var(--text); }
.settings-categories .settings-tab.active { color:var(--text); background:color-mix(in srgb, var(--ui-accent) 12%, transparent); }
.settings-categories .settings-tab.active::before { content:""; position:absolute; left:0; top:8px; bottom:8px; width:2px; border-radius:0 2px 2px 0; background:var(--red); }
.settings-category-content { min-width:0; }
.settings-categories .settings-tab { white-space:nowrap; font-size:12px; }
.settings-categories .settings-logout { align-self:stretch; margin-top:auto; width:auto; height:36px; min-height:36px; padding:8px; border:1px solid #ff454538; border-radius:8px; background:#ff45450c; color:#ff6565; }
.settings-categories .settings-logout:hover { background:#ff454522; border-color:#ff454580; }
.settings-logout svg { display:block; width:18px; height:18px; margin:0 auto; }
.friends-heading h3 { display:flex; align-items:center; gap:9px; }
.friends-count { display:inline-flex; align-items:center; justify-content:center; min-width:22px; height:20px; padding:0 6px; border-radius:999px; background:color-mix(in srgb, var(--ui-accent) 14%, transparent); color:var(--red); font-size:11px; font-weight:700; }
.friends-searches { display:grid; grid-template-columns:1fr 1fr; gap:18px; padding-bottom:16px; margin-bottom:16px; border-bottom:1px solid var(--border); }
.friends-searches .social-search { margin:0; }
.social-settings .friend-table { min-width:0; background:transparent; border:0; border-radius:0; }
.social-settings .friend-table-head, .social-settings .friend-row { grid-template-columns:minmax(150px,1.3fr) minmax(100px,.9fr) minmax(110px,.8fr) repeat(3,64px) 28px; gap:16px; padding:16px 0; }
.friend-pagination[hidden] { display:none; }
@media(max-width:760px) {
  .friends-searches { grid-template-columns:1fr; }
  /* Narrow screens: the pseudo and the status columns step aside; the switches keep their headers. */
  .social-settings :is(.friend-table-head, .friend-row) { grid-template-columns:minmax(0,1fr) repeat(3,44px) 28px; gap:10px; }
  .social-settings :is(.friend-table-head > span:nth-child(2), .friend-table-head > span:nth-child(3), .friend-row > .friend-cell) { display:none; }
}
.profile-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 14px; }
.profile-field { display:grid; gap:7px; color:#b8bec9; font-size:10px; }
.profile-field-full { grid-column:1/-1; }
.profile-field input, .profile-field select, .profile-field textarea { width:100%; min-width:0; box-sizing:border-box; padding:8px 10px; border:1px solid #343a46; border-radius:5px; background:#0f1116; color:var(--text); font:500 12px var(--font-body); }
.profile-field input, .profile-field select { height:38px; }
.profile-field textarea { min-height:82px; resize:vertical; }
.profile-field input[readonly], .profile-field textarea[readonly], .profile-field select:disabled { opacity:.58; cursor:not-allowed; }
.profile-field input:focus-visible, .profile-field select:focus-visible, .profile-field textarea:focus-visible { outline:2px solid var(--red); outline-offset:1px; }
.profile-actions { display:flex; justify-content:flex-end; margin-top:18px; }
.simple-tabs { display:flex; flex-wrap:wrap; gap:24px; margin:16px 0 24px; border-bottom:1px solid var(--border); }
.simple-tabs button { padding:12px 0; border:0; border-bottom:2px solid transparent; border-radius:0; background:transparent; color:var(--muted); box-shadow:none; }
.simple-tabs button:hover { color:var(--text); background:transparent; transform:none; }
.simple-tabs button[aria-selected="true"] { color:var(--text); border-bottom-color:var(--red); }
.profile-avatar-editor { display:flex; align-items:center; flex-wrap:wrap; gap:18px; }
.profile-images { grid-column:1/-1; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.profile-images > .profile-field { min-width:0; }
@media (max-width:560px) {
  .profile-images { grid-template-columns:minmax(0,1fr); }
}
.profile-avatar-preview { width:80px; height:80px; border-radius:50%; object-fit:cover; border:1px solid var(--border); background:#0f1116; }
.profile-avatar-editor label { display:grid; gap:8px; min-width:0; }
.profile-avatar-editor input[type="file"] { height:auto; max-width:100%; }
.profile-avatar-editor input::file-selector-button { border:0; border-radius:4px; padding:6px 10px; margin-right:10px; background:#303747; color:var(--text); cursor:pointer; }
body.navigation-hidden .sidebar, body.navigation-hidden .topbar, body.navigation-hidden .sidebar-scrim { display:none; }
body.navigation-hidden main { margin-left:0; margin-right:0; max-width:none; min-height:100dvh; padding-left:24px; padding-right:24px; }
.navigation-restore { position:fixed; top:6px; left:6px; z-index:100; width:28px; height:28px; padding:0; border:1px solid var(--border); border-radius:6px; background:#171a20; color:var(--muted); opacity:.55; cursor:pointer; }
.navigation-restore:hover, .navigation-restore:focus-visible { opacity:1; color:var(--text); }
.navigation-restore[hidden] { display:none; }
.social-settings h3 { font-size:14px; margin:8px 0 14px; }
.social-settings p { font-size:11px; line-height:1.7; color:var(--muted); }
.social-search { display:flex; align-items:end; margin:14px 0; }
.social-search label { display:grid; gap:6px; width:100%; font-size:11px; min-width:0; }
.social-search input, .social-search select { min-width:0; width:100%; }
.social-search-wrap { position:relative; z-index:4; }
.social-search-results { position:absolute; top:calc(100% + 4px); left:0; right:0; max-height:230px; overflow-y:auto; padding:6px; border:1px solid var(--border); border-radius:8px; background:#12151c; box-shadow:0 18px 34px #000a; }
.social-search-results:empty { display:none; }
.social-search-results .social-result { padding:9px 6px; border-radius:6px; border-bottom:0; }
.social-search-results .social-result:hover { background:rgba(255,255,255,.04); }
.social-search-results .social-result + .social-result { margin-top:2px; }
.social-search-results .settings-intro { margin:8px 4px; }
.social-actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin:12px 0; }
.social-actions span { color:var(--muted); font-size:10px; }
.social-result { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:12px 0; border-bottom:1px solid var(--border); font-size:12px; }
.social-result>span { min-width:0; overflow-wrap:anywhere; }
.social-result button { flex:none; }
.friend-list { margin:14px 0; max-height:clamp(280px,52vh,620px); overflow-y:auto; overflow-x:hidden; padding:2px 2px 4px 0; }
.friend-table { width:100%; min-width:0; box-sizing:border-box; border:1px solid var(--border); border-radius:8px; overflow:hidden; background:#111419; }
.friend-table-head, .friend-row { display:grid; grid-template-columns:minmax(120px,1.3fr) minmax(90px,.9fr) minmax(100px,.8fr) repeat(3,56px) 40px; align-items:center; gap:10px; }
.friend-table-head { padding:9px 12px; color:var(--muted); border-bottom:1px solid var(--border); font-size:9px; text-transform:uppercase; letter-spacing:.5px; }
.friend-row { position:relative; padding:12px; border-bottom:1px solid #ffffff0d; font-size:11px; box-sizing:border-box; }
.friend-row:last-child { border-bottom:0; }
.friend-row.pending { opacity:.78; }
.friend-person, .social-person { display:flex; align-items:center; gap:9px; min-width:0; }
.social-person>span:last-child { display:grid; gap:3px; min-width:0; }
.friend-cell { min-width:0; overflow:hidden; color:var(--muted); text-overflow:ellipsis; white-space:nowrap; }
.friend-sharing-cell { grid-column:span 3; }
.friend-person strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.social-person small { color:var(--muted); font-size:9px; }
.social-avatar { position:relative; display:grid; place-items:center; flex:0 0 30px; width:30px; height:30px; overflow:hidden; border:1px solid #465064; border-radius:50%; background:#293140; color:#eaf0f8; font-size:10px; font-weight:700; }
.social-avatar img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.social-avatar-small { flex-basis:26px; width:26px; height:26px; }
.friend-row-actions { display:flex; align-items:center; justify-content:flex-end; gap:6px; }
.friend-delete { flex:none; display:grid; place-items:center; width:29px; height:29px; padding:6px; box-sizing:border-box; color:#ff7379; border:1px solid #ff737933; background:#ff73790d; }
.friend-delete:hover { color:#fff; border-color:#ff7379; background:#ff737922; }
.friend-delete svg { width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.friend-sharing-cell { min-width:0; }
.friend-sharing { display:flex; align-items:center; }
.friend-sharing .settings-check { margin:0; }
.friend-muted { color:var(--muted); font-size:9px; white-space:nowrap; }
.settings-dialog, .settings-dialog * { scrollbar-width:thin; scrollbar-color:#000 transparent; }
.settings-dialog::-webkit-scrollbar, .settings-dialog ::-webkit-scrollbar { width:5px; height:5px; }
.settings-dialog::-webkit-scrollbar-thumb, .settings-dialog ::-webkit-scrollbar-thumb { background:#000; border-radius:999px; }
.settings-dialog::-webkit-scrollbar-track, .settings-dialog ::-webkit-scrollbar-track { background:transparent; }
.settings-dialog::-webkit-scrollbar-button, .settings-dialog ::-webkit-scrollbar-button { display:none; }
.cockpit-layout-row select, .cockpit-layout-name button { height:39px; min-height:39px; box-sizing:border-box; background:#10141c; color:var(--text); border:1px solid #343a46; border-radius:4px; }
.cockpit-layout-row select { min-width:0; width:100%; padding:7px 3px; }
.cockpit-layout-row select:hover, .cockpit-layout-name button:hover:not(:disabled) { background:#171c25; border-color:#4c4e58; }
.cockpit-layout-name button:disabled { opacity:1; color:var(--muted); }
@media (max-width:600px) {
  .settings-workspace { grid-template-columns:minmax(0,1fr); }
  .settings-categories { padding:12px 18px; border-right:0; border-bottom:1px solid var(--border); }
  .settings-categories h3 { margin:0 0 8px; }
  .settings-categories .settings-tabs { flex-direction:row; }
  .cockpit-layout-row { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .cockpit-layout-name { grid-column:1/-1; }
  .profile-fields { grid-template-columns:minmax(0,1fr); }
}
.person-avatar { position: relative; display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; overflow: hidden; border-radius: 50%; border: 1px solid var(--border); background: #30202a; color: var(--text); font-weight: 700; }
.person-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.topbar-separator {
  height: 17px;
  border-right: 1px solid var(--border);
}
.championship-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #c4c4ca;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.1px;
}
.icon-button {
  min-width: 36px;
  min-height: 36px;
  padding: 8px;
  color: var(--muted);
}
.menu-toggle {
  display: none;
}
.sidebar-scrim {
  display: none;
}
main {
  margin-left: var(--sidebar);
  padding: 31px 32px 24px;
  max-width: 1900px;
  min-width: 0;
  min-height: calc(100dvh - 69px);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-family: var(--font-display);
  font-size: 38px;
  line-height: 1.08;
  letter-spacing: 0.3px;
  font-weight: 700;
  background: linear-gradient(100deg, #f5f5f7, #d8d9de 45%, #f5f5f7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
h2 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
}
h3 {
  font-size: 13px;
  font-weight: 600;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2.1px;
  color: var(--red);
  margin-bottom: 10px;
}
.eyebrow::before {
  content: "";
  width: 14px;
  height: 2px;
  background: var(--red);
}
.muted,
.help,
small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.page-heading,
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 27px;
}
.page-heading .muted,
.heading .muted {
  margin-top: 9px;
}
.heading-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.panel,
.card,
.editor {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 16px 36px -20px rgba(0, 0, 0, 0.8);
  min-width: 0;
  overflow: hidden;
}
.panel::before,
.card::before,
.sc-card::before,
.sc-session-head::before,
.editor::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--ui-accent) 55%, transparent), transparent);
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 61px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.panel-heading h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
}
.panel-heading h2::before {
  content: "";
  height: 12px;
  width: 3px;
  border-radius: 1px;
  background: var(--red);
}
.panel-heading p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}
.panel-heading > a {
  font-size: 10px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.panel-heading > a:hover {
  color: #fff;
}
.panel-heading > a .icon {
  width: 14px;
  height: 14px;
}
.panel-body {
  padding: 20px;
}
.panel-tag,
.tag {
  font-size: 9px;
  letter-spacing: 0.3px;
  color: #aaaab3;
  border: 1px solid #32343a;
  padding: 5px 8px;
  border-radius: 4px;
}
.section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 25px 0 12px;
}
.section-label h2 {
  font-size: 10px;
  letter-spacing: 1.6px;
  color: #b9bac1;
  font-weight: 500;
}
.section-label > span {
  font-size: 10px;
  color: var(--muted);
}
.summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 23px;
}
.stat-card,
.summary > div {
  position: relative;
  min-width: 0;
  padding: 19px 21px;
  background: var(--panel);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 16px 36px -20px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}
.stat-card::before,
.summary > div::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--ui-accent) 50%, transparent), transparent);
}
.stat-label {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.stat-label > .icon {
  color: #777983;
  width: 19px;
  height: 19px;
}
.summary span {
  display: block;
  font-size: 10px;
  color: #a1a2aa;
}
.summary strong {
  display: block;
  font-family: "Oxanium", "Bahnschrift", sans-serif;
  font-size: 38px;
  font-weight: 600;
  letter-spacing: 0.5px;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
  margin: 10px 0 7px;
  white-space: nowrap;
}
.summary .stat-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: #85868f;
}
.stat-foot i {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}
.stat-foot .icon {
  width: 12px;
  height: 12px;
}
.summary .stat-card.accent {
  border-color: #553037;
  background: linear-gradient(110deg, #21181c, #171619);
}
.summary .stat-card.accent .stat-label > .icon {
  color: #f06871;
}
.purple {
  color: var(--purple) !important;
}
.good {
  color: var(--green);
  font-weight: 600;
}
.bad,
.invalid {
  color: #ff838e;
  font-weight: 600;
}
.connection {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: var(--amber);
  border: 1px solid #4d4030;
  background: #241f18;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 4px;
  padding: 7px 9px;
}
.connection::before {
  content: "";
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.connection.online {
  color: var(--green);
  background: #17241f;
  border-color: #2c4439;
}
.toolbar,
.filters {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
}
.toolbar {
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 20px;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}
.filters > div,
.toolbar > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.filters > div {
  flex: 1;
  min-width: 115px;
}
.filters > div:has(button) {
  flex: 0;
  min-width: auto;
}
.toolbar .search {
  width: 270px;
}
.toolbar > p {
  margin-left: auto;
  padding-bottom: 10px;
  font-size: 10px;
}
.filters button {
  min-height: 38px;
}
label {
  display: block;
  color: #afb0b8;
  font-size: 11px;
  line-height: 1.5;
}
small {
  display: block;
  font-size: 10px;
  margin-top: 5px;
}
option {
  background: #191a1e;
}
.table-scroll {
  overflow: auto;
  max-width: 100%;
  scrollbar-width: thin;
  scrollbar-color: #3b3d44 #151619;
}
.table-scroll:focus-visible {
  outline-offset: -2px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
  white-space: nowrap;
}
thead {
  background: #111215;
}
thead th {
  height: 40px;
  padding: 10px 17px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 1px;
  color: #90919a;
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
}
tbody td {
  padding: 14px 17px;
  border-bottom: 1px solid #24262b;
  vertical-align: middle;
  font-variant-numeric: tabular-nums;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #1b1c21;
}
.mono,
.time-cell {
  font-family: Oxanium, ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.driver-name {
  font-size: 12px;
  font-weight: 600;
}
.driver-name small {
  font-size: 9px;
  font-weight: 400;
  color: #8a8c95;
  margin-top: 4px;
  letter-spacing: 0.3px;
}
.driver-name::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 12px;
  border-radius: 1px;
  background: var(--red);
  margin-right: 8px;
  vertical-align: -2px;
}
.pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 17px 20px;
  border-top: 1px solid var(--border);
}
.pager > span {
  font-size: 11px;
  color: var(--muted);
}
.pager-actions {
  display: flex;
  gap: 8px;
}
.pager button {
  font-size: 11px;
  min-height: 33px;
  padding: 8px 12px;
}
.empty {
  text-align: center;
  padding: 48px 22px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.empty .icon,
.empty > span {
  width: 32px;
  height: 32px;
  color: #555761;
  font-size: 32px;
}
.empty h2 {
  font-size: 16px;
  color: #d3d3d9;
  margin: 15px 0 7px;
}
.error {
  padding: 13px 16px;
  border: 1px solid #67343d;
  background: #2e1b22;
  color: #ffacb5;
  border-radius: 5px;
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 18px;
}
.note,
footer {
  color: #858790;
  font-size: 10px;
  line-height: 1.7;
}
.note {
  padding: 15px 20px;
  border-top: 1px solid var(--border);
}
.page-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 9px;
  color: #80828b;
}
.page-footer > span:last-child {
  letter-spacing: 1.4px;
  font-size: 8px;
}
.footer-brand {
  font-weight: 600;
  color: #b4b5bd;
}
@media (min-width: 2100px) {
  main {
    margin-right: auto;
    margin-left: auto;
    padding-left: calc(var(--sidebar) + 32px);
  }
}
@media (max-width: 1200px) {
  :root {
    --sidebar: 212px;
  }
  .brand {
    padding-left: 15px;
  }
  .brand-image {
    width: 182px;
  }
  .nav-link {
    font-size: 11px;
    gap: 10px;
  }
  .nav-heading {
    font-size: 8px;
  }
  .sidebar-bottom {
    padding-left: 14px;
    padding-right: 14px;
  }
  main {
    padding: 26px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .summary {
    gap: 10px;
  }
  .summary > div {
    padding: 17px;
  }
  .summary strong {
    font-size: 33px;
  }
}
@media (max-width: 1000px) {
  .summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .topbar-right time,
  .topbar-separator {
    display: none;
  }
  .page-heading,
  .heading {
    align-items: flex-start;
  }
  h1 {
    font-size: 34px;
  }
  .heading-actions {
    justify-content: flex-end;
  }
}
@media (max-width: 800px) {
  :root {
    --sidebar: 236px;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    overflow-y: auto;
  }
  .menu-open .sidebar {
    transform: translateX(0);
  }
  .menu-open {
    overflow: hidden;
  }
  .sidebar-scrim:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0;
    border: 0;
    border-radius: 0;
    background: #0009;
    z-index: 35;
    width: 100%;
    height: 100%;
  }
  .topbar {
    margin-left: 0;
    height: 61px;
    padding: 0 18px;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .menu-open .menu-toggle {
    position: fixed;
    left: 247px;
    top: 12px;
    z-index: 45;
    background: #202126;
    color: #fff;
  }
  .breadcrumb {
    gap: 12px;
  }
  .breadcrumb-parent,
  .breadcrumb-divider {
    display: none;
  }
  .topbar-right {
    gap: 8px;
  }
  .championship-label {
    font-size: 9px;
  }
  main {
    margin-left: 0;
    padding: 25px 18px;
    min-height: calc(100dvh - 61px);
  }
  .sidebar-bottom {
    padding-top: 30px;
  }
  .brand-image {
    width: 190px;
  }
}
@media (max-width: 520px) {
  .page-heading,
  .heading {
    flex-direction: column;
    gap: 17px;
    margin-bottom: 22px;
  }
  .heading-actions {
    justify-content: flex-start;
  }
  h1 {
    font-size: 34px;
  }
  .summary {
    gap: 10px;
  }
  .summary > div {
    padding: 15px;
  }
  .summary strong {
    font-size: 31px;
  }
  .summary span,
  .summary .stat-foot {
    font-size: 9px;
  }
  .stat-label > .icon {
    width: 15px;
    height: 15px;
  }
  .toolbar,
  .filters {
    padding: 15px;
    gap: 12px;
  }
  .toolbar > div,
  .toolbar .search {
    flex: 1;
    min-width: 130px;
  }
  .toolbar > p {
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .filters > div {
    min-width: 120px;
  }
  .filters > div:has(button) {
    flex: 1;
  }
  .pager {
    flex-direction: column;
    align-items: flex-start;
  }
  .panel-heading {
    padding: 15px;
  }
  .panel-heading h2 {
    font-size: 12px;
  }
  .page-footer {
    align-items: flex-start;
  }
  .page-footer > span:last-child {
    display: none;
  }
  .topbar-right .red-dot {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

.topbar-right .shell-clock { display:flex; align-items:center; gap:14px; white-space:nowrap; }
#shellTime { color:var(--text); font-weight:500; font-variant-numeric:tabular-nums; letter-spacing:.5px; }
@media(max-width:800px) {
  .topbar-right .shell-clock { flex-direction:column; align-items:flex-end; gap:3px; font-size:10px; }
  #shellDate { font-size:9px; }
}
@media(max-width:520px) {
  .topbar:has(.shell-profile:not([hidden])) { height: auto; min-height: 61px; flex-wrap: wrap; gap: 8px; padding-top: 10px; padding-bottom: 10px; }
  .topbar:has(.shell-profile:not([hidden])) .breadcrumb { flex-basis: 100%; }
  .topbar:has(.shell-profile:not([hidden])) .topbar-right { width: 100%; justify-content: space-between; }
  .shell-profile { max-width: calc(100% - 85px); }
  .settings-dialog { width:calc(100vw - 20px); }
  .settings-panel>header, .settings-tab-content, .settings-panel>footer { padding-left:18px; padding-right:18px; }
  .settings-grid { grid-template-columns:1fr; }
}
/* Shared action colors and compact, accessible controls. */


/* MFA GP POV — global banner (loaded on every dashboard page) */
.pov-global-banner{position:fixed;z-index:110;top:18px;left:50%;transform:translateX(-50%);display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;width:min(560px,calc(100vw - 36px));padding:12px 14px;border:1px solid #98404c;border-radius:10px;background:#2a1519;color:#fff;box-shadow:0 16px 50px rgba(0,0,0,.4)}
.pov-global-banner[hidden]{display:none}.pov-global-banner.is-active{border-color:#326348;background:#132019}.pov-global-banner>div{display:grid;gap:3px}.pov-global-banner small{color:#c8cbd1}.pov-global-banner button{min-height:38px;padding:8px 12px}.pov-global-dot{width:10px;height:10px;border-radius:50%;background:#e53935;box-shadow:0 0 0 5px rgba(229,57,53,.12)}.pov-global-banner.is-active .pov-global-dot{background:#50c878;box-shadow:0 0 0 5px rgba(80,200,120,.12)}
@media(max-width:560px){.pov-global-banner{grid-template-columns:auto 1fr}.pov-global-banner button{grid-column:1/-1}}

.pov-global-alert{display:grid;place-items:center;width:30px;height:30px;color:#ff7676;filter:drop-shadow(0 0 7px #e5393530)}
.pov-global-alert svg{width:25px;height:25px}
.pov-global-banner.is-active .pov-global-alert{color:#80d8a5;filter:none}
.pov-global-banner button{display:inline-flex;align-items:center;justify-content:center;gap:9px}
.pov-global-banner .pov-button-screen{width:19px;height:19px;flex:none;opacity:.75}

/* Discipline universe (staff): name of the discipline and its pages as simple underlined tabs. */
.universe-bar { display:flex; align-items:center; gap:20px; flex-wrap:wrap; margin:0 0 20px; border-bottom:1px solid var(--border); }
.universe-name { font-size:13px; letter-spacing:.08em; text-transform:uppercase; color:var(--red,#ef3340); padding:12px 0; }
.universe-tabs { display:flex; flex:1; gap:24px; min-width:0; overflow-x:auto; margin:0; padding:0; border:0; }
.universe-tabs a { position:relative; flex:none; padding:12px 0; color:var(--muted); font-size:12px; text-decoration:none; white-space:nowrap; }
.universe-tabs a:hover { color:var(--text); }
.universe-tabs a[aria-selected="true"] { color:var(--text); font-weight:600; }
.universe-tabs a[aria-selected="true"]::after { content:''; position:absolute; left:0; right:0; bottom:0; height:2px; background:var(--ui-accent,var(--red,#ef3340)); }
.universe-all { font-size:12px; color:var(--muted); padding:12px 0; white-space:nowrap; }
