Desktop D2 UI: design system, portfolio, release timeline, catalog parity, listings, health, reviews, TestFlight, checks, command palette, toasts, first-run guide, en + tr with i18n check, 7:1 theme check, dev fixture mode and screenshot harness

This commit is contained in:
CRTkafa 2026-10-10 19:34:47 +00:00
parent 7388c8ab37
commit 33e2101d27
44 changed files with 5475 additions and 742 deletions

View file

@ -1,179 +1,634 @@
/* Tokens shared with storebound.dev (site/style.css): slate neutrals, indigo accent, API / LOCAL / UI / YOU tags. */
/* storebound desktop design system.
Tokens follow storebound.dev (slate neutrals, indigo accent). Text tokens keep 7:1 contrast on every surface they
are used on, in both themes (tests/theme.test.ts checks it). Scales: space 4-40, type 11-28, radius 6/10/14.
Motion: 120-180 ms, none with reduced motion (system setting or Settings > Motion). */
:root {
--bg: #f8fafc;
--bg-alt: #f1f5f9;
--bg: #f6f7f9;
--bg-sunken: #eef1f5;
--surface: #ffffff;
--ink: #0f172a;
--ink-2: #334155;
--muted: #475569;
--line: #e2e8f0;
--line-2: #cbd5e1;
--accent: #4f46e5;
--surface-2: #f9fafb;
--hover: #f1f4f8;
--ink: #0b1220;
--ink-2: #2b3648;
--muted: #455066;
--faint: #8a95a8;
--line: #e4e7ec;
--line-2: #d2d7e0;
--accent: #3f35c2;
--accent-solid: #5b55e8;
--accent-ink: #ffffff;
--accent-soft: #eef2ff;
--code-bg: #0f172a;
--code-ink: #e2e8f0;
--ok-bg: #dcfce7; --ok-ink: #166534;
--local-bg: #e0f2fe; --local-ink: #075985;
--warn-bg: #fef3c7; --warn-ink: #92400e;
--bad-bg: #fce7f3; --bad-ink: #9d174d;
--shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px -12px rgba(15, 23, 42, .18);
--radius: 12px;
--font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
--mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
--speed: .14s;
--accent-soft: #eef0ff;
--accent-line: #c7cbfa;
--focus: #5b55e8;
--ok-bg: #e3f7ea; --ok-ink: #11502b; --ok-solid: #1f9d55;
--warn-bg: #fff3d6; --warn-ink: #6b3a06; --warn-solid: #d68a0c;
--bad-bg: #ffe6ea; --bad-ink: #7f1230; --bad-solid: #e0355b;
--info-bg: #e2f2fd; --info-ink: #0b4467; --info-solid: #1689d0;
--neutral-bg: #eef1f5; --neutral-ink: #2b3648; --neutral-solid: #9aa4b5;
--illo-1: #eef0ff;
--illo-2: #dfe3ff;
--illo-line: #5b55e8;
--illo-soft: #c9d0dc;
--code-bg: #0e1526;
--code-ink: #dbe3f0;
--shadow-1: 0 1px 2px rgba(16, 24, 40, .05);
--shadow-2: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px -12px rgba(16, 24, 40, .16);
--shadow-3: 0 2px 6px rgba(16, 24, 40, .08), 0 24px 64px -16px rgba(16, 24, 40, .28);
--scrim: rgba(15, 20, 32, .38);
--s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s8: 32px; --s10: 40px;
--r-sm: 6px; --r: 10px; --r-lg: 14px;
--t-micro: 11px; --t-meta: 12px; --t-body: 13px; --t-em: 14px; --t-section: 15px; --t-title: 20px; --t-kpi: 26px;
--font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI", "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
--mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
--speed: .16s;
--ease: cubic-bezier(.2, .7, .2, 1);
color-scheme: light;
}
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) {
--bg: #0b1120; --bg-alt: #0f172a; --surface: #131c2f;
--ink: #f1f5f9; --ink-2: #cbd5e1; --muted: #a5b4c8; --line: #1e293b; --line-2: #334155;
--accent: #818cf8; --accent-ink: #0b1120; --accent-soft: #1e1b4b;
--code-bg: #060a14;
--ok-bg: #14532d; --ok-ink: #bbf7d0; --local-bg: #0c4a6e; --local-ink: #bae6fd;
--warn-bg: #451a03; --warn-ink: #fde68a; --bad-bg: #500724; --bad-ink: #fbcfe8;
--shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -16px rgba(0, 0, 0, .7);
--bg: #0a0f1a; --bg-sunken: #080c16; --surface: #111827; --surface-2: #0e1522; --hover: #172133;
--ink: #f3f6fb; --ink-2: #d3dbe7; --muted: #a9b5c7; --faint: #6b788d; --line: #1e2838; --line-2: #2b374b;
--accent: #b4bcff; --accent-solid: #8189f8; --accent-ink: #0a0f1a; --accent-soft: #1b1f45; --accent-line: #3a3f86; --focus: #9aa2ff;
--ok-bg: #0c2c1b; --ok-ink: #9ff0bf; --ok-solid: #34c172;
--warn-bg: #33230a; --warn-ink: #ffd88a; --warn-solid: #eba22f;
--bad-bg: #3a0f1c; --bad-ink: #ffb3c2; --bad-solid: #f2557a;
--info-bg: #0b2a40; --info-ink: #a6dcff; --info-solid: #3aa7ec;
--neutral-bg: #1a2333; --neutral-ink: #d3dbe7; --neutral-solid: #6b788d;
--illo-1: #181d3d; --illo-2: #232a5a; --illo-line: #8f97ff; --illo-soft: #334058;
--code-bg: #060a13; --code-ink: #dbe3f0;
--shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
--shadow-2: 0 1px 2px rgba(0, 0, 0, .45), 0 12px 32px -16px rgba(0, 0, 0, .7);
--shadow-3: 0 2px 8px rgba(0, 0, 0, .5), 0 30px 80px -20px rgba(0, 0, 0, .8);
--scrim: rgba(2, 4, 10, .6);
color-scheme: dark;
}
}
:root[data-theme="dark"] {
--bg: #0b1120; --bg-alt: #0f172a; --surface: #131c2f;
--ink: #f1f5f9; --ink-2: #cbd5e1; --muted: #a5b4c8; --line: #1e293b; --line-2: #334155;
--accent: #818cf8; --accent-ink: #0b1120; --accent-soft: #1e1b4b;
--code-bg: #060a14;
--ok-bg: #14532d; --ok-ink: #bbf7d0; --local-bg: #0c4a6e; --local-ink: #bae6fd;
--warn-bg: #451a03; --warn-ink: #fde68a; --bad-bg: #500724; --bad-ink: #fbcfe8;
--shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -16px rgba(0, 0, 0, .7);
--bg: #0a0f1a; --bg-sunken: #080c16; --surface: #111827; --surface-2: #0e1522; --hover: #172133;
--ink: #f3f6fb; --ink-2: #d3dbe7; --muted: #a9b5c7; --faint: #6b788d; --line: #1e2838; --line-2: #2b374b;
--accent: #b4bcff; --accent-solid: #8189f8; --accent-ink: #0a0f1a; --accent-soft: #1b1f45; --accent-line: #3a3f86; --focus: #9aa2ff;
--ok-bg: #0c2c1b; --ok-ink: #9ff0bf; --ok-solid: #34c172;
--warn-bg: #33230a; --warn-ink: #ffd88a; --warn-solid: #eba22f;
--bad-bg: #3a0f1c; --bad-ink: #ffb3c2; --bad-solid: #f2557a;
--info-bg: #0b2a40; --info-ink: #a6dcff; --info-solid: #3aa7ec;
--neutral-bg: #1a2333; --neutral-ink: #d3dbe7; --neutral-solid: #6b788d;
--illo-1: #181d3d; --illo-2: #232a5a; --illo-line: #8f97ff; --illo-soft: #334058;
--code-bg: #060a13; --code-ink: #dbe3f0;
--shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
--shadow-2: 0 1px 2px rgba(0, 0, 0, .45), 0 12px 32px -16px rgba(0, 0, 0, .7);
--shadow-3: 0 2px 8px rgba(0, 0, 0, .5), 0 30px 80px -20px rgba(0, 0, 0, .8);
--scrim: rgba(2, 4, 10, .6);
color-scheme: dark;
}
@media (prefers-reduced-motion: reduce) { :root { --speed: 0s; } }
:root[data-motion="reduce"] { --speed: 0s; }
/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, #root { height: 100%; }
body {
margin: 0;
background: var(--bg);
color: var(--ink);
font: 14px/1.5 var(--font);
-webkit-font-smoothing: antialiased;
user-select: none;
-webkit-user-select: none;
cursor: default;
margin: 0; background: var(--bg); color: var(--ink);
font: var(--t-body)/1.5 var(--font); font-feature-settings: "cv11", "ss01";
-webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
user-select: none; -webkit-user-select: none; cursor: default; overflow: hidden;
}
input, textarea, .selectable, pre, code { user-select: text; -webkit-user-select: text; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -.015em; }
input, textarea, .selectable, pre, code, .mono-id { user-select: text; -webkit-user-select: text; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--r-sm); }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.012em; }
p { margin: 0; }
code, pre { font-family: var(--mono); font-size: 12.5px; }
code, pre, .mono { font-family: var(--mono); font-size: 12px; }
.num { font-variant-numeric: tabular-nums; }
button { font: inherit; color: inherit; }
svg { flex: none; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: var(--r-sm); }
.skip:focus { left: 8px; }
::selection { background: var(--accent-soft); }
.app { display: grid; grid-template-columns: 220px 1fr; height: 100%; }
/* sidebar */
.side { background: var(--bg-alt); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 16px 12px; gap: 4px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; padding: 4px 8px 16px; }
.brand svg { width: 26px; height: 26px; flex: none; }
.nav { all: unset; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--ink-2); font-weight: 550; cursor: pointer; transition: background-color var(--speed) ease; }
.nav svg { width: 16px; height: 16px; flex: none; }
.nav:hover { background: var(--line); }
.nav[aria-current="page"] { background: var(--accent-soft); color: var(--ink); }
.nav:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }
.side-label { margin: 14px 10px 4px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.side-apps { display: grid; gap: 2px; max-height: 40vh; overflow: auto; }
.side-empty { color: var(--muted); font-size: 12.5px; padding: 4px 10px; }
.nav-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-foot { margin-top: auto; padding: 10px 8px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; display: grid; gap: 4px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: var(--line-2); }
.dot.on { background: #16a34a; }
.dot.off { background: #dc2626; }
/* main */
.main { overflow: auto; padding: 28px 32px 40px; }
.head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.head h1 { font-size: 22px; }
.head p { color: var(--muted); margin-top: 4px; max-width: 64ch; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card + .card { margin-top: 16px; }
.card-pad { padding: 18px 20px; }
.card h2 { font-size: 15px; margin-bottom: 4px; }
.card .sub { color: var(--muted); font-size: 13px; }
.btn { all: unset; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 32px; padding: 0 14px; border-radius: 8px; font-weight: 600; font-size: 13px; cursor: pointer; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); transition: background-color var(--speed) ease, border-color var(--speed) ease; white-space: nowrap; }
.btn:hover { border-color: var(--muted); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, var(--ink)); border-color: transparent; }
.btn-quiet { border-color: transparent; background: transparent; color: var(--muted); }
.btn-quiet:hover { color: var(--ink); background: var(--bg-alt); border-color: transparent; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 650; background: var(--bg-alt); }
th:first-child { border-top-left-radius: var(--radius); }
th:last-child { border-top-right-radius: var(--radius); }
tr:last-child td { border-bottom: 0; }
td .path { color: var(--muted); font-family: var(--mono); font-size: 12px; max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
td:first-child { min-width: 180px; }
.card:has(> table) { overflow-x: auto; }
.name { font-weight: 650; }
.nowrap { white-space: nowrap; }
.plat { display: grid; gap: 6px; font-size: 13px; }
.plat .tag { min-width: 64px; text-align: center; margin-right: 6px; }
.tag { white-space: nowrap; display: inline-block; font: 700 10.5px/1 var(--mono); letter-spacing: .05em; padding: 5px 8px; border-radius: 999px; text-transform: uppercase; }
.tag-ok { background: var(--ok-bg); color: var(--ok-ink); }
.tag-local { background: var(--local-bg); color: var(--local-ink); }
.tag-warn { background: var(--warn-bg); color: var(--warn-ink); }
.tag-bad { background: var(--bad-bg); color: var(--bad-ink); }
.tag-muted { background: var(--bg-alt); color: var(--muted); border: 1px solid var(--line); }
.empty { text-align: center; padding: 48px 24px; color: var(--muted); }
.empty h2 { color: var(--ink); margin-bottom: 6px; }
.empty .btn { margin-top: 16px; }
.form { display: grid; gap: 12px; max-width: 520px; align-content: start; }
.field { display: grid; gap: 5px; }
.field label, .legend { font-weight: 600; font-size: 13px; }
.field .hint { color: var(--muted); font-size: 12px; }
input[type="text"], select {
font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line-2); border-radius: 8px; min-height: 34px; padding: 0 10px;
/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); height: 100%; }
.side { background: var(--bg-sunken); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.side-top { padding: 14px 12px 8px; display: grid; gap: 10px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 6px; font-weight: 650; font-size: var(--t-em); letter-spacing: -.01em; }
.brand-mark { width: 24px; height: 24px; }
.brand small { margin-left: auto; font: 600 10px/1 var(--mono); color: var(--muted); border: 1px solid var(--line-2); padding: 3px 5px; border-radius: 5px; letter-spacing: .04em; }
.search-btn {
all: unset; display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 8px 0 10px; border-radius: 8px; cursor: pointer;
background: var(--surface); border: 1px solid var(--line); color: var(--muted); box-shadow: var(--shadow-1); transition: border-color var(--speed) var(--ease);
}
input[type="text"]:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
select { padding-right: 6px; max-width: 220px; }
.search-btn:hover { border-color: var(--line-2); }
.search-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.search-btn svg { width: 15px; height: 15px; }
.search-btn .lbl { flex: 1; text-align: left; white-space: nowrap; }
.kbd { display: inline-flex; align-items: center; gap: 2px; font: 600 10.5px/1 var(--font); color: var(--muted); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; padding: 3px 5px; background: var(--surface); }
.side-scroll { flex: 1; overflow: auto; padding: 4px 8px 12px; min-height: 0; }
.side-label { display: flex; align-items: center; justify-content: space-between; margin: 14px 10px 4px; font-size: var(--t-micro); font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.side-label button { all: unset; cursor: pointer; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; color: var(--muted); }
.side-label button:hover { background: var(--hover); color: var(--ink); }
.side-label button:focus-visible { outline: 2px solid var(--focus); }
.side-label svg { width: 14px; height: 14px; }
.nav {
all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 10px; border-radius: 7px;
color: var(--ink-2); font-weight: 520; cursor: pointer; transition: background-color var(--speed) var(--ease), color var(--speed) var(--ease);
}
.nav + .nav { margin-top: 1px; }
.nav svg { width: 16px; height: 16px; color: var(--muted); }
.nav:hover { background: var(--hover); color: var(--ink); }
.nav[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); font-weight: 600; }
.nav[aria-current="page"] svg { color: var(--accent-solid); }
.nav:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.nav .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav .count { font-size: var(--t-micro); color: var(--muted); font-variant-numeric: tabular-nums; }
.nav-app { height: 34px; }
.nav-app .app-icon { width: 20px; height: 20px; border-radius: 5px; font-size: 8.5px; }
.nav .pip { width: 7px; height: 7px; border-radius: 50%; }
.side-empty { color: var(--muted); font-size: var(--t-meta); padding: 6px 10px; }
.side-foot { border-top: 1px solid var(--line); padding: 10px 14px; display: grid; gap: 6px; font-size: var(--t-meta); color: var(--muted); }
.side-foot .row { display: flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--neutral-solid); flex: none; }
.dot.ok { background: var(--ok-solid); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok-solid) 22%, transparent); }
.dot.bad { background: var(--bad-solid); }
.dot.warn { background: var(--warn-solid); }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.grid2 > .card + .card { margin-top: 0; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 9px; overflow: hidden; }
.seg button { all: unset; padding: 7px 14px; cursor: pointer; font-weight: 600; font-size: 13px; color: var(--ink-2); }
.seg button + button { border-left: 1px solid var(--line-2); }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.seg button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.topbar { height: 52px; flex: none; display: flex; align-items: center; gap: 12px; padding: 0 24px 0 28px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 85%, var(--surface)); }
.crumbs { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: var(--t-body); color: var(--muted); }
.crumbs button { all: unset; cursor: pointer; color: var(--muted); border-radius: 5px; padding: 2px 4px; }
.crumbs button:hover { color: var(--ink); }
.crumbs button:focus-visible { outline: 2px solid var(--focus); }
.crumbs .here { color: var(--ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumbs svg { width: 14px; height: 14px; color: var(--faint); }
.topbar .spacer { flex: 1; }
.stamp { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-meta); color: var(--muted); white-space: nowrap; }
.stamp svg { width: 13px; height: 13px; }
.dev-pill { font: 700 10px/1 var(--mono); letter-spacing: .06em; color: var(--warn-ink); background: var(--warn-bg); border: 1px solid color-mix(in srgb, var(--warn-solid) 45%, transparent); padding: 5px 7px; border-radius: 5px; }
.content { flex: 1; overflow: auto; min-height: 0; scroll-behavior: smooth; }
.page { padding: 24px 28px 48px; max-width: 1360px; margin: 0 auto; display: grid; gap: 20px; }
@media (prefers-reduced-motion: reduce) { .content { scroll-behavior: auto; } }
.notice { border-radius: 10px; padding: 10px 14px; font-size: 13px; }
.notice-bad { background: var(--bad-bg); color: var(--bad-ink); }
.notice-ok { background: var(--ok-bg); color: var(--ok-ink); }
.notice-info { background: var(--accent-soft); color: var(--ink); }
/* ---------- page header ---------- */
.ph { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.ph h1 { font-size: var(--t-title); font-weight: 650; line-height: 1.2; }
.ph p { color: var(--muted); margin-top: 4px; max-width: 72ch; }
.ph .actions { flex: none; }
.actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.app-head { display: flex; gap: 16px; align-items: center; }
.app-head .app-icon { width: 60px; height: 60px; border-radius: 14px; font-size: 20px; box-shadow: var(--shadow-2); }
.app-head h1 { font-size: 22px; font-weight: 680; }
.app-head .ids { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; align-items: center; }
/* ---------- surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); min-width: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); min-height: 52px; }
.card-head h2 { font-size: var(--t-em); font-weight: 650; display: flex; align-items: center; gap: 8px; }
.card-head h2 > svg { width: 16px; height: 16px; color: var(--muted); }
.card-head .sub { color: var(--muted); font-size: var(--t-meta); font-weight: 450; }
.card-body { padding: 16px 18px; }
.card-foot { padding: 10px 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: var(--t-meta); display: flex; align-items: center; gap: 8px; background: var(--surface-2); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-main-side { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
@media (max-width: 1180px) { .g-main-side { grid-template-columns: 1fr; } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stack { display: grid; gap: 12px; }
.log { background: var(--code-bg); color: var(--code-ink); border-radius: 10px; padding: 12px 14px; max-height: 240px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 6px 16px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.link { all: unset; cursor: pointer; color: var(--ink); }
.link:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.row { display: flex; align-items: center; gap: 8px; }
.between { justify-content: space-between; }
.muted { color: var(--muted); }
.foot-note { margin-top: 10px; color: var(--muted); font-size: 12px; }
.platforms { margin-top: 8px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tab { all: unset; padding: 8px 12px; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color var(--speed) ease; }
.ink2 { color: var(--ink-2); }
.small { font-size: var(--t-meta); }
.micro { font-size: var(--t-micro); }
.strong { font-weight: 620; }
.label { font-size: var(--t-micro); font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.mono-id { font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); }
/* ---------- KPI ---------- */
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1180px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; display: grid; gap: 6px; box-shadow: var(--shadow-1); position: relative; overflow: hidden; }
.kpi .k-label { display: flex; align-items: center; gap: 6px; font-size: var(--t-meta); color: var(--muted); font-weight: 550; }
.kpi .k-label svg { width: 14px; height: 14px; }
.kpi .k-value { font-size: var(--t-kpi); font-weight: 680; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi .k-sub { font-size: var(--t-meta); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi.tone-bad .k-value { color: var(--bad-ink); }
.kpi.tone-warn .k-value { color: var(--warn-ink); }
.kpi::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: transparent; }
.kpi.tone-bad::after { background: var(--bad-solid); }
.kpi.tone-warn::after { background: var(--warn-solid); }
/* ---------- buttons ---------- */
.btn {
all: unset; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 8px;
font-weight: 600; font-size: var(--t-body); cursor: pointer; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); white-space: nowrap;
box-shadow: var(--shadow-1); transition: background-color var(--speed) var(--ease), border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.btn svg { width: 15px; height: 15px; }
.btn:hover { background: var(--hover); }
.btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--accent); border-color: transparent; color: var(--accent-ink); box-shadow: 0 1px 2px rgba(67, 56, 202, .3), inset 0 1px 0 rgba(255, 255, 255, .12); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, var(--ink)); }
.btn-ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--ink-2); }
.btn-ghost:hover { background: var(--hover); color: var(--ink); }
.btn-danger { color: var(--bad-ink); }
.btn-sm { height: 26px; padding: 0 9px; font-size: var(--t-meta); border-radius: 7px; gap: 5px; }
.btn-sm svg { width: 13px; height: 13px; }
.btn-icon { width: 32px; padding: 0; }
.btn-sm.btn-icon { width: 26px; }
.spin { animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
:root[data-motion="reduce"] .spin { animation: none; }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; } }
.seg { display: inline-flex; padding: 2px; gap: 2px; background: var(--bg-sunken); border: 1px solid var(--line); border-radius: 9px; }
.seg button { all: unset; height: 26px; padding: 0 10px; border-radius: 7px; cursor: pointer; font-weight: 580; font-size: var(--t-meta); color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); }
.seg button:focus-visible { outline: 2px solid var(--focus); }
.seg svg { width: 13px; height: 13px; }
/* ---------- chips, badges ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: var(--t-micro); font-weight: 650; white-space: nowrap; letter-spacing: .01em; }
.chip i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.chip svg { width: 12px; height: 12px; }
.chip.ok { background: var(--ok-bg); color: var(--ok-ink); }
.chip.warn { background: var(--warn-bg); color: var(--warn-ink); }
.chip.bad { background: var(--bad-bg); color: var(--bad-ink); }
.chip.info { background: var(--info-bg); color: var(--info-ink); }
.chip.accent { background: var(--accent-soft); color: var(--accent); }
.chip.neutral { background: var(--neutral-bg); color: var(--neutral-ink); }
.chip.outline { background: transparent; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.chip.ok i { background: var(--ok-solid); } .chip.warn i { background: var(--warn-solid); } .chip.bad i { background: var(--bad-solid); }
.chip.info i { background: var(--info-solid); } .chip.accent i { background: var(--accent-solid); } .chip.neutral i { background: var(--neutral-solid); }
.store-badge { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px 0 8px; border-radius: 7px; border: 1px solid var(--line); background: var(--surface); font-size: var(--t-meta); font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.store-badge svg { width: 14px; height: 14px; }
.store-badge .sb-sep { width: 1px; height: 12px; background: var(--line-2); }
.store-badge.off { color: var(--muted); border-style: dashed; background: transparent; }
.glyph-ios { color: var(--ink); }
.glyph-play { color: var(--ink); }
.tag-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; font-size: 10.5px; font-weight: 700; background: var(--neutral-bg); color: var(--neutral-ink); font-variant-numeric: tabular-nums; }
.tag-count.bad { background: var(--bad-bg); color: var(--bad-ink); }
.tag-count.warn { background: var(--warn-bg); color: var(--warn-ink); }
/* ---------- app icon ---------- */
.app-icon { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; overflow: hidden; flex: none; color: #fff; font-weight: 750; font-size: 13px; letter-spacing: .02em; position: relative; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.app-icon img { width: 100%; height: 100%; object-fit: cover; }
.app-icon.mono::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, .22), transparent 55%); }
/* ---------- tables ---------- */
.table { width: 100%; border-collapse: separate; border-spacing: 0; }
.table th { text-align: left; font-size: var(--t-micro); font-weight: 650; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding: 9px 12px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th:first-child { border-top-left-radius: var(--r-lg); padding-left: 18px; }
.table th:last-child { border-top-right-radius: var(--r-lg); padding-right: 18px; }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table td:first-child { padding-left: 18px; }
.table td:last-child { padding-right: 18px; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background-color var(--speed) var(--ease); }
.table tbody tr.clickable { cursor: pointer; }
.table tbody tr.clickable:hover { background: var(--hover); }
.table .right { text-align: right; }
.table .center { text-align: center; }
.table .nowrap { white-space: nowrap; }
.table-wrap { overflow-x: auto; }
.cell-app { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cell-app .t { min-width: 0; }
.cell-app .n { font-weight: 640; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell-app .s { color: var(--muted); font-size: var(--t-meta); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.link { all: unset; cursor: pointer; color: var(--accent); font-weight: 600; border-radius: 4px; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.link:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
/* ---------- mini lanes (portfolio) ---------- */
.mini { display: grid; gap: 6px; justify-items: start; }
.mini-row { display: grid; grid-template-columns: 16px 64px 74px 1fr; align-items: center; gap: 8px; font-size: var(--t-meta); }
.mini-row svg { width: 14px; height: 14px; color: var(--ink-2); }
.mini-row .v { font-weight: 640; font-variant-numeric: tabular-nums; }
.pips { display: flex; align-items: center; gap: 3px; }
.pips b { width: 14px; height: 4px; border-radius: 2px; background: var(--line-2); }
.pips b.on { background: var(--accent-solid); }
.pips b.ok { background: var(--ok-solid); } .pips b.warn { background: var(--warn-solid); } .pips b.bad { background: var(--bad-solid); } .pips b.info { background: var(--info-solid); }
.pips .pct { margin-left: 6px; font-size: var(--t-micro); color: var(--muted); font-variant-numeric: tabular-nums; }
/* ---------- release timeline ---------- */
.tl { display: grid; gap: 0; }
.tl-head, .tl-lane { display: grid; grid-template-columns: 200px repeat(5, minmax(0, 1fr)); align-items: center; }
.tl-head { padding: 0 18px 8px; }
.tl-head span { font-size: var(--t-micro); font-weight: 650; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); text-align: center; }
.tl-head span:first-child { text-align: left; }
.tl-lane { padding: 14px 18px; border-top: 1px solid var(--line); }
.tl-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tl-who svg { width: 18px; height: 18px; }
.tl-who .w1 { font-weight: 640; }
.tl-who .w2 { font-size: var(--t-meta); color: var(--muted); font-variant-numeric: tabular-nums; }
.tl-step { position: relative; display: grid; justify-items: center; gap: 6px; min-height: 52px; align-content: center; }
.tl-step::before { content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 2px; margin-top: -9px; background: var(--line-2); }
.tl-step.first::before { left: 50%; }
.tl-step:last-child::before { right: 50%; }
.tl-step.done::before, .tl-step.cur::before { background: var(--accent-solid); }
.tl-step.cur::before { right: 50%; }
.tl-step.cur.first::before { display: none; }
.tl-node { position: relative; z-index: 1; width: 18px; height: 18px; margin-top: -18px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-2); display: grid; place-items: center; }
.tl-node svg { width: 10px; height: 10px; color: #fff; }
.tl-step.done .tl-node { background: var(--accent-solid); border-color: var(--accent-solid); }
.tl-step.cur .tl-node { border-width: 5px; background: var(--surface); }
.tl-step.cur.ok .tl-node { border-color: var(--ok-solid); } .tl-step.cur.warn .tl-node { border-color: var(--warn-solid); }
.tl-step.cur.bad .tl-node { border-color: var(--bad-solid); } .tl-step.cur.info .tl-node { border-color: var(--info-solid); }
.tl-step.cur.accent .tl-node { border-color: var(--accent-solid); } .tl-step.cur.neutral .tl-node { border-color: var(--neutral-solid); }
.tl-cap { position: absolute; top: calc(50% + 4px); font-size: var(--t-micro); color: var(--muted); white-space: nowrap; font-weight: 550; }
.tl-step.cur .tl-cap { color: var(--ink); font-weight: 650; }
.tl-roll { width: 76%; display: grid; gap: 4px; position: absolute; top: calc(50% + 2px); }
.tl-roll .bar { height: 6px; }
.tl-roll .pct { font-size: var(--t-micro); text-align: center; font-weight: 650; font-variant-numeric: tabular-nums; }
.tl-none { grid-column: 2 / -1; color: var(--muted); font-size: var(--t-meta); text-align: center; border: 1px dashed var(--line-2); border-radius: 8px; padding: 10px; }
.train-head { display: flex; align-items: center; gap: 10px; }
.train-head .ver { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.bar { height: 8px; border-radius: 99px; background: var(--neutral-bg); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.bar > span { display: block; height: 100%; border-radius: inherit; background: var(--accent-solid); transition: width var(--speed) var(--ease); }
.bar.ok > span { background: var(--ok-solid); } .bar.warn > span { background: var(--warn-solid); } .bar.bad > span { background: var(--bad-solid); } .bar.info > span { background: var(--info-solid); }
.bar.thin { height: 4px; }
/* ---------- charts ---------- */
.spark { width: 100%; height: 72px; display: block; overflow: visible; }
.spark .area { opacity: 1; }
.spark .stop-a { stop-color: var(--spark, var(--accent-solid)); stop-opacity: .28; }
.spark .stop-b { stop-color: var(--spark, var(--accent-solid)); stop-opacity: 0; }
.spark .line { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.spark .thr { stroke: var(--bad-solid); stroke-width: 1.25; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.spark.ok { --spark: var(--ok-solid); } .spark.ok .line { stroke: var(--ok-solid); }
.spark.warn { --spark: var(--warn-solid); } .spark.warn .line { stroke: var(--warn-solid); }
.spark.bad { --spark: var(--bad-solid); } .spark.bad .line { stroke: var(--bad-solid); }
.spark.neutral .line, .spark.accent .line, .spark.info .line { stroke: var(--accent-solid); }
.metric { display: grid; gap: 10px; }
.metric-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.metric-val { font-size: 28px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.metric-val.bad { color: var(--bad-ink); } .metric-val.warn { color: var(--warn-ink); }
.metric-legend { display: flex; gap: 14px; font-size: var(--t-micro); color: var(--muted); }
.metric-legend .lg { display: inline-flex; align-items: center; gap: 6px; }
.metric-legend .sw { width: 14px; height: 2px; background: var(--accent-solid); }
.metric-legend .sw.ok { background: var(--ok-solid); } .metric-legend .sw.warn { background: var(--warn-solid); } .metric-legend .sw.bad { background: var(--bad-solid); }
.metric-legend .sw.thr { background: repeating-linear-gradient(90deg, var(--bad-solid) 0 4px, transparent 4px 7px); }
.axis { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.hbars { display: grid; gap: 8px; }
.hbar { display: grid; grid-template-columns: minmax(0, 1fr) 120px 64px; gap: 12px; align-items: center; font-size: var(--t-meta); }
.hbar .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* ---------- catalog matrix ---------- */
.mx-cell { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-meta); font-weight: 600; }
.mx-icon { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; }
.mx-icon svg { width: 12px; height: 12px; }
.mx-ok { background: var(--ok-bg); color: var(--ok-ink); }
.mx-warn { background: var(--warn-bg); color: var(--warn-ink); }
.mx-error { background: var(--bad-bg); color: var(--bad-ink); }
.mx-na { background: transparent; color: var(--faint); box-shadow: inset 0 0 0 1px var(--line); }
.mx-unknown { background: var(--neutral-bg); color: var(--neutral-ink); }
.note-list { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 2px; color: var(--muted); font-size: var(--t-micro); }
/* ---------- listings grid ---------- */
.lg-grid { display: grid; gap: 0; }
.lg-row { display: grid; grid-template-columns: 150px repeat(var(--cols), minmax(0, 1fr)) 120px; align-items: center; gap: 10px; padding: 10px 18px; border-top: 1px solid var(--line); }
.lg-row.head { border-top: 0; background: var(--surface-2); padding-top: 8px; padding-bottom: 8px; }
.lg-row.head span { font-size: var(--t-micro); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 650; }
.lg-lang { display: flex; align-items: center; gap: 8px; font-weight: 640; }
.lg-cell { display: grid; gap: 4px; }
.lg-cell .bar { height: 5px; }
.lg-cell .c { font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; display: flex; justify-content: space-between; }
.lg-cell.missing .c { color: var(--bad-ink); font-weight: 650; }
.lg-cell.over .c { color: var(--bad-ink); font-weight: 650; }
.lg-cell.empty-optional .c { color: var(--muted); }
.ring { --p: 0; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 10.5px; font-weight: 700; font-variant-numeric: tabular-nums;
background: conic-gradient(var(--ring, var(--accent-solid)) calc(var(--p) * 1%), var(--neutral-bg) 0); position: relative; }
.ring::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--surface); }
.ring span { position: relative; display: grid; place-items: center; }
.ring.full span { color: var(--ok-ink); }
.ring svg { width: 15px; height: 15px; }
/* ---------- reviews ---------- */
.rv { display: grid; grid-template-columns: 260px minmax(0, 1fr) minmax(0, 1.1fr); gap: 16px; align-items: start; }
@media (max-width: 1240px) { .rv { grid-template-columns: 240px minmax(0, 1fr); } .rv-detail { grid-column: 1 / -1; } }
.stars { display: inline-flex; gap: 1px; color: var(--warn-solid); }
.stars svg { width: 12px; height: 12px; }
.stars .off { color: var(--line-2); }
.dist { display: grid; gap: 6px; }
.dist-row { display: grid; grid-template-columns: 26px 1fr 30px; align-items: center; gap: 8px; font-size: var(--t-meta); font-variant-numeric: tabular-nums; }
.dist-row .bar > span { background: var(--warn-solid); }
.dist-row button { all: unset; cursor: pointer; display: contents; }
.big-rating { display: flex; align-items: baseline; gap: 8px; }
.big-rating b { font-size: 34px; font-weight: 720; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.inbox { display: grid; }
.inbox-item { all: unset; box-sizing: border-box; display: grid; gap: 4px; padding: 12px 16px; border-top: 1px solid var(--line); cursor: pointer; position: relative; }
.inbox-item:first-child { border-top: 0; }
.inbox-item:hover { background: var(--hover); }
.inbox-item[aria-selected="true"] { background: var(--accent-soft); }
.inbox-item[aria-selected="true"]::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent-solid); }
.inbox-item:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.inbox-item .t1 { display: flex; align-items: center; gap: 8px; font-size: var(--t-meta); color: var(--muted); }
.inbox-item .t1 .grow { flex: 1; }
.inbox-item .t2 { font-weight: 620; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-item .t3 { color: var(--ink-2); font-size: var(--t-meta); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.quote { border-left: 3px solid var(--line-2); padding: 2px 0 2px 12px; color: var(--ink-2); white-space: pre-wrap; }
.reply-box { border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; background: var(--surface-2); white-space: pre-wrap; }
.issues { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.issues li { display: flex; gap: 8px; align-items: flex-start; font-size: var(--t-meta); }
.issues svg { width: 14px; height: 14px; margin-top: 1px; }
.issues .e { color: var(--bad-ink); } .issues .w { color: var(--warn-ink); }
/* ---------- lists ---------- */
.list { display: grid; }
.li { display: flex; align-items: flex-start; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line); }
.li:first-child { border-top: 0; }
.li .li-icon { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.li .li-icon svg { width: 15px; height: 15px; }
.li .li-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.li .li-title { font-weight: 600; }
.li .li-sub { color: var(--muted); font-size: var(--t-meta); }
.li.clickable { cursor: pointer; }
.li.clickable:hover { background: var(--hover); }
button.li { all: unset; box-sizing: border-box; display: flex; align-items: flex-start; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line); cursor: pointer; width: 100%; }
button.li:first-child { border-top: 0; }
button.li:hover { background: var(--hover); }
button.li:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.tone-bg-ok { background: var(--ok-bg); color: var(--ok-ink); } .tone-bg-warn { background: var(--warn-bg); color: var(--warn-ink); }
.tone-bg-bad { background: var(--bad-bg); color: var(--bad-ink); } .tone-bg-info { background: var(--info-bg); color: var(--info-ink); }
.tone-bg-neutral { background: var(--neutral-bg); color: var(--neutral-ink); } .tone-bg-accent { background: var(--accent-soft); color: var(--accent); }
.kv { display: grid; grid-template-columns: minmax(96px, max-content) minmax(0, 1fr); gap: 8px 16px; font-size: var(--t-body); }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; min-width: 0; }
/* ---------- tabs ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-top: -4px; }
.tab { all: unset; display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color var(--speed) var(--ease), border-color var(--speed) var(--ease); }
.tab svg { width: 15px; height: 15px; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.tab:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.empty p + p { margin-top: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent-solid); }
.tab[aria-selected="true"] svg { color: var(--accent-solid); }
.tab:focus-visible { outline: 2px solid var(--focus); outline-offset: -4px; border-radius: 8px; }
/* ---------- empty states ---------- */
.empty { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 40px 24px 44px; }
.empty svg.illo { width: 168px; height: 112px; margin-bottom: 6px; }
.empty h3 { font-size: var(--t-section); font-weight: 650; }
.empty p { color: var(--muted); max-width: 52ch; }
.empty .actions { margin-top: 10px; justify-content: center; }
.empty.compact { padding: 24px 16px; }
.empty.compact svg.illo { width: 120px; height: 80px; }
.illo .f1 { fill: var(--illo-1); } .illo .f2 { fill: var(--illo-2); } .illo .s1 { stroke: var(--illo-line); fill: none; } .illo .s2 { stroke: var(--illo-soft); fill: none; }
.illo .fl { fill: var(--illo-line); } .illo .fs { fill: var(--surface); } .illo .fsoft { fill: var(--illo-soft); }
/* ---------- skeletons ---------- */
.sk { display: block; border-radius: 6px; background: linear-gradient(90deg, var(--neutral-bg) 0%, color-mix(in srgb, var(--neutral-bg) 55%, var(--surface)) 50%, var(--neutral-bg) 100%); background-size: 200% 100%; animation: sk 1.3s ease-in-out infinite; }
@keyframes sk { from { background-position: 100% 0; } to { background-position: -100% 0; } }
:root[data-motion="reduce"] .sk { animation: none; }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } }
.sk-line { height: 10px; }
.sk-block { height: 72px; border-radius: var(--r); }
/* ---------- notices ---------- */
.notice { display: flex; gap: 10px; align-items: flex-start; border-radius: var(--r); padding: 10px 14px; font-size: var(--t-body); border: 1px solid transparent; }
.notice svg { width: 16px; height: 16px; margin-top: 1px; flex: none; }
.notice.bad { background: var(--bad-bg); color: var(--bad-ink); border-color: color-mix(in srgb, var(--bad-solid) 25%, transparent); }
.notice.warn { background: var(--warn-bg); color: var(--warn-ink); border-color: color-mix(in srgb, var(--warn-solid) 25%, transparent); }
.notice.ok { background: var(--ok-bg); color: var(--ok-ink); }
.notice.info { background: var(--accent-soft); color: var(--ink); border-color: var(--accent-line); }
.notice .grow { flex: 1; }
/* ---------- forms ---------- */
.form { display: grid; gap: 14px; align-content: start; }
.field { display: grid; gap: 6px; }
.field label, .legend { font-weight: 600; font-size: var(--t-body); }
.field .hint { color: var(--muted); font-size: var(--t-meta); }
.input, select.input {
font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); border-radius: 8px; height: 34px; padding: 0 10px; width: 100%;
box-shadow: var(--shadow-1); transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.input::placeholder { color: var(--faint); }
.input:focus-visible { outline: none; border-color: var(--accent-solid); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-solid) 25%, transparent); }
select.input { padding-right: 8px; }
.search-input { position: relative; }
.search-input svg { position: absolute; left: 10px; top: 50%; width: 14px; height: 14px; margin-top: -7px; color: var(--muted); }
.search-input .input { padding-left: 30px; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: var(--t-meta); font-weight: 560; }
.check input { width: 15px; height: 15px; accent-color: var(--accent-solid); margin: 0; }
/* ---------- log ---------- */
.log { background: var(--code-bg); color: var(--code-ink); border-radius: var(--r); padding: 12px 14px; max-height: 260px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; font-size: 11.5px; line-height: 1.55; }
.cmd { display: flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 6px 6px 10px; font-family: var(--mono); font-size: 11.5px; }
.cmd code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* ---------- overlays: palette, onboarding ---------- */
.scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 50; display: grid; place-items: start center; padding-top: 12vh; animation: fade var(--speed) var(--ease); }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(6px) scale(.99); } }
.palette { width: min(640px, calc(100vw - 48px)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-3); overflow: hidden; animation: rise var(--speed) var(--ease); }
.palette-in { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.palette-in svg { width: 17px; height: 17px; color: var(--muted); }
.palette-in input { all: unset; flex: 1; height: 52px; font-size: var(--t-section); color: var(--ink); }
.palette-in input::placeholder { color: var(--faint); }
.palette-list { max-height: 380px; overflow: auto; padding: 6px; }
.palette-group { padding: 10px 10px 4px; font-size: var(--t-micro); font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.palette-item { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px; border-radius: 8px; cursor: pointer; color: var(--ink-2); }
.palette-item svg { width: 16px; height: 16px; color: var(--muted); }
.palette-item .app-icon { width: 20px; height: 20px; border-radius: 5px; font-size: 8.5px; }
.palette-item .grow { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.palette-item .hint { font-size: var(--t-micro); color: var(--muted); }
.palette-item[aria-selected="true"] { background: var(--accent-soft); color: var(--ink); }
.palette-item[aria-selected="true"] svg { color: var(--accent-solid); }
.palette-foot { display: flex; gap: 14px; padding: 8px 14px; border-top: 1px solid var(--line); background: var(--surface-2); font-size: var(--t-micro); color: var(--muted); }
.palette-foot span { display: inline-flex; align-items: center; gap: 5px; }
.palette-empty { padding: 28px; text-align: center; color: var(--muted); }
.wizard-scrim { position: fixed; inset: 0; z-index: 40; background: var(--scrim); display: grid; place-items: center; padding: 32px; animation: fade var(--speed) var(--ease); }
.wizard { width: min(980px, 100%); height: min(640px, 100%); display: grid; grid-template-columns: 280px minmax(0, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-3); overflow: hidden; animation: rise var(--speed) var(--ease); }
.wz-side { background: var(--bg-sunken); border-right: 1px solid var(--line); padding: 24px 20px; display: flex; flex-direction: column; gap: 22px; }
.wz-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.wz-step { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 9px; color: var(--muted); cursor: pointer; font-weight: 560; }
.wz-step:hover { background: var(--hover); color: var(--ink); }
.wz-step:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.wz-step[aria-current="step"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); font-weight: 640; }
.wz-num { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: var(--t-micro); font-weight: 700; border: 1.5px solid var(--line-2); color: var(--muted); background: var(--surface); flex: none; }
.wz-num svg { width: 12px; height: 12px; }
.wz-step[aria-current="step"] .wz-num { border-color: var(--accent-solid); color: var(--accent); }
.wz-step.done .wz-num { background: var(--accent-solid); border-color: var(--accent-solid); color: #fff; }
.wz-side .foot { margin-top: auto; font-size: var(--t-meta); color: var(--muted); display: grid; gap: 6px; }
.wz-main { display: flex; flex-direction: column; min-height: 0; }
.wz-body { flex: 1; overflow: auto; padding: 32px 36px 20px; display: grid; gap: 18px; align-content: start; }
.wz-body h2 { font-size: 22px; font-weight: 680; letter-spacing: -.015em; }
.wz-body .lead { color: var(--muted); font-size: var(--t-em); max-width: 60ch; line-height: 1.55; }
.wz-foot { display: flex; align-items: center; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line); background: var(--surface-2); }
.wz-foot .grow { flex: 1; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.choice { all: unset; box-sizing: border-box; display: grid; gap: 6px; align-content: start; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-lg); cursor: pointer; background: var(--surface); transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease); }
.choice:hover { border-color: var(--accent-line); box-shadow: var(--shadow-2); }
.choice:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.choice[aria-pressed="true"] { border-color: var(--accent-solid); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-solid) 18%, transparent); }
.choice .ch-icon { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 4px; }
.choice .ch-icon svg { width: 18px; height: 18px; }
.choice b { font-weight: 650; }
.choice span { color: var(--muted); font-size: var(--t-meta); line-height: 1.45; }
.checklist { display: grid; gap: 8px; }
.ck { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.ck .ck-ic { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.ck .ck-ic svg { width: 12px; height: 12px; }
.ck .grow { flex: 1; min-width: 0; }
.ck .t { font-weight: 600; }
.ck .s { color: var(--muted); font-size: var(--t-meta); }
/* ---------- toasts ---------- */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: grid; gap: 10px; width: 360px; }
.toast { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-3); padding: 12px 14px; display: grid; gap: 8px; animation: rise var(--speed) var(--ease); }
.toast-top { display: flex; align-items: flex-start; gap: 10px; }
.toast-top .ti { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.toast-top .ti svg { width: 13px; height: 13px; }
.toast-top .tt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.toast-top .tt b { font-weight: 640; }
.toast-top .tt span { color: var(--muted); font-size: var(--t-meta); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.toast .bar { height: 5px; }
.toast .bar.indet > span { width: 35% !important; animation: indet 1.2s ease-in-out infinite; }
@keyframes indet { from { transform: translateX(-100%); } to { transform: translateX(290%); } }
:root[data-motion="reduce"] .toast .bar.indet > span { animation: none; width: 100% !important; opacity: .5; }
@media (prefers-reduced-motion: reduce) { .toast .bar.indet > span { animation: none; width: 100% !important; opacity: .5; } }
.toast-actions { display: flex; justify-content: flex-end; gap: 6px; }
/* ---------- misc ---------- */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.tf-group { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); display: grid; gap: 10px; box-shadow: var(--shadow-1); }
.tf-group .stat { display: flex; gap: 18px; }
.tf-group .stat div { display: grid; gap: 2px; }
.tf-group .stat b { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tool-row .ti { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--neutral-bg); color: var(--ink-2); flex: none; }
.tool-row .ti svg { width: 17px; height: 17px; }
.prog { display: grid; gap: 4px; min-width: 180px; }
.prog .bar { height: 6px; }
.prog .c { font-size: var(--t-micro); color: var(--muted); display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.shortcuts { display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; font-size: var(--t-body); }
.shortcuts dd { margin: 0; display: flex; gap: 4px; justify-content: flex-end; }
.legend-row { display: flex; gap: 16px; flex-wrap: wrap; font-size: var(--t-micro); color: var(--muted); }
.legend-row span { display: inline-flex; align-items: center; gap: 6px; }
.ic13 { width: 13px; height: 13px; }
.ic14 { width: 14px; height: 14px; }
.side-foot svg { width: 13px; height: 13px; }
.fix { display: flex; align-items: flex-start; gap: 8px; margin-top: 6px; padding: 6px 10px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); }
.fix svg { width: 13px; height: 13px; margin-top: 2px; color: var(--accent-solid); flex: none; }
.fix code { font-size: 11.5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.field > .seg { justify-self: start; }
.wz-body svg.illo { width: 168px; height: 112px; margin-bottom: -6px; }
h2[tabindex="-1"]:focus, h2[tabindex="-1"]:focus-visible { outline: none; }
.acc-pick { display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: center; gap: 8px; }
.acc-pick svg { width: 15px; height: 15px; color: var(--muted); }
.li .app-icon { width: 40px; height: 40px; border-radius: 10px; }
.app-head .store-badge { height: 30px; padding-right: 4px; }
.app-head .store-badge .chip { height: 22px; }
.mini-health { display: flex; align-items: center; gap: 8px; }
.mini-health .spark { width: 76px; height: 26px; }
.tbad { color: var(--bad-ink); } .twarn { color: var(--warn-ink); }
.table .mini, .table .mini > * { white-space: nowrap; }
.table .mini .row { flex-wrap: nowrap; }