/* Appki Store — стили. Токены -> компоненты -> экраны */
:root {
  --bg: #F5F6F9; --card: #FFFFFF; --ink: #0C1220; --muted: #6E7891; --line: #E3E6EE;
  --accent: #2953F5; --accent-ink: #FFFFFF; --soft: #EAF0FF; --ok: #1DA462; --warn: #E39B1B;
  --note: #FFF7E0; --note-ink: #6B4E00; --sheet-shadow: 0 -12px 40px rgba(12,18,32,.14);
  --radius: 18px; --radius-s: 14px;
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px);
  --tabbar-h: 56px;
  --font: "Golos Text", -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  --display: "Unbounded", "Golos Text", -apple-system, system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0C1220; --card: #161D2E; --ink: #F2F4F8; --muted: #8B94A8; --line: #263047;
    --accent: #5B7DFF; --accent-ink: #0C1220; --soft: #1B2540; --note: #2A2410; --note-ink: #F0D48A;
    --sheet-shadow: 0 -12px 40px rgba(0,0,0,.5);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); line-height: 1.45;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none;
  display: flex; flex-direction: column; height: 100dvh; overflow: hidden; position: fixed; inset: 0;
}
button, a { font: inherit; color: inherit; }
button { border: 0; background: none; padding: 0; cursor: pointer; -webkit-user-select: none; user-select: none; }
a { text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-family: var(--display); letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: 26px; font-weight: 900; line-height: 1.15; }
h2 { font-size: 20px; font-weight: 700; line-height: 1.2; }
h3 { font-size: 15px; font-weight: 700; font-family: var(--font); letter-spacing: 0; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.tiny { font-size: 12.5px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ── Оболочка ── */
#app { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: calc(var(--sat) + 12px) 18px 28px; width: 100%; }
#app > .screen { max-width: 640px; margin: 0 auto; }
body.no-tabbar #app { padding-bottom: calc(var(--sab) + 28px); }
.screen { display: flex; flex-direction: column; gap: 16px; animation: fade .22s ease-out; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .screen, .sheet, .sa-arrow { animation: none !important; } }

.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 36px; gap: 12px; }
.topbar .back { color: var(--accent); font-size: 16px; display: inline-flex; align-items: center; gap: 2px; padding: 6px 4px 6px 0; }
.topbar .back svg { width: 20px; height: 20px; fill: currentColor; }
.topbar .title { font-weight: 600; font-size: 16px; }
.date { font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }

.brand { display: flex; align-items: center; gap: 10px; }
.logo { width: 36px; height: 36px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-family: var(--display); font-weight: 900; font-size: 19px; flex: 0 0 auto; }
.logo.lg { width: 84px; height: 84px; border-radius: 22px; font-size: 44px; }
.brand b { font-family: var(--display); font-weight: 700; font-size: 15px; display: block; }
.brand small { display: block; color: var(--muted); font-size: 12px; }

/* ── Кнопки ── */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  background: var(--accent); color: var(--accent-ink); border-radius: var(--radius-s); padding: 15px 18px;
  font-weight: 600; font-size: 16px; transition: transform .08s ease, opacity .12s ease;
}
.btn:active { transform: scale(.985); opacity: .9; }
.btn.ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.btn.pill { width: auto; padding: 8px 16px; border-radius: 999px; font-size: 14.5px; flex: 0 0 auto; }
.btn.pill.done { background: var(--soft); color: var(--accent); }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.link { color: var(--accent); font-weight: 500; }
.link.u { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); }

/* ── Карточки ── */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.card.row { display: flex; align-items: center; gap: 12px; }
.card.link-row { transition: background .12s; }
.card.link-row:active { background: var(--soft); }
.list { display: flex; flex-direction: column; gap: 10px; }
.section-h { display: flex; align-items: baseline; justify-content: space-between; margin-top: 6px; }
.section-h h2 { font-family: var(--font); letter-spacing: 0; font-size: 17px; font-weight: 700; }
.section-h a { font-size: 14px; }

.icon { position: relative; width: 56px; height: 56px; border-radius: 14px; flex: 0 0 auto; overflow: hidden; background: var(--soft); display: grid; place-items: center; font-family: var(--display); font-weight: 900; font-size: 20px; color: #fff; border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent); }
.icon img { width: 100%; height: 100%; object-fit: cover; }
.icon > span { color: var(--muted); }
.icon.lg { width: 96px; height: 96px; border-radius: 24px; font-size: 36px; }
.icon.sm { width: 44px; height: 44px; border-radius: 11px; font-size: 16px; }
.t { flex: 1; min-width: 0; }
.t b { display: block; font-weight: 600; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t span { display: block; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chev { color: var(--muted); flex: 0 0 auto; width: 18px; height: 18px; fill: currentColor; }

.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 999px; }
.badge.ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 13%, transparent); }
.badge.partial { color: var(--warn); background: color-mix(in srgb, var(--warn) 15%, transparent); }
.badge svg { width: 12px; height: 12px; fill: currentColor; }

.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -18px; padding: 2px 18px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; font-size: 14px; padding: 8px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink); font-weight: 500; }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.search { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; }
.search svg { width: 18px; height: 18px; fill: var(--muted); flex: 0 0 auto; }
.search input { flex: 1; border: 0; background: none; padding: 12px 0; font-size: 16px; color: var(--ink); outline: none; min-width: 0; }
.search input::placeholder { color: var(--muted); }

.note { background: var(--note); color: var(--note-ink); border-radius: 12px; padding: 12px 14px; font-size: 13.5px; }
.hero {
  background: linear-gradient(135deg, #2953F5, #6B8CFF); color: #fff; border-radius: var(--radius); padding: 18px; position: relative; overflow: hidden;
}
.hero .eyebrow { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; opacity: .85; font-weight: 600; }
.hero h2 { color: #fff; margin: 6px 0 6px; font-size: 18px; }
.hero p { font-size: 14px; opacity: .92; max-width: 40ch; }
.hero .close { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.18); color: #fff; display: grid; place-items: center; font-size: 16px; }

/* ── Шаги ── */
.steps { display: flex; flex-direction: column; gap: 12px; }
.step { display: flex; gap: 12px; align-items: flex-start; }
.step .n { width: 28px; height: 28px; border-radius: 50%; background: var(--soft); color: var(--accent); font-weight: 700; font-size: 13.5px; display: grid; place-items: center; flex: 0 0 auto; margin-top: 1px; }
.step .x { font-size: 15px; line-height: 1.45; }
.step .x b { font-weight: 600; }
.glyph { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: var(--soft); color: var(--accent); vertical-align: -6px; margin: 0 1px; }
.glyph svg { width: 15px; height: 15px; fill: currentColor; }
.share-glyph svg { width: 16px; height: 16px; }

/* Метаданные карточки */
.meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.meta div { text-align: center; padding: 10px 6px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.meta b { display: block; font-size: 13.5px; font-weight: 600; }
.meta span { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.app-hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding-top: 4px; }
.app-hero h1 { font-size: 22px; }

/* ── Шит ── */
.sheet-root { position: fixed; inset: 0; z-index: 50; display: none; }
.sheet-root.open { display: block; }
.sheet-bg { position: absolute; inset: 0; background: rgba(12,18,32,.45); animation: fadein .2s ease-out; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; max-width: 640px; margin: 0 auto;
  background: var(--card); border-radius: 22px 22px 0 0; padding: 12px 18px calc(var(--sab) + 20px);
  box-shadow: var(--sheet-shadow); max-height: calc(100dvh - 40px); overflow-y: auto; animation: up .28s cubic-bezier(.2,.8,.2,1);
}
@keyframes up { from { transform: translateY(100%); } to { transform: none; } }
.sheet { touch-action: pan-y; will-change: transform; }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 14px; }
.sheet .head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.sheet .head b { display: block; font-size: 17px; font-weight: 700; }
.sheet .head span { font-size: 13px; color: var(--muted); }
.sheet .actions { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.sheet .foot { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 12px; }
.sheet .foot a { color: var(--muted); text-decoration: underline; }

/* Сегментированный переключатель «что вы видите» */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 5px; }
.seg button { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 8px; border-radius: 10px; font-size: 13px; font-weight: 500; color: var(--muted); text-align: left; line-height: 1.2; }
.seg button i { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--soft); color: var(--accent); flex: 0 0 auto; }
.seg button i svg { width: 14px; height: 14px; fill: currentColor; }
.seg button.on { background: var(--accent); color: var(--accent-ink); }
.seg button.on i { background: rgba(255,255,255,.22); color: currentColor; }

/* Стрелка на кнопку Safari */
.safari-arrow { position: fixed; bottom: 0; z-index: 45; display: flex; flex-direction: column; align-items: center; gap: 2px; padding-bottom: calc(var(--sab) + 2px); pointer-events: none; }
.safari-arrow.center { left: 50%; transform: translateX(-50%); }
.safari-arrow.right { right: 8px; align-items: flex-end; }
.sa-label { background: var(--accent); color: var(--accent-ink); font-size: 15px; font-weight: 700; line-height: 1.25; padding: 10px 14px; border-radius: 14px; text-align: center; box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 45%, transparent); }
.safari-arrow.right .sa-label { text-align: right; }
.sa-label span { display: block; font-size: 12.5px; font-weight: 500; opacity: .9; }
.sa-arrow { width: 64px; height: 64px; color: var(--accent); filter: drop-shadow(0 4px 10px color-mix(in srgb, var(--accent) 45%, transparent)); animation: bounce 1s ease-in-out infinite; }
.safari-arrow.right .sa-arrow { margin-right: 6px; }
.sa-arrow svg { width: 100%; height: 100%; fill: currentColor; }
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(10px); } }
body.hint-open .tabbar { display: none; }
body.hint-open #app { padding-bottom: 200px; }

/* ── Таббар ── */
.tabbar {
  flex: 0 0 auto; z-index: 40; display: flex; justify-content: space-around; width: 100%;
  background: var(--card);
  border-top: 1px solid var(--line); padding: 6px 8px calc(var(--sab) + 4px); height: calc(var(--tabbar-h) + var(--sab));
}
.tabbar[hidden] { display: none; }
.tabbar a { flex: 1; max-width: 160px; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10.5px; color: var(--muted); font-weight: 500; padding: 2px 0; }
.tabbar a svg { width: 26px; height: 26px; fill: currentColor; }
.tabbar a.on { color: var(--accent); }

/* ── Тост ── */
.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + var(--sab) + 16px); transform: translate(-50%, 20px); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; opacity: 0; transition: .25s; z-index: 70; pointer-events: none; white-space: nowrap; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ── Лендинг / гейт ── */
.gate { min-height: 100%; display: flex; flex-direction: column; gap: 16px; }
.gate .spacer { flex: 1; }
.iconrow { display: flex; align-items: center; gap: 8px; }
.iconrow .icon { width: 42px; height: 42px; border-radius: 11px; font-size: 15px; }
.iconrow .more { font-size: 13.5px; color: var(--muted); margin-left: 4px; }
.desktop-note { display: flex; gap: 14px; align-items: center; }
.desktop-note .logo.lg { flex: 0 0 auto; }

/* FAQ */
details.card { padding: 0; }
details.card summary { list-style: none; padding: 14px 16px; font-weight: 600; font-size: 15px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
details.card summary::-webkit-details-marker { display: none; }
details.card summary:after { content: "+"; color: var(--muted); font-size: 18px; }
details.card[open] summary:after { content: "–"; }
details.card .body { padding: 0 16px 14px; color: var(--muted); font-size: 14.5px; }
details.card .body a { color: var(--accent); }

.footer { text-align: center; font-size: 12px; color: var(--muted); padding-top: 12px; }
.footer a { color: var(--muted); text-decoration: underline; }

@media (min-width: 640px) {
  .list.grid2 { display: grid; grid-template-columns: 1fr 1fr; }
}

/* ── Пошаговый гайд ── */
.stepper { display: flex; flex-direction: column; gap: 12px; }
.st-track { display: flex; transition: transform .3s cubic-bezier(.2,.8,.2,1); will-change: transform; }
.st-slide { flex: 0 0 100%; display: flex; flex-direction: column; gap: 14px; padding: 0 2px; }
.st-text h2 { font-family: var(--font); letter-spacing: 0; font-size: 19px; font-weight: 700; margin: 4px 0 6px; }
.st-n { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.st-dots { display: flex; justify-content: center; gap: 6px; }
.st-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.st-dots i.on { background: var(--accent); width: 20px; border-radius: 4px; }
.st-nav { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; }
.st-nav .btn:disabled { opacity: .45; }
.stepper[data-i="0"] .st-nav { grid-template-columns: 1fr; }
.stepper[data-i="0"] .st-nav [data-prev] { display: none; }
.stepper { overflow: hidden; }

/* Иллюстрации — копии элементов iOS */
.ill { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.ill-cap { font-size: 12.5px; color: var(--muted); text-align: center; }
.ill-screen { position: relative; width: 100%; max-width: 300px; height: 210px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.ill-screen.dim { background: color-mix(in srgb, var(--ink) 55%, var(--card)); }
.ill-screen.home { background: linear-gradient(160deg, #1a2a6c, #b21f66 60%, #fdbb2d); justify-content: flex-start; padding: 22px 14px; }
.ill-page { position: absolute; top: 18px; left: 18px; right: 18px; display: flex; flex-direction: column; gap: 8px; }
.ill-page i { display: block; height: 10px; border-radius: 5px; background: var(--line); width: 90%; }
.ill-capsule, .ill-bar { margin: 10px; background: color-mix(in srgb, var(--card) 88%, var(--ink) 12%); border-radius: 999px; display: flex; align-items: center; color: var(--muted); }
.ill-capsule { padding: 10px 14px; gap: 10px; font-size: 14px; }
.ill-capsule .aa { font-size: 12px; font-weight: 600; }
.ill-capsule .host { flex: 1; text-align: center; color: var(--ink); font-weight: 500; }
.ill-bar { justify-content: space-around; padding: 10px 6px; border-radius: 14px; }
.ill-bar span, .ill-capsule span.tgt { display: inline-grid; place-items: center; width: 30px; height: 30px; }
.ill-bar .flip { transform: scaleX(-1); }
.ill svg { width: 20px; height: 20px; fill: currentColor; }
.tgt { color: var(--accent) !important; border-radius: 50%; box-shadow: 0 0 0 3px var(--accent); animation: glow 1.4s ease-in-out infinite; }
.tgt svg { fill: var(--accent); }
.tgt-text { color: var(--accent) !important; font-weight: 700 !important; position: relative; }
.tgt-text:after { content: ""; position: absolute; inset: -6px -10px; border: 2.5px solid var(--accent); border-radius: 10px; animation: glow 1.4s ease-in-out infinite; }
@keyframes glow { 0%,100% { box-shadow: 0 0 0 3px var(--accent); } 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent) 35%, transparent); } }
.ill-menu { margin: 0 12px 12px; background: var(--card); border-radius: 14px; overflow: hidden; }
.ill-menu div, .ill-list div { display: flex; justify-content: space-between; align-items: center; padding: 11px 14px; font-size: 14px; border-top: 1px solid var(--line); color: var(--ink); }
.ill-menu div:first-child { border-top: 0; }
.ill-menu div.tgt, .ill-list div.tgt { border-radius: 0; box-shadow: inset 0 0 0 2.5px var(--accent); background: var(--soft); animation: none; }
.ill-sheet { margin: 0 10px; background: var(--card); border-radius: 18px 18px 0 0; padding: 10px 0 0; }
.ill-sheet-head { display: flex; justify-content: space-between; padding: 0 14px 8px; font-size: 13px; }
.ill-sheet-head span { color: var(--muted); }
.ill-apps { display: flex; gap: 12px; padding: 4px 14px 8px; border-bottom: 1px solid var(--line); }
.ill-apps i { width: 34px; height: 34px; border-radius: 9px; background: var(--soft); }
.ill-list div { padding: 8px 14px; font-size: 13px; }
.ill-dialog { margin: 0 10px; background: var(--card); border-radius: 18px 18px 0 0; padding: 0 0 12px; }
.ill-dialog-bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; font-size: 14px; color: var(--accent); border-bottom: 1px solid var(--line); }
.ill-dialog-bar b { color: var(--ink); font-weight: 600; }
.ill-dialog-app { display: flex; gap: 12px; align-items: center; padding: 12px 14px; }
.ill-dialog-app .icon { width: 48px; height: 48px; border-radius: 12px; }
.ill-dialog-app b { display: block; font-size: 14px; font-weight: 600; }
.ill-dialog-app span { font-size: 12px; color: var(--muted); }
.ill-toggle { display: flex; justify-content: space-between; align-items: center; margin: 0 14px; padding: 10px 12px; background: var(--bg); border-radius: 10px; font-size: 13.5px; }
.ill-toggle i { width: 40px; height: 24px; border-radius: 12px; background: var(--ok); position: relative; }
.ill-toggle i:after { content: ""; position: absolute; right: 2px; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; }
.ill-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 8px; }
.ill-grid i { display: block; width: 44px; height: 44px; border-radius: 11px; background: rgba(255,255,255,.25); margin: 0 auto; }
.ill-grid .new { text-align: center; color: #fff; font-size: 10px; }
.ill-grid .new .icon { width: 44px; height: 44px; border-radius: 11px; margin: 0 auto 3px; outline: 3px solid #fff; outline-offset: 2px; }
.ill-alert { margin: auto 30px; background: var(--card); border-radius: 16px; padding: 16px 14px 0; text-align: center; align-self: center; }
.ill-alert b { display: block; font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.ill-alert div { display: flex; border-top: 1px solid var(--line); margin: 0 -14px; }
.ill-alert div span { flex: 1; padding: 11px; font-size: 14px; color: var(--accent); border-left: 1px solid var(--line); }
.ill-alert div span:first-child { border-left: 0; }
.ill-screen.dim .ill-alert { align-self: center; margin-bottom: auto; margin-top: auto; }

/* Переключатель пути установки */
.paths { display: flex; gap: 8px; }
.paths button { flex: 1; padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); font-size: 14px; font-weight: 500; color: var(--muted); }
.paths button.on { border-color: var(--accent); color: var(--accent); background: var(--soft); font-weight: 600; }

/* Встроенное видео */
.video { position: relative; width: 100%; margin: 0 auto; border-radius: 14px; overflow: hidden; background: var(--ink); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.feat { margin: 8px 0 0; padding-left: 18px; font-size: 14px; color: var(--muted); display: flex; flex-direction: column; gap: 5px; }
.feat li::marker { color: var(--accent); }

/* Плашка стора (smart banner) и иконка-кнопка */
.smart { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 8px 10px; }
.smart .t b { font-size: 14px; }
.smart .t span { font-size: 12px; }
.smart .x { width: 26px; height: 26px; border-radius: 50%; color: var(--muted); font-size: 18px; display: grid; place-items: center; flex: 0 0 auto; }
.iconbtn { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--accent); }
.iconbtn svg { width: 22px; height: 22px; fill: currentColor; }

/* Статус сертификата */
.nuc.ok { color: var(--ok); font-weight: 600; }
.nuc.missing { color: var(--warn); font-weight: 600; }
.nuc.checking, .nuc.unknown { color: var(--muted); }
.card.warn { border-color: var(--warn); background: color-mix(in srgb, var(--warn) 8%, var(--card)); }

/* Кнопка «в набор» */
.iconbtn.set { width: 34px; height: 34px; border: 1px solid var(--line); background: var(--card); color: var(--muted); flex: 0 0 auto; }
.iconbtn.set svg { width: 18px; height: 18px; }
.iconbtn.set.on { background: var(--soft); color: var(--accent); border-color: var(--accent); }
button.card.link-row { width: 100%; font: inherit; color: inherit; }

/* Чипы состояния, док, компактные списки */
.chip-state { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; }
.chip-state.ok { color: var(--ok); } .chip-state.wait { color: var(--warn); }
.chip-state svg { width: 12px; height: 12px; fill: currentColor; }
.dock { flex: 0 0 auto; display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(12,18,32,.08); max-width: 640px; width: 100%; margin: 0 auto; }
.dock .t b { font-size: 14px; } .dock .t span { font-size: 12px; }
.list.tight { gap: 6px; }
.list.tight .row { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.list.tight .row:last-child { border-bottom: 0; }
details.alt { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 8px; }
details.alt summary { list-style: none; cursor: pointer; font-size: 13.5px; color: var(--muted); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--muted) 40%, transparent); }
details.alt summary::-webkit-details-marker { display: none; }
details.alt .body { padding-top: 12px; }
button.card.row { width: 100%; font: inherit; color: inherit; }

/* Состояние «На экране» — статус, не действие */
.state-pill { display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto; padding: 8px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); }
.state-pill svg { width: 14px; height: 14px; fill: currentColor; }
.installed-card { display: flex; gap: 12px; align-items: flex-start; text-align: left; padding: 12px 14px; border-radius: var(--radius-s); background: color-mix(in srgb, var(--ok) 10%, var(--card)); border: 1px solid color-mix(in srgb, var(--ok) 35%, transparent); }
.installed-card .ic { width: 36px; height: 36px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; flex: 0 0 auto; }
.installed-card .ic svg { width: 18px; height: 18px; fill: currentColor; }
.installed-card b { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
.installed-card span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }

/* Обзор изменений набора */
.diff-h { display: flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.diff-h span { font-size: 12px; background: var(--soft); color: var(--accent); border-radius: 999px; padding: 1px 8px; font-weight: 700; }
.diff-h.add { color: var(--ok); } .diff-h.add span { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.diff-h.del { color: var(--warn); } .diff-h.del span { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.diff-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; white-space: nowrap; flex: 0 0 auto; }
.diff-tag svg { width: 12px; height: 12px; fill: currentColor; }
.row.diff.add .diff-tag { color: var(--ok); }
.row.diff.keep .diff-tag { color: var(--muted); }
.row.diff.del .diff-tag { color: var(--warn); }
.row.diff.del .icon, .row.diff.del .t { opacity: .6; }
