/* VexBot interface — same design language as the VexShop website: background #070911, silver only,
   skewed controls, hairline lists. The window is frameless; its rounded corners and shadow are drawn here. */
:root {
  --bg: #070911;
  --raised: #0b0e19;
  --line: rgba(214, 220, 240, .10);
  --line-strong: rgba(214, 220, 240, .22);
  --ink: #eef0f6;
  --ink-2: #a6abbb;
  --ink-3: #7d8396;
  --silver-hi: #f7f8fb;
  --silver-lo: #b1b6c4;
  --silver: linear-gradient(180deg, var(--silver-hi), var(--silver-lo));
  --live: #86e0a6;
  --bad: #f0928f;
  --display: 'Saira', 'Bahnschrift', 'Segoe UI', sans-serif;
  --body: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', Consolas, ui-monospace, monospace;
  --side: 206px;
  --bar: 46px;
  --pf: 42px;
  --status: 30px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  /* the website's cursor: a silver arrow; over clickable elements, its dark-filled, white-outlined variant */
  --cur-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23ffffff'/%3E%3Cstop offset='1' stop-color='%23a4a9b9'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M4 3 L5.6 23.6 L11 17.9 L20.6 17.2 Z' fill='url(%23g)' stroke='%23070911' stroke-width='1.3' stroke-linejoin='round'/%3E%3C/svg%3E") 4 3;
  --cur-link: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath d='M4 3 L5.6 23.6 L11 17.9 L20.6 17.2 Z' fill='%23070911' stroke='%23ffffff' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E") 4 3;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: transparent; overflow: hidden; }
html.web-preview { background: #1a1d26; }          /* lets the shadow show when previewing in a browser */
html.embed { background: transparent; }            /* embedded in the website: its background shows through */
body {
  font: 400 14px/1.5 var(--body); color: var(--ink);
  -webkit-font-smoothing: antialiased; cursor: var(--cur-arrow), default;
  user-select: none; -webkit-user-select: none;
}
button, input { font: inherit; color: inherit; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--silver-hi); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ═════════ WINDOW ═════════ */
.app {
  position: fixed; inset: 20px;
  display: grid; grid-template-columns: var(--side) minmax(0, 1fr); grid-template-rows: var(--bar) var(--pf) minmax(0, 1fr) var(--status);
  border-radius: 16px; overflow: hidden;
  background: radial-gradient(110% 70% at 62% -18%, rgba(128, 148, 228, .09), transparent 62%), var(--bg);
  box-shadow: 0 0 0 1px rgba(214, 220, 240, .14), 0 4px 14px rgba(0, 0, 0, .55);
}
/* the horizon line from the website's footer: where the content ends, just above the status bar */
.streak {
  position: absolute; z-index: 0; pointer-events: none;
  width: 5000px; height: 5000px; left: 50%; margin-left: -2500px; top: calc(100% - 78px);
  border-radius: 50%; border-top: 1.5px solid rgba(236, 241, 255, .75);
  filter: drop-shadow(0 0 7px rgba(190, 208, 255, .6));
  -webkit-mask-image: linear-gradient(90deg, transparent 38%, #000 50%, transparent 62%);
          mask-image: linear-gradient(90deg, transparent 38%, #000 50%, transparent 62%);
  opacity: .6;
}
.dust { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

/* ═════════ TITLE BAR (the window is dragged from here) ═════════ */
.bar {
  grid-column: 1 / -1; position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 10px 0 16px; border-bottom: 1px solid var(--line);
}
.bar-brand { display: flex; align-items: center; gap: .5rem; height: 100%; }
.bar-brand > * { pointer-events: none; }
.bar-brand img { width: 27px; height: 27px; }
.bar-brand b { font: italic 700 1.08rem/1 var(--display); font-stretch: 125%; letter-spacing: -.01em; }
.bar-brand span { font: 400 .68rem/1 var(--mono); color: var(--ink-3); margin-left: .25rem; padding-top: 3px; }
.bar-state {
  position: absolute; left: 50%; top: 0; height: 100%; transform: translateX(-50%); pointer-events: none;
  display: flex; align-items: center; gap: .55rem;
  font: 500 .72rem/1 var(--display); font-stretch: 112%; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); flex: none; transition: background-color .25s, box-shadow .25s; }
.dot.live { background: var(--live); box-shadow: 0 0 0 3px rgba(134, 224, 166, .16); }

/* the window's own buttons */
.win { display: flex; gap: 7px; padding-right: 4px; }
.win-btn {
  width: 38px; height: 26px; display: grid; place-items: center;
  background: transparent; border: 1px solid var(--line-strong); color: var(--ink-2);
  transform: skewX(-12deg); cursor: var(--cur-link), pointer;
  transition: color .16s, background-color .16s, border-color .16s, transform .12s;
}
.win-btn svg { width: 14px; height: 14px; transform: skewX(12deg); stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.win-btn:hover { color: var(--ink); border-color: var(--silver-hi); background: rgba(214, 220, 240, .07); }
.win-btn:active { transform: skewX(-12deg) scale(.94); }
.win-btn[aria-pressed="true"], .win-close:hover { color: #0a0c14; background: var(--silver); border-color: transparent; }
.win-btn[aria-pressed="true"] svg { fill: currentColor; }

/* ═════════ LICENSE SCREEN ═════════
   Not an overlay card: while locked, the profile bar, rail and panels are hidden and this takes
   their place on the same background (dust + horizon line stay visible). */
.is-locked .profiles, .is-locked .side, .is-locked .stage, .is-locked .status > * { opacity: 0; pointer-events: none; }
.gate {
  position: absolute; left: 0; right: 0; top: var(--bar); bottom: var(--status); z-index: 20;
  display: flex; align-items: center; padding: 0 88px 46px;
}
.gate[hidden] { display: none; }
.gate-box { width: 580px; animation: rowIn .4s var(--ease) both; }
.gate-box h1 { font: italic 700 3.5rem/.95 var(--display); font-stretch: 125%; letter-spacing: -.02em; }
.gate-text { margin-top 1rem; margin-top: 1rem; color: var(--ink-2); font-size: 1rem; }

/* key field and its button are one skewed piece, like the buttons everywhere else */
.key-row {
  position: relative; display: flex; height: 54px; margin: 2.3rem 0 0 6px; overflow: hidden;
  border: 1px solid var(--line-strong); background: rgba(214, 220, 240, .04);
  transform: skewX(-12deg); transition: border-color .16s, background-color .16s;
}
.key-row:focus-within { border-color: var(--silver-hi); background: rgba(214, 220, 240, .07); }
.key-row.is-bad { border-color: var(--bad); }
.key-row input {
  flex: 1; min-width: 0; padding: 0 1.3rem; background: none; border: 0; outline: 0; transform: skewX(12deg);
  font: 500 1rem/1 var(--mono); letter-spacing: .1em; color: var(--ink);
  user-select: text; -webkit-user-select: text; cursor: text;
}
.key-row input::placeholder { color: var(--ink-3); opacity: .7; }
.key-row input:disabled { opacity: .5; }
.key-row button {
  flex: none; min-width: 150px; padding: 0 1.6rem; border: 0; background: var(--silver); color: #0a0c14; cursor: var(--cur-link), pointer;
  font: 600 .8rem/1 var(--display); font-stretch: 112%; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  transition: filter .16s;
}
.key-row button > span { display: inline-block; transform: skewX(12deg); }
.key-row button:hover { filter: brightness(1.08); }
.key-row button:focus-visible { outline-offset: -4px; outline-color: #0a0c14; }
.key-row::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 34%; height: 2px; background: var(--silver-hi); opacity: 0;
}
.gate.is-waiting .key-row::after { opacity: 1; animation: scan 1.1s ease-in-out infinite alternate; }
.gate.is-waiting .key-row button { pointer-events: none; filter: saturate(.6) brightness(.82); }
@keyframes scan { from { transform: translateX(-30%); } to { transform: translateX(225%); } }

.gate-error { min-height: 1.5em; margin: .75rem 0 0 2px; font-size: .84rem; color: var(--bad); }

.check { display: inline-flex; align-items: center; gap: .75rem; margin: .5rem 0 0 4px; color: var(--ink-2); font-size: .86rem; cursor: var(--cur-link), pointer; }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check i { position: relative; width: 16px; height: 16px; flex: none; border: 1px solid var(--line-strong); transform: skewX(-12deg); transition: border-color .16s; }
.check i::after { content: ''; position: absolute; inset: 3px; background: var(--silver); transform: scale(0); transition: transform .18s var(--ease); }
.check input:checked + i { border-color: var(--silver-lo); }
.check input:checked + i::after { transform: none; }
.check input:focus-visible + i { outline: 2px solid var(--silver-hi); outline-offset: 3px; }
.check:hover { color: var(--ink); }

.gate-facts { margin-top: 2.6rem; border-top: 1px solid var(--line); }
.gate-facts li { display: flex; align-items: center; min-height: 42px; border-bottom: 1px solid var(--line); font-size: .86rem; color: var(--ink-2); }
.gate-facts li > span:first-child { width: 168px; flex: none; font: 400 .66rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.link { background: none; border: 0; padding: 0; color: var(--ink); cursor: var(--cur-link), pointer; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; transition: text-decoration-color .16s; }
.link:hover { text-decoration-color: var(--silver-hi); }

/* ═════════ PROFILE BAR: one profile per game, each with its own settings ═════════ */
.profiles {
  grid-column: 1 / -1; grid-row: 2; position: relative; z-index: 3; min-width: 0;
  display: flex; align-items: center; gap: 14px; padding: 0 14px 0 6px; border-bottom: 1px solid var(--line);
}
.pf-list { display: flex; align-items: stretch; flex: 1; min-width: 0; height: 100%; overflow-x: auto; scrollbar-width: none; }
.pf-list::-webkit-scrollbar { display: none; }
.pf {
  position: relative; display: flex; align-items: center; gap: .55rem; flex: none; padding: 0 16px;
  background: none; border: 0; cursor: var(--cur-link), pointer; color: var(--ink-3); white-space: nowrap;
  font: italic 600 .92rem/1 var(--display); font-stretch: 112%; transition: color .18s;
}
.pf::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; background: var(--silver);
  transform: scaleX(0) skewX(-24deg); transition: transform .3s var(--ease);
}
.pf:hover { color: var(--ink-2); }
.pf[aria-selected="true"] { color: var(--ink); }
.pf[aria-selected="true"]::after { transform: scaleX(1) skewX(-24deg); }
.pf.unset span { font-weight: 500; }
.pf:focus-visible { outline-offset: -3px; }
.pf-none { align-self: center; padding: 0 12px; color: var(--ink-3); font-size: .86rem; }
.pf-add { flex: none; }

/* ═════════ SIDE RAIL: tabs ═════════ */
.side {
  grid-row: 3; position: relative; z-index: 2; min-height: 0;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 12px 0 14px; border-right: 1px solid var(--line);
}
.tabs { position: relative; display: flex; flex-direction: column; }
.tab-ink {
  position: absolute; left: 0; top: 0; width: 100%; height: 40px; pointer-events: none;
  background: linear-gradient(90deg, rgba(214, 220, 240, .10), rgba(214, 220, 240, 0) 88%);
  transition: transform .34s var(--ease);
}
.tab-ink::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; background: var(--silver); transform: skewY(-24deg); }
.tab {
  position: relative; display: flex; align-items: center; gap: .72rem; height: 40px; padding: 0 16px 0 19px;
  background: none; border: 0; cursor: var(--cur-link), pointer; text-align: left; color: var(--ink-3);
  font: 500 .76rem/1 var(--display); font-stretch: 112%; letter-spacing: .09em; text-transform: uppercase;
  transition: color .18s;
}
.tab svg { width: 17px; height: 17px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.tab span { flex: 1; }
.tab em { width: 6px; height: 6px; border-radius: 50%; background: var(--live); opacity: 0; transform: scale(.4); transition: opacity .2s, transform .2s; }
.tab.on em { opacity: 1; transform: none; }
.tab:hover { color: var(--ink-2); }
.tab[aria-selected="true"] { color: var(--ink); }
.tab:focus-visible { outline-offset: -3px; }

.side-foot { padding: 0 16px; display: grid; gap: 13px; }
.who { border-top: 1px solid var(--line); padding-top: 13px; }
.who span { display: block; font: 400 .66rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.who b { display: block; margin-top: .4rem; font: 600 .95rem/1.2 var(--display); font-stretch: 110%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ═════════ BUTTON (the website's skewed button) ═════════ */
.btn {
  display: inline-block; padding: .72rem 1.3rem; background: transparent; cursor: var(--cur-link), pointer;
  font: 600 .78rem/1 var(--display); font-stretch: 112%; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  color: var(--ink); border: 1px solid var(--line-strong); transform: skewX(-12deg);
  transition: background-color .18s, border-color .18s, color .18s, transform .14s;
}
.btn > span { display: inline-block; transform: skewX(12deg); }
.btn:hover { border-color: var(--silver-hi); }
.btn:active { transform: skewX(-12deg) scale(.97); }
.btn-solid { color: #0a0c14; border-color: transparent; background: var(--silver); }
.btn-solid:hover { background: linear-gradient(180deg, #fff, #d2d6e0); border-color: transparent; }
.btn-sm { padding: .5rem .9rem; font-size: .7rem; }
.btn-wide { display: block; width: calc(100% - 10px); margin-inline: auto; text-align: center; padding-block: .85rem; }
.btn.is-nudge { animation: nudge .36s var(--ease); }
@keyframes nudge { 30% { transform: skewX(-12deg) translateX(-5px); } 65% { transform: skewX(-12deg) translateX(4px); } }

/* ═════════ STAGE: tab panels ═════════ */
.stage { grid-row: 3; grid-column: 2; position: relative; z-index: 1; min-width: 0; min-height: 0; overflow: hidden; }
.panel {
  position: absolute; inset: 0; padding: 22px 28px 18px; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(var(--off, 14px));
  transition: opacity .16s ease-in, transform .2s ease-in, visibility 0s .2s;      /* exit: accelerating */
}
.panel.is-active {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .28s ease-out .07s, transform .36s var(--ease) .07s, visibility 0s;   /* enter: decelerating */
}
.panel::-webkit-scrollbar { width: 8px; }
.panel::-webkit-scrollbar-thumb { background: rgba(214, 220, 240, .16); }
.panel::-webkit-scrollbar-thumb:hover { background: rgba(214, 220, 240, .28); }

.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; padding-bottom: 16px; border-bottom: 1px solid var(--line-strong); }
.panel-head h1 { font: italic 700 1.72rem/1.05 var(--display); font-stretch: 125%; letter-spacing: -.012em; }
.panel-head p { margin-top: .45rem; color: var(--ink-2); font-size: .9rem; max-width: 54ch; }
.panel-head .switch { margin-top: .35rem; }

/* rows: what it is on the left, its control on the right */
.row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 58px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.row-t b { display: block; font: 600 .95rem/1.25 var(--display); font-stretch: 108%; }
.row-t small { display: block; margin-top: .18rem; color: var(--ink-3); font-size: .82rem; }
.panel.is-active .row, .panel.is-active .stagger { animation: rowIn .38s var(--ease) both; animation-delay: calc(var(--i, 0) * 30ms + 110ms); }
@keyframes rowIn { from { opacity: 0; transform: translateY(8px); } }

/* Profile panel */
.row-t { min-width: 0; }
.row-t small.path { font: 400 .76rem/1.5 var(--mono); color: var(--ink-2); word-break: break-all; user-select: text; -webkit-user-select: text; }
.val { flex: none; font: italic 600 1rem/1 var(--display); font-stretch: 112%; }
.btn.is-armed { border-color: var(--silver-hi); color: var(--ink); background: rgba(214, 220, 240, .10); }

/* No profile yet: the stage shows one call to action and the rail is dimmed */
.empty-stage { position: absolute; inset: 0; z-index: 2; display: none; flex-direction: column; align-items: flex-start; justify-content: center; padding: 0 56px 40px; }
.empty-stage h1 { font: italic 700 1.9rem/1.08 var(--display); font-stretch: 125%; letter-spacing: -.012em; max-width: 18ch; }
.empty-stage p { margin: .9rem 0 1.7rem; color: var(--ink-2); max-width: 46ch; }
.no-profile .empty-stage { display: flex; animation: rowIn .4s var(--ease) both; }
.no-profile .panel { display: none; }
.no-profile .tabs, .no-profile .side-foot { opacity: .3; pointer-events: none; }

/* ═════════ CONTROLS ═════════ */
.switch { position: relative; display: inline-flex; align-items: center; gap: .75rem; cursor: var(--cur-link), pointer; flex: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch i { position: relative; width: 46px; height: 22px; border: 1px solid var(--line-strong); transform: skewX(-12deg); transition: background-color .2s, border-color .2s; }
.switch i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 16px; background: var(--ink-3); transition: transform .24s var(--ease), background .2s; }
.switch input:checked + i { border-color: var(--silver-lo); background: rgba(214, 220, 240, .10); }
.switch input:checked + i::after { transform: translateX(22px); background: var(--silver); }
.switch input:focus-visible + i { outline: 2px solid var(--silver-hi); outline-offset: 3px; }
.switch u { min-width: 3.6em; text-decoration: none; font: 400 .7rem/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); transition: color .2s; }
.switch input:checked ~ u { color: var(--live); }

.range { display: flex; align-items: center; gap: .9rem; flex: none; }
.range input { -webkit-appearance: none; appearance: none; width: 200px; height: 20px; background: transparent; cursor: var(--cur-link), pointer; }
.range input::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, var(--silver-lo) var(--p, 50%), var(--line-strong) var(--p, 50%)); }
.range input::-webkit-slider-thumb { -webkit-appearance: none; width: 9px; height: 18px; margin-top: -8px; border: 0; background: var(--silver); transform: skewX(-12deg); transition: transform .12s; }
.range input:active::-webkit-slider-thumb { transform: skewX(-12deg) scaleY(1.15); }
.range output { min-width: 4.4em; text-align: right; font: 500 .8rem/1 var(--mono); }

.step { display: inline-flex; align-items: stretch; border: 1px solid var(--line-strong); transform: skewX(-12deg); flex: none; }
.step button { width: 30px; height: 28px; background: none; border: 0; cursor: var(--cur-link), pointer; color: var(--ink-2); font: 500 1rem/1 var(--mono); transition: color .15s, background-color .15s; }
.step button:hover { color: var(--ink); background: rgba(214, 220, 240, .09); }
.step button span, .step output span { display: inline-block; transform: skewX(12deg); }
.step output { min-width: 4.2em; display: grid; place-items: center; border-inline: 1px solid var(--line); font: 500 .8rem/1 var(--mono); }

.seg { display: inline-flex; border: 1px solid var(--line-strong); transform: skewX(-12deg); flex: none; }
.seg button {
  height: 28px; padding: 0 .95rem; background: none; border: 0; border-left: 1px solid var(--line); cursor: var(--cur-link), pointer; color: var(--ink-2);
  font: 500 .7rem/1 var(--display); font-stretch: 110%; letter-spacing: .07em; text-transform: uppercase;
  transition: color .15s, background .2s;
}
.seg button:first-child { border-left: 0; }
.seg button span { display: inline-block; transform: skewX(12deg); }
.seg button:hover { color: var(--ink); }
.seg button[aria-checked="true"] { background: var(--silver); color: #0a0c14; }

.field { display: flex; align-items: center; gap: .7rem; flex: none; }
.field input {
  width: 250px; height: 30px; padding: 0 .7rem; background: rgba(214, 220, 240, .04); border: 1px solid var(--line-strong);
  font: 400 .8rem/1 var(--mono); user-select: text; -webkit-user-select: text; transition: border-color .16s;
}
.field input::placeholder { color: var(--ink-3); }
.field input:focus { outline: 0; border-color: var(--silver-hi); }

.key { display: inline-grid; place-items: center; min-width: 30px; height: 24px; padding: 0 .4rem; margin-right: .8rem; border: 1px solid var(--line-strong); font: 500 .74rem/1 var(--mono); color: var(--ink); }
.row-ctl { display: flex; align-items: center; gap: 1.4rem; flex: none; }

/* ═════════ OVERVIEW ═════════ */
.timer { font: italic 700 1.72rem/1.05 var(--display); font-stretch: 118%; font-variant-numeric: tabular-nums; color: var(--ink-3); transition: color .25s; }
.is-running .timer { color: var(--ink); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.stat { padding: 14px 0 14px 18px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat span { font: 400 .66rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.stat b { display: block; margin-top: .55rem; font: italic 800 1.9rem/1 var(--display); font-stretch: 118%; font-variant-numeric: tabular-nums; }
.stat b.bump { animation: bump .32s var(--ease); }
@keyframes bump { 35% { transform: translateY(-3px); color: #fff; } }
.g-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; height: 318px; border-bottom: 1px solid var(--line); }
.radar { position: relative; border-right: 1px solid var(--line); }
.radar canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.radar-tag { position: absolute; left: 0; font: 400 .7rem/1.4 var(--mono); letter-spacing: .04em; color: var(--ink-3); }
.radar-tag.t { top: 12px; }
.radar-tag.b { bottom: 12px; color: var(--ink-2); }
.log { padding: 12px 0 12px 16px; overflow: hidden; font: 400 .74rem/1.8 var(--mono); color: var(--ink-2); display: flex; flex-direction: column; justify-content: flex-end; }
.log li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: rowIn .3s var(--ease) both; }
.log time { color: var(--ink-3); margin-right: .6rem; }
.log li:last-child { color: var(--ink); }
.log .empty { color: var(--ink-3); animation: none; }

/* ═════════ ROUTE ═════════ */
.route { display: grid; grid-template-columns: minmax(0, 1fr) 244px; gap: 24px; padding: 16px 0 14px; border-bottom: 1px solid var(--line); }
.route-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.route-head span { font: 400 .66rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.pts { height: 204px; overflow-y: auto; border-top: 1px solid var(--line); }
.pts li { display: flex; align-items: center; gap: .8rem; height: 34px; border-bottom: 1px solid var(--line); animation: rowIn .28s var(--ease) both; }
.pts .n { width: 1.6em; font: 500 .74rem/1 var(--mono); color: var(--ink-3); }
.pts b { flex: 1; font: 600 .88rem/1 var(--display); font-stretch: 108%; }
.pts code { font: 400 .72rem/1 var(--mono); color: var(--ink-3); }
.pts .mini { width: 24px; height: 22px; background: none; border: 1px solid transparent; color: var(--ink-3); cursor: var(--cur-link), pointer; font: 500 .8rem/1 var(--mono); transition: color .15s, border-color .15s; }
.pts .mini:hover { color: var(--ink); border-color: var(--line-strong); }
.pts .mini:disabled { opacity: .25; cursor: var(--cur-arrow), default; }
.pts .empty { height: auto; padding: 14px 0; color: var(--ink-3); font-size: .86rem; border-bottom: 0; animation: none; }
.map { position: relative; aspect-ratio: 1; border: 1px solid var(--line); background: rgba(214, 220, 240, .02); }
.map canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ═════════ CAPTCHA history ═════════ */
.hist { padding-top: 14px; }
.hist h2 { font: 400 .66rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.hist ol { font: 400 .76rem/1.9 var(--mono); color: var(--ink-2); }
.hist li.empty { color: var(--ink-3); font-family: var(--body); font-size: .86rem; }
.hist time { color: var(--ink-3); margin-right: .7rem; }

/* ═════════ STATUS BAR ═════════ */
.status {
  grid-column: 1 / -1; position: relative; z-index: 3; display: flex; align-items: center; gap: 1.1rem; padding: 0 16px;
  border-top: 1px solid var(--line); font: 400 .7rem/1 var(--mono); color: var(--ink-3); letter-spacing: .03em;
}
.status .st-game { display: flex; align-items: center; gap: .5rem; color: var(--ink-2); flex: none; }
.status .st-last { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status .tag { flex: none; padding: 3px 7px; border: 1px solid var(--line-strong); color: var(--ink-2); letter-spacing: .08em; text-transform: uppercase; font-size: .62rem; }
.status .st-keys { flex: none; }
.status .st-lic { flex: none; display: flex; align-items: center; gap: .6rem; height: 100%; padding-left: 1.1rem; border-left: 1px solid var(--line); color: var(--ink-2); }
.status .st-lic b { font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.status .st-lic.is-low > span { color: var(--bad); }
[hidden] { display: none !important; }

/* when animations are turned off (Settings) or the system asks for reduced motion */
.no-motion *, .no-motion *::before, .no-motion *::after { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
