:root {
  --bg: #070b12;
  --text: #eef3fb;

  --accent: #ff7a18;
  --accent-2: #ffb800;

  --hero-glow-1: rgba(255, 122, 24, .28);
  --hero-glow-2: rgba(255, 184, 0, .16);
  --hero-glow-3: rgba(255, 77, 77, .15);
}

body[data-theme="light"] {
  --bg: #ffffff;
  --text: #111827;
  --accent: #ff7a18;
  --accent-2: #ffb800;
  --hero-glow-1: rgba(255, 122, 24, .12);
  --hero-glow-2: rgba(255, 184, 0, .08);
  --hero-glow-3: rgba(8, 12, 18, .14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 12%, var(--hero-glow-1), transparent 22%),
    radial-gradient(circle at 90% 10%, var(--hero-glow-2), transparent 24%),
    radial-gradient(circle at 50% 100%, var(--hero-glow-3), transparent 28%),
    linear-gradient(180deg, var(--bg) 0%, color-mix(in oklab, var(--bg) 88%, #000 12%) 100%);
  line-height: 1.5;
  overflow-x: hidden;
  transition: background .35s ease, color .25s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Shared entrance animation used by dashboard tiles. */
.reveal {
  opacity: 0;
  transform: translateY(22px) scale(.985);
  transition: opacity .55s ease, transform .55s ease;
  transition-delay: var(--delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Shared loading language for the new dashboard surfaces. */
@keyframes torq-dashboard-loading-stripes {
  to { background-position: 0 0, 24px 0; }
}

@keyframes torq-dashboard-skeleton-scan {
  to { transform: translateX(120%); }
}

@keyframes torq-dashboard-rent-button-pulse {
  0%, 100% {
    filter: saturate(1) brightness(1);
    opacity: .84;
  }
  50% {
    filter: saturate(1.18) brightness(1.12);
    opacity: 1;
  }
}

@keyframes torq-dashboard-loader-track {
  to { transform: translateX(240%) skewX(-24deg); }
}

.torq-loading-skeleton {
  position: relative;
  display: block;
  overflow: hidden;
  background: rgba(255, 255, 255, .085);
  border: 1px solid rgba(255, 255, 255, .075);
}

.torq-loading-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 0 34%, rgba(255, 184, 0, .16) 46%, transparent 60% 100%);
  transform: translateX(-110%);
  animation: torq-dashboard-skeleton-scan 1.25s ease-in-out infinite;
}

.torq-loading-skeleton--wide {
  width: min(220px, 100%);
  height: 18px;
}

.torq-loading-skeleton--short {
  width: min(132px, 72%);
  height: 12px;
  opacity: .72;
}

.torq-loading-skeleton--metric {
  width: min(170px, 100%);
  height: 32px;
  background: rgba(255, 122, 24, .12);
  border-color: rgba(255, 122, 24, .16);
}

.torq-loading-skeleton--tail {
  width: min(130px, 100%);
  height: 18px;
  justify-self: end;
  opacity: .74;
}

.torq-loading-skeleton--place {
  width: 54px;
  height: 54px;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  background: rgba(255, 122, 24, .18);
  border-color: rgba(255, 122, 24, .22);
}

.torq-loading-stack {
  min-width: 0;
  display: grid;
  gap: 8px;
  align-content: center;
}

/* =========================
   TORQ DASHBOARD SHELL
========================= */

.torq-page {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: 1px 28px 24px;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: #070b12;
}

/* Глобальный подвал — живёт под .torq-page, в обычном потоке body.
   Контент занимает первый экран, футер виден при прокрутке вниз. */
.torq-foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
  padding: 18px 28px;
  padding-bottom: max(18px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, .08);
  background: rgba(6, 10, 18, .72);
  color: var(--text);
  -webkit-backdrop-filter: blur(10px) saturate(1.05);
  backdrop-filter: blur(10px) saturate(1.05);
}

.torq-foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.torq-foot__links a {
  color: rgba(238, 243, 251, .62);
  text-decoration: none;
  font-size: .82rem;
  font-weight: 700;
  transition: color .18s ease;
}

.torq-foot__links a:hover,
.torq-foot__links a:focus-visible {
  color: var(--accent-2);
  outline: none;
}

.torq-foot__copy {
  color: rgba(238, 243, 251, .4);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
}

body[data-theme="light"] .torq-foot {
  border-top-color: rgba(17, 24, 39, .1);
  background: rgba(255, 255, 255, .82);
}

body[data-theme="light"] .torq-foot__links a { color: #6b7280; }
body[data-theme="light"] .torq-foot__copy { color: #9ca3af; }

.torq-bg-video,
.torq-bg-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.torq-bg-video {
  z-index: 0;
  overflow: hidden;
  background: #05080f;
}

.torq-bg-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .78;
  filter: saturate(1.04) contrast(1.06) brightness(.82);
  transform: scale(1.04);
}

.torq-bg-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 11, 18, .84), rgba(7, 11, 18, .48) 46%, rgba(7, 11, 18, .62)),
    linear-gradient(180deg, rgba(7, 11, 18, .14), rgba(7, 11, 18, .72));
}

.torq-bg-shade {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(7, 11, 18, .86) 0%, rgba(7, 11, 18, .56) 42%, rgba(7, 11, 18, .34) 100%),
    linear-gradient(180deg, rgba(7, 11, 18, .18), rgba(7, 11, 18, .78)),
    radial-gradient(circle at 78% 18%, rgba(255, 122, 24, .34), transparent 32%);
}

.torq-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: .16;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, .10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(90deg, #000 0%, transparent 78%);
}

.torq-location-band {
  --location-band-top: 4px;
  --location-band-right: -12vw;
  --location-band-left: -16vw;
  --location-band-left-offset: 16vw;
  --location-band-height: clamp(64px, 7.7vw, 118px);
  --location-band-pad: 16vw;
  --location-band-safe-start: clamp(42px, 5.2vw, 112px);
  --location-band-angle: -3.8deg;
  --location-band-skew: -10deg;
  --location-band-text-skew: 10deg;
  --location-band-text-size: clamp(38px, 5.5vw, 86px);
  --location-band-text-x: clamp(16px, 4vw, 86px);
  --location-band-text-y: 0;
  position: absolute;
  top: var(--location-band-top);
  right: var(--location-band-right);
  left: var(--location-band-left);
  z-index: 1;
  min-height: var(--location-band-height);
  padding: 0 var(--location-band-pad) 0 calc(var(--location-band-safe-start) + var(--location-band-left-offset));
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(105deg, rgba(255, 46, 46, .94) 0%, rgba(184, 20, 35, .86) 56%, rgba(255, 122, 24, .52) 100%),
    #d71920;
  box-shadow:
    0 30px 90px rgba(180, 20, 28, .22),
    inset 0 0 0 1px rgba(255, 255, 255, .12);
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  transform: rotate(var(--location-band-angle)) skewX(var(--location-band-skew));
  transform-origin: 50% 50%;
}

.torq-location-band::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .24;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .22), transparent 38%),
    repeating-linear-gradient(118deg, transparent 0 22px, rgba(255, 255, 255, .16) 23px 25px);
  mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 82%, transparent 100%);
}

.torq-location-band span {
  position: relative;
  z-index: 1;
  display: block;
  color: #fff;
  font-size: var(--location-band-text-size);
  line-height: .82;
  letter-spacing: 0;
  font-weight: 1000;
  text-transform: uppercase;
  -webkit-text-stroke: 0 transparent;
  text-shadow: none;
  filter:
    drop-shadow(0 3px 0 rgba(120, 12, 24, .34))
    drop-shadow(0 18px 28px rgba(120, 12, 24, .22));
  transform: translate(var(--location-band-text-x), var(--location-band-text-y)) skewX(var(--location-band-text-skew));
  white-space: nowrap;
}

/* Header / player HUD */
.torq-header {
  position: relative;
  z-index: 5;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  min-height: 62px;
}

.torq-brand,
.torq-profile {
  display: flex;
  align-items: center;
}

.torq-brand {
  gap: 12px;
  min-width: 0;
}

.torq-brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.torq-brand__word {
  color: #fff;
  font-size: clamp(20px, 1.35vw, 26px);
  line-height: .82;
  font-weight: 1000;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, .28),
    0 10px 22px rgba(0, 0, 0, .22);
  white-space: nowrap;
}

.torq-release-version {
  margin-left: 2px;
  padding: 3px 6px 2px;
  align-self: center;
  color: rgba(238, 243, 251, .72);
  background: rgba(8, 12, 18, .42);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .08em;
}

.torq-profile {
  --torq-profile-panel-height: 46px;
  position: relative;
  gap: 0;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.torq-profile::before {
  content: none;
}

.torq-player-plate {
  position: relative;
  min-width: 0;
  min-height: var(--torq-profile-panel-height);
  height: var(--torq-profile-panel-height);
  padding: 6px 18px 6px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(8, 12, 18, .24);
  border: 1px solid rgba(255, 255, 255, .10);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .14);
  -webkit-backdrop-filter: blur(10px) saturate(1.08);
  backdrop-filter: blur(10px) saturate(1.08);
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

.torq-level {
  position: relative;
}

.torq-rank-badge {
  width: 34px;
  height: 34px;
  padding: 0;
  display: grid;
  place-items: center;
  position: relative;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 122, 24, .16), rgba(255, 255, 255, .04)),
    rgba(8, 12, 18, .96);
  border: 1px solid rgba(255, 255, 255, .12);
  font: inherit;
  font-size: 15px;
  font-weight: 1000;
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
  cursor: default;
  overflow: hidden;
}

.torq-rank-badge.is-compact {
  font-size: 13px;
}

.torq-rank-badge.is-tiny {
  font-size: 11px;
}

.torq-rank-badge:focus-visible {
  outline: 2px solid rgba(255, 255, 255, .86);
  outline-offset: 3px;
}

.torq-level-tooltip {
  position: absolute;
  top: calc(100% + 10px);
  left: var(--torq-level-tooltip-left, 0);
  z-index: 35;
  width: min(292px, calc(100vw - 20px));
  min-width: 226px;
  padding: 12px 14px 12px 12px;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 122, 24, .16), rgba(255, 255, 255, .04)),
    rgba(8, 12, 18, .96);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .34);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.torq-level-tooltip::before {
  content: "";
  position: absolute;
  left: var(--torq-level-tooltip-arrow-left, 20px);
  bottom: 100%;
  transform: translateX(-50%);
  border-right: 6px solid transparent;
  border-bottom: 7px solid rgba(8, 12, 18, .96);
  border-left: 6px solid transparent;
}

.torq-level-progress-ring {
  --torq-level-progress: 0%;
  width: 72px;
  height: 72px;
  padding: 5px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    conic-gradient(var(--accent) var(--torq-level-progress), rgba(255, 255, 255, .12) 0),
    rgba(255, 255, 255, .06);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .12),
    0 12px 30px rgba(0, 0, 0, .22);
}

.torq-level-progress-ring__inner {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background: rgba(8, 12, 18, .94);
  border: 1px solid rgba(255, 255, 255, .10);
}

.torq-level-progress-ring__inner strong,
.torq-level-progress-ring__inner span,
.torq-level-tooltip__copy strong,
.torq-level-tooltip__copy span {
  display: block;
  white-space: nowrap;
}

.torq-level-progress-ring__inner strong {
  max-width: 52px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
  font-size: 15px;
  line-height: 1;
  font-weight: 1000;
  font-variant-numeric: tabular-nums;
}

.torq-level-progress-ring__inner span {
  max-width: 52px;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(255, 255, 255, .58);
  font-size: 9px;
  line-height: 1;
  font-weight: 850;
}

.torq-level-progress-ring__inner b {
  font: inherit;
}

.torq-level-tooltip__copy {
  min-width: 0;
}

.torq-level-tooltip__copy strong {
  font-size: 13px;
  line-height: 1.1;
  font-weight: 1000;
}

.torq-level-tooltip__copy span {
  margin-top: 5px;
  color: rgba(255, 255, 255, .64);
  font-size: 11px;
  font-weight: 850;
}

.torq-profile.is-level-tooltip-open > .torq-level-tooltip,
.torq-level-tooltip:hover,
.torq-level-tooltip:focus-within {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.torq-level.is-loading .torq-rank-badge {
  color: transparent !important;
  text-shadow: none !important;
  pointer-events: none;
}

.torq-level.is-loading .torq-rank-badge::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 0 34%, rgba(255, 255, 255, .18) 46%, transparent 60% 100%);
  transform: translateX(-110%);
  animation: torq-dashboard-skeleton-scan 1.25s ease-in-out infinite;
}

.torq-profile__main {
  min-width: 0;
  max-width: 180px;
  color: inherit;
  text-decoration: none;
  transition: opacity .18s ease;
}

.torq-profile__main:hover,
.torq-profile__main:focus-visible {
  opacity: .78;
  outline: none;
}

.torq-profile__main strong,
.torq-profile__main span {
  display: block;
  text-align: left;
  white-space: nowrap;
}

.torq-profile__main strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
  line-height: 1.1;
  font-weight: 1000;
}

.torq-profile__main span {
  margin-top: 2px;
  color: rgba(255, 255, 255, .58);
  font-size: 11px;
  font-weight: 800;
}

.torq-profile__main.is-loading strong,
.torq-profile__main.is-loading span,
.torq-wallet-button.is-loading strong {
  position: relative;
  width: fit-content;
  min-width: 72px;
  overflow: hidden;
  color: transparent !important;
  font-size: 0;
  line-height: 0;
  letter-spacing: 0;
  text-shadow: none !important;
  user-select: none;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .07);
}

.torq-profile__main.is-loading strong {
  height: 15px;
}

.torq-profile__main.is-loading span {
  min-width: 84px;
  height: 12px;
  margin-top: 5px;
}

.torq-wallet-button.is-loading strong {
  min-width: 62px;
  height: 16px;
  margin-top: 4px;
}

.torq-profile__main.is-loading strong::after,
.torq-profile__main.is-loading span::after,
.torq-wallet-button.is-loading strong::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 0 34%, rgba(255, 255, 255, .18) 46%, transparent 60% 100%);
  transform: translateX(-110%);
  animation: torq-dashboard-skeleton-scan 1.25s ease-in-out infinite;
}

.torq-club-badge {
  position: relative;
  min-height: var(--torq-profile-panel-height);
  height: var(--torq-profile-panel-height);
  padding: 6px 18px;
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(8, 12, 18, .20);
  border: 1px solid rgba(255, 255, 255, .09);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .12);
  -webkit-backdrop-filter: blur(10px) saturate(1.08);
  backdrop-filter: blur(10px) saturate(1.08);
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  transition: opacity .18s ease, color .18s ease;
}

.torq-club-badge::before,
.torq-wallet-button::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  bottom: 5px;
  width: 1px;
  background: rgba(255, 255, 255, .12);
}

.torq-club-badge:hover,
.torq-club-badge:focus-visible {
  opacity: .82;
  outline: none;
}

.torq-club-badge__mark {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
}

.torq-club-badge strong,
.torq-club-badge span {
  display: block;
  text-align: left;
  white-space: nowrap;
}

.torq-club-badge strong {
  font-size: 13px;
  line-height: 1.05;
  font-weight: 1000;
}

.torq-club-badge span {
  margin-top: 2px;
  color: rgba(255, 255, 255, .62);
  font-size: 11px;
  font-weight: 850;
}

.torq-wallet {
  position: relative;
}

.torq-wallet-button {
  position: relative;
  min-height: var(--torq-profile-panel-height);
  height: var(--torq-profile-panel-height);
  padding: 6px 18px;
  display: grid;
  align-content: center;
  color: #fff;
  background: rgba(8, 12, 18, .22);
  border: 1px solid rgba(255, 255, 255, .09);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .12);
  -webkit-backdrop-filter: blur(10px) saturate(1.08);
  backdrop-filter: blur(10px) saturate(1.08);
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  transition: opacity .18s ease;
  font: inherit;
  cursor: pointer;
}

.torq-wallet-button:hover,
.torq-wallet-button:focus-visible {
  opacity: .82;
  outline: none;
}

.torq-wallet-button span,
.torq-wallet-button strong {
  display: block;
  white-space: nowrap;
}

.torq-wallet-button span {
  color: rgba(255, 255, 255, .52);
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.torq-wallet-button strong {
  margin-top: 3px;
  color: rgba(255, 255, 255, .96);
  font-size: 16px;
  line-height: 1;
  font-weight: 1000;
}

.torq-wallet-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 35;
  width: 252px;
  padding: 12px;
  display: grid;
  gap: 10px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 122, 24, .14), rgba(255, 184, 0, .05)),
    rgba(8, 12, 18, .96);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .44);
  backdrop-filter: blur(18px);
}

.torq-wallet-popover[hidden] {
  display: none;
}

.torq-wallet-popover > span,
.torq-wallet-custom span {
  color: rgba(255, 255, 255, .58);
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.torq-wallet-presets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.torq-wallet-presets button {
  min-height: 42px;
  color: #fff;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .10);
  font: inherit;
  font-size: 15px;
  font-weight: 1000;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.torq-wallet-presets button:hover,
.torq-wallet-presets button:focus-visible,
.torq-wallet-presets button.is-selected {
  transform: translateY(-1px);
  background: rgba(255, 122, 24, .20);
  border-color: rgba(255, 122, 24, .42);
  outline: none;
}

.torq-wallet-custom {
  display: grid;
  gap: 6px;
}

.torq-wallet-custom input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  color: #fff;
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .12);
  font: inherit;
  font-size: 14px;
  font-weight: 850;
}

.torq-wallet-custom input:focus {
  border-color: rgba(255, 122, 24, .58);
  outline: none;
}

.torq-wallet-custom input::placeholder {
  color: rgba(255, 255, 255, .38);
}

.torq-wallet-submit {
  min-height: 42px;
  color: #101828;
  background: linear-gradient(110deg, var(--accent), var(--accent-2));
  border: 0;
  font: inherit;
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
}

.torq-wallet-submit:hover,
.torq-wallet-submit:focus-visible {
  filter: brightness(1.08);
  outline: none;
}

.torq-profile-menu {
  position: relative;
  margin-left: 4px;
  flex: 0 0 auto;
}

.torq-profile-menu[open] .torq-menu-button {
  transform: translateY(-1px);
  box-shadow: none;
}

.torq-menu-button {
  width: 32px;
  height: 42px;
  padding: 0;
  display: grid;
  place-content: center;
  gap: 5px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
  list-style: none;
  transition: transform .18s ease, opacity .18s ease;
}

.torq-menu-button:hover,
.torq-menu-button:focus-visible {
  opacity: .78;
  outline: none;
}

.torq-menu-button:hover span,
.torq-menu-button:focus-visible span,
.torq-profile-menu[open] .torq-menu-button span {
  background: var(--accent);
}

.torq-menu-button::-webkit-details-marker {
  display: none;
}

.torq-menu-button span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  box-shadow: none;
}

.torq-profile-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 30;
  width: 210px;
  padding: 8px;
  display: grid;
  gap: 6px;
  background:
    linear-gradient(135deg, rgba(255, 122, 24, .12), rgba(255, 184, 0, .06)),
    rgba(8, 12, 18, .94);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .44);
  backdrop-filter: blur(18px);
}

.torq-profile-action {
  position: relative;
  z-index: 1;
  min-height: 42px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  color: #fff;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .10);
  font: inherit;
  font-size: 13px;
  font-weight: 1000;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.torq-profile-action:hover,
.torq-profile-action:focus-visible {
  transform: translateX(2px);
  background: rgba(255, 122, 24, .20);
  border-color: rgba(255, 122, 24, .38);
  outline: none;
}

.torq-profile-action--danger:hover,
.torq-profile-action--danger:focus-visible {
  background: rgba(255, 77, 77, .20);
  border-color: rgba(255, 77, 77, .42);
}

/* Scene shell / scene switcher */
.torq-shell {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: auto;
  /* margin: 16px auto 0; */
  display: grid;
  grid-template-rows: auto;
  gap: 14px;
  align-content: start;
}

.torq-devices-shell,
.torq-records-shell,
.champ-shell,
.torq-section-shell {
  margin-top: 0;
  gap: 14px;
}

.torq-devices-head,
.torq-section-head {
  position: relative;
  min-height: 86px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .025)),
    rgba(6, 10, 18, .84);
  border: 1px solid rgba(0, 0, 0, .72);
  box-shadow: 0 18px 54px rgba(0, 0, 0, .28);
}

.torq-devices-back,
.torq-section-back {
  width: 48px;
  min-height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  background:
    linear-gradient(135deg, rgba(255, 122, 24, .18), rgba(255, 255, 255, .04)),
    rgba(8, 12, 18, .72);
  border: 1px solid rgba(255, 255, 255, .14);
  border-left: 3px solid var(--accent);
  font: inherit;
  font-size: 24px;
  font-weight: 1000;
  line-height: 1;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.torq-devices-back:hover,
.torq-devices-back:focus-visible,
.torq-section-back:hover,
.torq-section-back:focus-visible {
  transform: translateY(-1px);
  background:
    linear-gradient(135deg, rgba(255, 122, 24, .30), rgba(255, 255, 255, .06)),
    rgba(8, 12, 18, .86);
  border-color: rgba(255, 122, 24, .52);
  outline: none;
}

.torq-devices-title,
.torq-section-title {
  min-width: 0;
}

.torq-devices-title strong,
.torq-section-title strong {
  display: block;
  margin-top: 5px;
  color: #fff;
  font-size: clamp(24px, 2vw, 34px);
  line-height: .96;
  font-weight: 1000;
  text-transform: uppercase;
}

.torq-devices-title > span,
.torq-section-title > span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, .58);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.3;
}

.torq-scene-topbar {
  position: relative;
  z-index: 6;
  display: grid;
  justify-items: center;
  gap: 12px;
}

.torq-scene-topbar .torq-kicker {
  min-height: auto;
  padding: 0;
  gap: 8px;
  color: rgba(255, 255, 255, .72);
  background: transparent;
  font-size: 11px;
}

.torq-scene-topbar .torq-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(255, 122, 24, .72);
}

.torq-scene-tabs {
  --torq-tabs-text: rgba(255, 255, 255, .84);
  --torq-tabs-muted: rgba(255, 206, 57, .82);
  --torq-tabs-active: #fff;
  --torq-tabs-number-active: var(--accent-2);
  --torq-tabs-caption: rgba(255, 218, 83, .76);
  --torq-tabs-caption-active: #ffd447;
  --torq-tabs-line: rgba(255, 184, 0, .30);
  position: relative;
  z-index: 1;
  width: var(--torq-tabs-width, min(720px, 100%));
  min-height: var(--torq-tabs-height, 58px);
  padding: var(--torq-tabs-padding, 0 44px);
  display: flex;
  justify-content: center;
  align-items: var(--torq-tabs-align-items, center);
  gap: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  clip-path: none;
}

.torq-scene-tabs::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: var(--torq-tabs-line-bottom, 13px);
  left: 0;
  height: var(--torq-tabs-line-height, 2px);
  pointer-events: none;
  background: var(--torq-tabs-line-bg, linear-gradient(
    90deg,
    transparent 0%,
    transparent 6%,
    var(--torq-tabs-line) 22%,
    var(--torq-tabs-line) 78%,
    transparent 94%,
    transparent 100%
  ));
}

.torq-scene-tabs button {
  position: relative;
  min-width: var(--torq-tabs-button-min-width, 138px);
  min-height: var(--torq-tabs-button-min-height, var(--torq-tabs-height, 58px));
  padding: var(--torq-tabs-button-padding, 0 18px 8px);
  display: grid;
  justify-items: center;
  align-content: center;
  gap: var(--torq-tabs-button-gap, 3px);
  color: var(--torq-tabs-text);
  background: transparent;
  border: 0;
  font: inherit;
  font-size: var(--torq-tabs-button-font-size, 12px);
  font-weight: 1000;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: var(--torq-tabs-button-white-space, normal);
  text-shadow:
    0 2px 4px rgba(0, 0, 0, .48),
    0 0 16px rgba(255, 184, 0, .12);
  cursor: pointer;
  transition: color .18s ease, transform .18s ease;
}

.torq-scene-tabs button::after {
  content: "";
  position: absolute;
  bottom: var(--torq-tabs-underline-bottom, 10px);
  left: 50%;
  width: 0;
  height: var(--torq-tabs-underline-height, 4px);
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: translateX(-50%) skewX(-26deg);
  transition: width .18s ease;
}

.torq-scene-tabs button span {
  color: var(--torq-tabs-muted);
  font-size: var(--torq-tabs-number-size, 10px);
  letter-spacing: var(--torq-tabs-number-spacing, .22em);
  text-shadow:
    0 2px 4px rgba(0, 0, 0, .50),
    0 0 14px rgba(255, 184, 0, .22);
  transition: color .18s ease;
}

.torq-scene-tabs button em {
  position: absolute;
  left: 50%;
  bottom: var(--torq-tabs-caption-bottom, 2px);
  display: block;
  width: max-content;
  max-width: var(--torq-tabs-caption-max-width, 140px);
  color: var(--torq-tabs-caption);
  font-style: normal;
  font-size: var(--torq-tabs-caption-size, 9px);
  line-height: 1;
  font-weight: 1000;
  letter-spacing: var(--torq-tabs-caption-spacing, .10em);
  text-transform: uppercase;
  text-align: center;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, .46),
    0 0 14px rgba(255, 184, 0, .16);
  transform: translateX(-50%);
  transition: color .18s ease;
}

.torq-scene-tabs button:hover,
.torq-scene-tabs button:focus-visible,
.torq-scene-tabs button.is-active {
  color: var(--torq-tabs-active);
  outline: none;
}

.torq-scene-tabs button:hover,
.torq-scene-tabs button:focus-visible {
  transform: translateY(-1px);
}

.torq-scene-tabs button.is-active {
  font-size: var(--torq-tabs-active-font-size, 13px);
}

.torq-scene-tabs button.is-active::after {
  width: var(--torq-tabs-underline-width, 74px);
}

.torq-scene-tabs button.is-active span {
  color: var(--torq-tabs-number-active);
}

.torq-scene-tabs button.is-active em {
  color: var(--torq-tabs-caption-active);
}

@media (max-width: 1120px) {
  .torq-devices-head,
  .torq-section-head {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .torq-devices-head .torq-scene-tabs,
  .torq-section-head .torq-scene-tabs {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .torq-devices-head,
  .torq-section-head {
    padding: 12px;
  }

  .torq-devices-back,
  .torq-section-back {
    width: 46px;
    min-height: 46px;
    font-size: 23px;
  }
}

.torq-scenes {
  width: 100%;
  margin-top: -8px;
  padding-top: 8px;
  overflow: hidden;
  display: flex;
}

.torq-scenes[data-active-scene="garage"] .torq-scene {
  transform: translateX(-100%);
}

.torq-scenes[data-active-scene="activity"] .torq-scene {
  transform: translateX(-200%);
}

.torq-scenes[data-active-scene="stream"] .torq-scene {
  transform: translateX(-300%);
}

.torq-scene {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  display: grid;
  gap: 14px;
  align-content: start;
  opacity: .42;
  pointer-events: none;
  transition: opacity .24s ease, transform .34s cubic-bezier(.2, .8, .2, 1);
}

.torq-scene:not(.is-active) {
  height: 0;
  overflow: hidden;
}

.torq-scene.is-active {
  opacity: 1;
  pointer-events: auto;
}

.torq-scene-head span,
.torq-panel-label {
  display: block;
  color: rgba(255, 255, 255, .58);
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.torq-scene-head h2 {
  margin: 4px 0 0;
  font-size: clamp(28px, 2.8vw, 42px);
  line-height: .92;
  letter-spacing: -.045em;
  font-weight: 1000;
  text-transform: uppercase;
}

/* Garage scene */
.torq-garage-layout,
.torq-activity-layout {
  display: grid;
  gap: 12px;
}

.torq-garage-layout {
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
}

.torq-garage-focus,
.torq-garage-rail,
.torq-lap-panel,
.torq-chat-panel,
.torq-stream-panel,
.torq-garage-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .025)),
    rgba(6, 10, 18, .84);
  border: 1px solid rgba(0, 0, 0, .72);
  box-shadow: 0 18px 54px rgba(0, 0, 0, .28);
}

/* Stream scene */
.torq-stream-panel {
  display: grid;
  min-height: calc(100svh - 190px);
  gap: 14px;
  padding: 16px;
}

.torq-stream-panel .torq-panel-head {
  align-items: center;
}

.torq-stream-select {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, .58);
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.torq-stream-select select {
  min-width: 190px;
  min-height: 40px;
  padding: 0 38px 0 14px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .035)),
    rgba(5, 8, 14, .82);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  outline: none;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
}

.torq-stream-select select:focus-visible {
  border-color: color-mix(in oklab, var(--accent-2) 68%, rgba(255, 255, 255, .18));
  box-shadow: 0 0 0 3px rgba(47, 182, 255, .18);
}

.torq-stream-video-wrap {
  --stream-video-bg: rgba(14, 18, 27, .96);
  --stream-video-aspect: 16 / 9;
  position: relative;
  overflow: hidden;
  width: max(360px, calc((100svh - 260px) * 16 / 9));
  max-width: calc(100vw - 96px);
  margin-inline: auto;
  min-height: 0;
  height: auto;
  justify-self: center;
  aspect-ratio: var(--stream-video-aspect);
  border-radius: 8px;
  background: var(--stream-video-bg);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .10);
}

.torq-stream-video-wrap video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--stream-video-bg);
}

.torq-stream-message {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  display: grid;
  place-items: center;
  min-height: 0;
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
  font-weight: 800;
  pointer-events: none;
  text-align: center;
}

.torq-stream-laps {
  position: fixed;
  box-sizing: border-box;
  container-type: inline-size;
  top: 16px;
  left: 16px;
  z-index: 30;
  width: 340px;
  min-width: min(240px, calc(100vw - 16px));
  min-height: min(150px, calc(100vh - 16px));
  max-width: calc(100vw - 16px);
  max-height: calc(100vh - 16px);
  padding: 8px 10px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 6px;
  color: #fff;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  opacity: .38;
  backdrop-filter: none;
  transition: opacity .18s ease, background .18s ease, box-shadow .18s ease, visibility .18s ease;
}

.torq-stream-laps:hover,
.torq-stream-laps:focus-within,
.torq-stream-laps.is-moving,
.torq-stream-laps.is-resizing,
.torq-stream-laps.is-solid {
  opacity: .94;
  background:
    linear-gradient(135deg, rgba(8, 12, 20, .46), rgba(8, 12, 20, .26)),
    rgba(0, 0, 0, .18);
  border-radius: 8px;
  box-shadow: none;
  backdrop-filter: blur(5px) saturate(110%);
}

.torq-stream-laps__head {
  min-height: 26px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  cursor: move;
  touch-action: none;
  user-select: none;
}

.torq-stream-laps__head span {
  color: rgba(255, 255, 255, .72);
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.torq-stream-laps__actions {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.torq-stream-laps__icon-button {
  width: 28px;
  height: 28px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  color: rgba(255, 255, 255, .72);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 6px;
  cursor: pointer;
}

.torq-stream-laps__icon-button:hover,
.torq-stream-laps__icon-button:focus-visible,
.torq-stream-laps__icon-button.is-active {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 122, 24, .78), rgba(255, 184, 0, .58)),
    rgba(255, 255, 255, .08);
  outline: none;
}

.torq-stream-laps__icon-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.torq-stream-laps__icon-button svg circle {
  fill: currentColor;
  stroke: none;
}

.torq-stream-laps__list {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 3px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .26) transparent;
}

.torq-stream-laps__list::-webkit-scrollbar {
  width: 5px;
}

.torq-stream-laps__list::-webkit-scrollbar-track {
  background: transparent;
}

.torq-stream-laps__list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .22);
  border-radius: 999px;
}

.torq-stream-lap {
  min-height: 23px;
  padding: 1px 0;
  display: grid;
  grid-template-columns: minmax(34px, .52fr) minmax(54px, 1.32fr) minmax(52px, .8fr) minmax(22px, 30px);
  align-items: center;
  gap: clamp(3px, 1.7cqi, 6px);
  background: transparent;
  border: 0;
  border-radius: 4px;
  font-size: clamp(9px, 3.1cqi, 11px);
  line-height: 1.1;
}

.torq-stream-lap__club {
  min-width: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, .62);
  font-size: clamp(8px, 2.7cqi, 9px);
  font-weight: 1000;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

a.torq-stream-lap__club:hover,
a.torq-stream-lap__club:focus-visible {
  color: #fff;
  outline: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.torq-stream-lap strong {
  min-width: 0;
  overflow: hidden;
  color: #fff;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.torq-stream-lap__driver-link {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.torq-stream-lap b {
  color: rgba(255, 255, 255, .88);
  font-size: clamp(9px, 3.1cqi, 11px);
  font-weight: 1000;
  font-variant-numeric: tabular-nums;
  cursor: help;
}

.torq-stream-lap__car {
  display: inline-flex;
  justify-content: center;
  border-radius: 4px;
  outline: none;
}

a.torq-stream-lap__car:hover,
a.torq-stream-lap__car:focus-visible {
  background: rgba(255, 255, 255, .08);
}

.torq-stream-lap__car img {
  width: clamp(22px, 8cqi, 30px);
  height: clamp(14px, 4.8cqi, 18px);
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .30));
}

.torq-stream-lap.is-live-new {
  background: rgba(47, 182, 255, .12);
  transform: translateY(-4px);
}

.torq-stream-lap.is-live-new-fade {
  transform: translateY(0);
  transition: transform .24s ease, background .9s ease;
}

.torq-stream-laps.is-collapsed {
  width: auto !important;
  min-width: 0;
  max-width: none;
  height: auto !important;
  min-height: 0;
  max-height: none;
  padding: 0;
  display: block;
  visibility: visible;
  opacity: .92;
  overflow: visible;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  pointer-events: auto;
}

.torq-stream-chat {
  position: fixed;
  box-sizing: border-box;
  container-type: inline-size;
  top: 16px;
  right: 16px;
  z-index: 30;
  width: 300px;
  min-width: min(220px, calc(100vw - 16px));
  min-height: min(180px, calc(100vh - 16px));
  max-width: calc(100vw - 16px);
  max-height: calc(100vh - 16px);
  height: 420px;
  padding: 8px 10px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 7px;
  color: #fff;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  opacity: .38;
  backdrop-filter: none;
  transition: opacity .18s ease, background .18s ease, box-shadow .18s ease, visibility .18s ease;
}

.torq-stream-chat:hover,
.torq-stream-chat:focus-within,
.torq-stream-chat.is-moving,
.torq-stream-chat.is-resizing,
.torq-stream-chat.is-solid {
  opacity: .94;
  background:
    linear-gradient(135deg, rgba(8, 12, 20, .46), rgba(8, 12, 20, .26)),
    rgba(0, 0, 0, .18);
  border-radius: 8px;
  box-shadow: none;
  backdrop-filter: blur(5px) saturate(110%);
}

.torq-stream-chat__head {
  min-height: 26px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  cursor: move;
  touch-action: none;
  user-select: none;
}

.torq-stream-chat__head span {
  color: rgba(255, 255, 255, .72);
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.torq-stream-chat__actions,
.torq-stream-laps__actions {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.torq-stream-chat__icon-button,
.torq-stream-laps__icon-button {
  width: 28px;
  height: 28px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  color: rgba(255, 255, 255, .72);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 6px;
  cursor: pointer;
}

.torq-stream-chat__icon-button:hover,
.torq-stream-chat__icon-button:focus-visible,
.torq-stream-chat__icon-button.is-active,
.torq-stream-laps__icon-button:hover,
.torq-stream-laps__icon-button:focus-visible,
.torq-stream-laps__icon-button.is-active {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 122, 24, .78), rgba(255, 184, 0, .58)),
    rgba(255, 255, 255, .08);
  outline: none;
}

.torq-stream-chat__icon-button svg,
.torq-stream-laps__icon-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.torq-stream-chat__icon-button svg circle,
.torq-stream-laps__icon-button svg circle {
  fill: currentColor;
  stroke: none;
}

.torq-stream-chat__list {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .26) transparent;
}

.torq-stream-chat__list::-webkit-scrollbar {
  width: 5px;
}

.torq-stream-chat__list::-webkit-scrollbar-track {
  background: transparent;
}

.torq-stream-chat__list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .22);
  border-radius: 999px;
}

.torq-stream-chat__empty,
.torq-stream-chat__message {
  color: rgba(255, 255, 255, .78);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.25;
}

.torq-stream-chat__message {
  padding: 5px 7px;
  align-self: flex-start;
  max-width: min(92%, 360px);
  background: rgba(255, 255, 255, .055);
  border-left: 2px solid rgba(255, 255, 255, .14);
  border-radius: 4px;
}

.torq-stream-chat__message.is-vip {
  background: rgba(255, 122, 24, .14);
  border-left-color: rgba(255, 122, 24, .78);
}

.torq-stream-chat__message.is-club {
  background: rgba(63, 143, 139, .13);
  border-left-color: rgba(88, 176, 169, .72);
}

.torq-stream-chat__message.is-club.is-you {
  border-left-color: rgba(88, 176, 169, .72);
}

.torq-stream-chat__message.is-admin {
  background: rgba(255, 64, 64, .15);
  border-left-color: rgba(255, 74, 74, .82);
}

.torq-stream-chat__message.is-you {
  align-self: flex-end;
  background: rgba(47, 182, 255, .13);
  border-left-color: rgba(47, 182, 255, .72);
  text-align: right;
}

.torq-stream-chat__message.is-system {
  background: rgba(138, 216, 168, .11);
  border-left-color: rgba(138, 216, 168, .70);
}

.torq-stream-chat__message.is-error {
  background: rgba(255, 98, 98, .12);
  border-left-color: rgba(255, 98, 98, .78);
}

.torq-stream-chat__message > span:not(.torq-chat-message__meta),
.torq-stream-chat__message .torq-chat-message__meta {
  display: block;
  margin-bottom: 2px;
  color: rgba(255, 255, 255, .54);
  font-size: 9px;
  font-weight: 1000;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.torq-stream-chat__message.is-vip > span:not(.torq-chat-message__meta),
.torq-stream-chat__message.is-vip .torq-chat-message__meta {
  color: rgba(255, 184, 120, .95);
}

.torq-stream-chat__message.is-club > span:not(.torq-chat-message__meta),
.torq-stream-chat__message.is-club .torq-chat-message__meta {
  color: rgba(178, 223, 218, .96);
}

.torq-stream-chat__message .torq-chat-message__meta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 3px;
}

.torq-stream-chat__message.is-you .torq-chat-message__meta {
  justify-content: flex-end;
  margin-left: auto;
}

.torq-stream-chat__message .torq-chat-message__scope {
  display: inline-flex;
  margin: 0;
  padding: 1px 4px;
  font-size: 7px;
}

.torq-stream-chat__message p {
  margin: 0;
  overflow-wrap: anywhere;
}

.torq-stream-chat__message p + p {
  margin-top: 4px;
}

.torq-stream-chat__compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(44px, auto);
  gap: clamp(4px, 1.7cqi, 6px);
}

.torq-stream-chat__compose label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.torq-stream-chat__compose input {
  min-width: 0;
  min-height: 30px;
  padding: 0 clamp(6px, 2.4cqi, 9px);
  color: #fff;
  background: rgba(6, 10, 18, .56);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 4px;
  font: inherit;
  font-size: clamp(9px, 3.1cqi, 10px);
  font-weight: 850;
}

.torq-stream-chat__compose input::placeholder {
  color: rgba(255, 255, 255, .44);
}

.torq-stream-chat__compose input:focus {
  border-color: rgba(255, 122, 24, .58);
  outline: none;
}

.torq-stream-chat__compose button {
  min-height: 30px;
  min-width: 0;
  padding: 0 clamp(6px, 2.3cqi, 9px);
  color: #fff;
  background: linear-gradient(110deg, #159dff, #16c6b7);
  border: 0;
  border-radius: 4px;
  font: inherit;
  font-size: clamp(8px, 2.6cqi, 9px);
  font-weight: 1000;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}

.torq-stream-chat__compose button:hover,
.torq-stream-chat__compose button:focus-visible {
  filter: brightness(1.10);
  outline: none;
}

.torq-stream-chat.is-collapsed {
  right: auto;
  width: auto !important;
  min-width: 0;
  max-width: none;
  height: auto !important;
  min-height: 0;
  max-height: none;
  padding: 0;
  display: block;
  visibility: visible;
  opacity: .92;
  overflow: visible;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  pointer-events: auto;
}

.torq-stream-chat__open,
.torq-stream-laps__open {
  display: none;
  min-height: 34px;
  padding: 0 14px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 122, 24, .86), rgba(255, 184, 0, .70)),
    rgba(8, 12, 20, .90);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, .24);
  font: inherit;
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: .04em;
  cursor: pointer;
}

.torq-stream-chat__open:hover,
.torq-stream-chat__open:focus-visible,
.torq-stream-laps__open:hover,
.torq-stream-laps__open:focus-visible {
  filter: brightness(1.08);
  outline: none;
}

.torq-stream-laps.is-collapsed .torq-stream-laps__head,
.torq-stream-laps.is-collapsed .torq-stream-laps__list,
.torq-stream-laps.is-collapsed .torq-stream-overlay-resize,
.torq-stream-chat.is-collapsed .torq-stream-chat__head,
.torq-stream-chat.is-collapsed .torq-stream-chat__list,
.torq-stream-chat.is-collapsed .torq-stream-chat__compose,
.torq-stream-chat.is-collapsed .torq-stream-overlay-resize {
  display: none;
}

.torq-stream-laps.is-collapsed .torq-stream-laps__open,
.torq-stream-chat.is-collapsed .torq-stream-chat__open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  cursor: grab;
  touch-action: none;
  user-select: none;
  white-space: nowrap;
}

.torq-stream-laps.is-collapsed.is-moving .torq-stream-laps__open,
.torq-stream-chat.is-collapsed.is-moving .torq-stream-chat__open {
  cursor: grabbing;
}

.torq-stream-overlay-resize {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  cursor: nwse-resize;
  touch-action: none;
}

.torq-stream-overlay-resize::before,
.torq-stream-overlay-resize::after {
  content: "";
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 9px;
  height: 1px;
  background: rgba(255, 255, 255, .58);
  transform-origin: right center;
  transform: rotate(-45deg);
}

.torq-stream-overlay-resize::after {
  right: 4px;
  bottom: 8px;
  width: 5px;
}

body:not(.is-stream-scene) .torq-stream-laps,
body:not(.is-stream-scene) .torq-stream-chat,
body:not(.is-stream-scene) .torq-stream-overlay-controls {
  display: none;
}

.torq-stream-players {
  position: relative;
  z-index: 40;
  display: grid;
  justify-items: start;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  opacity: .94;
  transition: opacity .18s ease;
}

.torq-stream-players:hover,
.torq-stream-players:focus-within,
.torq-stream-players.is-open {
  opacity: .96;
}

.torq-stream-players__toggle {
  min-height: 36px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  color: #fff;
  background: rgba(32, 32, 32, .72);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .24);
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .02em;
  cursor: pointer;
  backdrop-filter: blur(5px) saturate(115%);
}

.torq-stream-players__toggle i {
  width: 9px;
  height: 9px;
  background: #4fd25f;
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(79, 210, 95, .55);
}

.torq-stream-players__toggle b {
  display: inline-flex;
  align-items: center;
  font-weight: 900;
  white-space: nowrap;
}

.torq-stream-players__toggle svg {
  width: 16px;
  height: 16px;
  transition: transform .16s ease;
}

.torq-stream-players.is-open .torq-stream-players__toggle svg {
  transform: rotate(180deg);
}

.torq-stream-players__toggle:hover,
.torq-stream-players__toggle:focus-visible {
  background: rgba(48, 48, 48, .86);
  outline: none;
}

.torq-stream-players__panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: min(520px, calc(100vw - 96px));
  max-height: min(42vh, 330px);
  padding: 10px 12px;
  color: #fff;
  background: rgba(18, 18, 18, .82);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .32);
  overflow-y: auto;
  backdrop-filter: blur(6px) saturate(115%);
}

.torq-stream-players__row {
  min-height: 30px;
  display: grid;
  grid-template-columns: minmax(110px, 1.1fr) minmax(110px, .95fr) 58px 86px;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  font-size: 13px;
  line-height: 1.15;
}

.torq-stream-players__row:last-child {
  border-bottom: 0;
}

.torq-stream-players__row--head {
  min-height: 36px;
  color: rgba(255, 255, 255, .82);
  font-size: 14px;
  font-weight: 900;
}

.torq-stream-players__row strong,
.torq-stream-players__row a,
.torq-stream-players__row span,
.torq-stream-players__row b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.torq-stream-players__row strong,
.torq-stream-players__row b {
  font-weight: 900;
}

/* Ник в табе игроков — это <strong> внутри .torq-panel-head, поэтому он наследовал
   .torq-panel-head strong (19px, UPPERCASE, margin-top). Возвращаем размер строки и
   раскладываем ячейку под тег клуба + ник. */
.torq-stream-players__panel .torq-stream-players__row strong {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin-top: 0;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.15;
  text-transform: none;
}

.torq-stream-player__club {
  flex: 0 0 auto;
  max-width: 84px;
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  color: rgba(255, 255, 255, .72);
  background: rgba(255, 255, 255, .075);
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 999px;
  font-size: 11px;
  line-height: 1;
  font-weight: 1000;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

a.torq-stream-player__club:hover,
a.torq-stream-player__club:focus-visible {
  color: #fff;
  background: rgba(255, 122, 24, .12);
  border-color: rgba(255, 122, 24, .42);
  outline: none;
}

.torq-stream-players__row a {
  color: rgba(255, 255, 255, .88);
  font-weight: 800;
  text-decoration: none;
}

.torq-stream-players__row a:hover,
.torq-stream-players__row a:focus-visible {
  color: #fff;
  outline: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.torq-garage-focus {
  --garage-tone: #ff7a18;
  --garage-control-bottom: 26px;
  --garage-control-height: 64px;
  min-height: 420px;
  scroll-margin-top: 14px;
  isolation: isolate;
  padding: 26px;
  display: flex;
  align-items: flex-end;
  background:
    radial-gradient(circle at 72% 14%, color-mix(in oklab, var(--garage-tone) 58%, transparent), transparent 28%),
    linear-gradient(128deg, color-mix(in oklab, var(--garage-tone) 82%, rgba(6, 10, 18, .18)) 0%, rgba(6, 10, 18, .34) 42%, rgba(6, 10, 18, .92) 100%),
    rgba(6, 10, 18, .84);
}

.torq-garage-focus::before,
.torq-garage-focus::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.torq-garage-focus::before {
  inset: 0;
  z-index: 0;
  opacity: .32;
  background:
    repeating-linear-gradient(
      118deg,
      transparent 0 24px,
      rgba(255, 255, 255, .14) 25px 27px
    );
  mask-image: linear-gradient(120deg, #000 0%, #000 38%, transparent 78%);
}

.torq-garage-focus::after {
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  height: 5px;
  background: linear-gradient(
    90deg,
    color-mix(in oklab, var(--garage-tone) 92%, #fff),
    color-mix(in oklab, var(--garage-tone) 72%, #fff) 42%,
    transparent 78%
  );
}

.torq-garage-focus__media {
  position: absolute;
  top: -6px;
  right: -4px;
  z-index: 1;
  width: min(68%, 720px);
  pointer-events: none;
}

.torq-garage-focus__media img {
  width: 100%;
  height: auto;
  filter:
    saturate(1.08)
    drop-shadow(0 34px 28px rgba(0, 0, 0, .40));
}

.torq-garage-focus__body {
  position: relative;
  z-index: 2;
  align-self: stretch;
  width: min(430px, 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* padding-top: clamp(72px, 9vh, 108px); */
}

.torq-garage-focus__info {
  width: min(430px, 100%);
}

.torq-garage-focus__head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.torq-garage-focus__head small {
  color: rgba(255, 255, 255, .68);
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.torq-garage-status {
  min-height: 28px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  color: #fff;
  background: color-mix(in oklab, var(--garage-tone) 72%, rgba(0, 0, 0, .24));
  border: 1px solid color-mix(in oklab, var(--garage-tone) 72%, rgba(255, 255, 255, .18));
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.torq-garage-focus__info > strong {
  position: relative;
  z-index: 1;
  display: block;
  margin: 14px 0 8px;
  font-size: clamp(38px, 3.35vw, 60px);
  line-height: .9;
  letter-spacing: -.045em;
  font-weight: 1000;
  text-transform: uppercase;
}

.torq-garage-focus__info > p {
  max-width: 400px;
  margin: 0;
  color: rgba(255, 255, 255, .86);
  font-size: 14px;
  font-weight: 850;
}

.torq-garage-info-link {
  position: relative;
  z-index: 1;
  width: fit-content;
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, .78);
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.torq-garage-info-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 2px;
  background: color-mix(in oklab, var(--garage-tone) 72%, rgba(255, 255, 255, .38));
  transform-origin: left center;
  transform: scaleX(.58);
  transition: transform .18s ease, background .18s ease;
}

.torq-garage-info-link:hover,
.torq-garage-info-link:focus-visible {
  color: #fff;
  outline: none;
}

.torq-garage-info-link:hover::after,
.torq-garage-info-link:focus-visible::after {
  transform: scaleX(1);
  background: color-mix(in oklab, var(--garage-tone) 86%, #fff);
}

.torq-garage-metrics {
  position: absolute;
  right: var(--garage-control-bottom);
  bottom: var(--garage-control-bottom);
  z-index: 2;
  min-height: var(--garage-control-height);
  height: var(--garage-control-height);
  display: inline-grid;
  overflow: hidden;
  background: rgba(7, 11, 18, .36);
  border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(12px);
}

.torq-garage-metrics div {
  min-width: 70px;
  padding: 11px 14px 9px;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.torq-garage-metrics span,
.torq-garage-metrics b {
  display: block;
}

.torq-garage-metrics span {
  color: rgba(255, 255, 255, .58);
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.torq-garage-metrics b {
  margin-top: 4px;
  font-size: 16px;
  line-height: 1;
  font-weight: 1000;
}

.torq-garage-action {
  position: relative;
  z-index: 20;
  min-height: var(--garage-control-height);
  margin-top: 16px;
  display: flex;
  align-items: flex-end;
}

.torq-rent-split {
  position: relative;
  z-index: 20;
  width: fit-content;
  display: flex;
  align-items: stretch;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .30));
}

.torq-rent-split::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      110deg,
      color-mix(in oklab, var(--garage-tone) 86%, rgba(255, 255, 255, .18)),
      color-mix(in oklab, var(--garage-tone) 68%, rgba(255, 255, 255, .38))
    );
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 100%, 0 100%);
}

.torq-rent-split::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .28;
  background:
    repeating-linear-gradient(
      120deg,
      transparent 0 16px,
      rgba(255, 255, 255, .32) 17px 18px
    );
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 100%, 0 100%);
  mask-image: linear-gradient(110deg, #000 0%, transparent 76%);
}

.torq-rent-split[hidden],
.torq-rent-tariffs[hidden],
.torq-garage-blocked[hidden] {
  display: none;
}

.torq-rent-primary,
.torq-rent-tariffs summary {
  color: #fff;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.torq-rent-primary {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-width: 250px;
  min-height: var(--garage-control-height);
  padding: 0 22px;
  display: grid;
  align-content: center;
  text-align: left;
  overflow: hidden;
  background: transparent;
  clip-path: none;
}

.torq-rent-primary::before,
.torq-rent-tariffs summary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  background: rgba(255, 255, 255, .14);
  transition: opacity .18s ease;
}

.torq-rent-primary::before {
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 100%, 0 100%);
}

.torq-rent-primary span,
.torq-rent-primary b {
  position: relative;
  z-index: 1;
  display: block;
}

.torq-rent-primary span {
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.torq-rent-primary b {
  margin-top: 4px;
  font-size: 21px;
  line-height: 1;
  font-weight: 1000;
}

.torq-rent-tariffs {
  position: relative;
  z-index: 30;
  order: -1;
}

.torq-rent-tariffs[open] {
  z-index: 100;
}

.torq-rent-tariffs summary {
  position: relative;
  z-index: 1;
  width: 92px;
  min-width: 92px;
  min-height: var(--garage-control-height);
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, auto) auto;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: rgba(255, 255, 255, .92);
  background: transparent;
  border-right: 1px solid rgba(16, 24, 40, .24);
  clip-path: none;
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: .10em;
  list-style: none;
  text-transform: uppercase;
}

.torq-rent-tariffs summary::before {
  right: -1px;
}

.torq-rent-tariffs summary::-webkit-details-marker {
  display: none;
}

.torq-rent-tariffs summary::after {
  content: "";
  position: relative;
  z-index: 1;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  opacity: .72;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .18s ease, opacity .18s ease;
}

.torq-rent-tariffs[open] summary::after {
  transform: rotate(-135deg) translateY(-1px);
}

.torq-rent-primary:hover::before,
.torq-rent-primary:focus-visible::before,
.torq-rent-tariffs summary:hover::before,
.torq-rent-tariffs summary:focus-visible::before,
.torq-rent-tariffs[open] summary::before {
  opacity: 1;
}

.torq-rent-primary:disabled,
.torq-rent-plan:disabled {
  cursor: wait;
  opacity: .72;
}

.torq-rent-tariffs__menu {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  z-index: 100;
  width: 290px;
  padding: 8px;
  display: grid;
  gap: 6px;
  color: #fff;
  background: rgba(8, 12, 18, .96);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 22px 56px rgba(0, 0, 0, .40);
}

.torq-rent-plan {
  min-height: 48px;
  padding: 9px 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  color: #fff;
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .08);
}

.torq-rent-plan span,
.torq-rent-plan small,
.torq-rent-plan b {
  display: block;
}

.torq-rent-plan span {
  font-size: 13px;
  font-weight: 1000;
}

.torq-rent-plan small {
  color: rgba(255, 255, 255, .56);
  font-size: 11px;
  font-weight: 850;
}

.torq-rent-plan b {
  font-size: 15px;
  font-weight: 1000;
}

.torq-rent-plan:hover {
  background: rgba(255, 122, 24, .20);
  border-color: rgba(255, 122, 24, .34);
}

.torq-wallet-popover,
.torq-profile-dropdown,
.torq-rent-tariffs__menu {
  isolation: isolate;
}

.torq-wallet-popover::before,
.torq-profile-dropdown::before,
.torq-rent-tariffs__menu::before {
  content: "";
  position: absolute;
  pointer-events: none;
}

:is(.torq-wallet-popover, .torq-profile-dropdown, .torq-rent-tariffs__menu) {
  background:
    linear-gradient(135deg, rgba(255, 122, 24, .12), transparent 46%),
    rgba(6, 10, 18, .96);
  border-color: rgba(255, 255, 255, .16);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .48);
}

:is(.torq-wallet-popover, .torq-profile-dropdown, .torq-rent-tariffs__menu)::before {
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent 78%);
}

:is(.torq-profile-action, .torq-wallet-presets button, .torq-rent-plan) {
  background: rgba(255, 255, 255, .035);
  border-color: rgba(255, 255, 255, .09);
}

.torq-profile-action {
  border-left: 3px solid transparent;
}

:is(.torq-profile-action:hover, .torq-profile-action:focus-visible) {
  transform: none;
  background: rgba(255, 122, 24, .12);
  border-left-color: var(--accent);
}

:is(.torq-wallet-presets button:hover, .torq-wallet-presets button:focus-visible, .torq-wallet-presets button.is-selected, .torq-rent-plan:hover) {
  transform: none;
  background: rgba(255, 122, 24, .14);
  border-color: rgba(255, 122, 24, .42);
}

.torq-rent-primary.is-return {
  color: #07120e;
}

.torq-rent-split:has(.torq-rent-primary.is-return)::before {
  background:
    linear-gradient(
      110deg,
      color-mix(in oklab, var(--garage-tone) 90%, rgba(255, 255, 255, .18)),
      color-mix(in oklab, var(--garage-tone) 72%, rgba(255, 255, 255, .42))
    );
}

.torq-garage-blocked {
  position: relative;
  min-height: 64px;
  width: fit-content;
  min-width: 300px;
  padding: 11px 16px;
  display: grid;
  align-content: center;
  background:
    linear-gradient(135deg, color-mix(in oklab, var(--garage-tone) 22%, transparent), rgba(6, 10, 18, .62)),
    rgba(6, 10, 18, .54);
  border: 1px solid color-mix(in oklab, var(--garage-tone) 46%, rgba(255, 255, 255, .14));
  backdrop-filter: blur(12px);
}

.torq-garage-blocked::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: var(--garage-tone);
}

.torq-garage-blocked strong,
.torq-garage-blocked > span {
  display: block;
}

.torq-garage-blocked strong {
  font-size: 13px;
  line-height: 1.1;
  font-weight: 1000;
  text-transform: uppercase;
}

.torq-garage-blocked > span {
  margin-top: 3px;
  color: rgba(255, 255, 255, .68);
  font-size: 12px;
  font-weight: 850;
}

.torq-garage-driver-link {
  color: inherit;
}

.torq-garage-rail {
  min-height: 420px;
  max-height: min(640px, calc(100svh - 152px));
  padding: 16px;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  gap: 12px;
}

.torq-garage-rail__head span,
.torq-garage-rail__head strong {
  display: block;
}

.torq-garage-rail__head span {
  color: rgba(255, 255, 255, .56);
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.torq-garage-rail__head strong {
  margin-top: 4px;
  font-size: 20px;
  line-height: 1;
  font-weight: 1000;
  text-transform: uppercase;
}

.torq-garage-list {
  min-height: 0;
  /* Flex-раскладка: полные ряды занимают всю ширину, а неполный последний ряд
     центрируется — ширина карточек одинаковая во всех рядах. */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: start;
  gap: 12px;
  padding-right: 14px;
  overflow-y: auto;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .18), rgba(255, 255, 255, .05))
    calc(100% - 3px) 0 / 2px 100% no-repeat;
}

/* Ширина карточки = доля ряда (--garage-cols штук в ряд). max-width не даёт
   карточкам неполного ряда растягиваться — они остаются той же ширины и центрируются.
   Полные ряды занимают всю ширину. Колонок тем больше, чем шире экран. */
.torq-garage-card {
  --garage-cols: 3;
  flex: 1 1 calc((100% - (var(--garage-cols) - 1) * 12px) / var(--garage-cols));
  max-width: calc((100% - (var(--garage-cols) - 1) * 12px) / var(--garage-cols));
  min-width: 0;
}

/* Шире — больше колонок, пока карточки влезают (минимум ~360px на карточку). */
@media (min-width: 1600px) { .torq-garage-card { --garage-cols: 4; } }
@media (min-width: 2000px) { .torq-garage-card { --garage-cols: 5; } }
@media (min-width: 2400px) { .torq-garage-card { --garage-cols: 6; } }

body.is-garage-scene {
  overflow-x: hidden;
  overflow-y: auto;
}

body.is-garage-scene .torq-page {
  height: 100svh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

body.is-garage-scene .torq-header {
  flex: 0 0 auto;
}

body.is-garage-scene .torq-shell {
  flex: 1 1 auto;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr);
}

body.is-garage-scene .torq-scenes,
body.is-garage-scene .torq-scene--garage {
  height: 100%;
  min-height: 0;
}

body.is-garage-scene .torq-scene--garage {
  grid-template-rows: minmax(0, 1fr);
  align-content: stretch;
}

body.is-garage-scene .torq-garage-layout {
  min-height: 0;
  height: 100%;
  align-items: stretch;
}

body.is-garage-scene .torq-garage-rail {
  min-height: 0;
  max-height: none;
  height: var(--garage-rail-fit-height, 100%);
}

body.is-garage-scene .torq-garage-list {
  min-height: 0;
  overflow-y: auto;
  /* Когда внутренний скролл машин дошёл до края — отдаём прокрутку странице,
     чтобы можно было докрутить до футера, не уводя курсор из блока с машинами. */
  overscroll-behavior-y: auto;
}

/* Shared scrollbars for internal rails */
.torq-garage-list,
.torq-news-list,
.torq-lap-list,
.torq-chat__messages {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 122, 24, .72) rgba(255, 255, 255, .06);
}

.torq-garage-list::-webkit-scrollbar,
.torq-news-list::-webkit-scrollbar,
.torq-lap-list::-webkit-scrollbar,
.torq-chat__messages::-webkit-scrollbar {
  width: 8px;
}

.torq-garage-list::-webkit-scrollbar-track,
.torq-news-list::-webkit-scrollbar-track,
.torq-lap-list::-webkit-scrollbar-track,
.torq-chat__messages::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, .05);
}

.torq-garage-list::-webkit-scrollbar-thumb,
.torq-news-list::-webkit-scrollbar-thumb,
.torq-lap-list::-webkit-scrollbar-thumb,
.torq-chat__messages::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}

.torq-garage-empty {
  grid-column: 1 / -1;
  min-height: 120px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .035);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.torq-garage-list.is-loading {
  overflow: hidden;
}

.torq-garage-card {
  --garage-tone: rgba(255, 255, 255, .42);
  --garage-pad: 14px;
  --garage-status-row: 24px;
  --garage-image-zone: 150px;
  isolation: isolate;
  z-index: 2;
  min-height: 384px;
  padding: var(--garage-pad);
  /* Название идёт сразу под блоком статуса — резервируем сверху место под чип статуса. */
  padding-top: calc(var(--garage-pad) + var(--garage-status-row));
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "name"
    "details"
    "image"
    "metrics"
    "actions";
  grid-template-rows: auto auto var(--garage-image-zone) auto auto;
  align-content: start;
  row-gap: 6px;
  text-align: left;
  color: #fff;
  font: inherit;
  cursor: default;
  background:
    radial-gradient(circle at 50% 23%, color-mix(in oklab, var(--garage-tone) 30%, transparent), transparent 42%),
    linear-gradient(145deg, color-mix(in oklab, var(--garage-tone) 16%, transparent), rgba(255, 255, 255, .025) 52%, rgba(255, 255, 255, .015)),
    rgba(6, 10, 18, .90);
  border-left: 3px solid color-mix(in oklab, var(--garage-tone) 72%, rgba(255, 255, 255, .14));
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}

.torq-garage-card::before,
.torq-garage-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.torq-garage-card::before {
  inset: 0;
  z-index: 0;
  opacity: .22;
  background:
    repeating-linear-gradient(
      120deg,
      transparent 0 18px,
      rgba(255, 255, 255, .13) 19px 20px
    );
  mask-image: linear-gradient(135deg, #000 0%, transparent 66%);
}

.torq-garage-card::after {
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    color-mix(in oklab, var(--garage-tone) 88%, #fff),
    color-mix(in oklab, var(--garage-tone) 42%, transparent) 58%,
    transparent
  );
}

.torq-garage-card:hover,
.torq-garage-card.is-pointer-hovered,
.torq-garage-card:focus-visible {
  z-index: 7;
  border-color: color-mix(in oklab, var(--garage-tone) 70%, rgba(255, 255, 255, .20));
  border-left-color: color-mix(in oklab, var(--garage-tone) 92%, #fff);
  background:
    radial-gradient(circle at 50% 23%, color-mix(in oklab, var(--garage-tone) 42%, transparent), transparent 44%),
    linear-gradient(145deg, color-mix(in oklab, var(--garage-tone) 26%, transparent), rgba(255, 255, 255, .045) 54%, rgba(255, 255, 255, .02)),
    rgba(6, 10, 18, .90);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, .32),
    inset 0 0 0 1px color-mix(in oklab, var(--garage-tone) 32%, transparent);
  outline: none;
}

.torq-garage-card > span,
.torq-garage-card > img,
.torq-garage-card > strong,
.torq-garage-card > small,
.torq-garage-card > b,
.torq-garage-card__actions {
  position: relative;
  z-index: 1;
  display: block;
}

.torq-garage-card > img {
  grid-area: image;
  align-self: start;
  justify-self: center;
  width: 100%;
  height: var(--garage-image-zone);
  margin: 0;
  object-fit: contain;
  object-position: center top;
  transform: translateY(-8px);
  pointer-events: none;
  filter:
    saturate(1.08)
    drop-shadow(0 16px 18px rgba(0, 0, 0, .34));
}

.torq-garage-card > span {
  position: absolute;
  top: 13px;
  left: 14px;
  z-index: 2;
  color: color-mix(in oklab, var(--garage-tone) 62%, #fff);
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: .10em;
  text-transform: uppercase;
  text-shadow: 0 1px 5px rgba(0, 0, 0, .65);
}

/* Инфо-блоки машины (лучший круг / пробег / популярность) — в стиле /cars */
.torq-garage-card__metrics {
  grid-area: metrics;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin: 0;
}

.torq-garage-metric {
  min-height: 0;
  padding: 6px 7px;
  display: grid;
  align-content: start;
  gap: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .09);
}

.torq-garage-metric span {
  color: rgba(255, 255, 255, .54);
  font-size: 9px;
  font-weight: 1000;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.torq-garage-metric b {
  color: #fff;
  font-size: 14px;
  line-height: 1;
  font-weight: 1000;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.torq-garage-metric small {
  min-width: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, .5);
  font-size: 9px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-theme="light"] .torq-garage-metric {
  background: rgba(17, 24, 39, .04);
  border-color: rgba(17, 24, 39, .1);
}

body[data-theme="light"] .torq-garage-metric b { color: #111827; }
body[data-theme="light"] .torq-garage-metric span,
body[data-theme="light"] .torq-garage-metric small { color: #6b7280; }

.torq-garage-card > strong {
  grid-area: name;
  margin-top: 0;
  display: -webkit-box;
  align-self: start;
  overflow: hidden;
  font-size: 21px;
  line-height: 1.06;
  font-weight: 1000;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* Когда показана админская кнопка «Отменить» (справа вверху), освобождаем
   место справа, чтобы название не уходило под неё. */
.torq-garage-card:has(.torq-garage-card__cancel) > strong {
  padding-right: 92px;
}

.torq-garage-card > small {
  grid-area: meta;
  margin-top: 1px;
  color: rgba(255, 255, 255, .66);
  font-size: 12px;
  font-weight: 900;
}

.torq-garage-card > b {
  position: absolute;
  top: 13px;
  right: 14px;
  z-index: 3;
  min-height: 24px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  color: #fff;
  background: color-mix(in oklab, var(--garage-tone) 52%, rgba(0, 0, 0, .5));
  border: 1px solid color-mix(in oklab, var(--garage-tone) 56%, rgba(255, 255, 255, .14));
  border-radius: 2px;
  font-size: 10px;
  font-weight: 1000;
  white-space: nowrap;
}

/* Кнопка «Отменить» — справа вверху, под чипом заряда (только активная аренда) */
.torq-garage-card__cancel {
  position: absolute;
  top: 43px;
  right: 14px;
  z-index: 3;
  min-height: 24px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  color: #fff;
  background: rgba(8, 12, 18, .62);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 2px;
  font: inherit;
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease;
}

.torq-garage-card__cancel:hover,
.torq-garage-card__cancel:focus-visible {
  background: rgba(190, 18, 18, .9);
  border-color: rgba(190, 18, 18, .9);
  outline: none;
}

.torq-garage-card__actions {
  grid-area: actions;
  z-index: 4;
  min-height: 56px;
  margin-top: 2px;
  padding: 0;
  display: grid;
  gap: 5px;
  align-content: start;
  align-self: stretch;
}

.torq-garage-card__details {
  grid-area: details;
  position: relative;
  z-index: 4;
  width: fit-content;
  min-height: 18px;
  margin-top: 0;
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, .74);
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.torq-garage-card__details::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 1px;
  width: 100%;
  height: 2px;
  background: color-mix(in oklab, var(--garage-tone) 72%, rgba(255, 255, 255, .38));
  transform-origin: left center;
  transform: scaleX(.58);
  transition: transform .18s ease, background .18s ease;
}

.torq-garage-card__details:hover,
.torq-garage-card__details:focus-visible {
  color: #fff;
  outline: none;
}

.torq-garage-card__details:hover::after,
.torq-garage-card__details:focus-visible::after {
  transform: scaleX(1);
  background: color-mix(in oklab, var(--garage-tone) 86%, #fff);
}

.torq-garage-card .torq-rent-split--card {
  width: 100%;
  filter: drop-shadow(0 12px 16px rgba(0, 0, 0, .22));
}

.torq-garage-card .torq-rent-primary {
  min-width: 0;
  min-height: 56px;
  padding: 0 15px;
}

.torq-garage-card .torq-rent-primary span {
  font-size: 9px;
}

.torq-garage-card .torq-rent-primary b {
  font-size: 17px;
}

.torq-garage-card .torq-rent-tariffs summary {
  width: 88px;
  min-width: 88px;
  min-height: 56px;
  font-size: 9px;
}

.torq-garage-card .torq-rent-tariffs__menu {
  right: auto;
  left: 0;
  width: min(290px, calc(100vw - 48px));
}

.torq-garage-card:has(.torq-rent-tariffs[open]) {
  z-index: 25;
  overflow: visible;
}

.torq-rent-primary--card {
  width: 100%;
  color: #fff;
  background:
    linear-gradient(
      110deg,
      color-mix(in oklab, var(--garage-tone) 86%, rgba(255, 255, 255, .18)),
      color-mix(in oklab, var(--garage-tone) 68%, rgba(255, 255, 255, .38))
    );
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 100%, 0 100%);
}

/* Левый сегмент сплита "Вернуться" — отмена активной аренды */
.torq-rent-cancel {
  position: relative;
  z-index: 1;
  order: -1;
  min-width: 96px;
  min-height: var(--garage-control-height);
  padding: 0 14px;
  display: grid;
  place-items: center;
  color: #07120e;
  background: transparent;
  border: 0;
  border-right: 1px solid rgba(16, 24, 40, .24);
  cursor: pointer;
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: .10em;
  text-transform: uppercase;
  transition: background .18s ease, color .18s ease;
}

.torq-rent-cancel:hover,
.torq-rent-cancel:focus-visible {
  background: rgba(255, 255, 255, .18);
  outline: none;
}

.torq-rent-cancel:disabled {
  cursor: wait;
  opacity: .72;
}

.torq-garage-card .torq-rent-cancel {
  width: 92px;
  min-width: 92px;
  min-height: 56px;
  font-size: 9px;
}

.torq-garage-blocked--card {
  width: 100%;
  min-width: 0;
  min-height: 58px;
  padding: 10px 12px;
}

.torq-garage-blocked--card strong {
  min-width: 0;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.torq-garage-blocked--card strong > span {
  min-width: 0;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.torq-garage-blocked--card > span {
  font-size: 11px;
}

.torq-garage-device-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  color: currentColor;
  font-family: 'Material Symbols Rounded';
  font-size: 17px;
  font-weight: normal;
  line-height: 1;
  text-transform: none;
  font-style: normal;
  letter-spacing: 0;
  font-variation-settings:
    'FILL' 0,
    'wght' 500,
    'GRAD' 0,
    'opsz' 24;
}

.torq-garage-card--loading {
  --garage-tone: #ff7a18;
  cursor: wait;
  pointer-events: none;
}

.torq-garage-card--loading::before {
  opacity: .46;
  background:
    linear-gradient(90deg, rgba(255, 122, 24, .14), transparent 34%),
    repeating-linear-gradient(118deg, transparent 0 16px, rgba(255, 255, 255, .065) 17px 19px);
  mask-image: linear-gradient(90deg, #000, transparent 82%);
  background-position: 0 0, 0 0;
  animation: torq-dashboard-loading-stripes 1.4s linear infinite;
}

.torq-garage-card--loading .torq-loading-skeleton {
  position: relative;
  z-index: 1;
}

.torq-garage-card--loading .torq-loading-skeleton--car {
  position: relative;
  grid-area: image;
  width: 100%;
  height: calc(var(--garage-image-zone) - 24px);
  align-self: center;
  background: rgba(255, 122, 24, .12);
  border-color: rgba(255, 122, 24, .16);
}

.torq-garage-card--loading .torq-loading-skeleton--label {
  position: absolute;
  top: 13px;
  left: 14px;
  width: 78px;
  height: 12px;
}

.torq-garage-card--loading .torq-loading-skeleton--chip {
  position: absolute;
  top: 13px;
  right: 14px;
  width: 48px;
  height: 24px;
  border-radius: 2px;
}

.torq-garage-card--loading .torq-garage-metric .torq-loading-skeleton {
  height: 8px;
  width: 100%;
}

.torq-garage-card--loading .torq-garage-metric .torq-loading-skeleton:nth-child(2) {
  height: 15px;
  width: 72%;
}

.torq-garage-card--loading .torq-loading-skeleton--name {
  position: relative;
  grid-area: name;
  width: 86%;
  height: 18px;
}

.torq-garage-card__actions--loading {
  pointer-events: none;
}

.torq-garage-card--loading .torq-loading-skeleton--details {
  width: 78px;
  height: 16px;
  opacity: .72;
}

.torq-garage-card--loading .torq-loading-skeleton--rent-button {
  width: 100%;
  height: 56px;
  background:
    linear-gradient(110deg, rgba(255, 122, 24, .28), rgba(255, 184, 0, .18)),
    rgba(255, 122, 24, .10);
  border-color: rgba(255, 122, 24, .24);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 100%, 0 100%);
  animation: torq-dashboard-rent-button-pulse 1.55s ease-in-out infinite;
}

:is(.torq-garage-focus, .torq-garage-card).is-available {
  --garage-tone: #ff7a18;
}

:is(.torq-garage-focus, .torq-garage-card).is-mine {
  --garage-tone: #4ee29e;
}

:is(.torq-garage-focus, .torq-garage-card).is-busy {
  --garage-tone: #ffb800;
}

:is(.torq-garage-focus, .torq-garage-card).is-low {
  --garage-tone: #ff4d4d;
}

:is(.torq-garage-focus, .torq-garage-card).is-offline {
  --garage-tone: #8491a8;
}

:is(.torq-garage-focus, .torq-garage-card).is-loading {
  --garage-tone: #ff7a18;
}

:is(.torq-garage-focus, .torq-garage-card).is-locked {
  --garage-tone: #b779ff;
}

:is(.torq-garage-focus, .torq-garage-card).is-blocked {
  --garage-tone: #8d98ab;
}

/* Activity scene */
.torq-activity-layout {
  grid-template-columns: minmax(0, 1fr) minmax(360px, .58fr);
}

.torq-lap-panel,
.torq-chat-panel {
  --activity-tone: #ff7a18;
  isolation: isolate;
  min-height: 328px;
  padding: 18px;
}

.torq-chat-panel {
  --activity-tone: #2fb6ff;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.torq-lap-panel > *,
.torq-chat-panel > * {
  position: relative;
  z-index: 1;
}

.torq-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.torq-panel-head strong,
.torq-panel-head span {
  display: block;
}

.torq-panel-head strong {
  margin-top: 5px;
  font-size: 19px;
  line-height: 1.05;
  font-weight: 1000;
  text-transform: uppercase;
}

.torq-lap-panel .torq-panel-label {
  color: rgba(255, 184, 0, .78);
}

.torq-chat-panel .torq-panel-label {
  color: rgba(47, 182, 255, .80);
}

.torq-panel-head > span {
  min-height: 28px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, .66);
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .09);
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.torq-lap-list {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.torq-lap-row {
  --row-tone: rgba(255, 255, 255, .42);
  position: relative;
  overflow: hidden;
  min-height: 108px;
  padding: 16px 92px 16px 18px;
  display: grid;
  grid-template-columns: minmax(210px, .9fr) minmax(370px, 1.35fr) 124px;
  gap: 18px;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .02)),
    rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .08);
  border-left: 3px solid rgba(255, 255, 255, .14);
}

.torq-lap-row::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .34;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .08), transparent 22%),
    repeating-linear-gradient(118deg, transparent 0 24px, rgba(255, 255, 255, .035) 25px 26px);
  mask-image: linear-gradient(90deg, #000, transparent 72%);
}

.torq-lap-row.is-best {
  --row-tone: #ff7a18;
  background:
    linear-gradient(90deg, rgba(255, 122, 24, .38), rgba(255, 184, 0, .10) 46%, rgba(255, 255, 255, .035)),
    rgba(255, 255, 255, .045);
  box-shadow:
    inset 0 0 0 1px rgba(255, 122, 24, .16),
    0 0 28px rgba(255, 122, 24, .14);
  border-left-color: var(--accent);
}

.torq-lap-row :is(.torq-lap-driver__club, .torq-lap-clock) {
  color: rgba(255, 255, 255, .62);
  font-size: 12px;
  font-weight: 1000;
}

.torq-lap-row strong {
  font-size: 30px;
  line-height: 1;
  letter-spacing: -.04em;
  font-weight: 1000;
  font-variant-numeric: tabular-nums;
}

.torq-lap-row.is-best .torq-lap-driver__name,
.torq-lap-row.is-best strong {
  color: var(--accent-2);
}

.torq-lap-row.is-best .torq-lap-driver__name:is(.fx3, .fx4) {
  color: #f8fafc;
}

.torq-lap-row.is-best strong {
  text-shadow: 0 0 22px rgba(255, 122, 24, .32);
}

.torq-lap-row--loading {
  min-height: 86px;
  grid-template-columns: 76px minmax(210px, 1fr) minmax(170px, .72fr) minmax(130px, .5fr);
  padding: 14px 16px;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 122, 24, .12), rgba(255, 255, 255, .035) 42%, rgba(255, 255, 255, .02)),
    rgba(255, 255, 255, .04);
  border-left-color: rgba(255, 122, 24, .62);
}

.torq-lap-row--loading::before {
  opacity: .50;
  background:
    linear-gradient(90deg, rgba(255, 122, 24, .16), transparent 34%),
    repeating-linear-gradient(118deg, transparent 0 16px, rgba(255, 255, 255, .075) 17px 19px);
  mask-image: linear-gradient(90deg, #000, transparent 82%);
  background-position: 0 0, 0 0;
  animation: torq-dashboard-loading-stripes 1.4s linear infinite;
}

.torq-lap-row--loading > * {
  position: relative;
  z-index: 1;
}

.torq-lap-clock {
  position: absolute;
  top: 12px;
  right: 16px;
  z-index: 1;
  min-height: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .70);
  background: transparent;
  border: 0;
  font-size: 12px;
  font-weight: 1000;
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.torq-lap-row.is-best .torq-lap-clock {
  color: rgba(255, 255, 255, .88);
}

.torq-lap-driver {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
}

.torq-lap-driver__club {
  padding: 7px 10px;
  border-radius: 999px;
  color: rgba(255, 255, 255, .82);
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .10);
  font-size: 12px;
  line-height: 1;
  font-weight: 1000;
  text-decoration: none;
  white-space: nowrap;
}

.torq-lap-driver__club:hover {
  color: #fff;
  background: rgba(255, 255, 255, .16);
}

.torq-lap-driver__name {
  min-width: 0;
  color: #fff;
  font-size: 18px;
  line-height: 1.05;
  font-weight: 1000;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.torq-lap-driver__crown {
  font-size: 20px;
  line-height: 1;
  cursor: help;
}

.fx1 {
  background: linear-gradient(90deg, #ff9a3c, #ff4e50, #fc913a, #ff9a3c);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: torq-club-fx1 6s ease-in-out infinite;
}

@keyframes torq-club-fx1 {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.fx2 {
  background: linear-gradient(90deg, #ff2e63, #08f7fe, #fe53bb, #ff2e63);
  background-size: 400% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: torq-club-fx2 7s linear infinite;
}

@keyframes torq-club-fx2 {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.fx3 {
  position: relative;
  display: inline-block;
  color: #f8fafc;
  vertical-align: top;
  overflow: hidden;
}

.fx3::after {
  content: "";
  position: absolute;
  inset: 0;
  left: -120%;
  pointer-events: none;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, .6) 50%,
    transparent 100%
  );
  animation: torq-club-fx3 2.2s infinite;
}

@keyframes torq-club-fx3 {
  0% { left: -120%; }
  100% { left: 120%; }
}

.fx4 {
  position: relative;
  color: #f8fafc;
  animation: torq-club-fx4 2s infinite;
}

@keyframes torq-club-fx4 {
  0%, 100% { text-shadow: 0 0 0 transparent; }
  20% { text-shadow: 2px 0 #ff3d00; }
  40% { text-shadow: -2px 0 #00e5ff; }
  60% { text-shadow: 2px 0 #ff3d00; }
  80% { text-shadow: -2px 0 #00e5ff; }
}

.fx5 {
  background: linear-gradient(90deg, #ff1744, #ff6b6b, #b00020, #ff1744);
  background-size: 320% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 10px rgba(255, 23, 68, .24);
  animation: torq-club-fx5 5.5s ease-in-out infinite;
}

@keyframes torq-club-fx5 {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.fx6 {
  background: linear-gradient(90deg, #00c853, #b2ff59, #00e676, #00c853);
  background-size: 320% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 10px rgba(0, 200, 83, .24);
  animation: torq-club-fx6 5.8s ease-in-out infinite;
}

@keyframes torq-club-fx6 {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.fx7 {
  background: linear-gradient(90deg, #8a6a00, #ffd166, #fff3b0, #f4a261, #8a6a00);
  background-size: 420% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 12px rgba(255, 209, 102, .28);
  animation: torq-club-fx7 6.4s linear infinite;
}

@keyframes torq-club-fx7 {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.fx8 {
  background: linear-gradient(90deg, #6a00f4, #00d4ff, #ffffff, #ff2bd6, #6a00f4);
  background-size: 450% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 5px rgba(0, 212, 255, .28));
  animation: torq-club-fx8 4.8s linear infinite;
}

@keyframes torq-club-fx8 {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.fx9 {
  position: relative;
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  color: #f7fbff;
  text-shadow:
    0 0 4px rgba(73, 213, 232, 0.92),
    0 0 16px rgba(73, 213, 232, 0.66),
    0 0 32px rgba(141, 227, 143, 0.32);
  -webkit-text-stroke: 1px rgba(73, 213, 232, 0.42);
  filter: drop-shadow(0 6px 14px rgba(73, 213, 232, 0.28));
}

.fx9::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.08em;
  height: 0.08em;
  background: #49d5e8;
  box-shadow: 0 0 12px rgba(73, 213, 232, 0.76);
  transform: skewX(-18deg);
  transform-origin: left center;
}

.fx10 {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  padding: 0.05em 0.22em 0.09em;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background: #e10600 !important;
  box-shadow:
    0.12em 0.12em 0 rgba(0, 0, 0, 0.34),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.28);
  transform: skewX(-8deg);
}

.fx11 {
  display: inline-block;
  color: #ffd05a;
  text-shadow:
    0.08em 0.08em 0 rgba(255, 127, 146, 0.92),
    0.16em 0.16em 0 rgba(73, 213, 232, 0.78),
    0 0 18px rgba(255, 208, 90, 0.24);
  -webkit-text-stroke: 1px rgba(9, 15, 22, 0.72);
  transform: skewX(-6deg);
}

.torq-lap-result {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 10px;
}

.torq-lap-sectors {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.torq-lap-sector {
  flex: 0 0 auto;
  width: 82px;
  min-height: 28px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: rgba(255, 255, 255, .78);
  background: rgba(255, 255, 255, .065);
  border: 1px solid rgba(255, 255, 255, .10);
  font-variant-numeric: tabular-nums;
}

.torq-lap-sector small {
  color: var(--accent);
  font-size: 10px;
  line-height: 1;
  font-weight: 1000;
  letter-spacing: .08em;
}

.torq-lap-sector em {
  color: rgba(255, 255, 255, .84);
  font-size: 12px;
  line-height: 1;
  font-style: normal;
  font-weight: 1000;
  font-variant-numeric: tabular-nums;
}

.torq-lap-sector.is-empty {
  width: auto;
  padding: 0 8px;
  color: rgba(255, 255, 255, .48);
}

.torq-lap-car {
  position: relative;
  z-index: 1;
  width: 124px;
  min-height: 74px;
  display: grid;
  grid-template-rows: 54px auto;
  place-items: center;
  gap: 4px;
  justify-self: center;
  overflow: hidden;
  background: transparent;
  border: 0;
  text-decoration: none;
}

.torq-lap-car img {
  width: 100%;
  height: 54px;
  object-fit: contain;
}

.torq-lap-car span {
  width: 100%;
  color: rgba(255, 255, 255, .62);
  font-size: 10px;
  line-height: 1.15;
  font-weight: 900;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.torq-lap-row.is-live-new {
  border-left-color: var(--accent-2);
  background:
    linear-gradient(90deg, rgba(255, 184, 0, .28), rgba(255, 255, 255, .05) 48%, rgba(255, 255, 255, .025)),
    rgba(255, 255, 255, .055);
  transform: translateY(-5px);
}

.torq-lap-row.is-live-new-fade {
  transform: translateY(0);
  transition: transform .24s ease, background .9s ease, border-color .9s ease;
}

.torq-chat__messages {
  width: min(100%, 980px);
  box-sizing: border-box;
  margin: 14px auto 0;
  padding: 2px clamp(4px, .9vw, 14px) 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}

.torq-chat-message {
  --message-tone: rgba(255, 255, 255, .42);
  position: relative;
  width: fit-content;
  max-width: min(82%, 48rem);
  padding: 10px 12px 11px;
  display: block;
  align-self: flex-start;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .052), rgba(255, 255, 255, .024)),
    rgba(8, 13, 22, .42);
  border: 1px solid rgba(255, 255, 255, .065);
  border-left: 2px solid rgba(255, 255, 255, .16);
  border-radius: 4px;
  box-shadow: none;
}

.torq-chat-message::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(circle at 0 50%, color-mix(in oklab, var(--message-tone) 24%, transparent), transparent 38%);
}

.torq-chat-message.is-vip {
  --message-tone: #ff7a18;
  background:
    linear-gradient(90deg, rgba(255, 122, 24, .32), rgba(47, 182, 255, .12) 68%),
    rgba(255, 122, 24, .10);
  border-color: rgba(255, 122, 24, .32);
  border-left-color: rgba(255, 122, 24, .96);
  box-shadow:
    0 14px 34px rgba(255, 122, 24, .14),
    inset 0 0 0 1px rgba(255, 184, 0, .12);
}

.torq-chat-message.is-club {
  --message-tone: #3f8f8b;
  background:
    linear-gradient(135deg, rgba(63, 143, 139, .17), rgba(255, 255, 255, .026) 70%),
    rgba(11, 30, 31, .46);
  border-color: rgba(88, 176, 169, .22);
  border-left-color: rgba(88, 176, 169, .72);
  box-shadow: inset 0 0 0 1px rgba(88, 176, 169, .08);
}

.torq-chat-message.is-club.is-you {
  background:
    linear-gradient(225deg, rgba(63, 143, 139, .19), rgba(255, 255, 255, .026) 70%),
    rgba(11, 30, 31, .50);
  border-left-color: rgba(255, 255, 255, .07);
  border-right-color: rgba(88, 176, 169, .72);
}

.torq-chat-message.is-admin {
  --message-tone: #ff4040;
  background:
    linear-gradient(135deg, rgba(255, 64, 64, .18), rgba(255, 255, 255, .026) 70%),
    rgba(42, 12, 14, .48);
  border-color: rgba(255, 74, 74, .26);
  border-left-color: rgba(255, 74, 74, .78);
}

.torq-chat-message.is-admin.is-you {
  background:
    linear-gradient(225deg, rgba(255, 64, 64, .20), rgba(255, 255, 255, .026) 70%),
    rgba(42, 12, 14, .52);
  border-left-color: rgba(255, 255, 255, .07);
  border-right-color: rgba(255, 74, 74, .78);
}

.torq-chat-message.is-vip::before,
.torq-chat-message.is-you::before,
.torq-chat-message.is-club::before,
.torq-chat-message.is-admin::before {
  opacity: .52;
}

.torq-chat-message.is-you {
  --message-tone: #2fb6ff;
  align-self: flex-end;
  background:
    linear-gradient(225deg, rgba(47, 182, 255, .17), rgba(255, 255, 255, .026) 70%),
    rgba(8, 24, 38, .46);
  border-left-width: 1px;
  border-left-color: rgba(255, 255, 255, .07);
  border-right: 2px solid rgba(47, 182, 255, .74);
}

.torq-chat-message.is-you::before {
  background: radial-gradient(circle at 100% 50%, rgba(47, 182, 255, .24), transparent 38%);
}

.torq-chat-message.is-system {
  --message-tone: #8ad8a8;
  width: min(100%, 560px);
  align-self: center;
  background:
    linear-gradient(90deg, rgba(138, 216, 168, .14), rgba(255, 255, 255, .035)),
    rgba(255, 255, 255, .045);
  border-left-color: rgba(138, 216, 168, .78);
}

.torq-chat-message.is-error {
  --message-tone: #ff6262;
  background:
    linear-gradient(90deg, rgba(255, 98, 98, .18), rgba(255, 255, 255, .035)),
    rgba(255, 255, 255, .045);
  border-left-color: rgba(255, 98, 98, .84);
}

.torq-chat-message.is-system::before {
  opacity: .45;
}

.torq-chat-message > span:not(.torq-chat-message__meta) {
  position: relative;
  z-index: 1;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, .58);
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.torq-chat-message__meta strong {
  flex: 0 1 auto;
  color: rgba(255, 255, 255, .86);
}

.torq-profile-link {
  color: inherit;
  text-decoration: none;
}

.torq-profile-link:hover,
.torq-profile-link:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  outline: none;
}

.torq-chat-author-link {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
  white-space: nowrap;
}

.torq-chat-message__meta {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  margin: 0 0 7px;
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, .58);
  font-size: 11px;
  font-weight: 1000;
  line-height: 1.1;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.torq-chat-message__scope {
  flex: 0 0 auto;
  margin: 0;
  padding: 1px 5px;
  display: inline-flex;
  align-items: center;
  color: rgba(198, 237, 232, .88);
  background: rgba(63, 143, 139, .14);
  border: 1px solid rgba(88, 176, 169, .24);
  border-radius: 2px;
  font-size: 8px;
  line-height: 1.1;
  letter-spacing: .12em;
}

.torq-chat-message.is-you .torq-chat-message__meta {
  margin-left: auto;
  justify-content: flex-end;
  text-align: right;
}

.torq-chat-message.is-admin .torq-chat-message__scope {
  color: rgba(255, 210, 210, .94);
  background: rgba(255, 64, 64, .15);
  border-color: rgba(255, 74, 74, .28);
}

.torq-chat-message.is-you .torq-chat-message__meta strong {
  color: rgba(145, 220, 255, .98);
}

.torq-chat-message.is-vip > span:not(.torq-chat-message__meta),
.torq-chat-message.is-vip .torq-chat-message__meta {
  color: rgba(255, 180, 120, .96);
}

.torq-chat-message.is-club > span:not(.torq-chat-message__meta),
.torq-chat-message.is-club .torq-chat-message__meta {
  color: rgba(190, 230, 226, .98);
}

.torq-chat-message.is-admin > span:not(.torq-chat-message__meta),
.torq-chat-message.is-admin .torq-chat-message__meta {
  color: rgba(255, 174, 174, .98);
}

.torq-chat-message.is-you > span:not(.torq-chat-message__meta),
.torq-chat-message.is-you .torq-chat-message__meta {
  color: rgba(145, 220, 255, .96);
}

.torq-chat-message.is-system > span:not(.torq-chat-message__meta),
.torq-chat-message.is-system .torq-chat-message__meta {
  color: rgba(179, 236, 199, .96);
}

.torq-chat-message.is-error > span:not(.torq-chat-message__meta),
.torq-chat-message.is-error .torq-chat-message__meta {
  color: rgba(255, 170, 170, .96);
}

.torq-chat-message p {
  position: relative;
  z-index: 1;
  max-width: 100%;
  margin: 0;
  color: rgba(255, 255, 255, .82);
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.torq-chat-message p + p {
  margin-top: 7px;
}

.torq-chat-date-divider {
  align-self: stretch;
  min-height: 30px;
  margin: 4px 0 2px;
  display: grid;
  grid-template-columns: minmax(26px, 1fr) auto minmax(26px, 1fr);
  gap: 10px;
  align-items: center;
  color: rgba(255, 255, 255, .50);
  font-size: 10px;
  font-weight: 1000;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.torq-chat-date-divider::before,
.torq-chat-date-divider::after {
  content: "";
  height: 2px;
  min-width: 0;
  background:
    linear-gradient(90deg, transparent, rgba(255, 122, 24, .72) 44%, rgba(255, 184, 0, .78));
  box-shadow: 0 0 18px rgba(255, 122, 24, .22);
}

.torq-chat-date-divider::after {
  background:
    linear-gradient(90deg, rgba(255, 184, 0, .78), rgba(255, 122, 24, .72) 56%, transparent);
}

.torq-chat-date-divider span {
  min-width: 0;
  color: inherit;
  white-space: nowrap;
}

.torq-stream-chat__list .torq-chat-date-divider {
  min-height: 20px;
  margin: 1px 0;
  gap: 6px;
  font-size: 8px;
}

.torq-stream-chat__list .torq-chat-date-divider::before,
.torq-stream-chat__list .torq-chat-date-divider::after {
  height: 1px;
  box-shadow: 0 0 10px rgba(255, 122, 24, .18);
}

.torq-chat-admin-menu {
  position: fixed;
  z-index: 1020;
  width: 236px;
  padding: 6px;
  display: grid;
  gap: 3px;
  background: rgba(12, 14, 18, .96);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 18px 46px rgba(0, 0, 0, .38);
}

.torq-chat-admin-menu[hidden] {
  display: none;
}

.torq-chat-admin-menu button {
  width: 100%;
  padding: 9px 10px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, .82);
  font-size: 12px;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.torq-chat-admin-menu button:hover,
.torq-chat-admin-menu button:focus-visible {
  background: rgba(255, 255, 255, .08);
  outline: 0;
}

.torq-chat-compose {
  margin-top: 14px;
  padding-top: 14px;
  display: grid;
  grid-template-columns: minmax(88px, 112px) minmax(0, 1fr) auto;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, .09);
}

.torq-chat-compose > label,
.torq-stream-chat__compose > label,
.torq-chat-modal__compose > label,
.torq-chat-target label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.torq-chat-target {
  position: relative;
  min-width: 0;
  display: block;
}

.torq-chat-target::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 9px;
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  color: rgba(255, 255, 255, .62);
  pointer-events: none;
  transform: translateY(-66%) rotate(45deg);
}

.torq-chat-target select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0 24px 0 10px;
  appearance: none;
  color: rgba(255, 255, 255, .92);
  background:
    linear-gradient(135deg, rgba(63, 143, 139, .14), rgba(47, 182, 255, .05)),
    rgba(6, 10, 18, .64);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 0;
  font: inherit;
  font-size: 12px;
  font-weight: 1000;
  cursor: pointer;
  outline: none;
}

.torq-chat-target select:disabled {
  cursor: default;
  opacity: .72;
}

.torq-chat-target select:focus {
  border-color: rgba(88, 176, 169, .52);
  box-shadow: 0 0 0 1px rgba(88, 176, 169, .16), 0 0 22px rgba(88, 176, 169, .10);
}

.torq-chat-compose input {
  min-width: 0;
  min-height: 44px;
  padding: 0 14px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .035)),
    rgba(6, 10, 18, .56);
  border: 1px solid rgba(255, 255, 255, .12);
  font: inherit;
  font-size: 13px;
  font-weight: 850;
}

.torq-chat-compose input::placeholder {
  color: rgba(255, 255, 255, .44);
}

.torq-chat-compose input:focus {
  border-color: rgba(47, 182, 255, .56);
  box-shadow: 0 0 0 1px rgba(47, 182, 255, .18), 0 0 24px rgba(47, 182, 255, .16);
  outline: none;
}

.torq-chat-compose button {
  min-width: 112px;
  min-height: 44px;
  padding: 0 16px;
  color: #fff;
  background: linear-gradient(110deg, #159dff, #16c6b7);
  border: 0;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  font: inherit;
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: .10em;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter .18s ease, transform .18s ease;
}

.torq-chat-compose button:hover,
.torq-chat-compose button:focus-visible {
  filter: brightness(1.12);
  transform: translateY(-1px);
  outline: none;
}

/* Home scene */
.torq-menu-grid {
  --tile-row-size: 152px;
  position: relative;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(170px, 1fr));
  grid-auto-rows: 152px;
  gap: 10px;
  padding: 8px;
  align-content: center;
}

.torq-tile {
  --tile-label-size: clamp(10px, min(.8vw, calc(var(--tile-row-size, 152px) * .085)), 13px);
  --tile-title-size: clamp(25px, min(2.65vw, calc(var(--tile-row-size, 152px) * .32)), 48px);
  --tile-note-size: clamp(12px, min(.96vw, calc(var(--tile-row-size, 152px) * .102)), 15px);
  position: relative;
  min-width: 0;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .025)),
    rgba(6, 10, 18, .84);
  border: 1px solid rgba(0, 0, 0, .72);
  box-shadow: 0 18px 54px rgba(0, 0, 0, .34);
  cursor: pointer;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.torq-tile:not(.torq-tile--hero):not(.torq-tile--home-chat) {
  align-items: flex-start;
  text-align: left;
}

@supports (container-type: size) and (font-size: 1cqb) {
  @media (min-width: 761px) {
    .torq-tile:not(.torq-tile--hero):not(.torq-tile--home-chat) {
      container-type: size;
      --tile-label-size: clamp(10px, min(2.75cqi, 8.6cqb), 13px);
      --tile-title-size: clamp(19px, min(11cqi, 36cqb), 48px);
      --tile-note-size: clamp(11px, min(3.25cqi, 10cqb), 15px);
    }
  }
}

.torq-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .28), transparent 40%),
    repeating-linear-gradient(115deg, transparent 0 18px, rgba(255, 255, 255, .08) 19px 20px);
  transition: opacity .18s ease;
}

.torq-tile:hover,
.torq-tile:focus-visible {
  z-index: 20;
  transform: translateY(-5px) scale(1.012);
  border-color: var(--accent);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, .36),
    inset 0 0 0 3px var(--accent),
    0 0 0 1px rgba(255, 122, 24, .18);
  outline: none;
}

.torq-tile:hover::before,
.torq-tile:focus-visible::before {
  opacity: 1;
}

.torq-tile--hero {
  grid-column: 1 / span 2;
  grid-row: 1 / span 2;
  min-height: 314px;
  justify-content: flex-start;
  background:
    linear-gradient(135deg, rgba(255, 111, 0, .96) 0%, rgba(255, 61, 92, .88) 58%, rgba(6, 10, 18, .18) 100%),
    rgba(6, 10, 18, .84);
  box-shadow:
    0 24px 72px rgba(0, 0, 0, .40),
    0 0 44px rgba(255, 122, 24, .18);
}

.torq-tile--hero.is-quick-ready {
  background:
    linear-gradient(135deg, rgba(255, 111, 0, .96) 0%, rgba(255, 61, 92, .88) 58%, rgba(6, 10, 18, .18) 100%),
    rgba(6, 10, 18, .84);
}

.torq-tile--hero.is-quick-return {
  background:
    linear-gradient(135deg, #007f3e 0%, #00b85a 48%, #004f2a 100%),
    #006d37;
}

.torq-tile--hero.is-quick-wait {
  cursor: not-allowed;
  background:
    linear-gradient(135deg, rgba(255, 184, 0, .90) 0%, rgba(255, 122, 24, .62) 56%, rgba(6, 10, 18, .26) 100%),
    rgba(6, 10, 18, .84);
}

.torq-tile--hero.is-quick-loading {
  background:
    linear-gradient(135deg, rgba(255, 122, 24, .72) 0%, rgba(255, 184, 0, .34) 58%, rgba(6, 10, 18, .30) 100%),
    rgba(6, 10, 18, .84);
}

.torq-tile--hero.is-quick-danger {
  background:
    linear-gradient(135deg, rgba(255, 77, 77, .96) 0%, rgba(156, 28, 28, .74) 58%, rgba(6, 10, 18, .30) 100%),
    rgba(6, 10, 18, .84);
}

.torq-tile--hero.is-quick-disabled {
  cursor: not-allowed;
  background:
    linear-gradient(135deg, rgba(92, 101, 116, .90) 0%, rgba(50, 56, 68, .72) 58%, rgba(6, 10, 18, .34) 100%),
    rgba(6, 10, 18, .84);
}

.torq-tile--hero:is(.is-quick-disabled, .is-quick-wait):hover,
.torq-tile--hero:is(.is-quick-disabled, .is-quick-wait):focus-visible {
  transform: none;
  border-color: rgba(255, 255, 255, .18);
  box-shadow:
    0 18px 54px rgba(0, 0, 0, .34),
    inset 0 0 0 1px rgba(255, 255, 255, .10);
}

.torq-tile--hero:is(.is-quick-disabled, .is-quick-wait) .torq-tile__media img {
  filter: grayscale(.72) drop-shadow(0 28px 26px rgba(0, 0, 0, .34));
}

.torq-tile--accent {
  grid-column: 3;
  grid-row: 1;
  background:
    linear-gradient(135deg, rgba(255, 122, 24, .90) 0%, rgba(255, 184, 0, .72) 58%, rgba(6, 10, 18, .18) 100%),
    rgba(6, 10, 18, .84);
}

.torq-tile--blue {
  background:
    linear-gradient(135deg, rgba(34, 168, 255, .88) 0%, rgba(62, 235, 170, .56) 56%, rgba(6, 10, 18, .18) 100%),
    rgba(6, 10, 18, .84);
}

.torq-tile--promo {
  grid-column: 1;
  grid-row: 3;
  background:
    linear-gradient(135deg, rgba(255, 196, 38, .92) 0%, rgba(78, 226, 158, .42) 54%, rgba(6, 10, 18, .18) 100%),
    rgba(6, 10, 18, .84);
}

.torq-tile--device {
  grid-column: 3;
  grid-row: 3;
  background:
    linear-gradient(135deg, rgba(47, 182, 255, .62) 0%, rgba(22, 68, 102, .62) 58%, rgba(6, 10, 18, .18) 100%),
    rgba(6, 10, 18, .84);
}

.torq-tile--tournament {
  grid-column: 4;
  grid-row: 3;
  background:
    linear-gradient(135deg, rgba(255, 122, 24, .70) 0%, rgba(255, 184, 0, .30) 56%, rgba(6, 10, 18, .18) 100%),
    rgba(6, 10, 18, .84);
}

.torq-tile--pilot {
  grid-column: 1 / span 2;
  grid-row: 3;
  background:
    linear-gradient(135deg, rgba(116, 92, 255, .28) 0%, rgba(49, 59, 98, .34) 48%, rgba(6, 10, 18, .24) 100%),
    rgba(6, 10, 18, .84);
}

.torq-tile--rivals {
  grid-column: 3 / span 2;
  grid-row: 2;
  background:
    linear-gradient(135deg, #007f3e 0%, #00b85a 48%, #004f2a 100%),
    #006d37;
}

.torq-tile--clubs {
  grid-column: 4;
  grid-row: 1;
  background:
    linear-gradient(135deg, rgba(255, 77, 77, .82) 0%, rgba(184, 28, 48, .62) 54%, rgba(6, 10, 18, .18) 100%),
    rgba(6, 10, 18, .84);
}

.torq-tile--home-chat {
  grid-column: 5;
  grid-row: 1 / span 3;
  align-self: stretch;
  height: 100%;
  min-height: 0;
  border-radius: 0;
  justify-content: flex-start;
  text-align: left;
  font: inherit;
  cursor: pointer;
  background:
    linear-gradient(135deg, rgba(47, 182, 255, .56) 0%, rgba(48, 58, 86, .44) 48%, rgba(6, 10, 18, .22) 100%),
    rgba(6, 10, 18, .84);
}

.torq-home-chat-preview {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  margin: 30px 0 8px;
  min-height: 0;
  max-height: 100%;
  overflow-y: auto;
  padding: 8px 6px 8px 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  background:
    linear-gradient(135deg, rgba(5, 8, 14, .07), rgba(5, 8, 14, .025)),
    rgba(5, 8, 14, .025);
  border: 1px solid rgba(255, 255, 255, .024);
  border-left-color: rgba(47, 182, 255, .075);
  border-right-color: rgba(47, 182, 255, .06);
  scrollbar-color: rgba(255, 255, 255, .36) rgba(255, 255, 255, .08);
  scrollbar-width: thin;
}

.torq-home-chat-preview::-webkit-scrollbar {
  width: 4px;
}

.torq-home-chat-preview::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, .08);
}

.torq-home-chat-preview::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .34);
}

.torq-home-chat-preview__item {
  flex: 0 0 auto;
  min-width: 0;
  max-width: 94%;
  padding: 5px 8px;
  align-self: flex-start;
  background: rgba(5, 8, 14, .48);
  border-left: 2px solid rgba(47, 182, 255, .62);
}

.torq-home-chat-preview__item.is-you {
  align-self: flex-end;
  text-align: right;
  background:
    linear-gradient(90deg, rgba(47, 182, 255, .14), rgba(5, 8, 14, .38)),
    rgba(5, 8, 14, .42);
  border-left-color: rgba(255, 255, 255, .08);
  border-right: 2px solid rgba(47, 182, 255, .82);
}

.torq-home-chat-preview__item.is-vip {
  border-left-color: var(--accent);
}

.torq-home-chat-preview__item.is-club {
  background:
    linear-gradient(90deg, rgba(63, 143, 139, .16), rgba(5, 8, 14, .40)),
    rgba(5, 8, 14, .44);
  border-left-color: rgba(88, 176, 169, .78);
}

.torq-home-chat-preview__item.is-club.is-you {
  border-right-color: rgba(88, 176, 169, .80);
}

.torq-home-chat-preview__item.is-admin {
  background:
    linear-gradient(90deg, rgba(255, 64, 64, .18), rgba(5, 8, 14, .40)),
    rgba(5, 8, 14, .44);
  border-left-color: rgba(255, 74, 74, .82);
}

.torq-home-chat-preview__item.is-vip.is-you {
  border-right-color: var(--accent);
}

.torq-home-chat-preview__item span,
.torq-home-chat-preview__empty {
  display: block;
  color: rgba(255, 255, 255, .58);
  font-size: 9px;
  font-weight: 1000;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.torq-home-chat-preview__meta,
.torq-chat-message__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.torq-chat-message__meta {
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
}

.torq-home-chat-preview .torq-home-chat-preview__meta {
  margin-bottom: 0;
  color: rgba(255, 255, 255, .58);
  font-size: 9px;
  font-weight: 1000;
  letter-spacing: .08em;
  line-height: 1.15;
  text-transform: uppercase;
}

.torq-home-chat-preview__item .torq-home-chat-preview__meta {
  display: flex;
}

.torq-home-chat-preview__stamp {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.torq-home-chat-preview__item .torq-home-chat-preview__scope {
  flex: 0 0 auto;
  padding: 1px 3px;
  display: inline-flex;
  align-items: center;
  color: rgba(202, 238, 234, .94);
  background: rgba(63, 143, 139, .18);
  border: 1px solid rgba(88, 176, 169, .24);
  border-radius: 2px;
  font-size: 8px;
  line-height: 1;
  letter-spacing: .10em;
}

.torq-home-chat-preview__meta strong,
.torq-chat-message__meta strong {
  min-width: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, .92);
  font: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.torq-home-chat-preview__meta time,
.torq-chat-message__meta time {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, .44);
  font: inherit;
  letter-spacing: .04em;
}

.torq-chat-message.is-vip .torq-chat-message__meta strong {
  color: rgba(255, 190, 132, .98);
}

.torq-chat-message.is-you .torq-chat-message__meta strong {
  color: rgba(145, 220, 255, .98);
}

.torq-chat-message.is-club .torq-chat-message__meta strong {
  color: rgba(202, 238, 234, .98);
}

.torq-chat-message.is-admin .torq-chat-message__meta strong {
  color: rgba(255, 190, 190, .98);
}

.torq-home-chat-preview__meta strong,
.torq-home-chat-preview__meta time {
  font-size: inherit;
  line-height: inherit;
}

.torq-tile .torq-home-chat-preview__meta strong {
  display: block;
  font-size: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  text-transform: uppercase;
}

.torq-tile--home-chat > strong {
  position: absolute;
  top: 22px;
  right: 34px;
  z-index: 1;
  margin: 0;
  text-align: right;
}

.torq-tile--home-chat .torq-home-chat-preview__meta strong,
body.is-home-scene .torq-tile--home-chat .torq-home-chat-preview__meta strong {
  display: block;
  font-size: 9px;
  line-height: 1.15;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.torq-tile--home-chat .torq-home-chat-preview__meta time,
body.is-home-scene .torq-tile--home-chat .torq-home-chat-preview__meta time {
  font-size: 9px;
  line-height: 1.15;
}

.torq-home-chat-preview__item.is-you .torq-home-chat-preview__meta {
  justify-content: flex-end;
  text-align: right;
}

.torq-home-chat-preview__item.is-you .torq-home-chat-preview__meta strong {
  color: rgba(175, 230, 255, .98);
}

.torq-home-chat-preview__item p {
  margin: 2px 0 0;
  overflow: hidden;
  color: rgba(255, 255, 255, .88);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.torq-home-chat-preview__item.torq-chat-message--loading {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  align-self: stretch;
  padding: 7px 8px;
}

.torq-home-chat-preview__item.torq-chat-message--loading .torq-loading-skeleton--wide {
  width: 100%;
}

.torq-home-chat-preview__item.torq-chat-message--loading .torq-loading-skeleton--short {
  width: 44%;
}

.torq-tile--home-chat > small {
  margin-top: auto;
}

.torq-tile.is-home-live {
  border-color: rgba(0, 0, 0, .72);
  box-shadow:
    0 18px 54px rgba(0, 0, 0, .34),
    inset 0 0 0 1px rgba(255, 255, 255, .10);
}

.torq-tile.is-home-live small {
  color: rgba(231, 255, 243, .92);
}

.torq-tile.is-home-live:hover,
.torq-tile.is-home-live:focus-visible {
  border-color: var(--accent);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, .36),
    inset 0 0 0 3px var(--accent),
    0 0 0 1px rgba(255, 122, 24, .18);
}

.torq-tile.is-home-empty {
  background:
    linear-gradient(135deg, rgba(120, 130, 148, .38) 0%, rgba(50, 56, 68, .34) 58%, rgba(6, 10, 18, .22) 100%),
    rgba(6, 10, 18, .84);
}

.torq-tile.is-home-loading {
  cursor: wait;
  border-left: 3px solid rgba(255, 122, 24, .64);
  background:
    linear-gradient(135deg, rgba(255, 122, 24, .14) 0%, rgba(255, 255, 255, .045) 54%, rgba(255, 184, 0, .08) 100%),
    rgba(6, 10, 18, .88);
}

.torq-tile.is-home-loading::before {
  opacity: .34;
  background:
    linear-gradient(90deg, rgba(255, 122, 24, .12), transparent 36%),
    repeating-linear-gradient(118deg, transparent 0 18px, rgba(255, 255, 255, .06) 19px 21px);
  background-position: 0 0, 0 0;
  animation: torq-dashboard-loading-stripes 1.25s linear infinite;
}

.torq-tile.is-home-loading::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  height: 5px;
  overflow: hidden;
  background:
    linear-gradient(90deg, var(--accent), var(--accent-2)) -46% 0 / 46% 100% no-repeat,
    rgba(255, 255, 255, .10);
  animation: torq-dashboard-tile-track 1.05s ease-in-out infinite;
}

.torq-tile--home-chat.is-home-loading::before {
  opacity: 0;
  animation: none;
}

.torq-tile--home-chat.is-home-loading::after {
  content: none;
  animation: none;
}

@keyframes torq-dashboard-tile-track {
  0% { background-position: -46% 0, 0 0; }
  100% { background-position: 146% 0, 0 0; }
}

.torq-tile__media {
  position: absolute;
  inset: 8px -4px auto auto;
  width: 68%;
  max-width: 620px;
  pointer-events: none;
}

.torq-tile__media img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 28px 26px rgba(0, 0, 0, .34));
  transform: translateX(12px) rotate(-4deg) scale(1.08);
}

.torq-tile__content,
.torq-tile > span,
.torq-tile > strong,
.torq-tile > small {
  position: relative;
  z-index: 1;
  max-width: 100%;
}

.torq-tile--hero .torq-tile__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.torq-tile--hero .torq-tile__content small {
  margin-top: auto;
}

.torq-tile span,
.torq-tile small {
  display: block;
}

.torq-tile span {
  margin-bottom: 8px;
  color: rgba(255, 255, 255, .78);
  font-size: var(--tile-label-size);
  line-height: 1.1;
  font-weight: 1000;
  letter-spacing: .13em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.torq-tile strong {
  display: block;
  font-size: var(--tile-title-size);
  line-height: .92;
  letter-spacing: -.045em;
  font-weight: 1000;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.torq-tile--hero strong {
  max-width: 430px;
  font-size: clamp(42px, 4.8vw, 76px);
  line-height: .82;
}

.torq-tile small {
  margin-top: 10px;
  color: rgba(255, 255, 255, .78);
  font-size: var(--tile-note-size);
  line-height: 1.22;
  font-weight: 850;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.torq-tile.torq-tile--home-chat > strong {
  position: absolute;
  top: 22px;
  right: 34px;
  z-index: 2;
  margin: 0;
  text-align: right;
}

.torq-tile__button {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #101828;
  background: #fff;
  font-size: 18px;
  font-weight: 1000;
  line-height: 1;
  text-align: center;
}

.torq-tile--hero.is-quick-return .torq-tile__button {
  color: #07120e;
  background: #b8ffd9;
}

.torq-tile--hero.is-quick-danger .torq-tile__button {
  color: #fff;
  background: #9c1c1c;
}

.torq-tile--hero.is-quick-disabled .torq-tile__button,
.torq-tile--hero.is-quick-wait .torq-tile__button {
  color: rgba(255, 255, 255, .78);
  background: rgba(16, 24, 40, .56);
}

.torq-balance-modal[hidden] {
  display: none;
}

.torq-balance-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
}

/* Пока открыта любая модалка — блокируем прокрутку страницы под ней. */
html.torq-modal-open,
html.torq-modal-open body {
  overflow: hidden;
  overscroll-behavior: contain;
}

.torq-balance-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 11, 18, .58);
  backdrop-filter: blur(14px);
}

.torq-balance-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  /* Длинная модалка (согласие на аренду) не помещается в горизонтальной/низкой
     мобильной раскладке — даём ей собственную прокрутку вместо обрезки. */
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 28px;
  display: grid;
  gap: 18px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 122, 24, .10), rgba(255, 184, 0, .06)),
    rgba(14, 17, 28, .96);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .42);
}

.torq-balance-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, .82);
  background: rgba(255, 255, 255, .08);
  border: 0;
  font-size: 26px;
  cursor: pointer;
}

.torq-balance-modal__icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: #101828;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  font-size: 28px;
  font-weight: 1000;
}

.torq-balance-modal__eyebrow,
.torq-balance-modal__custom span,
.torq-balance-modal__dialog small {
  color: rgba(255, 255, 255, .62);
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.torq-balance-modal__dialog h2 {
  margin: 6px 56px 0 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: .95;
  letter-spacing: -.045em;
  text-transform: uppercase;
}

.torq-balance-modal__dialog p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, .74);
  font-size: 16px;
  line-height: 1.42;
}

.torq-balance-modal__presets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.torq-balance-modal__presets button,
.torq-balance-modal__submit {
  min-height: 46px;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  font: inherit;
  font-size: 12px;
  font-weight: 1000;
  cursor: pointer;
}

.torq-balance-modal__presets button:hover,
.torq-balance-modal__presets button:focus-visible {
  border-color: var(--accent-2);
  outline: none;
}

.torq-balance-modal__custom {
  display: grid;
  gap: 8px;
}

.torq-balance-modal__custom input {
  min-height: 48px;
  padding: 0 14px;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  font: inherit;
  font-weight: 900;
}

.torq-balance-modal__submit {
  color: #101828;
  background: linear-gradient(110deg, var(--accent-2), var(--accent));
  border: 0;
}

.torq-rent-consent-modal {
  z-index: 1010;
}

.torq-rent-consent-modal .torq-balance-modal__dialog {
  width: min(640px, 100%);
  gap: 16px;
}

.torq-rent-consent__summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.torq-rent-consent__summary div {
  min-width: 0;
  padding: 12px;
  display: grid;
  gap: 5px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .025)),
    rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .10);
}

.torq-rent-consent__summary span,
.torq-rent-consent__links a {
  color: rgba(255, 255, 255, .56);
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: 0;
  text-transform: uppercase;
}

.torq-rent-consent__summary strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #fff;
  font-size: 15px;
  line-height: 1.18;
}

.torq-rent-consent__check {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  color: rgba(255, 255, 255, .86);
  background:
    linear-gradient(135deg, rgba(255, 184, 0, .14), rgba(255, 122, 24, .07)),
    rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 184, 0, .20);
  cursor: pointer;
}

.torq-rent-consent__check input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--accent-2);
  cursor: pointer;
}

.torq-rent-consent__check span {
  min-width: 0;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.42;
}

/* Подсветка, когда пользователь жмёт «Оплатить аренду» без согласия. */
.torq-rent-consent__check--nudge {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 2px rgba(255, 184, 0, .45);
  animation: torq-rent-consent-nudge .42s ease;
}

@keyframes torq-rent-consent-nudge {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

@media (prefers-reduced-motion: reduce) {
  .torq-rent-consent__check--nudge {
    animation: none;
  }
}

.torq-rent-consent__links {
  margin-top: -2px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.torq-rent-consent__links a {
  min-height: 34px;
  padding: 8px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #101828;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
}

.torq-rent-consent__links a:hover,
.torq-rent-consent__links a:focus-visible {
  filter: brightness(1.08);
  outline: none;
}

.torq-rent-consent-modal .torq-balance-modal__danger:disabled {
  cursor: not-allowed;
  opacity: .72;
  filter: grayscale(.24) brightness(.78);
}

@media (max-width: 760px) {
  .torq-rent-consent-modal .torq-balance-modal__dialog {
    max-height: calc(100svh - 24px);
    overflow-y: auto;
    padding: 20px;
  }

  .torq-rent-consent__summary {
    grid-template-columns: 1fr;
  }

  .torq-rent-consent-modal .torq-balance-modal__actions {
    flex-direction: column-reverse;
  }

  .torq-rent-consent-modal .torq-balance-modal__actions button {
    width: 100%;
  }
}

.torq-chat-modal__dialog {
  width: min(760px, 100%);
  max-height: min(780px, calc(100svh - 48px));
  padding: 22px;
  gap: 14px;
  grid-template-rows: auto minmax(280px, 1fr) auto;
  background:
    linear-gradient(135deg, rgba(47, 182, 255, .12), rgba(255, 122, 24, .06)),
    rgba(12, 15, 24, .98);
  border-radius: 2px;
}

.torq-chat-modal__hero {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 52px;
}

.torq-chat-modal__hero .torq-balance-modal__icon {
  flex: 0 0 auto;
  color: #07111f;
  background: linear-gradient(135deg, var(--accent), #ffb800);
  border-radius: 2px;
}

.torq-chat-modal .torq-balance-modal__close {
  border-radius: 2px;
}

.torq-chat-modal__hero h2 {
  margin-right: 0;
}

.torq-chat-modal__messages {
  min-height: 260px;
  max-height: min(54svh, 460px);
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background:
    linear-gradient(135deg, rgba(47, 182, 255, .055), rgba(255, 122, 24, .018)),
    rgba(5, 8, 14, .58);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 2px;
  scrollbar-color: rgba(255, 255, 255, .34) rgba(255, 255, 255, .06);
  scrollbar-width: thin;
}

.torq-chat-modal__messages::-webkit-scrollbar {
  width: 6px;
}

.torq-chat-modal__messages::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, .06);
}

.torq-chat-modal__messages::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .32);
  border-radius: 2px;
}

.torq-chat-modal .torq-chat-message {
  --message-tone: #19aee5;
  max-width: min(74%, 500px);
  padding: 10px 12px;
  background:
    linear-gradient(135deg, rgba(25, 174, 229, .12), rgba(255, 255, 255, .035)),
    rgba(12, 18, 31, .74);
  border-color: rgba(255, 255, 255, .075);
  border-left-color: rgba(25, 174, 229, .64);
  border-radius: 2px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .22);
}

.torq-chat-modal .torq-chat-message.is-you {
  background:
    linear-gradient(135deg, rgba(25, 174, 229, .20), rgba(255, 255, 255, .045)),
    rgba(10, 24, 38, .78);
  border-left-color: rgba(255, 255, 255, .06);
  border-right-color: rgba(25, 174, 229, .72);
}

.torq-chat-modal .torq-chat-message.is-you::before {
  background: radial-gradient(circle at 100% 50%, rgba(25, 174, 229, .24), transparent 38%);
}

.torq-chat-modal .torq-chat-message.is-vip {
  --message-tone: #ff7a18;
  background:
    linear-gradient(135deg, rgba(255, 122, 24, .18), rgba(255, 255, 255, .035)),
    rgba(32, 20, 12, .78);
  border-color: rgba(255, 122, 24, .24);
  border-left-color: rgba(255, 122, 24, .78);
}

.torq-chat-modal .torq-chat-message.is-club {
  --message-tone: #3f8f8b;
  background:
    linear-gradient(135deg, rgba(63, 143, 139, .16), rgba(255, 255, 255, .035)),
    rgba(12, 28, 30, .78);
  border-color: rgba(88, 176, 169, .20);
  border-left-color: rgba(88, 176, 169, .72);
}

.torq-chat-modal .torq-chat-message.is-club.is-you {
  border-right-color: rgba(88, 176, 169, .72);
}

.torq-chat-modal .torq-chat-message.is-admin {
  --message-tone: #ff4040;
  background:
    linear-gradient(135deg, rgba(255, 64, 64, .18), rgba(255, 255, 255, .035)),
    rgba(38, 12, 12, .78);
  border-color: rgba(255, 74, 74, .24);
  border-left-color: rgba(255, 74, 74, .78);
}

.torq-chat-modal .torq-chat-message.is-system {
  --message-tone: #8ad8a8;
  border-left-color: rgba(138, 216, 168, .78);
}

.torq-chat-modal .torq-chat-message.is-error {
  --message-tone: #ff6262;
  border-left-color: rgba(255, 98, 98, .84);
}

.torq-chat-modal .torq-chat-message span {
  margin-bottom: 6px;
  font-size: 9px;
  line-height: 1.1;
}

.torq-chat-modal .torq-chat-message p {
  color: rgba(255, 255, 255, .82);
  font-size: 12px;
  line-height: 1.28;
}

.torq-chat-modal .torq-chat-message p + p {
  margin-top: 5px;
}

.torq-chat-modal__compose {
  display: grid;
  grid-template-columns: minmax(88px, 112px) minmax(0, 1fr) auto;
  gap: 8px;
}

.torq-chat-modal__compose label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.torq-chat-modal__compose input {
  min-width: 0;
  min-height: 48px;
  padding: 0 14px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)),
    rgba(5, 8, 14, .78);
  border: 1px solid rgba(255, 255, 255, .12);
  caret-color: #2fb6ff;
  border-radius: 2px;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  outline: none;
}

.torq-chat-modal__compose .torq-chat-target select {
  min-height: 48px;
  border-radius: 2px;
}

.torq-chat-modal__compose input:focus {
  border-color: #2fb6ff;
  box-shadow:
    inset 0 0 0 1px rgba(47, 182, 255, .68),
    0 0 0 1px rgba(47, 182, 255, .18);
}

.torq-chat-modal__compose input::placeholder {
  color: rgba(47, 182, 255, .72);
}

.torq-chat-modal__compose button {
  min-height: 48px;
  padding: 0 16px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 48%),
    linear-gradient(135deg, #19aee5, #2fb6ff);
  border: 0;
  border-radius: 2px;
  font: inherit;
  font-size: 12px;
  font-weight: 1000;
  text-transform: uppercase;
  cursor: pointer;
}

.torq-balance-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.torq-balance-modal__secondary,
.torq-balance-modal__danger {
  min-height: 46px;
  padding: 0 18px;
  color: #fff;
  border: 0;
  font: inherit;
  font-size: 12px;
  font-weight: 1000;
  cursor: pointer;
}

.torq-balance-modal__secondary {
  background: rgba(255, 255, 255, .12);
}

.torq-balance-modal__danger {
  color: #101828;
  background: linear-gradient(110deg, #ffb800, #ff7a18);
}

.torq-balance-modal__secondary:hover,
.torq-balance-modal__secondary:focus-visible,
.torq-balance-modal__danger:hover,
.torq-balance-modal__danger:focus-visible {
  filter: brightness(1.08);
  outline: none;
}

.torq-balance-modal__danger:disabled {
  cursor: wait;
  filter: grayscale(.35) brightness(.84);
}

.torq-news {
  --news-tone: #ff7a18;
  --news-tone-soft: rgba(255, 77, 77, .34);
  --news-stripe-color: rgba(255, 255, 255, .10);
  --news-stripe-opacity: .28;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 0;
  background:
    radial-gradient(circle at 16% 0%, color-mix(in oklab, var(--news-tone) 34%, transparent), transparent 36%),
    linear-gradient(118deg, color-mix(in oklab, var(--news-tone) 48%, rgba(6, 10, 18, .96)) 0%, color-mix(in oklab, var(--news-tone) 18%, rgba(6, 10, 18, .96)) 42%, rgba(6, 10, 18, .98) 100%),
    rgba(6, 10, 18, .96);
  border: 1px solid rgba(255, 255, 255, .10);
  box-shadow: 0 18px 54px rgba(0, 0, 0, .34);
}

.torq-news::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: var(--news-stripe-opacity);
  pointer-events: none;
  background:
    repeating-linear-gradient(115deg, transparent 0 24px, var(--news-stripe-color) 25px 26px);
}

.torq-news::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, .22),
    inset 0 -1px 0 rgba(255, 122, 24, .26);
}

.torq-news-feature,
.torq-news-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
}

.torq-news-feature {
  z-index: 1;
  min-height: 194px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border: 0;
  background: transparent;
}

.torq-news-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .22;
  pointer-events: none;
  background:
    radial-gradient(circle at 76% 25%, rgba(255, 255, 255, .20), transparent 32%);
}

.torq-news-feature__content {
  flex: 1;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: opacity .22s ease, transform .22s ease;
}

.torq-news-feature.is-switching .torq-news-feature__content {
  opacity: 0;
  transform: translateY(8px);
}

.torq-news-feature__tag {
  position: relative;
  z-index: 1;
  width: fit-content;
  min-height: 32px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  color: #101828;
  background: #fff;
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.torq-news-feature h2,
.torq-news-feature p,
.torq-news-link {
  position: relative;
  z-index: 1;
}

.torq-news-feature h2 {
  max-width: 760px;
  margin: 15px 0 10px;
  font-size: clamp(30px, 3.4vw, 52px);
  line-height: .9;
  letter-spacing: -.052em;
  font-weight: 1000;
  text-transform: uppercase;
}

.torq-news-feature p {
  max-width: 690px;
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: 15px;
  white-space: pre-line;
}

.torq-news-link {
  width: fit-content;
  margin-top: auto;
  padding-top: 16px;
  align-self: flex-start;
  color: #fff;
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-bottom: 2px solid rgba(255, 255, 255, .72);
}

.torq-news-list {
  position: relative;
  z-index: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 18px 12px 14px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .18), rgba(255, 255, 255, .05))
    calc(100% - 7px) 12px / 2px calc(100% - 24px) no-repeat;
  border-left: 1px solid rgba(255, 255, 255, .10);
}

.torq-news-card {
  flex: 0 0 50px;
  width: 100%;
  min-height: 0;
  padding: 10px 16px;
  display: grid;
  align-content: center;
  gap: 4px;
  color: #fff;
  text-align: left;
  font: inherit;
  cursor: pointer;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)),
    rgba(6, 10, 18, .42);
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.torq-news-card:hover,
.torq-news-card:focus-visible {
  border-color: color-mix(in oklab, var(--news-tone) 38%, rgba(255, 255, 255, .14));
  background:
    linear-gradient(135deg, color-mix(in oklab, var(--news-tone) 12%, rgba(255, 255, 255, .08)), rgba(255, 255, 255, .025)),
    rgba(6, 10, 18, .52);
  outline: none;
}

.torq-news-card.is-active {
  flex-basis: 72px;
  border-color: color-mix(in oklab, var(--news-tone) 48%, rgba(255, 255, 255, .16));
  background:
    linear-gradient(135deg, color-mix(in oklab, var(--news-tone) 18%, rgba(255, 255, 255, .08)), rgba(255, 255, 255, .03)),
    rgba(6, 10, 18, .62);
  box-shadow:
    inset 0 0 0 1px color-mix(in oklab, var(--news-tone) 20%, transparent),
    0 14px 34px rgba(0, 0, 0, .24);
}

.torq-news-card span {
  display: block;
  color: rgba(255, 255, 255, .62);
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.torq-news-card strong {
  display: block;
  margin: 0;
  font-size: 14px;
  line-height: 1.08;
  font-weight: 1000;
}

.torq-news-card:not(.is-active) {
  padding-block: 9px;
}

.torq-news-card:not(.is-active) span {
  font-size: 7px;
  letter-spacing: .10em;
}

.torq-news-card:not(.is-active) strong {
  font-size: 12px;
  line-height: 1.08;
}

.torq-news-card.is-active strong {
  font-size: 15px;
  line-height: 1.08;
}

.torq-news-card.is-active span {
  font-size: 9px;
}

.torq-news.is-loading {
  --news-tone: #ff7a18;
  cursor: wait;
}

.torq-news.is-loading::before {
  opacity: .34;
  background:
    linear-gradient(90deg, rgba(255, 122, 24, .14), transparent 34%),
    repeating-linear-gradient(118deg, transparent 0 18px, rgba(255, 255, 255, .065) 19px 21px);
  background-position: 0 0, 0 0;
  animation: torq-dashboard-loading-stripes 1.25s linear infinite;
}

.torq-news.is-loading .torq-news-feature__tag,
.torq-news.is-loading .torq-news-feature h2,
.torq-news.is-loading .torq-news-feature p {
  color: transparent;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .07);
}

.torq-news.is-loading .torq-news-feature h2 {
  width: min(560px, 82%);
  min-height: 44px;
}

.torq-news.is-loading .torq-news-feature p {
  width: min(480px, 72%);
  min-height: 18px;
}

.torq-news-loading-card {
  min-height: 50px;
  padding: 10px 16px;
  display: grid;
  align-content: center;
  gap: 7px;
  background:
    linear-gradient(135deg, rgba(255, 122, 24, .10), rgba(255, 255, 255, .025)),
    rgba(6, 10, 18, .48);
  border: 1px solid rgba(255, 255, 255, .075);
}

.torq-news-loading-card .torq-loading-skeleton--wide {
  height: 14px;
}

.torq-chat-message--loading,
.torq-stream-chat__loading,
.torq-stream-lap--loading,
.torq-stream-players__loading {
  position: relative;
  overflow: hidden;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 122, 24, .10), rgba(255, 255, 255, .035) 52%, rgba(255, 184, 0, .04)),
    rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .075);
}

.torq-chat-message--loading::before,
.torq-stream-chat__loading::before,
.torq-stream-lap--loading::before,
.torq-stream-players__loading::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .40;
  background:
    linear-gradient(90deg, rgba(255, 122, 24, .13), transparent 34%),
    repeating-linear-gradient(118deg, transparent 0 16px, rgba(255, 255, 255, .065) 17px 19px);
  background-position: 0 0, 0 0;
  animation: torq-dashboard-loading-stripes 1.35s linear infinite;
}

.torq-chat-message--loading > *,
.torq-stream-chat__loading > *,
.torq-stream-lap--loading > *,
.torq-stream-players__loading > * {
  position: relative;
  z-index: 1;
}

.torq-stream-lap--loading {
  min-height: 38px;
  padding: 8px;
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1fr) 64px 34px;
  gap: 8px;
  align-items: center;
}

.torq-stream-players__loading {
  min-height: 36px;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .8fr) 44px 58px;
  gap: 10px;
  align-items: center;
}

/* Light HUD theme */
body[data-theme="light"] {
  --bg: #ffffff;
  --text: #101828;
  --hero-glow-1: rgba(255, 122, 24, .10);
  --hero-glow-2: rgba(255, 184, 0, .07);
  --hero-glow-3: rgba(8, 12, 18, .16);
}

body[data-theme="light"] .torq-page {
  color: #101828;
  background: #ffffff;
}

body[data-theme="light"] .torq-bg-video {
  background: #fff;
}

body[data-theme="light"] .torq-bg-video video {
  opacity: .58;
  filter: saturate(.86) contrast(1.08) brightness(1.10);
}

body[data-theme="light"] .torq-bg-video::after {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .50) 0%, rgba(255, 255, 255, .50) 44%, rgba(255, 255, 255, .50) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, .50), rgba(255, 255, 255, .50));
}

body[data-theme="light"] .torq-bg-shade {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .18) 0%, rgba(255, 255, 255, .08) 42%, transparent 100%),
    linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(250, 252, 255, .18)),
    radial-gradient(circle at 78% 18%, rgba(255, 122, 24, .06), transparent 32%);
}

body[data-theme="light"] .torq-location-band {
  background:
    linear-gradient(105deg, rgba(255, 46, 46, .96) 0%, rgba(176, 16, 32, .92) 56%, rgba(255, 122, 24, .68) 100%),
    #d71920;
  box-shadow:
    0 30px 90px rgba(180, 20, 28, .20),
    inset 0 0 0 1px rgba(255, 255, 255, .20);
}

body[data-theme="light"] .torq-location-band span {
  color: #fff;
}

body[data-theme="light"] .torq-page::before {
  opacity: .34;
  background:
    linear-gradient(rgba(16, 24, 40, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 24, 40, .055) 1px, transparent 1px);
}

body[data-theme="light"] .torq-brand,
body[data-theme="light"] .torq-profile,
body[data-theme="light"] .torq-player-plate,
body[data-theme="light"] .torq-club-badge,
body[data-theme="light"] .torq-wallet-button {
  color: #101828;
}

body[data-theme="light"] .torq-devices-head,
body[data-theme="light"] .torq-section-head {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .86), rgba(255, 255, 255, .54)),
    rgba(255, 255, 255, .72);
  border-color: rgba(16, 24, 40, .12);
  box-shadow: 0 18px 44px rgba(16, 24, 40, .10);
}

body[data-theme="light"] .torq-devices-back,
body[data-theme="light"] .torq-section-back {
  color: #101828;
  background:
    linear-gradient(135deg, rgba(255, 122, 24, .14), rgba(255, 255, 255, .72)),
    rgba(255, 255, 255, .82);
  border-color: rgba(16, 24, 40, .14);
  box-shadow: 0 12px 30px rgba(16, 24, 40, .10);
}

body[data-theme="light"] .torq-devices-title strong,
body[data-theme="light"] .torq-section-title strong {
  color: #101828;
}

body[data-theme="light"] .torq-devices-title > span,
body[data-theme="light"] .torq-section-title > span {
  color: rgba(16, 24, 40, .60);
}

body[data-theme="light"] .torq-brand__word {
  color: #101828;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, .76),
    0 10px 22px rgba(16, 24, 40, .14);
}

body[data-theme="light"] .torq-release-version {
  color: rgba(16, 24, 40, .64);
  background: rgba(255, 255, 255, .58);
  border-color: rgba(16, 24, 40, .16);
}

body[data-theme="light"] .torq-profile__main span,
body[data-theme="light"] .torq-club-badge span,
body[data-theme="light"] .torq-wallet-button span {
  color: rgba(16, 24, 40, .58);
}

body[data-theme="light"] .torq-wallet-button strong {
  color: #101828;
}

body[data-theme="light"] .torq-player-plate,
body[data-theme="light"] .torq-club-badge,
body[data-theme="light"] .torq-wallet-button {
  background: rgba(255, 255, 255, .54);
  border-color: rgba(16, 24, 40, .09);
  box-shadow: 0 10px 28px rgba(16, 24, 40, .10);
}

body[data-theme="light"] .torq-club-badge::before,
body[data-theme="light"] .torq-wallet-button::before {
  background: rgba(16, 24, 40, .14);
}

body[data-theme="light"] .torq-club-badge__mark {
  border-color: rgba(16, 24, 40, .14);
  box-shadow: 0 10px 24px rgba(16, 24, 40, .12);
}

body[data-theme="light"] .torq-scene-tabs {
  --torq-tabs-text: rgba(255, 255, 255, .88);
  --torq-tabs-muted: rgba(255, 122, 24, .96);
  --torq-tabs-active: #fff;
  --torq-tabs-caption: rgba(255, 122, 24, .92);
  --torq-tabs-line: rgba(255, 122, 24, .32);
}

body[data-theme="light"] .torq-rank-badge {
  color: #101828;
  background:
    linear-gradient(135deg, rgba(255, 122, 24, .16), rgba(255, 255, 255, .72)),
    rgba(255, 255, 255, .92);
  border-color: rgba(16, 24, 40, .14);
  box-shadow: 0 10px 28px rgba(16, 24, 40, .12);
}

body[data-theme="light"] .torq-level-tooltip {
  color: #101828;
  background:
    linear-gradient(135deg, rgba(255, 122, 24, .14), rgba(255, 255, 255, .78)),
    rgba(255, 255, 255, .96);
  border-color: rgba(16, 24, 40, .12);
  box-shadow: 0 18px 48px rgba(16, 24, 40, .16);
}

body[data-theme="light"] .torq-level-tooltip::before {
  border-bottom-color: rgba(255, 255, 255, .96);
}

body[data-theme="light"] .torq-level-progress-ring {
  background:
    conic-gradient(var(--accent) var(--torq-level-progress), rgba(16, 24, 40, .12) 0),
    rgba(16, 24, 40, .05);
  box-shadow:
    inset 0 0 0 1px rgba(16, 24, 40, .10),
    0 12px 30px rgba(16, 24, 40, .10);
}

body[data-theme="light"] .torq-level-progress-ring__inner {
  background: rgba(255, 255, 255, .94);
  border-color: rgba(16, 24, 40, .10);
}

body[data-theme="light"] .torq-level-progress-ring__inner strong {
  color: #101828;
}

body[data-theme="light"] .torq-level-progress-ring__inner span,
body[data-theme="light"] .torq-level-tooltip__copy span {
  color: rgba(16, 24, 40, .62);
}

body[data-theme="light"] .torq-loading-skeleton,
body[data-theme="light"] .torq-profile__main.is-loading strong,
body[data-theme="light"] .torq-profile__main.is-loading span,
body[data-theme="light"] .torq-level.is-loading .torq-rank-badge,
body[data-theme="light"] .torq-wallet-button.is-loading strong {
  background: rgba(16, 24, 40, .13);
  border-color: rgba(16, 24, 40, .11);
}

body[data-theme="light"] .torq-loading-skeleton::after,
body[data-theme="light"] .torq-profile__main.is-loading strong::after,
body[data-theme="light"] .torq-profile__main.is-loading span::after,
body[data-theme="light"] .torq-level.is-loading .torq-rank-badge::after,
body[data-theme="light"] .torq-wallet-button.is-loading strong::after {
  background: linear-gradient(105deg, transparent 0 34%, rgba(255, 255, 255, .94) 46%, transparent 60% 100%);
}

body[data-theme="light"] .torq-loading-skeleton--metric,
body[data-theme="light"] .torq-loading-skeleton--place {
  background: rgba(255, 122, 24, .18);
  border-color: rgba(255, 122, 24, .24);
}

body[data-theme="light"] .torq-menu-button span {
  background: #101828;
}

body[data-theme="light"] :is(.torq-wallet-popover, .torq-profile-dropdown, .torq-rent-tariffs__menu) {
  color: #101828;
  background:
    linear-gradient(135deg, rgba(255, 122, 24, .10), transparent 46%),
    rgba(255, 255, 255, .96);
  border-color: rgba(16, 24, 40, .14);
  box-shadow: 0 24px 70px rgba(16, 24, 40, .18);
}

body[data-theme="light"] :is(.torq-wallet-popover > span, .torq-wallet-custom span, .torq-rent-plan small) {
  color: rgba(16, 24, 40, .56);
}

body[data-theme="light"] :is(.torq-profile-action, .torq-wallet-presets button, .torq-rent-plan) {
  color: #101828;
  background: rgba(16, 24, 40, .035);
  border-color: rgba(16, 24, 40, .10);
}

body[data-theme="light"] .torq-wallet-custom input {
  color: #101828;
  background: rgba(16, 24, 40, .035);
  border-color: rgba(16, 24, 40, .12);
}

body[data-theme="light"] .torq-wallet-custom input::placeholder {
  color: rgba(16, 24, 40, .38);
}

body[data-theme="light"] .torq-scene-tabs::before {
  background: linear-gradient(90deg, transparent 0%, transparent 6%, var(--torq-tabs-line) 22%, var(--torq-tabs-line) 78%, transparent 94%, transparent 100%);
}

body[data-theme="light"] .torq-scene-tabs button {
  color: var(--torq-tabs-text);
  text-shadow:
    -1px -1px 0 rgba(45, 12, 16, .46),
    1px -1px 0 rgba(45, 12, 16, .46),
    -1px 1px 0 rgba(45, 12, 16, .46),
    1px 1px 0 rgba(45, 12, 16, .46),
    0 6px 16px rgba(45, 12, 16, .32);
}

body[data-theme="light"] .torq-scene-tabs button span {
  color: var(--torq-tabs-muted);
  text-shadow:
    -1px -1px 0 rgba(45, 12, 16, .58),
    1px -1px 0 rgba(45, 12, 16, .58),
    -1px 1px 0 rgba(45, 12, 16, .58),
    1px 1px 0 rgba(45, 12, 16, .58),
    0 7px 18px rgba(45, 12, 16, .36),
    0 0 12px rgba(255, 184, 0, .28);
}

body[data-theme="light"] .torq-scene-tabs button em {
  text-shadow:
    -1px -1px 0 rgba(45, 12, 16, .52),
    1px -1px 0 rgba(45, 12, 16, .52),
    -1px 1px 0 rgba(45, 12, 16, .52),
    1px 1px 0 rgba(45, 12, 16, .52),
    0 7px 18px rgba(45, 12, 16, .32),
    0 0 12px rgba(255, 184, 0, .22);
}

body[data-theme="light"] .torq-scene-tabs button:hover,
body[data-theme="light"] .torq-scene-tabs button:focus-visible,
body[data-theme="light"] .torq-scene-tabs button.is-active {
  color: var(--torq-tabs-active);
}

body[data-theme="light"] .torq-scene-head span,
body[data-theme="light"] .torq-panel-label {
  color: rgba(16, 24, 40, .56);
}

body[data-theme="light"] :is(.torq-garage-rail, .torq-lap-panel, .torq-chat-panel, .torq-stream-panel) {
  color: #101828;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .84), rgba(255, 255, 255, .60)),
    rgba(255, 255, 255, .76);
  border-color: rgba(16, 24, 40, .12);
  box-shadow: 0 18px 54px rgba(16, 24, 40, .10);
}

body[data-theme="light"] :is(.torq-tile, .torq-garage-rail, .torq-lap-panel, .torq-chat-panel, .torq-stream-panel, .torq-garage-card, .torq-news-card) {
  border-color: rgba(16, 24, 40, .12);
}

body[data-theme="light"] .torq-garage-focus {
  background:
    radial-gradient(circle at 72% 14%, color-mix(in oklab, var(--garage-tone) 58%, transparent), transparent 28%),
    linear-gradient(128deg, color-mix(in oklab, var(--garage-tone) 76%, rgba(255, 255, 255, .18)) 0%, rgba(255, 255, 255, .32) 42%, rgba(255, 255, 255, .72) 100%),
    #fff;
  border-color: rgba(16, 24, 40, .14);
}

body[data-theme="light"] .torq-garage-focus::before {
  background:
    repeating-linear-gradient(
      118deg,
      transparent 0 24px,
      rgba(16, 24, 40, .14) 25px 27px
    );
}

body[data-theme="light"] .torq-garage-focus__info > strong {
  color: #101828;
}

body[data-theme="light"] .torq-garage-focus__head small {
  color: rgba(16, 24, 40, .64);
}

body[data-theme="light"] .torq-garage-focus__info > p {
  color: rgba(16, 24, 40, .82);
}

body[data-theme="light"] .torq-garage-info-link {
  color: rgba(16, 24, 40, .70);
}

body[data-theme="light"] .torq-garage-info-link:hover,
body[data-theme="light"] .torq-garage-info-link:focus-visible {
  color: #101828;
}

body[data-theme="light"] .torq-garage-rail__head span {
  color: rgba(16, 24, 40, .56);
}

body[data-theme="light"] .torq-garage-card {
  color: #101828;
  background:
    radial-gradient(circle at 50% 23%, color-mix(in oklab, var(--garage-tone) 22%, transparent), transparent 42%),
    linear-gradient(145deg, color-mix(in oklab, var(--garage-tone) 11%, transparent), rgba(255, 255, 255, .70) 52%, rgba(255, 255, 255, .46)),
    rgba(255, 255, 255, .84);
  border-color: rgba(16, 24, 40, .12);
  box-shadow: 0 18px 42px rgba(16, 24, 40, .10);
}

body[data-theme="light"] .torq-garage-card--loading,
body[data-theme="light"] .torq-lap-row--loading,
body[data-theme="light"] .torq-news-loading-card,
body[data-theme="light"] .torq-chat-message--loading,
body[data-theme="light"] .torq-stream-chat__loading,
body[data-theme="light"] .torq-stream-lap--loading,
body[data-theme="light"] .torq-stream-players__loading {
  background:
    linear-gradient(90deg, rgba(255, 122, 24, .12), rgba(255, 255, 255, .88) 48%, rgba(255, 184, 0, .10)),
    rgba(255, 255, 255, .86);
  border-color: rgba(16, 24, 40, .12);
}

body[data-theme="light"] .torq-garage-card--loading::before,
body[data-theme="light"] .torq-lap-row--loading::before,
body[data-theme="light"] .torq-chat-message--loading::before,
body[data-theme="light"] .torq-stream-chat__loading::before,
body[data-theme="light"] .torq-stream-lap--loading::before,
body[data-theme="light"] .torq-stream-players__loading::before {
  opacity: .32;
  background:
    linear-gradient(90deg, rgba(255, 122, 24, .12), transparent 34%),
    repeating-linear-gradient(118deg, transparent 0 16px, rgba(16, 24, 40, .055) 17px 19px);
}

body[data-theme="light"] .torq-news.is-loading::before {
  opacity: .30;
  background:
    linear-gradient(90deg, rgba(255, 122, 24, .12), transparent 34%),
    repeating-linear-gradient(118deg, transparent 0 18px, rgba(16, 24, 40, .055) 19px 21px);
}

body[data-theme="light"] .torq-news.is-loading .torq-news-feature__tag,
body[data-theme="light"] .torq-news.is-loading .torq-news-feature h2,
body[data-theme="light"] .torq-news.is-loading .torq-news-feature p {
  background: rgba(16, 24, 40, .12);
  border-color: rgba(16, 24, 40, .10);
}

body[data-theme="light"] .torq-garage-card::before {
  opacity: .20;
  background:
    repeating-linear-gradient(
      120deg,
      transparent 0 18px,
      rgba(16, 24, 40, .14) 19px 20px
    );
}

body[data-theme="light"] .torq-garage-card > span {
  color: color-mix(in oklab, var(--garage-tone) 72%, #101828);
}

body[data-theme="light"] .torq-garage-card > small {
  color: rgba(16, 24, 40, .62);
}

body[data-theme="light"] .torq-garage-card__details {
  color: rgba(16, 24, 40, .70);
}

body[data-theme="light"] .torq-garage-card__details:hover,
body[data-theme="light"] .torq-garage-card__details:focus-visible {
  color: #101828;
}

body[data-theme="light"] .torq-garage-card:hover,
body[data-theme="light"] .torq-garage-card.is-pointer-hovered,
body[data-theme="light"] .torq-garage-card:focus-visible {
  background:
    radial-gradient(circle at 50% 23%, color-mix(in oklab, var(--garage-tone) 28%, transparent), transparent 44%),
    linear-gradient(145deg, color-mix(in oklab, var(--garage-tone) 16%, transparent), rgba(255, 255, 255, .78) 54%, rgba(255, 255, 255, .52)),
    rgba(255, 255, 255, .88);
  box-shadow:
    0 18px 42px rgba(16, 24, 40, .14),
    inset 0 0 0 1px color-mix(in oklab, var(--garage-tone) 24%, transparent);
}

body[data-theme="light"] .torq-garage-list {
  background:
    linear-gradient(180deg, rgba(16, 24, 40, .06), rgba(16, 24, 40, .24), rgba(16, 24, 40, .06))
    calc(100% - 3px) 0 / 2px 100% no-repeat;
  scrollbar-color: rgba(255, 122, 24, .88) rgba(16, 24, 40, .08);
}

body[data-theme="light"] .torq-news-list {
  background:
    linear-gradient(180deg, rgba(16, 24, 40, .06), rgba(16, 24, 40, .24), rgba(16, 24, 40, .06))
    calc(100% - 7px) 12px / 2px calc(100% - 24px) no-repeat;
  border-left-color: rgba(16, 24, 40, .12);
  scrollbar-color: rgba(16, 24, 40, .34) rgba(16, 24, 40, .08);
}

@media (max-width: 1120px) {
  body[data-theme="light"] .torq-news-list {
    border-top-color: rgba(16, 24, 40, .12);
  }
}

body[data-theme="light"] :is(.torq-garage-list, .torq-news-list)::-webkit-scrollbar-track {
  background: rgba(16, 24, 40, .08);
}

body[data-theme="light"] .torq-garage-metrics {
  color: #101828;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .94), rgba(255, 255, 255, .74)),
    rgba(255, 255, 255, .88);
  border-color: rgba(16, 24, 40, .12);
  box-shadow: 0 16px 38px rgba(16, 24, 40, .14);
}

body[data-theme="light"] .torq-garage-metrics span {
  color: rgba(16, 24, 40, .56);
}

body[data-theme="light"] .torq-garage-blocked {
  color: #101828;
  background:
    linear-gradient(135deg, color-mix(in oklab, var(--garage-tone) 16%, transparent), rgba(255, 255, 255, .82)),
    rgba(255, 255, 255, .92);
  border-color: rgba(16, 24, 40, .12);
  box-shadow: 0 16px 38px rgba(16, 24, 40, .14);
}

body[data-theme="light"] .torq-garage-blocked > span {
  color: rgba(16, 24, 40, .66);
}

body[data-theme="light"] :is(
  .torq-garage-blocked,
  .torq-lap-row,
  .torq-chat-message,
  .torq-chat-modal,
  .torq-stream-players__row
) .torq-profile-link:hover,
body[data-theme="light"] :is(
  .torq-garage-blocked,
  .torq-lap-row,
  .torq-chat-message,
  .torq-chat-modal,
  .torq-stream-players__row
) .torq-profile-link:focus-visible {
  color: #101828;
}

body[data-theme="light"] .torq-panel-head > span {
  color: rgba(16, 24, 40, .76);
  background: rgba(16, 24, 40, .045);
  border-color: rgba(16, 24, 40, .10);
}

body[data-theme="light"] .torq-lap-row,
body[data-theme="light"] .torq-chat-message {
  background:
    linear-gradient(90deg, rgba(16, 24, 40, .045), rgba(255, 255, 255, .52) 58%),
    rgba(16, 24, 40, .035);
  border-color: rgba(16, 24, 40, .08);
}

body[data-theme="light"] .torq-lap-row {
  border-left-color: rgba(16, 24, 40, .14);
}

body[data-theme="light"] .torq-chat-message {
  border-left-color: rgba(16, 24, 40, .14);
}

body[data-theme="light"] .torq-lap-row.is-best {
  background:
    linear-gradient(90deg, rgba(255, 122, 24, .34), rgba(255, 255, 255, .54)),
    rgba(16, 24, 40, .035);
  border-left-color: var(--accent);
}

body[data-theme="light"] .torq-lap-row.is-live-new {
  background:
    linear-gradient(90deg, rgba(255, 184, 0, .24), rgba(255, 255, 255, .58)),
    rgba(16, 24, 40, .035);
  border-left-color: #ffb800;
}

body[data-theme="light"] .torq-lap-row.is-best .torq-lap-driver__name,
body[data-theme="light"] .torq-lap-row.is-best strong {
  color: #e95e00;
}

body[data-theme="light"] .torq-lap-sector small {
  color: #d68a00;
}

body[data-theme="light"] .torq-lap-clock {
  color: rgba(16, 24, 40, .64);
  background: transparent;
  border-color: transparent;
}

body[data-theme="light"] .torq-lap-driver__club,
body[data-theme="light"] .torq-lap-sector {
  background: rgba(16, 24, 40, .045);
  border-color: rgba(16, 24, 40, .10);
}

body[data-theme="light"] .torq-lap-driver__club {
  color: rgba(16, 24, 40, .74);
}

body[data-theme="light"] .torq-lap-driver__name {
  color: #101828;
}

body[data-theme="light"] .torq-lap-driver__name.fx3,
body[data-theme="light"] .torq-lap-driver__name.fx4 {
  color: #fff;
}

body[data-theme="light"] .torq-lap-sector em {
  color: rgba(16, 24, 40, .78);
}

body[data-theme="light"] .torq-lap-sector.is-empty {
  color: rgba(16, 24, 40, .52);
}

body[data-theme="light"] .torq-lap-car span {
  color: rgba(16, 24, 40, .62);
}

body[data-theme="light"] .torq-chat-message > span:not(.torq-chat-message__meta),
body[data-theme="light"] .torq-chat-message__meta {
  color: rgba(16, 24, 40, .58);
}

body[data-theme="light"] .torq-chat-message p {
  color: rgba(16, 24, 40, .84);
}

body[data-theme="light"] .torq-chat-date-divider {
  color: rgba(16, 24, 40, .54);
}

body[data-theme="light"] .torq-chat-date-divider::before,
body[data-theme="light"] .torq-chat-date-divider::after {
  background:
    linear-gradient(90deg, transparent, rgba(255, 122, 24, .74) 44%, rgba(255, 184, 0, .80));
  box-shadow: 0 0 16px rgba(255, 122, 24, .16);
}

body[data-theme="light"] .torq-chat-date-divider::after {
  background:
    linear-gradient(90deg, rgba(255, 184, 0, .80), rgba(255, 122, 24, .74) 56%, transparent);
}

body[data-theme="light"] .torq-chat-message.is-vip {
  background:
    linear-gradient(90deg, rgba(255, 122, 24, .34), rgba(47, 182, 255, .16) 68%),
    rgba(255, 184, 0, .08);
  border-color: rgba(255, 122, 24, .34);
  border-left-color: rgba(255, 122, 24, .96);
}

body[data-theme="light"] .torq-chat-message.is-vip > span:not(.torq-chat-message__meta),
body[data-theme="light"] .torq-chat-message.is-vip .torq-chat-message__meta {
  color: #c65300;
}

body[data-theme="light"] .torq-chat-message.is-club {
  background:
    linear-gradient(90deg, rgba(63, 143, 139, .16), rgba(255, 255, 255, .58)),
    rgba(63, 143, 139, .055);
  border-color: rgba(35, 111, 107, .17);
  border-left-color: rgba(35, 122, 116, .72);
}

body[data-theme="light"] .torq-chat-message.is-club > span:not(.torq-chat-message__meta),
body[data-theme="light"] .torq-chat-message.is-club .torq-chat-message__meta {
  color: #1f6f69;
}

body[data-theme="light"] .torq-chat-message__scope {
  color: #1f6f69;
  background: rgba(63, 143, 139, .10);
  border-color: rgba(35, 111, 107, .16);
}

body[data-theme="light"] .torq-chat-message.is-admin {
  background:
    linear-gradient(90deg, rgba(220, 38, 38, .18), rgba(255, 255, 255, .58)),
    rgba(220, 38, 38, .055);
  border-color: rgba(180, 35, 24, .18);
  border-left-color: rgba(190, 40, 40, .78);
}

body[data-theme="light"] .torq-chat-message.is-you {
  background:
    linear-gradient(270deg, rgba(47, 182, 255, .28), rgba(255, 255, 255, .58)),
    rgba(16, 24, 40, .035);
  border-left-color: rgba(16, 24, 40, .08);
  border-right-color: rgba(47, 182, 255, .82);
}

body[data-theme="light"] .torq-chat-message.is-you > span:not(.torq-chat-message__meta),
body[data-theme="light"] .torq-chat-message.is-you .torq-chat-message__meta {
  color: #006fb0;
}

body[data-theme="light"] .torq-chat-message.is-club.is-you {
  background:
    linear-gradient(270deg, rgba(63, 143, 139, .17), rgba(255, 255, 255, .58)),
    rgba(63, 143, 139, .060);
  border-left-color: rgba(16, 24, 40, .08);
  border-right-color: rgba(35, 122, 116, .72);
}

body[data-theme="light"] .torq-chat-message.is-club.is-you > span:not(.torq-chat-message__meta),
body[data-theme="light"] .torq-chat-message.is-club.is-you .torq-chat-message__meta {
  color: #1f6f69;
}

body[data-theme="light"] .torq-chat-message.is-admin.is-you {
  background:
    linear-gradient(270deg, rgba(220, 38, 38, .20), rgba(255, 255, 255, .58)),
    rgba(220, 38, 38, .060);
  border-left-color: rgba(16, 24, 40, .08);
  border-right-color: rgba(190, 40, 40, .78);
}

body[data-theme="light"] .torq-chat-message.is-admin.is-you > span:not(.torq-chat-message__meta),
body[data-theme="light"] .torq-chat-message.is-admin.is-you .torq-chat-message__meta {
  color: #b42318;
}

body[data-theme="light"] .torq-chat-message.is-admin .torq-chat-message__scope {
  color: #b42318;
  background: rgba(220, 38, 38, .10);
  border-color: rgba(180, 35, 24, .18);
}

body[data-theme="light"] .torq-chat-message__meta strong {
  color: rgba(16, 24, 40, .86);
}

body[data-theme="light"] .torq-chat-message__meta time {
  color: rgba(16, 24, 40, .50);
}

body[data-theme="light"] .torq-chat-message.is-you .torq-chat-message__meta strong {
  color: #006fb0;
}

body[data-theme="light"] .torq-chat-message.is-club .torq-chat-message__meta strong {
  color: #1f6f69;
}

body[data-theme="light"] .torq-chat-message.is-admin .torq-chat-message__meta strong {
  color: #b42318;
}

body[data-theme="light"] .torq-chat-compose {
  border-top-color: rgba(16, 24, 40, .10);
}

body[data-theme="light"] .torq-chat-compose input {
  color: #101828;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .72)),
    rgba(255, 255, 255, .86);
  border-color: rgba(16, 24, 40, .12);
}

body[data-theme="light"] .torq-chat-target::after {
  color: rgba(16, 24, 40, .58);
}

body[data-theme="light"] .torq-chat-target select {
  color: #101828;
  background:
    linear-gradient(135deg, rgba(63, 143, 139, .10), rgba(47, 182, 255, .06)),
    rgba(255, 255, 255, .86);
  border-color: rgba(16, 24, 40, .13);
}

body[data-theme="light"] .torq-chat-compose input::placeholder {
  color: rgba(16, 24, 40, .46);
}

body[data-theme="light"] .torq-tile {
  color: #101828;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .86), rgba(255, 255, 255, .56)),
    rgba(255, 255, 255, .76);
  border-color: rgba(16, 24, 40, .12);
  box-shadow: 0 18px 54px rgba(16, 24, 40, .12);
}

body[data-theme="light"] .torq-tile::before {
  opacity: .16;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .44), transparent 40%),
    repeating-linear-gradient(115deg, transparent 0 18px, rgba(16, 24, 40, .10) 19px 20px);
}

body[data-theme="light"] .torq-tile:hover::before,
body[data-theme="light"] .torq-tile:focus-visible::before {
  opacity: .34;
}

body[data-theme="light"] .torq-tile span,
body[data-theme="light"] .torq-tile small {
  color: rgba(16, 24, 40, .66);
}

body[data-theme="light"] :is(
  .torq-tile--hero,
  .torq-tile--accent,
  .torq-tile--blue,
  .torq-tile--promo,
  .torq-tile--device,
  .torq-tile--tournament,
  .torq-tile--pilot,
  .torq-tile--rivals,
  .torq-tile--clubs,
  .torq-tile--home-chat
) {
  color: #fff;
}

body[data-theme="light"] :is(
  .torq-tile--hero,
  .torq-tile--accent,
  .torq-tile--blue,
  .torq-tile--promo,
  .torq-tile--device,
  .torq-tile--tournament,
  .torq-tile--pilot,
  .torq-tile--rivals,
  .torq-tile--clubs,
  .torq-tile--home-chat
) span,
body[data-theme="light"] :is(
  .torq-tile--hero,
  .torq-tile--accent,
  .torq-tile--blue,
  .torq-tile--promo,
  .torq-tile--device,
  .torq-tile--tournament,
  .torq-tile--pilot,
  .torq-tile--rivals,
  .torq-tile--clubs,
  .torq-tile--home-chat
) small {
  color: rgba(255, 255, 255, .84);
}

body[data-theme="light"] .torq-tile--hero {
  background:
    linear-gradient(135deg, #ff7a18 0%, #ff4d5d 58%, rgba(17, 24, 39, .18) 100%),
    #ff7a18;
}

body[data-theme="light"] .torq-tile--hero.is-quick-return {
  background:
    linear-gradient(135deg, #008744 0%, #00ba5c 48%, #00562d 100%),
    #00783d;
}

body[data-theme="light"] .torq-tile--hero.is-quick-wait {
  background:
    linear-gradient(135deg, #ffb800 0%, #ff7a18 62%, rgba(17, 24, 39, .16) 100%),
    #ffb800;
}

body[data-theme="light"] .torq-tile--hero.is-quick-loading {
  color: #101828;
  background:
    linear-gradient(135deg, rgba(255, 122, 24, .24) 0%, rgba(255, 255, 255, .90) 58%, rgba(255, 184, 0, .16) 100%),
    rgba(255, 255, 255, .88);
}

body[data-theme="light"] .torq-tile--hero.is-quick-loading :is(span, small) {
  color: rgba(16, 24, 40, .66);
}

body[data-theme="light"] .torq-tile.is-home-loading {
  color: #101828;
  border-left-color: rgba(255, 122, 24, .72);
  background:
    linear-gradient(135deg, rgba(255, 122, 24, .16) 0%, rgba(255, 255, 255, .92) 52%, rgba(255, 184, 0, .12) 100%),
    rgba(255, 255, 255, .88);
}

body[data-theme="light"] .torq-tile.is-home-loading :is(span, small) {
  color: rgba(16, 24, 40, .66);
}

body[data-theme="light"] .torq-tile.is-home-loading::before {
  opacity: .32;
  background:
    linear-gradient(90deg, rgba(255, 122, 24, .12), transparent 36%),
    repeating-linear-gradient(118deg, transparent 0 18px, rgba(16, 24, 40, .06) 19px 21px);
}

body[data-theme="light"] .torq-tile.is-home-loading::after {
  background:
    linear-gradient(90deg, var(--accent), var(--accent-2)) -46% 0 / 46% 100% no-repeat,
    rgba(16, 24, 40, .14);
}

body[data-theme="light"] .torq-tile--home-chat.is-home-loading::before {
  opacity: 0;
  animation: none;
}

body[data-theme="light"] .torq-tile--home-chat.is-home-loading::after {
  content: none;
  animation: none;
}

body[data-theme="light"] .torq-tile--hero.is-quick-danger {
  background:
    linear-gradient(135deg, #ff4d4d 0%, #9c1c1c 62%, rgba(17, 24, 39, .16) 100%),
    #ff4d4d;
}

body[data-theme="light"] .torq-tile--hero.is-quick-disabled {
  background:
    linear-gradient(135deg, #8d98ab 0%, #4b5565 62%, rgba(17, 24, 39, .16) 100%),
    #8d98ab;
}

body[data-theme="light"] .torq-tile--accent {
  background:
    linear-gradient(135deg, #ff7a18 0%, #ffb800 62%, rgba(17, 24, 39, .14) 100%),
    #ff8f12;
}

body[data-theme="light"] .torq-tile--blue {
  background:
    linear-gradient(135deg, #159dff 0%, #16c6b7 62%, rgba(17, 24, 39, .14) 100%),
    #159dff;
}

body[data-theme="light"] .torq-tile--promo {
  background:
    linear-gradient(135deg, #ffc426 0%, #49cc7f 62%, rgba(17, 24, 39, .12) 100%),
    #ffc426;
}

body[data-theme="light"] .torq-tile--device {
  background:
    linear-gradient(135deg, #2fb6ff 0%, #1762b3 62%, rgba(17, 24, 39, .12) 100%),
    #2fb6ff;
}

body[data-theme="light"] .torq-tile--tournament {
  background:
    linear-gradient(135deg, #f06a17 0%, #c98912 62%, rgba(17, 24, 39, .16) 100%),
    #f06a17;
}

body[data-theme="light"] .torq-tile--pilot {
  background:
    linear-gradient(135deg, #745cff 0%, #b45dff 56%, rgba(17, 24, 39, .12) 100%),
    #745cff;
}

body[data-theme="light"] .torq-tile--rivals {
  background:
    linear-gradient(135deg, #008744 0%, #00ba5c 48%, #00562d 100%),
    #00783d;
}

body[data-theme="light"] .torq-tile--clubs {
  background:
    linear-gradient(135deg, #ff4d4d 0%, #c81e3a 58%, rgba(17, 24, 39, .12) 100%),
    #e11d48;
}

body[data-theme="light"] .torq-tile--rivals:hover,
body[data-theme="light"] .torq-tile--rivals:focus-visible,
body[data-theme="light"] .torq-tile--clubs:hover,
body[data-theme="light"] .torq-tile--clubs:focus-visible {
  border-color: rgba(16, 24, 40, .18);
  box-shadow:
    0 28px 80px rgba(16, 24, 40, .18),
    inset 0 0 0 1px rgba(255, 255, 255, .24);
}

body[data-theme="light"] .torq-tile--home-chat {
  background:
    linear-gradient(135deg, #2fb6ff 0%, #515dbf 58%, rgba(17, 24, 39, .12) 100%),
    #2fb6ff;
}

body[data-theme="light"] .torq-home-chat-preview__item {
  background: rgba(17, 24, 39, .18);
}

body[data-theme="light"] .torq-home-chat-preview__item.is-club {
  background:
    linear-gradient(90deg, rgba(63, 143, 139, .16), rgba(17, 24, 39, .13)),
    rgba(255, 255, 255, .12);
  border-left-color: rgba(35, 122, 116, .72);
}

body[data-theme="light"] .torq-home-chat-preview__item.is-admin {
  background:
    linear-gradient(90deg, rgba(220, 38, 38, .18), rgba(17, 24, 39, .13)),
    rgba(255, 255, 255, .12);
  border-left-color: rgba(190, 40, 40, .78);
}

body[data-theme="light"] .torq-home-chat-preview__item .torq-home-chat-preview__scope {
  color: #1f6f69;
  background: rgba(255, 255, 255, .24);
  border-color: rgba(255, 255, 255, .30);
}

body[data-theme="light"] .torq-home-chat-preview__item.torq-chat-message--loading {
  background:
    linear-gradient(90deg, rgba(255, 122, 24, .12), rgba(255, 255, 255, .82) 48%, rgba(255, 184, 0, .10)),
    rgba(255, 255, 255, .70);
  border-color: rgba(255, 122, 24, .30);
}

body[data-theme="light"] .torq-home-chat-preview {
  scrollbar-color: rgba(16, 24, 40, .34) rgba(255, 255, 255, .24);
}

body[data-theme="light"] .torq-home-chat-preview::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, .24);
}

body[data-theme="light"] .torq-home-chat-preview::-webkit-scrollbar-thumb {
  background: rgba(16, 24, 40, .34);
}

body[data-theme="light"] .torq-balance-modal__backdrop {
  background: rgba(244, 247, 251, .62);
}

body[data-theme="light"] .torq-balance-modal__dialog {
  color: #101828;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .94), rgba(244, 247, 251, .86)),
    rgba(255, 255, 255, .96);
  border-color: rgba(16, 24, 40, .12);
  box-shadow: 0 30px 90px rgba(16, 24, 40, .20);
}

body[data-theme="light"] .torq-balance-modal__close {
  color: rgba(16, 24, 40, .72);
  background: rgba(16, 24, 40, .06);
}

body[data-theme="light"] .torq-balance-modal__eyebrow,
body[data-theme="light"] .torq-balance-modal__custom span,
body[data-theme="light"] .torq-balance-modal__dialog small {
  color: rgba(16, 24, 40, .56);
}

body[data-theme="light"] .torq-balance-modal__dialog p {
  color: rgba(16, 24, 40, .72);
}

body[data-theme="light"] .torq-balance-modal__presets button {
  color: #101828;
  background: rgba(16, 24, 40, .045);
  border-color: rgba(16, 24, 40, .10);
}

body[data-theme="light"] .torq-rent-consent__summary div {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(244, 247, 251, .74)),
    rgba(16, 24, 40, .035);
  border-color: rgba(16, 24, 40, .10);
}

body[data-theme="light"] .torq-rent-consent__summary span {
  color: rgba(16, 24, 40, .50);
}

body[data-theme="light"] .torq-rent-consent__summary strong {
  color: #101828;
}

body[data-theme="light"] .torq-rent-consent__check {
  color: rgba(16, 24, 40, .82);
  background:
    linear-gradient(135deg, rgba(255, 184, 0, .18), rgba(255, 122, 24, .08)),
    rgba(255, 255, 255, .76);
  border-color: rgba(255, 122, 24, .22);
}

body[data-theme="light"] .torq-balance-modal__secondary {
  color: #101828;
  background:
    linear-gradient(135deg, rgba(16, 24, 40, .10), rgba(16, 24, 40, .045)),
    rgba(16, 24, 40, .08);
  border: 1px solid rgba(16, 24, 40, .14);
}

body[data-theme="light"] .torq-balance-modal__secondary:hover,
body[data-theme="light"] .torq-balance-modal__secondary:focus-visible {
  background:
    linear-gradient(135deg, rgba(16, 24, 40, .16), rgba(16, 24, 40, .07)),
    rgba(16, 24, 40, .10);
  border-color: rgba(16, 24, 40, .22);
}

body[data-theme="light"] .torq-balance-modal__custom input,
body[data-theme="light"] .torq-chat-modal__compose input {
  color: #101828;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .74)),
    rgba(255, 255, 255, .92);
  border-color: rgba(16, 24, 40, .12);
}

body[data-theme="light"] .torq-balance-modal__custom input::placeholder {
  color: rgba(16, 24, 40, .46);
}

body[data-theme="light"] .torq-chat-modal__compose input::placeholder {
  color: rgba(25, 174, 229, .82);
}

body[data-theme="light"] .torq-chat-modal__dialog {
  background:
    linear-gradient(135deg, rgba(47, 182, 255, .14), rgba(255, 122, 24, .07)),
    rgba(255, 255, 255, .97);
}

body[data-theme="light"] .torq-chat-modal__messages {
  background:
    linear-gradient(135deg, rgba(25, 174, 229, .035), rgba(255, 255, 255, .72)),
    rgba(255, 255, 255, .82);
  border-color: rgba(16, 24, 40, .08);
  gap: 6px;
  scrollbar-color: rgba(16, 24, 40, .32) rgba(16, 24, 40, .06);
}

body[data-theme="light"] .torq-chat-modal__messages::-webkit-scrollbar-track {
  background: rgba(16, 24, 40, .06);
}

body[data-theme="light"] .torq-chat-modal__messages::-webkit-scrollbar-thumb {
  background: rgba(16, 24, 40, .30);
}

body[data-theme="light"] .torq-chat-modal .torq-chat-message {
  --message-tone: #19aee5;
  max-width: min(74%, 500px);
  padding: 10px 12px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .78), rgba(25, 174, 229, .09)),
    rgba(255, 255, 255, .72);
  border-color: rgba(16, 24, 40, .075);
  border-left-color: rgba(25, 174, 229, .58);
  box-shadow: 0 8px 18px rgba(16, 24, 40, .08);
}

body[data-theme="light"] .torq-chat-modal .torq-chat-message.is-you {
  background:
    linear-gradient(135deg, rgba(25, 174, 229, .16), rgba(255, 255, 255, .76)),
    rgba(255, 255, 255, .76);
  border-left-color: rgba(16, 24, 40, .06);
  border-right-color: rgba(25, 174, 229, .62);
}

body[data-theme="light"] .torq-chat-modal .torq-chat-message.is-vip {
  --message-tone: #ff7a18;
  background:
    linear-gradient(135deg, rgba(255, 122, 24, .13), rgba(255, 255, 255, .78)),
    rgba(255, 248, 239, .82);
  border-color: rgba(255, 122, 24, .22);
  border-left-color: rgba(255, 122, 24, .72);
}

body[data-theme="light"] .torq-chat-modal .torq-chat-message.is-club {
  --message-tone: #3f8f8b;
  background:
    linear-gradient(135deg, rgba(63, 143, 139, .12), rgba(255, 255, 255, .78)),
    rgba(244, 252, 251, .82);
  border-color: rgba(35, 111, 107, .15);
  border-left-color: rgba(35, 122, 116, .68);
}

body[data-theme="light"] .torq-chat-modal .torq-chat-message.is-admin {
  --message-tone: #dc2626;
  background:
    linear-gradient(135deg, rgba(220, 38, 38, .12), rgba(255, 255, 255, .78)),
    rgba(255, 244, 244, .82);
  border-color: rgba(180, 35, 24, .16);
  border-left-color: rgba(190, 40, 40, .70);
}

body[data-theme="light"] .torq-chat-modal .torq-chat-message__meta time {
  color: rgba(16, 24, 40, .72);
}

body[data-theme="light"] .torq-chat-modal .torq-chat-message__meta strong {
  color: rgba(16, 24, 40, .70);
}

body[data-theme="light"] .torq-chat-modal .torq-chat-message.is-vip .torq-chat-message__meta strong {
  color: #7d3000;
}

body[data-theme="light"] .torq-chat-modal .torq-chat-message span {
  margin-bottom: 6px;
  font-size: 9px;
  line-height: 1.1;
}

body[data-theme="light"] .torq-chat-modal .torq-chat-message p {
  color: rgba(16, 24, 40, .76);
  font-size: 12px;
  line-height: 1.28;
}

body[data-theme="light"] .torq-chat-modal .torq-chat-message p + p {
  margin-top: 5px;
}

body[data-theme="light"] .torq-chat-modal .torq-chat-message.is-system {
  --message-tone: #8ad8a8;
  border-left-color: rgba(138, 216, 168, .78);
}

body[data-theme="light"] .torq-chat-modal .torq-chat-message.is-error {
  --message-tone: #ff6262;
  border-left-color: rgba(255, 98, 98, .84);
}

body[data-theme="light"] .torq-tile.is-home-live {
  border-color: rgba(16, 24, 40, .12);
  box-shadow:
    0 18px 54px rgba(16, 24, 40, .12),
    inset 0 0 0 1px rgba(16, 24, 40, .06);
}

body[data-theme="light"] .torq-tile.is-home-live:hover,
body[data-theme="light"] .torq-tile.is-home-live:focus-visible {
  border-color: var(--accent);
  box-shadow:
    0 28px 80px rgba(16, 24, 40, .18),
    inset 0 0 0 3px var(--accent),
    0 0 0 1px rgba(255, 122, 24, .18);
}

body[data-theme="light"] .torq-tile.is-home-empty {
  background:
    linear-gradient(135deg, #8d98ab 0%, #4b5565 62%, rgba(17, 24, 39, .16) 100%),
    #8d98ab;
}

body[data-theme="light"] .torq-news-card {
  color: #101828;
  background: rgba(255, 255, 255, .66);
  border-color: rgba(16, 24, 40, .10);
}

body[data-theme="light"] .torq-news {
  --news-stripe-color: rgba(16, 24, 40, .11);
  --news-stripe-opacity: .42;
  background: #fff;
  border-color: rgba(16, 24, 40, .14);
  box-shadow:
    0 18px 54px rgba(16, 24, 40, .12),
    0 0 0 1px rgba(16, 24, 40, .06);
}

body[data-theme="light"] .torq-news::after {
  border-color: rgba(16, 24, 40, .12);
  box-shadow:
    inset 0 0 0 1px rgba(16, 24, 40, .08),
    inset 0 -1px 0 rgba(16, 24, 40, .08);
}

body[data-theme="light"] .torq-news::before {
  opacity: var(--news-stripe-opacity);
}

body[data-theme="light"] .torq-news-feature {
  background: transparent;
  border-color: rgba(16, 24, 40, .12);
}

body[data-theme="light"] .torq-news-feature::before {
  background:
    radial-gradient(circle at 78% 25%, rgba(16, 24, 40, .045), transparent 30%);
}

body[data-theme="light"] .torq-news-feature__tag {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(16, 24, 40, .98), rgba(35, 45, 64, .94)),
    #101828;
  border: 1px solid rgba(16, 24, 40, .18);
  box-shadow: 0 12px 24px rgba(16, 24, 40, .14);
}

body[data-theme="light"] .torq-news-feature h2,
body[data-theme="light"] .torq-news-feature p,
body[data-theme="light"] .torq-news-link {
  color: #101828;
}

body[data-theme="light"] .torq-news-link {
  border-bottom-color: rgba(16, 24, 40, .30);
}

body[data-theme="light"] .torq-news-card:hover,
body[data-theme="light"] .torq-news-card:focus-visible {
  border-color: rgba(16, 24, 40, .18);
  background: rgba(255, 255, 255, .78);
}

body[data-theme="light"] .torq-news-card.is-active {
  border-color: rgba(16, 24, 40, .22);
  background: rgba(255, 255, 255, .88);
  box-shadow:
    inset 0 0 0 1px rgba(16, 24, 40, .08),
    0 14px 34px rgba(16, 24, 40, .12);
}

body[data-theme="light"] .torq-news-card span {
  color: rgba(16, 24, 40, .60);
}

/* Responsive scene behavior */
@media (min-width: 1121px) {
  .torq-header {
    min-height: 54px;
  }

  .torq-scene-topbar {
    margin-top: -6px;
  }

  body.is-activity-scene {
    overflow-x: hidden;
    overflow-y: auto;
  }

  body.is-stream-scene {
    overflow-x: hidden;
    overflow-y: auto;
  }

  body.is-activity-scene .torq-page {
    height: 100svh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
  }

  body.is-activity-scene .torq-header {
    flex: 0 0 auto;
  }

  body.is-stream-scene .torq-page {
    height: 100svh;
    min-height: 100svh;
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
  }

  body.is-stream-scene .torq-header {
    flex: 0 0 auto;
  }

  body.is-activity-scene .torq-shell {
    flex: 1 1 auto;
    min-height: 0;
    grid-template-rows: auto minmax(0, 1fr);
  }

  body.is-stream-scene .torq-shell {
    flex: 1 1 auto;
    min-height: 0;
    grid-template-rows: auto minmax(0, 1fr);
  }

  body.is-garage-scene {
    overflow-x: hidden;
    overflow-y: auto;
  }

  body.is-garage-scene .torq-page {
    height: 100svh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
  }

  body.is-garage-scene .torq-header {
    flex: 0 0 auto;
  }

  body.is-garage-scene .torq-shell {
    flex: 1 1 auto;
    min-height: 0;
    grid-template-rows: auto minmax(0, 1fr);
  }

  body.is-garage-scene .torq-scenes,
  body.is-garage-scene .torq-scene--garage {
    height: 100%;
    min-height: 0;
  }

  body.is-garage-scene .torq-scene--garage {
    grid-template-rows: minmax(0, 1fr);
    align-content: stretch;
  }

  body.is-garage-scene .torq-garage-layout {
    min-height: 0;
    height: 100%;
    align-items: stretch;
  }

  body.is-garage-scene .torq-garage-rail {
    min-height: 0;
    max-height: none;
    height: var(--garage-rail-fit-height, 100%);
  }

  body.is-garage-scene .torq-garage-list {
    min-height: 0;
    overflow-y: auto;
    /* Дошёл до края списка машин — прокрутка уходит странице (до футера),
       курсор можно не уводить из блока с машинами. */
    overscroll-behavior-y: auto;
  }

  body.is-home-scene .torq-scenes,
  body.is-home-scene .torq-scene--home {
    min-height: 0;
  }

  body.is-home-scene .torq-scenes {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
    padding-right: 0;
    padding-left: 0;
  }

  body.is-home-scene {
    --torq-home-row: clamp(104px, calc((100svh - 470px) / 3), 152px);
    --torq-home-news-height: clamp(
      250px,
      calc(100svh - var(--torq-home-row) - var(--torq-home-row) - var(--torq-home-row) - 218px),
      315px
    );
  }

  body.is-home-scene .torq-scene--home {
    align-content: start;
  }

  body.is-home-scene .torq-menu-grid {
    --tile-row-size: var(--torq-home-row);
    grid-auto-rows: var(--torq-home-row);
  }

  body.is-home-scene .torq-tile:not(.torq-tile--hero):not(.torq-tile--home-chat) {
    --tile-label-size: clamp(11px, min(.9vw, calc(var(--tile-row-size, 152px) * .095)), 13px);
    --tile-title-size: clamp(22px, min(2.6vw, calc(var(--tile-row-size, 152px) * .42)), 48px);
    --tile-note-size: clamp(12px, min(1.05vw, calc(var(--tile-row-size, 152px) * .108)), 15px);
  }

  body.is-home-scene .torq-tile--hero {
    min-height: calc(var(--torq-home-row) + var(--torq-home-row) + 10px);
  }

  body.is-home-scene .torq-tile--hero strong {
    font-size: clamp(38px, 4.2vw, 68px);
  }

  body.is-home-scene .torq-news {
    height: var(--torq-home-news-height);
    min-height: 0;
    margin-inline: 8px;
  }

  body.is-home-scene .torq-news-feature {
    min-height: 0;
    padding: 16px 18px;
  }

  body.is-home-scene .torq-news-feature__tag {
    min-height: 28px;
    font-size: 10px;
  }

  body.is-home-scene .torq-news-feature h2 {
    margin: 25px 0 8px;
    font-size: clamp(24px, 2.1vw, 36px);
  }

  body.is-home-scene .torq-news-feature p {
    font-size: 13px;
  }

  body.is-home-scene .torq-news-link {
    margin-top: auto;
    font-size: 11px;
  }

  body.is-home-scene .torq-news-list {
    min-height: 0;
  }

  body.is-home-scene .torq-news-card {
    min-height: 0;
    padding: 9px 14px;
    gap: 5px;
  }

  body.is-home-scene .torq-news-card strong {
    font-size: 14px;
  }

  body.is-home-scene .torq-news-card:not(.is-active) strong {
    font-size: 13px;
  }

  body.is-home-scene .torq-news-card.is-active strong {
    font-size: 15px;
  }

  body.is-home-scene .torq-news-card span {
    font-size: 9px;
  }

  body.is-home-scene .torq-news-card:not(.is-active) span {
    font-size: 8px;
  }

  body.is-home-scene .torq-news-card.is-active span {
    font-size: 9px;
  }

  body.is-activity-scene .torq-lap-panel,
  body.is-activity-scene .torq-chat-panel {
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
  }

  body.is-activity-scene .torq-chat-panel {
    grid-template-rows: auto minmax(0, 1fr) auto;
  }

  body.is-activity-scene .torq-scenes,
  body.is-activity-scene .torq-scene,
  body.is-activity-scene .torq-activity-layout {
    min-height: 0;
  }

  body.is-stream-scene .torq-scenes,
  body.is-stream-scene .torq-scene--stream,
  body.is-stream-scene .torq-stream-panel {
    height: 100%;
    min-height: 0;
  }

  body.is-activity-scene .torq-scene--activity {
    grid-template-rows: auto minmax(0, 1fr);
    align-content: stretch;
  }

  body.is-stream-scene .torq-scene--stream {
    grid-template-rows: minmax(0, 1fr);
    align-content: stretch;
  }

  body.is-stream-scene .torq-stream-panel {
    grid-template-rows: auto minmax(0, 1fr);
    align-content: stretch;
  }

  body.is-stream-scene .torq-stream-video-wrap {
    min-height: 0;
    height: auto;
    max-height: 100%;
  }

  body.is-activity-scene .torq-activity-layout {
    height: 100%;
    align-items: stretch;
  }

  body.is-activity-scene .torq-lap-list,
  body.is-activity-scene .torq-chat__messages {
    min-height: 0;
    padding-right: 8px;
    align-content: start;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  body.allows-dashboard-scroll.is-garage-scene,
  body.allows-dashboard-scroll.is-activity-scene,
  body.allows-dashboard-scroll.is-stream-scene {
    overflow-y: auto;
  }

  body.allows-dashboard-scroll:is(.is-garage-scene, .is-activity-scene, .is-stream-scene) .torq-page {
    height: auto;
    min-height: 100svh;
  }

  body.allows-dashboard-scroll:is(.is-garage-scene, .is-activity-scene, .is-stream-scene) .torq-shell {
    min-height: auto;
    grid-template-rows: auto;
  }

  body.allows-dashboard-scroll.is-garage-scene .torq-scenes,
  body.allows-dashboard-scroll.is-garage-scene .torq-scene--garage,
  body.allows-dashboard-scroll.is-garage-scene .torq-garage-layout,
  body.allows-dashboard-scroll.is-activity-scene .torq-scenes,
  body.allows-dashboard-scroll.is-activity-scene .torq-scene,
  body.allows-dashboard-scroll.is-activity-scene .torq-activity-layout,
  body.allows-dashboard-scroll.is-stream-scene .torq-scenes,
  body.allows-dashboard-scroll.is-stream-scene .torq-scene--stream,
  body.allows-dashboard-scroll.is-stream-scene .torq-stream-panel {
    height: auto;
  }

  body.allows-dashboard-scroll.is-garage-scene .torq-garage-rail {
    min-height: 420px;
    max-height: none;
    height: var(--garage-rail-fit-height, calc(100svh - 132px));
  }

  body.allows-dashboard-scroll.is-activity-scene .torq-lap-panel,
  body.allows-dashboard-scroll.is-activity-scene .torq-chat-panel,
  body.allows-dashboard-scroll.is-stream-scene .torq-stream-panel {
    height: auto;
    min-height: calc(100svh - 190px);
    grid-template-rows: auto;
  }

  body.allows-dashboard-scroll.is-stream-scene .torq-stream-video-wrap {
    min-height: 420px;
  }

  body.allows-dashboard-scroll.is-activity-scene .torq-lap-list,
  body.allows-dashboard-scroll.is-activity-scene .torq-chat__messages {
    overflow-y: visible;
  }
}

@supports (container-type: size) and (font-size: 1cqb) {
  @media (min-width: 1121px) {
    body.is-home-scene .torq-tile:not(.torq-tile--hero):not(.torq-tile--home-chat) {
      --tile-label-size: clamp(11px, min(2.9cqi, 9.5cqb), 13px);
      --tile-title-size: clamp(22px, min(12.4cqi, 42cqb), 48px);
      --tile-note-size: clamp(12px, min(3.5cqi, 10.8cqb), 15px);
    }
  }
}

@media (min-width: 3600px) and (min-height: 1700px) {
  body.is-home-scene {
    --torq-home-row: clamp(190px, calc((100svh - 720px) / 3), 220px);
  }

  body.is-home-scene .torq-tile:not(.torq-tile--hero):not(.torq-tile--home-chat) {
    --tile-label-size: clamp(14px, min(.8vw, calc(var(--tile-row-size, 152px) * .075)), 18px);
    --tile-title-size: clamp(48px, min(1.6vw, calc(var(--tile-row-size, 152px) * .31)), 68px);
    --tile-note-size: clamp(15px, min(.85vw, calc(var(--tile-row-size, 152px) * .086)), 19px);
  }

  body.is-home-scene .torq-tile--hero strong {
    font-size: clamp(68px, 4.2vw, 104px);
  }
}

@supports (container-type: size) and (font-size: 1cqb) {
  @media (min-width: 3600px) and (min-height: 1700px) {
    body.is-home-scene .torq-tile:not(.torq-tile--hero):not(.torq-tile--home-chat) {
      --tile-label-size: clamp(14px, min(2.6cqi, 7.5cqb), 18px);
      --tile-title-size: clamp(48px, min(8.5cqi, 31cqb), 68px);
      --tile-note-size: clamp(15px, min(2.8cqi, 8.6cqb), 19px);
    }
  }
}

@media (max-width: 1500px) {
  body.is-home-scene {
    --torq-home-row: clamp(96px, calc((100svh - 430px) / 3), 132px);
    --torq-home-news-height: clamp(
      235px,
      calc(100svh - var(--torq-home-row) - var(--torq-home-row) - var(--torq-home-row) - 212px),
      300px
    );
  }

  .torq-menu-grid {
    --tile-row-size: 132px;
    grid-auto-rows: 132px;
    gap: 10px;
  }

  .torq-tile {
    padding: 16px;
  }

  .torq-tile strong {
    font-size: var(--tile-title-size);
  }

  .torq-tile--hero strong {
    font-size: clamp(36px, 3.6vw, 52px);
  }

  .torq-tile--hero {
    min-height: 274px;
  }

  .torq-tile__media {
    width: 62%;
  }
}

@media (max-width: 1435px) {
  .torq-lap-row {
    min-height: 100px;
    padding: 14px 104px 14px 14px;
    grid-template-columns: minmax(170px, .86fr) minmax(300px, 1.24fr) 104px;
    gap: 12px;
  }

  .torq-lap-clock {
    top: 11px;
    right: 14px;
    font-size: 11px;
  }

  .torq-lap-driver {
    gap: 6px;
  }

  .torq-lap-driver__club {
    padding: 6px 8px;
    font-size: 11px;
  }

  .torq-lap-driver__name {
    font-size: 16px;
  }

  .torq-lap-driver__crown {
    font-size: 18px;
  }

  .torq-lap-row strong {
    font-size: 26px;
  }

  .torq-lap-result {
    gap: 8px;
  }

  .torq-lap-sectors {
    gap: 5px;
  }

  .torq-lap-sector {
    width: 74px;
    min-height: 26px;
    gap: 5px;
  }

  .torq-lap-sector small {
    font-size: 9px;
  }

  .torq-lap-sector em {
    font-size: 11px;
  }

  .torq-lap-car {
    width: 104px;
    min-height: 66px;
    grid-template-rows: 48px auto;
  }

  .torq-lap-car img {
    height: 48px;
  }

  .torq-lap-car span {
    font-size: 9px;
  }
}

@media (max-width: 1280px) {
  body.is-home-scene {
    --torq-home-row: clamp(88px, calc((100svh - 410px) / 3), 116px);
    --torq-home-news-height: clamp(
      220px,
      calc(100svh - var(--torq-home-row) - var(--torq-home-row) - var(--torq-home-row) - 204px),
      275px
    );
  }

  .torq-menu-grid {
    --tile-row-size: 116px;
    grid-auto-rows: 116px;
    gap: 8px;
  }

  .torq-tile {
    padding: 12px;
  }

  .torq-tile strong {
    font-size: var(--tile-title-size);
  }

  .torq-tile--hero strong {
    font-size: clamp(30px, 3.6vw, 44px);
  }

  .torq-tile--hero {
    min-height: 240px;
  }

  .torq-tile span {
    margin-bottom: 6px;
    font-size: var(--tile-label-size);
  }

  .torq-tile small {
    margin-top: 7px;
    font-size: var(--tile-note-size);
  }

  .torq-tile__media {
    inset: 8px -2px auto auto;
    width: 58%;
  }
}

@media (max-width: 1120px) {
  /* .torq-page {
    padding: 18px;
  } */

  .torq-location-band {
    --location-band-top: 24px;
    --location-band-right: -20vw;
    --location-band-left: -22vw;
    --location-band-left-offset: 22vw;
    --location-band-height: clamp(58px, 9.8vw, 98px);
    --location-band-pad: 20vw;
    --location-band-safe-start: clamp(32px, 5vw, 84px);
    --location-band-angle: -5.2deg;
    --location-band-text-size: clamp(36px, 7.6vw, 72px);
    --location-band-text-x: clamp(8px, 2vw, 28px);
  }

  .torq-header {
    grid-template-columns: auto 1fr;
  }

  .torq-profile {
    justify-self: end;
  }

  .torq-menu-grid {
    --tile-row-size: 104px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(104px, auto);
  }

  .torq-tile {
    order: 20;
  }

  .torq-tile--hero {
    order: 1;
  }

  .torq-tile--rivals {
    order: 2;
  }

  .torq-tile--accent {
    order: 3;
  }

  .torq-tile--clubs {
    order: 4;
  }

  .torq-tile--home-chat {
    order: 5;
  }

  .torq-tile--tournament {
    order: 6;
  }

  .torq-tile--pilot {
    order: 7;
  }

  .torq-tile--device {
    order: 8;
  }

  .torq-tile--accent,
  .torq-tile--promo,
  .torq-tile--device,
  .torq-tile--tournament,
  .torq-tile--pilot,
  .torq-tile--rivals,
  .torq-tile--clubs {
    grid-column: auto;
    grid-row: auto;
  }

  .torq-tile--hero,
  .torq-tile--home-chat {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .torq-tile--home-chat {
    height: calc((var(--tile-row-size, 104px) * 3) + 16px);
    min-height: 0;
  }

  .torq-home-chat-preview {
    margin: 20px 0 4px;
    padding-block: 6px;
    gap: 4px;
  }

  .torq-news {
    grid-template-columns: 1fr;
  }

  .torq-news-list {
    border-top: 1px solid rgba(255, 255, 255, .10);
    border-left: 0;
  }

  .torq-garage-layout,
  .torq-activity-layout {
    grid-template-columns: 1fr;
  }

  .torq-garage-focus {
    min-height: 400px;
  }

  .torq-garage-rail {
    min-height: 360px;
    max-height: 500px;
  }

  /* < 1120px — 2 карточки в ряд */
  .torq-garage-card {
    --garage-cols: 2;
  }

  .torq-garage-card {
    --garage-image-zone: 146px;
    min-height: 380px;
  }

  .torq-garage-card > strong {
    font-size: 19px;
  }

  .torq-garage-card > small {
    font-size: 11px;
  }

  .torq-lap-panel,
  .torq-chat-panel {
    height: clamp(280px, 42svh, 340px);
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .torq-chat-panel {
    grid-template-rows: auto minmax(0, 1fr) auto;
  }

  .torq-lap-list,
  .torq-chat__messages {
    min-height: 0;
    padding-right: 8px;
    align-content: start;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .torq-panel-head {
    display: grid;
    gap: 10px;
  }

  .torq-panel-head > span {
    justify-self: start;
  }

  .torq-lap-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .torq-lap-row {
    flex: 0 0 auto;
    min-height: 90px;
  }

  .torq-lap-clock {
    align-self: center;
    font-size: 10px;
  }

  .torq-lap-driver {
    gap: 6px;
  }

  .torq-lap-driver__club {
    padding: 6px 8px;
    font-size: 10px;
  }

  .torq-lap-driver__name {
    font-size: 14px;
    white-space: normal;
  }

  .torq-lap-driver__crown {
    font-size: 16px;
  }

  .torq-lap-row strong {
    font-size: 18px;
  }

  .torq-lap-sectors {
    flex-wrap: wrap;
    gap: 5px;
    min-height: 24px;
  }

  .torq-lap-sector {
    min-height: 24px;
    padding-inline: 7px;
  }

  .torq-lap-sector small,
  .torq-lap-sector em {
    font-size: 10px;
  }

  .torq-lap-car {
    width: 112px;
    min-height: 64px;
    grid-template-rows: 42px auto;
    align-self: center;
  }

  .torq-lap-car img {
    height: 42px;
  }

  .torq-lap-car span {
    font-size: 9px;
  }

  .torq-lap-clock {
    min-height: 24px;
    padding-inline: 8px;
    font-size: 10px;
  }

  .torq-lap-row.is-best {
    border-left: 3px solid var(--accent);
  }

  .torq-chat-message {
    max-width: 94%;
    padding: 10px 12px;
  }

  .torq-chat-message span {
    margin-bottom: 4px;
    font-size: 10px;
  }

  .torq-chat-message p {
    font-size: 12px;
    line-height: 1.35;
  }

  .torq-chat-modal__dialog {
    max-height: calc(100svh - 24px);
    padding: 20px;
  }

  .torq-chat-modal__compose {
    grid-template-columns: 1fr;
  }

  .torq-panel-head > span {
    display: none;
  }

}

@media (min-width: 761px) and (max-width: 1120px) {
  .torq-tile--tournament {
    order: 5;
  }

  .torq-tile--home-chat {
    order: 6;
  }
}

@media (max-width: 760px) {
  .torq-stream-laps,
  .torq-stream-chat,
  .torq-stream-overlay-controls,
  .torq-stream-players {
    display: none;
  }

  .torq-location-band {
    --location-band-top: 28px;
    --location-band-right: -36vw;
    --location-band-left: -44vw;
    --location-band-left-offset: 44vw;
    --location-band-height: clamp(48px, 14.5vw, 70px);
    --location-band-pad: 34vw;
    --location-band-safe-start: clamp(14px, 4vw, 34px);
    --location-band-angle: -7deg;
    --location-band-skew: -12deg;
    --location-band-text-skew: 12deg;
    --location-band-text-size: clamp(30px, 11vw, 46px);
    --location-band-text-x: 0;
  }

  .torq-page {
    padding: 14px 10px 24px;
  }

  .torq-header {
    gap: 12px;
    min-height: auto;
  }

  .torq-profile {
    --torq-profile-panel-height: 50px;
  }

  .torq-player-plate {
    gap: 8px;
    padding: 6px 10px;
  }

  .torq-profile__main {
    max-width: 64px;
  }

  .torq-brand__word,
  .torq-release-version {
    display: none;
  }

  .torq-brand img {
    width: 46px;
    height: 46px;
  }

  .torq-profile__main {
    display: block;
  }

  .torq-club-badge {
    display: none;
  }

  .torq-wallet-button {
    padding: 6px 11px;
  }

  .torq-wallet-button span {
    display: none;
  }

  .torq-wallet-button strong {
    margin-top: 0;
    font-size: 14px;
  }

  .torq-wallet-popover {
    right: -40px;
    width: min(252px, calc(100vw - 20px));
  }

  .torq-shell {
    min-height: auto;
    margin-top: 16px;
  }

  .torq-scene-tabs {
    width: 100%;
    max-width: 560px;
    min-height: 56px;
    padding: 0 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
  }

  .torq-scene-tabs::before {
    content: "";
  }

  .torq-scene-tabs button {
    flex: 1 1 0;
    min-width: 0;
    max-width: 132px;
    min-height: 56px;
    padding: 0 8px 8px;
    gap: 2px;
    overflow: hidden;
    background: transparent;
    border: 0;
    border-radius: 0;
    font-size: 10px;
    letter-spacing: .10em;
    line-height: 1.05;
    text-align: center;
  }

  .torq-scene-tabs button.is-active {
    font-size: 11px;
  }

  .torq-scene-tabs button.is-active::after {
    width: 52px;
  }

  .torq-menu-grid,
  .torq-news {
    grid-template-columns: 1fr;
  }

  .torq-menu-grid {
    --tile-row-size: 96px;
    grid-auto-rows: minmax(96px, auto);
  }

  .torq-tile {
    padding: 12px 14px;
  }

  .torq-tile--home-chat {
    height: calc((var(--tile-row-size, 96px) * 3) + 16px);
    min-height: 0;
  }

  .torq-tile--home-chat > strong {
    top: 14px;
    right: 18px;
  }

  .torq-home-chat-preview {
    margin: 16px 0 2px;
    padding: 6px;
  }

  .torq-tile--home-chat > small {
    margin-top: 4px;
  }

  .torq-tile--hero {
    min-height: 204px;
  }

  .torq-tile--accent,
  .torq-tile--pilot,
  .torq-tile--tournament {
    grid-column: auto;
  }

  .torq-tile__media {
    width: 78%;
    opacity: .92;
  }

  .torq-tile--hero strong {
    font-size: clamp(30px, 9vw, 44px);
  }

  .torq-news-feature {
    min-height: 260px;
    padding: 18px;
  }

  .torq-news-feature h2 {
    font-size: clamp(30px, 10vw, 44px);
  }

  .torq-scene-head h2 {
    font-size: 28px;
  }

  .torq-garage-focus {
    --garage-control-bottom: 14px;
    --garage-control-height: 54px;
    min-height: 330px;
    padding: 14px;
  }

  .torq-garage-focus__media {
    top: 18px;
    right: -18px;
    width: min(72%, 360px);
  }

  .torq-garage-focus__body {
    width: min(320px, 100%);
  }

  .torq-garage-focus__head {
    gap: 8px;
  }

  .torq-garage-focus__head small {
    font-size: 9px;
  }

  .torq-garage-status {
    min-height: 24px;
    padding-inline: 10px;
    font-size: 9px;
  }

  .torq-garage-focus__info > strong {
    max-width: 265px;
    margin: 12px 0 6px;
    font-size: 28px;
  }

  .torq-garage-focus__info > p {
    max-width: 260px;
    font-size: 12px;
  }

  .torq-garage-info-link {
    margin-top: 10px;
    font-size: 10px;
  }

  .torq-garage-action {
    min-height: var(--garage-control-height);
    margin-top: 12px;
  }

  .torq-rent-split {
    max-width: 100%;
  }

  .torq-rent-primary {
    min-height: var(--garage-control-height);
    padding-inline: 16px;
  }

  .torq-rent-primary b {
    font-size: 18px;
  }

  .torq-rent-tariffs summary {
    width: 82px;
    min-width: 82px;
    min-height: var(--garage-control-height);
    font-size: 9px;
  }

  .torq-garage-metrics div {
    min-width: 68px;
    padding: 8px 10px 7px;
  }

  .torq-garage-metrics b {
    font-size: 14px;
  }

  .torq-rent-tariffs__menu {
    right: auto;
    left: 0;
    width: min(290px, calc(100vw - 52px));
  }

  .torq-garage-blocked {
    min-width: 0;
    width: 100%;
  }

  .torq-garage-rail {
    min-height: 340px;
    max-height: 440px;
    padding: 14px;
  }

  .torq-garage-card {
    --garage-image-zone: 138px;
    min-height: 372px;
  }

}

/* < 748px — 1 карточка в ряд на всю ширину */
@media (max-width: 748px) {
  .torq-garage-card {
    --garage-cols: 1;
  }
}

@media (max-width: 734px) {
  .torq-lap-panel,
  .torq-chat-panel {
    height: clamp(260px, 42svh, 320px);
    padding: 14px;
  }

  .torq-lap-list {
    gap: 7px;
  }

  .torq-lap-row {
    min-height: 82px;
    padding: 12px 56px 12px 12px;
    grid-template-columns: minmax(92px, .75fr) minmax(128px, 1fr) 76px;
    gap: 8px;
  }

  .torq-lap-clock {
    top: 9px;
    right: 10px;
    font-size: 9px;
  }

  .torq-lap-driver {
    gap: 5px;
  }

  .torq-lap-driver__club {
    padding: 5px 7px;
    font-size: 9px;
  }

  .torq-lap-driver__name {
    font-size: 12px;
    line-height: 1.1;
  }

  .torq-lap-driver__crown {
    font-size: 14px;
  }

  .torq-lap-row strong {
    font-size: 16px;
  }

  .torq-lap-result {
    gap: 6px;
  }

  .torq-lap-sectors {
    gap: 4px;
  }

  .torq-lap-sector {
    width: 60px;
    min-height: 22px;
    gap: 4px;
  }

  .torq-lap-sector small,
  .torq-lap-sector em {
    font-size: 9px;
  }

  .torq-lap-car {
    width: 76px;
    min-height: 50px;
    grid-template-rows: 34px auto;
  }

  .torq-lap-car img {
    height: 34px;
  }

  .torq-lap-car span {
    font-size: 8px;
  }
}

@media (max-width: 600px) {
  .torq-lap-row {
    min-height: 96px;
    padding: 8px 44px 8px 12px;
    grid-template-columns: minmax(0, 1fr) 112px;
    grid-template-areas:
      "driver car"
      "result result";
    align-items: start;
    gap: 4px 10px;
  }

  .torq-lap-driver {
    grid-area: driver;
    align-self: center;
  }

  .torq-lap-result {
    grid-area: result;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
  }

  .torq-lap-car {
    grid-area: car;
    justify-self: end;
    width: 112px;
    min-height: 54px;
    grid-template-rows: 36px auto;
  }

  .torq-lap-car img {
    height: 36px;
  }

  .torq-lap-car span {
    font-size: 8px;
  }

  .torq-lap-clock {
    top: 8px;
    right: 9px;
    font-size: 8px;
  }

  .torq-lap-row strong {
    font-size: 14px;
  }

  .torq-lap-sectors {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 4px;
  }

  .torq-lap-sector {
    width: 56px;
    min-height: 21px;
  }

  .torq-lap-sector small,
  .torq-lap-sector em {
    font-size: 8px;
  }
}

@media (max-width: 520px) {
  .torq-location-band {
    --location-band-top: 24px;
    --location-band-right: -48vw;
    --location-band-left: -56vw;
    --location-band-left-offset: 56vw;
    --location-band-height: clamp(44px, 16vw, 62px);
    --location-band-pad: 42vw;
    --location-band-safe-start: 10px;
    --location-band-angle: -8deg;
    --location-band-text-size: clamp(28px, 12vw, 42px);
  }

  .torq-scene-tabs {
    min-height: 54px;
    padding-inline: 0;
  }

  .torq-scene-tabs button {
    min-height: 54px;
    padding-inline: 4px;
    font-size: 9px;
    letter-spacing: .08em;
  }

  .torq-scene-tabs button span {
    font-size: 8px;
  }

  .torq-scene-tabs button.is-active {
    font-size: 10px;
  }

  .torq-scene-tabs button.is-active::after {
    width: 46px;
  }

  .torq-scene-head span {
    font-size: 10px;
  }

  .torq-scene-head h2 {
    font-size: 26px;
  }

  .torq-garage-focus {
    --garage-control-bottom: 12px;
    --garage-control-height: 46px;
    min-height: 270px;
    padding: 12px;
  }

  .torq-garage-focus__media {
    top: 30px;
    right: -30px;
    width: min(70%, 300px);
  }

  .torq-garage-focus__body {
    width: 100%;
  }

  .torq-garage-focus__head {
    flex-wrap: wrap;
    max-width: 240px;
  }

  .torq-garage-status {
    min-height: 23px;
    font-size: 8px;
    letter-spacing: .12em;
  }

  .torq-garage-focus__head small {
    font-size: 8px;
  }

  .torq-garage-focus__info > strong {
    max-width: 220px;
    margin-top: 10px;
    font-size: 24px;
  }

  .torq-garage-focus__info > p {
    max-width: 220px;
    font-size: 11px;
  }

  .torq-garage-info-link {
    margin-top: 8px;
    font-size: 9px;
  }

  .torq-garage-action {
    width: calc(100% - 78px);
    min-height: var(--garage-control-height);
    margin-top: 10px;
  }

  .torq-rent-split {
    width: 100%;
    filter: drop-shadow(0 12px 16px rgba(0, 0, 0, .22));
  }

  .torq-rent-primary {
    min-width: 0;
    min-height: var(--garage-control-height);
    padding-inline: 12px 14px;
  }

  .torq-rent-primary span {
    font-size: 8px;
  }

  .torq-rent-primary b {
    font-size: 15px;
  }

  .torq-rent-tariffs summary {
    width: 66px;
    min-width: 66px;
    min-height: var(--garage-control-height);
    font-size: 8px;
  }

  .torq-garage-metrics {
    min-height: var(--garage-control-height);
    height: var(--garage-control-height);
  }

  .torq-garage-metrics div {
    min-width: 62px;
    padding: 7px 8px 6px;
  }

  .torq-garage-metrics span {
    font-size: 8px;
  }

  .torq-garage-metrics b {
    margin-top: 3px;
    font-size: 15px;
  }

  .torq-garage-card {
    --garage-image-zone: 132px;
    min-height: 364px;
  }

  .torq-garage-card > strong {
    font-size: 17px;
  }

  .torq-garage-card > small {
    font-size: 11px;
  }
}

@media (min-width: 1121px) and (max-height: 900px) {
  /* .torq-page {
    padding-block: 16px;
  } */

  .torq-header {
    min-height: 56px;
  }

  .torq-shell {
    margin-top: 12px;
    gap: 8px;
  }

  .torq-menu-grid {
    --tile-row-size: 78px;
    grid-auto-rows: 78px;
    gap: 7px;
  }

  .torq-tile {
    padding: 10px 12px;
  }

  .torq-tile strong {
    font-size: var(--tile-title-size);
  }

  .torq-tile--hero {
    min-height: 164px;
  }

  .torq-tile--hero strong {
    font-size: clamp(28px, 8vw, 40px);
  }

  .torq-tile span {
    margin-bottom: 5px;
    font-size: var(--tile-label-size);
  }

  .torq-tile small {
    margin-top: 5px;
    font-size: var(--tile-note-size);
  }

  .torq-tile__media {
    inset: 6px -2px auto auto;
    width: 56%;
  }

  .torq-news {
    gap: 0;
  }

  .torq-news-feature {
    min-height: 144px;
    padding: 16px 18px;
  }

  .torq-news-feature__tag {
    min-height: 28px;
    font-size: 10px;
  }

  .torq-news-feature h2 {
    margin: 10px 0 8px;
    font-size: clamp(26px, 2.15vw, 38px);
  }

  .torq-news-feature p {
    font-size: 14px;
  }

  .torq-news-link {
    margin-top: auto;
    font-size: 11px;
  }

  .torq-news-list {
    border-top: 1px solid rgba(255, 255, 255, .10);
    border-left: 0;
    gap: 6px;
  }

  .torq-news-card {
    min-height: 0;
    padding: 9px 14px;
    gap: 5px;
  }

  .torq-news-card strong {
    font-size: 14px;
  }

  .torq-news-card:not(.is-active) strong {
    font-size: 13px;
  }

  .torq-news-card.is-active strong {
    font-size: 15px;
  }

  .torq-news-card:not(.is-active) span {
    font-size: 8px;
  }

  .torq-news-card.is-active span {
    font-size: 9px;
  }

  .torq-garage-focus {
    min-height: 380px;
  }

  .torq-garage-rail {
    min-height: 360px;
    max-height: 460px;
  }

  .torq-lap-panel,
  .torq-chat-panel {
    min-height: 280px;
  }

  .torq-garage-card {
    --garage-image-zone: 150px;
    min-height: 384px;
  }

  .torq-lap-row {
    min-height: 104px;
  }
}

@media (min-width: 761px) {
  body.is-home-scene .torq-tile:not(.torq-tile--hero):not(.torq-tile--home-chat) {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
