/* GENERATED by scripts/sync-ui.mjs from the extension's popup.css. Don't edit: change popup.css and
   run `npm run sync-ui`. Every rule is scoped to .ui (the wrapper of the site's app pages). */
/* Smokescreen — popup and full page (popup.html?full=1). Dark only. */
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-latin-wght.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: block; /* local file: no flash of the fallback font */
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
.ui {
  color-scheme: dark;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  /* surfaces, darkest to lightest */
  --bg: #0a0c10;
  --surface: #11141a;
  --surface-2: #171b22;
  --surface-3: #1f242d;
  --surface-4: #282e38;
  --border: #1e232b;
  --border-2: #2a303a;
  --text: #eef0f4;
  --text-2: #a4aab6;
  --muted: #6a7180;
  /* Smokescreen brand: smoke silver, for the UI itself (buttons, switches, focus, logo) */
  --brand: #e4e8ee;
  --brand-2: #f7f8fa;
  --brand-ink: #0b0d11;
  --brand-soft: rgba(220, 226, 236, .08);
  --brand-line: rgba(220, 226, 236, .42);
  /* FACEIT orange: everything about blocking (slots, blocked players, your list) and match charts */
  --accent: #ff5500;
  --accent-2: #ff7a2e;
  --accent-text: #ff9a5c;
  --accent-soft: rgba(255, 85, 0, .10);
  --accent-line: rgba(255, 85, 0, .5);
  /* status colors; info (blue) is reserved for "in a match" */
  --good: #3fb950;  --good-text: #63d27b;  --good-soft: rgba(63, 185, 80, .13);  --good-line: rgba(63, 185, 80, .42);
  --warn: #d29922;  --warn-text: #e8b44a;  --warn-soft: rgba(210, 153, 34, .13);
  --bad: #f85149;   --bad-text: #ff8a84;   --bad-soft: rgba(248, 81, 73, .13);  --bad-line: rgba(248, 81, 73, .38);
  --info: #6e96ff;  --info-text: #9db8ff;  --info-soft: rgba(110, 150, 255, .14);
  /* "top form" (a player playing very well lately) */
  --hot: #ffb35c;   --hot-soft: rgba(255, 160, 60, .14);
  /* FACEIT's own skill-level colors */
  --lvl-1: #dddddd; --lvl-2: #47e36e; --lvl-4: #ffc800; --lvl-8: #ff6309; --lvl-10: #fe1f00; /* FACEIT's own (1-3: their help page) */
  --r-lg: 14px; --r: 11px; --r-sm: 8px;
  --card-shadow: inset 0 1px 0 rgba(255, 255, 255, .035), 0 1px 3px rgba(0, 0, 0, .35);
  --pop-shadow: 0 14px 34px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .05);
}
.ui * { box-sizing: border-box; }
.ui { background: var(--bg); }
.ui {
  width: 460px; margin: 0; font: 13px/1.45 var(--font); color: var(--text); -webkit-font-smoothing: antialiased;
  background: radial-gradient(560px 240px at 50% -90px, rgba(220, 226, 236, .06), transparent 72%) no-repeat, var(--bg);
}
.ui.full { width: auto; }
/* Full page: the website's drifting smoke (same values as the site's styles.css .smoke-bg), behind
   everything (isolation keeps z-index -1 above the body background). Not in the 460 px popup. */
.ui .smoke-bg { display: none; }
.ui.full { isolation: isolate; }
.ui.full .smoke-bg { display: block; position: fixed; inset: -10% -20%; pointer-events: none; filter: blur(60px); z-index: -1; }
.ui .smoke-bg i { position: absolute; border-radius: 50%; background: radial-gradient(closest-side, rgba(210, 216, 228, .10), transparent); will-change: transform; }
.ui .smoke-bg i:nth-child(1) { width: 60vmax; height: 40vmax; left: -5%; top: 0; animation: ui-smoke1 40s ease-in-out infinite alternate; }
.ui .smoke-bg i:nth-child(2) { width: 50vmax; height: 45vmax; right: -5%; top: 25%; animation: ui-smoke2 48s ease-in-out infinite alternate; }
.ui .smoke-bg i:nth-child(3) { width: 34vmax; height: 26vmax; left: 52%; top: 8%; background: radial-gradient(closest-side, rgba(255, 85, 0, .07), transparent); animation: ui-smoke3 34s ease-in-out infinite alternate; }
@keyframes ui-smoke1 { to { transform: translate(14vw, 6vh) scale(1.12); } }
@keyframes ui-smoke2 { to { transform: translate(-16vw, -6vh) scale(.92); } }
@keyframes ui-smoke3 { to { transform: translate(-10vw, 8vh) scale(1.2); } }
@media (prefers-reduced-motion: reduce) {
.ui .smoke-bg i { animation: none; }
}
.ui [hidden] { display: none !important; }
.ui ::selection { background: rgba(220, 226, 236, .28); }
.ui .tnum { font-variant-numeric: tabular-nums; }
/* ---------- icons (icons.js) ---------- */
.ui .i { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
@keyframes ui-spin { to { transform: rotate(360deg); } }
@keyframes ui-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(63, 185, 80, .45); } 60% { box-shadow: 0 0 0 5px rgba(63, 185, 80, 0); } }
@keyframes ui-rise { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
/* ---------- controls ---------- */
.ui button {
  font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; border: 0; border-radius: var(--r-sm); padding: 7px 13px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; color: var(--brand-ink);
  background: linear-gradient(180deg, var(--brand-2), var(--brand));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 0 0 1px rgba(255, 255, 255, .25), 0 2px 10px rgba(220, 226, 236, .12);
  transition: filter .12s, background .12s, color .12s, box-shadow .12s, opacity .12s;
}
.ui button:hover:not(:disabled) { filter: brightness(1.05); }
.ui button:active:not(:disabled) { filter: brightness(.95); }
.ui button .i { width: 15px; height: 15px; }
.ui button.secondary { background: var(--surface-3); color: var(--text); font-weight: 550; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 0 0 1px var(--border-2); }
.ui button.secondary:hover:not(:disabled) { background: var(--surface-4); filter: none; }
.ui button.ghost { background: transparent; color: var(--text-2); box-shadow: none; font-weight: 550; }
.ui button.ghost:hover:not(:disabled) { background: var(--surface-3); color: var(--text); filter: none; }
.ui button.small { padding: 6px 11px; font-size: 12px; }
.ui button.small .i { width: 14px; height: 14px; }
.ui button:disabled { opacity: .5; cursor: default; }
/* while a request runs: the icon becomes a spinner */
.ui button.busy { opacity: .85 !important; }
.ui button.busy > .i { display: none; }
.ui button.busy::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: ui-spin .7s linear infinite; }
.ui .btn-count { min-width: 18px; padding: 0 5px; margin-right: -4px; border-radius: 999px; background: rgba(0, 0, 0, .22); font-size: 11px; line-height: 18px; text-align: center; font-variant-numeric: tabular-nums; }
.ui .btn-count:empty { display: none; }
.ui .linkbtn { background: none; box-shadow: none; color: var(--muted); padding: 3px 5px; font-size: 12px; font-weight: 500; gap: 5px; border-radius: 6px; }
.ui .linkbtn .i { width: 13px; height: 13px; }
.ui .linkbtn:hover:not(:disabled) { background: var(--surface-3); color: var(--text); filter: none; }
.ui:not(.full) .head-links .linkbtn { width: 28px; height: 28px; padding: 0; }
.ui:not(.full) .head-links .linkbtn .i { width: 14px; height: 14px; }
.ui:not(.full) .head-links .linkbtn > span { display: none; }
/* icons only in the narrow popup; the title says what they do */
.ui a.icon-btn, .ui a.x { display: inline-flex; align-items: center; justify-content: center; }
.ui .icon-btn { width: 32px; height: 32px; padding: 0; background: transparent; color: var(--text-2); box-shadow: inset 0 0 0 1px var(--border-2); border-radius: 9px; font-weight: 400; text-decoration: none; }
.ui .icon-btn:hover:not(:disabled) { background: var(--surface-3); color: var(--text); filter: none; }
.ui .icon-btn .i { width: 16px; height: 16px; }
.ui .icon-btn.sm { width: 28px; height: 28px; border-radius: 8px; }
.ui .icon-btn.sm .i { width: 14px; height: 14px; }
.ui .icon-btn.on { color: var(--text); box-shadow: inset 0 0 0 1px var(--brand-line); background: var(--brand-soft); }
.ui :focus-visible { outline: 2px solid var(--brand-line); outline-offset: 2px; }
.ui textarea, .ui input, .ui select {
  width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--border-2); border-radius: var(--r-sm);
  padding: 8px 10px; font: inherit; transition: border-color .12s, box-shadow .12s;
}
.ui textarea:hover, .ui input:hover, .ui select:hover { border-color: #353c48; }
.ui textarea:focus, .ui input:focus, .ui select:focus { outline: none; border-color: var(--brand-line); box-shadow: 0 0 0 3px rgba(220, 226, 236, .08); }
.ui ::placeholder { color: var(--muted); }
.ui textarea { resize: vertical; }
.ui select {
  appearance: none; padding-right: 32px; cursor: pointer;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a4aab6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 14px;
}
.ui .row { display: flex; gap: 8px; margin-top: 8px; }
.ui .row > * { flex: 1; }
/* toggle switch: <input type="checkbox" class="switch"> */
.ui input.switch { appearance: none; flex: none; width: 36px; height: 20px; padding: 0; margin: 0; border: 0; border-radius: 999px; background: var(--surface-4); position: relative; cursor: pointer; transition: background .15s; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.ui input.switch::before { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #d7dae0; box-shadow: 0 1px 3px rgba(0, 0, 0, .4); transition: transform .15s, background .15s; }
.ui input.switch:checked { background: var(--brand); }
.ui input.switch:checked::before { transform: translateX(16px); background: var(--brand-ink); }
.ui input.switch:focus { box-shadow: 0 0 0 3px rgba(220, 226, 236, .14); }
/* ---------- header ---------- */
.ui .app-head { position: sticky; top: 0; z-index: 20; background: rgba(10, 12, 16, .8); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--border); }
.ui .head-inner { display: flex; align-items: center; gap: 12px; padding: 11px 14px; }
.ui .brand { display: flex; align-items: center; gap: 11px; min-width: 0; flex: 1; }
.ui .logo {
  width: 32px; height: 32px; border-radius: 9px; flex: none; display: grid; place-items: center;
  background: linear-gradient(135deg, #3a414d, #1a1e25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 0 0 1px rgba(255, 255, 255, .07), 0 4px 16px rgba(0, 0, 0, .45);
}
.ui .logo svg { width: 22px; height: 22px; fill: #fff; stroke: none; }
.ui .brand-text { min-width: 0; }
.ui .site-link { display: flex; align-items: center; gap: 5px; color: inherit; text-decoration: none; border-radius: 4px; }
.ui .site-link span { overflow: hidden; text-overflow: ellipsis; }
.ui .site-link svg { width: 12px; height: 12px; flex: none; opacity: .45; transition: opacity .15s; }
.ui .site-link:hover { color: var(--brand-2); }
.ui .site-link:hover svg, .ui .site-link:focus-visible svg { opacity: 1; }
.ui .site-link:focus-visible { outline: 2px solid var(--brand-line); outline-offset: 2px; }
.ui .title { font-weight: 700; font-size: 14.5px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui .summary { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; }
.ui .summary .sep { color: var(--muted); }
.ui .live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); flex: none; }
.ui .live-dot.on { background: var(--good); animation: ui-pulse 2.4s ease-out infinite; }
.ui .summary .on-text { color: var(--good-text); }
.ui .head-actions { display: flex; gap: 6px; flex: none; }
/* ---------- layout ---------- */
.ui main { padding: 12px 12px 18px; }
.ui #layout { display: flex; flex-direction: column; gap: 12px; }
.ui #colSide { display: flex; flex-direction: column; gap: 12px; }
.ui .card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .014), transparent 42%), var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-lg); padding: 14px; box-shadow: var(--card-shadow);
}
.ui h2 { margin: 0; font-size: 14px; font-weight: 650; letter-spacing: -.005em; color: var(--text); white-space: nowrap; }
.ui .count-pill { font-size: 11px; font-weight: 600; color: var(--text-2); background: var(--surface-3); padding: 1px 7px; border-radius: 999px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ui .count-pill:empty { display: none; }
.ui .section-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; min-height: 28px; }
.ui .head-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ui .head-links { display: flex; gap: 2px; margin-right: -5px; }
.ui .btn-group { display: flex; gap: 6px; flex: none; }
.ui .btn-group.wrap { flex-wrap: wrap; }
.ui .db-info .bad, .ui .db-info .bad .i { color: var(--bad-text); }
.ui .msg { display: flex; align-items: flex-start; gap: 7px; font-size: 12px; color: var(--text-2); margin: 8px 2px 0; animation: ui-rise .2s ease-out; }
.ui .msg:empty { display: none; }
.ui .msg .i { width: 14px; height: 14px; margin-top: 1px; }
.ui .msg.ok { color: var(--good-text); }
.ui .msg.error { color: var(--bad-text); }
.ui .err { color: var(--bad-text); }
/* FACEIT level ring */
/* FACEIT's level badge (icons.js levelArc): dark disc, horseshoe track, coloured arc, white number. */
.ui .lvl { --lc: var(--border-2); position: relative; width: 22px; height: 22px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 8.25px; font-weight: 700; background: #111; color: #fff; }
.ui .lvl-arc { position: absolute; inset: 0; width: 100%; height: 100%; }
.ui .lvl-arc .trk { fill: rgba(205, 205, 205, .1); }
.ui .lvl-arc .arc { fill: var(--lc); }
/* The number: centred on its own shape (text-box), proportional digits (a tabular "1" sits in a wide cell),
   and 8.25 px so Inter's digits (0.7275 em) are 6 px tall: in an even badge the gap above and below is whole
   pixels (odd ones put the number on a half pixel, rounded off-centre). 13.75 px → 10 px in the big one. */
.ui .lvl-n { position: relative; font-variant-numeric: normal; text-box: trim-both cap alphabetic; }
.ui .lvl.l0 .lvl-n { color: var(--muted); }
.ui .lvl.l1 { --lc: var(--lvl-1); }
.ui .lvl.l2 { --lc: var(--lvl-2); }
.ui .lvl.l4 { --lc: var(--lvl-4); }
.ui .lvl.l8 { --lc: var(--lvl-8); }
.ui .lvl.l10 { --lc: var(--lvl-10); }
.ui .lvl.big { width: 34px; height: 34px; font-size: 13.75px; }
.ui .lvl.mini { position: absolute; right: -4px; bottom: -3px; width: 18px; height: 18px; letter-spacing: -.04em; box-shadow: 0 0 0 2px var(--surface); }
/* avatar: FACEIT picture, or the first letter on a color from the nickname */
.ui .av { --s: 32px; --h: 210; position: relative; width: var(--s); height: var(--s); flex: none; border-radius: 50%; display: grid; place-items: center; background: hsl(var(--h) 32% 22%); color: hsl(var(--h) 70% 80%); font-size: calc(var(--s) * .42); font-weight: 650; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); user-select: none; }
.ui .av > img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.ui .av > .i { width: 55%; height: 55%; }
.ui .av.sm { --s: 26px; }
.ui .av.md { --s: 36px; }
.ui .av.lg { --s: 52px; }
.ui .av.lg .lvl.mini { width: 22px; height: 22px; right: -3px; bottom: -2px; box-shadow: 0 0 0 2.5px var(--surface); }
/* ---------- a newer version on the site (public edition, renderUpdate) ---------- */
.ui .update-note {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding: 9px 10px 9px 12px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--brand-line); font-size: 12.5px; color: var(--text-2);
}
.ui .update-note[hidden] { display: none; }
.ui .update-note > .i { width: 16px; height: 16px; flex: none; color: var(--brand); }
.ui .update-note span { flex: 1; min-width: 0; }
.ui .update-note b { color: var(--text); font-weight: 650; }
.ui .update-note button { flex: none; }
/* ---------- welcome (no API key yet) ---------- */
.ui .welcome {
  position: relative; overflow: hidden; margin-bottom: 12px; padding: 18px; border-radius: 16px; border: 1px solid rgba(220, 226, 236, .16);
  background: radial-gradient(380px 200px at 100% 0%, rgba(220, 226, 236, .09), transparent 70%), var(--surface); box-shadow: var(--card-shadow);
}
.ui .onb-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ui .welcome h3 { margin: 0 0 6px; font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.ui .welcome > p { margin: 0 0 14px; color: var(--text-2); font-size: 12.5px; line-height: 1.55; }
.ui .steps { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.ui .steps li { display: flex; gap: 10px; align-items: flex-start; }
.ui .step-n { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--surface-3); color: var(--text-2); font-size: 11px; font-weight: 700; }
.ui .steps li.cur .step-n { background: var(--brand); color: var(--brand-ink); box-shadow: 0 0 0 3px var(--brand-soft); }
.ui .steps b { display: block; font-weight: 600; font-size: 12.5px; }
.ui .steps span { color: var(--muted); font-size: 11.5px; }
/* ---------- plan ---------- */
.ui #planCard { background: radial-gradient(440px 170px at 0% 0%, rgba(220, 226, 236, .045), transparent 70%), linear-gradient(180deg, #151920, var(--surface)); border-color: var(--border-2); }
.ui #btnApply.idle { background: var(--surface-3); color: var(--text); font-weight: 550; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 0 0 1px var(--border-2); }
.ui #btnApply.idle:hover:not(:disabled) { background: var(--surface-4); filter: none; }
.ui .slots { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 7px; }
.ui .slot-card {
  position: relative; min-width: 0; display: flex; flex-direction: column; align-items: center; padding: 24px 6px 13px;
  border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--border-2); cursor: pointer; overflow: hidden;
  transition: border-color .15s, transform .15s, background-color .15s;
}
.ui.intro .slot-card { animation: ui-rise .3s ease-out both; }
.ui.intro .change, .ui.intro .p { animation: ui-rise .3s ease-out both; }
.ui .slot-card:hover { transform: translateY(-2px); border-color: #3b4350; }
.ui .slot-card.kept { border-color: rgba(255, 85, 0, .32); background: linear-gradient(180deg, rgba(255, 85, 0, .09), transparent 75%), var(--surface-2); }
.ui .slot-card.new { border-color: var(--good-line); background: linear-gradient(180deg, rgba(63, 185, 80, .11), transparent 75%), var(--surface-2); }
.ui .slot-idx { position: absolute; top: 6px; left: 8px; font-size: 10px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.ui .slot-tag { position: absolute; top: 6px; right: 8px; font-size: 10px; font-weight: 650; color: var(--text-2); font-variant-numeric: tabular-nums; }
.ui .slot-card.new .slot-tag { color: var(--good-text); letter-spacing: .04em; }
@media (max-width: 440px) {
.ui .slot-idx { display: none; }
.ui .slot-tag { left: 0; right: 0; text-align: center; }
/* list rows: the name keeps room; the slot cards still show the chance */
.ui .p .pchance { display: none; }
.ui .bstate { width: auto; }
}
.ui .slot-name { max-width: 100%; margin-top: 8px; font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui .slot-sub { display: none; }
.ui .slot-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .04); }
.ui .slot-bar > span { display: block; height: 100%; background: var(--accent); border-radius: 0 2px 2px 0; }
.ui .slot-card.new .slot-bar > span { background: var(--good); }
.ui .slot-card.vacant { border-style: dashed; background: transparent; cursor: default; }
.ui .slot-card.vacant:hover { transform: none; border-color: var(--border-2); }
.ui .slot-ph { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1.5px dashed var(--border-2); color: var(--muted); }
.ui .slot-ph .i { width: 14px; height: 14px; }
.ui .slot-card.vacant .slot-name { color: var(--muted); font-weight: 500; }
/* No FACEIT subscription (1.16.3): the slots one would give, greyed out */
.ui .slot-card.locked { border-style: dashed; background: transparent; cursor: default; opacity: .7; }
.ui .slot-card.locked:hover { transform: none; border-color: var(--border-2); }
.ui .slot-card.locked .slot-name { color: var(--text-2); font-weight: 600; font-size: 11px; }
/* "Premium" fits five across a phone */
.ui.full .slot-card.locked .slot-name { font-size: 13px; }
.ui .free-note { margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); font-size: 12.5px; line-height: 1.45; }
.ui .free-note b { display: block; color: var(--text); font-size: 13px; }
.ui .free-note p { margin: 6px 0 0; color: var(--text-2); }
.ui .free-note button { margin-top: 10px; }
.ui .sample-banner { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px dashed var(--border-2); font-size: 12.5px; line-height: 1.45; color: var(--text-2); }
.ui .sample-banner .i { flex: none; width: 16px; height: 16px; margin-top: 1px; color: var(--muted); }
.ui .sample-banner b { display: block; color: var(--text); }
.ui .p.plain { cursor: pointer; }
.ui .changes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.ui .change { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; font-size: 12px; color: var(--text-2); padding: 3px 10px 3px 3px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); }
.ui .change b { color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui .change .why { color: var(--muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui .change .ic { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.ui .change .ic .i { width: 12px; height: 12px; stroke-width: 2.6; }
.ui .ic.add { background: var(--good-soft); color: var(--good-text); }
.ui .ic.remove { background: var(--bad-soft); color: var(--bad-text); }
.ui .ic.live { background: var(--info-soft); color: var(--info-text); }
.ui .ic.ban { background: var(--bad-soft); color: var(--bad-text); }
.ui .side-title { font-size: 11px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.ui .plan-ok { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 12px; color: var(--good-text); }
.ui .plan-ok .i { width: 15px; height: 15px; }
.ui .plan-note { display: flex; gap: 8px; margin-top: 12px; font-size: 12px; color: var(--text-2); line-height: 1.5; }
.ui .plan-note .i { width: 15px; height: 15px; margin-top: 1px; color: var(--muted); }
/* blocks made on FACEIT outside Smokescreen: neutral, not orange (not ours to manage) */
.ui .slot-card.outside { border-style: dashed; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .025) 0 6px, transparent 6px 12px), var(--surface-2); }
.ui .slot-card.outside .slot-tag .i { width: 11px; height: 11px; color: var(--muted); }
.ui .slot-card.outside .slot-name { color: var(--text-2); }
.ui .slot-card.outside > .av { filter: grayscale(.6); opacity: .85; }
.ui .outside-box { margin-top: 12px; padding: 10px 12px 12px; border-radius: var(--r); border: 1px dashed var(--border-2); background: var(--surface-2); }
.ui .out-head { display: flex; align-items: center; gap: 7px; font-size: 12.5px; }
.ui .out-head > .i { width: 14px; height: 14px; color: var(--muted); }
.ui .out-head .linkbtn { margin-left: auto; }
.ui .out-text { margin: 5px 0 8px; font-size: 11.5px; line-height: 1.5; color: var(--muted); }
.ui .out-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-top: 1px solid var(--border); }
.ui .out-name { flex: 1; min-width: 0; font-size: 12.5px; font-weight: 600; color: var(--text); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui a.out-name:hover { text-decoration: underline; }
.ui .out-row button.small { padding: 5px 9px; }
.ui button.danger { background: var(--bad-soft); color: var(--bad-text); font-weight: 600; box-shadow: inset 0 0 0 1px var(--bad-line); }
.ui button.danger:hover:not(:disabled) { filter: brightness(1.15); }
.ui.full .plan-side > .outside-box:first-child { margin-top: 0; }
.ui #status { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--border); font-size: 11.5px; color: var(--muted); }
.ui #status:empty { display: none; }
.ui .st-line { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ui .st-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--muted); }
.ui .st-dot.ok { background: var(--good); box-shadow: 0 0 0 3px var(--good-soft); }
.ui .st-dot.warn { background: var(--bad); box-shadow: 0 0 0 3px var(--bad-soft); }
.ui .st-dot.run { width: 11px; height: 11px; margin: 0 -2px; background: none; border: 2px solid var(--brand); border-right-color: transparent; animation: ui-spin .7s linear infinite; }
.ui .st-done { padding-left: 15px; }
.ui .errbox { display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px; border-radius: var(--r-sm); background: var(--bad-soft); border: 1px solid rgba(248, 81, 73, .22); color: var(--bad-text); font-size: 12px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.ui .errbox .i { width: 14px; height: 14px; margin-top: 2px; }
/* ---------- You ---------- */
.ui #selfCard { padding: 9px 10px 9px 12px; }
.ui .self { display: flex; align-items: center; gap: 10px; }
.ui .self-who { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.ui .self-lbl { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.ui .self-nick { font-weight: 650; color: var(--text); text-decoration: none; overflow: hidden; text-overflow: ellipsis; }
.ui .self-nick:hover { color: var(--brand-2); text-decoration: underline; }
.ui .self-elo { font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.ui .rule { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; background: var(--surface-3); color: var(--muted); cursor: help; }
.ui .rule .i { width: 12px; height: 12px; }
.ui .rule.good { background: var(--good-soft); color: var(--good-text); }
.ui .self-text { font-size: 11.5px; color: var(--muted); margin-top: 8px; }
.ui:not(.full) .self-text { display: none; }
/* ---------- add bar ---------- */
.ui .add-bar { display: flex; gap: 8px; align-items: flex-start; }
.ui .add-field { position: relative; flex: 1; min-width: 0; }
.ui .add-field > .i { position: absolute; left: 11px; top: 10px; width: 15px; height: 15px; color: var(--muted); pointer-events: none; }
.ui .add-bar input { display: block; height: 36px; padding: 8px 10px 8px 34px; line-height: 18px; }
.ui .add-bar input::placeholder { text-overflow: ellipsis; }
.ui .add-bar button { flex: none; height: 36px; padding: 0 16px; }
.ui .add-hint { font-size: 11px; color: var(--muted); margin: 6px 2px 0; }
/* ---------- player list ---------- */
.ui .list-head { margin: 16px 0 6px; }
.ui #orderBar { font-size: 11.5px; color: var(--muted); margin: 0 0 10px; line-height: 1.5; }
.ui .order-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ui .mode-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--surface-3); color: var(--text-2); white-space: nowrap; }
.ui .mode-pill .i { width: 12px; height: 12px; }
.ui .mode-pill.custom { background: var(--brand-soft); color: var(--text); box-shadow: inset 0 0 0 1px var(--brand-line); }
.ui #list { border: 1px solid var(--border); border-radius: 12px; background: rgba(0, 0, 0, .2); overflow: hidden; }
.ui .p { position: relative; display: flex; align-items: center; gap: 10px; padding: 9px 12px 9px 8px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background-color .1s; }
.ui .p:last-child { border-bottom: 0; }
.ui .p::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: transparent; }
.ui .p:hover { background-color: var(--surface-2); }
.ui .p.slot { background-image: linear-gradient(90deg, rgba(255, 85, 0, .075), transparent 55%); }
.ui .p.slot::before { background: var(--accent); box-shadow: 0 0 10px rgba(255, 85, 0, .55); }
.ui.full .p.sel { background-color: var(--surface-2); box-shadow: inset 0 0 0 1px var(--brand-line); }
.ui .p.ignored :is(.pname, .pchance, .av) { opacity: .45; }
.ui .p.ignored .av { filter: grayscale(1); }
.ui .p.dragging { opacity: .35; }
.ui .p.drop-before { box-shadow: inset 0 2px 0 var(--brand); }
.ui .p.drop-after { box-shadow: inset 0 -2px 0 var(--brand); }
.ui .handle { width: 14px; display: grid; place-items: center; color: var(--muted); cursor: grab; opacity: 0; flex: none; margin-right: -4px; }
.ui .handle .i { width: 14px; height: 14px; }
.ui .p:hover .handle { opacity: 1; }
.ui:not(.full) .handle { display: none; }
/* drag and drop is unreliable in extension popups; the move buttons work */
.ui .rank { width: 20px; text-align: right; color: var(--muted); font-size: 11.5px; font-weight: 600; flex: none; font-variant-numeric: tabular-nums; }
.ui .p.slot .rank { color: var(--accent-text); }
.ui .rank-diff { font-size: 8.5px; margin-left: 1px; vertical-align: 1px; }
.ui .rank-diff.up { color: var(--good-text); }
.ui .rank-diff.down { color: var(--accent-text); }
.ui .pmain { flex: 1; min-width: 0; }
.ui .pname { font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui .psub { font-size: 11.5px; color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin-top: 1px; }
.ui .psub .i { width: 12px; height: 12px; vertical-align: -2px; margin-right: 3px; stroke-width: 2.3; }
.ui .psub .live { color: var(--info-text); }
.ui .psub .warn { color: var(--warn-text); }
.ui .psub .good { color: var(--good-text); }
.ui .psub .bad { color: var(--bad-text); }
.ui .pelo { width: 56px; flex: none; text-align: right; font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.ui .pelo.low { color: var(--muted); }
/* chance: number over a bar in the popup, bar then number on the full page */
.ui .pchance { width: 46px; flex: none; display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
.ui .pchance .val { order: -1; text-align: right; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ui .val.est { color: var(--muted); font-weight: 500; }
.ui .track { height: 4px; background: var(--surface-3); border-radius: 999px; overflow: hidden; }
.ui .fill { display: block; height: 100%; border-radius: 999px; background: #4b515c; }
.ui .fill.v-good { background: var(--good); }
.ui .fill.v-warn { background: var(--warn); }
.ui .fill.v-muted { background: #4b515c; }
.ui .bstate { width: 96px; flex: none; text-align: right; }
.ui .badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px; white-space: nowrap; line-height: 1.25; }
.ui .badge .i { width: 12px; height: 12px; stroke-width: 2.4; }
.ui .badge.blocked { background: var(--good-soft); color: var(--good-text); }
.ui .badge.add { color: var(--good-text); box-shadow: inset 0 0 0 1px var(--good-line); }
.ui .badge.remove { background: var(--bad-soft); color: var(--bad-text); }
.ui .badge.live { background: var(--info-soft); color: var(--info-text); }
.ui .badge.muted { background: var(--surface-3); color: var(--muted); }
/* row actions (option B, 2026-10-17): pause/resume and ⋯ always on the row; the rest in the ⋯ menu */
.ui .pactions { display: flex; gap: 2px; flex: none; margin-right: -6px; }
.ui:not(.full) .p { gap: 8px; }
/* the popup's 460 px: room for the name next to the two buttons */
.ui .x { width: 26px; height: 26px; padding: 0; background: none; box-shadow: none; color: var(--muted); border-radius: 7px; font-weight: 400; text-decoration: none; }
.ui .x .i { width: 14px; height: 14px; }
.ui .x:hover:not(:disabled), .ui .x[aria-expanded="true"] { background: var(--surface-4); color: var(--text); filter: none; }
.ui .x:disabled { opacity: .25; }
/* paused: a filled resume button, so paused players stand out down the list */
.ui .x.resume { background: rgba(220, 226, 236, .08); color: var(--text); box-shadow: inset 0 0 0 1px rgba(220, 226, 236, .42); }
.ui .x.resume .i { fill: currentColor; }
@media (pointer: coarse) {
.ui .x { width: 36px; height: 36px; }
.ui .x .i { width: 16px; height: 16px; }
}
.ui .rmenu { position: fixed; z-index: 50; width: 240px; padding: 5px; background: var(--surface-3); border-radius: 11px; box-shadow: var(--pop-shadow); animation: ui-rise .12s ease-out; }
.ui .rmenu .mi { display: flex; align-items: center; justify-content: flex-start; gap: 10px; width: 100%; padding: 7px 10px; background: none; box-shadow: none; color: var(--text); font-size: 12.5px; font-weight: 500; text-align: left; border-radius: 7px; }
.ui .rmenu .mi:hover:not(:disabled), .ui .rmenu .mi:focus-visible { background: var(--surface-4); filter: none; outline: none; }
.ui .rmenu .mi:disabled { opacity: .4; }
.ui .rmenu .mi .i { width: 15px; height: 15px; color: var(--text-2); flex: none; }
.ui .rmenu .hint { padding: 4px 10px 2px; font-size: 11px; color: var(--muted); }
.ui .rmenu .mi.danger, .ui .rmenu .mi.danger .i { color: var(--bad-text); }
.ui .rmenu .mi.danger:hover:not(:disabled), .ui .rmenu .mi.danger:focus-visible { background: var(--bad-soft); }
.ui .rmenu .sep { height: 1px; margin: 4px 6px; background: var(--border-2); }
@media (pointer: coarse) {
.ui .rmenu .mi { padding: 11px 12px; font-size: 14px; }
}
.ui .undo-toast { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 14px; max-width: calc(100% - 32px); padding: 8px 8px 8px 14px; background: var(--surface-3); border-radius: 11px; box-shadow: var(--pop-shadow); font-size: 12.5px; animation: ui-rise .15s ease-out; }
.ui .undo-toast > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui .undo-toast b { font-weight: 600; }
.ui .undo-toast button { flex: none; padding: 4px 10px; font-size: 12px; background: var(--surface-4); box-shadow: none; }
.ui .divider { display: flex; align-items: center; gap: 10px; padding: 7px 12px; font-size: 10.5px; font-weight: 600; letter-spacing: .02em; color: var(--muted); background: var(--surface); border-bottom: 1px solid var(--border); }
.ui .divider::before, .ui .divider::after { content: ""; flex: 1; height: 1px; background: var(--border-2); }
.ui .empty { padding: 30px 20px; text-align: center; color: var(--text-2); font-size: 12px; line-height: 1.55; }
.ui .empty-ic { width: 44px; height: 44px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); }
.ui .empty-ic .i { width: 20px; height: 20px; }
.ui .empty b { display: block; color: var(--text); font-size: 13.5px; margin-bottom: 4px; }
.ui details.legend-wrap { margin-top: 10px; font-size: 11.5px; color: var(--muted); }
.ui details.legend-wrap > summary { cursor: pointer; width: max-content; list-style: none; display: flex; align-items: center; gap: 5px; }
.ui details.legend-wrap > summary::-webkit-details-marker { display: none; }
.ui details.legend-wrap > summary .i { width: 13px; height: 13px; }
.ui details.legend-wrap > summary:hover { color: var(--text-2); }
.ui .legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; }
.ui .legend > span { display: inline-flex; align-items: center; gap: 6px; }
.ui .legend .badge { font-size: 10.5px; padding: 2px 7px; }
/* full-page table header */
.ui .lhead { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border-bottom: 1px solid var(--border); background: var(--surface); font-size: 10.5px; font-weight: 650; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); position: sticky; top: var(--head-h, 56px); z-index: 3; }
.ui .lhead .handle { opacity: 0; }
.ui .lhead .rank, .ui .lhead .pelo { font-size: inherit; color: inherit; font-weight: inherit; }
.ui .lhead .av-sp { width: 32px; flex: none; }
.ui .lhead .pchance { display: block; }
/* ---------- player detail ---------- */
.ui .detail-empty { color: var(--text-2); font-size: 12px; text-align: center; padding: 22px 10px; }
.ui .dt-back { margin: -4px 0 12px -6px; }
.ui .dt-head { display: flex; align-items: center; gap: 14px; }
.ui .dt-id { flex: 1; min-width: 0; }
.ui .dt-actions { display: flex; gap: 6px; flex: none; align-self: flex-start; }
.ui .dt-name { display: block; font-size: 18px; font-weight: 700; letter-spacing: -.015em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); text-decoration: none; }
.ui .dt-name:hover { color: var(--brand-2); text-decoration: underline; }
.ui .dt-meta { font-size: 12px; color: var(--muted); margin-top: 2px; font-variant-numeric: tabular-nums; }
.ui .dt-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 12px 0 2px; }
.ui .dt-tags:empty { display: none; }
.ui .pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; background: var(--surface-3); color: var(--text-2); white-space: nowrap; }
.ui .pill .i { width: 12px; height: 12px; stroke-width: 2.3; }
.ui .pill.slot { background: var(--accent-soft); color: var(--accent-text); }
.ui .pill.v-good { background: var(--good-soft); }
.ui .pill.v-warn { background: var(--warn-soft); }
.ui .pill.v-live { background: var(--info-soft); }
.ui .pill.v-bad { background: var(--bad-soft); color: var(--bad-text); }
.ui .v-good { color: var(--good-text); }
.ui .v-warn { color: var(--warn-text); }
.ui .v-muted { color: var(--text-2); }
.ui .v-live { color: var(--info-text); }
.ui .conf { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 11px; }
.ui .conf-bars { display: inline-flex; gap: 2px; align-items: flex-end; }
.ui .conf-bars > span { width: 3px; border-radius: 1px; background: var(--surface-4); }
.ui .conf-bars > span:nth-child(1) { height: 5px; }
.ui .conf-bars > span:nth-child(2) { height: 8px; }
.ui .conf-bars > span:nth-child(3) { height: 11px; }
.ui .conf-bars > span.on { background: var(--text-2); }
/* headline: a ring for the next 2 h, then "later today" */
.ui .heroes { display: flex; align-items: center; gap: 18px; margin: 16px 0 4px; padding: 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.ui .hero-ring { position: relative; width: 72px; height: 72px; flex: none; }
.ui .hero-ring svg { width: 72px; height: 72px; transform: rotate(-90deg); }
.ui .hero-ring .trk { fill: none; stroke: var(--surface-4); stroke-width: 7; }
.ui .hero-ring .arc { fill: none; stroke: #5b626e; stroke-width: 7; stroke-linecap: round; transition: stroke-dasharray .5s ease-out; }
.ui .hero-ring.v-good .arc { stroke: var(--good); }
.ui .hero-ring.v-warn .arc { stroke: var(--warn); }
.ui .hero-ring.v-live .arc { stroke: var(--info); }
.ui .hero-ring .num { position: absolute; inset: 0; display: grid; place-items: center; font-size: 17px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ui .hero-main { flex: 1; min-width: 0; }
.ui .hero-lbl { font-size: 12.5px; color: var(--text); font-weight: 600; }
.ui .hero-verdict { margin-top: 5px; }
.ui .hero-2 { padding-left: 18px; border-left: 1px solid var(--border-2); flex: none; max-width: 42%; }
.ui .hero-2 .hero-num { font-size: 22px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.ui .hero-2 .hero-sub { font-size: 11.5px; color: var(--text-2); margin-top: 2px; }
.ui .reason { color: #c6cad2; font-size: 12.5px; margin: 12px 0; line-height: 1.6; }
.ui .warnline { display: flex; gap: 7px; color: var(--warn-text); font-size: 11.5px; margin-bottom: 12px; line-height: 1.5; }
.ui .warnline .i { width: 14px; height: 14px; margin-top: 1px; }
.ui .tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ui .tile { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 9px 11px; }
.ui .tile .tl-t { display: flex; align-items: flex-start; gap: 6px; font-size: 11.5px; font-weight: 500; color: var(--muted); line-height: 1.35; }
.ui .tile .tl-t .i { width: 12px; height: 12px; margin-top: 2px; }
.ui .tile .tv { font-size: 16px; font-weight: 700; margin-top: 3px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.ui .tile .ts { font-size: 11px; color: var(--muted); }
.ui .chart-title { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--text-2); margin: 20px 0 8px; }
.ui .chart-title .i { width: 14px; height: 14px; color: var(--muted); }
.ui .chart-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 10.5px; color: var(--muted); margin-top: 8px; }
.ui .sw { display: inline-block; width: 12px; height: 8px; border-radius: 2px; vertical-align: middle; margin-right: 5px; }
.ui .sw.win { background: var(--good); }
.ui .sw.loss { background: var(--bad); }
.ui .sw.open { background: var(--accent); }
/* FACEIT Rating bands (ratingBand in shared.js): below average, baseline, advanced, elite */
/* calendar: one row per day, match segments (colored by result) across a 05:00 → 05:00 axis, and
   the day's W–L and average FACEIT Rating on the right */
.ui .tl { display: grid; grid-template-columns: 44px 1fr 60px; row-gap: 3px; column-gap: 8px; align-items: center; }
.ui .tl-lbl { font-size: 9.5px; color: var(--muted); text-align: right; line-height: 10px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ui .tl-lbl.wknd { color: var(--text-2); }
.ui .tl-lbl.today { color: var(--text); font-weight: 700; }
.ui .tl-track { position: relative; height: 10px; background: var(--surface-2); border-radius: 2px; }
.ui .tl-band { position: absolute; top: 0; bottom: 0; background: rgba(255, 255, 255, .06); }
.ui .tl-seg { position: absolute; top: 1px; bottom: 1px; background: var(--accent); border-radius: 2px; min-width: 2px; }
.ui .tl-seg.win { background: var(--good); }
.ui .tl-seg.loss { background: var(--bad); }
.ui .tl-seg.open { background: linear-gradient(180deg, var(--accent-2), var(--accent)); }
.ui .tl-now { position: absolute; top: -2px; bottom: -2px; width: 2px; margin-left: -1px; background: var(--text); border-radius: 1px; box-shadow: 0 0 6px rgba(255, 255, 255, .5); }
.ui .tl-axis { position: relative; height: 13px; font-size: 9.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ui .tl-axis span { position: absolute; transform: translateX(-50%); }
.ui .tl-head { font-size: 9px; color: var(--muted); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: help; }
.ui .tl-sum { display: flex; justify-content: flex-end; align-items: baseline; gap: 6px; font-size: 10px; line-height: 10px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ui .tl-wl { color: var(--muted); }
/* form: recent W–L, K/D, ADR, a bar per match */
.ui .form { margin: 14px 0 12px; padding: 12px 14px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.ui .form-head { display: flex; align-items: center; gap: 8px; }
.ui .form-title { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 650; }
.ui .form-title .i { width: 14px; height: 14px; color: var(--muted); }
.ui .form-sub { flex: 1; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui .form-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 8px; margin-top: 10px; align-items: end; }
.ui .form-main b { display: block; font-size: 26px; font-weight: 750; letter-spacing: -.02em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.ui .form-main span, .ui .form-stat span { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; white-space: nowrap; }
.ui .form-stat b { display: block; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ui .spark { position: relative; display: flex; gap: 3px; height: 46px; margin-top: 12px; }
.ui .spark-base { position: absolute; left: 0; right: 0; top: 50%; border-top: 1px dashed rgba(255, 255, 255, .2); pointer-events: none; z-index: 1; }
.ui .spark-col { position: relative; flex: 1; min-width: 3px; border-radius: 3px; }
.ui .spark-col:hover { background: rgba(255, 255, 255, .05); }
.ui .spark-bar { position: absolute; left: 15%; right: 15%; border-radius: 2px 2px 0 0; background: var(--accent); opacity: .9; }
.ui .spark-bar.down { border-radius: 0 0 2px 2px; }
.ui .spark-bar.win { background: var(--good); }
.ui .spark-bar.loss { background: var(--bad); }
.ui .spark-bar.unrated { border-radius: 2px; opacity: .4; }
.ui .spark-col:hover .spark-bar { opacity: 1; filter: brightness(1.15); }
.ui .form-note { display: flex; gap: 7px; margin-top: 10px; font-size: 11.5px; line-height: 1.5; color: var(--text-2); }
.ui .form-note .i { width: 14px; height: 14px; margin-top: 1px; color: var(--muted); }
/* recent matches (from the match database) */
.ui .rm { display: grid; font-size: 11.5px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.ui .rm-row { display: grid; grid-template-columns: 62px minmax(0, 1fr) minmax(0, 1.1fr) 44px 30px; gap: 8px; align-items: center; padding: 6px 10px; border-bottom: 1px solid var(--border); }
.ui.full .rm-row { grid-template-columns: 110px minmax(0, 1fr) minmax(0, 1fr) 60px 50px; }
.ui .rm-when b { display: block; font-weight: 600; color: var(--text); }
.ui .rm-when small { display: block; font-size: 10.5px; color: var(--muted); }
.ui.full .rm-when b, .ui.full .rm-when small { display: inline; font-size: inherit; }
.ui.full .rm-when small { margin-left: 6px; }
.ui .rm-row:last-child { border-bottom: 0; }
.ui .rm-row:not(.rm-h):hover { background: var(--surface-2); }
.ui .rm-h { font-size: 10px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); }
.ui .rm-row > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui .rm-when { color: var(--text-2); font-variant-numeric: tabular-nums; }
.ui .rm-res { display: flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.ui .rm-wl { width: 17px; height: 17px; flex: none; border-radius: 5px; display: grid; place-items: center; font-size: 10px; font-weight: 750; background: var(--surface-3); color: var(--muted); }
.ui .rm-wl.win { background: var(--good-soft); color: var(--good-text); }
.ui .rm-wl.loss { background: var(--bad-soft); color: var(--bad-text); }
.ui .rm-num, .ui .rm-h > span:nth-child(n+4) { text-align: right; font-variant-numeric: tabular-nums; }
.ui .rm-empty { font-size: 12px; color: var(--muted); padding: 4px 2px; }
.ui .rm-more { margin-top: 6px; }
/* Settings → Match database */
.ui .db-info { display: grid; gap: 6px; font-size: 12px; color: var(--text-2); }
.ui .db-info > div { display: flex; gap: 7px; align-items: flex-start; }
.ui .db-info .i { width: 14px; height: 14px; margin-top: 1px; flex: none; color: var(--muted); }
.ui .db-info .good, .ui .db-info .good .i { color: var(--good-text); }
.ui .db-info .warn, .ui .db-info .warn .i { color: var(--warn-text); }
/* weekly heatmap */
.ui .heatmap { display: grid; grid-template-columns: 30px repeat(24, 1fr); gap: 2px; font-size: 9.5px; }
.ui .hm-hour { text-align: center; color: var(--muted); font-variant-numeric: tabular-nums; }
.ui .hm-day { color: var(--text-2); display: flex; align-items: center; }
.ui .hm-day.today { color: var(--text); font-weight: 700; }
.ui .hm-cell { height: 13px; border-radius: 3px; background: var(--surface-2); }
.ui .hm-cell.win { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.ui .hm-cell.now { box-shadow: inset 0 0 0 2px var(--text); }
.ui .hm-grad { display: inline-block; width: 60px; height: 8px; border-radius: 2px; vertical-align: middle; background: linear-gradient(90deg, var(--surface-2), rgba(255, 85, 0, .2), var(--accent)); }
.ui details.method { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 12px; }
.ui details.method summary { cursor: pointer; color: var(--text-2); list-style: none; display: flex; align-items: center; gap: 6px; width: max-content; }
.ui details.method summary::-webkit-details-marker { display: none; }
.ui details.method summary .i { width: 14px; height: 14px; color: var(--muted); }
.ui details.method summary:hover { color: var(--text); }
.ui details.nicks { margin-top: 12px; }
.ui .nick-list { margin-top: 8px; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 4px 10px; align-items: center; }
.ui .nick-row { display: contents; }
.ui .nick-name { color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui .nick-cur { font-size: 10.5px; color: var(--good-text); background: var(--good-soft); border-radius: 999px; padding: 1px 7px; }
.ui .nick-when { color: var(--muted); font-size: 11.5px; text-align: right; font-variant-numeric: tabular-nums; }
.ui .nick-note { margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.ui .elotest { margin-top: 12px; font-size: 12px; line-height: 1.55; color: var(--text-2); }
.ui .elotest div { margin-top: 5px; }
.ui .elotest progress { width: 100%; height: 6px; accent-color: var(--brand); }
.ui .elotest .verdict { font-weight: 600; color: var(--text); }
.ui .elotest .good { color: var(--good-text); }
.ui .elotest .warn { color: var(--warn-text); }
/* ---------- settings ---------- */
.ui .settings-wrap { max-width: 760px; margin: 0 auto; }
.ui .settings-top { display: flex; align-items: center; gap: 8px; margin: 2px 0 12px; }
.ui .settings-top h1 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.ui .set-card { margin-bottom: 12px; }
.ui .set-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 4px; }
.ui .set-ic { width: 32px; height: 32px; flex: none; border-radius: 9px; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); }
.ui .set-ic .i { width: 16px; height: 16px; }
.ui .set-head h3 { margin: 0; font-size: 13.5px; font-weight: 650; }
.ui .set-head p { margin: 2px 0 0; font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.ui .set-body { margin-top: 10px; }
.ui .set-body > .btn-group, .ui .set-body > .row { margin-top: 10px; }
.ui label { display: block; margin: 12px 0 5px; color: var(--text-2); font-size: 12px; font-weight: 500; }
.ui .settings-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 10px; }
.ui .settings-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ui .settings-grid > div { display: flex; flex-direction: column; }
.ui .settings-grid > div > label { flex: 1; }
/* labels of different lengths; keep the inputs on one line */
.ui .field-note { margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.ui .switch-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 14px 0 0; padding: 11px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); font-size: 12.5px; cursor: pointer; }
.ui .key-field { position: relative; }
.ui .key-field input { padding-right: 40px; font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 12px; }
.ui .key-field button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); }
.ui details.advanced > summary { cursor: pointer; list-style: none; }
.ui details.advanced > summary::-webkit-details-marker { display: none; }
.ui details.advanced > summary .chev { margin-left: auto; align-self: center; color: var(--muted); transition: transform .15s; }
.ui details.advanced[open] > summary .chev { transform: rotate(180deg); }
.ui fieldset { border: 1px solid var(--border-2); border-radius: 10px; margin: 12px 0 0; padding: 8px 12px 12px; }
.ui fieldset > * + * { margin-top: 8px; }
.ui legend { color: var(--text-2); font-size: 12px; font-weight: 500; padding: 0 5px; }
.ui .req-row { display: flex; gap: 8px; }
.ui .req-row select { width: 104px; flex: none; }
.ui .req-row input, .ui fieldset textarea { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 11.5px; }
.ui .hint { display: flex; gap: 7px; margin-top: 10px; color: var(--warn-text); font-size: 11.5px; line-height: 1.5; }
.ui .hint .i { width: 14px; height: 14px; margin-top: 1px; }
.ui .sub-hint { margin-top: 6px; color: var(--muted); font-size: 11.5px; line-height: 1.5; }
.ui .save-bar { position: sticky; bottom: 0; z-index: 5; display: flex; justify-content: flex-end; gap: 8px; margin: 0 -12px -18px; padding: 12px; background: rgba(10, 12, 16, .88); backdrop-filter: blur(12px); border-top: 1px solid var(--border); }
.ui .save-bar button { padding: 9px 18px; }
/* ---------- popup: the player detail is a sheet over the plan and list until Back ---------- */
.ui:not(.full) #detailCard { display: none; }
.ui.detail-open:not(.full) #detailCard { display: block; animation: ui-rise .18s ease-out; }
.ui.detail-open:not(.full) :is(#onboard, #planCard, #selfCard, #colList) { display: none; }
/* ---------- full page ---------- */
.ui.full { --page: 1600px; --gutter: 28px; }
.ui.full .head-inner { max-width: var(--page); margin: 0 auto; padding: 12px var(--gutter); }
.ui.full main { padding: 22px var(--gutter) 40px; max-width: var(--page); margin: 0 auto; }
.ui.full .only-popup { display: none !important; }
/* Inside the website's /app page: its header carries the logo and the name */
.ui.embed .brand .logo, .ui.embed .site-link, .ui.embed #btnFull { display: none; }
.ui.embed:not(.full) { width: auto; }
.ui.full #layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-template-areas: "plan plan" "list detail"; gap: 20px; align-items: start; }
.ui.full #colSide { display: contents; }
.ui.full #planCard { grid-area: plan; }
.ui.full #colList { grid-area: list; }
.ui.full #detailCard { grid-area: detail; position: sticky; top: 76px; }
/* `top` is driven by stickyDetail() in popup.js */
.ui.full .card { padding: 18px; }
.ui.full .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ui.full .save-bar { margin: 0 0 -40px; padding: 14px 0 18px; border-top: 0; background: linear-gradient(180deg, rgba(10, 12, 16, 0), var(--bg) 45%); backdrop-filter: none; }
/* plan band: slots on the left, changes and status on the right */
.ui.full #planCard { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: 28px; align-items: start; }
.ui.full #planCard > .section-head { grid-column: 1 / -1; }
.ui.full #plan { display: contents; }
.ui.full .slots { grid-column: 1; grid-row: 2; gap: 10px; }
.ui.full #status { grid-column: 1; grid-row: 3; }
.ui.full .plan-side { grid-column: 2; grid-row: 2 / span 2; border-left: 1px solid var(--border); padding-left: 24px; min-height: 100%; }
.ui.full .plan-side > :first-child, .ui.full .plan-side > .side-title + * { margin-top: 0; }
.ui.full .slot-card { padding: 30px 12px 18px; }
.ui.full .slot-card > .av { --s: 52px; font-size: 21px; }
.ui.full .slot-card > .av .lvl.mini { width: 22px; height: 22px; }
.ui.full .slot-ph { width: 52px; height: 52px; }
.ui.full .slot-name { margin-top: 10px; font-size: 14.5px; }
.ui.full .slot-sub { display: block; max-width: 100%; margin-top: 2px; font-size: 11.5px; color: var(--muted); text-align: center; }
.ui.full .slot-sub > div { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui .slot-meta { font-variant-numeric: tabular-nums; }
.ui.full .slot-idx { top: 9px; left: 12px; font-size: 11px; }
.ui.full .slot-tag { top: 9px; right: 12px; font-size: 11px; }
.ui.full .slot-bar { height: 4px; }
.ui.full .changes { flex-direction: column; flex-wrap: nowrap; gap: 8px; margin-top: 0; }
.ui.full .change { background: none; border: 0; padding: 0; border-radius: 0; gap: 10px; font-size: 12.5px; }
.ui.full .change .ic { width: 22px; height: 22px; border-radius: 7px; }
/* the You strip lives in the header on the full page */
.ui .app-head #selfCard { flex: 0 1 auto; min-width: 0; margin-left: auto; padding: 5px 6px 5px 6px; border-radius: 12px; background: var(--surface-2); box-shadow: none; }
.ui .app-head #selfCard .self-text, .ui .app-head #selfCard .msg:empty { display: none; }
/* list: a table on the full page */
.ui.full #list { overflow: clip; }
/* rounded corners without becoming the sticky header's scroll container */
.ui.full .pchance { width: 140px; flex-direction: row; align-items: center; gap: 8px; }
.ui.full .pchance .val { order: 0; width: 36px; }
.ui.full .pchance .track { flex: 1; }
.ui.full .bstate { width: 104px; }
.ui.full .p { padding-top: 10px; padding-bottom: 10px; }
/* A narrow list column (the website's 1080 px page, a small window): the ELO column goes (the slot cards
   and the player card show it) and the bar shrinks, so the name keeps room. */
.ui.full #colList { container-type: inline-size; }
@container (max-width: 680px) {
.ui.full .pelo { display: none; }
.ui.full .pchance { width: 96px; }
.ui.full .lhead .pchance { white-space: nowrap; }
/* "JOGAR EM BREVE" stays one line */
}
/* the plan's lines: a long reason wraps under itself instead of cutting the name */
.ui.full .change b { flex: none; max-width: 55%; }
.ui.full .change .why { white-space: normal; }
@media (max-width: 1000px) {
.ui.full { --gutter: 16px; }
.ui.full #layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "plan" "list" "detail"; }
.ui.full #detailCard { position: static; }
.ui.full #planCard { grid-template-columns: minmax(0, 1fr); }
.ui.full .plan-side { grid-column: 1; grid-row: auto; border-left: 0; padding-left: 0; margin-top: 16px; }
.ui.full #status { grid-row: auto; }
.ui .app-head #selfCard .self-lbl, .ui .app-head #selfCard .self-elo { display: none; }
}
/* Public edition, logged out or not approved (1.10.1): the dashboard is a greyed, inert preview. */
.ui.locked .lockable { opacity: .42; filter: grayscale(1); user-select: none; transition: opacity .2s; }
/* ---------- the public edition's small popup (mini.html, 1.15.0; the website's look, 1.16.0) ---------- */
/* The site's smoke, still (a drifting blur costs too much in a popup), its header and the dashboard's plan card. */
.ui.mini { isolation: isolate; min-height: 200px; }
.ui.mini .smoke-bg { display: block; position: fixed; inset: -10% -20%; pointer-events: none; filter: blur(50px); z-index: -1; }
.ui.mini .smoke-bg i { animation: none; }
.ui .mini-head { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 56px; padding: 0 16px; background: rgba(10, 12, 16, .72); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.ui .mini-brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 16px; letter-spacing: -.01em; }
.ui .mini-brand .logo { width: 32px; height: 32px; border-radius: 10px;
  background: linear-gradient(180deg, #3a414d, #1a1e25); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 0 18px rgba(220, 226, 236, .12); }
.ui .mini-brand .logo svg { width: 22px; height: 22px; }
.ui .mini-brand:hover .logo { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 0 22px rgba(220, 226, 236, .22); }
.ui .mini-account { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 600; font-size: 13px; }
.ui .mini-account .chip-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 170px; }
.ui.mini main { padding: 14px 16px 16px; }
.ui.mini .card { padding: 16px; border-radius: var(--r-lg); }
.ui.mini .update-note { margin-bottom: 12px; }
.ui .mini-summary { margin: 0 2px 12px; }
.ui.mini .slots { margin-top: 12px; }
.ui.mini .slot-card .slot-name { font-size: 12px; }
.ui.mini .plan-side { margin-top: 14px; }
.ui.mini .side-title { margin-bottom: 8px; }
.ui.mini .changes { flex-direction: column; flex-wrap: nowrap; gap: 7px; margin-top: 0; }
.ui.mini .change { background: none; border: 0; padding: 0; border-radius: 0; gap: 9px; font-size: 12.5px; }
.ui.mini .change .ic { width: 22px; height: 22px; border-radius: 7px; }
.ui.mini .change b { flex: none; max-width: 45%; }
.ui.mini .change .why { white-space: normal; }
.ui.mini #status { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.ui.mini #status:empty { display: none; }
.ui .mini-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; margin-top: 12px; }
.ui .mini-actions button { justify-content: center; padding-top: 10px; padding-bottom: 10px; }
/* Logged out / waiting: the site's lock card. */
.ui .mini-lock { text-align: center; }
.ui .mini-lock .empty-ic { width: 44px; height: 44px; margin: 4px auto 12px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); }
.ui .mini-lock .empty-ic .i { width: 20px; height: 20px; }
.ui .mini-lock h3 { margin: 0 0 6px; font-size: 16px; letter-spacing: -.01em; }
.ui .mini-lock .mini-pitch { margin: 0 auto 14px; color: var(--text-2); max-width: 360px; }
.ui .mini-lock .steps { text-align: left; }
.ui .mini-cta { margin-top: 16px; display: flex; justify-content: center; }
.ui .mini-cta button { min-width: 200px; justify-content: center; }
