/* ==========================================================================
   Site redesign (2026-11) - flat, crisp, solid surfaces.
   Loaded AFTER styles.css / premium.css / dashboard.css so it wins on equal
   specificity. No blur, no glass, no gradient washes, no glow: 1px borders,
   one accent colour, strong type. Light + dark both covered via tokens.
   ========================================================================== */

:root {
  --bg: #ffffff;
  --panel: #ffffff;
  --panel-soft: #f6f7f9;
  --alt: #f6f7f9;
  --text: #0b1220;
  --muted: #566074;
  --accent: #1f5eff;
  --accent-dark: #1747c9;
  --accent-soft: #eaf0ff;
  --border: #e2e6ec;
  --border-strong: #cfd5df;
  --mint: #eef7f3;
  --violet: #f1eefb;
  --peach: #fbf1e8;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-card: 0 1px 2px rgba(11, 18, 32, 0.05);
  --shadow-pop: 0 1px 2px rgba(11, 18, 32, 0.06), 0 16px 32px -16px rgba(11, 18, 32, 0.22);
  --term: #0b1220;
  --term-text: #d7e3ff;
  --page-w: 1120px;
}
html[data-theme="dark"] {
  --bg: #0a0e16;
  --panel: #101623;
  --panel-soft: #131a29;
  --alt: #0d121d;
  --text: #e9edf5;
  --muted: #9aa5ba;
  --accent: #6b97ff;
  --accent-dark: #4f7df0;
  --accent-soft: #15233f;
  --border: #212b3d;
  --border-strong: #2f3b52;
  --mint: #10231d;
  --violet: #1a1730;
  --peach: #2a1d13;
  --shadow-card: none;
  --shadow-pop: 0 16px 32px -16px rgba(0, 0, 0, 0.6);
  --term: #070a11;
  --term-text: #cfe0ff;
}

/* ---- global: kill every glass / gradient / glow effect ------------------ */
html body,
html:not(.x) body {
  background: var(--bg) !important;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html *,
html *::before,
html *::after {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
html :is(.card, .step-card, .download-card, .trial-card, .hash-box, .review-form,
  .review-public-card, .result-box__content, .pdf-recap-card, .legal-card, .doc-panel,
  .cli-install-card, .cli-platform-card, .section--soft, .cta-card, .pq-site-banner,
  .wizard-card, .file-analyzer, .settings-card, .auth-card) {
  animation: none !important;
}
html :is(.section--soft) {
  background: transparent !important;
  border-radius: 0;
  margin: 0 auto;
  padding: 72px 24px;
}
.liquid-toggle, #liquidGlassPref, label[for="liquidGlassPref"] { display: none !important; }

/* ---- typography ---------------------------------------------------------- */
h1, h2, h3, h4 { letter-spacing: -0.02em; color: var(--text); text-wrap: balance; }
h1 { font-weight: 750; }
h2 { font-weight: 700; }
.eyebrow, .section__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 14px;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 650;
  text-decoration: none;
}
.text-link svg { width: 16px; height: 16px; flex: none; transition: transform .15s ease; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.text-link:hover svg { transform: translateX(2px); }

/* ---- buttons ------------------------------------------------------------- */
html .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: 0;
  box-shadow: none;
  transform: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
html .btn:hover { transform: none; box-shadow: none; }
html .btn svg { width: 18px; height: 18px; flex: none; }
html .btn--primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  overflow: visible;
}
html .btn--primary::after { display: none; }
html .btn--primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); box-shadow: none; }
html[data-theme="dark"] .btn--primary { color: #07101f; }
html .btn--secondary {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border-strong);
}
html .btn--secondary:hover { border-color: var(--text); background: var(--panel); }
html .btn--outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
html .btn--outline:hover { background: var(--accent-soft); }
html .btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid transparent;
}
html .btn--ghost:hover { background: var(--alt); }
html .btn--lg { padding: 13px 22px; font-size: 1rem; border-radius: 10px; }
html .btn--disabled, html .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.topbar .btn, .hero__actions .btn, .dl-card__actions .btn, .apps-band .btn,
.dl-other .btn, .dl-recommended .btn { margin-top: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
html .hero-dash-btn { display: none; }
body.is-logged-in .hero-dash-btn { display: inline-flex; }

/* ---- header -------------------------------------------------------------- */
html .topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  min-height: 64px;
  margin: 0;
  padding: 0 clamp(16px, 4vw, 40px);
  gap: 28px;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: var(--bg);
  box-shadow: none;
  overflow: visible;
  transform: none;
  will-change: auto;
  isolation: auto;
}
html .topbar::before, html .topbar::after { display: none !important; }
html .topbar > * { position: static; }
.topbar .brand { font-weight: 750; letter-spacing: -0.01em; font-size: 1.05rem; text-decoration: none; }
.topbar__nav { display: flex; align-items: center; gap: 4px; margin-right: auto; }
.topbar__nav a {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 600;
  text-decoration: none;
}
.topbar__nav a:hover { color: var(--text); background: var(--alt); }
.topbar__actions { display: flex; align-items: center; gap: 10px; }
.topbar__auth { display: flex; align-items: center; gap: 8px; }
.topbar__prefs { display: flex; gap: 6px; }
.topbar-pref { display: block; }
.topbar-pref > span { display: none; }
.topbar-pref select, .topbar .topbar-pref select {
  min-height: 36px;
  padding: 6px 28px 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background-color: var(--panel);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: none;
}
.topbar-dash-btn { display: none !important; }
body.is-logged-in .topbar-dash-btn { display: inline-flex !important; }
.topbar .profile-pill, .topbar .menu-btn {
  box-shadow: none;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.topbar .menu-btn:hover { background: var(--alt); }
.topbar-download-btn { white-space: nowrap; }

/* ---- hero ---------------------------------------------------------------- */
html .hero {
  display: block;
  padding: clamp(48px, 8vw, 104px) clamp(16px, 4vw, 40px) clamp(40px, 6vw, 72px);
  background: var(--bg);
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  max-width: var(--page-w);
  margin: 0 auto;
}
html .hero__content { max-width: none; text-align: left; }
html .hero h1 {
  font-size: clamp(2.5rem, 5.4vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: 0 0 22px;
}
html .hero__text {
  max-width: 34rem;
  margin: 0 0 30px;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--muted);
}
html .hero__actions { justify-content: flex-start; gap: 12px; margin-bottom: 18px; }
.hero__note { margin: 0 0 22px; color: var(--muted); font-size: 0.9rem; }
.hero__link { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-weight: 650; text-decoration: none; border-bottom: 1px solid var(--border-strong); padding-bottom: 2px; }
.hero__link svg { width: 16px; height: 16px; }
.hero__link:hover { border-color: var(--text); }

.vault-demo {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: var(--shadow-pop);
}
.vault-demo__row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel-soft);
}
.vault-demo__row strong { display: block; font-size: 1rem; }
.vault-demo__row small { color: var(--muted); font-size: 0.85rem; }
.vault-demo__row--vault { background: var(--accent-soft); border-color: transparent; }
.vault-demo__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 10px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--muted);
}
.vault-demo__icon svg { width: 22px; height: 22px; }
.vault-demo__icon--accent { background: var(--accent); border-color: var(--accent); color: #fff; }
html[data-theme="dark"] .vault-demo__icon--accent { color: #07101f; }
.vault-demo__step {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 12px 14px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}
.vault-demo__step svg { width: 20px; height: 20px; color: var(--accent); }
.vault-demo__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.vault-demo__tags li {
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--muted);
  background: var(--panel);
}

/* ---- trust strip --------------------------------------------------------- */
.trust-strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg); }
.trust-strip__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: var(--page-w);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.trust-strip__list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 24px;
  border-left: 1px solid var(--border);
}
.trust-strip__list li:first-child { border-left: 0; }
.trust-strip__icon { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.trust-strip__icon svg { width: 20px; height: 20px; }
.trust-strip strong { display: block; font-size: 0.98rem; }
.trust-strip small { display: block; color: var(--muted); font-size: 0.84rem; line-height: 1.35; }

/* ---- sections ------------------------------------------------------------ */
html .section {
  max-width: var(--page-w);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) clamp(16px, 4vw, 24px);
}
html .section--alt {
  background: var(--alt);
  box-shadow: 0 0 0 100vmax var(--alt);
  clip-path: inset(0 -100vmax);
}
html .section__header { text-align: left; max-width: 44rem; margin: 0 0 40px; }
html .section__header h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.1; letter-spacing: -0.03em; }
.section__more { margin: 32px 0 0; }

.what-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin: 0; padding: 0; list-style: none; }
.what-steps li { padding-top: 22px; border-top: 2px solid var(--text); }
.what-steps__n { display: block; margin-bottom: 14px; font-size: 0.85rem; font-weight: 700; color: var(--accent); letter-spacing: 0.1em; }
.what-steps__n::before { content: "0"; }
.what-steps h3 { margin: 0 0 10px; font-size: 1.3rem; }
.what-steps p { margin: 0; color: var(--muted); line-height: 1.6; }

.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.why-card { display: flex; flex-direction: column; gap: 12px; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow-card); }
.why-card__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.why-card__icon svg { width: 22px; height: 22px; }
.why-card h3 { margin: 6px 0 0; font-size: 1.2rem; }
.why-card p { margin: 0 0 auto; color: var(--muted); line-height: 1.6; }
.why-card .text-link { margin-top: 10px; }
.security-status-badge__count { margin-left: 2px; padding: 1px 7px; border-radius: 999px; background: var(--accent-soft); font-size: 0.78rem; font-variant-numeric: tabular-nums; }

.apps-band {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 40px;
  align-items: center;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel);
}
.apps-band h2 { margin: 0 0 14px; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.1; letter-spacing: -0.03em; }
.apps-band p { color: var(--muted); line-height: 1.6; margin: 0 0 24px; }
.apps-band .section__eyebrow { margin-bottom: 14px; }
.apps-band__chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.apps-band__chips li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--panel-soft); font-weight: 650; font-size: 0.95rem; }
.apps-band__chips img, .apps-band__chips svg { width: 22px; height: 22px; object-fit: contain; flex: none; }

.explore-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.explore-card { display: flex; flex-direction: column; gap: 6px; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); text-decoration: none; transition: border-color .15s ease; }
.explore-card:hover { border-color: var(--text); }
.explore-card h3 { margin: 0; font-size: 1.1rem; }
.explore-card p { margin: 0 0 14px; color: var(--muted); font-size: 0.92rem; line-height: 1.5; }
.explore-card__go { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; color: var(--accent); font-weight: 650; font-size: 0.92rem; }
.explore-card__go svg { width: 16px; height: 16px; }

/* existing home sections that stay: trial teaser + final CTA */
#trialTeaser .hero__text { margin-left: 0; margin-right: 0; }
.trial-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
html .trial-card, html .step-card, html .cta-card, html .download-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel) !important;
  box-shadow: var(--shadow-card) !important;
}
html .cta-card {
  background: var(--text) !important;
  border-color: var(--text);
  color: var(--bg);
  text-align: left;
  padding: clamp(28px, 5vw, 56px);
}
html .cta-card h2, html .cta-card p { color: var(--bg); }
html .cta-card p { opacity: .8; }
html .cta-card .btn--primary { background: var(--bg); color: var(--text); border-color: var(--bg); }
html .cta-card .btn--secondary { background: transparent; color: var(--bg); border-color: rgba(255,255,255,.35); }
html[data-theme="dark"] .cta-card { background: var(--panel-soft) !important; border-color: var(--border-strong); }
html[data-theme="dark"] .cta-card h2, html[data-theme="dark"] .cta-card p { color: var(--text); }
html[data-theme="dark"] .cta-card .btn--primary { background: var(--accent); color: #07101f; border-color: var(--accent); }
html[data-theme="dark"] .cta-card .btn--secondary { color: var(--text); border-color: var(--border-strong); }
html .cta-card .button-row { justify-content: flex-start; }

/* ---- download page ------------------------------------------------------- */
.dl-hero { max-width: 46rem; margin-bottom: 40px; }
.dl-hero h2 { margin: 0 0 14px; font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.05; letter-spacing: -0.035em; }
.dl-hero__text { margin: 0 0 24px; font-size: 1.1rem; color: var(--muted); line-height: 1.6; }
.dl-recommended { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.dl-recommended[hidden] { display: none; }
.dl-recommended__label { color: var(--muted); font-size: 0.92rem; font-weight: 600; }

.dl-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.dl-platforms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dl-card { display: flex; flex-direction: column; gap: 18px; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); scroll-margin-top: 88px; }
.dl-card.is-recommended { order: -1; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.dl-card__head { display: flex; gap: 14px; align-items: flex-start; }
.dl-card__logo { width: 40px; height: 40px; object-fit: contain; flex: none; }
.dl-card h3 { margin: 0 0 4px; font-size: 1.15rem; }
.dl-card__head p { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.45; }
.dl-card__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dl-card__help { font-size: 0.9rem; }
.dl-card__meta { margin: 0; color: var(--muted); font-size: 0.85rem; }

.dl-qr { position: sticky; top: 88px; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); }
.dl-qr h3 { margin: 0 0 8px; font-size: 1.15rem; }
.dl-qr > p { margin: 0 0 18px; color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
.dl-qr__codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dl-qr figure { margin: 0; text-align: center; }
.dl-qr img { display: block; width: 100%; height: auto; aspect-ratio: 1; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; }
.dl-qr figcaption { margin-top: 8px; color: var(--muted); font-size: 0.8rem; font-weight: 600; }

.dl-cli {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 32px;
  margin-top: 24px;
  padding: clamp(24px, 4vw, 40px);
  border-radius: 16px;
  background: var(--term);
  color: var(--term-text);
}
.dl-cli h3 { margin: 0 0 8px; color: #fff; font-size: 1.4rem; }
.dl-cli p { margin: 0 0 16px; color: #a9b8d6; line-height: 1.55; }
.dl-cli .text-link { color: #8fb0ff; }
.dl-cli__cmds { display: grid; gap: 18px; min-width: 0; }
.dl-cmd { display: grid; gap: 8px; min-width: 0; }
.dl-cmd__label { color: #c9d6f2; font-size: 0.85rem; font-weight: 650; }
.dl-cmd small { color: #8394b5; font-size: 0.8rem; }
html .dl-cmd .copy-code {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .04);
}
html .dl-cmd .copy-code code {
  display: block;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-all;
  overflow: visible;
  font-family: ui-monospace, 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #d7e3ff;
}
html .dl-cmd .copy-code .copy-code__button {
  position: static;
  align-self: flex-end;
  min-width: 72px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 6px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 650;
  transform: none;
}
html .dl-cmd .copy-code .copy-code__button:hover { background: rgba(255, 255, 255, .16); }
html .dl-cmd .copy-code .copy-code__button.is-copied { background: #14532d; border-color: #22c55e; }

.dl-other { margin-top: 40px; }
.dl-other > h3 { margin: 0 0 16px; font-size: 1.2rem; }
.dl-other__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dl-other__card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); }
.dl-other__card h4 { margin: 0; font-size: 1.05rem; }
.dl-other__card p { margin: 0 0 12px; color: var(--muted); font-size: 0.92rem; line-height: 1.5; }
.dl-other__card .btn { margin-top: auto; }
html .download-section__note { margin: 28px 0 0; color: var(--muted); font-size: 0.88rem; text-align: left; font-weight: 500; }

/* ---- drawers, footer, misc ---------------------------------------------- */
html .nav-drawer__panel, html .profile-drawer__panel { background: var(--panel); border-left: 1px solid var(--border); box-shadow: -16px 0 40px -24px rgba(11, 18, 32, .4); }
html .site-footer { background: var(--alt); border-top: 1px solid var(--border); box-shadow: none; }
html .site-footer a { text-decoration-thickness: 1px; }
html .quick-tools__toggle { box-shadow: none; border-radius: 12px; }

/* ---- responsive ---------------------------------------------------------- */
@media (max-width: 1000px) {
  .topbar__nav { display: none; }
  .topbar__actions { margin-left: auto; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 520px; }
  .trust-strip__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-strip__list li:nth-child(3) { border-left: 0; }
  .trust-strip__list li:nth-child(n+3) { border-top: 1px solid var(--border); }
  .why-grid, .what-steps { grid-template-columns: 1fr; }
  .explore-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .apps-band { grid-template-columns: 1fr; }
  .dl-layout { grid-template-columns: 1fr; }
  .dl-qr { position: static; }
  .dl-qr__codes { max-width: 340px; }
  .dl-cli { grid-template-columns: 1fr; }
  .trial-cards { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  html .topbar { gap: 10px; min-height: 58px; }
  .topbar__auth .btn--ghost { display: none; }
  .topbar-download-btn { padding: 8px 12px; font-size: 0.88rem; }
  .topbar-download-btn svg { display: none; }
  .topbar .brand span:not(.brand__logo) { font-size: 0.98rem; }
  .dl-platforms, .dl-other__grid, .explore-grid { grid-template-columns: 1fr; }
  html .hero__actions .btn { flex: 1 1 100%; }
  .apps-band__chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .topbar .brand span:not(.brand__logo) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html *, html *::before, html *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---- header controls: beat the legacy `.topbar .btn` glass rule ----------- */
html .topbar .btn, html .topbar .menu-btn, html .topbar .profile-pill, html .topbar .topbar-pref select { box-shadow: none; }
html .topbar .btn--primary, html[data-theme="dark"] .topbar .btn--primary { background-color: var(--accent); border-color: var(--accent); color: #fff; }
html[data-theme="dark"] .topbar .btn--primary { color: #07101f; }
html .topbar .btn--primary:hover { background-color: var(--accent-dark); border-color: var(--accent-dark); }
html .topbar .btn--outline, html[data-theme="dark"] .topbar .btn--outline { background-color: transparent; border-color: var(--accent); color: var(--accent); }
html .topbar .btn--outline:hover { background-color: var(--accent-soft); }
html .topbar .btn--ghost, html[data-theme="dark"] .topbar .btn--ghost { background-color: transparent; border-color: transparent; color: var(--text); }
html .topbar .btn--ghost:hover { background-color: var(--alt); }
html .topbar .menu-btn, html .topbar .profile-pill, html .topbar .topbar-pref select,
html[data-theme="dark"] .topbar .menu-btn, html[data-theme="dark"] .topbar .profile-pill, html[data-theme="dark"] .topbar .topbar-pref select {
  background-color: var(--panel);
  border-color: var(--border);
  color: var(--text);
}

@media (max-width: 560px) {
  .trust-strip__list { grid-template-columns: 1fr; }
  .trust-strip__list li { border-left: 0; padding: 16px 20px; }
  .trust-strip__list li + li { border-top: 1px solid var(--border); }
  .trust-strip__list li:nth-child(3) { border-top: 1px solid var(--border); }
}

/* "How it works" showcase: remove the blue glow + heavy shadow */
.how-halo { display: none !important; }
html .how-showcase__frame { box-shadow: none !important; border-radius: 16px; }

/* home: video + mini FAQ */
.video-frame { position: relative; max-width: 900px; aspect-ratio: 16 / 9; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mini-faq { display: grid; gap: 10px; max-width: 820px; }
.mini-faq details { border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); padding: 0 20px; }
.mini-faq summary { cursor: pointer; padding: 18px 0; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.mini-faq summary::-webkit-details-marker { display: none; }
.mini-faq summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; }
.mini-faq details[open] summary::after { content: "\2212"; }
.mini-faq p { margin: 0 0 18px; color: var(--muted); line-height: 1.6; }

#dl-linux .dl-card__logo { width: 48px; height: 48px; margin: -4px -4px -4px -4px; }
.dl-card__head p { min-height: 2.9em; }
@media (max-width: 720px) { .dl-card__head p { min-height: 0; } }

/* splash: skip when already seen this session (class set by the early head script) */
.splash-seen #splashScreen { display: none !important; }

/* hero demo: gentle looping "encrypting" animation */
.vault-demo__step { position: relative; }
.vault-demo__bar { display: block; flex: 1 1 60px; max-width: 120px; height: 4px; border-radius: 999px; background: var(--border); overflow: hidden; order: 3; }
.vault-demo__bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: inherit; animation: demoBar 5.5s ease-in-out infinite; }
.vault-demo__row--vault { animation: demoSeal 5.5s ease-in-out infinite; }
.vault-demo__tags li { animation: demoTag 5.5s ease-in-out infinite; }
.vault-demo__tags li:nth-child(2) { animation-delay: .15s; }
.vault-demo__tags li:nth-child(3) { animation-delay: .3s; }
@keyframes demoBar { 0% { width: 0; } 45% { width: 100%; } 100% { width: 100%; } }
@keyframes demoSeal { 0%, 8% { opacity: .35; } 48%, 100% { opacity: 1; } }
@keyframes demoTag { 0%, 45% { opacity: .35; transform: translateY(3px); } 60%, 100% { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .vault-demo__bar i { width: 100% !important; }
  .vault-demo__row--vault, .vault-demo__tags li { opacity: 1 !important; transform: none !important; }
}

/* footer: calm, compact, full-bleed */
html .site-footer {
  max-width: none;
  margin: 0;
  padding: 56px max(24px, calc((100% - var(--page-w)) / 2)) 28px;
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
  background: var(--alt);
  box-shadow: none;
}
html .site-footer__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin: 28px 0; }
html .site-footer__col h3 { margin: 0 0 10px; font-size: 0.78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text); }
html .site-footer__col p { font-size: 0.88rem; line-height: 1.55; margin: 0 0 8px; }
.footer-more { margin: 8px 0 24px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.footer-more > summary { cursor: pointer; padding: 14px 0; font-weight: 650; font-size: 0.92rem; list-style: none; display: flex; justify-content: space-between; }
.footer-more > summary::-webkit-details-marker { display: none; }
.footer-more > summary::after { content: "+"; color: var(--accent); font-size: 1.2rem; line-height: 1; }
.footer-more[open] > summary::after { content: "\2212"; }
.footer-more .site-footer__col { padding: 6px 0 18px; }
html .site-footer__contacts { border: 0; background: transparent; padding: 0; box-shadow: none; margin-bottom: 20px; }
html .footer-contact { background: var(--panel); border: 1px solid var(--border); box-shadow: none; border-radius: var(--radius-sm); }
html .footer-trustpilot, html .footer-socials a { box-shadow: none !important; transform: none !important; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-sm); }
html .footer-trustpilot:hover { border-color: var(--text); }
html .footer-badges { gap: 10px; }
html .site-footer__rights { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--border); }
@media (max-width: 800px) { html .site-footer__grid { grid-template-columns: 1fr; } }
#trialTeaser { padding-bottom: 24px; }
#ctaBanner { padding-top: 24px; }

/* ---- login / sign-up page: open two-column layout, no giant frame ---------- */
html .account-page { align-items: flex-start; min-height: calc(100vh - 64px); padding: clamp(32px, 6vw, 72px) clamp(16px, 4vw, 40px) 72px; }
html .account-page__inner { position: relative; width: min(1040px, 100%); padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
html .account-page__back {
  display: inline-flex; align-items: center; gap: 6px; margin: 0 0 28px; padding: 6px 10px 6px 6px;
  border: 0; background: transparent; color: var(--muted); font-size: 0.92rem; font-weight: 600; box-shadow: none;
}
html .account-page__back::before { content: "\2190"; font-size: 1.1rem; line-height: 1; }
html .account-page__back:hover { background: var(--alt); color: var(--text); }
html .account-page__content { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 440px); gap: clamp(32px, 7vw, 96px); align-items: start; }
html .account-hero { padding-top: 12px; }
html .account-page__content h2 { margin: 0 0 14px; font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.06; letter-spacing: -0.035em; text-wrap: balance; }
html .account-page__content .account-hero > p:not(.section__eyebrow) { max-width: 30rem; font-size: 1.05rem; line-height: 1.6; }
.account-points { display: grid; gap: 14px; margin: 28px 0 0; padding: 0; list-style: none; }
.account-points li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); font-size: 0.95rem; line-height: 1.5; }
.account-points svg { flex: none; width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
body.is-logged-in .account-points { display: none; }
html .account-grid { display: block; margin: 0; }
body.is-logged-in html .account-grid, body.is-logged-in .account-grid { display: block; }
body.is-logged-in .account-page__content { grid-template-columns: 1fr; }

html .auth-card--floating, html .settings-card--floating {
  overflow: visible; padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--border); border-radius: 16px; background: var(--panel) !important; box-shadow: var(--shadow-pop) !important;
}
.auth-card--floating::before, .settings-card--floating::before { display: none !important; }
html .auth-card .card__header { margin-bottom: 18px; }
html .auth-card .card__header h3 { margin: 0 0 6px; font-size: 1.3rem; }
html .auth-card .card__header p { margin: 0; font-size: 0.92rem; line-height: 1.5; color: var(--muted); }
html .auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 0 0 20px; border-radius: 10px; background: var(--alt); }
html .auth-tab { padding: 9px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-weight: 650; font-size: 0.92rem; box-shadow: none; cursor: pointer; }
html .auth-tab.active { background: var(--panel); color: var(--text); box-shadow: 0 1px 2px rgba(11, 18, 32, .12); }
html .auth-form { display: grid; gap: 6px; }
html .auth-form .field-label { margin-top: 10px; font-size: 0.86rem; font-weight: 650; }
html .auth-card input[type="email"], html .auth-card input[type="password"], html .auth-card input[type="text"] {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--panel); color: var(--text); font-size: 1rem; box-shadow: none;
}
html .auth-card input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
html .auth-form__link { justify-self: end; border: 0; background: transparent; color: var(--accent); font-size: 0.86rem; font-weight: 600; padding: 2px 0; cursor: pointer; text-decoration: none; }
html .auth-form__link:hover { text-decoration: underline; }
html .auth-form .btn, html .auth-google { width: 100%; margin-top: 12px; min-height: 46px; }
html .auth-google { margin-top: 10px; }
html .auth-card .status { margin: 14px 0 0; padding: 0; background: transparent; color: var(--muted); font-size: 0.85rem; font-weight: 500; line-height: 1.5; }
html .auth-card .status:empty { display: none; }
@media (max-width: 860px) {
  html .account-page__content { grid-template-columns: 1fr; gap: 28px; }
  html .account-hero { padding-top: 0; }
  .account-points { margin-top: 20px; }
}
html .auth-card .card__header h3 { display: none; }

/* ---- installation help ----------------------------------------------------- */
.dl-help { margin-top: 56px; padding-top: 48px; border-top: 1px solid var(--border); scroll-margin-top: 80px; }
.dl-help h3 { margin: 0 0 12px; max-width: 40rem; font-size: clamp(1.5rem, 2.8vw, 2rem); line-height: 1.15; letter-spacing: -0.03em; }
.dl-help__intro { max-width: 46rem; margin: 0 0 28px; color: var(--muted); line-height: 1.6; }
.help-list { display: grid; gap: 10px; max-width: 860px; }
.help-item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); scroll-margin-top: 80px; }
.help-item > summary { display: flex; justify-content: space-between; gap: 16px; padding: 18px 20px; font-weight: 650; cursor: pointer; list-style: none; }
.help-item > summary::-webkit-details-marker { display: none; }
.help-item > summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; flex: none; }
.help-item[open] > summary::after { content: "\2212"; }
.help-item__body { padding: 0 20px 20px; }
.help-item ol { display: grid; gap: 14px; margin: 0; padding-left: 22px; color: var(--text); line-height: 1.55; }
.help-item ol li::marker { color: var(--accent); font-weight: 700; }
.help-item__note { margin: 16px 0 0; color: var(--muted); font-size: 0.88rem; line-height: 1.55; }
.help-item__links { margin: 14px 0 0; }
.dl-help__more { margin: 20px 0 0; }
html .help-item .copy-code { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--alt); color: var(--text); }
html .help-item .copy-code code { display: block; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-all; font-family: ui-monospace, 'SFMono-Regular', Consolas, Menlo, monospace; font-size: 0.86rem; line-height: 1.5; background: transparent; color: var(--text); }
html .help-item .copy-code .copy-code__button { position: static; align-self: flex-end; transform: none; min-width: 72px; padding: 6px 12px; border: 1px solid var(--border-strong); border-radius: 6px; background: var(--panel); color: var(--text); font-size: 0.8rem; font-weight: 650; }
html .help-item .copy-code .copy-code__button.is-copied { background: #dcfce7; border-color: #22c55e; color: #14532d; }
html .help-item .copy-code code { text-align: left; }

/* ==== phone polish ======================================================== */
/* closed drawers must not leak their shadow into the viewport edge */
html .nav-drawer__panel, html .profile-drawer__panel { box-shadow: none; }
html .nav-drawer.is-open .nav-drawer__panel, html .profile-drawer.is-open .profile-drawer__panel { box-shadow: -16px 0 40px -24px rgba(11, 18, 32, .4); }

/* floating helpers: calmer, flat, no bobbing/pulsing */
html #assistantMascotBtn { animation: none !important; background: var(--accent) !important; box-shadow: var(--shadow-pop); }
html #assistantMascotBtn::before { display: none !important; }
html #assistantSearchBtn { box-shadow: var(--shadow-card); }
.quick-tools__toggle { border-radius: 12px; border-color: var(--accent); box-shadow: var(--shadow-pop); }

/* cookie banner: same shape as the site, compact */
#cc-main { --cc-btn-border-radius: 8px; --cc-modal-border-radius: 14px; }
#cc-main .cm { box-shadow: 0 -8px 30px -12px rgba(11, 18, 32, .25); }

@media (max-width: 720px) {
  html #assistantMascotBtn { width: 48px; height: 48px; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); }
  html #assistantSearchBtn { display: none !important; }
  .quick-tools { top: auto; bottom: calc(14px + env(safe-area-inset-bottom)); left: 14px; transform: none; flex-direction: column-reverse; }
  .quick-tools__toggle { width: 44px; height: 44px; font-size: 1.6rem; }

  #cc-main .cm { width: 100% !important; max-width: 100% !important; left: 0 !important; right: 0 !important; bottom: 0 !important; margin: 0 !important; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)) !important; border-radius: 14px 14px 0 0 !important; }
  #cc-main .cm__body { padding: 0 !important; gap: 10px !important; }
  #cc-main .cm__texts { padding: 0 !important; }
  #cc-main .cm__title { font-size: 0.98rem !important; margin: 0 0 4px !important; }
  #cc-main .cm__desc { font-size: 0.78rem !important; line-height: 1.42 !important; }
  #cc-main .cm__btns { padding: 0 !important; margin: 0 !important; display: grid !important; gap: 8px !important; border: 0 !important; }
  #cc-main .cm__btn-group { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px !important; margin: 0 !important; }
  #cc-main .cm__btn-group + .cm__btn-group { grid-template-columns: 1fr; }
  #cc-main .cm__btn { min-height: 40px !important; padding: 8px 10px !important; font-size: 0.85rem !important; margin: 0 !important; }
  #cc-main .cm__btn--secondary:not(:first-child), #cc-main .cm__btn-group + .cm__btn-group .cm__btn { background: transparent !important; border-color: transparent !important; color: var(--accent) !important; min-height: 34px !important; }
}
@media (max-width: 720px) {
  #cc-main .cm__body { display: flex !important; flex-direction: column !important; align-items: stretch !important; padding: 0 !important; }
  #cc-main .cm__texts, #cc-main .cm__btns { width: 100% !important; max-width: none !important; flex: none !important; padding: 0 !important; margin: 0 !important; }
  #cc-main .cm__btn-group { width: 100% !important; }
  #cc-main .cm__btn { width: 100% !important; flex: 1 1 0 !important; }
  #cc-main .cm__title { font-size: 0.92rem !important; }
  #cc-main .cm__desc { font-size: 0.74rem !important; }
}
@media (max-width: 720px) {
  #cc-main .cm__title, #cc-main .cm__desc { padding: 0 !important; }
  #cc-main .cm__btns { justify-items: stretch !important; justify-content: stretch !important; }
  #cc-main .cm__btn-group { width: 100% !important; max-width: none !important; justify-self: stretch !important; }
}
@media (max-width:720px){#cc-main .cm__btn-group .cm__btn{height:44px !important;}}

/* ---- reviews CTA, VirusTotal strip ---------------------------------------- */
.reviews-cta__lead { margin: 10px 0 0; color: var(--muted); }
.reviews-cta { margin: 16px 0 0; }
.reviews-back { margin: 0 0 18px; }
.dl-trust { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: -12px 0 28px; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--alt); color: var(--muted); font-size: 0.9rem; }
.dl-trust svg { width: 20px; height: 20px; color: #16a34a; flex: none; }

/* ---- dashboard: keep exactly its previous look (original colours) ---------- */
#dashboardPage {
  --bg: #f4f7fb; --panel: #ffffff; --panel-soft: #f7f9fc; --text: #111827; --muted: #64748b;
  --accent: #2563eb; --accent-dark: #1d4ed8; --accent-soft: #e8f0ff; --border: #e2e8f0;
  --mint: #dff7f0; --violet: #efe7ff; --peach: #fff0e6;
}
html[data-theme="dark"] #dashboardPage {
  --bg: #070b12; --panel: #111827; --panel-soft: #172033; --text: #eef2ff; --muted: #a8b3c7;
  --accent: #60a5fa; --accent-dark: #2563eb; --accent-soft: #10284d; --border: #263348;
  --mint: #12372f; --violet: #241b3f; --peach: #3b2517;
}
#dashboardPage :is(h1, h2, h3, h4) { letter-spacing: normal; text-wrap: wrap; }
body:has(#dashboardPage:not(.is-hidden)) { background: linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%) !important; }
html[data-theme="dark"] body:has(#dashboardPage:not(.is-hidden)) { background: linear-gradient(180deg, #111827 0%, #070b12 100%) !important; }

/* ---- standalone pages: shared footer ------------------------------------- */
.standalone-footer { margin-top: 72px; padding: 56px max(24px, calc((100% - var(--page-w)) / 2)) 28px; border-top: 1px solid var(--border); background: var(--alt); color: var(--muted); }
.standalone-footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.standalone-footer__brand .brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 10px; color: var(--text); font-weight: 750; text-decoration: none; }
.standalone-footer__brand p { margin: 0; max-width: 20rem; font-size: 0.9rem; line-height: 1.55; }
.standalone-footer__col { display: flex; flex-direction: column; gap: 8px; }
.standalone-footer__col h2 { margin: 0 0 6px; font-size: 0.75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text); }
.standalone-footer__col a { color: var(--muted); font-size: 0.92rem; text-decoration: none; }
.standalone-footer__col a:hover { color: var(--text); text-decoration: underline; }
.standalone-footer__rights { margin: 32px 0 0; padding-top: 18px; border-top: 1px solid var(--border); font-size: 0.85rem; }
@media (max-width: 800px) { .standalone-footer__inner { grid-template-columns: 1fr 1fr; } .standalone-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .standalone-footer__inner { grid-template-columns: 1fr; } }

/* ---- news: skeleton while loading ------------------------------------------ */
.cyber-news__card--skeleton { min-height: 190px; display: grid; gap: 12px; align-content: start; }
.cyber-news__card--skeleton span { display: block; height: 14px; border-radius: 6px; background: linear-gradient(90deg, var(--alt) 25%, var(--border) 37%, var(--alt) 63%); background-size: 400% 100%; animation: newsShimmer 1.4s ease infinite; }
.cyber-news__card--skeleton span:nth-child(1) { width: 40%; }
.cyber-news__card--skeleton span:nth-child(2) { width: 90%; height: 20px; }
.cyber-news__card--skeleton span:nth-child(3) { width: 70%; }
@keyframes newsShimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.standalone-footer__cookie { margin: 24px 0 0; }
.standalone-footer__cookie button { border: 0; background: transparent; padding: 0; color: var(--accent); font: inherit; font-size: 0.88rem; font-weight: 600; cursor: pointer; }
.standalone-footer__cookie button:hover { text-decoration: underline; }
.standalone-footer__cookie + .standalone-footer__rights { margin-top: 14px; }
/* privacy / text-heavy pages: one comfortable reading column */
html .legal-grid { grid-template-columns: minmax(0, 760px) !important; justify-content: center; gap: 20px; }
html .docs-hub .legal-card { padding: 26px 28px; }
.docs-hub__footer-note:empty, .docs-hub__footer-note:has(> :empty) { display: none; }

/* ======================= Vault CLI page ======================= */
.cli2-page { min-height: calc(100vh - 64px); padding: clamp(28px, 5vw, 64px) clamp(16px, 4vw, 40px) 80px; }
.cli2-page.is-hidden { display: none; }
.cli2 { max-width: 1040px; margin: 0 auto; }
.cli2 .account-page__back { margin-bottom: 28px; }
.cli2-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding-bottom: clamp(36px, 6vw, 64px); }
.cli2-hero h1 { margin: 0 0 16px; font-size: clamp(2.2rem, 4.6vw, 3.4rem); line-height: 1.04; letter-spacing: -0.035em; }
.cli2-lead { margin: 0 0 26px; font-size: 1.08rem; line-height: 1.6; color: var(--muted); max-width: 32rem; }
.cli2-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.cli2-actions .btn { margin-top: 0; }
.cli2-pills { margin: 0; color: var(--muted); font-size: 0.88rem; }
.cli2-term { border-radius: 14px; background: var(--term); border: 1px solid rgba(255,255,255,.08); overflow: hidden; box-shadow: var(--shadow-pop); }
.cli2-term__bar { display: flex; gap: 7px; padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
.cli2-term__bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a4458; }
.cli2-term pre { margin: 0; padding: 18px 20px 22px; color: #e3ecff; font: 0.88rem/1.7 ui-monospace, 'SFMono-Regular', Consolas, Menlo, monospace; white-space: pre-wrap; word-break: break-word; }
.cli2-term .c { color: #7d8aa5; }
.cli2-term .p { color: #6b97ff; margin-right: 6px; }

.cli2-section { padding: clamp(32px, 5vw, 56px) 0 0; border-top: 1px solid var(--border); margin-top: clamp(28px, 4vw, 44px); scroll-margin-top: 80px; }
.cli2-section h2 { margin: 0 0 8px; font-size: clamp(1.5rem, 2.8vw, 2rem); letter-spacing: -0.03em; }
.cli2-sub { margin: 0 0 24px; color: var(--muted); max-width: 40rem; line-height: 1.55; }
.cli2-install { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cli2-card { display: flex; flex-direction: column; gap: 12px; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); min-width: 0; }
.cli2-card h3 { margin: 0; font-size: 1.02rem; }
.cli2-card small { color: var(--muted); font-size: 0.82rem; }
.cli2-cmd { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--term); min-width: 0; }
.cli2-cmd code { display: block; color: var(--term-text); font: 0.86rem/1.5 ui-monospace, 'SFMono-Regular', Consolas, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-all; }
.cli2-copy { align-self: flex-end; min-width: 68px; padding: 5px 12px; border: 1px solid rgba(255,255,255,.22); border-radius: 6px; background: rgba(255,255,255,.08); color: #fff; font-size: 0.78rem; font-weight: 650; cursor: pointer; }
.cli2-copy:hover { background: rgba(255,255,255,.18); }
.cli2-copy.is-copied { background: #14532d; border-color: #22c55e; }
.cli2-manual { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 18px 0 0; color: var(--muted); font-size: 0.92rem; }
.cli2-note { margin: 16px 0 0; padding: 12px 16px; border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius-sm); background: var(--alt); color: var(--muted); font-size: 0.88rem; line-height: 1.55; }

.cli2-steps { display: grid; gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; counter-reset: q; }
.cli2-steps li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: center; padding: 18px 20px 18px 64px; position: relative; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); counter-increment: q; }
.cli2-steps li::before { content: counter(q); position: absolute; left: 20px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: 0.9rem; }
html[data-theme="dark"] .cli2-steps li::before { color: #07101f; }
.cli2-steps h3 { margin: 0 0 3px; font-size: 1.02rem; }
.cli2-steps p { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.5; }

.cli2-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; position: sticky; top: 64px; z-index: 5; padding: 10px 0; background: var(--bg); }
.cli2-tabs a { padding: 7px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--panel); color: var(--text); font-size: 0.86rem; font-weight: 600; text-decoration: none; }
.cli2-tabs a:hover { border-color: var(--text); }
.cli2-group { margin-top: 28px; scroll-margin-top: 130px; }
.cli2-group h3 { margin: 0 0 12px; font-size: 1.1rem; }
.cli2-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cli2-item { display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); min-width: 0; }
.cli2-item p { margin: 0; font-weight: 600; font-size: 0.93rem; }
.cli2-guide { margin: 36px 0 0; display: flex; align-items: center; gap: 6px; }
.cli2-guide svg { width: 16px; height: 16px; color: var(--accent); }

@media (max-width: 860px) {
  .cli2-hero { grid-template-columns: 1fr; }
  .cli2-install, .cli2-list { grid-template-columns: 1fr; }
  .cli2-steps li { grid-template-columns: 1fr; gap: 12px; padding-left: 60px; }
  .cli2-tabs { top: 58px; }
}
.cli2-cmd { flex-direction: row; align-items: center; gap: 12px; }
.cli2-cmd code { flex: 1 1 auto; min-width: 0; }
.cli2-copy { align-self: center; flex: none; }

/* ==== touch devices: comfortable tap targets (>= ~40px) ==================== */
@media (pointer: coarse), (hover: none) {
  .text-link, .hero__link, .auth-form__link, .dl-card__help, .help-item__links a, .dl-trust a,
  .standalone-footer__col a, .site-footer a, .cli2-manual a, .cli2-guide a, .reviews-back a,
  .cyber-news__card-more, .cyber-news__cookie-link, .standalone-footer__cookie button, .news-page__back,
  .account-page__back, .footer-more > summary { display: inline-flex; align-items: center; min-height: 40px; }
  .standalone-footer__col a, .site-footer__col a { min-height: 36px; }
  .cli2-copy, .copy-code__button, .help-item .copy-code .copy-code__button { min-height: 38px; padding: 8px 14px; }
  .mini-faq summary, .help-item > summary, #faq summary, .footer-more > summary { min-height: 48px; align-items: center; }
  .footer-more > summary { display: flex; }
  .topbar-pref select, .topbar .menu-btn { min-height: 40px; }
  .auth-tab { min-height: 42px; }
  input[type="checkbox"], input[type="radio"] { width: 22px; height: 22px; }
}
@media (pointer: coarse), (hover: none) {
  .how-final-a, .not-found-page__cookie-link { display: inline-flex; align-items: center; min-height: 40px; }
}

/* ==== standalone pages (docs/news/...) on phones: flat, non-overflowing header ==== */
@media (max-width: 720px) {
  html .topbar.news-page__topbar {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    width: 100%;
    max-width: 100%;
    top: 0;
    margin: 0;
    padding: 6px 12px;
    gap: 8px;
    border-radius: 0;
  }
  .news-page .topbar .brand { flex: 0 0 auto; min-width: 0; }
  .news-page .topbar__actions { flex: 1 1 auto; min-width: 0; justify-content: flex-end; gap: 6px; flex-wrap: nowrap; }
  .news-page .topbar__prefs { display: flex; gap: 6px; min-width: 0; }
  .news-page .topbar-pref { min-width: 0; }
  .news-page .topbar-pref select, .news-page .topbar .topbar-pref select {
    max-width: 104px; min-height: 38px; padding: 6px 22px 6px 8px; font-size: 0.8rem; text-overflow: ellipsis;
  }
  .news-page .topbar-download-btn { display: none; }
  .news-page__content { width: calc(100% - 32px); margin: 28px auto 48px; }
  html .docs-hub .legal-card { padding: 18px 16px; }
  .docs-hub__header { margin-bottom: 28px; }
  .docs-guide__section, .docs-guide__section * { overflow-wrap: anywhere; }
}
@media (max-width: 380px) {
  .news-page .topbar-pref select, .news-page .topbar .topbar-pref select { max-width: 86px; }
}

/* ======================= "How it works" redesign ======================= */
/* 1. the three steps: same flat, numbered look as the home explainer */
html #how .steps-grid { gap: 32px; margin-bottom: clamp(40px, 6vw, 72px); }
html #how .step-card { padding: 22px 0 0; border: 0; border-top: 2px solid var(--text); border-radius: 0; background: transparent; box-shadow: none; }
html #how .step-card__number { margin-bottom: 14px; font-size: 0.85rem; letter-spacing: 0.1em; }
html #how .step-card h3 { margin: 0 0 10px; font-size: 1.3rem; }
html #how .step-card p { line-height: 1.6; }

/* 2. showcase: animation on the left, "why" + CLI stacked on the right.
      (The side panels repeated the steps above and had spinning logos: dropped.) */
html .how-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  grid-auto-rows: auto;
  align-content: start;
  gap: 20px clamp(24px, 4vw, 48px);
  max-width: 1080px;
  margin: 0 auto;
}
html .how-side { display: contents; }
html .how-side__mark, html .how-side--left > :nth-child(2), html .how-side--left .how-side__cta { display: none; }
html .how-showcase__frame {
  grid-column: 1; grid-row: 1 / span 4;
  flex: none; width: 100%; max-width: none; margin: 0;
  align-self: start;
  border-radius: var(--radius);
}
html .how-side--left > .how-side__block,
html .how-side--right > .how-side__block,
html .how-side--right > .how-side__cta { grid-column: 2; min-width: 0; }

html .how-side__block h4 { margin: 0 0 10px; font-size: 0.74rem; letter-spacing: 0.16em; color: var(--accent); }
html .how-side__block hr { display: none; }

/* why: ruled list */
html .how-feat { margin: 0; padding: 14px 0; border-top: 1px solid var(--border); }
html .how-feat:last-child { border-bottom: 1px solid var(--border); }
html .how-feat b { margin-bottom: 3px; font-size: 1.02rem; }
html .how-feat span { font-size: 0.92rem; line-height: 1.5; }

/* CLI: one dark terminal card */
html .how-side--right > .how-side__block { background: var(--term, #0b1220); border-radius: var(--radius-sm, 10px); padding: 16px 18px; color: var(--term-text, #e3ecff); }
html .how-side--right > .how-side__block + .how-side__block { margin-top: -12px; border-top-left-radius: 0; border-top-right-radius: 0; padding-top: 0; }
html .how-side--right > .how-side__block:nth-child(2) { border-bottom-left-radius: 0; border-bottom-right-radius: 0; padding-bottom: 6px; }
html .how-side--right .how-side__block h4 { color: #7d8aa5; }
html .how-install { border: 0; padding: 0; background: transparent; font-size: 0.82rem; line-height: 1.5; color: var(--term-text, #e3ecff); }
html .how-install small { color: #7d8aa5; }
html .how-cmd { margin: 0 0 12px; }
html .how-cmd .how-l { font-size: 0.88rem; color: var(--term-text, #e3ecff); overflow-wrap: anywhere; }
html .how-cmd .how-d { font-size: 0.8rem; color: #8b97b0; margin-top: 2px; }
html .how-prompt { color: #6b97ff; }
html .how-arg { color: #9fb0d0; }
html .how-side--right .how-side__cta { justify-self: start; align-self: start; margin-top: 4px; padding: 0; border: 0; background: none; color: var(--accent); font-size: 0.95rem; font-weight: 650; }
html .how-side--right .how-side__cta::after { content: " →"; }
html .how-side--right .how-side__cta:hover { text-decoration: underline; background: none; }

@media (max-width: 900px) {
  html .how-showcase { grid-template-columns: minmax(0, 1fr); }
  html .how-showcase__frame { grid-column: 1; grid-row: auto; max-width: 520px; margin: 0 auto; }
  html .how-side--left > .how-side__block,
  html .how-side--right > .how-side__block,
  html .how-side--right > .how-side__cta { grid-column: 1; }
}
@media (max-width: 720px) {
  html #how .steps-grid { grid-template-columns: 1fr; gap: 24px; }
}
html #how .step-card { border-width: 2px 0 0 !important; border-color: var(--text) !important; box-shadow: none !important; background: transparent !important; }
html .how-side--right > .how-side__block + .how-side__block { margin-top: -20px; }
html .how-showcase__frame { position: sticky; top: 84px; }
@media (max-width: 900px) { html .how-showcase__frame { position: relative; top: 0; order: -1; } }

/* ==== header: never wrap/overlap (esp. when logged in) ==== */
html .topbar { gap: 20px; flex-wrap: nowrap; }
html .topbar .brand { flex: none; white-space: nowrap; }
html .topbar .brand > span:not(.brand__logo) { white-space: nowrap; }
.topbar__nav { flex: 1 1 auto; min-width: 0; margin-right: 0; }
.topbar__nav a { white-space: nowrap; }
.topbar__actions { flex: none; flex-wrap: nowrap; margin-left: auto; }
.topbar__actions > * { flex: none; }
.topbar-download-btn, .topbar-dash-btn { white-space: nowrap; }
/* logged in: avatar-only profile; language/theme stay in the header (see "always-visible preferences" below) */
/* full account name next to the avatar; collapses to avatar-only on phones.
   Logged-in users also lose the text nav on mid-size screens to make room. */
body.is-logged-in .topbar .profile-pill { max-width: 240px; padding: 5px 16px 5px 5px; gap: 10px; }
body.is-logged-in .topbar .profile-pill #profileLabel { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: none; }
body.is-logged-in .topbar .profile-pill #profileInitials { width: 32px; height: 32px; flex: none; }
@media (max-width: 1320px) { body.is-logged-in .topbar__nav { display: none; } }
@media (max-width: 720px) {
  body.is-logged-in .topbar .profile-pill { padding: 4px; gap: 0; max-width: none; }
  body.is-logged-in .topbar .profile-pill #profileLabel { display: none; }
}
@media (max-width: 1100px) { .topbar__nav { display: none; } }
@media (max-width: 560px) {
  body.is-logged-in .topbar-download-btn { display: none; }
  html .topbar { gap: 8px; }
}

/* ==== always-visible preferences: language + appearance live in the header on every page and screen size ==== */
html .topbar .topbar__prefs { display: flex !important; align-items: center; gap: 6px; flex: none; order: 0; width: auto; }
html .topbar .topbar-pref { display: block; margin: 0; min-width: 0; }
html .topbar .topbar-pref select { min-width: 0; width: auto; cursor: pointer; }
@media (max-width: 1240px) {
  html .topbar .topbar-pref select { min-height: 36px; padding: 6px 24px 6px 9px; font-size: 0.82rem; }
}
@media (max-width: 720px) {
  html .topbar .topbar__prefs { gap: 4px; }
  html .topbar .topbar-pref select { min-height: 38px; max-width: 96px; padding: 6px 20px 6px 8px; font-size: 0.78rem; text-overflow: ellipsis; }
  html .topbar .topbar-download-btn { display: none; } /* still available in the menu */
}
@media (max-width: 380px) {
  html .topbar .topbar-pref select { max-width: 78px; padding-right: 16px; }
  html .topbar { gap: 6px; }
}
@media (max-width: 480px) {
  html .topbar .news-page__back { padding: 8px 8px; font-size: 0.74rem; white-space: nowrap; }
  html .news-page .topbar .topbar-pref select, html .news-page .topbar .topbar-pref select { max-width: 88px !important; padding-left: 8px; padding-right: 18px; }
  html .news-page .topbar__actions { gap: 4px; }
}
@media (max-width: 480px) {
  /* phones: logo-only brand frees room so language + appearance always fit next to the menu */
  html .topbar .brand > span:not(.brand__logo) { display: none; }
}
@media (max-width: 400px) {
  /* very small phones: sign-up lives in the menu and hero; back link becomes an arrow, so both selectors fit */
  html .topbar .topbar__auth { display: none; }
  html .topbar .news-page__back { font-size: 0; padding: 8px 12px; }
  html .topbar .news-page__back::before { content: "\2190"; font-size: 1.1rem; font-weight: 700; }
  html .topbar .topbar-pref select, html .news-page .topbar .topbar-pref select { max-width: 96px !important; }
}
@media (max-width: 380px) {
  /* the legacy rule hid every span in the brand, logo included: keep the logo mark visible */
  html .topbar .brand .brand__logo { display: inline-flex; }
}

/* ======================================================================
   Work areas (create / open / keys / analyze / settings): no giant boxes.
   Content sits directly on the page background; structure comes from
   spacing, hairlines and headings instead of nested cards.
   ====================================================================== */
html :is(.wizard-card, .file-analyzer, .pq-key-studio, .settings-card, .settings-card--floating) {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  overflow: visible;
}
html .dash-embed { max-width: 1040px; }
/* the dashboard header already names the page: drop the duplicate card titles */
.dash-embed .card__header h3, .dash-embed .card__header .section__eyebrow { display: none; }
.dash-embed .card__header { margin: 0 0 18px; }
.dash-embed .card__header p { margin: 0; color: var(--muted); font-size: 0.95rem; max-width: 52rem; }
.dash-embed .workspace-grid { display: block; }

/* wizard: calm, left-aligned column */
.wizard-card .wizard-progress { display: flex; gap: 6px; margin: 0 0 10px; padding: 0; list-style: none; }
.wizard-card .wizard-progress__dot { flex: 1 1 0; height: 4px; border-radius: 2px; background: var(--border); }
.wizard-card .wizard-progress__dot.is-active, .wizard-card .wizard-progress__dot.is-done { background: var(--accent); }
.wizard-card .wizard-step-label { margin: 0 0 18px; font-size: 0.78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.wizard-card .wizard-panel { max-width: 720px; }
.wizard-card .wizard-nav { max-width: 720px; display: flex; gap: 10px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--border); }
.wizard-card .type-choice { max-width: 720px; }

/* protection-mode cards */
.v2-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 6px 0 18px; }
.v2-mode { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; text-align: left; padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--panel); color: var(--text); font: inherit; cursor: pointer; box-shadow: none; transition: border-color .15s, background .15s; }
.v2-mode:hover { border-color: var(--accent); }
.v2-mode.is-selected { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.v2-mode__icon { width: 26px; height: 26px; color: var(--accent); }
.v2-mode__body { display: flex; flex-direction: column; gap: 4px; }
.v2-mode__body strong { font-size: 1rem; }
.v2-mode__body small { font-size: 0.84rem; line-height: 1.45; color: var(--muted); }
.v2-mode-select { display: none !important; }

/* post-quantum how-to */
.v2-guide { margin: 4px 0 8px; padding: 22px 24px; border: 1px solid var(--border); border-radius: 14px; background: var(--panel-soft); }
.v2-guide.is-hidden { display: none; }
html[data-guides="off"] .v2-guide { display: none; }
.v2-guide h4 { margin: 0 0 6px; font-size: 1.05rem; }
.v2-guide__lead { margin: 0 0 16px; color: var(--muted); line-height: 1.55; font-size: 0.95rem; }
.v2-steps { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.v2-steps li { display: grid; grid-template-columns: 30px 1fr; gap: 14px; align-items: start; }
.v2-steps__n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: 0.85rem; }
.v2-steps strong { display: block; margin-bottom: 2px; }
.v2-steps p { margin: 0 0 8px; color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
.v2-steps .btn { margin-top: 2px; }
.btn--sm { min-height: 36px; padding: 6px 14px; font-size: 0.88rem; }
.v2-guide__warn { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--border); font-size: 0.88rem; color: var(--muted); }
.pq-panel .helper-text a { color: var(--accent); font-weight: 650; }

/* key generation */
.v2-keys-explain { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 16px; max-width: 720px; }
.v2-keys-explain > div { padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; }
.v2-keys-explain strong { display: block; margin: 8px 0 2px; }
.v2-keys-explain p { margin: 0; color: var(--muted); font-size: 0.88rem; line-height: 1.45; }
.v2-keys-explain__tag { display: inline-block; padding: 2px 8px; border-radius: 6px; font: 700 0.75rem/1.4 ui-monospace, Menlo, Consolas, monospace; }
.v2-keys-explain__tag--pub { background: var(--accent-soft); color: var(--accent); }
.v2-keys-explain__tag--priv { background: #fff0e6; color: #b45309; }
html[data-theme="dark"] .v2-keys-explain__tag--priv { background: #3b2517; color: #fbbf24; }
.v2-step-title { margin: 0 0 6px; font-size: 1.05rem; }
.pq-key-studio .pq-local-notice { margin: 0 0 20px; padding: 0; border: 0; background: none; color: var(--muted); font-weight: 600; font-size: 0.85rem; }
.pq-key-studio .pq-password-disclaimer { margin: 0 0 16px; padding: 0; border: 0; background: none; color: var(--muted); font-size: 0.92rem; line-height: 1.55; }
.pq-key-studio .result-box { border: 1px solid var(--border); border-radius: 14px; background: var(--panel-soft); padding: 18px; max-width: 720px; }

/* file analysis */
.file-analyzer .analyzer-dropzone { min-height: 170px; border-radius: 16px; }
.file-analyzer .analyzer-results { display: grid; gap: 28px; margin-top: 26px; }
.file-analyzer .analyzer-score-card, .file-analyzer .analyzer-info, .file-analyzer .analyzer-glossary { border: 0; border-radius: 0; background: transparent; box-shadow: none; padding: 0; }
.file-analyzer .analyzer-score-card { padding-top: 22px; border-top: 1px solid var(--border); }
.file-analyzer .analyzer-glossary { padding-top: 22px; border-top: 1px solid var(--border); }
.file-analyzer .analyzer-glossary__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 28px; }
.file-analyzer .analyzer-glossary__grid > * { border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: transparent; box-shadow: none; padding: 14px 0; }
.file-analyzer .analyzer-actions { padding-top: 22px; border-top: 1px solid var(--border); }

/* ---------------------------------------------------------------- settings */
html .settings-card { max-width: none; }
.settings-who { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; padding: 0 0 20px; border-bottom: 1px solid var(--border); }
.settings-who__avatar { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 750; font-size: 1.1rem; }
.settings-who__text { display: flex; flex-direction: column; min-width: 0; }
.settings-who__name { font-size: 1.05rem; }
.settings-who__email { color: var(--muted); font-size: 0.88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.settings-who__method { margin-left: auto; padding: 3px 10px; border-radius: 999px; background: var(--panel-soft); color: var(--muted); font-size: 0.78rem; font-weight: 650; }
.settings-who__method:empty { display: none; }
.settings-card .settings-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 40px; align-items: start; }
.settings-card .settings-nav { position: sticky; top: 112px; display: flex; flex-direction: column; gap: 2px; padding: 0; border: 0; background: none; }
.settings-card .settings-nav__item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 0; border-radius: 10px; background: none; color: var(--muted); font: inherit; font-weight: 600; font-size: 0.93rem; text-align: left; cursor: pointer; box-shadow: none; }
.settings-card .settings-nav__item:hover { color: var(--text); background: var(--panel-soft); }
.settings-card .settings-nav__item.is-active { color: var(--accent); background: var(--accent-soft); }
.settings-card .settings-nav__icon { width: 18px; height: 18px; flex: none; }
.settings-card .settings-form { display: block; padding: 0; max-width: 760px; }
.settings-card .settings-panel.is-hidden { display: none; }
.sp-head { margin: 0 0 6px; }
.sp-head h3 { margin: 0 0 4px; font-size: 1.3rem; }
.sp-head p { margin: 0; color: var(--muted); font-size: 0.94rem; }
.sp-list { display: block; }
.sp-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 300px); gap: 12px 28px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--border); }
.sp-row__text { min-width: 0; }
.sp-row__title { display: block; font-weight: 650; font-size: 0.96rem; color: var(--text); margin: 0; }
.sp-row__hint { margin: 3px 0 0; font-size: 0.86rem; line-height: 1.5; color: var(--muted); }
.sp-row__hint:empty { display: none; }
.sp-row__ctl { display: flex; justify-content: flex-end; min-width: 0; }
.sp-row__ctl > input:not([type="checkbox"]), .sp-row__ctl > select, .sp-row__ctl > textarea { width: 100%; }
.sp-row--stack { grid-template-columns: 1fr; }
.sp-row--stack .sp-row__ctl { justify-content: stretch; }
.sp-row--danger .sp-row__title { color: #b91c1c; }
html[data-theme="dark"] .sp-row--danger .sp-row__title { color: #f87171; }
.sp-row .btn { white-space: nowrap; }
.sp-switch { position: relative; display: inline-block; width: 44px; height: 26px; flex: none; cursor: pointer; }
.sp-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.sp-switch i { position: absolute; inset: 0; border-radius: 999px; background: var(--border); transition: background .18s; }
.sp-switch i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(15, 23, 42, .3); transition: transform .18s; }
.sp-switch input:checked + i { background: var(--accent); }
.sp-switch input:checked + i::after { transform: translateX(18px); }
.sp-switch input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }
.sp-save { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--border); }
.sp-save .btn { width: auto; }
.sp-save .status { margin: 0; min-height: 0; }
.sp-save__hint { flex: 1 1 100%; margin: 0; font-size: 0.84rem; color: var(--muted); }

html[data-assistant="off"] #assistantSearchBtn, html[data-assistant="off"] #assistantMascotBtn, html[data-assistant="off"] #assistantPanel { display: none !important; }

@media (max-width: 860px) {
  .settings-card .settings-layout { grid-template-columns: 1fr; gap: 18px; }
  .settings-card .settings-nav { position: static; flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
  .settings-card .settings-nav__item { width: auto; white-space: nowrap; flex: none; }
  .v2-modes { grid-template-columns: 1fr; }
  .v2-keys-explain { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .sp-row { grid-template-columns: 1fr; padding: 16px 0; }
  .sp-row__ctl { justify-content: stretch; }
  .sp-row--toggle { grid-template-columns: minmax(0, 1fr) auto; }
  .sp-row--toggle .sp-row__ctl { justify-content: flex-end; }
  .v2-guide { padding: 18px 16px; }
}

.settings-card .status:empty, .sp-save .status:empty { display: none; }
.settings-card textarea { font-family: inherit; }
.sp-list > .sp-row:last-child, .sp-list__more > .sp-row:last-child { border-bottom: 0; }
.sp-row[hidden] { display: none; }
.sp-row__hint .status { display: inline; min-height: 0; padding: 0; border: 0; background: none; color: inherit; font-size: inherit; }
.sp-row:has(.sp-row__ctl > .is-hidden:only-child) { display: none; }

.wizard-card .wizard-progress, .wizard-card .wizard-step-label { max-width: 720px; }
.v2-guide__lead { margin-bottom: 20px; }
.wizard-card .field-label, .wizard-card #vaultModeLegend { margin-top: 4px; }
.file-analyzer .analyzer-preview img, .file-analyzer .analyzer-preview video, .file-analyzer .analyzer-preview canvas { max-height: 360px; width: auto; max-width: 100%; height: auto; border-radius: 12px; display: block; }
.file-analyzer .analyzer-info { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 28px; }
.file-analyzer .analyzer-info > * { border: 0; border-top: 1px solid var(--border); border-radius: 0; background: transparent; box-shadow: none; padding: 14px 0; }

/* guest pages: the outer frame around the workspace is gone too; sections are separated by hairlines */
html :is(.trial-page__inner, .account-page__inner) { background: transparent !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important; }
.trial-page__content > .section .workspace-grid { gap: 56px; }
.trial-page__content #generate-key, .trial-page__content #analyze { margin-top: 56px !important; padding-top: 44px !important; border-top: 1px solid var(--border) !important; }
.dash-embed #generate-key, .dash-embed #analyze { margin-top: 0 !important; padding-top: 0 !important; border-top: 0 !important; }
html :is(.wizard-card, .file-analyzer, .pq-key-studio, .settings-card)::before, html :is(.wizard-card, .file-analyzer, .pq-key-studio, .settings-card)::after { display: none !important; }
html[data-theme="dark"] .v2-steps__n { color: #06122b; }
@media (max-width: 480px) { body.is-logged-in .topbar-dash-btn { display: none !important; } }
