/* ASO Lab. Tokens on :root, dark theme by system setting or by the switch (data-theme). */
:root {
  color-scheme: light;
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #f0f2f5;
  --surface-3: #e7eaef;
  --border: #e1e4ea;
  --border-strong: #c9ced6;
  --text: #181b20;
  --text-2: #5a616c;
  --text-3: #868d98;
  --accent: #2370cd;
  --accent-hover: #1b64be;
  --accent-weak: #e6f0fc;
  --accent-text: #1757ac;
  --good: #006c10;
  --good-bg: #e3f4e5;
  --bad: #b8292a;
  --bad-bg: #fce8e8;
  --warn: #8a5a00;
  --warn-bg: #fdf1d6;
  --neutral-bg: #eceef2;
  --focus: 0 0 0 3px rgba(37, 125, 224, .35);
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .06);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, .18);
  --radius: 10px;
  --radius-sm: 6px;
  /* chart roles (see web/js/chart.js) */
  --series-control: #7c838e;
  --series-1: #257de0;
  --series-2: #f47230;
  --series-3: #00b894;
  --series-4: #f2a600;
  --series-5: #ee7fac;
  --series-6: #008a17;
  --series-7: #6a4ce2;
  --series-8: #ec4647;
  --grid: #e9ecf0;
}

@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    color-scheme: dark;
    --bg: #111316;
    --surface: #1a1c20;
    --surface-2: #22252a;
    --surface-3: #2b2f35;
    --border: #2e3238;
    --border-strong: #42474f;
    --text: #eceef1;
    --text-2: #a7aeb8;
    --text-3: #7f8792;
    --accent: #338ced;
    --accent-hover: #519ced;
    --accent-weak: #1a2b42;
    --accent-text: #84b9f3;
    --good: #5fd170;
    --good-bg: #16301b;
    --bad: #f28b8b;
    --bad-bg: #3a1c1d;
    --warn: #f2c86a;
    --warn-bg: #3a2f14;
    --neutral-bg: #2b2f35;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, .55);
    --series-control: #9aa1ab;
    --series-1: #338ced;
    --series-2: #e76624;
    --series-3: #00a888;
    --series-4: #d28e05;
    --series-5: #e24d8b;
    --series-6: #0aac23;
    --series-7: #9887ef;
    --series-8: #eb6263;
    --grid: #2a2e34;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111316;
  --surface: #1a1c20;
  --surface-2: #22252a;
  --surface-3: #2b2f35;
  --border: #2e3238;
  --border-strong: #42474f;
  --text: #eceef1;
  --text-2: #a7aeb8;
  --text-3: #7f8792;
  --accent: #338ced;
  --accent-hover: #519ced;
  --accent-weak: #1a2b42;
  --accent-text: #84b9f3;
  --good: #5fd170;
  --good-bg: #16301b;
  --bad: #f28b8b;
  --bad-bg: #3a1c1d;
  --warn: #f2c86a;
  --warn-bg: #3a2f14;
  --neutral-bg: #2b2f35;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, .55);
  --series-control: #9aa1ab;
  --series-1: #338ced;
  --series-2: #e76624;
  --series-3: #00a888;
  --series-4: #d28e05;
  --series-5: #e24d8b;
  --series-6: #0aac23;
  --series-7: #9887ef;
  --series-8: #eb6263;
  --grid: #2a2e34;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 14px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
h1 { font-size: 22px; font-weight: 650; }
h2 { font-size: 16px; font-weight: 650; }
h3 { font-size: 14px; font-weight: 650; }
p { margin: 0 0 8px; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
[hidden] { display: none !important; }

.i { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.i-lg { width: 20px; height: 20px; }

/* ---- shell ---- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 20px;
  height: 56px; padding: 0 24px;
  background: var(--surface); border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; color: var(--text); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 26px; height: 26px; border-radius: 7px; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 800; letter-spacing: -.5px; }
.nav { display: flex; gap: 4px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav a { padding: 7px 12px; border-radius: var(--radius-sm); color: var(--text-2); font-weight: 550; white-space: nowrap; }
.nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav a.active { background: var(--accent-weak); color: var(--accent-text); }
.usermenu { position: relative; }
.main { max-width: 1440px; margin: 0 auto; padding: 24px; }

@media (max-width: 720px) {
  .topbar { padding: 0 16px; gap: 12px; }
  .brand span:last-child { display: none; }
  .main { padding: 16px; }
}

/* ---- buttons and fields ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  font: inherit; font-weight: 550; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn:focus-visible, .field:focus-visible, .seg button:focus-visible, .thumb:focus-visible { outline: none; box-shadow: var(--focus); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-hover); }
.btn.danger { color: var(--bad); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--surface-2); color: var(--text); }
.btn.sm { height: 28px; padding: 0 10px; font-size: 13px; }
.btn.icon-only { width: 34px; padding: 0; }
.btn.sm.icon-only { width: 28px; }
.btn:disabled { opacity: .55; cursor: default; }

.field {
  height: 34px; padding: 0 10px; width: 100%;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); font: inherit;
}
textarea.field { height: auto; min-height: 72px; padding: 8px 10px; resize: vertical; line-height: 1.45; }
select.field { padding-right: 28px; }
.field::placeholder { color: var(--text-3); }
label.lbl { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-2); margin-bottom: 4px; }
.form-grid { display: grid; gap: 14px 16px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.form-grid .wide { grid-column: 1 / -1; }
.check { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; user-select: none; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); margin: 0; }
.hint { font-size: 12.5px; color: var(--text-3); margin-top: 4px; }

.seg { display: inline-flex; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.seg button { border: 0; background: transparent; color: var(--text-2); font: inherit; font-weight: 550; padding: 0 12px; height: 32px; cursor: pointer; }
.seg button + button { border-left: 1px solid var(--border); }
.seg button.on { background: var(--accent-weak); color: var(--accent-text); }

/* ---- page header ---- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head .sub { color: var(--text-2); margin-top: 4px; }
.crumbs { display: flex; gap: 6px; align-items: center; color: var(--text-3); font-size: 13px; margin-bottom: 6px; flex-wrap: wrap; }
.crumbs a { color: var(--text-2); }

/* ---- chips ---- */
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  height: 22px; padding: 0 8px; border-radius: 999px;
  font-size: 12px; font-weight: 600; white-space: nowrap;
  background: var(--neutral-bg); color: var(--text-2);
}
.chip .i { width: 13px; height: 13px; }
.chip.good { background: var(--good-bg); color: var(--good); }
.chip.bad { background: var(--bad-bg); color: var(--bad); }
.chip.warn { background: var(--warn-bg); color: var(--warn); }
.chip.accent { background: var(--accent-weak); color: var(--accent-text); }
.chip.outline { background: transparent; border: 1px solid var(--border-strong); }
.chip.tag { background: var(--surface-2); color: var(--text-2); font-weight: 500; }
button.chip { border: 0; cursor: pointer; font: inherit; font-size: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }

/* ---- filters ---- */
.filters {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  padding: 12px; margin-bottom: 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.filters .field { width: auto; min-width: 0; }
.filters .search { flex: 1 1 240px; position: relative; }
.filters .search .field { width: 100%; padding-left: 32px; }
.filters .search .i { position: absolute; left: 10px; top: 9px; color: var(--text-3); }
.filters .dates { display: flex; gap: 4px; align-items: center; color: var(--text-3); }
.filters .dates .field { width: 140px; }
@media (max-width: 720px) {
  .filters .field, .filters select { flex: 1 1 140px; }
  .filters .dates { flex: 1 1 100%; }
  .filters .dates .field { flex: 1; width: auto; }
}

/* ---- test cards ---- */
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
@media (max-width: 400px) { .cards { grid-template-columns: 1fr; } }
.card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 14px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
  color: var(--text); min-width: 0;
}
a.card:hover { text-decoration: none; border-color: var(--border-strong); box-shadow: var(--shadow-lg); }
.card-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.card-app { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); font-size: 13px; font-weight: 550; }
.card-title { font-weight: 650; font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.card-dates { font-size: 12.5px; color: var(--text-3); }
.card-hyp { font-size: 13px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.compare .side { min-width: 0; background: var(--surface-2); border-radius: var(--radius-sm); padding: 8px; }
.compare .side-label { font-size: 11.5px; font-weight: 650; color: var(--text-3); text-transform: uppercase; letter-spacing: .3px; margin-bottom: 6px; display: flex; gap: 4px; align-items: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.compare .side-label.win { color: var(--good); }
.compare .imgs { display: flex; gap: 4px; align-items: flex-end; min-height: 56px; overflow: hidden; }
.compare .imgs img { display: block; border-radius: 4px; background: var(--surface-3); object-fit: cover; }
.compare .imgs img.icon { width: 56px; height: 56px; border-radius: 13px; }
.compare .imgs img.shot { height: 96px; width: auto; max-width: 30%; }
.compare .empty { color: var(--text-3); font-size: 12px; height: 56px; display: flex; align-items: center; }
.store { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 650; color: var(--text-2); white-space: nowrap; }
.store::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: #257de0; }
.store.google_play::before { background: #00a888; }

.more { display: flex; justify-content: center; margin-top: 20px; }
.empty-state { text-align: center; padding: 56px 16px; color: var(--text-2); background: var(--surface); border: 1px dashed var(--border-strong); border-radius: var(--radius); }
.empty-state h2 { margin-bottom: 6px; color: var(--text); }

/* ---- panels ---- */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; min-width: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.layout-2 { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
@media (max-width: 1000px) { .layout-2 { grid-template-columns: minmax(0, 1fr); } }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: 13.5px; }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

/* ---- variants on the test page ---- */
.variant { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--border); }
.variant:first-of-type { border-top: 0; padding-top: 0; }
.variant-head { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.variant-name { font-weight: 700; font-size: 15px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.variant .icon-big { width: 96px; height: 96px; border-radius: 22px; display: block; background: var(--surface-2); cursor: zoom-in; object-fit: cover; }
.strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; }
.strip .thumb { flex: none; scroll-snap-align: start; position: relative; }
.strip img { display: block; height: 300px; width: auto; border-radius: 8px; background: var(--surface-2); cursor: zoom-in; border: 1px solid var(--border); }
.strip .num { position: absolute; left: 6px; top: 6px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 999px; }
.thumb { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 8px; }
@media (max-width: 720px) {
  .variant { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .variant-head { flex-direction: row; align-items: center; }
  .variant .icon-big { width: 64px; height: 64px; border-radius: 15px; }
  .strip img { height: 220px; }
}

/* ---- lightbox ---- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8, 10, 14, .92); display: flex; flex-direction: column; color: #fff; }
.lightbox-top { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.lightbox-top .cap { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lightbox .btn { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); color: #fff; }
.lightbox .btn:hover { background: rgba(255, 255, 255, .2); }
.lightbox-body { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 0 12px 16px; }
.lightbox-body img { max-width: calc(100% - 120px); max-height: 100%; object-fit: contain; border-radius: 8px; }
@media (max-width: 720px) { .lightbox-body img { max-width: 100%; } .lightbox-body .nav-btn { display: none; } }

/* ---- chart ---- */
.chart-wrap { position: relative; }
.chart-wrap svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-wrap .axis text { fill: var(--text-3); font-size: 11px; }
.chart-wrap .gridline { stroke: var(--grid); stroke-width: 1; }
.chart-wrap .baseline { stroke: var(--border-strong); stroke-width: 1; }
.chart-wrap .line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart-wrap .line.control { stroke-dasharray: 5 4; }
.chart-wrap .endlabel { font-size: 11.5px; font-weight: 600; fill: var(--text-2); }
.chart-wrap .cross { stroke: var(--text-3); stroke-width: 1; }
.chart-wrap .pt { stroke: var(--surface); stroke-width: 2; }
.chart-tip {
  position: absolute; pointer-events: none; z-index: 5;
  background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 8px;
  box-shadow: var(--shadow-lg); padding: 8px 10px; font-size: 12.5px; min-width: 160px;
}
.chart-tip .row { display: flex; align-items: center; gap: 6px; justify-content: space-between; }
.chart-tip .sw, .legend .sw { width: 10px; height: 3px; border-radius: 2px; display: inline-block; flex: none; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--text-2); margin-bottom: 8px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }

/* ---- tables ---- */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th, .tbl td { padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.tbl th { font-weight: 600; color: var(--text-3); font-size: 12px; white-space: nowrap; }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .delta-up { color: var(--good); font-weight: 600; }
.tbl .delta-down { color: var(--bad); font-weight: 600; }

/* ---- editor ---- */
.editor-variant { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; background: var(--surface); }
.editor-variant-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.editor-variant-head .field.label { width: 160px; font-weight: 650; }
.drop {
  border: 1.5px dashed var(--border-strong); border-radius: var(--radius-sm); padding: 10px;
  background: var(--surface-2); min-height: 88px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
}
.drop.over { border-color: var(--accent); background: var(--accent-weak); }
.drop .tile { position: relative; flex: none; }
.drop .tile img { display: block; height: 120px; width: auto; border-radius: 6px; border: 1px solid var(--border); background: var(--surface-3); }
.drop .tile.icon img { width: 72px; height: 72px; border-radius: 16px; object-fit: cover; }
.drop .tile.dragging { opacity: .4; }
.drop .tile .x { position: absolute; top: -7px; right: -7px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--text); color: var(--surface); display: grid; place-items: center; cursor: pointer; padding: 0; }
.drop .tile .x .i { width: 12px; height: 12px; }
.drop .tile .pos { position: absolute; left: 4px; bottom: 4px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 11px; font-weight: 700; padding: 0 5px; border-radius: 999px; }
.drop .tile.loading { width: 72px; height: 120px; border-radius: 6px; background: var(--surface-3); display: grid; place-items: center; color: var(--text-3); font-size: 11px; }
.drop .add { height: 72px; padding: 0 14px; border: 0; background: transparent; color: var(--accent-text); font: inherit; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.metrics-grid input.field { height: 30px; width: 92px; text-align: right; padding: 0 6px; font-variant-numeric: tabular-nums; }
.metrics-grid input.field.day { width: 140px; text-align: left; }
.metrics-grid td, .metrics-grid th { padding: 4px 6px; }
.tag-input { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 5px 6px; background: var(--surface); min-height: 34px; }
.tag-input input { border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; flex: 1; min-width: 120px; height: 22px; }
.savebar { position: sticky; bottom: 0; z-index: 10; display: flex; gap: 8px; justify-content: flex-end; padding: 12px 0; background: linear-gradient(transparent, var(--bg) 30%); }

/* ---- dialog, toast, menu ---- */
.modal-back { position: fixed; inset: 0; z-index: 90; background: rgba(10, 14, 20, .45); display: flex; align-items: flex-start; justify-content: center; padding: 8vh 16px 16px; overflow-y: auto; }
.modal { background: var(--surface); border-radius: 12px; box-shadow: var(--shadow-lg); width: 100%; max-width: 520px; padding: 20px; }
.modal h2 { margin-bottom: 14px; }
.modal .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 120; background: var(--text); color: var(--surface); padding: 10px 16px; border-radius: 8px; box-shadow: var(--shadow-lg); max-width: calc(100% - 32px); }
.toast.error { background: var(--bad); color: #fff; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 220px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 6px; }
.menu button, .menu a { display: flex; width: 100%; align-items: center; gap: 8px; padding: 8px 10px; border: 0; background: transparent; color: var(--text); font: inherit; border-radius: var(--radius-sm); cursor: pointer; text-align: left; }
.menu button:hover, .menu a:hover { background: var(--surface-2); text-decoration: none; }
.menu .who { padding: 8px 10px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.secret { font: 600 15px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface-2); padding: 10px 12px; border-radius: var(--radius-sm); user-select: all; overflow-wrap: anywhere; }

/* ---- login ---- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login form { width: 100%; max-width: 360px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; }
.login .brand { justify-content: center; font-size: 20px; margin-bottom: 4px; }
.err { color: var(--bad); font-size: 13px; }

/* ---- apps, admin ---- */
.team-block { margin-bottom: 24px; }
.team-block > h2 { margin-bottom: 10px; display: flex; gap: 8px; align-items: baseline; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.tabs a { padding: 8px 14px; color: var(--text-2); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.on { color: var(--accent-text); border-color: var(--accent); }
.tabs a:hover { text-decoration: none; color: var(--text); }
.team-checks { display: flex; flex-direction: column; gap: 6px; max-height: 220px; overflow-y: auto; padding: 8px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.spinner { padding: 40px; text-align: center; color: var(--text-3); }
.card-top .chip, .card-top .store { flex: none; }
/* the same columns in every team's table */
.apps-tbl { table-layout: fixed; min-width: 760px; }
.apps-tbl th:nth-child(1) { width: 32%; }
.apps-tbl th:nth-child(2) { width: 13%; }
.apps-tbl th:nth-child(3) { width: 22%; }
.apps-tbl th:nth-child(4) { width: 8%; }
.apps-tbl th:nth-child(5) { width: 13%; }
.apps-tbl th:nth-child(6) { width: 12%; }

/* ---- compare by screens ---- */
table.cmp { border-collapse: separate; border-spacing: 10px 8px; margin: -8px -10px; }
.cmp th { text-align: left; font-weight: 650; white-space: nowrap; vertical-align: middle; }
.cmp tbody th { padding-right: 4px; }
.cmp td { vertical-align: top; }
.cmp img.cmp-shot { display: block; height: 340px; width: auto; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); }
.cmp img.cmp-icon { display: block; width: 96px; height: 96px; border-radius: 22px; background: var(--surface-2); object-fit: cover; }
.cmp .cmp-empty { color: var(--text-3); font-size: 12px; padding: 8px; }
@media (max-width: 720px) { .cmp img.cmp-shot { height: 240px; } .cmp img.cmp-icon { width: 64px; height: 64px; border-radius: 15px; } }

/* ---- filters on a phone: folded behind a button ---- */
.filters-toggle { display: none; }
@media (max-width: 720px) {
  .filters-toggle { display: inline-flex; margin-bottom: 12px; }
  .filters.folded > :not(.search) { display: none; }
}

/* ---- OAuth consent ---- */
.consent { max-width: 560px; margin: 24px auto; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 28px; box-shadow: var(--shadow); }
.consent h1 { font-size: 20px; margin: 16px 0 8px; }
.consent-head { display: flex; align-items: center; gap: 12px; color: var(--text-3); }
.consent-head .brand-mark { width: 40px; height: 40px; border-radius: 10px; font-size: 15px; }
.consent-app { width: 40px; height: 40px; border-radius: 10px; background: var(--surface-3); color: var(--text); display: grid; place-items: center; font-weight: 800; }
.consent-opt { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); margin-top: 10px; }
.consent-opt input { margin-top: 3px; }
.consent-opt.disabled { opacity: .6; cursor: default; }
