:root {
  --bg: #080d15;
  --bg-soft: #0c131f;
  --panel: rgba(18, 26, 39, .82);
  --panel-solid: #111a28;
  --line: rgba(162, 181, 214, .16);
  --text: #f3f6fb;
  --muted: #9ca9bb;
  --accent: #7f9ff2;
  --accent-strong: #637de8;
  --red: #ff3d49;
  --red-soft: rgba(255, 61, 73, .16);
  --green: #58dc8a;
  --orange: #ffad4d;
  --radius: 22px;
  --max: 1380px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 82% 8%, rgba(123, 153, 244, .16), transparent 30%),
    radial-gradient(circle at 15% 28%, rgba(255, 61, 73, .08), transparent 26%),
    var(--bg);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  opacity: .32;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, #000, transparent 90%);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.noise {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}
.ambient { position: fixed; z-index: -2; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.ambient-one { width: 420px; height: 420px; right: -120px; top: 130px; background: rgba(104, 132, 235, .12); }
.ambient-two { width: 360px; height: 360px; left: -160px; top: 560px; background: rgba(255, 51, 69, .07); }

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 50;
  width: min(calc(100% - 34px), var(--max));
  height: 76px;
  padding: 0 18px;
  display: grid;
  grid-template-columns: 170px 1fr auto;
  align-items: center;
  gap: 24px;
  transform: translateX(-50%);
  border: 1px solid rgba(164, 183, 219, .14);
  border-radius: 18px;
  background: rgba(7, 12, 20, .74);
  backdrop-filter: blur(20px);
  box-shadow: 0 16px 60px rgba(0,0,0,.25);
}
.brand img { width: 126px; }
.site-nav { display: flex; justify-content: center; gap: 25px; color: #c8d0de; font-size: .78rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.site-nav a { position: relative; padding: 12px 0; }
.site-nav a::after { content: ""; position: absolute; left: 0; bottom: 5px; width: 100%; height: 2px; background: var(--red); transform: scaleX(0); transition: transform .25s ease; }
.site-nav a:hover::after, .site-nav a.active::after { transform: scaleX(1); }
.site-nav a.active { color: #fff; }
.header-cta { padding: 12px 18px; border: 1px solid rgba(255, 75, 87, .4); border-radius: 999px; color: #fff; font-size: .78rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; background: rgba(255, 61, 73, .11); }
.nav-toggle { display: none; border: 0; background: transparent; }

.hero {
  width: min(calc(100% - 48px), var(--max));
  min-height: 760px;
  margin: 0 auto;
  padding: 150px 0 72px;
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(500px, 1.14fr);
  align-items: center;
  gap: 5vw;
}
.eyebrow { margin: 0 0 18px; color: #aebff9; font-size: .79rem; font-weight: 850; letter-spacing: .18em; text-transform: uppercase; }
.live-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 16px var(--green); animation: pulse 1.7s infinite; }
.hero h1 { margin: 0; font-size: clamp(4.7rem, 8.2vw, 9.2rem); line-height: .82; letter-spacing: -.065em; text-transform: uppercase; }
.hero h1 span { display: block; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 82, 94, .94); text-shadow: 0 0 45px rgba(255, 45, 62, .18); }
.hero-text { max-width: 680px; margin: 31px 0 0; color: #b7c1d0; font-size: clamp(1.05rem, 1.55vw, 1.3rem); }
.hero-actions { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 13px; }
.button { min-height: 54px; padding: 0 24px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; border-radius: 12px; font-weight: 850; transition: transform .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-3px); }
.button-primary { color: #fff; background: linear-gradient(135deg, #ff5360, #d9182b); box-shadow: 0 18px 44px rgba(202, 18, 39, .25); }
.button-ghost { border: 1px solid rgba(172, 190, 222, .22); color: #dfe5ef; background: rgba(255,255,255,.025); }
.record-logo-stage { position: relative; min-height: 520px; display: grid; place-items: center; }
.record-logo-stage::before { content: ""; position: absolute; inset: 4% 0; border: 1px solid rgba(144, 164, 226, .12); clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%); background: linear-gradient(130deg, rgba(79, 106, 199, .09), rgba(255, 50, 65, .035), transparent); backdrop-filter: blur(6px); }
.record-logo-stage img { position: relative; z-index: 2; width: min(760px, 54vw); filter: drop-shadow(0 34px 55px rgba(0,0,0,.5)); }
.logo-glow { position: absolute; width: 65%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(116, 144, 235, .23), rgba(255, 53, 69, .08), transparent 70%); filter: blur(18px); }

.section { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; padding: 92px 0; }
.summary { padding-top: 30px; display: grid; grid-template-columns: 1.25fr repeat(3, 1fr); gap: 14px; }
.summary-card { min-height: 175px; padding: 23px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(21,31,47,.93), rgba(12,19,30,.83)); }
.summary-main { background: radial-gradient(circle at 90% 5%, rgba(255, 52, 69, .21), transparent 43%), linear-gradient(145deg, rgba(36,39,62,.96), rgba(14,21,34,.88)); }
.summary-card span { color: #96a3b7; font-size: .75rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.summary-card strong { font-size: clamp(2.7rem, 4.6vw, 4.8rem); line-height: 1; }
.summary-card small { color: #778599; }
.section-heading { margin-bottom: 42px; display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.section-label { margin-bottom: 22px; color: #59667b; font-size: .7rem; font-weight: 850; letter-spacing: .18em; }
.section h2 { margin: 0; font-size: clamp(2.7rem, 5.1vw, 5.4rem); line-height: .95; letter-spacing: -.05em; }
.updated { max-width: 390px; margin: 0; color: #78869b; text-align: right; font-size: .84rem; }

.filter-panel { padding: 18px; display: grid; grid-template-columns: 1.5fr repeat(3, 1fr) auto; gap: 12px; align-items: end; border: 1px solid var(--line); border-radius: 18px; background: rgba(12, 19, 30, .72); }
.filter-panel label { display: grid; gap: 7px; color: #8290a5; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.filter-panel input, .filter-panel select { width: 100%; min-height: 46px; padding: 0 13px; border: 1px solid rgba(165,184,216,.16); border-radius: 10px; outline: 0; color: #edf2fb; background: #0d1623; }
.filter-panel input:focus, .filter-panel select:focus { border-color: rgba(126, 159, 242, .65); box-shadow: 0 0 0 3px rgba(126, 159, 242, .09); }
.filter-panel button { min-height: 46px; padding: 0 16px; border: 1px solid rgba(255, 77, 90, .3); border-radius: 10px; color: #ffdce0; cursor: pointer; background: rgba(255, 61, 73, .09); }
.result-line { margin: 28px 0 14px; display: flex; align-items: baseline; gap: 8px; color: #75849a; }
.result-line strong { color: #fff; font-size: 1.5rem; }
.record-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.record-card { position: relative; min-height: 330px; padding: 24px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: linear-gradient(155deg, rgba(20,30,45,.96), rgba(10,17,27,.91)); transition: transform .2s ease, border-color .2s ease; }
.record-card:hover { transform: translateY(-4px); border-color: rgba(130, 158, 236, .36); }
.record-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: linear-gradient(var(--red), #8d1020); }
.record-card.formula::before { background: linear-gradient(#83a1ff, #485fce); }
.record-card.sports::before { background: linear-gradient(#5ade8e, #168249); }
.record-card.oval::before { background: linear-gradient(#ffb44e, #c76a15); }
.record-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.record-badge { padding: 6px 9px; border-radius: 999px; color: #ffc9cf; background: var(--red-soft); font-size: .66rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.category-badge { color: #8291aa; font-size: .67rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.record-track { margin: 25px 0 7px; font-size: 1.35rem; line-height: 1.15; }
.record-car { margin: 0; color: #94a3b8; }
.record-time { margin: 30px 0 8px; color: #fff; font-size: clamp(2.2rem, 4vw, 3.6rem); font-weight: 900; letter-spacing: -.045em; line-height: 1; }
.record-driver { color: #b8c6db; font-weight: 750; }
.record-improvement { margin-top: 9px; color: var(--green); font-weight: 800; }
.record-footer { margin-top: auto; padding-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #647389; font-size: .74rem; }
.record-links { display: flex; gap: 8px; }
.record-link { padding: 7px 10px; border: 1px solid rgba(151,171,207,.18); border-radius: 8px; color: #dce5f3; background: rgba(255,255,255,.025); }
.empty-state { padding: 60px 20px; text-align: center; border: 1px dashed rgba(158,179,214,.18); border-radius: 18px; color: #7f8da2; }
.empty-state strong, .empty-state span { display: block; }
.empty-state strong { color: #dbe3ef; font-size: 1.2rem; }

.insights { display: grid; grid-template-columns: .8fr 1.2fr; gap: 16px; }
.leaderboard-panel, .timeline-panel { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(14,22,34,.76); }
.insights h2 { margin-bottom: 28px; font-size: clamp(2.3rem, 4vw, 4.2rem); }
.leaderboard { display: grid; gap: 9px; }
.leader-row { padding: 14px 15px; display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 10px; border: 1px solid rgba(154,175,211,.12); border-radius: 12px; background: rgba(255,255,255,.02); }
.leader-rank { color: #68778d; font-weight: 900; }
.leader-name { font-weight: 780; }
.leader-count { color: #ff7883; font-weight: 900; }
.timeline { display: grid; gap: 10px; }
.timeline-item { padding: 14px 15px; display: grid; grid-template-columns: 92px 1fr auto; align-items: center; gap: 13px; border-left: 2px solid rgba(255, 69, 84, .55); background: rgba(255,255,255,.02); }
.timeline-date { color: #718098; font-size: .72rem; }
.timeline-copy strong, .timeline-copy span { display: block; }
.timeline-copy strong { font-size: .9rem; }
.timeline-copy span { color: #8795a9; font-size: .76rem; }
.timeline-time { font-weight: 900; }

.site-footer { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; padding: 42px 0 50px; display: grid; grid-template-columns: 1fr auto; gap: 22px; align-items: end; border-top: 1px solid var(--line); }
.footer-brand img { width: 130px; }
.footer-brand p, .copyright { color: #657287; font-size: .75rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; color: #8e9caf; font-size: .8rem; }
.copyright { grid-column: 1 / -1; margin: 0; }

@keyframes pulse { 50% { transform: scale(1.35); opacity: .65; } }
@media (max-width: 1120px) {
  .hero { grid-template-columns: 1fr; padding-top: 145px; }
  .record-logo-stage { min-height: 430px; }
  .record-logo-stage img { width: min(800px, 90vw); }
  .summary { grid-template-columns: repeat(2, 1fr); }
  .record-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-panel { grid-template-columns: repeat(2, 1fr); }
  .filter-panel button { align-self: stretch; }
}
@media (max-width: 820px) {
  .site-header { height: 68px; grid-template-columns: 1fr auto; }
  .brand img { width: 112px; }
  .header-cta { display: none; }
  .nav-toggle { width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; }
  .nav-toggle span { width: 25px; height: 2px; background: #dbe2ee; }
  .site-nav { position: absolute; top: 78px; left: 0; right: 0; padding: 18px; display: none; flex-direction: column; align-items: center; border: 1px solid var(--line); border-radius: 16px; background: rgba(8,13,21,.98); }
  .site-nav.is-open { display: flex; }
  .hero, .section, .site-footer { width: min(calc(100% - 30px), var(--max)); }
  .hero h1 { font-size: clamp(4rem, 19vw, 6.4rem); }
  .record-logo-stage { min-height: 330px; }
  .summary { grid-template-columns: 1fr; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .updated { text-align: left; }
  .record-grid { grid-template-columns: 1fr; }
  .insights { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 76px 1fr; }
  .timeline-time { grid-column: 2; }
  .site-footer { grid-template-columns: 1fr; }
}
@media (max-width: 590px) {
  .filter-panel { grid-template-columns: 1fr; }
  .hero { min-height: 690px; }
  .record-logo-stage { min-height: 270px; }
  .summary-card { min-height: 155px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


/* SMe-Garage R16: Rekordfahrer und letzte Meldungen */
.leader-row { min-height: 62px; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.leader-row:hover { transform: translateX(3px); border-color: rgba(130, 158, 236, .3); background: rgba(255,255,255,.035); }
.leader-position-1 { border-color: rgba(255, 188, 72, .28); background: linear-gradient(90deg, rgba(255,188,72,.08), rgba(255,255,255,.02)); }
.leader-position-2 { border-color: rgba(192, 205, 225, .23); }
.leader-position-3 { border-color: rgba(205, 127, 80, .24); }
.leader-count { display: grid; justify-items: end; line-height: 1.05; }
.leader-count b { color: #ff7883; font-size: 1.02rem; }
.leader-count small { color: #718098; font-size: .63rem; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }

.timeline-item { min-height: 72px; border: 1px solid rgba(154,175,211,.11); border-left: 3px solid rgba(255, 69, 84, .55); border-radius: 12px; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.timeline-item:hover { transform: translateX(3px); border-color: rgba(255, 89, 103, .28); background: rgba(255,255,255,.035); }
.timeline-link { color: inherit; text-decoration: none; }
.timeline-title-line { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.timeline-type { padding: 3px 7px; border-radius: 999px; font-size: .58rem !important; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.timeline-type.is-improved { color: #a2f5bf; background: rgba(46, 196, 112, .13); border: 1px solid rgba(69, 218, 132, .2); }
.timeline-type.is-new { color: #ffd2d6; background: rgba(255, 69, 84, .13); border: 1px solid rgba(255, 91, 105, .2); }
.timeline-copy em { display: block; margin-top: 4px; color: var(--green); font-size: .72rem; font-style: normal; font-weight: 850; }
.timeline-time { color: #f3f6fb; font-variant-numeric: tabular-nums; }

@media (max-width: 820px) {
  .timeline-title-line { align-items: flex-start; }
  .timeline-time { margin-top: 2px; }
}

/* SMe-Garage R17: kompaktere Rekordkarten */
@media (min-width: 1280px) {
  .record-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
}
.record-card {
  min-height: 282px;
  padding: 19px 20px;
  border-radius: 18px;
}
.record-badge { padding: 5px 8px; font-size: .61rem; }
.category-badge { font-size: .62rem; }
.record-track { margin: 18px 0 5px; font-size: 1.17rem; line-height: 1.13; }
.record-car { font-size: .9rem; }
.record-time { margin: 21px 0 6px; font-size: clamp(2rem, 3.15vw, 3rem); }
.record-driver { font-size: .9rem; }
.record-improvement { margin-top: 6px; font-size: .86rem; }
.record-footer { padding-top: 17px; gap: 9px; font-size: .68rem; }
.record-links { gap: 6px; }
.record-link { padding: 6px 8px; font-size: .69rem; }

@media (max-width: 1279px) and (min-width: 1121px) {
  .record-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
}
@media (max-width: 1120px) {
  .record-card { min-height: 270px; }
}

/* SMe-Garage R18: Rekordverlauf je Strecke und Fahrzeug */
.record-history-button {
  appearance: none;
  color: inherit;
  cursor: pointer;
  background: rgba(255,255,255,.018);
}
.record-history-button span {
  display: inline-grid;
  min-width: 18px;
  min-height: 18px;
  margin-left: 3px;
  place-items: center;
  border-radius: 999px;
  color: #dce5fb;
  background: rgba(127,159,242,.14);
  font-size: .58rem;
  font-weight: 900;
}
body.history-open, body.driver-open, body.asset-open { overflow: hidden; }
.history-modal[hidden] { display: none; }
.history-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 22px;
}
.history-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  cursor: pointer;
  background: rgba(2, 6, 12, .82);
  backdrop-filter: blur(12px);
}
.history-panel {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(88vh, 920px);
  overflow: auto;
  padding: 30px;
  border: 1px solid rgba(152, 175, 217, .23);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0, rgba(121, 153, 244, .14), transparent 34%),
    linear-gradient(155deg, rgba(18, 28, 43, .99), rgba(7, 13, 22, .99));
  box-shadow: 0 28px 90px rgba(0,0,0,.55);
}
.history-close {
  position: sticky;
  top: 0;
  float: right;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(159,179,215,.2);
  border-radius: 50%;
  color: var(--text);
  cursor: pointer;
  background: rgba(8,14,23,.92);
  font-size: 1.65rem;
  line-height: 1;
}
.history-close:hover { border-color: rgba(255,86,100,.48); background: rgba(255,61,73,.11); }
.history-header { padding-right: 54px; }
.history-kicker {
  display: block;
  margin-bottom: 8px;
  color: #ff7c88;
  font-size: .67rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.history-header h2 { margin: 0; font-size: clamp(1.9rem, 4vw, 3.3rem); line-height: 1.05; }
.history-header p { margin: 8px 0 0; color: var(--muted); font-size: 1rem; }
.history-summary {
  margin: 24px 0 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}
.history-summary > div {
  min-height: 84px;
  padding: 14px;
  display: grid;
  align-content: center;
  gap: 5px;
  border: 1px solid rgba(155,176,211,.13);
  border-radius: 14px;
  background: rgba(255,255,255,.025);
}
.history-summary small { color: #78879d; font-size: .62rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.history-summary strong { font-size: 1rem; font-variant-numeric: tabular-nums; }
.history-origin { margin-bottom: 20px; color: #718098; font-size: .72rem; }
.history-list { position: relative; display: grid; gap: 10px; }
.history-list::before {
  content: "";
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: 19px;
  width: 1px;
  background: linear-gradient(rgba(111,142,231,.55), rgba(81,216,137,.32));
}
.history-entry {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
}
.history-entry-marker {
  position: relative;
  z-index: 1;
  padding-top: 12px;
}
.history-entry-marker span {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(130,159,239,.34);
  border-radius: 50%;
  color: #dfe7fa;
  background: #111a29;
  font-size: .68rem;
  font-weight: 900;
}
.history-entry.is-improved .history-entry-marker span { border-color: rgba(78,219,139,.44); }
.history-entry-main {
  padding: 14px 16px;
  border: 1px solid rgba(155,176,211,.12);
  border-radius: 14px;
  background: rgba(255,255,255,.025);
}
.history-entry-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.history-entry-type {
  color: #ffd4d8;
  font-size: .6rem;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.history-entry.is-improved .history-entry-type { color: #83eaa9; }
.history-entry-top time { color: #718098; font-size: .66rem; }
.history-entry-time { margin: 8px 0 1px; font-size: clamp(1.55rem, 3vw, 2.2rem); font-weight: 950; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.history-entry-main > strong { font-size: .83rem; }
.history-entry-change { margin-top: 7px; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #8795a9; font-size: .72rem; }
.history-entry-change em { color: var(--green); font-style: normal; font-weight: 900; }
.history-entry-links { margin-top: 10px; display: flex; gap: 7px; }
.history-entry-links a { padding: 5px 8px; border: 1px solid rgba(155,176,211,.15); border-radius: 8px; color: #cbd6e9; font-size: .66rem; }
.history-entry-links a:hover { border-color: rgba(127,159,242,.4); background: rgba(127,159,242,.08); }

@media (max-width: 760px) {
  .history-modal { padding: 8px; align-items: end; }
  .history-panel { max-height: 94vh; padding: 22px 16px; border-radius: 20px 20px 0 0; }
  .history-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .history-entry-change { align-items: flex-start; flex-direction: column; gap: 3px; }
}
@media (max-width: 460px) {
  .history-summary { grid-template-columns: 1fr; }
  .record-links { flex-wrap: wrap; justify-content: flex-end; }
}


/* SMe-Garage R19: klickbare Rekordfahrer und Fahrerprofile */
.leader-row {
  width: 100%;
  color: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
  font: inherit;
}
.leader-name { display: grid; gap: 2px; }
.leader-name small {
  color: #66758d;
  font-size: .58rem;
  font-weight: 750;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.leader-row:hover .leader-name small { color: #9eafd0; }
.record-driver.driver-profile-trigger {
  display: block;
  padding: 0;
  border: 0;
  color: inherit;
  cursor: pointer;
  background: transparent;
  text-align: left;
  font-weight: inherit;
}
.record-driver.driver-profile-trigger:hover { color: #9cb3f5; }
.driver-modal[hidden] { display: none; }
.driver-modal {
  position: fixed;
  inset: 0;
  z-index: 2050;
  display: grid;
  place-items: center;
  padding: 22px;
}
.driver-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  cursor: pointer;
  background: rgba(2, 6, 12, .84);
  backdrop-filter: blur(13px);
}
.driver-panel {
  position: relative;
  z-index: 1;
  width: min(1000px, 100%);
  max-height: min(90vh, 940px);
  overflow: auto;
  padding: 30px;
  border: 1px solid rgba(152, 175, 217, .23);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0, rgba(121, 153, 244, .15), transparent 35%),
    radial-gradient(circle at 0 34%, rgba(255, 61, 73, .08), transparent 30%),
    linear-gradient(155deg, rgba(18, 28, 43, .99), rgba(7, 13, 22, .99));
  box-shadow: 0 28px 90px rgba(0,0,0,.58);
}
.driver-close {
  position: sticky;
  top: 0;
  float: right;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(159,179,215,.2);
  border-radius: 50%;
  color: var(--text);
  cursor: pointer;
  background: rgba(8,14,23,.92);
  font-size: 1.65rem;
  line-height: 1;
}
.driver-close:hover { border-color: rgba(255,86,100,.48); background: rgba(255,61,73,.11); }
.driver-header { padding-right: 54px; }
.driver-kicker {
  display: block;
  margin-bottom: 8px;
  color: #ff7c88;
  font-size: .67rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.driver-header h2 { margin: 0; font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1; letter-spacing: -.045em; }
.driver-header p { margin: 10px 0 0; color: var(--muted); }
.driver-summary {
  margin: 24px 0 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}
.driver-summary > div {
  min-height: 84px;
  padding: 14px;
  display: grid;
  align-content: center;
  gap: 5px;
  border: 1px solid rgba(155,176,211,.13);
  border-radius: 14px;
  background: rgba(255,255,255,.025);
}
.driver-summary small { color: #78879d; font-size: .62rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.driver-summary strong { font-size: 1.08rem; font-variant-numeric: tabular-nums; }
.driver-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.driver-tags span { padding: 5px 9px; border: 1px solid rgba(127,159,242,.18); border-radius: 999px; color: #b9c8eb; background: rgba(127,159,242,.07); font-size: .64rem; font-weight: 800; text-transform: uppercase; }
.driver-section-heading { margin: 26px 0 11px; display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.driver-section-heading span { color: #74839a; font-size: .62rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.driver-section-heading h3 { margin: 2px 0 0; font-size: 1.45rem; }
.driver-section-heading > button { padding: 7px 10px; border: 1px solid rgba(255,82,96,.25); border-radius: 9px; color: #ffd8dc; cursor: pointer; background: rgba(255,61,73,.07); font-size: .68rem; font-weight: 800; }
.driver-section-heading > button:hover { border-color: rgba(255,82,96,.5); background: rgba(255,61,73,.13); }
.driver-record-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.driver-record-item {
  position: relative;
  min-height: 108px;
  padding: 14px 15px 14px 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  border: 1px solid rgba(155,176,211,.12);
  border-radius: 14px;
  background: rgba(255,255,255,.025);
}
.driver-record-item::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: #7889a8; }
.driver-record-item.sports::before { background: #55db8b; }
.driver-record-item.formula::before { background: #7f9ff2; }
.driver-record-item > div:first-child { min-width: 0; display: grid; gap: 3px; }
.driver-record-item span { color: #7d8ca4; font-size: .58rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.driver-record-item strong { line-height: 1.15; }
.driver-record-item small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.driver-record-result { display: grid; justify-items: end; gap: 8px; }
.driver-record-result b { font-size: 1.24rem; font-variant-numeric: tabular-nums; }
.driver-record-result button { padding: 5px 8px; border: 1px solid rgba(127,159,242,.22); border-radius: 8px; color: #cbd8f3; cursor: pointer; background: rgba(127,159,242,.06); font-size: .62rem; font-weight: 800; }
.driver-record-result button:hover { border-color: rgba(127,159,242,.45); background: rgba(127,159,242,.12); }
.driver-activity-heading { margin-top: 30px; }
.driver-activity-list { display: grid; gap: 7px; }
.driver-activity-item {
  min-height: 66px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 84px 1fr auto;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(155,176,211,.1);
  border-radius: 12px;
  color: inherit;
  background: rgba(255,255,255,.02);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.driver-activity-item:hover { transform: translateX(3px); border-color: rgba(127,159,242,.28); background: rgba(255,255,255,.035); }
.driver-activity-item time { color: #718098; font-size: .64rem; }
.driver-activity-item > div { display: grid; gap: 2px; min-width: 0; }
.driver-activity-item strong { font-size: .78rem; }
.driver-activity-item span { color: var(--muted); font-size: .7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.driver-activity-item em { color: var(--green); font-size: .66rem; font-style: normal; font-weight: 850; }
.driver-activity-item > b { font-size: .9rem; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .driver-modal { padding: 8px; align-items: end; }
  .driver-panel { max-height: 94vh; padding: 22px 16px; border-radius: 20px 20px 0 0; }
  .driver-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .driver-record-list { grid-template-columns: 1fr; }
  .driver-activity-item { grid-template-columns: 66px 1fr; }
  .driver-activity-item > b { grid-column: 2; }
}
@media (max-width: 460px) {
  .driver-summary { grid-template-columns: 1fr; }
  .driver-section-heading { align-items: flex-start; flex-direction: column; }
  .driver-record-item { grid-template-columns: 1fr; }
  .driver-record-result { justify-items: start; }
}


/* SMe-Garage R20: klickbare Strecken- und Fahrzeugprofile */
.record-profile-trigger {
  max-width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  cursor: pointer;
  background: transparent;
  text-align: left;
  font: inherit;
}
.record-track.record-profile-trigger { display: block; width: 100%; font-weight: 900; }
.record-car.record-profile-trigger { display: block; width: fit-content; }
.record-profile-trigger:hover { color: #9cb3f5; }
.asset-modal[hidden] { display: none; }
.asset-modal {
  position: fixed;
  inset: 0;
  z-index: 2060;
  display: grid;
  place-items: center;
  padding: 22px;
}
.asset-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  cursor: pointer;
  background: rgba(2, 6, 12, .84);
  backdrop-filter: blur(13px);
}
.asset-panel {
  position: relative;
  z-index: 1;
  width: min(1040px, 100%);
  max-height: min(90vh, 960px);
  overflow: auto;
  padding: 30px;
  border: 1px solid rgba(152, 175, 217, .23);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0, rgba(77, 218, 139, .12), transparent 35%),
    radial-gradient(circle at 0 35%, rgba(115, 148, 240, .12), transparent 32%),
    linear-gradient(155deg, rgba(18, 28, 43, .99), rgba(7, 13, 22, .99));
  box-shadow: 0 28px 90px rgba(0,0,0,.58);
}
.asset-close {
  position: sticky;
  top: 0;
  float: right;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(159,179,215,.2);
  border-radius: 50%;
  color: var(--text);
  cursor: pointer;
  background: rgba(8,14,23,.92);
  font-size: 1.65rem;
  line-height: 1;
}
.asset-close:hover { border-color: rgba(85,219,139,.48); background: rgba(85,219,139,.10); }
.asset-header { padding-right: 54px; }
.asset-kicker {
  display: block;
  margin-bottom: 8px;
  color: #79e5a6;
  font-size: .67rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.asset-header h2 { margin: 0; font-size: clamp(2rem, 4.7vw, 3.7rem); line-height: 1; letter-spacing: -.045em; }
.asset-header p { margin: 10px 0 0; color: var(--muted); }
.asset-summary {
  margin: 24px 0 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}
.asset-summary > div {
  min-height: 84px;
  padding: 14px;
  display: grid;
  align-content: center;
  gap: 5px;
  border: 1px solid rgba(155,176,211,.13);
  border-radius: 14px;
  background: rgba(255,255,255,.025);
}
.asset-summary small { color: #78879d; font-size: .62rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.asset-summary strong { font-size: 1.08rem; font-variant-numeric: tabular-nums; }
.asset-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.asset-tags span { padding: 5px 9px; border: 1px solid rgba(85,219,139,.18); border-radius: 999px; color: #bfe8d0; background: rgba(85,219,139,.07); font-size: .64rem; font-weight: 800; text-transform: uppercase; }
.asset-section-heading { margin: 26px 0 11px; display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.asset-section-heading span { color: #74839a; font-size: .62rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.asset-section-heading h3 { margin: 2px 0 0; font-size: 1.45rem; }
.asset-section-heading > button { padding: 7px 10px; border: 1px solid rgba(85,219,139,.24); border-radius: 9px; color: #d1f6df; cursor: pointer; background: rgba(85,219,139,.07); font-size: .68rem; font-weight: 800; }
.asset-section-heading > button:hover { border-color: rgba(85,219,139,.48); background: rgba(85,219,139,.13); }
.asset-record-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.asset-record-item {
  position: relative;
  min-height: 108px;
  padding: 14px 15px 14px 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  border: 1px solid rgba(155,176,211,.12);
  border-radius: 14px;
  background: rgba(255,255,255,.025);
}
.asset-record-item::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: #7889a8; }
.asset-record-item.sports::before { background: #55db8b; }
.asset-record-item.formula::before { background: #7f9ff2; }
.asset-record-item > div:first-child { min-width: 0; display: grid; gap: 3px; }
.asset-record-item span { color: #7d8ca4; font-size: .58rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.asset-record-item strong { line-height: 1.15; }
.asset-record-item > div:first-child > button { width: fit-content; padding: 0; border: 0; color: var(--muted); cursor: pointer; background: transparent; font: inherit; font-size: .72rem; text-align: left; }
.asset-record-item > div:first-child > button:hover { color: #9cb3f5; }
.asset-record-result { display: grid; justify-items: end; gap: 8px; }
.asset-record-result b { font-size: 1.24rem; font-variant-numeric: tabular-nums; }
.asset-record-result button { padding: 5px 8px; border: 1px solid rgba(127,159,242,.22); border-radius: 8px; color: #cbd8f3; cursor: pointer; background: rgba(127,159,242,.06); font-size: .62rem; font-weight: 800; }
.asset-record-result button:hover { border-color: rgba(127,159,242,.45); background: rgba(127,159,242,.12); }
.asset-activity-heading { margin-top: 30px; }
.asset-activity-list { display: grid; gap: 7px; }
.asset-activity-item {
  min-height: 66px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 84px 1fr auto;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(155,176,211,.1);
  border-radius: 12px;
  color: inherit;
  background: rgba(255,255,255,.02);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.asset-activity-item:hover { transform: translateX(3px); border-color: rgba(85,219,139,.26); background: rgba(255,255,255,.035); }
.asset-activity-item time { color: #718098; font-size: .64rem; }
.asset-activity-item > div { display: grid; gap: 2px; min-width: 0; }
.asset-activity-item strong { font-size: .78rem; }
.asset-activity-item span { color: var(--muted); font-size: .7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asset-activity-item em { color: var(--green); font-size: .66rem; font-style: normal; font-weight: 850; }
.asset-activity-item > b { font-size: .9rem; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .asset-modal { padding: 8px; align-items: end; }
  .asset-panel { max-height: 94vh; padding: 22px 16px; border-radius: 20px 20px 0 0; }
  .asset-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .asset-record-list { grid-template-columns: 1fr; }
  .asset-activity-item { grid-template-columns: 66px 1fr; }
  .asset-activity-item > b { grid-column: 2; }
}
@media (max-width: 460px) {
  .asset-summary { grid-template-columns: 1fr; }
  .asset-section-heading { align-items: flex-start; flex-direction: column; }
  .asset-record-item { grid-template-columns: 1fr; }
  .asset-record-result { justify-items: start; }
}


/* SMe-Garage R21: kompakte Rekord-Statistiken und Bestenlisten */
.garage-highlights { padding-top: 22px; padding-bottom: 24px; }
.garage-highlights-heading { margin-bottom: 18px; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.garage-highlights-heading h2 { margin: 2px 0 0; font-size: clamp(2.1rem, 3.8vw, 4rem); }
.garage-highlights-heading > p { max-width: 410px; margin: 0; color: #74839a; text-align: right; font-size: .82rem; }
.garage-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.garage-stat-card { position: relative; min-height: 154px; padding: 18px 18px 16px; display: flex; flex-direction: column; align-items: flex-start; overflow: hidden; border: 1px solid rgba(151,171,207,.15); border-radius: 17px; color: #eef3fb; text-align: left; cursor: pointer; background: linear-gradient(150deg, rgba(20,30,45,.92), rgba(10,17,27,.88)); transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.garage-stat-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: #7b8aa1; }
.garage-stat-card::after { content: ""; position: absolute; width: 120px; height: 120px; right: -52px; top: -58px; border-radius: 50%; opacity: .12; background: currentColor; filter: blur(2px); }
.garage-stat-card:hover { transform: translateY(-3px); border-color: rgba(137,163,231,.36); background: linear-gradient(150deg, rgba(24,35,52,.96), rgba(11,19,30,.92)); }
.garage-stat-card:focus-visible { outline: 2px solid rgba(132,161,239,.85); outline-offset: 3px; }
.garage-stat-card:disabled { cursor: default; opacity: .62; transform: none; }
.garage-stat-label { color: #7c8aa0; font-size: .64rem; font-weight: 900; letter-spacing: .085em; text-transform: uppercase; }
.garage-stat-card strong { position: relative; z-index: 1; margin-top: 15px; max-width: 100%; color: #fff; font-size: clamp(1.25rem, 2vw, 1.85rem); line-height: 1.08; letter-spacing: -.025em; overflow-wrap: anywhere; }
.garage-stat-card small { position: relative; z-index: 1; margin-top: 7px; color: #8e9db2; font-size: .72rem; line-height: 1.35; }
.garage-stat-action { position: relative; z-index: 1; margin-top: auto; padding-top: 12px; color: #b8c6da; font-size: .67rem; font-weight: 800; }
.garage-stat-card.stat-driver::before { background: linear-gradient(#ff6b76, #a90e23); }
.garage-stat-card.stat-driver { color: #ff6f7a; }
.garage-stat-card.stat-improvement::before { background: linear-gradient(#62e394, #168249); }
.garage-stat-card.stat-improvement { color: #5ee092; }
.garage-stat-card.stat-track::before { background: linear-gradient(#84a5ff, #485fce); }
.garage-stat-card.stat-track { color: #82a2ff; }
.garage-stat-card.stat-car::before { background: linear-gradient(#ffba5b, #c56c1a); }
.garage-stat-card.stat-car { color: #ffb85a; }

@media (max-width: 1120px) {
  .garage-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .garage-highlights-heading { align-items: flex-start; flex-direction: column; }
  .garage-highlights-heading > p { text-align: left; }
}
@media (max-width: 590px) {
  .garage-stat-grid { grid-template-columns: 1fr; }
  .garage-stat-card { min-height: 138px; }
}

/* SMe-Garage R22: Fahrer-Auszeichnungen und Rekord-Meilensteine */
.garage-milestones {
  margin-top: 26px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(18, 26, 39, .86), rgba(10, 16, 26, .78));
  box-shadow: 0 20px 70px rgba(0, 0, 0, .2);
}
.garage-milestones-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 20px;
}
.garage-milestones-heading h2 { margin: 2px 0 0; font-size: clamp(1.55rem, 2.4vw, 2.15rem); }
.garage-milestones-heading > p { max-width: 520px; margin: 0; color: var(--muted); text-align: right; }
.milestone-driver-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.milestone-driver-card {
  min-width: 0;
  padding: 17px;
  color: var(--text);
  text-align: left;
  border: 1px solid rgba(162, 181, 214, .15);
  border-radius: 17px;
  background: rgba(8, 14, 23, .62);
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.milestone-driver-card:hover,
.milestone-driver-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(127, 159, 242, .48);
  background: rgba(16, 24, 38, .9);
  outline: none;
}
.milestone-driver-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-bottom: 12px; }
.milestone-driver-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 800; font-size: 1.02rem; }
.milestone-count { flex: 0 0 auto; color: var(--muted); font-size: .75rem; }
.milestone-driver-meta { display: block; margin-top: 11px; color: var(--muted); font-size: .78rem; }
.milestone-driver-action { display: block; margin-top: 9px; color: var(--accent); font-size: .76rem; font-weight: 800; }
.milestone-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  background: rgba(255,255,255,.04);
}
.milestone-badge > b {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: rgba(255,255,255,.08);
  font-size: .88rem;
  letter-spacing: -.03em;
}
.milestone-badge > span { min-width: 0; display: grid; gap: 2px; }
.milestone-badge strong { font-size: .82rem; line-height: 1.2; }
.milestone-badge small { color: var(--muted); font-size: .7rem; line-height: 1.3; }
.milestone-badge.is-compact { width: 100%; }
.milestone-badge.is-compact > span strong { font-size: .9rem; }
.milestone-bronze { border-color: rgba(202, 137, 84, .34); background: rgba(202, 137, 84, .08); }
.milestone-bronze > b { color: #e9ad7a; background: rgba(202, 137, 84, .15); }
.milestone-silver { border-color: rgba(190, 204, 227, .32); background: rgba(190, 204, 227, .07); }
.milestone-silver > b { color: #dce7fa; background: rgba(190, 204, 227, .13); }
.milestone-gold { border-color: rgba(255, 190, 74, .38); background: rgba(255, 190, 74, .08); }
.milestone-gold > b { color: #ffd67f; background: rgba(255, 190, 74, .15); }
.milestone-red { border-color: rgba(255, 61, 73, .4); background: rgba(255, 61, 73, .09); }
.milestone-red > b { color: #ff7780; background: rgba(255, 61, 73, .16); }
.driver-milestones { margin: 18px 0 22px; }
.driver-milestone-heading span { display: block; color: var(--accent); font-size: .7rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.driver-milestone-heading h3 { margin: 2px 0 12px; font-size: 1.15rem; }
.driver-milestone-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
@media (max-width: 960px) {
  .milestone-driver-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .garage-milestones-heading { align-items: start; }
}
@media (max-width: 680px) {
  .garage-milestones { padding: 20px 16px; }
  .garage-milestones-heading { display: block; }
  .garage-milestones-heading > p { margin-top: 8px; text-align: left; }
  .milestone-driver-grid,
  .driver-milestone-list { grid-template-columns: 1fr; }
}


/* SMe-Garage R23: Fahrer-Duell und Teamvergleich */
.driver-duel {
  margin-top: 26px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(18, 26, 39, .9), rgba(9, 15, 25, .82));
  box-shadow: 0 22px 75px rgba(0,0,0,.22);
}
.driver-duel-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 20px; }
.driver-duel-heading h2 { margin: 2px 0 0; font-size: clamp(1.65rem, 2.6vw, 2.35rem); }
.driver-duel-heading > p { max-width: 530px; margin: 0; color: var(--muted); text-align: right; }
.duel-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: 12px; margin-bottom: 16px; }
.duel-controls label { display: grid; gap: 6px; }
.duel-controls label span { color: #78879d; font-size: .65rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.duel-controls select { width: 100%; min-height: 44px; padding: 0 13px; border: 1px solid rgba(154,177,216,.18); border-radius: 12px; color: var(--text); background: #0d1623; outline: none; }
.duel-controls select:focus { border-color: rgba(127,159,242,.58); box-shadow: 0 0 0 3px rgba(127,159,242,.1); }
.duel-swap { width: 44px; height: 44px; border: 1px solid rgba(127,159,242,.24); border-radius: 12px; color: #d7e1f7; cursor: pointer; background: rgba(127,159,242,.08); font-size: 1.1rem; font-weight: 900; transition: transform .18s ease, background .18s ease; }
.duel-swap:hover { transform: rotate(180deg); background: rgba(127,159,242,.16); }
.duel-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .78fr) minmax(0, 1fr); gap: 14px; align-items: stretch; }
.duel-driver-card { min-width: 0; padding: 18px; border: 1px solid rgba(155,176,211,.14); border-radius: 18px; background: rgba(7,13,22,.64); }
.duel-driver-card.duel-left { box-shadow: inset 3px 0 0 rgba(127,159,242,.78); }
.duel-driver-card.duel-right { box-shadow: inset -3px 0 0 rgba(255,74,88,.76); }
.duel-driver-name { max-width: 100%; padding: 0; border: 0; color: #fff; cursor: pointer; background: transparent; font: inherit; font-size: 1.25rem; font-weight: 850; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.duel-driver-name:hover { color: var(--accent); }
.duel-driver-summary { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; margin: 15px 0 12px; }
.duel-driver-summary > div { min-height: 66px; padding: 10px; display: grid; align-content: center; gap: 3px; border: 1px solid rgba(155,176,211,.1); border-radius: 12px; background: rgba(255,255,255,.025); }
.duel-driver-summary small { color: #77869c; font-size: .59rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.duel-driver-summary strong { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.duel-driver-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.duel-driver-tags span { padding: 4px 8px; border: 1px solid rgba(127,159,242,.18); border-radius: 999px; color: #bdcbed; background: rgba(127,159,242,.06); font-size: .6rem; font-weight: 800; text-transform: uppercase; }
.duel-driver-best { padding: 10px 11px; display: flex; justify-content: space-between; gap: 10px; border: 1px solid rgba(85,219,139,.14); border-radius: 11px; background: rgba(85,219,139,.045); }
.duel-driver-best span { color: #799087; font-size: .66rem; font-weight: 800; }
.duel-driver-best strong { color: var(--green); font-size: .76rem; }
.duel-record-list { display: grid; gap: 6px; margin-top: 12px; }
.duel-record-row { width: 100%; padding: 8px 9px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 9px; border: 1px solid rgba(155,176,211,.09); border-radius: 10px; color: inherit; cursor: pointer; background: rgba(255,255,255,.018); text-align: left; }
.duel-record-row:hover { border-color: rgba(127,159,242,.28); background: rgba(255,255,255,.035); }
.duel-record-row > span { min-width: 0; display: grid; gap: 1px; }
.duel-record-row b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .72rem; }
.duel-record-row small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .62rem; }
.duel-record-row > strong { font-size: .76rem; font-variant-numeric: tabular-nums; }
.duel-profile-link { margin-top: 12px; padding: 0; border: 0; color: var(--accent); cursor: pointer; background: transparent; font: inherit; font-size: .7rem; font-weight: 850; }
.duel-center { padding: 16px 13px; display: flex; flex-direction: column; justify-content: center; gap: 12px; border: 1px solid rgba(155,176,211,.12); border-radius: 18px; background: linear-gradient(180deg, rgba(127,159,242,.055), rgba(255,61,73,.035)); }
.duel-vs { align-self: center; display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; color: #fff; background: rgba(255,255,255,.05); font-size: .78rem; font-weight: 950; letter-spacing: .08em; }
.duel-metric { display: grid; gap: 6px; }
.duel-metric-values { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.duel-metric-values strong { font-size: .76rem; font-variant-numeric: tabular-nums; }
.duel-metric-values strong:last-child { text-align: right; }
.duel-metric-values span { color: #75849a; font-size: .57rem; font-weight: 850; text-transform: uppercase; text-align: center; }
.duel-bars { height: 5px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.duel-bars > i { display: block; height: 100%; border-radius: 999px; }
.duel-bar-left { justify-self: end; background: linear-gradient(90deg, #526ccf, #8aa8ff); }
.duel-bar-right { justify-self: start; background: linear-gradient(90deg, #ff7b86, #b82035); }
.duel-verdict { margin-top: 4px; padding: 13px; border: 1px solid rgba(255,255,255,.1); border-radius: 13px; text-align: center; background: rgba(5,10,18,.44); }
.duel-verdict > span { color: #738198; font-size: .57rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.duel-verdict > strong { display: block; margin-top: 3px; font-size: .92rem; }
.duel-verdict p { margin: 4px 0 9px; color: var(--muted); font-size: .68rem; }
.duel-verdict > div { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }
.duel-verdict small { padding: 4px 7px; border-radius: 999px; color: #aebbd0; background: rgba(255,255,255,.045); font-size: .57rem; }
.duel-empty, .duel-empty-state { color: var(--muted); font-size: .76rem; }
.duel-empty-state { padding: 24px; text-align: center; border: 1px dashed rgba(155,176,211,.16); border-radius: 14px; }
@media (max-width: 1120px) {
  .duel-layout { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .duel-center { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 760px) {
  .driver-duel { padding: 20px 16px; }
  .driver-duel-heading { display: block; }
  .driver-duel-heading > p { margin-top: 8px; text-align: left; }
  .duel-controls { grid-template-columns: 1fr auto; }
  .duel-controls label:last-child { grid-column: 1 / -1; }
  .duel-swap { grid-column: 2; grid-row: 1; }
  .duel-layout { grid-template-columns: 1fr; }
  .duel-center { grid-column: auto; grid-row: auto; }
}
@media (max-width: 440px) {
  .duel-driver-summary { grid-template-columns: 1fr; }
}

/* SMe-Garage R24: Rekord-Chronik und Monatsbilanz */
.garage-chronicle {
  margin-top: 42px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(17, 26, 40, .94), rgba(10, 17, 28, .88));
  box-shadow: 0 22px 70px rgba(0, 0, 0, .2);
}
.garage-chronicle-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}
.garage-chronicle-heading h2 { margin: 3px 0 0; font-size: clamp(1.45rem, 2.4vw, 2.15rem); }
.garage-chronicle-heading .eyebrow { margin: 0; }
.chronicle-period-label {
  min-width: 250px;
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.chronicle-period-label select {
  width: 100%;
  min-height: 44px;
  padding: 0 38px 0 14px;
  color: var(--text);
  border: 1px solid rgba(154, 179, 225, .22);
  border-radius: 12px;
  outline: none;
  background: #0c1522;
}
.chronicle-period-label select:focus { border-color: rgba(127, 159, 242, .75); box-shadow: 0 0 0 3px rgba(127, 159, 242, .12); }
.chronicle-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.chronicle-summary-card {
  min-width: 0;
  padding: 15px 16px;
  border: 1px solid rgba(154, 179, 225, .13);
  border-radius: 15px;
  background: rgba(7, 13, 22, .62);
}
.chronicle-summary-card span,
.chronicle-summary-card small { display: block; color: var(--muted); }
.chronicle-summary-card span { font-size: .7rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.chronicle-summary-card strong { display: block; margin: 5px 0 3px; font-size: 1.35rem; line-height: 1.1; color: #fff; overflow-wrap: anywhere; }
.chronicle-summary-card small { font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chronicle-list { display: grid; gap: 20px; }
.chronicle-day {
  overflow: hidden;
  border: 1px solid rgba(154, 179, 225, .13);
  border-radius: 16px;
  background: rgba(7, 13, 22, .46);
}
.chronicle-day > header {
  min-height: 45px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid rgba(154, 179, 225, .11);
  background: rgba(18, 29, 45, .64);
}
.chronicle-day > header span { font-weight: 800; color: #fff; }
.chronicle-day > header small { color: var(--muted); }
.chronicle-day-items { display: grid; }
.chronicle-entry {
  position: relative;
  min-width: 0;
  padding: 13px 15px;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid rgba(154, 179, 225, .09);
}
.chronicle-entry:last-child { border-bottom: 0; }
.chronicle-entry::before {
  content: "";
  position: absolute;
  inset: 10px auto 10px 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--accent);
}
.chronicle-entry.is-improved::before { background: var(--green); }
.chronicle-entry.is-new::before { background: var(--orange); }
.chronicle-entry-time { display: grid; gap: 4px; }
.chronicle-entry-time span { color: #fff; font-weight: 750; }
.chronicle-entry-time b { width: max-content; padding: 2px 7px; border-radius: 999px; font-size: .64rem; letter-spacing: .06em; text-transform: uppercase; }
.chronicle-entry.is-improved .chronicle-entry-time b { color: var(--green); background: rgba(88, 220, 138, .12); }
.chronicle-entry.is-new .chronicle-entry-time b { color: var(--orange); background: rgba(255, 173, 77, .12); }
.chronicle-entry-main { min-width: 0; }
.chronicle-entry-title { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; color: var(--muted); }
.chronicle-entry-title button,
.chronicle-driver {
  padding: 0;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
}
.chronicle-entry-title button:first-child { color: #fff; font-weight: 800; }
.chronicle-entry-title button:hover,
.chronicle-driver:hover { color: var(--accent); }
.chronicle-driver { display: block; margin-top: 3px; color: #bdc8d8; font-size: .86rem; }
.chronicle-entry-main em,
.chronicle-entry-main small { display: block; margin-top: 4px; font-size: .76rem; font-style: normal; }
.chronicle-entry-main em { color: var(--green); font-weight: 750; }
.chronicle-entry-main small { color: var(--muted); }
.chronicle-entry-result {
  min-width: 178px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.chronicle-entry-result strong { font-size: 1.12rem; color: #fff; }
.chronicle-old-time { color: #778498; text-decoration: line-through; font-size: .82rem; }
.chronicle-arrow { color: #66758c; }
.chronicle-entry-result button {
  margin-left: 5px;
  padding: 6px 9px;
  color: #dce6fa;
  border: 1px solid rgba(127, 159, 242, .25);
  border-radius: 9px;
  background: rgba(127, 159, 242, .08);
  cursor: pointer;
  font-size: .72rem;
  font-weight: 750;
}
.chronicle-entry-result button:hover { border-color: rgba(127, 159, 242, .6); background: rgba(127, 159, 242, .15); }
.chronicle-empty { margin: 0; padding: 28px; color: var(--muted); text-align: center; border: 1px dashed rgba(154, 179, 225, .18); border-radius: 15px; }

@media (max-width: 1050px) {
  .chronicle-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .garage-chronicle { padding: 20px; }
  .garage-chronicle-heading { align-items: stretch; flex-direction: column; }
  .chronicle-period-label { min-width: 0; }
  .chronicle-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chronicle-entry { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; }
  .chronicle-entry-result { grid-column: 2; min-width: 0; justify-content: flex-start; flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .chronicle-summary { grid-template-columns: 1fr; }
  .chronicle-entry { grid-template-columns: 1fr; }
  .chronicle-entry-time { display: flex; align-items: center; gap: 8px; }
  .chronicle-entry-result { grid-column: 1; justify-content: flex-start; }
}

/* SMe-Garage R25: Rekord-Matrix Strecke × Fahrzeug */
.garage-record-matrix { padding-top: 68px; }
.record-matrix-heading { margin-bottom: 18px; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.record-matrix-heading h2 { margin: 0; font-size: clamp(2.4rem, 4.2vw, 4.8rem); }
.record-matrix-filter { min-width: 220px; display: grid; gap: 7px; color: #8290a5; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.record-matrix-filter select { min-height: 44px; padding: 0 13px; border: 1px solid rgba(165,184,216,.16); border-radius: 10px; color: #edf2fb; background: #0d1623; }
.record-matrix-meta { margin-bottom: 13px; color: #77869b; font-size: .78rem; }
.record-matrix-meta strong { color: #e8eef8; }
.record-matrix-scroll { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: rgba(10,17,27,.78); scrollbar-color: rgba(122,143,177,.45) rgba(255,255,255,.02); }
.record-matrix-table { width: 100%; min-width: 980px; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.record-matrix-table th, .record-matrix-table td { min-width: 155px; border-right: 1px solid rgba(151,171,207,.09); border-bottom: 1px solid rgba(151,171,207,.09); }
.record-matrix-table tr:last-child th, .record-matrix-table tr:last-child td { border-bottom: 0; }
.record-matrix-table th:last-child, .record-matrix-table td:last-child { border-right: 0; }
.record-matrix-table thead th { position: sticky; top: 0; z-index: 3; height: 68px; padding: 10px; background: #101a28; }
.record-matrix-table tbody th { position: sticky; left: 0; z-index: 2; width: 210px; min-width: 210px; padding: 10px 13px; text-align: left; background: #0d1724; }
.record-matrix-table .matrix-corner { left: 0; z-index: 4; width: 210px; min-width: 210px; color: #708097; font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; }
.record-matrix-table th button { width: 100%; padding: 5px; border: 0; color: #dce5f3; text-align: left; cursor: pointer; background: transparent; font: inherit; font-weight: 790; line-height: 1.2; }
.record-matrix-table thead th button { text-align: center; font-size: .78rem; }
.record-matrix-table th button:hover { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,77,90,.65); text-underline-offset: 4px; }
.matrix-record-cell { padding: 6px; background: rgba(255,255,255,.012); }
.matrix-record-cell button { width: 100%; min-height: 94px; padding: 12px 10px; display: grid; align-content: center; gap: 4px; border: 1px solid rgba(151,171,207,.14); border-radius: 11px; color: #dbe4f2; cursor: pointer; background: linear-gradient(150deg, rgba(23,34,50,.95), rgba(14,23,35,.9)); transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.matrix-record-cell button:hover { transform: translateY(-2px); border-color: rgba(132,159,235,.42); background: linear-gradient(150deg, rgba(29,42,61,.98), rgba(17,28,42,.94)); }
.matrix-record-cell strong { color: #fff; font-size: 1.08rem; font-variant-numeric: tabular-nums; }
.matrix-record-cell span { overflow: hidden; color: #aab8cb; font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.matrix-record-cell small { color: #69788e; font-size: .58rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.matrix-record-cell.sports button { border-left: 3px solid #39c776; }
.matrix-record-cell.formula button { border-left: 3px solid #7896fa; }
.matrix-record-cell.oval button { border-left: 3px solid #e6943d; }
.matrix-record-cell.dirt button { border-left: 3px solid #c38c5b; }
.matrix-empty-cell { height: 106px; text-align: center; background: rgba(255,255,255,.006); }
.matrix-empty-cell span { color: #344155; }
.record-matrix-empty { padding: 44px 20px; color: #7f8da2; text-align: center; }
.record-matrix-hint { margin: 10px 3px 0; color: #65748a; font-size: .7rem; }

@media (max-width: 820px) {
  .garage-record-matrix { padding-top: 48px; }
  .record-matrix-heading { align-items: flex-start; flex-direction: column; }
  .record-matrix-filter { width: 100%; min-width: 0; }
  .record-matrix-table { min-width: 820px; }
  .record-matrix-table tbody th, .record-matrix-table .matrix-corner { width: 175px; min-width: 175px; }
}

/* SMe-Garage R26: Live-Aktualisierung und neue Rekord-Hinweise */
.garage-live-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
  min-width: 250px;
}
.garage-live-controls .updated { margin: 0; text-align: right; }
.garage-live-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.garage-live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 5px 11px;
  border: 1px solid rgba(88, 220, 138, .28);
  border-radius: 999px;
  color: var(--green);
  background: rgba(88, 220, 138, .08);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .16em;
}
.garage-live-indicator i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(88, 220, 138, .1), 0 0 16px currentColor;
}
.garage-live-indicator.is-checking { color: var(--orange); border-color: rgba(255, 173, 77, .3); background: rgba(255, 173, 77, .08); }
.garage-live-indicator.is-checking i { animation: garageLivePulse .8s ease-in-out infinite alternate; }
.garage-live-indicator.is-error { color: var(--red); border-color: rgba(255, 61, 73, .32); background: rgba(255, 61, 73, .1); }
.garage-live-refresh {
  min-height: 30px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255,255,255,.035);
  cursor: pointer;
  font-size: .72rem;
  font-weight: 800;
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}
.garage-live-refresh:hover:not(:disabled) { transform: translateY(-1px); border-color: rgba(127, 159, 242, .55); background: rgba(127, 159, 242, .1); }
.garage-live-refresh:disabled { cursor: wait; opacity: .68; }
.garage-live-note { color: var(--muted); font-size: .72rem; }

.record-card.is-live-new {
  animation: garageRecordArrival 1.05s ease both;
  border-color: rgba(88, 220, 138, .62);
  box-shadow: 0 0 0 1px rgba(88, 220, 138, .18), 0 18px 52px rgba(21, 94, 61, .22), inset 0 0 32px rgba(88, 220, 138, .04);
}

.garage-live-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 160;
  width: min(390px, calc(100vw - 32px));
  padding: 21px 54px 20px 22px;
  border: 1px solid rgba(88, 220, 138, .35);
  border-radius: 20px;
  background: rgba(11, 18, 29, .96);
  box-shadow: 0 24px 80px rgba(0,0,0,.48), inset 0 1px rgba(255,255,255,.05);
  backdrop-filter: blur(18px);
  transform: translateY(18px);
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
}
.garage-live-toast:not([hidden]).is-visible { transform: translateY(0); opacity: 1; }
.garage-live-toast-kicker { display: block; margin-bottom: 5px; color: var(--green); font-size: .68rem; font-weight: 900; letter-spacing: .18em; }
.garage-live-toast strong { display: block; font-size: 1.12rem; }
.garage-live-toast p { margin: 7px 0 14px; color: var(--muted); font-size: .86rem; }
.garage-live-toast-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 1.3rem;
}
.garage-live-toast-open {
  padding: 8px 13px;
  border: 1px solid rgba(88, 220, 138, .3);
  border-radius: 10px;
  color: #dfffea;
  background: rgba(88, 220, 138, .1);
  cursor: pointer;
  font-size: .76rem;
  font-weight: 800;
}

@keyframes garageLivePulse { to { transform: scale(1.35); opacity: .55; } }
@keyframes garageRecordArrival {
  0% { transform: translateY(8px) scale(.985); filter: brightness(1.35); }
  55% { transform: translateY(-2px) scale(1.006); }
  100% { transform: none; filter: none; }
}

@media (max-width: 760px) {
  .section-heading { align-items: flex-start; }
  .garage-live-controls { align-items: flex-start; min-width: 0; width: 100%; }
  .garage-live-controls .updated { text-align: left; }
  .garage-live-actions { justify-content: flex-start; }
  .garage-live-toast { right: 16px; bottom: 16px; }
}



/* SMe-Garage R27: Favoriten und Schnellzugriff */
@media (min-width: 1121px) {
  .filter-panel { grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(145px, 1fr)) auto auto; }
}
.record-badges { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; min-width: 0; }
.record-favorite {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 211, 97, .18);
  border-radius: 50%;
  color: #66758a;
  background: rgba(255,255,255,.025);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.record-favorite:hover { color: #ffd972; border-color: rgba(255, 211, 97, .48); transform: translateY(-1px) scale(1.04); }
.record-favorite.is-active { color: #ffd45f; border-color: rgba(255, 211, 97, .58); background: rgba(255, 211, 97, .12); box-shadow: 0 0 22px rgba(255, 199, 67, .14); }
.record-card.is-favorite { border-color: rgba(255, 211, 97, .23); }
.record-card.is-favorite::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 68px;
  height: 68px;
  pointer-events: none;
  background: radial-gradient(circle at 100% 0%, rgba(255, 211, 97, .11), transparent 68%);
}
.garage-favorites-filter { white-space: nowrap; border-color: rgba(255, 211, 97, .24) !important; color: #d9c27a !important; background: rgba(255, 211, 97, .055) !important; font-weight: 800; }
.garage-favorites-filter:hover { border-color: rgba(255, 211, 97, .48) !important; background: rgba(255, 211, 97, .1) !important; }
.garage-favorites-filter.is-active { color: #17130a !important; border-color: #ffd45f !important; background: #ffd45f !important; box-shadow: 0 8px 26px rgba(255, 199, 67, .14); }
.garage-favorites-filter b { display: inline-grid; min-width: 20px; min-height: 20px; margin-left: 5px; place-items: center; padding: 0 5px; border-radius: 999px; color: inherit; background: rgba(255,255,255,.12); font-size: .68rem; }
@media (max-width: 1120px) {
  .garage-favorites-filter { width: 100%; }
}


/* SMe-Garage R28: Teilen, CSV-Export und Druckansicht */
@media (min-width: 1121px) {
  .filter-panel { grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(145px, 1fr)) auto auto auto; }
}
.garage-export-menu { position: relative; min-width: 142px; }
.garage-export-menu > summary {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(127,159,242,.24);
  border-radius: 11px;
  color: #cbd8f6;
  background: rgba(127,159,242,.055);
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
  font-size: .76rem;
  font-weight: 850;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.garage-export-menu > summary::-webkit-details-marker { display: none; }
.garage-export-menu > summary::after { content: "⌄"; margin-left: 8px; color: #7788aa; font-size: .82rem; transition: transform .18s ease; }
.garage-export-menu[open] > summary::after { transform: rotate(180deg); }
.garage-export-menu > summary:hover, .garage-export-menu[open] > summary { transform: translateY(-1px); border-color: rgba(127,159,242,.5); background: rgba(127,159,242,.11); }
.garage-export-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 9px);
  z-index: 90;
  width: 270px;
  padding: 9px;
  border: 1px solid rgba(151,171,207,.2);
  border-radius: 15px;
  background: rgba(10,17,28,.98);
  box-shadow: 0 20px 60px rgba(0,0,0,.48), inset 0 1px rgba(255,255,255,.04);
  backdrop-filter: blur(18px);
}
.garage-export-popover button {
  width: 100%;
  display: grid;
  grid-template-columns: 38px 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  padding: 10px;
  border: 0;
  border-radius: 10px;
  color: #e5ecf7;
  background: transparent;
  cursor: pointer;
  text-align: left;
}
.garage-export-popover button:hover { background: rgba(127,159,242,.1); }
.garage-export-popover button > span { grid-row: 1 / 3; align-self: center; color: #9bb1ed; font-size: .72rem; font-weight: 900; text-align: center; }
.garage-export-popover button > b { font-size: .8rem; }
.garage-export-popover button > small { margin-top: 2px; color: #74839a; font-size: .66rem; }
.garage-export-status { min-height: 18px; margin: 5px 8px 1px; color: var(--green); font-size: .66rem; line-height: 1.3; }
.garage-export-status.is-error { color: var(--red); }
@media (max-width: 1120px) {
  .garage-export-menu { width: 100%; }
  .garage-export-menu > summary { width: 100%; }
  .garage-export-popover { left: 0; right: auto; width: min(300px, calc(100vw - 38px)); }
}


/* SMe-Garage R29: Showroom- und TV-Modus */
.button-showroom {
  border: 1px solid rgba(255, 72, 90, .34);
  color: #ffdce1;
  background: linear-gradient(135deg, rgba(181, 17, 38, .2), rgba(89, 22, 99, .13));
  cursor: pointer;
  font: inherit;
}
.button-showroom:hover { border-color: rgba(255, 85, 102, .72); background: linear-gradient(135deg, rgba(205, 19, 43, .32), rgba(89, 22, 99, .2)); }
.button-showroom span { margin-right: 8px; color: #ff5365; font-size: 1rem; }
body.showroom-active { overflow: hidden; }
.garage-showroom[hidden] { display: none !important; }
.garage-showroom {
  --showroom-red: #ff3248;
  --showroom-blue: #779cff;
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  color: #eef3fb;
  background:
    radial-gradient(circle at 88% 14%, rgba(87, 62, 188, .19), transparent 30%),
    radial-gradient(circle at 8% 82%, rgba(222, 27, 54, .16), transparent 28%),
    linear-gradient(145deg, #080d15 0%, #0b1220 45%, #070b12 100%);
}
.garage-showroom::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .16;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}
.showroom-ambient { position: absolute; width: 40vw; height: 40vw; border-radius: 50%; filter: blur(90px); opacity: .12; pointer-events: none; }
.showroom-ambient-one { top: -22vw; right: -12vw; background: var(--showroom-blue); }
.showroom-ambient-two { bottom: -25vw; left: -15vw; background: var(--showroom-red); }
.showroom-header, .showroom-footer, .showroom-stage { position: relative; z-index: 2; }
.showroom-header {
  min-height: 88px;
  padding: 15px clamp(24px, 3vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(164, 183, 219, .13);
  background: rgba(5, 10, 18, .5);
  backdrop-filter: blur(20px);
}
.showroom-brand { display: flex; align-items: center; gap: 15px; }
.showroom-brand img { width: 74px; height: 54px; object-fit: contain; }
.showroom-brand div { display: grid; gap: 2px; }
.showroom-brand span { color: #7586a1; font-size: .67rem; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; }
.showroom-brand strong { font-size: clamp(1rem, 1.5vw, 1.35rem); }
.showroom-status { display: flex; align-items: center; gap: 11px; }
.showroom-live { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid rgba(65, 221, 132, .25); border-radius: 999px; color: #69e59b; background: rgba(65, 221, 132, .07); font-size: .67rem; font-weight: 900; letter-spacing: .14em; }
.showroom-live i { width: 7px; height: 7px; border-radius: 50%; background: #52dc8e; box-shadow: 0 0 12px #52dc8e; animation: showroomLivePulse 1s ease-in-out infinite alternate; }
#showroom-clock { min-width: 80px; color: #b9c5d8; font-variant-numeric: tabular-nums; font-size: .88rem; font-weight: 800; text-align: center; }
.showroom-status button, .showroom-nav-arrow {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(156, 176, 214, .18);
  border-radius: 11px;
  color: #dce5f3;
  background: rgba(142, 163, 203, .07);
  cursor: pointer;
  font-size: 1.08rem;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.showroom-status button:hover, .showroom-nav-arrow:hover { transform: translateY(-1px); border-color: rgba(151, 177, 242, .48); background: rgba(127, 159, 242, .13); }
.showroom-stage { min-height: 0; padding: clamp(22px, 3vw, 50px) clamp(28px, 5vw, 86px); display: grid; align-items: center; overflow: auto; }
.showroom-slide { width: min(1600px, 100%); margin: auto; animation: showroomSlideIn .45s cubic-bezier(.2,.75,.25,1) both; }
.showroom-overview { display: grid; grid-template-columns: minmax(330px, .8fr) minmax(560px, 1.2fr); align-items: center; gap: clamp(40px, 7vw, 120px); }
.showroom-overview-logo { min-height: 420px; display: grid; place-items: center; position: relative; }
.showroom-overview-logo::before { content: ""; position: absolute; width: 68%; aspect-ratio: 1; border-radius: 50%; background: rgba(210, 25, 49, .16); filter: blur(65px); }
.showroom-overview-logo img { position: relative; width: min(100%, 570px); max-height: 54vh; object-fit: contain; filter: drop-shadow(0 26px 55px rgba(0,0,0,.55)); }
.showroom-kicker, .showroom-slide-heading p { margin: 0 0 14px; color: var(--showroom-red); font-size: .72rem; font-weight: 950; letter-spacing: .25em; text-transform: uppercase; }
.showroom-overview-copy h1 { margin: 0; font-size: clamp(4.7rem, 8vw, 10rem); line-height: .8; letter-spacing: -.07em; text-transform: uppercase; }
.showroom-overview-copy h1 span { display: block; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 76, 94, .95); text-shadow: 0 0 55px rgba(255, 42, 63, .16); }
.showroom-overview-copy > p:not(.showroom-kicker) { max-width: 760px; margin: 28px 0 0; color: #aeb9ca; font-size: clamp(1rem, 1.55vw, 1.35rem); line-height: 1.55; }
.showroom-summary-grid { margin-top: clamp(34px, 4vw, 62px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.showroom-summary-grid article { min-height: 132px; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid rgba(151,171,207,.15); border-radius: 18px; background: rgba(17,26,40,.74); box-shadow: inset 0 1px rgba(255,255,255,.025); }
.showroom-summary-grid strong { font-size: clamp(2.1rem, 3vw, 4rem); line-height: .95; font-variant-numeric: tabular-nums; }
.showroom-summary-grid span { color: #8290a6; font-size: .69rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.showroom-slide-heading { margin-bottom: clamp(22px, 3vw, 42px); display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 10px 28px; }
.showroom-slide-heading p { grid-column: 1 / 3; margin-bottom: 0; }
.showroom-slide-heading h2 { margin: 0; font-size: clamp(2.8rem, 5vw, 6.2rem); line-height: .9; letter-spacing: -.045em; }
.showroom-slide-heading > span { color: #78869b; font-size: .78rem; text-align: right; }
.showroom-record-grid, .showroom-latest-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.5vw, 22px); }
.showroom-record-tile, .showroom-latest-grid article { min-height: 210px; padding: clamp(18px, 2vw, 27px); display: flex; flex-direction: column; border: 1px solid rgba(148, 169, 208, .16); border-radius: 20px; background: linear-gradient(150deg, rgba(22, 33, 50, .91), rgba(10, 17, 28, .83)); box-shadow: 0 20px 55px rgba(0,0,0,.16); animation: showroomTileIn .45s calc(var(--tile-index) * 55ms) both; }
.showroom-record-tile > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.showroom-record-tile > div:first-child span, .showroom-latest-grid article > span { color: #8290a5; font-size: .62rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.showroom-record-tile > div:first-child strong, .showroom-latest-grid article > strong { color: #fff; font-size: clamp(1.55rem, 2.7vw, 3.3rem); font-variant-numeric: tabular-nums; }
.showroom-record-tile h3, .showroom-latest-grid h3 { margin: 24px 0 5px; font-size: clamp(1rem, 1.5vw, 1.42rem); line-height: 1.15; }
.showroom-record-tile p, .showroom-latest-grid p { margin: 0; color: #8593a8; font-size: .8rem; }
.showroom-record-tile footer, .showroom-latest-grid footer { margin-top: auto; padding-top: 24px; display: flex; align-items: end; justify-content: space-between; gap: 15px; border-top: 1px solid rgba(151,171,207,.1); }
.showroom-record-tile footer b, .showroom-latest-grid footer b { font-size: .78rem; }
.showroom-record-tile footer small, .showroom-latest-grid footer small { color: #6f7e94; font-size: .65rem; text-align: right; }
.showroom-ranking { display: grid; gap: clamp(10px, 1.5vw, 18px); }
.showroom-ranking-row { min-height: 86px; padding: 14px 22px; display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: 20px; border: 1px solid rgba(147,168,206,.14); border-radius: 18px; background: rgba(15,24,37,.75); }
.showroom-ranking-row > b { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: linear-gradient(145deg, rgba(240,45,67,.9), rgba(120,16,32,.9)); font-size: 1.15rem; }
.showroom-ranking-row > div { min-width: 0; display: grid; gap: 11px; }
.showroom-ranking-row strong { font-size: clamp(1.05rem, 1.8vw, 1.65rem); }
.showroom-ranking-row i { position: relative; width: var(--rank-width); height: 6px; overflow: hidden; border-radius: 999px; background: linear-gradient(90deg, #ff3c50, #718fff); box-shadow: 0 0 20px rgba(101,132,224,.22); }
.showroom-ranking-row > span { min-width: 105px; color: #91a0b5; font-size: .82rem; font-weight: 800; text-align: right; }
.showroom-improvement-list { display: grid; gap: 12px; }
.showroom-improvement-list article { min-height: 87px; padding: 14px 22px; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto 100px; align-items: center; gap: 19px; border: 1px solid rgba(109, 224, 151, .15); border-radius: 17px; background: linear-gradient(90deg, rgba(29, 72, 51, .2), rgba(15,24,37,.78)); }
.showroom-improvement-list article > b { color: #718098; font-size: 1rem; }
.showroom-improvement-list h3 { margin: 0 0 4px; font-size: 1rem; }
.showroom-improvement-list p { margin: 0; color: #75849a; font-size: .75rem; }
.showroom-improvement-list article > strong { color: #61e197; font-size: clamp(1.15rem, 2vw, 1.8rem); font-variant-numeric: tabular-nums; }
.showroom-improvement-list article > small { color: #dce5f2; font-size: 1rem; font-weight: 900; text-align: right; font-variant-numeric: tabular-nums; }
.showroom-latest-grid article > strong { margin-top: 8px; }
.showroom-empty { min-height: 210px; grid-column: 1 / -1; display: grid; place-items: center; border: 1px dashed rgba(151,171,207,.17); border-radius: 20px; color: #718096; background: rgba(13,21,33,.5); }
.showroom-footer { min-height: 78px; padding: 12px clamp(24px, 3vw, 56px); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; border-top: 1px solid rgba(164, 183, 219, .12); background: rgba(5, 10, 18, .55); backdrop-filter: blur(20px); }
.showroom-dots { display: flex; align-items: center; justify-content: center; gap: 9px; }
.showroom-dots button { width: 34px; height: 31px; display: grid; place-items: center; border: 1px solid transparent; border-radius: 9px; color: #64748b; background: transparent; cursor: pointer; }
.showroom-dots button:hover { color: #c8d3e5; background: rgba(127,159,242,.08); }
.showroom-dots button.is-active { color: #fff; border-color: rgba(255,69,87,.35); background: rgba(255,54,75,.14); }
.showroom-dots span { font-size: .68rem; font-weight: 900; }
.showroom-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; overflow: hidden; background: rgba(255,255,255,.035); }
.showroom-progress i { display: block; width: 100%; height: 100%; transform-origin: left; background: linear-gradient(90deg, #ff3048, #779cff); }
.showroom-progress i.is-running { animation: showroomProgress var(--showroom-duration) linear both; }
.showroom-progress i.is-paused { transform: scaleX(.45); opacity: .7; }
@keyframes showroomProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes showroomSlideIn { from { opacity: 0; transform: translateY(18px) scale(.992); } to { opacity: 1; transform: none; } }
@keyframes showroomTileIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: none; } }
@keyframes showroomLivePulse { from { opacity: .55; transform: scale(.8); } to { opacity: 1; transform: scale(1.15); } }
@media (max-width: 1180px) {
  .showroom-overview { grid-template-columns: .75fr 1.25fr; gap: 36px; }
  .showroom-overview-logo { min-height: 300px; }
  .showroom-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .showroom-record-grid, .showroom-latest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .showroom-header { min-height: 70px; padding: 10px 14px; }
  .showroom-brand img { width: 53px; height: 40px; }
  .showroom-brand div { display: none; }
  .showroom-live, #showroom-clock { display: none; }
  .showroom-stage { padding: 18px 14px; align-items: start; }
  .showroom-overview { grid-template-columns: 1fr; gap: 15px; }
  .showroom-overview-logo { min-height: 170px; }
  .showroom-overview-logo img { max-height: 190px; }
  .showroom-overview-copy h1 { font-size: clamp(4rem, 20vw, 6rem); }
  .showroom-overview-copy > p:not(.showroom-kicker) { margin-top: 20px; font-size: .92rem; }
  .showroom-summary-grid { margin-top: 23px; grid-template-columns: repeat(2, 1fr); }
  .showroom-summary-grid article { min-height: 93px; padding: 13px; }
  .showroom-summary-grid strong { font-size: 1.65rem; }
  .showroom-slide-heading { display: block; margin-bottom: 18px; }
  .showroom-slide-heading p { margin-bottom: 8px; }
  .showroom-slide-heading h2 { font-size: 2.35rem; }
  .showroom-slide-heading > span { display: block; margin-top: 6px; text-align: left; }
  .showroom-record-grid, .showroom-latest-grid { grid-template-columns: 1fr; }
  .showroom-record-tile, .showroom-latest-grid article { min-height: 178px; }
  .showroom-ranking-row { grid-template-columns: 40px minmax(0,1fr); padding: 12px; gap: 12px; }
  .showroom-ranking-row > b { width: 35px; height: 35px; }
  .showroom-ranking-row > span { grid-column: 2; text-align: left; }
  .showroom-improvement-list article { grid-template-columns: 30px minmax(0, 1fr) auto; padding: 12px; gap: 10px; }
  .showroom-improvement-list article > small { grid-column: 2 / 4; text-align: left; }
  .showroom-footer { min-height: 62px; padding: 8px 12px; gap: 8px; }
  .showroom-nav-arrow { width: 35px; height: 35px; }
  .showroom-dots { gap: 2px; }
  .showroom-dots button { width: 29px; }
}
@media (prefers-reduced-motion: reduce) {
  .showroom-slide, .showroom-record-tile, .showroom-latest-grid article, .showroom-live i, .showroom-progress i { animation: none !important; }
}


/* SMe-Garage R30: Rekord-Alarm */
.garage-record-alert-toggle,
.garage-record-alert-test {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 5px 11px;
  border: 1px solid rgba(255, 199, 67, .22);
  border-radius: 999px;
  color: #d8c47d;
  background: rgba(255, 199, 67, .055);
  cursor: pointer;
  font-size: .69rem;
  font-weight: 850;
  white-space: nowrap;
  transition: transform .18s ease, border-color .18s ease, color .18s ease, background .18s ease, box-shadow .18s ease;
}
.garage-record-alert-toggle span { font-size: .8rem; line-height: 1; }
.garage-record-alert-toggle:hover:not(:disabled),
.garage-record-alert-test:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(255, 211, 97, .5);
  color: #ffe59a;
  background: rgba(255, 199, 67, .105);
}
.garage-record-alert-toggle.is-active {
  color: #17130a;
  border-color: #ffd45f;
  background: #ffd45f;
  box-shadow: 0 8px 25px rgba(255, 199, 67, .15), 0 0 24px rgba(255, 211, 97, .1);
}
.garage-record-alert-toggle.is-blocked,
.garage-record-alert-toggle:disabled {
  color: #758093;
  border-color: rgba(133, 148, 170, .16);
  background: rgba(133, 148, 170, .04);
  cursor: not-allowed;
  opacity: .76;
}
.garage-record-alert-test {
  padding-inline: 10px;
  color: #9eb3e8;
  border-color: rgba(127, 159, 242, .22);
  background: rgba(127, 159, 242, .055);
}
@media (max-width: 760px) {
  .garage-live-actions { gap: 7px; }
  .garage-record-alert-toggle { flex: 1 1 auto; }
}


/* SMe-Garage R31: Rundenzeit-Trends und Entwicklungsdiagramme */
.record-trend-mini {
  min-height: 36px;
  margin: 3px 0 1px;
  display: grid;
  grid-template-columns: minmax(96px, auto) minmax(82px, 1fr);
  align-items: center;
  gap: 8px;
  padding: 4px 7px;
  overflow: hidden;
  border: 1px solid rgba(139, 162, 202, .11);
  border-radius: 9px;
  color: #7f9ff4;
  background: linear-gradient(90deg, rgba(127, 159, 242, .055), rgba(19, 29, 44, .05));
  cursor: pointer;
}
.record-card.sports .record-trend-mini { color: #5fdba0; background: linear-gradient(90deg, rgba(60, 202, 133, .055), rgba(19, 29, 44, .05)); }
.record-card.formula .record-trend-mini { color: #8da5ff; }
.record-trend-mini:hover { border-color: currentColor; background-color: rgba(127, 159, 242, .07); }
.record-trend-copy { min-width: 0; display: grid; gap: 1px; }
.record-trend-copy span { color: #718098; font-size: .52rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.record-trend-copy strong { overflow: hidden; color: currentColor; font-size: .64rem; line-height: 1.1; white-space: nowrap; text-overflow: ellipsis; }
.record-trend-svg { width: 100%; height: 27px; overflow: visible; }
.trend-area { fill: currentColor; opacity: .08; }
.trend-line { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 4px currentColor); }
.trend-guide { stroke: rgba(154, 174, 211, .13); stroke-width: 1; vector-effect: non-scaling-stroke; }
.trend-point { fill: #111b29; stroke: currentColor; stroke-width: 2; vector-effect: non-scaling-stroke; }
.trend-point.is-current { fill: currentColor; filter: drop-shadow(0 0 7px currentColor); }
.history-trend-panel {
  margin: 0 0 18px;
  padding: 17px 18px 14px;
  border: 1px solid rgba(127, 159, 242, .15);
  border-radius: 16px;
  color: #82a3ff;
  background: linear-gradient(145deg, rgba(27, 40, 61, .68), rgba(11, 18, 29, .74));
  box-shadow: inset 0 1px rgba(255,255,255,.025);
}
.history-trend-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.history-trend-heading span { color: #7c8ba1; font-size: .58rem; font-weight: 950; letter-spacing: .16em; }
.history-trend-heading h3 { margin: 3px 0 0; color: #edf3fc; font-size: 1rem; }
.history-trend-delta { display: grid; gap: 2px; text-align: right; }
.history-trend-delta small { color: #718096; font-size: .58rem; }
.history-trend-delta strong { color: #62df9a; font-size: 1rem; font-variant-numeric: tabular-nums; }
.history-trend-chart { margin-top: 12px; min-height: 118px; }
.history-trend-svg { width: 100%; height: 150px; overflow: visible; }
.history-trend-axis { margin-top: 3px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.history-trend-axis span { display: grid; gap: 1px; }
.history-trend-axis span:nth-child(2) { text-align: center; }
.history-trend-axis span:last-child { text-align: right; }
.history-trend-axis small { color: #68778d; font-size: .54rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.history-trend-axis b { color: #eef4ff; font-size: .78rem; font-variant-numeric: tabular-nums; }
.history-trend-axis em { overflow: hidden; color: #7c8ba0; font-size: .58rem; font-style: normal; white-space: nowrap; text-overflow: ellipsis; }
@media (max-width: 760px) {
  .record-trend-mini { min-height: 34px; grid-template-columns: 95px 1fr; }
  .history-trend-panel { padding: 14px 12px 12px; }
  .history-trend-heading { align-items: start; }
  .history-trend-heading h3 { font-size: .9rem; }
  .history-trend-svg { height: 120px; }
  .history-trend-axis b { font-size: .68rem; }
}
@media (prefers-reduced-motion: reduce) {
  .trend-line, .trend-point { filter: none; }
}
