/* GentzyCloak release site — generated by site/scripts/build.mjs. Do not edit; edit src/renderer/styles or site/src/site.css. */

/* GentzyCloak design tokens — the single source of colour, space, type and motion.
   Carry your privacy. Trust no host. Powered by LordMoritz. */

:root {
  color-scheme: dark;

  /* ---- atmosphere ---- */
  --bg-deep: #020812;      /* deepest night, behind everything */
  --bg: #030b16;           /* page ground */
  --bg-1: #04101d;         /* sidebar / recessed */
  --surface: #071626;      /* panels */
  --surface-2: #0a1c30;    /* raised panels, inputs */
  --surface-3: #0f2440;    /* hover / active */
  --overlay: rgba(6, 20, 36, 0.72);
  --glass: rgba(9, 26, 46, 0.55);

  --border: rgba(125, 175, 230, 0.12);
  --border-strong: rgba(125, 175, 230, 0.22);
  --border-active: rgba(56, 189, 248, 0.55);

  --text: #e9f1f9;
  --text-2: #a9bbd1;
  --text-3: #7d94ac;
  --text-inverse: #04101d;

  /* ---- brand ---- */
  --brand: #38bdf8;        /* electric azure */
  --cyan: #22d3ee;         /* active privacy / portable / network */
  --azure: #3b82f6;
  --violet: #a78bfa;       /* private communication */
  --green: #34d399;        /* verified / safe / passed */
  --yellow: #fbbf24;       /* medium / caution */
  --orange: #fb923c;       /* high risk */
  --red: #f43f5e;          /* critical / panic / destructive */
  --amber: #f59e0b;        /* vault */

  --brand-dim: rgba(56, 189, 248, 0.14);
  --cyan-dim: rgba(34, 211, 238, 0.14);
  --violet-dim: rgba(167, 139, 250, 0.16);
  --green-dim: rgba(52, 211, 153, 0.14);
  --yellow-dim: rgba(251, 191, 36, 0.14);
  --orange-dim: rgba(251, 146, 60, 0.16);
  --red-dim: rgba(244, 63, 94, 0.16);
  --amber-dim: rgba(245, 158, 11, 0.16);

  /* ---- type ---- */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --fs-display: 30px;
  --fs-title: 20px;
  --fs-section: 15px;
  --fs-heading: 13px;
  --fs-body: 13.5px;
  --fs-caption: 12px;
  --fs-meta: 11px;
  --fs-mono: 12px;

  --lh-tight: 1.15;
  --lh-body: 1.5;

  --track-caps: 0.14em;

  /* ---- space ---- */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-7: 32px;
  --sp-8: 40px;

  /* ---- shape ---- */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-pill: 999px;

  /* ---- depth ---- */
  --shadow-1: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-2: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 18px 50px rgba(0, 0, 0, 0.5);
  --glow-brand: 0 0 0 1px rgba(56, 189, 248, 0.35), 0 0 22px rgba(56, 189, 248, 0.18);
  --glow-red: 0 0 0 1px rgba(244, 63, 94, 0.4), 0 0 22px rgba(244, 63, 94, 0.2);
  --stroke-gradient: linear-gradient(135deg, rgba(56, 189, 248, 0.35), rgba(125, 175, 230, 0.06) 40%, rgba(167, 139, 250, 0.18));

  /* ---- motion ---- */
  --t-fast: 120ms;
  --t-base: 180ms;
  --t-slow: 220ms;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  /* ---- layout ---- */
  --sidebar-w: 248px;
  --sidebar-compact-w: 76px;
  --topbar-h: 56px;
  --statusbar-h: 30px;
  --page-pad: 24px;
}


/* Base: reset, typography roles, focus, scrollbars, motion. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}

/* A faint cold-steel vignette behind the shell; no repeating grid, no scanlines. */
body {
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(56, 189, 248, 0.08), transparent 60%),
    radial-gradient(900px 500px at 100% 100%, rgba(167, 139, 250, 0.06), transparent 60%),
    var(--bg);
}

::selection {
  background: rgba(56, 189, 248, 0.35);
}

a {
  color: var(--brand);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

img,
svg {
  display: block;
  max-width: 100%;
}

svg.ico {
  flex: 0 0 auto;
}

p {
  margin: 0 0 var(--sp-2);
}

ul,
ol {
  margin: 0;
  padding-left: 18px;
}

/* ---------- typography roles ---------- */

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  line-height: var(--lh-tight);
}

.t-display {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.t-title {
  font-family: var(--font-display);
  font-size: var(--fs-title);
  font-weight: 650;
  letter-spacing: -0.01em;
}

.t-section {
  font-family: var(--font-display);
  font-size: var(--fs-section);
  font-weight: 600;
  letter-spacing: -0.005em;
}

.t-heading {
  font-size: var(--fs-heading);
  font-weight: 600;
  color: var(--text);
}

.t-eyebrow {
  font-size: var(--fs-meta);
  font-weight: 600;
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--text-3);
}

.t-caption {
  font-size: var(--fs-caption);
  color: var(--text-2);
}

.t-meta {
  font-size: var(--fs-meta);
  color: var(--text-3);
}

.mono,
code,
kbd,
pre {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
}

.muted {
  color: var(--text-3);
}

.dim {
  color: var(--text-2);
}

.small {
  font-size: var(--fs-caption);
}

.nowrap {
  white-space: nowrap;
}

.ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- focus ---------- */

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* ---------- scrollbars ---------- */

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(125, 175, 230, 0.22) transparent;
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-thumb {
  background: rgba(125, 175, 230, 0.18);
  border: 3px solid transparent;
  border-radius: var(--r-pill);
  background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
  background-color: rgba(125, 175, 230, 0.32);
}

*::-webkit-scrollbar-track {
  background: transparent;
}

/* ---------- motion ---------- */

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes breathe {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

@keyframes sweep {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(300%);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.enter {
  animation: fade-up var(--t-slow) var(--ease) both;
}

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


/* Application shell: sidebar, topbar, workspace, status bar, command palette. */

#app {
  position: relative;
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  grid-template-rows: var(--topbar-h) minmax(0, 1fr) var(--statusbar-h);
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

#app[data-nav="compact"] {
  grid-template-columns: var(--sidebar-compact-w) minmax(0, 1fr);
}

#app[data-header="collapsed"] {
  --topbar-h: 40px;
}

/* ---------- sidebar ---------- */

.sidebar {
  grid-row: 1 / span 3;
  grid-column: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: linear-gradient(180deg, var(--bg-1), var(--bg-deep));
  border-right: 1px solid var(--border);
  overflow: hidden;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  height: var(--topbar-h);
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  flex: 0 0 auto;
}

.sidebar-brand .brand-glyph {
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.35));
}

.brand-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  white-space: nowrap;
}

.brand-name b {
  font-weight: 700;
  color: var(--brand);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 10px;
  flex: 0 0 auto;
}

.nav-item {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  background: transparent;
  color: var(--text-2);
  text-align: left;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}

.nav-item:hover {
  background: rgba(125, 175, 230, 0.07);
  color: var(--text);
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.16), rgba(56, 189, 248, 0.04));
  border-color: rgba(56, 189, 248, 0.22);
  color: var(--text);
}

.nav-item.active::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--brand);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.8);
}

.nav-item .nav-ico {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  color: var(--text-3);
  transition: color var(--t-fast);
}

.nav-item.active .nav-ico,
.nav-item:hover .nav-ico {
  color: var(--brand);
}

.nav-item .nav-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.nav-item .nav-title {
  font-weight: 600;
  font-size: var(--fs-body);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-item .nav-sub {
  font-size: var(--fs-meta);
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-tools {
  padding: 0 10px 6px;
  flex: 0 0 auto;
}

.nav-collapse {
  color: var(--text-3);
}

.nav-collapse .nav-title {
  font-weight: 500;
  font-size: var(--fs-caption);
}

.nav-item .nav-dot {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
}

/* guardian artwork: emerges from the dark, never a pasted rectangle */

.sidebar-guardian {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  pointer-events: none;
}

.guardian-art {
  position: absolute;
  inset: 0;
  background-image: url("assets/environment/cloak-sidebar.webp");
  background-repeat: no-repeat;
  background-size: 118% auto;
  background-position: 50% 12%;
  opacity: 0.85;
  -webkit-mask-image:
    linear-gradient(180deg, transparent 0%, #000 34%, #000 72%, transparent 100%),
    radial-gradient(70% 60% at 50% 45%, #000 40%, transparent 100%);
  mask-image:
    linear-gradient(180deg, transparent 0%, #000 34%, #000 72%, transparent 100%),
    radial-gradient(70% 60% at 50% 45%, #000 40%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

.guardian-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 40% at 50% 38%, rgba(56, 189, 248, 0.12), transparent 70%);
}

.guardian-copy {
  position: relative;
  padding: 0 18px 16px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.34em;
  line-height: 1.55;
  color: rgba(233, 241, 249, 0.82);
  text-shadow: 0 2px 12px rgba(2, 8, 18, 0.9);
}

.guardian-copy span {
  display: block;
}

.sidebar-foot {
  position: relative;
  flex: 0 0 auto;
  padding: 10px 18px 14px;
  font-size: var(--fs-meta);
  color: var(--text-3);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.sidebar-foot b {
  color: var(--text-2);
  font-weight: 600;
}

/* compact nav (narrow windows or user toggle) */

#app[data-nav="compact"] .sidebar-brand {
  justify-content: center;
  padding: 0;
}

#app[data-nav="compact"] .brand-name,
#app[data-nav="compact"] .nav-item .nav-text,
#app[data-nav="compact"] .sidebar-guardian,
#app[data-nav="compact"] .sidebar-foot {
  display: none;
}

#app[data-nav="compact"] .nav-item {
  grid-template-columns: auto;
  justify-items: center;
  padding: 8px 0;
}

/* collapsed header: the brand leaves the sidebar and lives in the slim top bar */

#app[data-header="collapsed"] .sidebar-brand {
  display: none;
}

#app[data-header="collapsed"] .sidebar-nav {
  padding-top: 14px;
}

#app[data-nav="compact"] .sidebar-tools {
  padding: 0 10px 6px;
  flex: 0 0 auto;
}

.nav-collapse {
  color: var(--text-3);
}

.nav-collapse .nav-title {
  font-weight: 500;
  font-size: var(--fs-caption);
}

.nav-item .nav-dot {
  right: 14px;
  top: 8px;
}

/* ---------- topbar ---------- */

.topbar {
  grid-row: 1;
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  background: rgba(4, 16, 29, 0.72);
  border-bottom: 1px solid var(--border);
  min-width: 0;
  -webkit-app-region: no-drag;
}

.topbar-brand {
  display: none;
  align-items: center;
  gap: 9px;
  min-width: 0;
  flex: 0 1 auto;
}

.topbar-brand .brand-glyph {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.35));
}

.topbar-brand .brand-name {
  font-size: 14px;
}

.topbar-brand-sep {
  width: 1px;
  height: 16px;
  background: var(--border-strong);
  margin: 0 2px;
}

.topbar-brand-crumb {
  font-size: var(--fs-caption);
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-toggle {
  flex: 0 0 auto;
  color: var(--text-3);
}

#app[data-header="collapsed"] .topbar {
  padding: 0 12px;
  gap: 8px;
}

#app[data-header="collapsed"] .topbar-brand {
  display: flex;
}

#app[data-header="collapsed"] .topbar-title,
#app[data-header="collapsed"] .topbar-identity,
#app[data-header="collapsed"] .cmd-field span,
#app[data-header="collapsed"] .cmd-field kbd,
#app[data-header="collapsed"] .topbar-status .sig > span:not(.dot),
#app[data-header="collapsed"] .panic-btn .lbl {
  display: none;
}

#app[data-header="collapsed"] .cmd-field {
  flex: 0 0 auto;
  width: 32px;
  height: 28px;
  justify-content: center;
  padding: 0;
  margin-left: auto;
}

#app[data-header="collapsed"] .topbar-status {
  margin-left: 0;
}

#app[data-header="collapsed"] .topbar-status .sig {
  height: 24px;
  padding: 0 7px;
}

#app[data-header="collapsed"] .panic-btn {
  height: 26px;
  width: 30px;
  padding: 0;
  justify-content: center;
}

.topbar-title {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 0 1 auto;
}

.topbar-title .crumb {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 650;
  white-space: nowrap;
}

.topbar-title .crumb-sub {
  font-size: var(--fs-meta);
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cmd-field {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 320px;
  max-width: 520px;
  min-width: 0;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-strong);
  background: var(--bg-1);
  color: var(--text-3);
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.35);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), color var(--t-fast);
}

.cmd-field:hover {
  border-color: rgba(125, 175, 230, 0.35);
  color: var(--text-2);
}

.cmd-field .ico {
  color: var(--brand);
}

.cmd-field span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

kbd.key {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--r-xs);
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 10.5px;
  white-space: nowrap;
}

.topbar-status {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex: 0 0 auto;
}

.topbar-identity {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 0;
  flex: 0 1 auto;
  padding-right: 6px;
  border-right: 1px solid var(--border);
  margin-right: 4px;
}

.topbar-identity .id-user {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  color: var(--text);
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-identity .id-host {
  font-size: var(--fs-meta);
  color: var(--text-3);
  white-space: nowrap;
}

/* ---------- workspace ---------- */

.workspace {
  grid-row: 2;
  grid-column: 2;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.global-alert-host {
  flex: 0 0 auto;
}

.view-scroll {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  overflow: auto;
}

.view-scroll.no-scroll {
  overflow: hidden;
}

/* ---------- status bar ---------- */

.statusbar {
  grid-row: 3;
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  font-size: var(--fs-meta);
  color: var(--text-3);
  min-width: 0;
  overflow: hidden;
}

.sb-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  white-space: nowrap;
}

.sb-item .ico {
  color: var(--text-3);
}

.sb-item.sb-source .ico {
  color: var(--cyan);
}

.sb-item .sb-k {
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sb-item .sb-v {
  color: var(--text-2);
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
}

.sb-item .sb-v.mono {
  font-size: 11px;
}

.sb-sep {
  width: 1px;
  height: 14px;
  background: var(--border-strong);
  flex: 0 0 auto;
}

.sb-spacer {
  flex: 1;
}

.sb-tokens {
  display: inline-flex;
  gap: 4px;
  flex: 0 0 auto;
}

.sb-token {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 18px;
  padding: 0 7px;
  border-radius: var(--r-xs);
  border: 1px solid var(--border);
  color: var(--text-3);
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 10px;
  white-space: nowrap;
}

.sb-token::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
}

.sb-token.on {
  color: var(--green);
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.06);
}

.sb-token.on::before {
  opacity: 1;
  box-shadow: 0 0 6px currentColor;
}

.sb-token.cyan {
  color: var(--cyan);
  border-color: rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.06);
}

.sb-token.cyan::before {
  opacity: 1;
  box-shadow: 0 0 6px currentColor;
}

.sb-token.warn {
  color: var(--yellow);
  border-color: rgba(251, 191, 36, 0.35);
}

.sb-token.bad {
  color: var(--red);
  border-color: rgba(244, 63, 94, 0.4);
  background: rgba(244, 63, 94, 0.06);
}

/* ---------- command palette ---------- */

#palette-root {
  display: none;
}

#palette-root.open {
  display: block;
}

.palette-backdrop {
  position: fixed;
  inset: 0;
  z-index: 65;
  background: rgba(2, 8, 18, 0.66);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 12vh;
  animation: fade-up var(--t-fast);
}

.palette {
  width: min(640px, calc(100vw - 48px));
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2), 0 0 0 1px rgba(56, 189, 248, 0.12);
  overflow: hidden;
}

.palette-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

.palette-input:focus-within {
  border-bottom-color: var(--border-active);
  box-shadow: inset 0 -1px 0 var(--border-active);
}

.palette-input .ico {
  color: var(--brand);
}

.palette-input input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  font-size: 15px;
  color: var(--text);
}

.palette-input input::placeholder {
  color: var(--text-3);
}

.palette-list {
  list-style: none;
  margin: 0;
  padding: 6px;
  max-height: 380px;
  overflow: auto;
}

.palette-group {
  padding: 8px 10px 4px;
  font-size: var(--fs-meta);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}

.palette-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: var(--r-md);
  cursor: pointer;
  color: var(--text);
  border: 1px solid transparent;
}

.palette-item.active {
  background: var(--brand-dim);
  border-color: rgba(56, 189, 248, 0.25);
}

.palette-item .p-ico {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  color: var(--brand);
  background: rgba(56, 189, 248, 0.08);
}

.palette-item.danger .p-ico {
  color: var(--red);
  background: var(--red-dim);
}

.palette-item .p-title {
  display: block;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.palette-item .p-hint {
  display: block;
  font-size: var(--fs-meta);
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.palette-empty {
  padding: 24px;
  text-align: center;
  color: var(--text-3);
}

.palette-foot {
  display: flex;
  gap: 14px;
  padding: 8px 14px;
  border-top: 1px solid var(--border);
  font-size: var(--fs-meta);
  color: var(--text-3);
}

.palette-foot kbd.key {
  margin-right: 4px;
}

/* ---------- integrity / portable banner (global) ---------- */

.global-alert {
  margin: 0;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  padding: 9px var(--page-pad);
}

/* ---------- responsive ---------- */

/* Compact navigation below 1240px is applied by app.ts (data-nav) so the user can still override it. */
@media (max-width: 1240px) {
  .topbar-identity {
    display: none;
  }
}

@media (max-height: 720px) {
  .sidebar-guardian {
    display: none;
  }
}

@media (max-width: 1100px) {
  .cmd-field span {
    display: none;
  }
  .cmd-field {
    flex: 0 0 auto;
    width: 44px;
    justify-content: center;
    padding: 0;
  }
  .cmd-field kbd {
    display: none;
  }
  .sb-item.sb-platform {
    display: none;
  }
}


/* Shared components: surfaces, buttons, badges, indicators, forms, lists, feedback. */

/* ---------- surfaces ---------- */

.panel {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 40%), var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  min-width: 0;
}

.panel-recessed {
  background: var(--bg-1);
  box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.panel-glass {
  background: var(--glass);
}

.panel-accent::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--stroke-gradient);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5) 0;
  min-width: 0;
}

.panel-head .t-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.panel-head .t-eyebrow .ico {
  color: var(--brand);
}

.panel-body {
  padding: var(--sp-4) var(--sp-5) var(--sp-5);
  min-width: 0;
}

.panel-head + .panel-body {
  padding-top: var(--sp-3);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
  margin: 0 0 var(--sp-3);
}

.section-head .t-section {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.rule {
  height: 1px;
  background: var(--border);
  margin: var(--sp-4) 0;
}

/* ---------- page ---------- */

.page {
  padding: var(--sp-5) var(--page-pad) var(--sp-8);
  width: 100%;
  min-width: 0;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
  flex-wrap: wrap;
}

.page-head .t-eyebrow {
  margin-bottom: 6px;
}

.page-head h1 {
  font-size: var(--fs-title);
  font-weight: 650;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-head .sub {
  color: var(--text-2);
  margin-top: 4px;
  max-width: 68ch;
}

.page-head .actions {
  margin-left: auto;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 34px;
  padding: 0 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent), var(--surface-2);
  color: var(--text);
  font-weight: 500;
  font-size: var(--fs-body);
  white-space: nowrap;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast), transform 60ms, box-shadow var(--t-fast);
}

.btn:hover {
  background: var(--surface-3);
  border-color: rgba(125, 175, 230, 0.35);
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.45;
  transform: none;
}

.btn-primary {
  background: linear-gradient(180deg, #5cc8fb, var(--brand) 60%, #22a5e0);
  border-color: rgba(56, 189, 248, 0.7);
  color: var(--text-inverse);
  font-weight: 600;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.15), 0 6px 18px rgba(56, 189, 248, 0.18);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #7dd5fc, #4cc4f9 60%, #2fb1ea);
  border-color: rgba(56, 189, 248, 0.9);
}

.btn-violet {
  background: linear-gradient(180deg, #b8a3fb, var(--violet) 60%, #8b6cf4);
  border-color: rgba(167, 139, 250, 0.7);
  color: #120a2b;
  font-weight: 600;
}

.btn-danger {
  background: linear-gradient(180deg, #e11d48, #be123c);
  border-color: rgba(244, 63, 94, 0.7);
  color: #fff;
  font-weight: 600;
}

.btn-danger:hover {
  background: linear-gradient(180deg, #f43f5e, #d81b4a);
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text-2);
}

.btn-ghost:hover {
  background: rgba(125, 175, 230, 0.08);
  border-color: transparent;
  color: var(--text);
}

.btn-ghost-danger {
  background: transparent;
  border-color: rgba(244, 63, 94, 0.35);
  color: var(--red);
}

.btn-ghost-danger:hover {
  background: var(--red-dim);
  border-color: rgba(244, 63, 94, 0.6);
}

.btn-sm {
  height: 28px;
  padding: 0 10px;
  font-size: var(--fs-caption);
  border-radius: var(--r-sm);
}

.btn-icon {
  width: 34px;
  padding: 0;
}

.btn-icon.btn-sm {
  width: 28px;
}

.btn.on {
  border-color: var(--border-active);
  color: var(--brand);
  background: var(--brand-dim);
}

.btn .ico {
  opacity: 0.9;
}

.btn-link {
  background: none;
  border: 0;
  padding: 0;
  height: auto;
  color: var(--brand);
  font-weight: 500;
}

.btn-link:hover {
  text-decoration: underline;
}

.actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

/* ---------- panic ---------- */

.panic-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  flex: 0 0 auto;
  height: 32px;
  padding: 0 12px;
  gap: 7px;
  border-radius: var(--r-md);
  border: 1px solid rgba(244, 63, 94, 0.45);
  background: linear-gradient(180deg, rgba(244, 63, 94, 0.14), rgba(244, 63, 94, 0.08));
  color: #ff7a93;
  font-weight: 600;
  font-size: var(--fs-caption);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast);
}

.panic-btn:hover {
  background: linear-gradient(180deg, rgba(244, 63, 94, 0.28), rgba(244, 63, 94, 0.16));
  border-color: rgba(244, 63, 94, 0.8);
  box-shadow: var(--glow-red);
}

/* ---------- badges / chips ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text-2);
  font-size: var(--fs-meta);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1.5;
}

.badge-ok {
  background: var(--green-dim);
  border-color: rgba(52, 211, 153, 0.4);
  color: var(--green);
}

.badge-bad {
  background: var(--red-dim);
  border-color: rgba(244, 63, 94, 0.45);
  color: var(--red);
}

.badge-warn {
  background: var(--yellow-dim);
  border-color: rgba(251, 191, 36, 0.4);
  color: var(--yellow);
}

.badge-accent {
  background: var(--cyan-dim);
  border-color: rgba(34, 211, 238, 0.4);
  color: var(--cyan);
}

.badge-violet {
  background: var(--violet-dim);
  border-color: rgba(167, 139, 250, 0.45);
  color: var(--violet);
}

.badge-amber {
  background: var(--amber-dim);
  border-color: rgba(245, 158, 11, 0.45);
  color: var(--amber);
}

.chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-2);
  font-size: var(--fs-caption);
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}

.chip:hover {
  background: rgba(125, 175, 230, 0.08);
  border-color: var(--border-strong);
  color: var(--text);
}

.chip.on {
  background: var(--brand-dim);
  border-color: var(--border-active);
  color: var(--text);
}

.chip .n {
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  color: var(--text-3);
}

/* ---------- status indicator (dot + label) ---------- */

.sig {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 26px;
  padding: 0 9px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: rgba(4, 16, 29, 0.55);
  color: var(--text-2);
  font-size: var(--fs-meta);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.sig .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-3);
  box-shadow: 0 0 0 2px rgba(111, 132, 156, 0.15);
  flex: 0 0 auto;
}

.sig-on {
  color: var(--green);
  border-color: rgba(52, 211, 153, 0.3);
}

.sig-on .dot {
  background: var(--green);
  box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.18), 0 0 10px rgba(52, 211, 153, 0.5);
}

.sig-cyan {
  color: var(--cyan);
  border-color: rgba(34, 211, 238, 0.3);
}

.sig-cyan .dot {
  background: var(--cyan);
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.18), 0 0 10px rgba(34, 211, 238, 0.5);
}

.sig-warn {
  color: var(--yellow);
  border-color: rgba(251, 191, 36, 0.3);
}

.sig-warn .dot {
  background: var(--yellow);
  box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.18);
}

.sig-bad {
  color: var(--red);
  border-color: rgba(244, 63, 94, 0.4);
  background: rgba(244, 63, 94, 0.08);
}

.sig-bad .dot {
  background: var(--red);
  box-shadow: 0 0 0 2px rgba(244, 63, 94, 0.2), 0 0 10px rgba(244, 63, 94, 0.5);
}

.sig-violet {
  color: var(--violet);
  border-color: rgba(167, 139, 250, 0.35);
}

.sig-violet .dot {
  background: var(--violet);
}

.sig-off {
  color: var(--text-3);
}

/* ---------- severity ---------- */

.sev {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--r-xs);
  font-size: var(--fs-meta);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid transparent;
}

.sev::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: currentColor;
}

.sev-critical {
  color: var(--red);
  background: var(--red-dim);
  border-color: rgba(244, 63, 94, 0.35);
}

.sev-high {
  color: var(--orange);
  background: var(--orange-dim);
  border-color: rgba(251, 146, 60, 0.35);
}

.sev-medium {
  color: var(--yellow);
  background: var(--yellow-dim);
  border-color: rgba(251, 191, 36, 0.35);
}

.sev-low {
  color: var(--cyan);
  background: var(--cyan-dim);
  border-color: rgba(34, 211, 238, 0.3);
}

.sev-info {
  color: var(--text-2);
  background: rgba(125, 175, 230, 0.08);
  border-color: var(--border);
}

.sev-strip {
  --sev-color: var(--text-3);
  position: relative;
}

.sev-strip::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 2px;
  background: var(--sev-color);
}

.strip-critical {
  --sev-color: var(--red);
}
.strip-high {
  --sev-color: var(--orange);
}
.strip-medium {
  --sev-color: var(--yellow);
}
.strip-low {
  --sev-color: var(--cyan);
}
.strip-info {
  --sev-color: var(--text-3);
}

.sev-counts {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.sev-count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 10px 0 8px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: rgba(4, 16, 29, 0.5);
  font-size: var(--fs-caption);
  color: var(--text-2);
}

.sev-count .n {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.sev-count .n.zero {
  color: var(--text-3);
  font-weight: 500;
}

/* ---------- finding rows ---------- */

.finding-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--sp-3);
  width: 100%;
  text-align: left;
  padding: 10px 14px 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  background: transparent;
  color: var(--text);
  transition: background var(--t-fast), border-color var(--t-fast);
}

.finding-row:hover {
  background: rgba(125, 175, 230, 0.06);
  border-color: var(--border);
}

.finding-row.selected {
  background: var(--brand-dim);
  border-color: var(--border-active);
}

.finding-row .ft {
  font-weight: 600;
  font-size: var(--fs-body);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.finding-row .fs {
  color: var(--text-2);
  font-size: var(--fs-caption);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.finding-row .fm {
  display: flex;
  gap: 8px;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  color: var(--text-3);
}

.finding-row .go {
  color: var(--text-3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ---------- forms ---------- */

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.field-label {
  font-size: var(--fs-caption);
  font-weight: 600;
  color: var(--text-2);
}

.field-hint {
  font-size: var(--fs-meta);
  color: var(--text-3);
  line-height: 1.4;
}

.input,
textarea.input,
select.input {
  width: 100%;
  min-height: 36px;
  padding: 7px 11px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-strong);
  background: var(--bg-1);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.35);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.input::placeholder {
  color: var(--text-3);
}

.input:focus-visible {
  outline: none;
  border-color: var(--border-active);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15), inset 0 1px 0 rgba(0, 0, 0, 0.35);
}

.input:disabled {
  opacity: 0.5;
}

select.input {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%);
  background-position: calc(100% - 16px) 15px, calc(100% - 11px) 15px;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 30px;
}

select.input option {
  background: var(--surface-2);
  color: var(--text);
}

textarea.input {
  resize: vertical;
  line-height: 1.5;
  font-family: inherit;
}

.input.mono {
  font-family: var(--font-mono);
}

.form-row {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
}

.form-row > .field {
  flex: 1;
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.with-copy {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  min-width: 0;
}

.with-copy .field {
  flex: 1;
}

.with-copy .btn {
  flex: 0 0 auto;
  height: 36px;
  width: 36px;
  padding: 0;
}

.secret-field {
  position: relative;
}

.secret-field .input {
  padding-right: 40px;
}

.secret-field .reveal {
  position: absolute;
  right: 4px;
  bottom: 4px;
  height: 28px;
  width: 28px;
}

/* switch */

.switch {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  cursor: pointer;
  border-top: 1px solid var(--border);
}

.switch:first-child {
  border-top: 0;
}

.switch-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.switch-track {
  flex: 0 0 auto;
  margin-top: 2px;
  width: 36px;
  height: 20px;
  border-radius: var(--r-pill);
  background: var(--surface-3);
  border: 1px solid var(--border-strong);
  position: relative;
  transition: background var(--t-base), border-color var(--t-base);
}

.switch-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--text-2);
  transition: transform var(--t-base) var(--ease), background var(--t-base);
}

.switch-input:checked + .switch-track {
  background: rgba(56, 189, 248, 0.25);
  border-color: var(--border-active);
}

.switch-input:checked + .switch-track .switch-knob {
  transform: translateX(16px);
  background: var(--brand);
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
}

.switch-input:focus-visible + .switch-track {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.switch-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

/* segmented control */

.seg {
  display: inline-flex;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  background: var(--bg-1);
  padding: 3px;
  gap: 3px;
}

.seg button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  padding: 6px 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text-2);
  text-align: left;
  transition: background var(--t-fast), color var(--t-fast);
}

.seg button:hover {
  color: var(--text);
}

.seg button.on {
  background: var(--surface-3);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border-active);
}

.seg button .s {
  font-size: var(--fs-meta);
  color: var(--text-3);
}

.seg button:disabled {
  opacity: 0.5;
}

/* meter */

.meter {
  height: 5px;
  border-radius: var(--r-pill);
  background: var(--surface-3);
  overflow: hidden;
}

.meter > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  transition: width var(--t-base) var(--ease), background var(--t-base);
}

/* ---------- data field ---------- */

.kv {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: var(--sp-3);
  padding: 7px 0;
  border-top: 1px solid var(--border);
  align-items: baseline;
}

.kv:first-child {
  border-top: 0;
}

.kv-k {
  color: var(--text-3);
  font-size: var(--fs-caption);
}

.kv-v {
  min-width: 0;
  word-break: break-word;
}

.kv-v.mono {
  font-size: var(--fs-mono);
}

.kv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--sp-3);
}

.datum {
  min-width: 0;
}

.datum .k {
  font-size: var(--fs-meta);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 3px;
}

.datum .v {
  font-size: var(--fs-body);
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.datum .v.mono {
  font-size: var(--fs-mono);
}

/* ---------- technical evidence ---------- */

.evidence {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
}

.evidence td {
  padding: 7px 10px;
  border-top: 1px solid var(--border);
  vertical-align: top;
  word-break: break-all;
}

.evidence tr:first-child td {
  border-top: 0;
}

.evidence td:first-child {
  color: var(--text-3);
  white-space: nowrap;
  width: 1%;
  padding-left: 0;
}

.code-block {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  color: var(--text-2);
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 10px 12px;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.55;
}

.path-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--r-md);
  background: var(--bg-1);
  border: 1px solid var(--border);
  min-width: 0;
}

.path-box .p {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  color: var(--text-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

.path-box .ico {
  color: var(--cyan);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-caption);
}

.data-table th {
  text-align: left;
  font-size: var(--fs-meta);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 600;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-strong);
  white-space: nowrap;
}

.data-table td {
  padding: 7px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  max-width: 420px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.data-table td.mono {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
}

.data-table tr:hover td {
  background: rgba(125, 175, 230, 0.04);
}

.table-scroll {
  overflow: auto;
  max-height: 520px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}

/* ---------- tabs ---------- */

.tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}

.tabs button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: transparent;
  color: var(--text-2);
  font-weight: 500;
  white-space: nowrap;
  transition: color var(--t-fast), border-color var(--t-fast);
}

.tabs button:hover {
  color: var(--text);
}

.tabs button.on {
  color: var(--text);
  border-bottom-color: var(--brand);
}

.tabs button .n {
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  color: var(--text-3);
  padding: 1px 6px;
  border-radius: var(--r-xs);
  background: rgba(125, 175, 230, 0.08);
}

/* ---------- progress ---------- */

.progress-bar {
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--surface-3);
  overflow: hidden;
  position: relative;
}

.progress-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--azure), var(--cyan));
  transition: width var(--t-slow) var(--ease);
}

.progress-bar.indeterminate::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 33%;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.6), transparent);
  animation: sweep 1.6s linear infinite;
}

.pulse {
  animation: breathe 1.8s ease-in-out infinite;
}

/* ---------- empty state ---------- */

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: var(--sp-7) var(--sp-5);
  color: var(--text-2);
}

.empty .empty-ico {
  color: var(--brand);
  opacity: 0.8;
  margin-bottom: 4px;
}

.empty .empty-eyebrow {
  font-size: var(--fs-meta);
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--text-3);
}

.empty .empty-title {
  font-family: var(--font-display);
  font-size: var(--fs-section);
  font-weight: 600;
  color: var(--text);
}

.empty p {
  max-width: 44ch;
  margin: 0;
}

.empty .btn {
  margin-top: var(--sp-3);
}

/* ---------- alerts ---------- */

.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: var(--yellow-dim);
  color: var(--text);
  font-size: var(--fs-caption);
  line-height: 1.5;
}

.alert .ico {
  color: var(--yellow);
  margin-top: 1px;
}

.alert .alert-body {
  flex: 1;
  min-width: 0;
}

.alert .alert-title {
  font-weight: 600;
  margin-bottom: 1px;
}

.alert .btn {
  margin-left: auto;
  flex: 0 0 auto;
}

.alert-danger {
  border-color: rgba(244, 63, 94, 0.45);
  background: var(--red-dim);
}

.alert-danger .ico {
  color: var(--red);
}

.alert-info {
  border-color: rgba(56, 189, 248, 0.3);
  background: var(--brand-dim);
}

.alert-info .ico {
  color: var(--brand);
}

.alert-ok {
  border-color: rgba(52, 211, 153, 0.35);
  background: var(--green-dim);
}

.alert-ok .ico {
  color: var(--green);
}

/* ---------- danger zone ---------- */

.danger-zone {
  border-color: rgba(244, 63, 94, 0.35);
  background: linear-gradient(180deg, rgba(244, 63, 94, 0.06), transparent 50%), var(--surface);
}

.danger-zone .panel-head .t-eyebrow,
.danger-zone .panel-head .t-eyebrow .ico {
  color: var(--red);
}

.danger-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: 12px 0;
  border-top: 1px solid rgba(244, 63, 94, 0.18);
}

.danger-row:first-child {
  border-top: 0;
}

.danger-row .d-title {
  font-weight: 600;
}

.danger-row .d-sub {
  color: var(--text-2);
  font-size: var(--fs-caption);
}

/* ---------- trust score ---------- */

.trust {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--sp-5);
  align-items: center;
}

.trust-ring {
  position: relative;
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
}

.trust-ring svg {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
}

.trust-ring .ring-track {
  fill: none;
  stroke: rgba(125, 175, 230, 0.12);
  stroke-width: 7;
}

.trust-ring .ring-fill {
  fill: none;
  stroke-width: 7;
  stroke-linecap: round;
  transition: stroke-dashoffset 600ms var(--ease);
}

.trust-ring .score {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.trust-ring .of {
  font-size: var(--fs-meta);
  color: var(--text-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 2px;
}

.trust-body {
  min-width: 0;
}

.trust-grade {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.trust-grade .g {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.trust-read {
  color: var(--text);
  font-size: var(--fs-body);
  margin-bottom: var(--sp-3);
  max-width: 54ch;
}

/* ---------- state module (illuminated status) ---------- */

.state-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-3);
}

.state-module {
  --tone: var(--text-3);
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 50%), var(--surface);
  overflow: hidden;
  min-width: 0;
}

.state-module::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 2px;
  background: var(--tone);
  opacity: 0.9;
  border-radius: 2px 2px 0 0;
  box-shadow: 0 0 14px var(--tone);
}

.state-module .sm-ico {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  color: var(--tone);
  background: color-mix(in srgb, var(--tone) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--tone) 28%, transparent);
}

.state-module .sm-k {
  font-size: var(--fs-meta);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

.state-module .sm-v {
  font-family: var(--font-display);
  font-size: var(--fs-section);
  font-weight: 650;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.state-module .sm-s {
  font-size: var(--fs-meta);
  color: var(--text-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tone-green {
  --tone: var(--green);
}
.tone-cyan {
  --tone: var(--cyan);
}
.tone-yellow {
  --tone: var(--yellow);
}
.tone-orange {
  --tone: var(--orange);
}
.tone-red {
  --tone: var(--red);
}
.tone-violet {
  --tone: var(--violet);
}
.tone-amber {
  --tone: var(--amber);
}
.tone-muted {
  --tone: var(--text-3);
}
.tone-brand {
  --tone: var(--brand);
}

/* ---------- tool module ---------- */

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-3);
}

.tool-module {
  --tone: var(--brand);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 18px 16px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, color-mix(in srgb, var(--tone) 9%, transparent), transparent 55%), var(--surface);
  text-align: left;
  color: var(--text);
  min-width: 0;
  transition: border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}

.tool-module:hover {
  border-color: color-mix(in srgb, var(--tone) 45%, transparent);
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--tone) 18%, transparent), 0 14px 30px rgba(0, 0, 0, 0.35);
}

.tool-module .tm-ico {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  color: var(--tone);
  background: color-mix(in srgb, var(--tone) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--tone) 30%, transparent);
}

.tool-module .tm-title {
  font-family: var(--font-display);
  font-size: var(--fs-section);
  font-weight: 650;
}

.tool-module .tm-sub {
  color: var(--text-2);
  font-size: var(--fs-caption);
  min-height: 2.9em;
}

.tool-module .tm-go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  color: var(--tone);
  font-weight: 600;
  font-size: var(--fs-caption);
}

/* ---------- quick actions ---------- */

.qa-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.qa {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 9px 10px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  text-align: left;
  transition: background var(--t-fast), border-color var(--t-fast);
}

.qa:hover {
  background: rgba(125, 175, 230, 0.06);
  border-color: var(--border);
}

.qa .qa-i {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  color: var(--brand);
  background: var(--brand-dim);
}

.qa .qa-t {
  display: block;
  font-weight: 600;
  font-size: var(--fs-body);
}

.qa .qa-s {
  display: block;
  color: var(--text-3);
  font-size: var(--fs-meta);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qa .qa-go {
  color: var(--text-3);
}

.qa.danger {
  margin-top: 6px;
  border-color: rgba(244, 63, 94, 0.25);
}

.qa.danger .qa-i {
  color: var(--red);
  background: var(--red-dim);
}

.qa.danger:hover {
  background: var(--red-dim);
  border-color: rgba(244, 63, 94, 0.5);
}

/* ---------- toasts ---------- */

#toasts {
  position: fixed;
  right: 18px;
  bottom: calc(var(--statusbar-h) + 14px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 60;
  max-width: 420px;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-2);
  animation: fade-up var(--t-slow) var(--ease);
  font-size: var(--fs-caption);
}

.toast .ico {
  margin-top: 1px;
}

.toast.leaving {
  opacity: 0;
  transition: opacity var(--t-slow);
}

.toast-success {
  border-color: rgba(52, 211, 153, 0.45);
}
.toast-success .ico {
  color: var(--green);
}
.toast-error {
  border-color: rgba(244, 63, 94, 0.5);
}
.toast-error .ico {
  color: var(--red);
}
.toast-warn {
  border-color: rgba(251, 191, 36, 0.45);
}
.toast-warn .ico {
  color: var(--yellow);
}
.toast-info .ico {
  color: var(--brand);
}

.toast-msg {
  flex: 1;
  min-width: 0;
  word-break: break-word;
}

.toast-x {
  background: none;
  border: 0;
  color: var(--text-3);
  padding: 0;
}

.toast-x:hover {
  color: var(--text);
}

/* ---------- modal ---------- */

#modal-root {
  display: none;
}

#modal-root.open {
  display: block;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  background: rgba(2, 8, 18, 0.72);
  backdrop-filter: blur(6px);
  animation: fade-up var(--t-fast);
}

.modal {
  width: min(520px, calc(100vw - 48px));
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  padding: var(--sp-5);
}

.modal-danger {
  border-color: rgba(244, 63, 94, 0.5);
  box-shadow: var(--shadow-2), var(--glow-red);
}

.modal-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--sp-3);
}

.modal-head .ico {
  color: var(--brand);
}

.modal-danger .modal-head .ico {
  color: var(--red);
}

.modal-head h3 {
  font-size: var(--fs-section);
  font-weight: 650;
}

.modal-body {
  color: var(--text-2);
  font-size: var(--fs-body);
}

.modal-body ul {
  margin: 8px 0;
}

.modal-body li {
  margin: 3px 0;
}

.modal-body .keep {
  color: var(--green);
}

.modal-body .destroy {
  color: var(--red);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: var(--sp-5);
}

/* ---------- brand lockup (About / onboarding only) ---------- */

.brand-lockup {
  display: grid;
  place-items: center;
  padding: var(--sp-4);
}

.brand-lockup img {
  width: min(320px, 100%);
  mix-blend-mode: screen;
}

.brand-glyph {
  width: 28px;
  height: 28px;
  object-fit: contain;
}


/* Dashboard: hero environment, security state, trust, core tools, findings, side column. */

.dash {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(320px, 24%, 420px);
  gap: var(--sp-5);
  align-items: start;
}

.dash-full {
  grid-column: 1 / -1;
}

.dash-main,
.dash-side {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  min-width: 0;
}

/* ---- hero ---- */

.hero {
  position: relative;
  min-height: 236px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-1);
  box-shadow: var(--shadow-1);
}

.hero-art {
  position: absolute;
  inset: 0;
  background-image: url("assets/environment/hills-1300.webp");
  background-size: cover;
  background-position: 62% 42%;
  background-repeat: no-repeat;
  opacity: 0.95;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.35) 28%, #000 55%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.35) 28%, #000 55%);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--bg-1) 0%, rgba(4, 16, 29, 0.94) 26%, rgba(4, 16, 29, 0.45) 55%, rgba(4, 16, 29, 0.18) 100%),
    linear-gradient(180deg, rgba(4, 16, 29, 0.1) 0%, transparent 35%, rgba(4, 16, 29, 0.85) 100%);
}

.hero-copy {
  position: relative;
  padding: 30px 36px 28px;
  max-width: 620px;
}

.hero-welcome {
  font-size: var(--fs-caption);
  color: var(--text-2);
  margin-bottom: 8px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--text);
  text-shadow: 0 2px 20px rgba(2, 8, 18, 0.8);
}

.hero-title span {
  display: block;
}

.hero-title .accent {
  color: var(--brand);
}

.hero-sub {
  margin-top: 12px;
  color: var(--text-2);
  font-size: var(--fs-body);
  max-width: 46ch;
}

.hero-sub b {
  color: var(--text);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.hero-phrase {
  position: absolute;
  right: 32px;
  bottom: 22px;
  text-align: right;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.32em;
  line-height: 1.7;
  color: rgba(233, 241, 249, 0.75);
  text-shadow: 0 2px 12px rgba(2, 8, 18, 0.9);
  pointer-events: none;
}

.hero-phrase span {
  display: block;
}

/* ---- trust panel ---- */

.trust-panel .panel-body {
  padding-top: var(--sp-4);
}

.trust-empty {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--sp-4);
}

.trust-empty .te-ico {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px dashed var(--border-strong);
  color: var(--text-3);
}

.trust-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border);
  font-size: var(--fs-meta);
  color: var(--text-3);
  flex-wrap: wrap;
}

/* ---- host datums ---- */

.host-datums .kv-grid {
  grid-template-columns: 1fr 1fr;
  row-gap: var(--sp-3);
}

/* ---- philosophy ---- */

.philosophy {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  padding: 20px 20px 92px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--bg-1);
}

.philosophy::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/environment/hills-800.webp");
  background-size: 140% auto;
  background-position: 50% 62%;
  background-repeat: no-repeat;
  opacity: 0.55;
  -webkit-mask-image: linear-gradient(180deg, transparent 22%, rgba(0, 0, 0, 0.7) 55%, #000 100%);
  mask-image: linear-gradient(180deg, transparent 22%, rgba(0, 0, 0, 0.7) 55%, #000 100%);
}

.philosophy::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg-1) 0%, rgba(4, 16, 29, 0.6) 45%, rgba(4, 16, 29, 0.25) 100%);
}

.philosophy > * {
  position: relative;
  z-index: 1;
}

.philosophy .quote {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  letter-spacing: -0.005em;
}

.philosophy .quote-by {
  margin-top: 8px;
  font-size: var(--fs-caption);
  color: var(--text-2);
}

.philosophy .tagline {
  position: absolute;
  left: 20px;
  bottom: 18px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  line-height: 1.7;
  color: rgba(233, 241, 249, 0.8);
  text-shadow: 0 2px 10px rgba(2, 8, 18, 0.9);
}

.philosophy .tagline span {
  display: block;
}

/* ---- responsive ---- */

@media (max-width: 1360px) {
  .dash {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}

@media (max-width: 1180px) {
  .dash {
    grid-template-columns: minmax(0, 1fr);
  }
  .state-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-phrase {
    display: none;
  }
  .dash-side {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
  .dash-side .philosophy {
    grid-column: 1 / -1;
    min-height: 180px;
  }
}

@media (max-width: 1040px) {
  .hero-title {
    font-size: 28px;
  }
  .tool-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* ---------- downloads page ---------- */

.dl-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dl-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  transition: background var(--t-fast), border-color var(--t-fast);
}

.dl-row:hover {
  background: rgba(125, 175, 230, 0.05);
  border-color: var(--border);
}

.dl-ico {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  color: var(--brand);
  background: var(--brand-dim);
}

.dl-main {
  min-width: 0;
}

.dl-name {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dl-meta {
  display: flex;
  gap: 12px;
  font-size: var(--fs-meta);
  color: var(--text-3);
  min-width: 0;
}

.dl-meta .ellipsis {
  max-width: 360px;
  font-family: var(--font-mono);
}

.dl-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}


/* GentzyCloak release site — additions on top of the application's own stylesheets.
   Everything above this file is copied verbatim from src/renderer/styles at build time,
   so the site and the desktop app share one visual language. Powered by LordMoritz. */

/* The desktop shell is fixed to the viewport; a web page must also work on phones. */
#app {
  height: 100dvh;
  width: 100%;
}

/* ---------- links that borrow button / row styling ---------- */

a.btn,
a.cmd-field,
a.sb-item,
a.nav-item,
a.qa,
a.state-module,
a.panic-btn,
a.tool-module {
  text-decoration: none;
}

a.state-module {
  cursor: pointer;
  text-align: left;
}

a.state-module:hover {
  border-color: color-mix(in srgb, var(--tone) 45%, transparent);
}

.nav-item[aria-current="page"] {
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.16), rgba(56, 189, 248, 0.04));
  border-color: rgba(56, 189, 248, 0.22);
  color: var(--text);
}

.nav-item[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--brand);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.8);
}

.nav-item[aria-current="page"] .nav-ico {
  color: var(--brand);
}

.btn[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

/* ---------- topbar: mobile menu button and version identity ---------- */

.menu-btn {
  display: none;
  flex: 0 0 auto;
  color: var(--text-2);
}

.topbar-identity .id-user {
  font-family: var(--font-display);
  font-weight: 650;
  color: var(--text);
}

.cmd-field {
  cursor: pointer;
}

/* ---------- sections ---------- */

.site-section {
  scroll-margin-top: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  min-width: 0;
}

.hero-sub {
  max-width: 54ch;
}

/* ---------- platform download cards ---------- */

.dl-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-3);
}

.dl-card {
  --tone: var(--brand);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 18px 16px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, color-mix(in srgb, var(--tone) 9%, transparent), transparent 55%), var(--surface);
  min-width: 0;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.dl-card:hover {
  border-color: color-mix(in srgb, var(--tone) 45%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--tone) 18%, transparent), 0 14px 30px rgba(0, 0, 0, 0.35);
}

.dl-card.recommended {
  border-color: color-mix(in srgb, var(--tone) 55%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--tone) 25%, transparent), 0 0 22px color-mix(in srgb, var(--tone) 14%, transparent);
}

.dl-card .dl-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dl-card .tm-ico {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  color: var(--tone);
  background: color-mix(in srgb, var(--tone) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--tone) 30%, transparent);
}

.dl-card .dl-you {
  display: none;
}

.dl-card.recommended .dl-you {
  display: inline-flex;
}

.dl-card .tm-title {
  font-family: var(--font-display);
  font-size: var(--fs-section);
  font-weight: 650;
}

.dl-card .dl-kind {
  color: var(--text-2);
  font-size: var(--fs-caption);
}

.dl-card .dl-req {
  color: var(--text-3);
  font-size: var(--fs-meta);
  min-height: 2.8em;
}

.dl-card .dl-facts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.hash-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 7px 8px 7px 10px;
  border-radius: var(--r-md);
  background: var(--bg-1);
  border: 1px solid var(--border);
}

.hash-row .ico {
  color: var(--cyan);
  flex: 0 0 auto;
}

.hash-row code {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-2);
  font-size: 11px;
}

.hash-row .btn {
  flex: 0 0 auto;
}

.dl-card .dl-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  flex-wrap: wrap;
}

.dl-card .dl-actions .btn-primary {
  flex: 1 1 auto;
}

.dl-card.unpublished {
  opacity: 0.85;
}

.tone-windows {
  --tone: var(--brand);
}
.tone-macos {
  --tone: var(--cyan);
}
.tone-linux {
  --tone: var(--violet);
}

/* ---------- releases table ---------- */

.data-table td.hash {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  color: var(--text-2);
}

.data-table td .btn {
  vertical-align: middle;
  margin-left: 6px;
}

.data-table td a {
  color: var(--text);
  text-decoration: none;
}

.data-table td a:hover {
  color: var(--brand);
  text-decoration: underline;
}

/* ---------- verify ---------- */

.drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 132px;
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  border: 1px dashed var(--border-strong);
  background: var(--bg-1);
  color: var(--text-2);
  text-align: center;
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}

.drop:hover,
.drop:focus-within {
  border-color: var(--border-active);
  background: rgba(56, 189, 248, 0.05);
}

.drop.over {
  border-color: var(--brand);
  border-style: solid;
  box-shadow: var(--glow-brand);
}

.drop .empty-ico {
  color: var(--brand);
}

.drop .drop-title {
  font-family: var(--font-display);
  font-size: var(--fs-section);
  font-weight: 600;
  color: var(--text);
}

.drop p {
  max-width: 48ch;
  margin: 0;
  font-size: var(--fs-caption);
}

.drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.verify-result {
  margin-top: var(--sp-3);
}

.verify-result .kv {
  grid-template-columns: 110px minmax(0, 1fr);
}

.verify-result .kv-v.mono {
  word-break: break-all;
}

.cmd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--sp-3);
}

.cmd-grid .datum .k {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cmd-grid .code-block {
  margin-top: 4px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.cmd-grid .code-block code {
  flex: 1;
  min-width: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ---------- security posture ---------- */

.posture {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-5);
}

.posture h3 {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: var(--fs-heading);
  font-weight: 600;
  margin-bottom: 8px;
}

.posture .ok h3 {
  color: var(--green);
}

.posture .no h3 {
  color: var(--yellow);
}

.posture ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.posture li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  font-size: var(--fs-caption);
  color: var(--text-2);
  line-height: 1.45;
}

.posture li .ico {
  margin-top: 2px;
}

.posture .ok li .ico {
  color: var(--green);
}

.posture .no li .ico {
  color: var(--yellow);
}

.posture li b {
  color: var(--text);
  font-weight: 600;
}

/* ---------- getting started steps ---------- */

.steps {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  counter-reset: step;
}

.steps li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  counter-increment: step;
  font-size: var(--fs-caption);
  color: var(--text-2);
}

.steps li::before {
  content: counter(step);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: var(--brand-dim);
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 600;
}

.steps li b {
  display: block;
  color: var(--text);
  font-weight: 600;
  font-size: var(--fs-body);
}

/* ---------- docs list ---------- */

.doc-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}

/* ---------- 404 ---------- */

.lost {
  min-height: 100%;
  display: grid;
  place-items: center;
}

/* ---------- responsive: the app is desktop-only; the site is not ---------- */

@media (max-width: 1180px) {
  .dl-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1040px) {
  .dl-grid,
  .posture,
  .doc-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  #app,
  #app[data-nav="compact"] {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: var(--topbar-h) minmax(0, 1fr) auto;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(300px, 86vw);
    z-index: 80;
    transform: translateX(-100%);
    transition: transform var(--t-slow) var(--ease);
    box-shadow: var(--shadow-2);
  }

  #app[data-menu="open"] .sidebar {
    transform: none;
  }

  #app[data-nav="compact"] .brand-name,
  #app[data-nav="compact"] .nav-item .nav-text,
  #app[data-nav="compact"] .sidebar-guardian,
  #app[data-nav="compact"] .sidebar-foot {
    display: revert;
  }

  #app[data-nav="compact"] .nav-item {
    grid-template-columns: auto minmax(0, 1fr);
    justify-items: stretch;
    padding: 8px 10px;
  }

  #app[data-nav="compact"] .sidebar-brand {
    justify-content: flex-start;
    padding: 0 16px;
  }

  .nav-collapse,
  .header-toggle {
    display: none;
  }

  .menu-btn {
    display: inline-flex;
  }

  .menu-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 75;
    background: rgba(2, 8, 18, 0.6);
    backdrop-filter: blur(3px);
  }

  #app[data-menu="open"] .menu-backdrop {
    display: block;
  }

  .topbar,
  .workspace,
  .statusbar {
    grid-column: 1;
  }

  .topbar {
    padding: 0 12px;
    gap: 8px;
  }

  .topbar-title .crumb-sub,
  .cmd-field span,
  .cmd-field kbd,
  .topbar-status .sig > span:not(.dot) {
    display: none;
  }

  .cmd-field {
    flex: 0 0 auto;
    width: 36px;
    justify-content: center;
    padding: 0;
  }

  .panic-btn .lbl {
    display: none;
  }

  .panic-btn {
    width: 34px;
    padding: 0;
  }

  .statusbar {
    height: auto;
    flex-wrap: wrap;
    padding: 8px 12px;
    gap: 8px 12px;
    row-gap: 6px;
  }

  .sb-item.sb-source .sb-v {
    max-width: 200px;
  }

  .page {
    padding: var(--sp-4) var(--sp-4) var(--sp-7);
  }

  .hero {
    min-height: 0;
  }

  .hero-copy {
    padding: 22px 20px 22px;
  }

  .hero-title {
    font-size: 26px;
  }

  .state-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .dash-side {
    grid-template-columns: minmax(0, 1fr);
  }

  .kv-grid {
    grid-template-columns: 1fr 1fr;
  }

  .data-table td,
  .data-table th {
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .topbar-identity {
    display: none;
  }
  .hero-actions .btn {
    width: 100%;
  }
}

/* ---------- wrappers that the app sets with inline style (not allowed under the site CSP) ---------- */

.sm-text,
.qa-text {
  min-width: 0;
}

.state-module .sm-k,
.state-module .sm-v,
.state-module .sm-s {
  display: block;
}

.drop.busy {
  pointer-events: none;
  opacity: 0.7;
}

.kv-list {
  margin-top: var(--sp-3);
}
