/* ==========================================================================
   Fresh Install Console — shares design tokens with the marketing site
   ========================================================================== */
:root {
  --h: 128;
  --accent: oklch(0.88 0.19 var(--h));
  --accent-2: oklch(0.72 0.2 calc(var(--h) + 40));
  --accent-soft: oklch(0.88 0.19 var(--h) / 0.12);
  --accent-line: oklch(0.88 0.19 var(--h) / 0.35);
  --accent-ink: #0a0b0d;
  --bg: #08090b; --bg-2: #0c0d10;
  --surface: #111317; --surface-2: #16181d; --surface-3: #1c1f25;
  --line: rgb(255 255 255 / 0.07); --line-2: rgb(255 255 255 / 0.12);
  --text: #ededf0; --muted: #9095a0; --dim: #5f646e;
  --ok: oklch(0.82 0.17 150); --warn: oklch(0.85 0.15 75); --danger: oklch(0.7 0.18 25);
  --font: "Geist", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --r-sm: 10px; --r: 14px; --r-lg: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
  interpolate-size: allow-keywords;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body { margin: 0; font-family: var(--font); font-size: 14px; line-height: 1.55; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { display: block; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.ic { width: 16px; height: 16px; flex: none; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.mono { font-family: var(--mono); }
.num { font-variant-numeric: tabular-nums; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent); letter-spacing: -0.01em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ───────── Buttons ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgb(255 255 255 / 0.03);
  font-size: 13.5px; font-weight: 550; white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.25s, transform 0.2s var(--ease), opacity 0.2s;
}
.btn:hover { background: rgb(255 255 255 / 0.07); border-color: rgb(255 255 255 / 0.2); }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn--primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.15), 0 6px 24px -8px oklch(0.88 0.19 var(--h) / 0.6); }
.btn--primary:hover { background: var(--accent); box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.25), 0 8px 30px -6px oklch(0.88 0.19 var(--h) / 0.8); border-color: transparent; }
.btn--danger { color: oklch(0.8 0.14 25); border-color: oklch(0.7 0.18 25 / 0.4); background: oklch(0.7 0.18 25 / 0.08); }
.btn--danger:hover { background: oklch(0.7 0.18 25 / 0.16); border-color: oklch(0.7 0.18 25 / 0.6); }
.btn--danger-solid { background: oklch(0.65 0.2 25); color: #fff; border-color: transparent; }
.btn--danger-solid:hover { background: oklch(0.6 0.2 25); border-color: transparent; }
.btn--quiet { border-color: transparent; background: none; color: var(--muted); }
.btn--quiet:hover { color: var(--text); background: rgb(255 255 255 / 0.05); border-color: transparent; }
.btn--sm { height: 30px; padding: 0 11px; font-size: 12.5px; }
.btn--lg { height: 44px; padding: 0 20px; font-size: 14.5px; }
.btn--block { width: 100%; }
.btn--icon { width: 36px; padding: 0; }
.btn--sm.btn--icon { width: 30px; }
.btn.is-loading { color: transparent !important; position: relative; pointer-events: none; }
.btn.is-loading::after { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--accent-ink); border-right-color: transparent; animation: spin 0.7s linear infinite; }
.btn:not(.btn--primary).is-loading::after { border-color: var(--text); border-right-color: transparent; }
.link { color: var(--accent); background: none; border: 0; padding: 0; font-weight: 550; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ───────── Forms ───────── */
.field { display: grid; gap: 7px; }
.field__label { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; font-weight: 550; }
.field__label a { font-weight: 500; font-size: 12.5px; color: var(--muted); }
.field__label a:hover { color: var(--accent); }
.field__hint { font-size: 12px; color: var(--dim); }
.field__err { font-size: 12.5px; color: oklch(0.8 0.14 25); }
.input, .select, .textarea {
  width: 100%; height: 40px; padding: 0 12px;
  border-radius: 10px; border: 1px solid var(--line-2);
  background: rgb(0 0 0 / 0.25); color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.textarea { height: auto; min-height: 84px; padding: 10px 12px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--dim); }
.input:hover, .select:hover, .textarea:hover { border-color: rgb(255 255 255 / 0.2); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); background: rgb(0 0 0 / 0.35); }
.input[aria-invalid="true"] { border-color: oklch(0.7 0.18 25 / 0.7); box-shadow: 0 0 0 3px oklch(0.7 0.18 25 / 0.15); }
.select { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239095a0' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.select option { background: var(--surface-2); }
.select--sm { height: 32px; font-size: 13px; padding-left: 10px; border-radius: 8px; }
.input--search { padding-left: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235f646e' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: 12px center; height: 34px; }
.pw { position: relative; }
.pw .input { padding-right: 42px; }
.pw__toggle { position: absolute; right: 4px; top: 4px; width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; color: var(--dim); display: grid; place-items: center; }
.pw__toggle:hover { color: var(--text); background: rgb(255 255 255 / 0.05); }
.check { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); cursor: pointer; user-select: none; }
.cb { appearance: none; width: 16px; height: 16px; flex: none; margin: 0; border-radius: 5px; border: 1.5px solid var(--dim); display: grid; place-items: center; transition: background 0.15s, border-color 0.15s; cursor: pointer; }
.cb::after { content: ""; width: 9px; height: 5px; border: 2px solid var(--accent-ink); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform 0.15s var(--ease); }
.cb:checked, .cb:indeterminate { background: var(--accent); border-color: var(--accent); }
.cb:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.cb:indeterminate::after { width: 8px; height: 0; border-left: 0; transform: none; }
.cb[type="radio"] { border-radius: 50%; }
.cb[type="radio"]::after { width: 6px; height: 6px; border: 0; border-radius: 50%; background: var(--accent-ink); transform: scale(0); }
.cb[type="radio"]:checked::after { transform: scale(1); }
.form-error { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; font-size: 13px; color: oklch(0.85 0.1 25); background: oklch(0.7 0.18 25 / 0.1); border: 1px solid oklch(0.7 0.18 25 / 0.3); }
.form-error .ic { margin-top: 2px; }
.strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.strength i { height: 4px; border-radius: 99px; background: var(--surface-3); transition: background 0.3s; }
.strength[data-s="1"] i:nth-child(-n+1) { background: var(--danger); }
.strength[data-s="2"] i:nth-child(-n+2) { background: var(--warn); }
.strength[data-s="3"] i:nth-child(-n+3) { background: oklch(0.85 0.16 120); }
.strength[data-s="4"] i { background: var(--ok); }

.sw { position: relative; width: 36px; height: 21px; flex: none; appearance: none; margin: 0; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--line-2); cursor: pointer; transition: background 0.25s, border-color 0.25s; }
.sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%; background: #9aa0aa; transition: translate 0.3s var(--ease), background 0.25s; }
.sw:checked { background: var(--accent); border-color: transparent; }
.sw:checked::after { translate: 15px 0; background: var(--accent-ink); }
.sw:disabled { opacity: 0.5; cursor: not-allowed; }

/* ───────── Pills, tags, avatars ───────── */
.status { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 550; white-space: nowrap; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.status--online { color: var(--ok); }
.status--online i { box-shadow: 0 0 8px currentColor; }
.status--offline { color: var(--dim); }
.status--drift { color: var(--warn); }
.status--applying { color: var(--accent); }
.status--applying i, .status--running i { background: none; border: 1.5px solid currentColor; border-right-color: transparent; animation: spin 0.8s linear infinite; width: 9px; height: 9px; }
.status--running { color: var(--accent); }
.status--completed, .status--success { color: var(--ok); }
.status--partial { color: var(--warn); }
.status--failed { color: oklch(0.78 0.15 25); }
.status--pending, .status--cancelled { color: var(--dim); }
.tag { display: inline-block; font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 6px; text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; line-height: 1.5; }
.tag--rec { background: var(--accent-soft); color: var(--accent); }
.tag--safe { background: oklch(0.82 0.17 150 / 0.14); color: oklch(0.85 0.15 150); }
.tag--moderate { background: oklch(0.85 0.15 75 / 0.14); color: oklch(0.87 0.14 80); }
.tag--caution { background: oklch(0.7 0.18 25 / 0.16); color: oklch(0.78 0.15 25); }
.tag--neutral { background: rgb(255 255 255 / 0.06); color: var(--muted); }
.badge { display: inline-flex; align-items: center; min-width: 20px; height: 20px; padding: 0 7px; border-radius: 99px; font-size: 11px; font-weight: 600; background: rgb(255 255 255 / 0.07); color: var(--muted); justify-content: center; }
.badge--accent { background: var(--accent); color: var(--accent-ink); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 12.5px; border: 1px solid var(--line-2); background: none; color: var(--muted); transition: all 0.2s; }
.chip:hover { color: var(--text); border-color: rgb(255 255 255 / 0.22); }
.chip.is-on { background: var(--text); color: var(--bg); border-color: transparent; }
.chip .badge { height: 18px; min-width: 18px; font-size: 10.5px; padding: 0 5px; }
.chip.is-on .badge { background: rgb(0 0 0 / 0.12); color: var(--bg); }
.avatar { --hue: 200; width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 11.5px; font-weight: 650; letter-spacing: 0.02em; color: oklch(0.95 0.05 var(--hue)); background: linear-gradient(135deg, oklch(0.55 0.13 var(--hue)), oklch(0.38 0.1 calc(var(--hue) + 40))); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.15); }
.avatar--lg { width: 40px; height: 40px; font-size: 14px; }
.app-ic { width: 26px; height: 26px; flex: none; border-radius: 7px; display: grid; place-items: center; font-weight: 700; font-size: 12px; color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12), 0 2px 6px -2px rgb(0 0 0 / 0.6); }
.app-ic svg { width: 58%; height: 58%; }
.app-ic--dark { background: linear-gradient(180deg, #2a2d34, #1a1c21); }
.app-stack { display: flex; }
.app-stack .app-ic { margin-left: -6px; box-shadow: 0 0 0 2px var(--surface), inset 0 0 0 1px rgb(255 255 255 / 0.12); }
.app-stack .app-ic:first-child { margin-left: 0; }
.app-stack .more { margin-left: -6px; width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; font-size: 10.5px; font-weight: 600; background: var(--surface-3); color: var(--muted); box-shadow: 0 0 0 2px var(--surface); }
.kbd { font-family: var(--mono); font-size: 11px; padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line-2); background: rgb(255 255 255 / 0.04); color: var(--muted); }

/* ───────── Skeleton loading ───────── */
.sk { display: block; border-radius: 6px; background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.sk-stack { display: grid; gap: 10px; }

/* ───────── Auth pages ───────── */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(380px, 520px) 1fr; }
.auth__side { display: flex; flex-direction: column; padding: 28px clamp(20px, 5vw, 56px); min-height: 100vh; }
.auth__side > .brand { align-self: flex-start; }
.auth__card { width: 100%; max-width: 380px; margin: auto; padding: 40px 0; animation: rise 0.6s var(--ease) both; }
.auth__card h1 { margin: 0; font-size: 30px; font-weight: 600; letter-spacing: -0.035em; line-height: 1.1; }
.auth__card > p { margin: 10px 0 28px; color: var(--muted); }
.auth__form { display: grid; gap: 16px; }
.auth__row { display: flex; justify-content: space-between; align-items: center; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--dim); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth__switch { margin-top: 24px; text-align: center; color: var(--muted); font-size: 13.5px; }
.auth__demo { margin-top: 18px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; border-radius: 12px; border: 1px dashed var(--line-2); font-size: 12.5px; color: var(--muted); }
.auth__foot { display: flex; gap: 16px; font-size: 12px; color: var(--dim); }
.auth__foot a:hover { color: var(--muted); }
.auth__done { text-align: center; }
.auth__done .done-ic { width: 52px; height: 52px; margin: 0 auto 20px; border-radius: 16px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line); }
.auth__done .done-ic .ic { width: 24px; height: 24px; }

.auth__art { position: relative; overflow: hidden; border-left: 1px solid var(--line); background: var(--bg-2); display: grid; place-items: center; padding: 48px; isolation: isolate; }
.auth__art::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(to right, rgb(255 255 255 / 0.045) 1px, transparent 1px), linear-gradient(to bottom, rgb(255 255 255 / 0.045) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 80%); }
.auth__art::after { content: ""; position: absolute; z-index: -1; width: 900px; height: 700px; top: -300px; left: 50%; translate: -50% 0; background: radial-gradient(closest-side, oklch(0.88 0.19 var(--h) / 0.28), transparent), radial-gradient(closest-side at 70% 60%, oklch(0.72 0.2 190 / 0.18), transparent); filter: blur(30px); }
.art { width: min(100%, 520px); }
.art h2 { margin: 0 0 12px; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.05; letter-spacing: -0.04em; font-weight: 600; text-wrap: balance; }
.art > p { margin: 0 0 32px; color: var(--muted); font-size: 15.5px; max-width: 420px; }
.art__win { border-radius: 18px; border: 1px solid var(--line-2); background: linear-gradient(180deg, rgb(24 26 31 / 0.9), rgb(14 15 18 / 0.95)); box-shadow: 0 40px 100px -30px rgb(0 0 0 / 0.9), 0 20px 60px -30px oklch(0.88 0.19 var(--h) / 0.3); overflow: hidden; }
.art__win header { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.art__row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: 13px; }
.art__row:last-child { border-bottom: 0; }
.art__row small { display: block; color: var(--dim); font-size: 11.5px; }
.art__row .ic { color: var(--dim); }
.art__float { position: absolute; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: rgb(22 24 29 / 0.92); backdrop-filter: blur(10px); box-shadow: 0 20px 50px -20px rgb(0 0 0 / 0.8); font-size: 12.5px; display: flex; gap: 10px; align-items: center; animation: float 6s ease-in-out infinite alternate; }
.art__float b { display: block; font-size: 13px; }
@keyframes float { to { transform: translateY(-10px); } }

/* ───────── App shell ───────── */
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px; padding: 16px 12px; border-right: 1px solid var(--line); background: var(--bg-2); z-index: 30; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 16px; letter-spacing: -0.02em; white-space: nowrap; }
.brand svg { width: 26px; height: 26px; }
.side .brand { padding: 4px 8px 12px; }
.org { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border-radius: 12px; border: 1px solid var(--line); background: rgb(255 255 255 / 0.02); text-align: left; transition: border-color 0.2s; }
.org:hover { border-color: var(--line-2); }
.org__logo { width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: linear-gradient(135deg, oklch(0.6 0.15 250), oklch(0.45 0.14 290)); color: #fff; }
.org b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.org small { display: block; font-size: 11.5px; color: var(--dim); }
.org > span:nth-child(2) { flex: 1; min-width: 0; }
.nav { display: grid; gap: 2px; margin-top: 10px; }
.nav__label { padding: 10px 10px 4px; font-size: 11px; font-weight: 600; color: var(--dim); text-transform: uppercase; letter-spacing: 0.08em; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 10px; color: var(--muted); font-size: 13.5px; font-weight: 500; transition: background 0.15s, color 0.15s; }
.nav a:hover { background: rgb(255 255 255 / 0.04); color: var(--text); }
.nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
.nav a .badge { margin-left: auto; }
.nav a[aria-current="page"] .badge { background: var(--accent); color: var(--accent-ink); }
.side__note { margin-top: auto; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: rgb(255 255 255 / 0.02); font-size: 12px; color: var(--muted); }
.side__note b { display: flex; align-items: center; gap: 6px; color: var(--text); font-size: 12.5px; margin-bottom: 4px; }
.side__note b::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--warn); }
.me { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border: 0; border-radius: 12px; background: none; text-align: left; transition: background 0.2s; }
.me:hover { background: rgb(255 255 255 / 0.04); }
.me > span:nth-child(2) { flex: 1; min-width: 0; }
.me b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me small { display: block; font-size: 11.5px; color: var(--dim); }

.scrim { display: none; }
.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 28px; border-bottom: 1px solid var(--line); background: rgb(8 9 11 / 0.78); backdrop-filter: blur(14px) saturate(1.3); }
.top__burger { display: none; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); min-width: 0; }
.crumbs a:hover { color: var(--text); }
.crumbs b { color: var(--text); font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumbs .sep { color: var(--dim); }
.top__search { margin-left: auto; display: flex; align-items: center; gap: 10px; height: 34px; width: 260px; padding: 0 8px 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: rgb(0 0 0 / 0.25); color: var(--dim); font-size: 13px; transition: border-color 0.2s; }
.top__search:hover { border-color: rgb(255 255 255 / 0.2); }
.top__search span { flex: 1; text-align: left; }
.view { padding: 28px; width: 100%; max-width: 1320px; animation: viewIn 0.35s var(--ease) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } }

/* ───────── Page pieces ───────── */
.ph { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.ph h1 { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; }
.ph p { margin: 6px 0 0; color: var(--muted); }
.ph__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; font-size: 13px; color: var(--muted); }
.back:hover { color: var(--text); }
.card { border-radius: var(--r-lg); border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface), var(--bg-2)); }
.card__h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.card__h h2, .card__h h3 { margin: 0; font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; }
.card__h a { font-size: 12.5px; color: var(--muted); }
.card__h a:hover { color: var(--accent); }
.card__b { padding: 16px 18px; }
.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3-1 { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.stack { display: grid; gap: 16px; align-content: start; }
.grid > *, .stack > * { min-width: 0; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { position: relative; overflow: hidden; padding: 16px 18px; border-radius: var(--r-lg); border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface), var(--bg-2)); }
.kpi small { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.kpi b { display: block; margin-top: 8px; font-size: 30px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.kpi span { display: block; margin-top: 8px; font-size: 12.5px; color: var(--dim); }
.kpi > svg { position: absolute; right: 0; bottom: 0; width: 55%; height: 52px; opacity: 0.9; }
.kpi .spark-line { fill: none; stroke: var(--accent); stroke-width: 1.8; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 4px oklch(0.88 0.19 var(--h) / 0.6)); }
.kpi .spark-area { fill: url(#sparkFill); }
.kpi--warn b { color: var(--warn); }
.ring { --v: 0; position: absolute; right: 16px; top: 50%; translate: 0 -50%; width: 54px; height: 54px; border-radius: 50%; background: conic-gradient(var(--accent) calc(var(--v) * 1%), var(--surface-3) 0); mask: radial-gradient(farthest-side, transparent 72%, #000 73%); }

.list { list-style: none; margin: 0; padding: 0; }
.list > li { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.list > li:last-child { border-bottom: 0; }
.list .grow { flex: 1; min-width: 0; }
.list b { display: block; font-size: 13.5px; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list small { display: block; font-size: 12px; color: var(--dim); }
a.list__link:hover b { color: var(--accent); }
.ic-box { width: 32px; height: 32px; flex: none; border-radius: 9px; display: grid; place-items: center; background: var(--surface-3); color: var(--muted); border: 1px solid var(--line); }
.ic-box--warn { color: var(--warn); background: oklch(0.85 0.15 75 / 0.1); border-color: oklch(0.85 0.15 75 / 0.25); }
.ic-box--accent { color: var(--accent); background: var(--accent-soft); border-color: var(--accent-line); }
.progress { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.progress i { display: block; height: 100%; width: calc(var(--v) * 1%); border-radius: inherit; background: linear-gradient(90deg, var(--accent-2), var(--accent)); transition: width 0.6s var(--ease); }
.progress--warn i { background: var(--warn); }
.progress--done i { background: var(--ok); }
.bars { display: grid; gap: 14px; padding: 16px 18px; }
.bars > div { display: grid; gap: 7px; }
.bars header { display: flex; justify-content: space-between; font-size: 13px; }
.bars header span:last-child { color: var(--dim); font-variant-numeric: tabular-nums; }
.feed { list-style: none; margin: 0; padding: 8px 18px 16px; }
.feed li { position: relative; display: grid; grid-template-columns: 26px 1fr; gap: 10px; padding: 8px 0; font-size: 13px; }
.feed li::before { content: ""; position: absolute; left: 12px; top: 30px; bottom: -8px; width: 1px; background: var(--line); }
.feed li:last-child::before { display: none; }
.feed .dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); border: 1px solid var(--line-2); color: var(--muted); }
.feed .dot .ic { width: 12px; height: 12px; }
.feed .dot--warn { color: var(--warn); }
.feed .dot--deploy { color: var(--accent); }
.feed p { margin: 3px 0 0; color: var(--muted); }
.feed p b { color: var(--text); font-weight: 550; }
.feed small { display: block; color: var(--dim); font-size: 11.5px; }

.empty { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 56px 24px; }
.empty .ic-box { width: 48px; height: 48px; border-radius: 14px; margin-bottom: 6px; }
.empty .ic-box .ic { width: 22px; height: 22px; }
.empty h3 { margin: 0; font-size: 16px; font-weight: 600; }
.empty p { margin: 0 0 8px; color: var(--muted); max-width: 380px; }

.onboard { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 18px; }
.onboard div { padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: rgb(255 255 255 / 0.02); }
.onboard b { display: block; font-size: 14px; margin: 10px 0 4px; }
.onboard p { margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.onboard .n { font-family: var(--mono); font-size: 12px; color: var(--accent); }

/* toolbar + table */
.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.toolbar .input--search { width: 240px; }
.toolbar .chips { display: flex; gap: 6px; flex-wrap: wrap; }
.toolbar .spacer { flex: 1; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-weight: 550; font-size: 12px; color: var(--dim); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background 0.15s; }
.table tbody tr.is-link { cursor: pointer; }
.table tbody tr:hover { background: rgb(255 255 255 / 0.025); }
.table tbody tr.is-sel { background: var(--accent-soft); }
.table .w-cb { width: 40px; padding-right: 0; }
.cell-main { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cell-main b { display: block; font-weight: 550; font-size: 13.5px; }
.cell-main small { display: block; color: var(--dim); font-size: 12px; }
.mini-bar { display: flex; align-items: center; gap: 8px; }
.mini-bar .progress { width: 64px; }
.table-foot { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--dim); }

.bulk { position: fixed; left: 50%; bottom: 24px; z-index: 40; translate: -50% 0; display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: rgb(22 24 29 / 0.92); backdrop-filter: blur(16px); box-shadow: 0 20px 60px -10px rgb(0 0 0 / 0.8); font-size: 13px; transition: opacity 0.3s, translate 0.35s var(--ease); }
.bulk[hidden] { display: flex !important; opacity: 0; translate: -50% 20px; pointer-events: none; }
.bulk b { margin-right: 6px; }
.bulk .sep { width: 1px; height: 20px; background: var(--line-2); }

/* tabs */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.tabs button { position: relative; padding: 10px 14px; border: 0; background: none; color: var(--muted); font-size: 13.5px; font-weight: 550; white-space: nowrap; }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { color: var(--text); }
.tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--accent); }
.tabs .badge { margin-left: 6px; height: 18px; font-size: 10.5px; }

.dl { display: grid; margin: 0; }
.dl > div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 10px 18px; border-bottom: 1px solid var(--line); font-size: 13px; }
.dl > div:last-child { border-bottom: 0; }
.dl dt { color: var(--dim); }
.dl dd { margin: 0; overflow-wrap: anywhere; }
.device-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.device-head .ic-box { width: 52px; height: 52px; border-radius: 15px; }
.device-head .ic-box .ic { width: 24px; height: 24px; }
.device-head h1 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.callout { display: flex; gap: 12px; padding: 12px 14px; border-radius: 12px; font-size: 13px; }
.callout--warn { color: oklch(0.9 0.08 80); background: oklch(0.85 0.15 75 / 0.08); border: 1px solid oklch(0.85 0.15 75 / 0.25); }
.callout--info { color: var(--muted); background: rgb(255 255 255 / 0.03); border: 1px solid var(--line); }
.callout .ic { margin-top: 2px; }
.callout ul { margin: 4px 0 0; padding-left: 18px; }

.bench-bars { display: grid; gap: 14px; padding: 18px; }
.bench-bars > div { display: grid; grid-template-columns: 70px 1fr 70px; gap: 12px; align-items: center; font-size: 13px; }
.bench-bars .track { display: grid; gap: 3px; }
.bench-bars .track i { display: block; height: 5px; border-radius: 99px; background: var(--dim); width: calc(var(--v) * 100%); }
.bench-bars .track i:last-child { background: var(--accent); box-shadow: 0 0 8px oklch(0.88 0.19 var(--h) / 0.5); }

/* profiles */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.pcard { display: grid; gap: 14px; padding: 18px; border-radius: var(--r-lg); border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface), var(--bg-2)); transition: border-color 0.2s, transform 0.25s var(--ease); }
a.pcard:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.pcard__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.pcard h3 { margin: 0; font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em; }
.pcard p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.pcard__meta { display: flex; gap: 16px; font-size: 12.5px; color: var(--dim); padding-top: 12px; border-top: 1px solid var(--line); }
.pcard__meta b { color: var(--text); font-weight: 550; }
.pcard--new { place-items: center; text-align: center; border-style: dashed; color: var(--muted); min-height: 200px; background: none; }
.pcard--new:hover { color: var(--text); border-color: var(--accent-line); }
.ver { font-family: var(--mono); font-size: 11.5px; padding: 2px 8px; border-radius: 6px; background: rgb(255 255 255 / 0.06); color: var(--muted); }
.app-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 18px; }
.app-pill { display: inline-flex; align-items: center; gap: 8px; padding: 4px 6px 4px 4px; border-radius: 10px; border: 1px solid var(--line); background: rgb(255 255 255 / 0.03); font-size: 13px; }
.app-pill button { width: 22px; height: 22px; border: 0; border-radius: 6px; background: none; color: var(--dim); display: grid; place-items: center; }
.app-pill button:hover { background: rgb(255 255 255 / 0.08); color: var(--text); }
.app-pill--add { border-style: dashed; padding: 4px 12px; color: var(--muted); background: none; height: 36px; }
.app-pill--add:hover { color: var(--text); border-color: var(--accent-line); }
.tw-group { padding: 6px 0; }
.tw-group h4 { margin: 0; padding: 10px 18px 6px; font-size: 11.5px; font-weight: 600; color: var(--dim); text-transform: uppercase; letter-spacing: 0.08em; }
.tw { display: flex; align-items: center; gap: 14px; padding: 10px 18px; }
.tw:hover { background: rgb(255 255 255 / 0.02); }
.tw > div { flex: 1; min-width: 0; }
.tw b { display: block; font-size: 13.5px; font-weight: 550; }
.tw .tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 5px; }
.groups { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 18px; }
.savebar { position: sticky; bottom: 16px; z-index: 15; display: flex; align-items: center; gap: 10px; margin-top: 20px; padding: 10px 10px 10px 18px; border-radius: 16px; border: 1px solid var(--accent-line); background: rgb(22 24 29 / 0.92); backdrop-filter: blur(16px); box-shadow: 0 20px 60px -20px rgb(0 0 0 / 0.9); font-size: 13px; animation: rise 0.35s var(--ease) both; }
.savebar span { flex: 1; color: var(--muted); }
.savebar span b { color: var(--text); }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; max-height: 340px; overflow: auto; padding: 2px; }
.pick { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); cursor: pointer; font-size: 13px; transition: border-color 0.15s, background 0.15s; }
.pick:hover { border-color: var(--line-2); }
.pick:has(.cb:checked) { border-color: var(--accent-line); background: var(--accent-soft); }
.pick span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* team */
.roles { display: grid; gap: 0; }
.roles div { padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 13px; }
.roles div:last-child { border-bottom: 0; }
.roles b { display: block; font-size: 13.5px; margin-bottom: 2px; }
.roles span { color: var(--muted); }

/* settings */
.settings { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; align-items: start; }
.settings__nav { position: sticky; top: 84px; display: grid; gap: 2px; }
.settings__nav a { padding: 7px 10px; border-radius: 8px; color: var(--muted); font-size: 13.5px; }
.settings__nav a:hover { color: var(--text); background: rgb(255 255 255 / 0.04); }
.sec { scroll-margin-top: 84px; }
.sec .card__b { display: grid; gap: 16px; }
.setrow { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.setrow b { display: block; font-size: 13.5px; font-weight: 550; }
.setrow small { display: block; color: var(--dim); font-size: 12.5px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card__f { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); background: rgb(0 0 0 / 0.15); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.danger { border-color: oklch(0.7 0.18 25 / 0.3); }
.danger .card__h h2 { color: oklch(0.8 0.14 25); }
.soon { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; padding: 2px 8px; border-radius: 6px; background: rgb(255 255 255 / 0.06); color: var(--muted); }
.token { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgb(0 0 0 / 0.3); font-family: var(--mono); font-size: 13px; }
.token span { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.steps-mini { counter-reset: s; list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.steps-mini li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; gap: 12px; font-size: 13.5px; }
.steps-mini li::before { content: counter(s); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line); }
.steps-mini p { margin: 2px 0 8px; color: var(--muted); }

/* ───────── Dialogs, drawer, menus, toasts ───────── */
dialog { padding: 0; border: 0; background: none; color: var(--text); max-width: calc(100vw - 32px); max-height: calc(100vh - 32px); }
dialog::backdrop { background: rgb(0 0 0 / 0.6); backdrop-filter: blur(4px); }
.dlg { width: 480px; max-width: 100%; border-radius: 20px; border: 1px solid var(--line-2); background: linear-gradient(180deg, var(--surface-2), var(--surface)); box-shadow: 0 40px 120px -20px rgb(0 0 0 / 0.9); overflow: hidden; }
.dlg--wide { width: 640px; }
dialog[open] { animation: dlgIn 0.3s var(--ease); }
dialog[open]::backdrop { animation: fade 0.3s ease; }
@keyframes dlgIn { from { opacity: 0; transform: translateY(10px) scale(0.98); } }
@keyframes fade { from { opacity: 0; } }
.dlg__h { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 20px 22px 0; }
.dlg__h h2 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.dlg__h p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.dlg__b { padding: 18px 22px; display: grid; gap: 16px; max-height: calc(100vh - 220px); overflow: auto; }
.dlg__f { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--line); background: rgb(0 0 0 / 0.15); }

.drawer { margin: 0 0 0 auto; height: 100vh; max-height: 100vh; width: min(480px, 100vw); max-width: 100vw; }
.drawer[open] { animation: drawerIn 0.35s var(--ease); }
@keyframes drawerIn { from { transform: translateX(40px); opacity: 0; } }
.drawer .dlg { width: 100%; height: 100%; border-radius: 0; border-width: 0 0 0 1px; display: flex; flex-direction: column; }
.drawer .dlg__b { flex: 1; max-height: none; }

.menu { margin: 0; inset: auto; position: fixed; min-width: 220px; padding: 6px; border-radius: 14px; border: 1px solid var(--line-2); background: rgb(22 24 29 / 0.97); backdrop-filter: blur(16px); box-shadow: 0 20px 60px -10px rgb(0 0 0 / 0.8); color: var(--text); }
.menu:popover-open { animation: dlgIn 0.2s var(--ease); }
.menu__head { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; font-size: 13px; }
.menu__head small { display: block; color: var(--dim); }
.menu button, .menu a { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: none; text-align: left; font-size: 13px; color: var(--muted); }
.menu button:hover, .menu a:hover { background: rgb(255 255 255 / 0.06); color: var(--text); }
.menu .danger-item:hover { color: oklch(0.8 0.14 25); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }

.cmdk { width: 560px; }
.cmdk .dlg { width: 100%; }
.cmdk input { width: 100%; height: 52px; padding: 0 20px 0 48px; border: 0; border-bottom: 1px solid var(--line); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239095a0' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E") no-repeat 18px center; font-size: 15px; outline: none; }
.cmdk ul { list-style: none; margin: 0; padding: 6px; max-height: 360px; overflow: auto; }
.cmdk li.label { padding: 10px 12px 4px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); }
.cmdk a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; font-size: 13.5px; color: var(--muted); }
.cmdk a small { margin-left: auto; color: var(--dim); font-size: 12px; }
.cmdk a.is-active { background: var(--accent-soft); color: var(--text); }
.cmdk .none { padding: 24px; text-align: center; color: var(--dim); }

.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 1000; display: grid; gap: 8px; justify-items: end; }
.toast { display: flex; align-items: center; gap: 10px; max-width: 380px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgb(22 24 29 / 0.96); backdrop-filter: blur(12px); box-shadow: 0 16px 40px -10px rgb(0 0 0 / 0.8); font-size: 13px; animation: toastIn 0.35s var(--ease) both; }
.toast.out { animation: toastOut 0.25s ease both; }
.toast .ic { color: var(--accent); }
.toast--error .ic { color: oklch(0.78 0.15 25); }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px) scale(0.97); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(6px); } }

@keyframes spin { to { rotate: 360deg; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* ───────── Responsive ───────── */
@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3-1 { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .auth { grid-template-columns: 1fr; }
  .auth__art { display: none; }
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 272px; translate: -100% 0; transition: translate 0.35s var(--ease); box-shadow: 30px 0 80px rgb(0 0 0 / 0.6); }
  .shell.nav-open .side { translate: 0 0; }
  .scrim { display: block; position: fixed; inset: 0; z-index: 25; background: rgb(0 0 0 / 0.5); opacity: 0; pointer-events: none; transition: opacity 0.3s; }
  .shell.nav-open .scrim { opacity: 1; pointer-events: auto; }
  .top__burger { display: grid; }
  .top { padding: 0 16px; }
  .view { padding: 20px 16px; }
  .settings { grid-template-columns: 1fr; }
  .settings__nav { position: static; display: flex; overflow-x: auto; scrollbar-width: none; }
  .settings__nav a { white-space: nowrap; }
}
@media (max-width: 680px) {
  .top__search { width: auto; margin-left: auto; }
  .top__search span, .top__search .kbd { display: none; }
  .grid--2, .form-grid, .onboard { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi b { font-size: 24px; }
  .kpi > svg, .ring { display: none; }
  .toolbar .input--search { width: 100%; }
  .ph h1 { font-size: 22px; }
  .dl > div { grid-template-columns: 110px 1fr; }
  .bulk { left: 16px; right: 16px; translate: 0 0; border-radius: 16px; flex-wrap: wrap; }
  .bulk[hidden] { translate: 0 20px; }
  .bench-bars > div { grid-template-columns: 56px 1fr 56px; }
}
/* Device overview */
.kpi--online b { color: var(--ok); }
.kpi--offline b { color: var(--dim); }
.kpi--drift b { color: var(--warn); }
.kpi--applying b { color: var(--accent); }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.spec { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.spec:nth-child(odd) { border-right: 1px solid var(--line); }
.spec:nth-last-child(-n + 2) { border-bottom: 0; }
.spec > div { min-width: 0; }
.spec small { display: block; font-size: 12px; color: var(--dim); }
.spec b { display: block; margin-top: 2px; font-size: 13.5px; font-weight: 550; overflow-wrap: anywhere; }
.card__f { display: flex; flex-wrap: wrap; gap: 6px 20px; padding: 12px 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--dim); }
.card__f .mono { color: var(--muted); }
.on-pc { display: grid; gap: 18px; padding: 16px 18px; }
.on-pc__h { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; font-size: 13.5px; }
.on-pc__h b { font-weight: 600; }
.on-pc__h .link { font-size: 12.5px; }
.on-pc p { margin: 0; font-size: 13px; }
.app-wall { display: flex; flex-wrap: wrap; gap: 8px; }
.app-wall .app-ic { width: 34px; height: 34px; border-radius: 9px; font-size: 14px; }
.app-wall .more { display: grid; place-items: center; height: 34px; padding: 0 10px; border-radius: 9px; background: var(--surface-3); color: var(--muted); font-size: 12px; font-weight: 600; }
.tweak-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tweak-pills li { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 12.5px; color: var(--muted); }
.tweak-pills .ic { width: 13px; height: 13px; color: var(--ok); }
.cell-main small.mono { font-size: 11px; }
@media (max-width: 680px) {
  .specs { grid-template-columns: 1fr; }
  .spec:nth-child(odd) { border-right: 0; }
  .spec:nth-last-child(2) { border-bottom: 1px solid var(--line); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
