:root {
  color-scheme: dark;
  --bg: #07101c;
  --panel: #0d1a2a;
  --panel-2: #12243a;
  --line: #223b55;
  --text: #f4f7fb;
  --muted: #91a6bb;
  --blue: #4e9cff;
  --blue-soft: rgba(78, 156, 255, .13);
  --orange: #ff6b35;
  --green: #35d07f;
  --yellow: #f6c85f;
  --red: #ff6577;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; color: var(--text); background: var(--bg); }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 250px 1fr; }
.sidebar {
  position: sticky; top: 0; height: 100vh; padding: 24px 18px;
  display: flex; flex-direction: column; gap: 28px; border-right: 1px solid var(--line);
  background: linear-gradient(180deg, #0d1b2c, #08131f);
}
.brand { display: block; }
.sidebar-brand-banner { display: block; width: 100%; height: auto; max-height: 310px; object-fit: contain; border: 1px solid var(--line); border-radius: 14px; background: #040b14; }
.brand-mark {
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px;
  color: white; background: linear-gradient(145deg, var(--orange), #d53e13);
  box-shadow: 0 10px 30px rgba(255, 107, 53, .24); font-weight: 950; letter-spacing: -.04em;
}
.brand b, .brand small, .member-card b, .member-card small { display: block; }
.brand b { font-size: 18px; }.brand small, .member-card small { color: var(--muted); font-size: 11px; }
nav { display: grid; gap: 6px; }
.nav-item {
  border: 0; border-radius: 11px; padding: 11px 13px; text-align: left; cursor: pointer;
  color: var(--muted); background: transparent; transition: .18s ease;
}
.nav-item:hover, .nav-item.active { color: white; background: var(--blue-soft); }
.nav-item.active { box-shadow: inset 3px 0 var(--blue); }
.sidebar nav { display: flex; min-height: 0; flex: 1; flex-direction: column; }
.help-nav-item { margin-top: auto; }
.member-card {
  margin-top: auto; display: grid; grid-template-columns: 36px 1fr; gap: 10px; align-items: center;
  padding-top: 18px; border-top: 1px solid var(--line);
}
.avatar {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%;
  background: var(--blue-soft); color: var(--blue); font-weight: 900;
}
.member-card button { grid-column: 2; justify-self: start; padding: 0; border: 0; color: var(--muted); background: none; cursor: pointer; font-size: 12px; }

.workspace { min-width: 0; }
.topbar {
  min-height: 112px; display: flex; align-items: center; gap: 18px; padding: 24px 34px;
  border-bottom: 1px solid var(--line); background: rgba(7, 16, 28, .88); backdrop-filter: blur(16px);
  position: sticky; top: 0; z-index: 5;
}
.topbar h1 { margin: 2px 0 0; font-size: clamp(25px, 3vw, 38px); letter-spacing: -.04em; }
.page-title-group { display: flex; align-items: center; gap: 14px; }.page-team-logo { width: 72px; height: 72px; object-fit: contain; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.04); }
.eyebrow { margin: 0; color: var(--orange); text-transform: uppercase; letter-spacing: .15em; font-size: 10px; font-weight: 900; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.status-dot { color: var(--muted); font-size: 12px; }.status-dot i { width: 8px; height: 8px; margin-right: 7px; display: inline-block; border-radius: 50%; background: var(--green); }
.menu-button { display: none; }
.content { padding: 28px 34px 60px; }
.team-profile-grid, .member-profile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.team-profile-card { display: flex; align-items: center; gap: 15px; padding: 17px; border: 1px solid var(--line); border-radius: 16px; color: var(--text); text-align: left; background: var(--panel); cursor: pointer; }
.team-profile-card:hover { border-color: var(--blue); transform: translateY(-1px); }
.team-profile-card span:last-child, .member-profile-card div:nth-child(2) { display: grid; gap: 4px; }
.team-profile-card small, .member-profile-card small { color: var(--muted); }
.team-profile-logo { width: 68px; height: 68px; flex: 0 0 68px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; color: var(--blue); background: #07111f; font-weight: 900; }
.team-profile-logo.large { width: 118px; height: 118px; flex-basis: 118px; font-size: 24px; }
.team-profile-logo img, .member-profile-thumb img, .member-profile-picture img { width: 100%; height: 100%; object-fit: contain; }
.team-profile-hero { display: flex; align-items: center; gap: 22px; margin-top: 18px; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(145deg, #132a45, #0b1827); }
.team-profile-hero h2 { margin: 5px 0; font-size: 30px; }.team-profile-hero p { margin: 0; color: var(--muted); }.team-profile-hero .button { margin-left: auto; }
.member-profile-card { display: grid; grid-template-columns: 58px 1fr auto; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: rgba(7,17,31,.72); }
.member-profile-card.private { opacity: .68; }.member-profile-thumb { width: 58px; height: 58px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; color: var(--blue); background: var(--blue-soft); font-size: 21px; font-weight: 900; }
.profile-back { margin-top: 4px; }.team-car-profile-list { display: grid; gap: 10px; }.team-car-profile-list article { display: grid; grid-template-columns: 130px 1fr 1.4fr auto; align-items: center; gap: 12px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 13px; background: rgba(7,17,31,.7); }
.member-profile-page { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 26px; margin-top: 18px; padding: 26px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(145deg, rgba(18,36,58,.97), rgba(10,24,39,.98)); }
.member-profile-picture-area { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }.member-profile-picture { aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; color: var(--blue); background: #07111f; font-size: 76px; font-weight: 900; }
.member-profile-picture img { object-fit: cover; }.member-profile-details h2 { margin: 5px 0; font-size: 34px; }.profile-role { margin: 0 0 20px; color: var(--blue); font-weight: 800; }.profile-bio { max-width: 780px; min-height: 70px; color: var(--muted); line-height: 1.65; white-space: pre-wrap; }
.profile-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 22px 0; }.profile-stat-grid article { padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: rgba(7,17,31,.65); }.profile-stat-grid span { display: block; color: var(--muted); font-size: 11px; }.profile-stat-grid b { display: block; margin-top: 6px; }
.license-class-pill { display: inline-flex; min-width: 34px; align-items: center; justify-content: center; padding: 5px 9px; border-radius: 999px; color: #fff; background: #415064; font-size: 12px; font-weight: 950; line-height: 1; text-transform: uppercase; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.license-class-pill.license-rookie { background: #d62828; }
.license-class-pill.license-d { color: #101820; background: #f7941d; }
.license-class-pill.license-c { color: #101820; background: #ffd400; }
.license-class-pill.license-b { color: #04150c; background: #32b44a; }
.license-class-pill.license-a { background: #1f7eea; }
.license-class-pill.license-pro { background: #6f42c1; }
.license-class-pill.license-empty { color: var(--muted); background: rgba(255,255,255,.06); }
.driver-team-data-grid { display: grid; gap: 16px; margin-top: 18px; }
.driver-team-data-card { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: rgba(4,14,25,.42); }
.driver-team-data-card summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; cursor: pointer; list-style: none; background: rgba(78,156,255,.06); }
.driver-team-data-card summary::-webkit-details-marker { display: none; }
.driver-team-data-card summary:after { content: "+"; color: var(--blue); font-size: 22px; font-weight: 900; }
.driver-team-data-card[open] summary:after { content: "-"; }
.driver-team-data-content { padding: 16px; }
.driver-team-split { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr); gap: 16px; }
.driver-team-split h3, .driver-team-plan-list h3 { margin: 0 0 10px; }
.driver-team-plan-list { margin-top: 16px; }
.driver-team-plan-list article { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.025); }
.driver-team-plan-list article + article { margin-top: 8px; }
.driver-team-plan-list span { color: var(--muted); }
.garage-grid { display: grid; gap: 16px; margin-top: 18px; }
.garage-subnav { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; padding: 10px; border: 1px solid var(--line); border-radius: 16px; background: rgba(4,14,25,.52); }
.garage-tab { border: 1px solid rgba(74,153,255,.36); border-radius: 999px; background: rgba(74,153,255,.08); color: #dce8f5; padding: 10px 14px; font-weight: 800; cursor: pointer; }
.garage-tab:hover { border-color: rgba(74,153,255,.75); background: rgba(74,153,255,.16); }
.garage-tab.active { color: #04111d; background: linear-gradient(135deg, #35d07f, #4a99ff); border-color: transparent; }
.garage-catalog-toolbar { margin: 0 0 18px; }
.garage-catalog-panel { overflow: visible; }
.garage-catalog-profile { display: grid; grid-template-columns: minmax(260px, 420px) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.garage-catalog-image { position: relative; min-height: 260px; border: 1px solid rgba(74,153,255,.32); border-radius: 20px; overflow: visible; display: grid; place-items: center; background: radial-gradient(circle at 30% 25%, rgba(74,153,255,.34), transparent 35%), linear-gradient(145deg, rgba(3,12,23,.96), rgba(12,34,56,.94)); }
.garage-catalog-image.track { background: radial-gradient(circle at 30% 25%, rgba(53,208,127,.28), transparent 35%), linear-gradient(145deg, rgba(3,12,23,.96), rgba(20,42,28,.94)); }
.garage-catalog-image span { position: relative; z-index: 1; font-size: clamp(54px, 9vw, 112px); font-weight: 950; letter-spacing: -.08em; color: rgba(255,255,255,.94); text-shadow: 0 12px 34px rgba(0,0,0,.55); }
.garage-catalog-image img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: contain; object-position: center; padding: 14px; box-sizing: border-box; border-radius: 20px; background: rgba(3,12,23,.88); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.garage-catalog-image.has-upload:hover img { z-index: 30; transform: scale(1.75); border: 1px solid rgba(74,153,255,.65); box-shadow: 0 28px 90px rgba(0,0,0,.75), 0 0 0 1px rgba(255,255,255,.08); }
.garage-catalog-image:has(img)::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: 20px; background: linear-gradient(180deg, transparent 70%, rgba(3,12,23,.72)); }
.garage-catalog-image.has-upload:hover::after { opacity: 0; }
.garage-catalog-image small { position: absolute; left: 18px; bottom: 16px; z-index: 1; color: #9db4ca; text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 900; }
.catalog-image-glow { position: absolute; inset: auto -20% -50% -20%; height: 58%; background: linear-gradient(90deg, transparent, rgba(74,153,255,.5), transparent); filter: blur(24px); transform: rotate(-5deg); }
.catalog-drop-zone { display: grid; place-items: center; gap: 6px; min-height: 150px; margin: 16px 0; padding: 22px; border: 2px dashed rgba(74,153,255,.55); border-radius: 18px; background: linear-gradient(145deg, rgba(74,153,255,.1), rgba(53,208,127,.06)); text-align: center; cursor: pointer; }
.catalog-drop-zone:hover { border-color: rgba(53,208,127,.8); background: linear-gradient(145deg, rgba(74,153,255,.16), rgba(53,208,127,.1)); }
.catalog-drop-zone span { color: #f3f8ff; font-size: 18px; font-weight: 900; }
.catalog-drop-zone small { color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.catalog-drop-zone input { max-width: 320px; margin-top: 8px; }
.garage-catalog-copy { padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.025); }
.garage-team { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: rgba(4,14,25,.42); }
.garage-team summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; cursor: pointer; list-style: none; background: rgba(53,208,127,.055); }
.garage-team summary::-webkit-details-marker { display: none; }
.garage-team summary:after { content: "+"; color: var(--green); font-size: 22px; font-weight: 900; }
.garage-team[open] summary:after { content: "-"; }
.garage-team-content { display: grid; gap: 16px; padding: 16px; }
.garage-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.garage-car-card { padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: linear-gradient(145deg, rgba(18,36,58,.9), rgba(10,24,39,.96)); }
.garage-car-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.garage-car-head h3 { margin: 4px 0; font-size: 28px; }
.garage-car-head p { margin: 0; color: var(--muted); }
.garage-car-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 14px 0; }
.garage-car-metrics article { padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.025); }
.garage-car-metrics span, .garage-car-metrics b { display: block; }
.garage-car-metrics span { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.garage-car-metrics b { margin-top: 4px; }
.garage-data-list p { margin: 7px 0; color: #c9d5e1; line-height: 1.45; }
.garage-track-page { display: grid; gap: 18px; }
.garage-track-hero { margin-bottom: 0; }
.garage-track-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.garage-track-card { padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(145deg, rgba(18,36,58,.82), rgba(8,21,34,.94)); box-shadow: inset 0 1px 0 rgba(255,255,255,.035); }
.garage-track-card.wide { min-height: 100%; }
.garage-track-card h3 { margin: 4px 0 12px; font-size: 24px; }
.garage-track-section { overflow: hidden; }
.garage-car-metrics.compact { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 10px; }
.garage-chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.garage-chip-list span { padding: 7px 10px; border: 1px solid rgba(74,153,255,.32); border-radius: 999px; color: #dce8f5; background: rgba(74,153,255,.08); font-size: 12px; font-weight: 800; }
.garage-driver-track-column-select { display: block; width: auto; min-width: 18ch; max-width: none; margin-top: 7px; padding: 7px 9px; border: 1px solid rgba(74,153,255,.36); border-radius: 9px; color: #f5f8fb; background: #071523; font-size: 12px; font-weight: 800; }
.garage-driver-board { padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.02); }

.hero {
  overflow: hidden; position: relative; padding: 28px; border: 1px solid #274768; border-radius: 22px;
  background: radial-gradient(circle at 86% 0, rgba(78,156,255,.28), transparent 25rem), linear-gradient(145deg, #132a45, #0b1827);
}
.hero:after { content: "01"; position: absolute; right: 24px; bottom: -38px; color: rgba(255,255,255,.035); font-size: 180px; font-weight: 950; }
.hero h2 { max-width: 700px; margin: 10px 0 6px; font-size: clamp(28px, 4vw, 48px); letter-spacing: -.05em; }
.hero p { max-width: 680px; margin: 0; color: #b7c8da; }
.help-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 28px; border: 1px solid #274768; border-radius: 22px; background: radial-gradient(circle at 88% 0, rgba(78,156,255,.22), transparent 24rem), linear-gradient(145deg, #132a45, #0b1827); }
.help-hero h2 { margin: 8px 0 10px; font-size: clamp(28px, 4vw, 46px); }
.help-hero p, .help-copy p { max-width: 900px; margin: 0 0 14px; color: #b7c8da; line-height: 1.7; }
.help-hero-overview { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.help-hero-overview h3 { margin: 7px 0 10px; font-size: clamp(22px, 3vw, 30px); }
.help-section > h2 { margin: 6px 0 14px; font-size: 28px; }
.glossary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.glossary-grid article { padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: rgba(7,17,31,.65); }
.glossary-grid h3 { color: #9ac5ff; font-size: 14px; }
.glossary-grid p { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.member-help-guide { border-color: rgba(53,208,127,.34); background: linear-gradient(145deg, rgba(16,54,55,.72), rgba(10,24,39,.96)); }
.member-guide-grid { display: grid; gap: 12px; }
.member-guide-grid article { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 14px; padding: 17px; border: 1px solid rgba(53,208,127,.2); border-radius: 14px; background: rgba(4,20,27,.48); }
.member-guide-number { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: #04150c; background: var(--green); font-weight: 950; }
.member-guide-grid h3 { margin: 2px 0 7px; color: #d9ffeb; font-size: 18px; }
.member-guide-grid p { margin: 0; color: #b7c8da; line-height: 1.7; }
.team-manager-help-guide { border-color: rgba(78,156,255,.42); background: linear-gradient(145deg, rgba(18,42,69,.92), rgba(10,24,39,.97)); }
.team-manager-guide-grid article { border-color: rgba(78,156,255,.24); background: rgba(7,23,42,.58); }
.team-manager-guide-grid .member-guide-number { color: #04101e; background: var(--blue); }
.team-manager-guide-grid h3 { color: #dcecff; }
.manager-help-guide { border-color: rgba(255,190,61,.42); background: linear-gradient(145deg, rgba(57,43,18,.78), rgba(10,24,39,.97)); }
.manager-guide-grid article { border-color: rgba(255,190,61,.24); background: rgba(38,29,12,.4); }
.manager-guide-grid .member-guide-number { color: #241700; background: #ffbe3d; }
.manager-guide-grid h3 { color: #fff0bf; }
.owner-help-guide { border-color: rgba(255,101,119,.42); background: linear-gradient(145deg, rgba(59,20,36,.82), rgba(10,24,39,.97)); }
.owner-guide-grid article { border-color: rgba(255,101,119,.25); background: rgba(43,13,25,.42); }
.owner-guide-grid .member-guide-number { color: white; background: var(--red); }
.owner-guide-grid h3 { color: #ffd8dd; }
.button { border: 1px solid var(--line); border-radius: 10px; padding: 9px 14px; cursor: pointer; background: var(--panel-2); }
.button:disabled { cursor: not-allowed; opacity: .48; }
.button.primary { border-color: var(--blue); background: var(--blue); color: #04101e; font-weight: 850; }
.button.secondary { background: transparent; }.button.danger { border-color: rgba(255,101,119,.5); color: var(--red); background: rgba(255,101,119,.08); }
.button.registered-event, .button.registered-event:disabled { border-color: #35d07f; color: #04150c; background: #35d07f; opacity: 1; font-weight: 900; cursor: default; }
.button.calendar-favorite-toggle.active { border-color: #35d07f; color: #04150c; background: #35d07f; font-weight: 900; }
.hero-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.metric-grid, .card-grid { display: grid; gap: 14px; margin-top: 18px; }
.metric-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metric, .panel, .event-card {
  border: 1px solid var(--line); border-radius: 17px; background: linear-gradient(145deg, rgba(18,36,58,.95), rgba(10,24,39,.96));
}
.metric { padding: 17px; }.metric span { display: block; color: var(--muted); font-size: 12px; }.metric b { display: block; margin-top: 5px; font-size: 28px; letter-spacing: -.04em; }
.panel { margin-top: 18px; padding: 20px; }.panel h2, .panel h3 { margin: 0; }.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.muted { color: var(--muted); }.small { font-size: 12px; }.empty { padding: 30px; text-align: center; color: var(--muted); }

.event-card { overflow: hidden; padding: 17px; }.event-card .date { color: var(--orange); font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }.event-card h3 { margin: 7px 0; font-size: 17px; }.event-card p { margin: 4px 0; color: var(--muted); font-size: 13px; }
.event-banner { height: 220px; margin: -17px -17px 15px; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 14px 20px; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 50% 45%, rgba(78,156,255,.12), transparent 65%), #050b12; }
.event-banner img { width: 100%; height: 100%; display: block; object-fit: contain; }
.event-choice-list { display: grid; gap: 10px; margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line); }
.event-choice-group b { display: block; margin-bottom: 6px; color: #c9d5e1; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.event-choice-group > div { display: flex; flex-wrap: wrap; gap: 6px; }
.event-choice-group span { padding: 4px 7px; border: 1px solid rgba(78,156,255,.2); border-radius: 7px; color: #b8d6ff; background: rgba(78,156,255,.08); font-size: 10px; }
.event-choice-group span.empty-choice { color: var(--muted); border-color: var(--line); background: transparent; }
.local-time-slot-group span { border-color: rgba(53,208,127,.32); color: #a9ffd4; background: rgba(53,208,127,.1); }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }.tag { display: inline-flex; border-radius: 999px; padding: 4px 8px; background: var(--blue-soft); color: #9ac5ff; font-size: 10px; font-weight: 800; }.tag.open { color: #75e5a8; background: rgba(53,208,127,.11); }.tag.closed { color: #ff94a1; background: rgba(255,101,119,.11); }.team-car-status.status-draft { color: #ffb454; background: rgba(255,153,51,.16); }.team-car-status.status-active { color: #75e5a8; background: rgba(53,208,127,.15); }.team-car-status.status-retired { color: #ff6577; background: rgba(255,101,119,.16); }
.car-code-builder { display: grid; grid-template-columns: auto minmax(90px, 1fr); align-items: center; gap: 10px; }.car-code-builder span { min-height: 42px; display: flex; align-items: center; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.04); color: var(--text); font-weight: 800; white-space: nowrap; }
.privacy-choice { display: flex; flex-direction: row; align-items: center; gap: 10px; }.privacy-choice input { width: auto; margin: 0; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }.toolbar input, .toolbar select { min-width: 190px; }
.calendar-tabs { display: flex; gap: 8px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.calendar-favorites-note { margin: -4px 0 15px; }
.calendar-tab { border: 0; border-bottom: 2px solid transparent; padding: 11px 14px; color: var(--muted); background: transparent; cursor: pointer; }
.calendar-tab.active { color: var(--text); border-bottom-color: var(--blue); }
.calendar-tab span { margin-left: 5px; padding: 2px 7px; border-radius: 999px; color: #9ac5ff; background: var(--blue-soft); font-size: 10px; }
.calendar-add-button { margin: 0 0 8px auto; }
.event-actions { display: grid; gap: 8px; margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--line); }
.event-actions .button { width: 100%; }
.content[data-view="calendar"] .calendar-tabs { gap: 12px; margin-bottom: 24px; }
.content[data-view="calendar"] .calendar-tab { padding: 18px 22px; font-size: 20px; }
.content[data-view="calendar"] .calendar-tab span { margin-left: 8px; padding: 4px 11px; font-size: 18px; }
.content[data-view="calendar"] .toolbar { gap: 14px; margin-bottom: 26px; }
.content[data-view="calendar"] .toolbar input,
.content[data-view="calendar"] .toolbar select,
.content[data-view="calendar"] .calendar-team-toolbar select {
  min-height: 54px;
  font-size: 22px;
}
.content[data-view="calendar"] .calendar-team-toolbar label { font-size: 20px; }
.content[data-view="calendar"] .card-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.content[data-view="calendar"] .event-card { padding: 18px; }
.content[data-view="calendar"] .event-banner { height: 220px; margin: -18px -18px 16px; padding: 12px 18px; }
.content[data-view="calendar"] .event-card .date { font-size: 10px; }
.content[data-view="calendar"] .event-card h3 { margin: 7px 0; font-size: 15px; line-height: 1.1; }
.content[data-view="calendar"] .event-card p { margin: 4px 0; font-size: 12px; line-height: 1.3; }
.content[data-view="calendar"] .event-choice-list { gap: 9px; margin-top: 13px; padding-top: 12px; }
.content[data-view="calendar"] .event-choice-group b { margin-bottom: 6px; font-size: 9px; }
.content[data-view="calendar"] .event-choice-group > div { gap: 6px; }
.content[data-view="calendar"] .event-choice-group span { padding: 4px 7px; border-radius: 7px; font-size: 10px; }
.content[data-view="calendar"] .tags { gap: 6px; margin-top: 12px; }
.content[data-view="calendar"] .tag { padding: 4px 8px; font-size: 10px; }
.content[data-view="calendar"] .event-actions { gap: 8px; margin-top: 14px; padding-top: 12px; }
.content[data-view="calendar"] .event-actions .button,
.content[data-view="calendar"] .calendar-add-button {
  min-height: 54px;
  font-size: 22px;
}
.communications-hero:after { content: "MSG"; font-size: 150px; right: 18px; }
.billing-hero:after { content: "$"; font-size: 170px; right: 35px; }
.billing-plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.billing-plan-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(18,36,58,.9), rgba(10,24,39,.96));
}
.billing-plan-card h3 { margin: 7px 0; font-size: 22px; }
.billing-plan-card strong { display: block; margin-bottom: 9px; color: #dcecff; font-size: 18px; }
.billing-plan-card .button { margin-top: 12px; width: 100%; }
.checkbox-label.compact { min-height: auto; padding: 0; }
.communication-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.communication-actions p { margin: 0; }
.communication-error-row td { color: #ffe1a5; background: rgba(255,190,61,.07); white-space: normal; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; } th { color: var(--muted); text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; background: #0b1827; } th, td { padding: 12px 13px; border-bottom: 1px solid var(--line); white-space: nowrap; } tr:last-child td { border-bottom: 0; } td strong { display: block; } td small { color: var(--muted); }
.member-assignment-select { min-width: 145px; padding: 9px 34px 9px 10px; }
.member-directory-actions, .member-owner-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.member-owner-actions .button { padding: 9px 11px; white-space: nowrap; }
.team-directory-group { margin-top: 11px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: rgba(4,14,25,.34); }.team-directory-group:first-child { margin-top: 0; }.team-directory-group summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; cursor: pointer; list-style: none; background: rgba(78,156,255,.06); }.team-directory-group summary::-webkit-details-marker { display: none; }.team-directory-group summary:after { content: "+"; color: var(--blue); font-size: 22px; font-weight: 900; }.team-directory-group[open] summary:after { content: "-"; }.team-group-title { display: flex; align-items: center; gap: 11px; }.team-group-title img, .team-logo-placeholder { width: 48px; height: 48px; display: grid; place-items: center; object-fit: contain; border-radius: 9px; border: 1px solid var(--line); background: rgba(255,255,255,.04); }.team-logo-placeholder { color: var(--orange); font-size: 10px; font-weight: 950; }.team-group-content { padding: 14px; }.team-group-actions { display: flex; justify-content: flex-end; margin-bottom: 10px; }
.timeline { display: grid; gap: 8px; }.stint { display: grid; grid-template-columns: 54px minmax(250px, 1.35fr) minmax(150px, 1fr) 110px 100px; gap: 12px; align-items: center; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: rgba(78,156,255,.05); }.stint-number { color: var(--blue); font-weight: 900; }.stint time { color: var(--muted); font-size: 12px; }.stint-time-block { display: grid; gap: 5px; }.stint-time-block span { display: block; }.stint-time-block b { color: #c9d5e1; }.enlarged-stint-times { font-size: 24px !important; line-height: 1.22; }.driver-local-time { color: #f4f7fb; font-weight: 900; }.tire-average { color: #9bffd0; font-weight: 800; }
.coverage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }.coverage article { padding: 14px; border-radius: 12px; background: rgba(255,255,255,.025); }.coverage b, .coverage span { display: block; }.coverage span { color: var(--muted); font-size: 12px; }
.live-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 18px; }.live-value { font-size: clamp(32px, 6vw, 68px); font-weight: 950; letter-spacing: -.06em; }.live-meta { color: var(--muted); }
.demo-session-notice { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding: 12px 15px; border: 1px solid rgba(255,190,61,.38); border-radius: 12px; color: #ffe7a8; background: rgba(255,190,61,.08); }
.demo-session-notice span { color: #d8c99f; font-size: 12px; }
.dummy-race-place { display: grid; grid-template-columns: minmax(260px, .5fr) minmax(0, 1fr); gap: 16px; align-items: center; margin-bottom: 18px; padding: 20px; border: 1px solid rgba(78,156,255,.35); border-radius: 18px; background: linear-gradient(135deg, rgba(78,156,255,.18), rgba(3,13,24,.92)); box-shadow: 0 18px 42px rgba(0,0,0,.18); }
.dummy-race-place h2 { margin: 4px 0 6px; }
.dummy-race-place-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.dummy-race-place-grid article { padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.04); }
.dummy-race-place-grid span, .dummy-race-place-grid b, .dummy-race-place-grid small { display: block; }
.dummy-race-place-grid span { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .07em; font-weight: 900; }
.dummy-race-place-grid b { margin: 5px 0 3px; font-size: 32px; color: #fff; }
.dummy-race-place-grid small { color: #91a8bd; }
.live-command { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(240px, .45fr); gap: 18px; margin-bottom: 18px; }
.live-command-main, .live-connection { padding: 25px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(135deg, rgba(78,156,255,.13), rgba(10,24,39,.92)); }
.live-connection { background: var(--panel); }
.live-connection h2 { margin: 5px 0 10px; }
.live-status-row { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 19px; }
.live-status-row span { padding: 7px 11px; border: 1px solid var(--line); border-radius: 9px; background: rgba(3,13,24,.5); font-size: 12px; font-weight: 800; }
.live-status-row .live-position { padding: 9px 14px; border-color: var(--blue); color: white; background: rgba(78,156,255,.2); font-size: 17px; }
.live-status-row .live-on-track { border-color: rgba(36,214,131,.4); color: #9bffd0; background: rgba(36,214,131,.1); }
.live-status-row .live-in-pits { border-color: rgba(255,190,61,.4); color: #ffe19a; background: rgba(255,190,61,.1); }
.live-metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; margin-bottom: 18px; }
.live-metric { padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.live-metric span, .live-metric small, .live-metric b { display: block; }
.live-metric span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .07em; }
.live-metric b { margin: 7px 0 4px; font-size: 24px; }
.live-metric small { color: #91a8bd; }
.live-event-panel { margin-top: 0; }
.live-event-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.live-event-grid article { padding: 13px; border-radius: 11px; background: rgba(255,255,255,.025); }
.live-event-grid span, .live-event-grid b { display: block; }
.live-event-grid span { margin-bottom: 5px; color: var(--muted); font-size: 11px; }
.live-race-plan { margin-top: 0; }
.live-plan-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.live-plan-summary article { padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: rgba(78,156,255,.045); }
.live-plan-summary span, .live-plan-summary b { display: block; }
.live-plan-summary span { margin-bottom: 5px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.live-plan-stints { display: grid; gap: 8px; }
.live-plan-stint { display: grid; grid-template-columns: 48px minmax(260px, 1fr) minmax(105px, .3fr) auto; align-items: center; gap: 12px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 12px; background: rgba(78,156,255,.035); }
.live-plan-stint.active { border-color: #24d683; background: rgba(36,214,131,.1); box-shadow: 0 0 0 2px rgba(36,214,131,.07); }
.live-plan-stint.completed { opacity: .7; background: rgba(255,255,255,.02); }
.live-plan-stint strong, .live-plan-stint small, .live-plan-target span { display: block; }
.live-plan-stint small { margin-top: 4px; color: var(--muted); line-height: 1.45; }
.live-plan-target { text-align: right; }
.tag.completed { color: #b9c8d6; background: rgba(185,200,214,.12); }
.live-strategy-panel { margin-bottom: 18px; }
.live-strategy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.live-strategy-grid article { padding: 16px; border: 1px solid rgba(53,208,127,.24); border-radius: 14px; background: linear-gradient(145deg, rgba(13,49,43,.75), rgba(10,24,39,.94)); }
.live-strategy-grid span, .live-strategy-grid b, .live-strategy-grid small { display: block; }
.live-strategy-grid span { color: #9bffd0; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; font-weight: 900; }
.live-strategy-grid b { margin: 7px 0 4px; font-size: 24px; }
.live-strategy-grid small { color: #b7c8da; }
.live-strategy-grid p { margin: 10px 0 0; color: var(--muted); line-height: 1.5; }
.live-notification-panel { margin-bottom: 18px; }
.live-notification-form { display: grid; gap: 10px; margin-bottom: 14px; }
.live-notification-form textarea { min-height: 92px; }
.live-notification-list { display: grid; gap: 10px; }
.live-notification-card { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(78,156,255,.045); }
.live-notification-card p { margin: 5px 0 0; line-height: 1.45; }
.live-notification-meta { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; font-weight: 800; }
.live-notification-votes, .live-notification-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.live-vote-button.selected-yes { background: linear-gradient(135deg, #20c979, #0a8d4a); color: #04120b; border-color: rgba(36,214,131,.75); }
.live-vote-button.selected-no { background: linear-gradient(135deg, #ff5b72, #9c2138); color: #fff; border-color: rgba(255,91,114,.75); }
.race-plan-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.025); }
.race-plan-toolbar label { flex: 1; max-width: 620px; }
.live-car-toolbar { align-items: center; }
.live-car-option-active { color: #35d07f; background: #081f17; }
.live-car-option-inactive { color: #ff6577; background: #210b13; }
.live-setup-panel { margin-bottom: 18px; }
.live-data-summary { margin-bottom: 18px; }
.live-data-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.live-data-summary-grid article { min-width: 0; padding: 12px 13px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.025); }
.live-data-summary-grid span, .live-data-summary-grid b { display: block; }
.live-data-summary-grid span { margin-bottom: 5px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.live-data-summary-grid b { overflow-wrap: anywhere; line-height: 1.35; }
.rotation-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.stint.active-stint { border-color: #24d683; background: rgba(36,214,131,.08); box-shadow: 0 0 0 2px rgba(36,214,131,.08); }

label { display: grid; gap: 6px; color: #c9d5e1; font-size: 12px; font-weight: 700; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; color: var(--text); background: #091522; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(78,156,255,.12); }
input[readonly] { color: var(--muted); background: rgba(255,255,255,.025); cursor: default; }
textarea { min-height: 92px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }.form-grid .wide { grid-column: 1 / -1; }
.signup-choice-field { min-width: 0; margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.signup-choice-field legend { padding: 0 6px; color: var(--text); font-size: 12px; font-weight: 800; }
.signup-choice-field legend span { margin-left: 6px; color: var(--muted); font-size: 11px; font-weight: 600; }
.signup-choice-buttons { display: flex; flex-wrap: wrap; gap: 9px; }
.signup-choice-button { padding: 10px 14px; border: 1px solid #28527e; border-radius: 10px; color: #b9d8f7; background: #102b48; font: inherit; font-weight: 800; cursor: pointer; }
.signup-choice-button:hover { border-color: #4c9cff; background: #173b62; }
.signup-choice-button.selected { border-color: #24d683; color: #fff; background: #087446; box-shadow: 0 0 0 2px rgba(36,214,131,.18); }
.availability-plan { margin-top: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(78,156,255,.035); }
.availability-plan-head { display: flex; align-items: start; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.availability-plan-head h3 { margin: 0 0 4px; }
.coverage-answer { display: inline-flex; margin: 2px 5px 2px 0; padding: 4px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.coverage-answer.available-yes { color: #d9ffeb; background: rgba(36,214,131,.2); }
.coverage-answer.available-maybe { color: #fff0bf; background: rgba(255,190,61,.2); }
.coverage-answer.available-no { color: #ffd8dd; background: rgba(255,101,119,.16); }
.coverage-driver-answer { display: inline-flex; align-items: center; gap: 6px; margin: 3px 8px 3px 0; }
.coverage-driver-answer .coverage-answer { margin: 0; }
.stint-confirm-button { padding: 5px 9px; border: 1px solid #ff6577; border-radius: 8px; color: white; background: #9f2940; cursor: pointer; font-size: 11px; font-weight: 850; }
.stint-confirm-button:hover:not(:disabled) { background: #c43350; }
.stint-confirm-button.confirmed, .stint-confirm-button.confirmed:disabled { border-color: #24d683; color: white; background: #087446; opacity: 1; }
.stint-confirm-button:disabled:not(.confirmed) { cursor: not-allowed; opacity: .48; }
.driver-stint-accept-button { padding: 7px 10px; border: 1px solid #24d683; border-radius: 8px; color: white; background: #087446; cursor: pointer; font-size: 11px; font-weight: 850; }
.driver-stint-accept-button:hover:not(:disabled) { background: #0a8b54; }
.driver-stint-accept-button:disabled { cursor: wait; opacity: .72; }
.availability-stint-picker { display: grid; gap: 9px; }
.availability-stint { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 15px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: rgba(78,156,255,.05); }
.availability-stint strong, .availability-stint span, .availability-stint small { display: block; }
.availability-stint span { margin-top: 3px; }
.availability-stint-times span b { color: #d9e8f7; }
.availability-stint small { margin-top: 3px; color: var(--muted); }
.availability-choices { display: flex; gap: 7px; }
.availability-choice { min-width: 62px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: var(--panel-2); cursor: pointer; font-weight: 850; }
.availability-choice.answer-yes.selected { border-color: #24d683; color: white; background: #087446; }
.availability-choice.answer-maybe.selected { border-color: #ffbe3d; color: #231700; background: #ffbe3d; }
.availability-choice.answer-no.selected { border-color: #ff6577; color: white; background: #9f2940; }
.duration-control { display: grid; grid-template-columns: minmax(0, 1fr) minmax(175px, .55fr); gap: 10px; }
.duration-control select { border-color: var(--blue); color: #dcecff; background-color: #102a44; font-weight: 800; cursor: pointer; }
.new-series-fields { padding: 16px; border: 1px solid rgba(78,156,255,.42); border-radius: 13px; background: rgba(78,156,255,.06); }
.new-series-heading { margin-bottom: 13px; }
.new-series-heading strong { display: block; margin-top: 4px; font-size: 15px; }
.checkbox-label { display: flex; grid-template-columns: none; flex-direction: row; align-items: center; gap: 9px; padding: 10px 0; }
.checkbox-label input { width: 18px; height: 18px; }

dialog { color: var(--text); border: 1px solid var(--line); border-radius: 20px; background: #0c1928; box-shadow: 0 30px 90px rgba(0,0,0,.55); }
dialog::backdrop { background: rgba(2, 7, 13, .78); backdrop-filter: blur(8px); }
.auth-dialog { width: min(620px, calc(100% - 28px)); }.auth-dialog form { display: grid; gap: 15px; padding: 14px; }.auth-dialog h2 { margin: -6px 0 0; font-size: 30px; }.auth-dialog p { margin: 0; color: var(--muted); }.dialog-brand { display: flex; justify-content: center; margin: 0 0 12px; }.login-banner { width: 100%; max-height: 310px; display: block; object-fit: cover; object-position: center top; border: 1px solid rgba(78,156,255,.28); border-radius: 16px; box-shadow: 0 18px 42px rgba(0,0,0,.42); }.form-error { min-height: 18px; color: var(--red) !important; font-size: 12px; }.local-hint { color: var(--muted); text-align: center; }
.form-dialog { width: min(780px, calc(100% - 28px)); max-height: 90vh; }.form-dialog form { position: relative; max-height: calc(90vh - 4px); overflow-y: auto; padding: 20px; }.dialog-close { position: absolute; top: 12px; right: 12px; border: 0; color: var(--muted); background: none; cursor: pointer; }
.event-record { margin: 22px 0; padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.025); }
.series-logo-upload { display: grid; grid-template-columns: minmax(0, 1fr) 180px minmax(220px, .7fr); gap: 14px; align-items: center; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: rgba(78,156,255,.035); }
.series-logo-upload strong { display: block; margin-bottom: 5px; }.series-logo-upload img { width: 180px; height: 82px; display: block; object-fit: contain; border: 1px solid var(--line); border-radius: 10px; padding: 7px; background: #050b12; }
.event-record-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.event-record-heading h3 { margin: 4px 0 0; }
.dialog-form-error { margin: 12px 0 0; font-weight: 700; }
.form-dialog button[type="submit"]:disabled { cursor: wait; opacity: .72; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 20; transform: translateY(100px); opacity: 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; background: #13283e; transition: .2s; }.toast.show { transform: none; opacity: 1; }

@media (max-width: 1400px) {
  .content[data-view="calendar"] .card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .metric-grid { grid-template-columns: 1fr 1fr; }.card-grid { grid-template-columns: 1fr 1fr; }
  .content[data-view="calendar"] .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stint { grid-template-columns: 45px 110px 1fr; }.stint > :nth-child(4), .stint > :nth-child(5) { display: none; }
  .live-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .live-event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .live-data-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .live-plan-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .live-strategy-grid { grid-template-columns: 1fr; }
  .live-notification-card { grid-template-columns: 1fr; }
  .live-notification-votes, .live-notification-actions { justify-content: flex-start; }
  .live-plan-stint { grid-template-columns: 42px minmax(200px, 1fr) auto; }
  .live-plan-target { display: none; }
}
@media (max-width: 760px) {
  .app-shell { grid-template-columns: 1fr; }.sidebar { position: fixed; z-index: 15; width: 260px; transform: translateX(-100%); transition: .2s; }.sidebar.open { transform: none; box-shadow: 20px 0 80px rgba(0,0,0,.5); }
  .menu-button { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; padding: 8px; background: transparent; }.topbar { padding: 18px; min-height: 92px; }.content { padding: 18px 18px 45px; }.status-dot { display: none; }
  .card-grid, .live-grid { grid-template-columns: 1fr; }.coverage { grid-template-columns: 1fr; }
  .content[data-view="calendar"] .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .live-command { grid-template-columns: 1fr; }
  .dummy-race-place { grid-template-columns: 1fr; }
  .dummy-race-place-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .driver-team-split { grid-template-columns: 1fr; }
  .driver-team-plan-list article, .driver-team-data-card summary { align-items: flex-start; flex-direction: column; }
  .garage-card-grid { grid-template-columns: 1fr; }
  .garage-team summary { align-items: flex-start; flex-direction: column; }
  .garage-catalog-profile { grid-template-columns: 1fr; }
  .garage-track-grid { grid-template-columns: 1fr; }
  .team-profile-grid, .member-profile-grid { grid-template-columns: 1fr; }.team-profile-hero { align-items: flex-start; flex-direction: column; }.team-profile-hero .button { margin-left: 0; }.member-profile-page { grid-template-columns: 1fr; }.member-profile-picture-area { max-width: 280px; }.profile-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.team-car-profile-list article { grid-template-columns: 1fr; }
  .help-hero { flex-direction: column; }.glossary-grid { grid-template-columns: 1fr; }
  .series-logo-upload { grid-template-columns: 1fr; }.series-logo-upload img { width: min(100%, 260px); }
}
@media (max-width: 520px) {
  .metric-grid, .card-grid, .form-grid { grid-template-columns: 1fr; }.metric-grid { gap: 8px; }.form-grid .wide { grid-column: auto; }
  .content[data-view="calendar"] .card-grid { grid-template-columns: 1fr; }
  .availability-stint { grid-template-columns: 1fr; }
  .availability-choices { display: grid; grid-template-columns: repeat(3, 1fr); }
  .race-plan-toolbar { align-items: stretch; flex-direction: column; }.rotation-grid { grid-template-columns: 1fr; }
  .event-banner { height: 180px; }
  .duration-control { grid-template-columns: 1fr; }
  .hero { padding: 21px; }.top-actions .secondary { display: none; }.stint { grid-template-columns: 38px 1fr; }.stint > :nth-child(n+3) { display: none; }
  .demo-session-notice { align-items: start; flex-direction: column; }
  .dummy-race-place-grid { grid-template-columns: 1fr; }
  .garage-car-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .live-metric-grid, .live-event-grid, .live-data-summary-grid { grid-template-columns: 1fr; }
  .live-plan-summary { grid-template-columns: 1fr; }
  .live-plan-stint { grid-template-columns: 38px minmax(0, 1fr); }
  .live-plan-stint > .tag { grid-column: 2; justify-self: start; }
}
