/* ===========================================================================
   Roadside - the loadwatcher.io look for the COMPANY CABINET (/company).

   Loaded right after company.css (see company.html). Only re-points the tokens and overrides
   looks - company.js does not know this file exists, every id/class it uses is untouched.
   Delete the <link> and the cabinet looks exactly as before.

   Same parts as the extension's settings page (src/styles/roadside.css): night highway,
   Oswald display type, JetBrains Mono for data, teal buttons with a pressed edge, yellow road
   markings. Light theme = "day shift" on trip-ticket paper.
   Fonts: /static/fonts/fonts.css (local woff2, latin + cyrillic).
   =========================================================================== */

:root,
:root[data-theme="dark"] {
  --rs-display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --rs-sans: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --rs-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --rs-teal: #19d3b0;
  --rs-teal-d: #0a8f79;
  --rs-yellow: #ffd23f;
  --rs-sign: #0b6b4d;
  --rs-ink: #121414;
  --rs-paper: #ece6d6;
  --rs-radius: 4px;
  --rs-heading: #efece2;
  --rs-marking: #ffd23f;

  --bg: #0c0e0f; --surface: #131617; --surface-2: #0f1213; --surface-3: #1a1e1f;
  --border: #252a2b; --border-strong: #373d3e;
  --text: #efece2; --text-secondary: #b9c0bc; --text-muted: #8e9895; --text-faint: #7b8582;
  --accent: #19d3b0; --accent-strong: #19d3b0; --accent-bg: rgba(25, 211, 176, 0.1);
  --accent-border: rgba(25, 211, 176, 0.42); --accent-ink: #121414;
  --success: #3fd68a; --success-bg: rgba(63, 214, 138, 0.12);
  --warning: #ffd23f; --warning-bg: rgba(255, 210, 63, 0.1);
  --danger: #ff6a55; --danger-bg: rgba(255, 106, 85, 0.12);
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
  --grid-line: transparent; --glow: rgba(255, 150, 60, 0.07);
}
:root[data-theme="light"] {
  --rs-heading: #121414;
  --rs-marking: #c99a00;
  --bg: #e7e1d1; --surface: #f6f2e7; --surface-2: #fffcf4; --surface-3: #ede7d7;
  --border: #d2c9b2; --border-strong: #b5ab92;
  --text: #121414; --text-secondary: #3b403e; --text-muted: #585f5c; --text-faint: #6b6f68;
  --accent: #08806b; --accent-strong: #06705e; --accent-bg: rgba(10, 143, 121, 0.1);
  --accent-border: rgba(10, 143, 121, 0.45); --accent-ink: #ffffff;
  --success: #17804b; --success-bg: rgba(23, 128, 75, 0.12);
  --warning: #8a5a00; --warning-bg: rgba(255, 210, 63, 0.28);
  --danger: #b8321f; --danger-bg: rgba(216, 65, 47, 0.1);
  --shadow: 0 16px 40px rgba(60, 50, 20, 0.18);
  --grid-line: transparent; --glow: rgba(255, 190, 90, 0.18);
}

/* ---------------------------------------------------------------- shell */
body {
  font-family: var(--rs-sans);
  font-size: 14.5px;
  background: radial-gradient(ellipse 70% 40% at 78% -6%, var(--glow), transparent 70%), var(--bg);
}
.shell { max-width: 1120px; padding-top: 22px; }
:focus-visible { outline-color: var(--rs-yellow) !important; }

/* ---------------------------------------------------------------- top bar */
.topbar { padding-bottom: 16px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.brand-mark {
  width: auto; height: 38px; border: 0; border-radius: 0; background: none; color: var(--rs-teal);
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-text .app {
  font-family: var(--rs-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rs-heading);
  line-height: 1.05;
}
.brand-text .co {
  font-family: var(--rs-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--rs-marking);
}
.who { border-radius: var(--rs-radius); background: transparent; border-color: var(--border-strong); }
.who .av { border-radius: 3px; font-family: var(--rs-display); font-size: 12px; background: var(--accent-bg); }
.icon-btn { border-radius: var(--rs-radius); background: transparent; }

/* ---------------------------------------------------------------- tabs: road marking under the label */
.tabs { gap: 30px; margin: 0 0 26px; }
.tab-btn {
  font-family: var(--rs-display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: 16px 2px 14px;
}
.tab-btn[aria-selected="true"] { color: var(--rs-heading); }
.tab-btn[aria-selected="true"]::after { height: 3px; border-radius: 0; background: var(--rs-marking); }

/* ---------------------------------------------------------------- cards */
.card { border-radius: var(--rs-radius); padding: 20px 22px; }
.card-head h2 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--rs-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--rs-heading);
}
.card-head h2::before { content: ""; width: 18px; height: 3px; background: var(--rs-marking); }
.card-head .note { font-size: 12.5px; }

/* ---------------------------------------------------------------- numbers */
.stat .k, .stat-card .k, th, .field > label, .cfg-label, .rung .range, .gate label {
  font-family: var(--rs-mono);
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}
.stat .v, .stat-card .v {
  font-family: var(--rs-display);
  font-weight: 600;
  font-size: 36px;
  letter-spacing: 0;
  line-height: 1.05;
  color: var(--rs-heading);
}
.stat .v small { font-family: var(--rs-sans); font-size: 13px; }
.stat-card { border-radius: var(--rs-radius); background: var(--surface-2); }

/* seats meter = a stretch of road: teal = working, yellow dashes = invited, asphalt = free */
.meter-track { height: 12px; border-radius: 2px; background: #1c2021; border-color: #3a4142; }
:root[data-theme="light"] .meter-track { background: #3a3f3f; border-color: #2a2e2e; }
.meter-fill { background: var(--rs-teal); }
.meter-pending { background: repeating-linear-gradient(90deg, var(--rs-yellow) 0 10px, rgba(255, 210, 63, 0.35) 10px 16px); }
.meter-legend { font-family: var(--rs-mono); font-size: 11.5px; }
.meter-legend i { border-radius: 1px; }

/* ---------------------------------------------------------------- tables */
th { font-size: 10.5px; padding: 10px 12px; }
td { font-size: 14px; padding: 13px 12px; }
.mono { font-family: var(--rs-mono); }
tbody tr:hover td { background: rgba(255, 255, 255, 0.02); }
:root[data-theme="light"] tbody tr:hover td { background: rgba(18, 20, 20, 0.03); }

.pill {
  border-radius: 3px;
  font-family: var(--rs-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 9px;
}
.plan-tag {
  border-radius: 2px;
  font-family: var(--rs-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 7px;
}
.plan-tag.ultra { color: var(--rs-ink); background: var(--rs-yellow); border-color: var(--rs-yellow); }

/* ---------------------------------------------------------------- buttons and fields */
.btn {
  min-height: 38px;
  border-radius: var(--rs-radius);
  background: transparent;
  color: var(--text);
  font-family: var(--rs-sans);
  font-size: 13px;
  font-weight: 600;
}
.btn:hover:not(:disabled) { border-color: var(--text); }
.btn.primary {
  background: var(--rs-teal);
  color: var(--rs-ink);
  border-color: var(--rs-teal);
  box-shadow: 0 4px 0 var(--rs-teal-d);
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.12s, box-shadow 0.12s;
}
.btn.primary:hover:not(:disabled) { filter: none; transform: translateY(2px); box-shadow: 0 2px 0 var(--rs-teal-d); }
.btn.primary:active:not(:disabled) { transform: translateY(4px); box-shadow: none; }
.btn.quiet { min-height: 32px; }
.btn.quiet:hover:not(:disabled) { color: var(--text); border-color: transparent; text-decoration: underline; text-underline-offset: 3px; }
.btn.danger { border-color: var(--danger); }

input[type="email"], input[type="text"], input[type="number"], #invite-plan {
  min-height: 40px;
  border-radius: 3px;
  font-family: var(--rs-sans);
  font-size: 14px;
  background: var(--surface-2);
}
input:focus, #invite-plan:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg); }
.stepper button { border-radius: 3px; background: transparent; }
.stepper input { font-family: var(--rs-mono); }

/* segmented control (monthly / yearly): pressed = paper ticket, like the extension's gate */
.seg { border-radius: var(--rs-radius); padding: 3px; background: var(--surface-2); }
.seg button {
  border-radius: 2px;
  font-family: var(--rs-display);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
}
.seg button[aria-pressed="true"] { background: var(--rs-paper); color: var(--rs-ink); }

/* ---------------------------------------------------------------- create company: plans, ladder, total */
.signup-head h1 {
  font-family: var(--rs-display);
  font-weight: 700;
  font-size: clamp(28px, 3.2vw, 40px);
  text-transform: uppercase;
  letter-spacing: 0;
  line-height: 1;
  color: var(--rs-heading);
}
.signup-head .sub { font-size: 14.5px; margin-top: 8px; }
.plan { border-radius: var(--rs-radius); padding: 16px 16px 14px; }
.plan[aria-pressed="true"] { border-color: var(--rs-marking); background: var(--surface-2); box-shadow: inset 0 3px 0 var(--rs-marking); }
.plan .lanes { font-family: var(--rs-display); font-weight: 600; font-size: 16px; letter-spacing: 0.06em; text-transform: uppercase; }
.plan .price { font-family: var(--rs-display); font-size: 30px; font-weight: 700; letter-spacing: 0; }
.plan .price s { font-family: var(--rs-sans); }
.seat-total { font-family: var(--rs-display); font-size: 26px; font-weight: 600; }

.rung { border-radius: 3px; }
.rung .off { font-family: var(--rs-display); font-size: 20px; font-weight: 600; }
.rung.on { background: var(--rs-yellow); border-color: var(--rs-yellow); }
.rung.on .off, .rung.on .range { color: var(--rs-ink); }

.line .amt { font-family: var(--rs-mono); font-size: 13.5px; }
.line.total .lbl { font-family: var(--rs-display); font-size: 16px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.line.total .amt { font-family: var(--rs-display); font-size: 40px; font-weight: 700; letter-spacing: 0; }
.line.off .amt { color: var(--success); }
.cfg-total { border-top: 3px solid var(--rs-marking); }
.math-note { border-radius: var(--rs-radius); }

/* ---------------------------------------------------------------- sign-in card */
.gate { border-radius: 6px; border-top: 3px solid var(--rs-marking); padding: 30px 30px 24px; }
.gate h1 {
  font-family: var(--rs-display);
  font-weight: 700;
  font-size: 30px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--rs-heading);
}
.gate p.sub { font-size: 14px; }
.gate .brand-mark { height: 44px; }
.gate .brand-mark svg { width: 30px; height: 30px; }
.gate .link { color: var(--accent); font-weight: 600; }
#login-code { font-family: var(--rs-mono); font-size: 22px; letter-spacing: 0.5em; text-align: center; }

/* ---------------------------------------------------------------- banners, folds, dialogs, messages */
.banner { border-radius: var(--rs-radius); border-left: 3px solid var(--rs-teal); }
.banner .ic { border-radius: 3px; background: var(--rs-teal); color: var(--rs-ink); }
.banner-text b { font-family: var(--rs-display); font-size: 16px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.fold { border-radius: var(--rs-radius); }
.fold-title { font-family: var(--rs-display); font-weight: 600; font-size: 17px; letter-spacing: 0.06em; text-transform: uppercase; }
.fold-amt { font-family: var(--rs-display); font-size: 22px; font-weight: 600; }
.strip-title { font-family: var(--rs-display); font-weight: 600; font-size: 16px; letter-spacing: 0.06em; text-transform: uppercase; }

dialog.ask { border-radius: 6px; border-top: 3px solid var(--rs-marking); }
.ask-body h3 { font-family: var(--rs-display); font-weight: 700; font-size: 20px; letter-spacing: 0.02em; text-transform: uppercase; }
.ask-acts { border-radius: 0 0 5px 5px; }
.msg { border-radius: 3px; font-size: 13px; border-left: 3px solid currentColor; }

.lang-popover { border-radius: var(--rs-radius); }
.lang-option { border-radius: 2px; }
.lang-badge .lang-code, .lang-option-code { font-family: var(--rs-mono); }

/* ---------------------------------------------------------------- footer */
.page-foot { font-family: var(--rs-mono); font-size: 11.5px; letter-spacing: 0.04em; color: var(--text-muted); }
.page-foot a { border-bottom-color: var(--border-strong); }
.page-foot a:hover { color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  .btn.primary { transition: none; }
}

/* Legend swatches follow the road meter above (the markup paints them inline). */
.meter-legend span:nth-child(1) > i { background: var(--rs-teal) !important; }
.meter-legend span:nth-child(2) > i { background: var(--rs-yellow) !important; }
.meter-legend span:nth-child(3) > i { background: #3a4142 !important; }
:root[data-theme="light"] .brand-text .co { color: var(--text-muted); }

/* ===========================================================================
   02.10.2026 - FigJam «Сетап компании конечный» (13-16, 65-67).
   =========================================================================== */
/* ---- sign-up: the free trial - the total is struck, $0 is due today */
.breakdown .amt.struck { text-decoration: line-through; text-decoration-thickness: 2px; color: var(--text-muted); }
.breakdown .line.trial { border-top: 2px dashed var(--rs-marking); padding-top: 12px; }
.breakdown .line.trial .amt { font-family: var(--rs-display); font-size: 30px; font-weight: 700; color: var(--rs-teal); }
.trial-stamp {
  display: inline-block; margin-right: 6px; padding: 3px 8px 2px; transform: rotate(-3deg);
  border: 2px solid #e14b3b; border-radius: 3px; color: #e14b3b;
  font: 700 11px/1 var(--rs-display); letter-spacing: 0.08em; text-transform: uppercase;
}

/* ---- subscription, short (FigJam 66): three plates and the two things you do with them */
.sub-card .card-head { align-items: center; }
.sub-grid { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 12px; margin: 6px 0 18px; }
.sub-tile {
  display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 14px; border-radius: var(--rs-radius);
  background: var(--surface-2); border: 1px solid var(--border);
}
.sub-tile .k { font: 600 12px/1 var(--rs-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.sub-tile .v { font: 700 52px/1 var(--rs-display); color: var(--rs-heading); font-variant-numeric: tabular-nums; }
.sub-tile .u { font: 500 12.5px/1.3 var(--rs-mono); color: var(--text-muted); }
.sub-tile.pro { background: var(--rs-paper); border-color: var(--rs-paper); }
.sub-tile.pro .k, .sub-tile.pro .u { color: #55595a; }
.sub-tile.pro .v { color: var(--rs-ink); }
.sub-tile.ultra { background: var(--rs-teal); border-color: var(--rs-teal); box-shadow: inset 0 0 0 2px var(--rs-yellow); }
.sub-tile.ultra .k, .sub-tile.ultra .u { color: #0c4b40; }
.sub-tile.ultra .v { color: var(--rs-ink); }
.sub-tile.when .v { font-size: 34px; padding-top: 10px; }
.sub-tile.when .u { font-size: 14px; color: var(--text); }
.sub-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.sub-acts .spacer { flex: 1; }
.sub-card .hint { margin: 12px 0 0; }
#plan-fold .fold-head { display: none; }
#plan-fold { margin-top: 14px; }
@media (max-width: 760px) { .sub-grid { grid-template-columns: 1fr 1fr; } .sub-tile.when { grid-column: 1 / -1; } }

/* ---- cancel seats */
dialog.ask.cancel-dlg { max-width: 600px; }
.cancel-rows { display: grid; gap: 10px; }
.cancel-row {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--rs-radius); background: var(--surface-2);
}
.cancel-of { font: 500 12.5px/1.3 var(--rs-mono); color: var(--text-muted); }
.cancel-row .stepper { display: inline-flex; align-items: center; gap: 6px; }
.cancel-row .stepper button {
  width: 32px; height: 32px; border: 1px solid var(--border-strong); color: var(--text); cursor: pointer;
  font: 600 16px/1 var(--rs-mono);
}
.cancel-row .stepper button:disabled { opacity: 0.35; cursor: not-allowed; }
.cancel-row output { min-width: 34px; text-align: center; font: 700 22px/1 var(--rs-display); }
.cancel-after { margin: 4px 0 0; font: 600 14px/1.4 var(--rs-mono); color: var(--text); }
.cancel-after:empty { display: none; }
.cancel-dlg .ask-acts { display: flex; align-items: center; gap: 10px; }
.cancel-dlg .ask-acts .spacer { flex: 1; }

/* ---- seats: the lots (FigJam 67) - a row per plan, a cell per seat */
.meter { display: none; }
.lots { display: grid; gap: 14px; margin: 18px 0 4px; }
.lot { display: grid; grid-template-columns: 220px 1fr; gap: 16px; align-items: start; }
.lot-head { display: flex; flex-direction: column; gap: 4px; padding-top: 4px; }
.lot-head b { font: 700 20px/1 var(--rs-display); letter-spacing: 0.04em; text-transform: uppercase; color: var(--rs-heading); }
.lot.ultra .lot-head b { color: var(--rs-yellow); }
.lot-head span { font: 500 12px/1.4 var(--rs-mono); color: var(--text-muted); }
.lot-cells { display: flex; flex-wrap: wrap; gap: 8px; }
.cell {
  width: 46px; height: 58px; display: inline-grid; place-items: center; border-radius: 4px;
  font: 600 13px/1 var(--rs-mono); letter-spacing: 0.04em;
}
.cell.on { background: var(--rs-teal); color: var(--rs-ink); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.18); }
.lot.ultra .cell.on { box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.18), inset 0 0 0 2px var(--rs-yellow); }
.cell.wait { border: 2px dashed var(--rs-yellow); color: var(--rs-yellow); background: rgba(255, 210, 63, 0.06); }
.cell.free {
  border: 2px dashed var(--border-strong); background: transparent; color: var(--text-muted);
  font-size: 20px; cursor: pointer;
}
.cell.free:hover { border-color: var(--rs-teal); color: var(--rs-teal); }
.cell.free:focus-visible { outline: 2px solid var(--rs-yellow); outline-offset: 2px; }
.cell.more { color: var(--text-muted); font-size: 12px; }
@media (max-width: 760px) { .lot { grid-template-columns: 1fr; } }

/* ---- dispatchers table: a face for every seat */
.who-cell { display: flex; align-items: center; gap: 10px; }
.seat-av {
  flex: none; width: 30px; height: 30px; display: inline-grid; place-items: center; border-radius: 50%;
  font: 600 11px/1 var(--rs-mono);
}
.seat-av.on { background: var(--rs-teal); color: var(--rs-ink); }
.seat-av.wait { border: 2px dashed var(--rs-yellow); color: var(--rs-yellow); }
.cancel-dlg .ask-sub { word-break: normal; overflow-wrap: normal; }

.cancel-dlg .ask-acts .btn { white-space: nowrap; }

/* ---- discount per plan (02.10.2026): every rung says whose step it is */
.rung { position: relative; }
.rung .owner {
  position: absolute; right: 8px; top: 8px; padding: 2px 6px; border-radius: 2px;
  font: 600 10px/1 var(--rs-mono); letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--rs-paper); color: var(--rs-ink);
}
.rung .owner.ultra { background: var(--rs-teal); }
.rung .owner + .owner { top: 26px; }

/* ===========================================================================
   Statistics (FigJam 20, 04.10.2026) - the same road as «Seats» and «Subscription»:
   the three figures are plates with day columns under them, the dispatchers a leaderboard.
   =========================================================================== */
:root, :root[data-theme="dark"] { --s-match: #ffd23f; --s-calls: #19d3b0; --s-mails: #ece6d6; }
:root[data-theme="light"] { --s-match: #c99a00; --s-calls: #08806b; --s-mails: #3b403e; }
.stat-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.stat-card { padding: 16px 18px 12px; border: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; }
.stat-card .k { display: flex; align-items: center; gap: 8px; font: 600 11px/1 var(--rs-mono); letter-spacing: .14em; }
.stat-card .k i { width: 10px; height: 10px; border-radius: 2px; }
.stat-card .v { font: 700 52px/1 var(--rs-display); letter-spacing: 0; color: var(--rs-heading); margin-top: 6px; }
.stat-card .sub { font: 500 12px/1.3 var(--rs-mono); }
.stat-card .spark { height: 48px; margin-top: 10px; border-bottom: 1px dashed var(--border-strong); }
.stat-card[data-measure="laneMatches"] { border-top: 3px solid var(--s-match); }
.stat-card[data-measure="calls"] { border-top: 3px solid var(--s-calls); }
.stat-card[data-measure="emails"] { border-top: 3px solid var(--s-mails); }
@media (max-width: 760px) { .stat-cards { grid-template-columns: 1fr; } }

/* the leaderboard */
[data-panel="stats"] table td { vertical-align: middle; }
[data-panel="stats"] .who-cell { gap: 10px; }
[data-panel="stats"] .rank { width: 22px; font: 600 12px/1 var(--rs-mono); color: var(--text-faint); }
[data-panel="stats"] tbody tr:first-child .rank { color: var(--rs-yellow); }
[data-panel="stats"] .who-mail { display: flex; flex-direction: column; }
[data-panel="stats"] .who-mail small { font: 600 10px/1.3 var(--rs-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); }
.former td:first-child::after { content: none !important; }
[data-panel="stats"] .metric { min-width: 110px; }
[data-panel="stats"] .metric b { display: block; font: 600 15px/1.2 var(--rs-mono); color: var(--text); }
[data-panel="stats"] .metric .bar { display: block; height: 4px; margin-top: 6px; border-radius: 2px; background: var(--surface-3); overflow: hidden; }
[data-panel="stats"] .metric .bar i { display: block; height: 100%; border-radius: 2px; }
[data-panel="stats"] .last { font: 500 12.5px/1.3 var(--rs-mono); color: var(--text-muted); }
:root[data-theme="light"] [data-panel="stats"] tbody tr:first-child .rank { color: #8a5a00; }
:root[data-theme="light"] .seat-av.wait { border-color: #8a5a00; color: #8a5a00; }
