/* GRIPLINE — светлый интерфейс платформы в стилистике LFM: белый фон, красный акцент, Montserrat.
   Слой поверх стилей VEC: токены VEC переназначены на палитру GRIPLINE, поэтому внутренние страницы чемпионата
   (календарь, зачёт, команды, документы, админка) выглядят частью того же приложения. */
:root, html[data-theme] {
  --bg0: #ffffff;
  --bg1: #f4f5f7;
  --panel: #ffffff;
  --panel-2: #f0f1f4;
  --line: #e3e6eb;
  --line-2: #cfd4db;
  --txt: #12151a;
  --mute: #6b7280;
  --acc: #e8202a;
  --acc-2: #ff4a4f;
  --acc-dim: rgba(232, 32, 42, .15);
  --acc-ink: #ffffff;
  --ok: #2fd27a;
  --lmu: #2f6df6;
  --accg: #f0801a;

  --navy: var(--bg0);
  --navy-2: var(--panel);
  --cyan: var(--acc);
  --cyan-dark: var(--acc-2);
  --grey: #9aa1ac;
  --grey-2: var(--mute);
  --light: var(--line);
  --light-2: var(--panel-2);
  --bg: var(--bg1);
  --surface: var(--panel);
  --text: var(--txt);
  --border: var(--line);
  --line-strong: var(--line-2);
  --hypercar: #e5322d;
  --lmgt3: #1fa65a;
  --green: var(--ok);
  --red: #ff4b4b;
  --radius: 10px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(17, 21, 26, .10);
  --max: 1280px;
  --font: "Montserrat", system-ui, "Segoe UI", Arial, sans-serif;
  --cond: "Montserrat", system-ui, Arial, sans-serif;
  color-scheme: light;
}

html, body { background: var(--bg1); }
body.gl { margin: 0; font-family: var(--font); font-stretch: normal; color: var(--txt); -webkit-font-smoothing: antialiased; }
body::before { display: none !important; }
h1, h2, h3, h4 { font-family: var(--cond); font-stretch: normal; font-weight: 700; letter-spacing: .01em; text-transform: uppercase; color: var(--txt); }
h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1; }
h2 { font-size: 1.35rem; line-height: 1.1; }
a { color: inherit; }
::selection { background: var(--acc); color: var(--acc-ink); }
.gl-mute, .muted { color: var(--mute) !important; }

/* ─── Каркас: боковое меню + контент ─── */
.gl-app { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.gl-side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--bg0); border-right: 1px solid var(--line); overflow-y: auto; scrollbar-width: thin; z-index: 70; }
.gl-brand { display: flex; align-items: center; gap: 10px; height: 64px; padding: 0 22px; border-bottom: 1px solid var(--line); flex: none; }
.gl-brand span { font-family: var(--cond); font-weight: 800; font-size: 1.45rem; letter-spacing: .08em; }
.gl-menu { display: grid; gap: 2px; padding: 14px 12px; }
.gl-menu a, .gl-serie-link { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border-radius: 8px; color: #3f4652; font-weight: 500; font-size: .94rem; position: relative; }
.gl-menu a:hover { background: var(--panel-2); color: var(--txt); }
.gl-menu a.on { background: var(--acc-dim); color: var(--txt); font-weight: 600; }
.gl-menu a.on::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--acc); }
.gl-menu a.on .ico { color: var(--acc); }
.gl-menu .ico { flex: none; opacity: .9; }
.gl-menu em { margin-left: auto; font-style: normal; font-size: .72rem; font-weight: 700; color: var(--acc); background: var(--acc-dim); padding: 2px 7px; border-radius: 20px; }
.gl-menu-group { margin: 16px 12px 6px; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #5d6778; }
.gl-serie-link.off { opacity: .5; cursor: default; }
.gl-serie-link em { color: var(--mute) !important; background: var(--panel-2) !important; }
.gl-side-foot { margin-top: auto; padding: 16px 22px 22px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); }
.gl-lang { display: inline-flex; background: var(--panel-2); border-radius: 8px; padding: 3px; }
.gl-lang a { padding: 4px 10px; border-radius: 6px; font-size: .75rem; font-weight: 700; color: var(--mute); }
.gl-lang a.on { background: #fff; color: var(--txt); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.gl-discord { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--mute); }
.gl-discord:hover { color: var(--txt); }
.gl-discord svg { width: 16px; height: 16px; }

.gl-body { min-width: 0; display: flex; flex-direction: column; }
.gl-body > main { flex: 1; }
.gl-top { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; gap: 16px; height: 64px; padding: 0 28px;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px) saturate(1.3); border-bottom: 1px solid var(--line); }
.gl-next { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 7px 14px 7px 12px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); }
.gl-next:hover { border-color: var(--line-2); }
.gl-live { width: 8px; height: 8px; border-radius: 50%; background: var(--acc); flex: none; animation: gl-pulse 2s infinite; }
@keyframes gl-pulse { 0% { box-shadow: 0 0 0 0 rgba(232, 32, 42, .55); } 70% { box-shadow: 0 0 0 8px rgba(232, 32, 42, 0); } 100% { box-shadow: 0 0 0 0 rgba(232, 32, 42, 0); } }
.gl-next-txt { display: grid; min-width: 0; line-height: 1.15; }
.gl-next-txt b { font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gl-next-txt small { font-size: .72rem; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gl-next-cd { display: flex; gap: 6px; font-family: var(--cond); font-variant-numeric: tabular-nums; padding-left: 12px; border-left: 1px solid var(--line); }
.gl-next-cd span { display: inline-flex; align-items: baseline; gap: 1px; }
.gl-next-cd b { font-size: 1.05rem; font-weight: 700; }
.gl-next-cd i { font-style: normal; font-size: .7rem; color: var(--mute); }

.gl-user { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: none; }
.gl-chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px; border-radius: 7px; font-family: var(--cond); font-weight: 700; font-size: .92rem; letter-spacing: .04em; }
.gl-rating, .gl-mini { display: inline-flex; height: 32px; border-radius: 7px; overflow: hidden; font-family: var(--cond); font-weight: 700; font-size: .92rem; letter-spacing: .03em; }
.gl-rating .k { display: grid; place-items: center; padding: 0 8px; background: #12151a; color: #fff; }
.gl-rating .v, .gl-mini .v { display: grid; place-items: center; min-width: 32px; padding: 0 8px; color: #fff; background: #aab1bc; }
.gl-mini { height: 24px; gap: 2px; background: transparent; }
.gl-mini .v { min-width: 30px; padding: 0 6px; border-radius: 5px; font-size: .82rem; }
.r-b { background: #a0703f !important; } .r-s { background: #8f9bab !important; } .r-g { background: #d4a72c !important; color: #1b1405 !important; }
.r-p { background: #4fd1e6 !important; color: #06202a !important; } .r-a { background: #22b35e !important; } .r-r { background: #5b6472 !important; }
.gl-drop { position: relative; }
.gl-drop > summary { list-style: none; cursor: pointer; }
.gl-drop > summary::-webkit-details-marker { display: none; }
.gl-profile > summary { display: flex; align-items: center; gap: 10px; padding: 4px 8px 4px 4px; border-radius: 999px; font-family: var(--cond); font-weight: 700; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; }
.gl-profile > summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); opacity: .7; }
.gl-profile > summary:hover, .gl-profile[open] > summary { background: var(--panel-2); }
.gl-ava { position: relative; display: inline-block; width: 36px; height: 36px; border-radius: 50%; background: var(--panel-2); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line-2); flex: none; }
.gl-ava img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.gl-ava.lg { width: 56px; height: 56px; }
.gl-ava.sm { width: 26px; height: 26px; border-width: 1px; border-color: var(--line-2); }
.gl-dot { position: absolute; top: -4px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--acc); color: var(--acc-ink); font-style: normal; font-size: .66rem; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--bg1); }
.gl-pop { position: absolute; right: 0; top: calc(100% + 10px); min-width: 240px; padding: 8px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line-2); box-shadow: var(--shadow); display: grid; }
.gl-pop a, .gl-logout { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; border-radius: 8px; font-size: .92rem; color: var(--txt); }
.gl-pop a:hover, .gl-logout:hover { background: var(--panel-2); }
.gl-pop-head { padding: 8px 12px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); font-weight: 700; }
.gl-pop-head small { display: block; color: var(--mute); font-weight: 500; font-size: .78rem; }
.gl-logout { width: 100%; border: 0; background: none; font: inherit; cursor: pointer; color: #d92d2d; }
.gl-count { background: var(--acc); color: var(--acc-ink); border-radius: 10px; padding: 0 7px; font-size: .72rem; }
.gl-burger { display: none; width: 40px; height: 40px; margin-left: -8px; border: 0; background: none; cursor: pointer; padding: 11px 9px; flex: none; }
.gl-burger span { display: block; height: 2px; background: var(--txt); border-radius: 2px; margin: 3px 0; }
.gl-scrim { display: none; }

.gl-foot { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; padding: 22px 28px 28px; border-top: 1px solid var(--line); color: #5d6778; font-size: .78rem; margin-top: 40px; }
.gl-foot-links { display: flex; gap: 16px; margin-left: auto; }
.gl-foot a:hover { color: var(--txt); }

/* ─── Кнопки, метки ─── */
.gl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 44px; padding: 0 20px; border-radius: 9px; border: 1px solid transparent;
  font-family: var(--cond); font-weight: 700; font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; transition: filter .15s, background .15s, border-color .15s; white-space: nowrap; }
.gl-btn svg { width: 18px; height: 18px; }
.gl-btn-sm { height: 36px; padding: 0 14px; font-size: .9rem; }
.gl-btn-acc { background: var(--acc); color: var(--acc-ink); }
.gl-btn-acc:hover { filter: brightness(1.1); }
.gl-btn-ghost { border-color: var(--line-2); color: var(--txt); background: transparent; }
.gl-btn-ghost:hover { background: var(--panel-2); }
.gl-btn-steam { background: #1b2838; color: #fff; border-color: #2a475e; }
.gl-btn-discord { background: #5865f2; color: #fff; }
.gl-btn-steam:hover, .gl-btn-discord:hover { filter: brightness(1.12); }
.gl-tag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 5px; font-family: var(--cond); font-weight: 700; font-size: .78rem; letter-spacing: .06em; color: #fff; background: var(--panel-2); flex: none; }
.gl-tag.lmu { background: var(--lmu); }
.gl-tag.acc { background: var(--accg); }
.gl-label { display: flex; align-items: center; gap: 8px; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.gl-row { display: flex; flex-wrap: wrap; gap: 10px; }
.gl-stack { display: grid; gap: 10px; margin-top: 18px; }

/* ─── Страница и карточки ─── */
.gl-page { width: min(var(--max), 100% - 56px); margin: 0 auto; padding: 28px 0 0; display: grid; gap: 20px; }
.gl-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px; min-width: 0; }
.gl-pad0 { padding: 0; overflow: hidden; }
.gl-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.gl-card-head h2 { font-size: 1.2rem; }
.gl-card-head a { font-size: .85rem; font-weight: 600; color: var(--mute); white-space: nowrap; }
.gl-card-head a:hover { color: var(--acc); }
.gl-empty { padding: 20px; margin: 0; color: var(--mute); font-size: .92rem; }
.gl-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.gl-page-head h1 { margin: 6px 0 6px; }
.gl-page-head p { margin: 0; max-width: 640px; }

/* дашборд */
.gl-dash { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr); gap: 20px; }
.gl-race { position: relative; overflow: hidden; padding: 28px 30px; min-height: 330px; display: flex; isolation: isolate;
  background: radial-gradient(70% 120% at 100% 100%, rgba(232, 32, 42, .10), transparent 60%), #fff; }
.gl-race::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(17, 21, 26, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(17, 21, 26, .045) 1px, transparent 1px); background-size: 40px 40px;
  -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000); mask-image: linear-gradient(90deg, transparent 20%, #000); }
.gl-race-info { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 14px; max-width: 560px; }
.gl-race h1 { font-size: clamp(2.2rem, 4.2vw, 3.6rem); line-height: .95; }
.gl-race-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--mute); font-size: .92rem; align-items: center; }
.gl-race-meta > span { display: inline-flex; align-items: center; gap: 8px; }
.gl-race-meta .flag-img { width: 22px; height: 16px; object-fit: cover; border-radius: 2px; }
.gl-race-car { position: absolute; right: -6%; bottom: 8px; width: 68%; max-width: 640px; height: auto; z-index: 1; filter: drop-shadow(0 22px 22px rgba(0, 0, 0, .6)); pointer-events: none; }
.gl-cd { display: flex; gap: 8px; margin: 4px 0 8px; }
.gl-cd span { display: grid; justify-items: center; min-width: 64px; padding: 8px 6px 6px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); }
.gl-cd b { font-family: var(--cond); font-size: 2rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.gl-cd i { font-style: normal; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); margin-top: 3px; }

.gl-me { display: flex; flex-direction: column; gap: 16px; }
.gl-me h2 { font-size: 1.6rem; margin: 4px 0 0; }
.gl-me p { margin: 0; font-size: .92rem; }
.gl-me-head { display: flex; align-items: center; gap: 14px; }
.gl-me-head b { display: block; font-size: 1.15rem; }
.gl-me-head small { color: var(--mute); }
.gl-me-lic { display: grid; gap: 8px; }
.gl-me-game { display: grid; grid-template-columns: auto auto auto 1fr; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--bg1); border: 1px solid var(--line); }
.gl-me-game:hover { border-color: var(--line-2); }
.gl-me-game .gl-rating { height: 26px; font-size: .82rem; }
.gl-me-game .gl-rating .v { min-width: 28px; }
.gl-me-game small { justify-self: end; color: var(--mute); font-size: .78rem; }
.gl-me-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: auto; }
.gl-me-stats div { padding: 12px; border-radius: 10px; background: var(--bg1); border: 1px solid var(--line); }
.gl-me-stats b { display: block; font-family: var(--cond); font-size: 1.5rem; line-height: 1; }
.gl-me-stats b.ok { color: var(--ok); }
.gl-me-stats span { font-size: .72rem; color: var(--mute); }

.gl-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.gl-kpis .gl-card { padding: 18px 20px; }
.gl-kpis b { display: block; font-family: var(--cond); font-size: 2.3rem; font-weight: 700; line-height: 1; }
.gl-kpis b small { font-size: 1.2rem; color: var(--mute); }
.gl-kpis span { color: var(--mute); font-size: .85rem; }

.gl-cols { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr); gap: 20px; align-items: start; }
.gl-col-main, .gl-col-side { display: grid; gap: 20px; min-width: 0; }

.gl-list { display: grid; }
.gl-item { display: grid; grid-template-columns: 56px 30px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 20px; border-top: 1px solid var(--line); }
.gl-item:first-child { border-top: 0; }
.gl-item:hover { background: var(--panel-2); }
.gl-when { display: grid; line-height: 1.05; }
.gl-when b { font-family: var(--cond); font-size: 1.25rem; }
.gl-when small { font-size: .75rem; color: var(--mute); }
.gl-flag .flag-img { width: 28px; height: 20px; object-fit: cover; border-radius: 3px; }
.gl-what { display: grid; min-width: 0; }
.gl-what b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gl-what small { font-size: .82rem; color: var(--mute); overflow: hidden; text-overflow: ellipsis; }
.gl-tags { display: flex; align-items: center; gap: 8px; }
.gl-dur { font-size: .82rem; color: var(--mute); white-space: nowrap; }
.gl-news-item { grid-template-columns: 56px minmax(0, 1fr); }
.gl-news-item .gl-what b { white-space: normal; }

.gl-podiums { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.gl-podium { padding: 14px 20px 18px; display: grid; gap: 8px; align-content: start; justify-items: start; border-left: 1px solid var(--line); }
.gl-podium:first-child { border-left: 0; }
.gl-pod { display: grid; grid-template-columns: 26px 26px minmax(0, 1fr); align-items: center; gap: 10px; width: 100%; }
.gl-pod .gl-pos { font-family: var(--cond); font-weight: 800; font-size: 1.3rem; text-align: center; }
.gl-pod.p1 .gl-pos { color: #e8b73a; } .gl-pod.p2 .gl-pos { color: #c2cad6; } .gl-pod.p3 .gl-pos { color: #c7864a; }
.gl-who { display: grid; min-width: 0; line-height: 1.2; }
.gl-who b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gl-who small { font-size: .76rem; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gl-pod:hover b { color: var(--acc); }

.gl-table-cap { padding: 14px 20px 6px; }
.gl-rank { list-style: none; margin: 0; padding: 0 0 8px; }
.gl-rank li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 20px; }
.gl-rank li:hover { background: var(--panel-2); }
.gl-rank .gl-pos { font-family: var(--cond); font-weight: 700; font-size: 1.1rem; color: var(--mute); }
.gl-rank li:first-child .gl-pos { color: var(--acc); }
.gl-rank a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.gl-rank b { font-family: var(--cond); font-size: 1.1rem; font-variant-numeric: tabular-nums; }

.gl-serie { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--line); }
.gl-card-head + .gl-serie { border-top: 0; }
a.gl-serie:hover { background: var(--panel-2); }
.gl-serie b { display: block; font-weight: 600; }
.gl-serie small { color: var(--mute); font-size: .8rem; }
.gl-serie em { font-style: normal; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); }
.gl-serie em.live { color: var(--ok); }
.gl-serie.off { opacity: .6; }

/* таблица пилотов */
.gl-search input { height: 42px; width: min(320px, 100%); padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel); color: var(--txt); font: inherit; }
.gl-search input:focus { outline: none; border-color: var(--acc); }
.gl-table-wrap { overflow-x: auto; }
.gl-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.gl-table th { text-align: left; padding: 12px 14px; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); font-weight: 700; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--bg1); }
.gl-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.gl-table tr:hover td { background: var(--panel-2); }
.gl-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.gl-table td.gl-pos { font-family: var(--cond); font-weight: 700; font-size: 1.1rem; color: var(--mute); width: 40px; }
.gl-table tr:nth-child(-n+3) td.gl-pos { color: var(--acc); }
.gl-driver { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.gl-driver:hover { color: var(--acc); }
.gl-cflag .flag-img { width: 18px; height: 13px; object-fit: cover; border-radius: 2px; }

/* ─── Страницы VEC внутри приложения ─── */
.page-head { background: transparent !important; color: var(--txt) !important; padding: 32px 0 8px !important; border: 0 !important; overflow: visible !important; }
.page-head::before, .page-head::after { display: none !important; }
.page-head h1 { color: var(--txt) !important; }
.page-head .kicker { color: var(--acc) !important; letter-spacing: .12em; font-size: .74rem; }
.container { width: min(var(--max), 100% - 56px); }
.section { padding: 28px 0; }
.section.alt, .section.dark { background: transparent !important; }
.card, .panel, .hero-card { background: var(--panel) !important; border: 1px solid var(--line) !important; border-radius: 14px !important; box-shadow: none !important; }
.card:hover { border-color: var(--line-2) !important; transform: none !important; }
.btn { border-radius: 9px !important; font-family: var(--cond); font-stretch: normal; letter-spacing: .06em; font-size: .95rem; box-shadow: none !important; }
.btn-primary { background: var(--acc) !important; border-color: var(--acc) !important; color: var(--acc-ink) !important; }
.btn-outline { background: transparent !important; border: 1px solid var(--line-2) !important; color: var(--txt) !important; }
.btn-outline:hover { background: var(--panel-2) !important; }
.badge { border-radius: 5px; font-family: var(--cond); font-size: .76rem; letter-spacing: .06em; padding: 2px 8px; }
.table th { border-bottom: 1px solid var(--line) !important; color: var(--mute); }
.table td { border-bottom: 1px solid var(--line) !important; }
.table tr:hover td { background: var(--panel-2) !important; }
.field input[type=text], .field input[type=number], .field input[type=datetime-local], .field input[type=url], .field select, .field textarea {
  border-radius: 9px !important; border: 1px solid var(--line-2) !important; background: var(--bg1) !important; color: var(--txt) !important; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--acc) !important; }
.tabs a { border-radius: 8px !important; border-color: var(--line) !important; }
.tabs a.active { background: var(--acc) !important; border-color: var(--acc) !important; color: var(--acc-ink) !important; }
.empty { border-radius: 12px; border-color: var(--line); background: var(--panel); color: var(--mute); }
.flashes { width: min(var(--max), 100% - 56px); margin: 16px auto 0; }
.flash { border-radius: 10px !important; }
.hero { background: radial-gradient(80% 120% at 100% 100%, rgba(232, 32, 42, .10), transparent 60%), var(--bg1) !important; }
.hero::before, .hero::after { display: none !important; }
.countdown span { border-radius: 10px !important; background: var(--bg1) !important; border: 1px solid var(--line-2) !important; color: var(--txt) !important; }

/* ─── Лицензии DR/SR ─── */
.gl-lic-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.gl-lic { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.gl-lic-top { padding: 22px 24px; display: flex; justify-content: space-between; gap: 12px; align-items: start; border-bottom: 1px solid var(--line);
  background: radial-gradient(90% 140% at 100% 0, rgba(61, 107, 255, .22), transparent 60%), var(--panel-2); }
.gl-lic.acc .gl-lic-top { background: radial-gradient(90% 140% at 100% 0, rgba(240, 128, 26, .22), transparent 60%), var(--panel-2); }
.gl-lic-top h3 { margin-top: 10px; font-size: 1.4rem; }
.gl-lic-top small { color: var(--mute); }
.gl-lic-top a { text-decoration: underline; }
.gl-lic-ratings { display: flex; gap: 8px; }
.gl-lic-ratings .gl-rating { height: 42px; font-size: 1.05rem; }
.gl-lic-ratings .gl-rating .v { min-width: 46px; }
.gl-lic-body { padding: 20px 24px; display: grid; gap: 12px; }
.gl-lic-body form { display: flex; gap: 8px; flex-wrap: wrap; }
.gl-lic-body input[type=url] { flex: 1; min-width: 200px; height: 42px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--bg1); color: var(--txt); font: inherit; }
.gl-lic-body input[type=url]:focus { outline: none; border-color: var(--acc); }
.gl-lic-body button.link { background: none; border: 0; padding: 0; font: inherit; font-size: .88rem; font-weight: 600; color: var(--acc); cursor: pointer; }
.gl-main-pick { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--ok); }

/* ─── Вход ─── */
.gl-auth { min-height: calc(100vh - 180px); display: grid; place-items: center; padding: 40px 20px; }
.gl-auth-card { width: min(440px, 100%); padding: 32px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); }
.gl-auth-card h1 { margin: 16px 0 10px; }
.gl-auth-card p { color: var(--mute); font-size: .95rem; }
.gl-auth-card .gl-btn { width: 100%; margin-top: 10px; height: 50px; }
.gl-auth-foot { margin-top: 18px; font-size: .82rem; color: var(--mute); }
.gl-auth-foot a { color: var(--txt); text-decoration: underline; }

/* ─── Адаптив ─── */
@media (max-width: 1180px) {
  .gl-dash, .gl-cols { grid-template-columns: 1fr; }
  .gl-profile-label { display: none; }
  .gl-race-car { width: 56%; opacity: .9; }
}
@media (max-width: 1024px) {
  .gl-app { grid-template-columns: 1fr; }
  .gl-side { position: fixed; left: 0; top: 0; bottom: 0; width: 272px; transform: translateX(-100%); transition: transform .25s ease; box-shadow: 20px 0 60px rgba(17, 21, 26, .18); }
  .gl-app.side-open .gl-side { transform: none; }
  .gl-app.side-open .gl-scrim { display: block; position: fixed; inset: 0; z-index: 65; background: rgba(17, 21, 26, .35); }
  .gl-burger { display: block; }
  .gl-top { padding: 0 20px; }
}
@media (max-width: 760px) {
  .gl-page, .container, .flashes { width: calc(100% - 32px); }
  .gl-top { gap: 10px; padding: 0 12px; height: 58px; }
  .gl-next-txt { display: none; }
  .gl-next { padding: 6px 10px; }
  .gl-kpis { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .gl-race { padding: 22px 20px 150px; min-height: 0; }
  .gl-race-car { width: 92%; right: -10%; bottom: 6px; }
  .gl-cd span { min-width: 0; flex: 1; }
  .gl-item { grid-template-columns: 48px 26px minmax(0, 1fr); padding: 12px 16px; }
  .gl-item .gl-tags { display: none; }
  .gl-news-item { grid-template-columns: 48px minmax(0, 1fr); }
  .gl-lic-grid { grid-template-columns: 1fr; }
  .gl-foot-links { margin-left: 0; }
}
@media (max-width: 420px) {
  .gl-next { display: none; }
  .gl-rating .k, .gl-rating .v { padding: 0 6px; }
  .gl-rating .v { min-width: 26px; }
}

/* ─── LFM-подача: крупные цифры с красной чертой, плотные заголовки ─── */
h1, h2, h3, h4 { font-weight: 800; letter-spacing: .005em; }
.gl-race h1 { font-weight: 900; letter-spacing: -.01em; }
.gl-kpis .gl-card { background: transparent; border: 0; border-bottom: 2px solid var(--acc); border-radius: 0; padding: 8px 0 12px; }
.gl-kpis b { color: var(--acc); font-weight: 800; }
.gl-kpis span { text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; color: var(--txt); }
.gl-cd b { color: var(--acc); }
.gl-next-cd b { color: var(--acc); }
.gl-brand svg path:last-child { fill: var(--acc); }
.gl-card-head h2 { font-size: 1rem; letter-spacing: .06em; }
.gl-series-hero { background: radial-gradient(80% 140% at 100% 0, rgba(232, 32, 42, .12), transparent 60%), var(--panel); display: grid; gap: 14px; padding: 30px; }
.gl-series-hero p { max-width: 720px; margin: 0; }
.gl-cars { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; padding: 18px 20px; }
.gl-cars ul { margin: 10px 0 0; padding-left: 18px; color: var(--mute); line-height: 1.8; }
.badge.LMP3 { background: #8b5cf6; }
.badge.LMP2 { background: #2f6df6; }
.gl-race .gl-btn-ghost { background: #fff; }
@media (max-width: 1180px) and (min-width: 761px) { .gl-race-car { width: 50%; right: -4%; } }
@media (min-width: 761px) {
  .gl-race-info { max-width: 54%; }
  .gl-race-car { width: 58%; right: -5%; bottom: 50%; transform: translateY(58%); }
}
@media (max-width: 1180px) and (min-width: 761px) { .gl-race-car { width: 50%; } }
@media (max-width: 1440px) and (min-width: 761px) {
  .gl-dash { grid-template-columns: 1fr; }
  .gl-me { display: grid; grid-template-columns: minmax(200px, 1fr) minmax(260px, 1.2fr) minmax(260px, 1.2fr); align-items: center; gap: 20px; }
  .gl-me > .gl-label, .gl-me > h2, .gl-me > p { grid-column: 1 / 2; }
  .gl-me-stats { margin-top: 0; }
}

/* ─── Светлая тема: новые блоки (гонки, команды, анкета) ─── */
.gl-small { font-size: .85rem; }
.gl-mt8 { margin-top: 8px; }
.gl-between { justify-content: space-between; }
.gl-ok { color: #15803d; font-weight: 600; }
.gl-warn { color: #b45309; font-weight: 600; }
.unverified { opacity: .55; }
.gl-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.gl-tabs a { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-weight: 600; color: var(--mute); }
.gl-tabs a:hover { color: var(--txt); border-color: var(--line-2); }
.gl-tabs a.on { color: var(--txt); border-color: var(--acc); box-shadow: inset 0 -3px 0 var(--acc); }
.gl-race-row { grid-template-columns: 56px 30px minmax(0, 1fr) auto auto; }
.gl-race-row.past { opacity: .6; }
.gl-race-row .gl-tags { flex-wrap: wrap; justify-content: flex-end; max-width: 320px; }
.gl-act { justify-self: end; white-space: nowrap; font-size: .85rem; }
.badge.multi { background: #12151a; }
.badge.GT3 { background: #e8202a; } .badge.GT4 { background: #0ea5e9; } .badge.GT2 { background: #7c3aed; } .badge.TCX { background: #0d9488; }
.badge.Porsche-Cup { background: #111827; } .badge.Ferrari-Challenge { background: #b91c1c; } .badge.Lamborghini-Super-Trofeo { background: #ca8a04; }
.badge.Hypercar { background: #e5322d; } .badge.LMGT3 { background: #16a34a; } .badge.owner { background: var(--acc); }
.gl-game-hero { display: grid; gap: 12px; padding: 30px; background: radial-gradient(70% 140% at 100% 0, rgba(47, 109, 246, .10), transparent 60%), #fff; }
.gl-game-hero.acc { background: radial-gradient(70% 140% at 100% 0, rgba(240, 128, 26, .12), transparent 60%), #fff; }
.gl-game-hero p { margin: 0; }
.gl-team-mark { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: #12151a; color: #fff; font-weight: 800; font-size: .8rem; letter-spacing: .04em; flex: none; }
.gl-team-mark.lg { width: 76px; height: 76px; font-size: 1.2rem; border-radius: 16px; background: var(--acc); }
.gl-team-row { grid-template-columns: 44px minmax(0, 1fr) auto; }
.gl-team-hero { display: flex; align-items: center; gap: 22px; padding: 28px; }
.gl-team-hero h1 { margin: 6px 0; }
.gl-team-hero p { margin: 0; max-width: 720px; }
.gl-member { grid-template-columns: minmax(0, 1fr) auto auto; }
.gl-form { display: grid; gap: 12px; margin-top: 12px; }
.gl-form label { display: grid; gap: 6px; font-size: .82rem; font-weight: 600; color: var(--txt); }
.gl-form label small { font-weight: 400; color: var(--mute); }
.gl-form input, .gl-form select, .gl-form textarea { height: 42px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line-2); background: #fff; color: var(--txt); font: inherit; font-size: .95rem; }
.gl-form textarea { height: auto; padding: 10px 12px; resize: vertical; }
.gl-form input:focus, .gl-form select:focus, .gl-form textarea:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-dim); }
.gl-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gl-link-btn { background: none; border: 0; padding: 0; font: inherit; font-size: .88rem; font-weight: 600; color: var(--acc); cursor: pointer; }
.gl-link-btn.danger { color: #d92d2d; }
.gl-linked { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 9px; background: #ecfdf3; color: #15803d; font-weight: 600; font-size: .88rem; }
.gl-linked svg { width: 16px; height: 16px; }
.gl-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 0 4px; }
.gl-links .gl-label { width: 100%; }
.gl-auth-card .gl-form .gl-btn { margin-top: 6px; }
.gl-auth-card .gl-links .gl-btn { width: auto; height: 36px; margin: 0; }
.gl-card h2 a:hover, .gl-me-head small a:hover { color: var(--acc); }
@media (max-width: 760px) {
  .gl-race-row { grid-template-columns: 48px 26px minmax(0, 1fr); }
  .gl-race-row .gl-act { grid-column: 3; justify-self: start; }
  .gl-team-hero { flex-direction: column; align-items: flex-start; }
}
.gl-form input, .gl-form select, .gl-form textarea { width: 100%; min-width: 0; box-sizing: border-box; }
.gl-lic-body .gl-form input[type=url] { min-width: 0; flex: none; }
.gl-form input[type=file] { height: auto; padding: 8px; font-size: .85rem; }
.gl-lic-body .gl-form input[type=url] { width: 100%; }
