/* generated by packaging/build_site.py from frontend/style.css: don't edit */
.hud, .hud * { box-sizing: border-box; }
.hud.preview {
  background: radial-gradient(ellipse at 50% 120%, #3a4350 0%, #161b22 55%, #0b0d11 100%);
}
.hud .widget {
  position: absolute;
  background: color-mix(in srgb, var(--c-bg) var(--bg-opacity), transparent);
  border: 1px solid color-mix(in srgb, var(--c-border) var(--bg-opacity), transparent);
  border-radius: 4px;
  padding: 0.45em 0.8em 0.55em;
  line-height: 1.5;
  white-space: nowrap;
  opacity: var(--w-opacity, 1);
  transition: opacity 0.25s;
}
.hud .title {
  color: var(--c-comment);
  font-style: italic;
  font-size: 0.85em;
}
.hud .k { color: var(--c-label); }
.hud .muted { color: var(--c-muted); }
.hud .good { color: var(--c-good); }
.hud .bad { color: var(--c-bad); }
.hud .warn { color: var(--c-warn); }
.hud .kv {
  display: grid;
  grid-template-columns: 5ch auto;
  column-gap: 1.5ch;
}
.hud .kv .v { text-align: right; }
.hud .big-row {
  display: flex;
  gap: 2.5ch;
  margin-bottom: 0.2em;
}
.hud .big-row .k { font-size: 0.85em; }
.hud .big {
  font-size: 2em;
  font-weight: 500;
  line-height: 1.1;
}
.hud #s-pos { color: var(--c-pos); }
.hud #s-mode { color: var(--c-mode); }
.hud #s-track {
  color: var(--c-track);
  font-size: 0.85em;
  line-height: 1.3;
  margin-top: 0.2em;
}
.hud #s-config {
  color: var(--c-track);
  font-size: 0.7em;
  line-height: 1.3;
  opacity: 0.75;
}
.hud #s-track:empty, .hud #s-config:empty { display: none; }
.hud .big .tot { font-size: 0.5em; font-weight: 400; color: var(--c-muted); }
.hud #w-laps .kv { grid-template-columns: 8ch auto; }
.hud #l-last { color: var(--c-last-lap); }
.hud #l-last.good { color: var(--c-good); }
.hud #l-opt { color: var(--c-optimal-lap); }
.hud #w-incident-alert {
  font-weight: 500;
  transition: opacity 0.6s;
}
.hud #w-incident-alert.idle { opacity: 0; }
.hud.edit #w-incident-alert.idle { opacity: var(--w-opacity, 1); }
.hud #ia-x { color: var(--c-incidents); }
.hud .alert-icon {
  width: 1em;
  height: 1em;
  margin-right: 0.35em;
  vertical-align: -0.12em;
}
.hud #w-incident-alert .alert-icon { color: var(--c-incidents); }
.hud #w-hazard {
  font-weight: 500;
  color: var(--c-hazard);
  transition: opacity 0.3s;
}
.hud #w-hazard.idle { opacity: 0; }
.hud.edit #w-hazard.idle { opacity: var(--w-opacity, 1); }
.hud #w-hazard .dist { color: var(--c-fg); font-weight: 400; }
.hud .srow.trouble { background: color-mix(in srgb, var(--c-hazard) 20%, transparent); }
.hud .srow.trouble.spun { animation: trouble-flash 0.6s steps(1) infinite; }
@keyframes trouble-flash {
  50% { background: color-mix(in srgb, var(--c-hazard) 45%, transparent); }
}
@media (prefers-reduced-motion: reduce) {
.hud .srow.trouble.spun { animation: none; background: color-mix(in srgb, var(--c-hazard) 40%, transparent); }
}
.hud #w-pit {
  font-weight: 500;
  color: var(--c-limiter);
  transition: opacity 0.3s;
}
.hud #w-pit.missing { color: var(--c-bad); }
.hud #w-pit.idle { opacity: 0; }
.hud.edit #w-pit.idle { opacity: var(--w-opacity, 1); }
.hud #w-fuel .v { color: var(--c-fuel); }
.hud #w-fuel .v.bad { color: var(--c-bad); }
.hud #w-fuel .v.good { color: var(--c-good); }
.hud #w-fuel .v.warn { color: var(--c-warn); }
.hud .tank {
  position: relative;
  height: 0.7em;
  margin: 0.15em 0 0.35em;
  border-radius: 2px;
  background: color-mix(in srgb, var(--c-muted) 22%, transparent);
  overflow: hidden;
}
.hud .tank-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--c-fuel);
  transition: width 0.3s linear;
}
.hud .tank-fill.warn { background: var(--c-warn); }
.hud .tank-fill.bad { background: var(--c-bad); }
.hud .tank-mark {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  margin-left: -1px;
  background: var(--c-fg);
  display: none;
}
.hud #clock { color: var(--c-clock); }
.hud #clock .sec { font-size: 0.5em; font-weight: 400; color: var(--c-muted); }
.hud .srow .ir { color: var(--c-irating); text-align: right; font-size: 0.9em; }
.hud .srow .ir.lic {
  --lic-dim: color-mix(in srgb, var(--lic) var(--lic-k), #000);
  justify-self: end;
  padding: 0 0.3em;
  border-radius: 3px;
  line-height: 1.25;
  color: color-mix(in srgb, var(--lic) 80%, #fff);
  border: 1px solid var(--lic-dim);
  background: color-mix(in srgb, var(--lic-dim) 30%, transparent);
}
.hud .srow .ir.sr0 { --lic-k: 40%; }
.hud .srow .ir.sr1 { --lic-k: 60%; }
.hud .srow .ir.sr2 { --lic-k: 80%; }
.hud .srow .ir.sr3 { --lic-k: 100%; font-weight: 500; }
.hud .srow .ir.pro { color: var(--c-fg); border-color: color-mix(in srgb, var(--c-fg) 45%, transparent); background: rgba(0, 0, 0, 0.6); }
.hud .srow {
  display: grid;
  grid-template-columns: 4.5ch 4ch 5ch 1.35em 16ch 1.1em 3ch 1.4em 8ch 8ch;
  column-gap: 1ch;
  align-items: center;
  padding: 0 0.4em;
  border-left: 2px solid transparent;
}
.hud .srow.me {
  background: color-mix(in srgb, var(--c-me) 12%, transparent);
  border-left-color: var(--c-me);
}
.hud .srow .radio {
  width: 1.15em;
  height: 1.15em;
  padding: 0.14em;
  border-radius: 50%;
  background: var(--c-radio);
  color: var(--c-bg);
  visibility: hidden;
}
.hud .srow.talking .radio {
  visibility: visible;
  animation: radio-pulse 0.9s ease-in-out infinite;
}
.hud .srow.talking:not(.me) { background: color-mix(in srgb, var(--c-radio) 16%, transparent); }
@keyframes radio-pulse {
  50% { opacity: 0.45; }
}
@media (prefers-reduced-motion: reduce) {
.hud .srow.talking .radio { animation: none; }
}
.hud .srow .pos {
  justify-self: start;
  font-weight: 500;
  color: var(--c-pos);
}
.hud .srow .pos.class-color, .hud .srow.me .pos.class-color { color: var(--badge); }
.hud .srow .tag {
  font-size: 0.8em;
  text-align: center;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.hud .srow .tag.cls { font-weight: 700; }
.hud .srow.leader { border-bottom: 1px dashed var(--c-border); }
.hud .srow .tag.lap-up { color: var(--c-lap-up); font-weight: 500; }
.hud .srow .tag.lap-down { color: var(--c-lap-down); font-weight: 500; }
.hud .srow.me .pos { color: var(--c-me); }
.hud .srow .num { color: var(--c-number); }
.hud .srow .name { color: var(--c-name); overflow: hidden; text-overflow: ellipsis; }
.hud .srow.me .name { color: var(--c-me); }
.hud .srow.lap-up .name, .hud .srow.lap-up .num { color: var(--c-lap-up); }
.hud .srow.lap-down .name, .hud .srow.lap-down .num { color: var(--c-lap-down); }
.hud .srow .tire {
  justify-self: center;
  width: 1.45em;
  height: 1.45em;
  border-radius: 50%;
  font-size: 0.75em;
  font-weight: 700;
  line-height: 1.25em;
  text-align: center;
  border: 0.13em solid transparent;
}
.hud .srow .tire.on { border-color: var(--tire); color: var(--tire); }
.hud .srow .tire.wet { --tire: var(--c-tire-wet); }
.hud .srow .tire.soft { --tire: var(--c-tire-soft); }
.hud .srow .tire.medium { --tire: var(--c-tire-medium); }
.hud .srow .tire.hard { --tire: var(--c-tire-hard); }
.hud .srow .tire.other { --tire: var(--c-muted); }
.hud .srow .best { color: var(--c-best); text-align: right; }
.hud .srow .best.class-best { color: var(--c-best-class); }
.hud .srow .gap { text-align: right; }
.hud .srow .gap.ahead { color: var(--c-ahead); }
.hud .srow .gap.behind { color: var(--c-behind); }
.hud .srow.pit .name::after { content: " PIT"; color: var(--c-warn); }
.hud .flag {
  width: 1.3em;
  height: 0.95em;
  object-fit: cover;
  border-radius: 1px;
  visibility: hidden;
}
.hud .flag.on { visibility: visible; }
.hud .drow {
  display: grid;
  grid-template-columns: 7ch 13em;
  column-gap: 1ch;
  align-items: center;
}
.hud .drow .v { text-align: right; }
.hud .delta .title b { font-weight: 500; font-style: normal; }
.hud .delta .title .rp { color: var(--c-pos); }
.hud .delta .title .rn { color: var(--c-name); }
.hud .delta .title .cls-dot {
  display: inline-block;
  width: 0.6em;
  height: 0.6em;
  border-radius: 50%;
  background: var(--dot);
  vertical-align: 0.05em;
}
.hud .delta.ahead .v { color: var(--c-ahead); }
.hud .delta.behind .v { color: var(--c-behind); }
.hud .delta .catch {
  font-size: 0.8em;
  color: var(--c-muted);
  min-height: 1.3em;
}
.hud .delta.ahead .bar::after, .hud .delta.behind .bar::after, .hud .delta.closest .bar::after { display: none; }
.hud .delta.ahead .fill.prox { background: var(--c-ahead); }
.hud .delta.behind .fill.prox { background: var(--c-behind); }
.hud .delta .v.good { color: var(--c-good); }
.hud .delta .v.bad { color: var(--c-bad); }
.hud .widget.off { display: none; }
.hud .bar {
  position: relative;
  height: 0.6em;
  border-radius: 2px;
  background: color-mix(in srgb, var(--c-muted) 22%, transparent);
}
.hud .bar::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -0.15em;
  bottom: -0.15em;
  width: 1px;
  background: var(--c-muted);
}
.hud .fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 0;
  border-radius: 2px;
}
.hud .fill.good { background: var(--c-good); }
.hud .fill.bad { background: var(--c-bad); }
.hud #map {
  display: block;
  width: 20em;
  height: 15em;
}
.hud #w-radar {
  padding: 0;
  border-radius: 50%;
  background: transparent;
  border: none;
}
.hud #radar {
  display: block;
  width: 11em;
  height: 11em;
}
.hud #w-radar.idle { opacity: 0; }
.hud .delta.idle { opacity: 0; }
.hud.edit .delta.idle { opacity: var(--w-opacity, 1); }
.hud.qualify:not(.edit) #w-radar { display: none; }
.hud.offline:not(.edit) .widget { opacity: 0; }
.hud.away:not(.edit) .widget { opacity: 0 !important; transition: opacity 0.6s; }
.hud #status {
  position: fixed;
  left: 0;
  right: 0;
  top: 8px;
  width: fit-content;
  margin: 0 auto; 
  padding: 0.2em 0.8em;
  border-radius: 4px;
  background: color-mix(in srgb, var(--c-bg) var(--bg-opacity), transparent);
  color: var(--c-comment);
  font-style: italic;
  display: none;
}
.hud.offline #status, .hud.away:not(.edit) #status { display: block; }
.hud #status-close {
  margin-left: 0.5em;
  padding: 0 0.4em;
  font: inherit;
  font-style: normal;
  line-height: 1.2;
  color: var(--c-muted);
  background: transparent;
  border: 1px solid var(--c-border);
  border-radius: 3px;
  cursor: pointer;
}
.hud #status-close:hover { color: var(--c-bad); border-color: var(--c-bad); }
.hud.preview #status-close { display: none; }
.hud.edit .widget {
  outline: 1px dashed var(--c-warn);
  outline-offset: 2px;
  cursor: move;
}
.hud.edit #w-radar.idle { opacity: var(--w-opacity, 1); }
.hud.edit .widget.off {
  display: block;
  opacity: 0.35;
  outline-color: var(--c-muted);
}
.hud .w-toggle {
  display: none;
  position: absolute;
  top: -0.8em;
  right: -0.6em;
  z-index: 1;
  padding: 0 0.45em;
  font: 11px var(--font);
  line-height: 1.5;
  border-radius: 3px;
  border: 1px solid var(--c-warn);
  background: var(--c-bg);
  color: var(--c-good);
  cursor: pointer;
}
.hud.edit .w-toggle { display: block; }
.hud .widget.off .w-toggle { color: var(--c-muted); border-color: var(--c-muted); }
.hud.edit .widget.selected { outline: 2px solid var(--c-warn); }
.hud .snap-guide {
  display: none;
  position: fixed;
  z-index: 50;
  pointer-events: none;
  background: #ff3dbb;
}
.hud .snap-guide.x { width: 1px; margin-left: -0.5px; }
.hud .snap-guide.y { height: 1px; margin-top: -0.5px; }
.hud #selected-rows button { margin-top: 4px; }
.hud #edit-panel {
  display: none;
  position: fixed;
  z-index: 100; 
  right: 16px;
  top: 16px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  width: 19rem;
  padding: 0.6rem 0.8rem;
  font-size: 12px;
  background: #1e1e1e;
  border: 1px solid #3c3c3c;
  border-radius: 4px;
  color: #d4d4d4;
  user-select: auto;
}
.hud.edit #edit-panel { display: block; }
.hud #edit-panel .row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 1px 0;
}
.hud #edit-panel input[type="color"] {
  width: 2.2rem;
  height: 1.3rem;
  border: 1px solid #3c3c3c;
  background: none;
  padding: 0;
}
.hud #edit-panel input[type="range"] { width: 8rem; }
.hud #edit-panel #theme-rows {
  max-height: 40vh;
  overflow-y: auto;
  padding-right: 4px;
  margin-top: 6px;
  border-top: 1px solid #3c3c3c;
}
.hud #edit-panel select {
  font: inherit;
  color: #d4d4d4;
  background: #2d2d2d;
  border: 1px solid #3c3c3c;
  border-radius: 3px;
}
.hud #edit-panel .sub { color: #808080; margin-top: 8px; }
.hud #edit-panel .buttons { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.hud #edit-panel .panel-head { display: flex; justify-content: space-between; align-items: center; gap: 6px; flex-wrap: wrap; }
.hud #edit-panel .panel-head .buttons { margin-top: 0; }
.hud #edit-panel #btn-done { color: var(--c-good); border-color: var(--c-good); }
.hud #edit-panel #btn-exit { color: var(--c-bad); }
.hud.preview #btn-exit { display: none; }
.hud #edit-panel button {
  font: inherit;
  color: #d4d4d4;
  background: #2d2d2d;
  border: 1px solid #3c3c3c;
  border-radius: 3px;
  padding: 2px 8px;
  cursor: pointer;
}
.hud #edit-panel button:hover { background: #37373d; }
.hud #edit-panel .section { margin: 8px 0 2px; }
.hud #edit-panel .section > summary {
  color: #6a9955;
  font-style: italic;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.hud #edit-panel .section > summary::-webkit-details-marker { display: none; }
.hud #edit-panel .section > summary::before { content: "▸ // "; }
.hud #edit-panel .section[open] > summary::before { content: "▾ // "; }
.hud #edit-panel .panel-head { cursor: move; }
.hud #edit-panel .panel-head button { cursor: pointer; }
.hud #edit-panel .hint { color: #808080; margin: 6px 0 0; }
