storebound/apps/desktop/src/styles.css

946 lines
74 KiB
CSS

/* 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: #f6f7f9;
--bg-sunken: #eef1f5;
--surface: #ffffff;
--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: #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: #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: #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: 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, .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, .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); }
/* ---------- 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; flex: none; }
.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);
}
.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); }
.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; } }
/* ---------- 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; }
.row { display: flex; align-items: center; gap: 8px; }
.between { justify-content: space-between; }
.muted { color: var(--muted); }
.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, .store-badge .store-mark { 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; }
/* the stores' own marks (simple-icons, vendored in ui/store-marks): a mask in the text colour, never brand colours */
.store-mark { display: inline-block; flex: none; width: 16px; height: 16px; background-color: currentColor; -webkit-mask: none center / contain no-repeat; mask: none center / contain no-repeat; }
.store-mark.sm-appstore { -webkit-mask-image: url(./ui/store-marks/appstore.svg); mask-image: url(./ui/store-marks/appstore.svg); }
.store-mark.sm-googleplay { -webkit-mask-image: url(./ui/store-marks/googleplay.svg); mask-image: url(./ui/store-marks/googleplay.svg); }
.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, .tl-who .store-mark { 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 .rbar { 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; position: relative; --spark: var(--accent-solid); }
.spark > svg { display: block; overflow: visible; outline: none; border-radius: 4px; }
.spark > svg:focus-visible { box-shadow: 0 0 0 2px var(--focus); }
.spark linearGradient stop { stop-color: var(--spark); }
.spark .line { fill: none; stroke: var(--spark); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.spark.compact .line { stroke-width: 1.5; }
.spark .thr { stroke: var(--bad-solid); stroke-width: 1.25; stroke-dasharray: 4 4; }
.spark .hov line { stroke: var(--line-2); stroke-width: 1; }
.spark .hov circle { fill: var(--spark); stroke: var(--surface); stroke-width: 2; }
.spark.ok { --spark: var(--ok-solid); } .spark.warn { --spark: var(--warn-solid); } .spark.bad { --spark: var(--bad-solid); }
/* chart tooltip (visx TooltipWithBounds, unstyled; charts.tsx ChartTip) */
.vx-tip { position: absolute; z-index: 5; pointer-events: none; display: grid; gap: 4px; min-width: 150px; padding: 8px 10px; white-space: nowrap;
background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-2); font-size: var(--t-meta); }
.vx-tip > b { font-weight: 650; }
.vx-row { display: flex; align-items: center; gap: 6px; color: var(--ink-2); }
.vx-row.muted { color: var(--muted); }
.vx-row b { margin-left: auto; padding-left: 14px; color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; }
.vx-tip .sw { width: 10px; height: 3px; border-radius: 2px; flex: none; background: var(--accent-solid); }
.vx-tip .sw.ok, .vx-tip .sw.l2 { background: var(--ok-solid); } .vx-tip .sw.warn { background: var(--warn-solid); } .vx-tip .sw.bad { background: var(--bad-solid); }
.vx-tip .sw.l3 { background: repeating-linear-gradient(90deg, var(--warn-solid) 0 4px, transparent 4px 6px); }
.vx-tip .sw.thr { background: repeating-linear-gradient(90deg, var(--bad-solid) 0 3px, transparent 3px 5px); }
.vx-tip .sw.ev { width: 8px; height: 8px; border-radius: 50%; background: var(--info-solid); }
/* rollout / phased release share (visx bar, charts.tsx RolloutBar) */
.rbar { width: 100%; height: 8px; }
.rbar > svg { display: block; }
.rbar .track { fill: var(--neutral-bg); stroke: var(--line); stroke-width: 1; }
.rbar .fill { fill: var(--accent-solid); }
.rbar.ok .fill { fill: var(--ok-solid); } .rbar.warn .fill { fill: var(--warn-solid); } .rbar.bad .fill { fill: var(--bad-solid); } .rbar.info .fill { fill: var(--info-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, .li .li-icon .store-mark { 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-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 .illo { 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 .illo { --illo-size: 80px; }
/* empty state art (ui/illustrations.tsx): a Phosphor icon on a soft tile with rings behind it and an optional badge */
.illo { --illo-size: 112px; width: calc(var(--illo-size) * 1.5); height: var(--illo-size); display: grid; place-items: center; position: relative;
background: radial-gradient(circle at 50% 50%, var(--illo-1) 0 30%, transparent 30.5%), radial-gradient(circle at 50% 50%, transparent 0 41%, var(--illo-2) 41.5% 42.5%, transparent 43%); }
.illo-tile { width: calc(var(--illo-size) * .54); height: calc(var(--illo-size) * .54); border-radius: 28%; display: grid; place-items: center; position: relative;
background: var(--surface); border: 1px solid var(--illo-2); box-shadow: var(--shadow-2); color: var(--illo-line); }
.illo-tile > svg { width: 46%; height: 46%; }
.illo-badge { position: absolute; right: -10%; bottom: -10%; width: 40%; height: 40%; border-radius: 50%; display: grid; place-items: center;
background: var(--illo-line); color: var(--surface); box-shadow: 0 0 0 3px var(--surface); }
.illo-badge > svg { width: 58%; height: 58%; }
/* ---------- 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; }
.toast-log summary { cursor: pointer; }
.toast-log .log { max-height: 160px; margin-top: 6px; font-size: 11px; }
/* ---------- 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 .illo { 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, .acc-pick .store-mark { 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; }
/* ---- D3: studios, store-only apps, toolbar, accounts, settings ---- */
:root {
--st-indigo: #4f46e5; --st-violet: #7c3aed; --st-rose: #e11d48; --st-amber: #b45309;
--st-emerald: #047857; --st-teal: #0f766e; --st-sky: #0369a1; --st-slate: #475569;
}
.studio-indigo { --st: var(--st-indigo); } .studio-violet { --st: var(--st-violet); } .studio-rose { --st: var(--st-rose); } .studio-amber { --st: var(--st-amber); }
.studio-emerald { --st: var(--st-emerald); } .studio-teal { --st: var(--st-teal); } .studio-sky { --st: var(--st-sky); } .studio-slate { --st: var(--st-slate); }
.studio-mark { display: inline-grid; place-items: center; flex: none; overflow: hidden; color: #fff; font-weight: 760; letter-spacing: .02em;
background: linear-gradient(140deg, color-mix(in srgb, var(--st, var(--st-slate)) 82%, #fff), var(--st, var(--st-slate))); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.studio-mark img { width: 100%; height: 100%; object-fit: cover; }
.studio-mark.sm { width: 16px; height: 16px; border-radius: 5px; font-size: 7.5px; }
.studio-mark.md { width: 28px; height: 28px; border-radius: 8px; font-size: 11px; }
.studio-mark.lg { width: 40px; height: 40px; border-radius: 11px; font-size: 14px; }
.studio-mark.none { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-2); border: 0; }
.studio-mark.none.sm { box-shadow: inset 0 0 0 1.5px var(--faint); }
.so-tag { height: 20px; padding: 0 7px; font-size: 10.5px; gap: 4px; }
.so-tag svg { width: 12px; height: 12px; }
.so-dot { display: inline-grid; place-items: center; color: var(--faint); }
.so-dot svg { width: 13px; height: 13px; }
.nav[aria-current="page"] .so-dot svg { color: var(--faint); }
/* sidebar studio groups */
.side-group { margin-top: 2px; }
.side-group-head { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 8px 0 6px; border-radius: 7px; cursor: pointer;
font-size: var(--t-meta); font-weight: 650; color: var(--ink-2); transition: background-color var(--speed) var(--ease); }
.side-group-head:hover { background: var(--hover); color: var(--ink); }
.side-group-head:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.side-group-head .chev { width: 12px; height: 12px; color: var(--muted); transition: transform var(--speed) var(--ease); }
.side-group-head[aria-expanded="true"] .chev { transform: rotate(90deg); }
.side-group-head .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-group-head .count { font-size: var(--t-micro); color: var(--muted); font-weight: 560; font-variant-numeric: tabular-nums; }
.side-group [role="list"] { padding-left: 12px; margin-left: 13px; border-left: 1px solid var(--line); }
.side-group .nav-app { height: 32px; }
/* portfolio toolbar */
.toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; }
.toolbar .search-input { width: 260px; }
.toolbar .search-input .input { height: 32px; }
.toolbar .grow { flex: 1; }
.fchips { display: flex; flex-wrap: wrap; gap: 6px; }
.fchip { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px 0 9px; border-radius: 999px; cursor: pointer;
background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-size: var(--t-meta); font-weight: 600; box-shadow: var(--shadow-1);
transition: background-color var(--speed) var(--ease), border-color var(--speed) var(--ease); }
.fchip:hover { background: var(--hover); color: var(--ink); }
.fchip:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.fchip .n { font-size: var(--t-micro); font-weight: 650; color: var(--muted); font-variant-numeric: tabular-nums; padding: 1px 6px; border-radius: 999px; background: var(--bg-sunken); }
.fchip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }
.fchip[aria-pressed="true"] .n { background: var(--surface); color: var(--accent); }
.table tbody tr.group-row td { background: var(--surface-2); padding-top: 9px; padding-bottom: 9px; border-top: 1px solid var(--line); }
.table tbody tr.group-row b { font-weight: 680; }
.table tbody tr.group-row:hover td { background: var(--surface-2); }
.table tbody + tbody tr.group-row td { border-top: 1px solid var(--line-2); }
/* studios & accounts */
.studio-card .card-head { align-items: center; }
.studio-card.focus { box-shadow: var(--shadow-2), 0 0 0 2px var(--accent-line); }
.studio-edit { display: grid; grid-template-columns: minmax(200px, 320px) 1fr auto; gap: 16px; align-items: end; border-bottom: 1px solid var(--line); }
.acct-list { display: grid; }
.acct { border-top: 1px solid var(--line); }
.acct.is-ignored .acct-row { opacity: .62; }
.acct-row { display: flex; align-items: center; gap: 14px; padding: 12px 18px; }
.acct-glyph { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--bg-sunken); border: 1px solid var(--line); }
.acct-glyph svg, .acct-glyph .store-mark { width: 16px; height: 16px; }
.acct-main { flex: 1; min-width: 0; display: grid; gap: 3px; }
.acct-main .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-edit { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto; gap: 12px; align-items: end; padding: 0 18px 14px 64px; }
.acct-fix { padding: 0 18px 14px 64px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { all: unset; box-sizing: border-box; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; cursor: pointer; color: #fff;
background: var(--st); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); transition: transform var(--speed) var(--ease); }
.swatch:hover { transform: translateY(-1px); }
.swatch:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.swatch[aria-checked="true"] { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--st); }
.swatch svg { width: 14px; height: 14px; }
/* app page: studio pill, pairing controls */
.studio-pill { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: 7px; height: 24px; padding: 0 10px 0 5px; border-radius: 999px; cursor: pointer;
background: var(--surface); border: 1px solid var(--line); font-size: var(--t-micro); font-weight: 650; color: var(--ink-2); }
.studio-pill:hover { background: var(--hover); color: var(--ink); }
.studio-pill:focus-visible { outline: 2px solid var(--focus); }
.app-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); }
.input.input-sm, select.input.input-sm { height: 28px; padding: 0 8px; font-size: var(--t-meta); width: auto; max-width: 280px; }
/* settings */
.set-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 24px; align-items: start; }
.set-nav { position: sticky; top: 0; display: grid; gap: 1px; padding: 6px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-1); }
.set-nav .nav { height: 30px; font-size: var(--t-meta); }
.set-nav .nav[aria-current="true"] { background: var(--accent-soft); color: var(--accent); font-weight: 650; }
.set-nav .nav[aria-current="true"] svg { color: var(--accent); }
.set-body .card { scroll-margin-top: 12px; }
.toggle-row { display: flex; align-items: center; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); cursor: pointer; }
.toggle-row:first-child { border-top: 0; padding-top: 0; }
.toggle-row .grow { display: grid; gap: 2px; }
.switch { appearance: none; -webkit-appearance: none; flex: none; width: 36px; height: 21px; border-radius: 999px; background: var(--line-2); position: relative; cursor: pointer; margin: 0;
transition: background-color var(--speed) var(--ease); }
.switch::after { content: ""; position: absolute; top: 2.5px; left: 2.5px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); transition: transform var(--speed) var(--ease); }
.switch:checked { background: var(--accent-solid); }
.switch:checked::after { transform: translateX(15px); }
.switch:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.studio-sum { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.studio-sum-item { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; background: var(--surface-2); }
.studio-sum-item:hover { background: var(--hover); }
.studio-sum-item:focus-visible { outline: 2px solid var(--focus); }
.dep-sum { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.plain-list li { display: flex; gap: 10px; align-items: flex-start; font-size: var(--t-body); color: var(--ink-2); }
.plain-list svg { width: 15px; height: 15px; color: var(--ok-solid); flex: none; margin-top: 2px; }
.danger-card { border-color: color-mix(in srgb, var(--bad-solid) 35%, var(--line)); }
.btn.btn-danger:not(.btn-ghost) { color: var(--bad-ink); background: var(--bad-bg); border-color: color-mix(in srgb, var(--bad-solid) 40%, transparent); }
@media (max-width: 1100px) { .set-layout { grid-template-columns: 1fr; } .set-nav { position: static; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); } .studio-edit, .acct-edit { grid-template-columns: 1fr; } }
.cell-app .s .so-inline { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; font-family: var(--font); font-size: var(--t-micro); font-weight: 650; color: var(--muted); }
.cell-app .s .so-inline svg { width: 12px; height: 12px; }
.toolbar .search-input { width: 240px; }
/* ---- D3 writes: action cards, rollout controls, TestFlight build editors, reply editor ---- */
.act-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.act-col { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); }
.act-col .btn { width: 100%; justify-content: flex-start; }
.act-col select.input-sm { width: 100%; max-width: none; }
.act-head { display: flex; align-items: center; gap: 8px; font-weight: 650; font-size: var(--t-meta); color: var(--ink-2); margin-bottom: 2px; }
.act-head svg, .act-head .store-mark { width: 15px; height: 15px; }
.act-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; }
.act-note svg { width: 14px; height: 14px; flex: none; margin-top: 2px; color: var(--muted); }
.roll-foot { display: grid; gap: 8px; }
.roll-ctl { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.roll-ctl > .small:first-child { min-width: 150px; }
.table tbody tr.edit-row td { background: var(--surface-2); }
.table tbody tr.edit-row:hover td { background: var(--surface-2); }
.build-edit { display: grid; gap: 10px; padding: 4px 0; max-width: 760px; }
textarea.input { height: auto; padding: 8px 10px; line-height: 1.45; resize: vertical; font-family: var(--font); }
.reply-edit { min-height: 110px; }
.table.pf th, .table.pf td { padding-left: 9px; padding-right: 9px; }
.table.pf th:first-child, .table.pf td:first-child { padding-left: 18px; }
.table.pf th:last-child, .table.pf td:last-child { padding-right: 18px; }
.table.pf .cell-app .s { max-width: 200px; }
.table.pf .mini-health .spark { width: 56px; }
/* ---- full CLI coverage: export menu, prices, store art, growth chart, app info, onboarding studio ---- */
.tabs { overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; }
.menu-wrap { position: relative; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 280px; max-width: 360px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-3); display: grid; gap: 1px; animation: rise var(--speed) var(--ease); }
.menu-item { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; color: var(--ink-2); }
.menu-item > svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.menu-item .grow { flex: 1; min-width: 0; display: grid; gap: 1px; }
.menu-item .mi-t { font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-item .mi-s { font-size: var(--t-micro); color: var(--muted); }
.menu-item:hover, .menu-item:focus-visible { background: var(--accent-soft); outline: none; }
.menu-item:hover > svg, .menu-item:focus-visible > svg { color: var(--accent-solid); }
.menu-item[aria-disabled="true"] .mi-t { color: var(--muted); }
.fix-hint { display: inline-flex; align-items: flex-start; gap: 6px; font-weight: 560; color: var(--ink-2); }
.fix-hint svg { width: 13px; height: 13px; margin-top: 2px; flex: none; color: var(--accent-solid); }
.notice .fix-hint { color: inherit; }
.err-foot { align-items: flex-start; color: var(--bad-ink); }
.err-foot .grow { display: grid; gap: 4px; }
.err-foot .fix-hint { color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.bad-ink { color: var(--bad-ink); } .warn-ink { color: var(--warn-ink); }
/* prices */
.px-matrix td { vertical-align: top; }
.px-matrix tbody tr.sel td { background: var(--accent-soft); }
.px-matrix tbody tr.sel td:first-child { box-shadow: inset 3px 0 0 var(--accent-solid); }
.px-stack { display: grid; gap: 3px; justify-items: start; }
.px-line { display: inline-flex; align-items: center; gap: 5px; font-size: var(--t-meta); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.px-line svg, .px-line .store-mark { width: 12px; height: 12px; color: var(--muted); }
.px-line.auto { color: var(--muted); font-weight: 500; }
/* app info */
.ask-card { border-color: color-mix(in srgb, var(--warn-solid) 45%, var(--line)); box-shadow: var(--shadow-1), inset 3px 0 0 var(--warn-solid); }
.ask-card .card-head h2 > svg { color: var(--warn-solid); }
.ask-card .fix { margin-top: 4px; }
.notes-preview { max-height: 120px; overflow: auto; font-size: var(--t-meta); }
.ds-changes { max-height: 180px; overflow: auto; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); }
.ds-changes code { font-size: 10.5px; }
/* store art */
.art-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; border-bottom: 1px solid var(--line); }
.art-bar .grow { flex: 1; }
.art-rows { display: grid; }
.art-row { padding: 14px 18px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.art-row:first-child { border-top: 0; }
.art-row.bad { box-shadow: inset 3px 0 0 var(--bad-solid); }
.art-row h3 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: var(--t-body); font-weight: 650; }
.art-row h3 code { font-family: var(--mono); font-size: 11px; color: var(--muted); font-weight: 450; }
.art-tiles { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.art-tile { margin: 0; flex: none; width: var(--tw, 150px); display: grid; gap: 5px; align-content: start; }
.art-pic { all: unset; box-sizing: border-box; display: block; width: 100%; aspect-ratio: var(--ar); background: var(--bg-sunken); border-radius: 10px; overflow: hidden; cursor: zoom-in; position: relative; border: 2px solid transparent; box-shadow: var(--shadow-1); transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease); }
.art-pic:hover { transform: translateY(-1px); box-shadow: var(--shadow-2); }
.art-pic:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.art-pic img { width: 100%; height: 100%; object-fit: contain; display: block; }
.art-tile.err .art-pic { border-color: var(--bad-solid); }
.art-tile.warn .art-pic { border-color: var(--warn-solid); }
.art-ph { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 6px; color: var(--faint); font-size: var(--t-micro); padding: 10px; text-align: center; }
.art-ph svg { width: 20px; height: 20px; }
.art-ph .sk-block { width: 100%; height: 100%; border-radius: 0; position: absolute; inset: 0; }
.art-play { position: absolute; left: 50%; top: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; display: grid; place-items: center; background: rgba(10, 15, 26, .62); color: #fff; }
.art-play svg { width: 16px; height: 16px; margin-left: 2px; }
.art-tile figcaption { display: flex; justify-content: space-between; gap: 6px; font-size: 10.5px; }
.art-tile figcaption .muted { font-variant-numeric: tabular-nums; white-space: nowrap; }
.art-issues li { padding-left: 12px; position: relative; overflow-wrap: anywhere; }
.art-issues li::before { content: ""; position: absolute; left: 1px; top: .45em; width: 6px; height: 6px; border-radius: 50%; background: var(--warn-solid); }
.art-issues li.error { color: var(--bad-ink); }
.art-issues li.error::before { background: var(--bad-solid); }
.fchip .tag-count { margin-left: -2px; }
.lightbox { place-items: center; padding: 28px; }
.lb { width: min(1100px, 100%); max-height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-3); overflow: hidden; outline: none; animation: rise var(--speed) var(--ease); }
.lb-img { min-height: 0; display: grid; place-items: center; background: var(--bg-sunken); padding: 16px; }
.lb-img img { max-width: 100%; max-height: calc(100vh - 190px); object-fit: contain; border-radius: 8px; box-shadow: var(--shadow-2); }
.lb-img .stack { width: 320px; }
.lb-foot { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); }
.lb-foot .grow { flex: 1; min-width: 0; display: grid; gap: 2px; }
/* "Fill in console" panel (ui/ConsoleFill.tsx): the answers of the dry run, then the run's progress */
.cf-panel { width: min(680px, 100%); }
.cf-body { min-height: 0; overflow: auto; padding: 20px 22px; gap: 14px; }
.cf-body h2 { font-size: var(--t-section); font-weight: 660; }
.cf-table td:first-child { padding-left: 0; }
.cf-table td:last-child { padding-right: 0; text-align: right; }
.cf-guidance { font-size: var(--t-meta); }
/* owner action plan (ui/OwnerAction.tsx) and console plan (ui/ConsolePlan.tsx) panels */
.oa-panel, .cp-panel { width: min(820px, 100%); max-height: 86vh; }
.scrim.lightbox:has(.oa-panel), .scrim.lightbox:has(.cp-panel) { padding-top: 6vh; }
.plan-table { white-space: pre; overflow: auto; max-height: 300px; }
.cp-steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: var(--t-meta); }
.cp-steps .chips { margin-left: 6px; display: inline-flex; }
/* Releases > send for review */
.section-h { font-size: var(--t-section); font-weight: 660; margin-top: 8px; }
.sub-list .note-list { margin: 4px 0 0; }
.sub-iaps { border-top: 1px solid var(--line); padding-top: 12px; }
/* growth chart */
.lchart { display: grid; gap: 8px; }
.lchart-plot { position: relative; width: 100%; }
.lchart-plot > svg { display: block; overflow: visible; outline: none; border-radius: 8px; }
.lchart-plot > svg:focus-visible { box-shadow: 0 0 0 2px var(--focus); }
.lchart .grid-l line { stroke: var(--line); stroke-width: 1; }
.lchart line.base { stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 2 3; }
.lchart text { font-size: 10.5px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.lchart linearGradient stop { stop-color: var(--accent-solid); }
.lchart .ln { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.lchart .ln.l1 { stroke: var(--accent-solid); }
.lchart .ln.l2 { stroke: var(--ok-solid); }
.lchart .ln.l3 { stroke: var(--warn-solid); stroke-dasharray: 5 4; }
.lchart .hov circle { stroke: var(--surface); stroke-width: 2; }
.lchart circle.l1 { fill: var(--accent-solid); } .lchart circle.l2 { fill: var(--ok-solid); } .lchart circle.l3 { fill: var(--warn-solid); }
.lchart .ev line { stroke: var(--info-solid); stroke-width: 1.25; stroke-dasharray: 3 4; }
.lchart .ev circle { fill: var(--info-solid); stroke: var(--surface); stroke-width: 2; cursor: help; }
.lchart .hov line { stroke: var(--line-2); stroke-width: 1; }
.lchart-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: var(--t-meta); color: var(--muted); align-items: center; }
.lchart-legend .lg { display: inline-flex; align-items: center; gap: 6px; }
.lchart-legend .lg.idx { flex-basis: 100%; }
.lchart-legend b { color: var(--ink); font-weight: 650; }
.lchart-legend .sw { width: 14px; height: 3px; border-radius: 2px; background: var(--accent-solid); }
.lchart-legend .sw.l2 { background: var(--ok-solid); }
.lchart-legend .sw.l3 { background: repeating-linear-gradient(90deg, var(--warn-solid) 0 5px, transparent 5px 8px); }
.lchart-legend .sw.ev { width: 8px; height: 8px; border-radius: 50%; background: var(--info-solid); }
/* onboarding: three choices, studio pick */
.choice-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
button.ck.ck-pick { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); cursor: pointer; }
button.ck.ck-pick:hover { border-color: var(--accent-line); }
button.ck.ck-pick:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
button.ck.ck-pick[aria-checked="true"] { border-color: var(--accent-solid); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-solid) 16%, transparent); }
.studio-new { cursor: default; }
.studio-new:hover { border-color: var(--line); box-shadow: none; }
/* Error screens: React error boundaries (ui/ErrorBoundary.tsx) and the plain panel of public/boot.js when the bundle
itself failed. Kept simple: they must render when everything else did not. */
.crash { padding: 24px 28px; }
.crash-full { min-height: 100%; display: grid; place-items: center; background: var(--bg); color: var(--ink); }
.crash-box { max-width: 760px; display: grid; gap: 12px; padding: 20px 22px; border: 1px solid var(--line-2); border-left: 4px solid var(--bad-solid); border-radius: 12px; background: var(--surface); }
.crash-box h2 { margin: 0; font-size: 17px; }
.crash-box p { margin: 0; color: var(--ink-2); line-height: 1.5; }
.crash-msg, .crash-detail { margin: 0; padding: 10px 12px; border-radius: 8px; background: var(--bg-sunken); color: var(--ink); font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 320px; overflow: auto; }
.crash-box summary { cursor: pointer; color: var(--ink-2); font-size: 13px; }
.crash-box .actions { display: flex; gap: 8px; flex-wrap: wrap; }