/* getkiebitz.com — Precision Dark-First Network Instrument Identity */

:root {
  /* Core dark-first carbon oscilloscope palette */
  --bg: #070a0f;
  --bg-elevated: #0c1118;
  --surface: #0f1620;
  --surface-subtle: #151f2d;
  --fg: #eef3f9;
  --muted: #8b9bb1;
  --accent: #18e5a9;
  --accent-dim: rgba(24, 229, 169, 0.14);
  --cyan: #38bdf8;
  --purple: #a855f7;
  --teal: #18e5a9;
  --teal-hover: #3ef2be;
  --on-teal: #031711;
  --line: rgba(148, 179, 206, 0.14);
  --line-strong: rgba(148, 179, 206, 0.26);

  /* Inverted high-contrast light security dossier band */
  --paper: #edf3f0;
  --paper-surface: #ffffff;
  --paper-fg: #091118;
  --paper-muted: #3d4d5c;
  --paper-line: rgba(9, 17, 24, 0.13);
  --paper-accent: #047857;

  /* Typography: crisp native macOS Display + SF Mono instrument accents */
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Monaco, Consolas, monospace;

  --text-heading: clamp(1.8rem, 3vw, 2.55rem);
  --text-body: 1.02rem;
  --text-sm: 0.86rem;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 var(--text-body)/1.6 var(--sans);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

[hidden] {
  display: none !important;
}

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

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--on-teal);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  left: 16px;
}

.wrap {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Floating Command-Bar Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(7, 10, 15, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  transition: background-color 200ms var(--ease), border-color 200ms var(--ease);
}

.site-header.is-scrolled {
  background: rgba(7, 10, 15, 0.92);
  border-bottom-color: var(--line-strong);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
}

.brand-group {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  text-decoration: none;
  font: 700 1.18rem/1 var(--display);
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 4px 12px rgba(0, 0, 0, 0.45);
}

.header-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--line);
  background: rgba(15, 22, 32, 0.85);
  font: 500 0.72rem/1 var(--mono);
  color: var(--muted);
  white-space: nowrap;
}

.header-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(24, 229, 169, 0.7);
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  transition: color 150ms var(--ease);
  white-space: nowrap;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--fg);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
}

.nav .lang-switch a,
.nav .lang-switch span {
  padding: 4px 8px;
  border-radius: 4px;
  font: 600 0.72rem/1 var(--mono);
  letter-spacing: 0.04em;
}

.nav .lang-switch span {
  background: var(--surface-subtle);
  color: var(--accent);
}

.nav a.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--on-teal);
  font: 600 0.82rem/1 var(--sans);
  transition: background-color 150ms var(--ease), transform 150ms var(--ease);
}

.nav a.nav-cta:hover {
  background: var(--teal-hover);
  color: var(--on-teal);
  transform: translateY(-1px);
}

.soon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: rgba(15, 22, 32, 0.7);
  color: var(--fg);
  font: 500 0.94rem/1 var(--sans);
  white-space: nowrap;
  text-decoration: none;
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease);
}

a.soon-box:hover {
  border-color: var(--accent);
  background: rgba(24, 229, 169, 0.08);
  color: var(--fg);
}

.btn-primary,
.btn-teal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--on-teal);
  font: 600 0.94rem/1 var(--sans);
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 24px -6px rgba(24, 229, 169, 0.55);
  transition: background-color 160ms var(--ease), transform 160ms var(--ease), box-shadow 160ms var(--ease);
}

.btn-primary:hover,
.btn-teal:hover {
  background: var(--teal-hover);
  color: var(--on-teal);
  transform: translateY(-1px);
  box-shadow: 0 4px 28px -4px rgba(24, 229, 169, 0.65);
}

.ic {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ---------- Asymmetric Split Hero + Precision Grid ---------- */
.hero {
  position: relative;
  padding: 58px 0 80px;
  overflow: hidden;
  background-image:
    radial-gradient(ellipse 68% 44% at 72% 8%, rgba(24, 229, 169, 0.11), transparent 65%),
    radial-gradient(ellipse 52% 38% at 15% 22%, rgba(56, 189, 248, 0.08), transparent 60%),
    radial-gradient(rgba(148, 179, 206, 0.16) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 26px 26px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
  gap: 44px;
  align-items: center;
}

.hero-copy {
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 5px 11px;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(24, 229, 169, 0.32);
  background: rgba(24, 229, 169, 0.08);
  font: 600 0.74rem/1.2 var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.35rem, 5.2vw, 4.15rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin: 0 0 20px;
  max-width: 14ch;
  text-wrap: balance;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(110deg, #18e5a9 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 1.06rem;
  line-height: 1.62;
  color: var(--muted);
  max-width: 54ch;
  margin: 0 0 28px;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-meta {
  margin: 16px 0 0;
  font: 400 0.8rem/1.5 var(--mono);
  color: var(--muted);
  max-width: 60ch;
}

/* Right Hero Telemetry Instrument Card */
.hero-telemetry {
  background: rgba(12, 17, 24, 0.92);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 32px 64px -28px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(24, 229, 169, 0.08);
}

.tel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(21, 31, 45, 0.7);
  border-bottom: 1px solid var(--line);
}

.tel-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tel-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.tel-brand strong {
  display: block;
  font: 700 0.92rem/1.2 var(--display);
  color: var(--fg);
}

.tel-brand span {
  display: block;
  margin-top: 2px;
  font: 400 0.72rem/1.2 var(--mono);
  color: var(--muted);
}

.tel-badge {
  font: 600 0.68rem/1 var(--mono);
  letter-spacing: 0.04em;
  color: var(--accent);
  background: rgba(24, 229, 169, 0.12);
  border: 1px solid rgba(24, 229, 169, 0.3);
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  white-space: nowrap;
}

.tel-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.tel-metric {
  background: var(--bg-elevated);
  padding: 15px 16px;
}

.tel-metric strong {
  display: block;
  font: 700 1.4rem/1.1 var(--mono);
  letter-spacing: -0.03em;
  color: var(--fg);
}

.tel-metric strong.is-accent {
  color: var(--accent);
}

.tel-metric span {
  display: block;
  margin-top: 5px;
  font-size: 0.74rem;
  line-height: 1.35;
  color: var(--muted);
}

.tel-stream {
  padding: 12px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font: 400 0.72rem/1.35 var(--mono);
}

.tel-stream-title {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}

.tel-line {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 5px 8px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.tel-code {
  font-weight: 700;
  font-size: 0.68rem;
  padding: 2px 5px;
  border-radius: 3px;
  text-align: center;
}

.tel-code.ok { background: rgba(48, 209, 88, 0.16); color: #5ee07f; }
.tel-code.mock { background: rgba(168, 85, 247, 0.2); color: #d8b4fe; }
.tel-code.warn { background: rgba(255, 159, 10, 0.2); color: #ffb340; }

.tel-path {
  color: var(--fg);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tel-ms {
  color: var(--muted);
  white-space: nowrap;
}

/* ---------- Workbench Stage & Real Kiebitz macOS App ---------- */
.workbench-stage {
  position: relative;
  z-index: 1;
  margin-top: 52px;
  scroll-margin-top: 84px;
}

.stage-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  font: 500 0.74rem/1.2 var(--mono);
  color: var(--muted);
  flex-wrap: wrap;
}

.stage-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
}

.stage-tag::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: rec-pulse 2.2s infinite;
}

.mac-window {
  --app-bg: #1b1c20;
  --app-toolbar: #25272d;
  --app-sidebar: #1f2127;
  --app-surface: #23252c;
  --app-elevated: #2c2f38;
  --app-pane: #16171b;
  --app-border: rgba(255, 255, 255, 0.09);
  --app-fg: #edf0f5;
  --app-muted: #9098a8;
  --app-blue: #0a84ff;
  --app-teal: #2dd4bf;
  --app-emerald: #10b981;
  --app-orange: #ff9f0a;
  --app-green: #30d158;
  --app-red: #ff453a;
  --app-purple: #a855f7;

  background: var(--app-bg);
  color: var(--app-fg);
  border-radius: 12px;
  border: 1px solid rgba(148, 179, 206, 0.22);
  box-shadow: 0 40px 100px -24px rgba(0, 0, 0, 0.85), 0 0 60px -20px rgba(24, 229, 169, 0.14);
  overflow: hidden;
  text-align: left;
  font-family: var(--sans);
}

.mac-window button {
  font-family: var(--sans);
}

/* Authentic Kiebitz macOS Toolbar */
.mac-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  background: var(--app-toolbar);
  border-bottom: 1px solid var(--app-border);
  min-height: 44px;
}

.tb-left,
.tb-right {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.traffic-lights {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  margin-right: 6px;
}

.traffic-lights span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.traffic-lights span:nth-child(1) { background: #ff5f57; }
.traffic-lights span:nth-child(2) { background: #febc2e; }
.traffic-lights span:nth-child(3) { background: #28c840; }

.tb-btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--app-muted);
  font: 500 0.76rem/1 var(--sans);
  padding: 5px 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 140ms var(--ease), color 140ms var(--ease), border-color 140ms var(--ease);
}

.tb-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--app-fg);
}

.tb-btn.is-active {
  background: rgba(10, 132, 255, 0.24);
  border-color: rgba(10, 132, 255, 0.42);
  color: #ffffff;
}

.tb-btn.is-icon-only {
  padding: 5px 6px;
}

.tb-port-btn.is-on {
  color: var(--app-green);
  background: rgba(48, 209, 88, 0.1);
  border-color: rgba(48, 209, 88, 0.25);
}

.tb-proxy.is-on {
  color: #60a5fa;
  background: rgba(10, 132, 255, 0.12);
  border-color: rgba(10, 132, 255, 0.3);
}

.tb-ic {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--app-muted);
  flex-shrink: 0;
}

.tb-port-btn.is-on .rec-dot {
  background: var(--app-green);
  box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.6);
  animation: rec-pulse 2s infinite;
}

@keyframes rec-pulse {
  0% { box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.55); }
  70% { box-shadow: 0 0 0 6px rgba(48, 209, 88, 0); }
  100% { box-shadow: 0 0 0 0 rgba(48, 209, 88, 0); }
}

.tb-badge {
  font-size: 0.66rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 99px;
  background: rgba(168, 85, 247, 0.28);
  color: #e9d5ff;
}

.tb-shield-ok {
  color: var(--app-green);
}

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

/* Segmented control */
.segmented {
  display: inline-flex;
  align-items: center;
  padding: 2px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--app-border);
  border-radius: 6px;
  gap: 2px;
}

.segmented [role="tab"] {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--app-muted);
  font: 500 0.72rem/1 var(--sans);
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 140ms var(--ease), color 140ms var(--ease);
  white-space: nowrap;
}

.segmented [role="tab"]:hover {
  color: var(--app-fg);
}

.segmented [role="tab"][aria-selected="true"] {
  background: var(--app-elevated);
  color: var(--app-fg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.segmented-light {
  background: var(--bg-elevated);
  border-color: var(--line);
  padding: 3px;
  border-radius: var(--radius-sm);
}

.segmented-light [role="tab"] {
  color: var(--muted);
  font-size: 0.78rem;
  padding: 6px 12px;
}

.segmented-light [role="tab"]:hover {
  color: var(--fg);
}

.segmented-light [role="tab"][aria-selected="true"] {
  background: var(--surface-subtle);
  color: var(--accent);
}

/* App shell: 3-pane NavigationSplitView */
.app-shell {
  display: grid;
  grid-template-columns: 214px minmax(0, 1fr);
  height: 600px;
}

.app-sidebar {
  background: var(--app-sidebar);
  border-right: 1px solid var(--app-border);
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  user-select: none;
  overflow-y: auto;
}

.sb-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 0 8px 4px;
}

.sb-group-title {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--app-muted);
  letter-spacing: 0.01em;
}

.sb-sort-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--app-muted);
  font: 500 0.64rem/1 var(--sans);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
}

.sb-sort-btn:hover {
  color: var(--app-fg);
  background: rgba(255, 255, 255, 0.06);
}

.sb-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.sb-item {
  width: 100%;
  appearance: none;
  border: none;
  background: transparent;
  color: var(--app-fg);
  font: 400 0.78rem/1.2 var(--sans);
  padding: 5px 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 7px;
  text-align: left;
  cursor: pointer;
  transition: background-color 120ms var(--ease);
}

.sb-item.is-child {
  padding-left: 26px;
  font-size: 0.73rem;
  color: var(--app-muted);
}

.sb-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--app-fg);
}

.sb-item.is-active {
  background: var(--app-blue);
  color: #ffffff;
  font-weight: 500;
}

.sb-item .sb-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sb-count {
  font: 500 0.68rem/1 var(--mono);
  color: var(--app-muted);
}

.sb-count.is-warn {
  color: var(--app-orange);
}

.sb-count.is-rule {
  color: #c084fc;
}

.sb-item.is-active .sb-count,
.sb-item.is-active .tb-ic {
  color: rgba(255, 255, 255, 0.9);
}

.sb-item .tb-ic {
  color: var(--app-muted);
}

.sb-app-badge {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 700 0.58rem/1 var(--sans);
  flex-shrink: 0;
}

.sb-app-badge.nord { background: linear-gradient(135deg, #14b8a6, #0ea5e9); color: #fff; }
.sb-app-badge.saf { background: linear-gradient(135deg, #38bdf8, #2563eb); color: #fff; }
.sb-app-badge.fin { background: linear-gradient(135deg, #f59e0b, #ea580c); color: #fff; }

.app-detail {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.wb-panel {
  display: none;
  flex: 1;
  min-width: 0;
  min-height: 0;
}

.wb-panel.is-active {
  display: flex;
  flex-direction: column;
}

.mobile-view-bar {
  display: none;
  padding: 8px 12px;
  background: var(--app-sidebar);
  border-bottom: 1px solid var(--app-border);
}

/* Quick Filter Bar ABOVE Flow Table (authentic MainWorkspaceView.swift) */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--app-border);
  flex-wrap: wrap;
}

.tb-search {
  flex: 1;
  min-width: 140px;
  max-width: 280px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  height: 26px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--app-border);
  color: var(--app-muted);
}

.tb-search input {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--app-fg);
  font: 400 0.75rem/1 var(--sans);
  width: 100%;
  min-width: 0;
  outline: none;
}

.tb-search input::placeholder {
  color: var(--app-muted);
}

.tb-search:focus-within {
  border-color: rgba(10, 132, 255, 0.65);
  box-shadow: 0 0 0 2px rgba(10, 132, 255, 0.22);
}

.filter-chip {
  appearance: none;
  border: 1px solid var(--app-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--app-muted);
  font: 500 0.7rem/1 var(--sans);
  padding: 5px 8px;
  border-radius: 5px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 120ms var(--ease), color 120ms var(--ease), border-color 120ms var(--ease);
}

.filter-chip:hover {
  color: var(--app-fg);
  background: rgba(255, 255, 255, 0.09);
}

.filter-chip[aria-pressed="true"] {
  background: rgba(10, 132, 255, 0.26);
  border-color: rgba(10, 132, 255, 0.55);
  color: #ffffff;
}

.filter-spacer {
  flex: 1;
}

.filter-export {
  appearance: none;
  border: 1px solid var(--app-border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--app-fg);
  font: 500 0.7rem/1 var(--sans);
  padding: 5px 9px;
  border-radius: 5px;
  cursor: pointer;
  white-space: nowrap;
}

.filter-export:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Native AppKit NSTableView (9 columns matching FlowTableView.swift) */
.flow-table {
  flex: 0 0 auto;
  border-bottom: 1px solid var(--app-border);
  background: var(--app-bg);
  max-height: 204px;
  overflow-y: auto;
}

.flow-head,
.flow-row {
  display: grid;
  grid-template-columns: 118px 54px 54px minmax(0, 1fr) 64px 108px 50px 58px 58px;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
}

.flow-head {
  position: sticky;
  top: 0;
  z-index: 1;
  height: 25px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--app-muted);
  background: var(--app-surface);
  border-bottom: 1px solid var(--app-border);
}

.flow-sort-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  text-align: left;
}

.flow-sort-btn.num {
  justify-content: flex-end;
  width: 100%;
}

.flow-sort-btn:hover,
.flow-sort-btn.is-sorted {
  color: var(--app-fg);
}

.flow-head .num,
.flow-row .num {
  text-align: right;
}

.flow-row {
  width: 100%;
  height: 27px;
  appearance: none;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  background: transparent;
  color: var(--app-fg);
  font: 400 0.74rem/1 var(--sans);
  text-align: left;
  cursor: pointer;
  transition: background-color 110ms var(--ease);
}

.flow-row:nth-child(odd) {
  background: rgba(255, 255, 255, 0.02);
}

.flow-row:hover {
  background: rgba(255, 255, 255, 0.055);
}

.flow-row.is-selected {
  background: var(--app-blue);
  color: #ffffff;
}

.flow-row[hidden] {
  display: none;
}

.flow-row.is-new {
  animation: row-in 900ms var(--ease);
}

@keyframes row-in {
  from { background: rgba(24, 229, 169, 0.3); }
}

.flow-started {
  font: 400 0.68rem/1 var(--mono);
  color: var(--app-muted);
  white-space: nowrap;
}

.flow-row.is-selected .flow-started,
.flow-row.is-selected .flow-proto,
.flow-row.is-selected .flow-client,
.flow-row.is-selected .num,
.flow-row.is-selected .flow-method,
.flow-row.is-selected .flow-host {
  color: rgba(255, 255, 255, 0.88);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 38px;
  padding: 2px 5px;
  border-radius: 4px;
  font: 700 0.68rem/1 var(--mono);
  background: rgba(48, 209, 88, 0.16);
  color: #5ee07f;
  white-space: nowrap;
}

.status-pill.s3 { background: rgba(146, 153, 168, 0.18); color: #c3c8d3; }
.status-pill.s4 { background: rgba(255, 159, 10, 0.18); color: #ffb340; }
.status-pill.s5 { background: rgba(255, 69, 58, 0.2); color: #ff7b72; }
.status-pill.tls { background: rgba(255, 159, 10, 0.2); color: #ffb340; }
.status-pill.tunnel { background: rgba(146, 153, 168, 0.18); color: #c3c8d3; }

.flow-row.is-selected .status-pill {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.flow-method {
  font: 600 0.7rem/1 var(--mono);
  color: var(--app-muted);
}

.flow-url {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.flow-host {
  color: var(--app-muted);
  white-space: nowrap;
  font-size: 0.72rem;
}

.flow-path {
  font-family: var(--mono);
  font-size: 0.71rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.rule-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  border-radius: 4px;
  font: 600 0.62rem/1 var(--sans);
  background: rgba(168, 85, 247, 0.24);
  color: #e9d5ff;
  white-space: nowrap;
}

.flow-row.is-selected .rule-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.flow-client,
.flow-proto {
  color: var(--app-muted);
  font-size: 0.7rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flow-proto {
  font-family: var(--mono);
  font-size: 0.66rem;
}

.flow-row .num {
  font-family: var(--mono);
  font-size: 0.69rem;
  color: var(--app-muted);
}

.flow-empty {
  padding: 18px 14px;
  font-size: 0.78rem;
  color: var(--app-muted);
}

/* Authentic Dual-Pane Split Inspector (FlowInspectorView.swift) */
.inspector {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--app-pane);
}

.insp-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--app-border);
  min-width: 0;
  flex-wrap: wrap;
}

.insp-method {
  font: 700 0.68rem/1 var(--mono);
  padding: 3px 6px;
  border-radius: 4px;
  background: rgba(10, 132, 255, 0.18);
  color: #60a5fa;
}

.insp-url {
  font: 400 0.74rem/1.3 var(--mono);
  color: var(--app-fg);
  min-width: 0;
  flex: 1 1 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.insp-bar-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.insp-btn {
  appearance: none;
  border: 1px solid var(--app-border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--app-fg);
  font: 500 0.7rem/1 var(--sans);
  padding: 5px 8px;
  border-radius: 5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: background-color 120ms var(--ease), filter 120ms var(--ease);
}

.insp-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.insp-btn.is-purple {
  background: var(--app-purple);
  border-color: var(--app-purple);
  color: #ffffff;
  font-weight: 600;
}

.insp-btn.is-purple:hover {
  filter: brightness(1.1);
}

.insp-btn.is-purple-outline {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.45);
  color: #e9d5ff;
  font-weight: 600;
}

/* Mock Active / Pause (Live BE) Banner */
.mock-banner {
  margin: 8px 10px 0;
  display: flex;
  align-items: stretch;
  border-radius: 7px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(38, 40, 48, 0.9);
}

.mock-banner-stripe {
  width: 3px;
  background: var(--app-purple);
  flex-shrink: 0;
}

.mock-banner.is-paused .mock-banner-stripe {
  background: var(--app-muted);
}

.mock-banner-inner {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px;
  flex-wrap: wrap;
}

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

.mock-banner-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--app-fg);
}

.mock-banner-title .tb-ic {
  color: #c084fc;
}

.mock-banner.is-paused .mock-banner-title .tb-ic {
  color: var(--app-muted);
}

.mock-banner-path {
  font: 400 0.66rem/1 var(--mono);
  color: var(--app-muted);
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 99px;
}

.mock-banner-sub {
  font-size: 0.68rem;
  color: var(--app-muted);
}

.mock-banner-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Split Request | Response panes */
.insp-split {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
}

.insp-split.is-vertical {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 0.48fr) minmax(0, 0.52fr);
}

.insp-pane {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.insp-pane + .insp-pane {
  border-left: 1px solid var(--app-border);
}

.insp-split.is-vertical .insp-pane + .insp-pane {
  border-left: 0;
  border-top: 1px solid var(--app-border);
}

.insp-pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid var(--app-border);
}

.insp-pane-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: 700 0.7rem/1 var(--sans);
  color: var(--app-muted);
}

.insp-pane-status {
  font: 700 0.7rem/1 var(--mono);
  color: var(--app-green);
}

.insp-pane-status.is-err {
  color: var(--app-red);
}

.insp-pane-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 8px 0;
}

.insp-single {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 10px 0;
}

/* JWT Viewer card inside Request -> JWT */
.jwt-card {
  margin: 2px 12px 8px;
  padding: 10px 12px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--app-border);
  font: 400 0.72rem/1.55 var(--mono);
}

.jwt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.74rem;
}

.jwt-badge {
  font: 600 0.64rem/1 var(--sans);
  padding: 3px 7px;
  border-radius: 99px;
}

.jwt-badge.is-ok { background: rgba(48, 209, 88, 0.16); color: #5ee07f; }
.jwt-badge.is-exp { background: rgba(255, 69, 58, 0.2); color: #ff7b72; }

.raw-pre {
  margin: 0;
  padding: 2px 12px 10px;
  font: 400 0.71rem/1.55 var(--mono);
  color: var(--app-fg);
  white-space: pre-wrap;
  word-break: break-word;
}

/* JSON tree (NSOutlineView look) */
.json-tree {
  list-style: none;
  margin: 0;
  padding: 0;
  font: 400 0.74rem/1.68 var(--mono);
}

.jt-row {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 12px;
  white-space: nowrap;
  border-left: 3px solid transparent;
}

.jt-row.is-modified {
  background: rgba(168, 85, 247, 0.14);
  border-left-color: var(--app-purple);
}

.jt-caret {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--app-muted);
  width: 16px;
  height: 16px;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 140ms var(--ease);
  flex-shrink: 0;
}

.jt-caret[aria-expanded="false"] {
  transform: rotate(-90deg);
}

.jt-spacer {
  width: 16px;
  flex-shrink: 0;
}

.jt-key { color: #7dd3fc; }
.jt-str { color: #fca5a5; }
.jt-num { color: #fde047; }
.jt-bool { color: #f472b6; }
.jt-null { color: #f472b6; font-style: italic; }
.jt-meta { color: var(--app-muted); margin-right: 6px; }
.jt-caret,
.jt-spacer { margin-right: 4px; }

.jt-flag {
  margin-left: 8px;
  font: 600 0.62rem/1 var(--sans);
  color: #e9d5ff;
  padding: 2px 6px;
  border-radius: 99px;
  background: rgba(168, 85, 247, 0.25);
}

/* Header & key-value tables */
.kv-group {
  padding: 0 12px 10px;
}

.kv-table {
  width: 100%;
  border-collapse: collapse;
  font: 400 0.72rem/1.5 var(--mono);
}

.kv-table td {
  padding: 3px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  vertical-align: top;
}

.kv-table td:first-child {
  color: #7dd3fc;
  width: 38%;
  padding-right: 10px;
  word-break: break-all;
}

.kv-table td:last-child {
  color: var(--app-fg);
  word-break: break-all;
}

.kv-table tr.is-modified td {
  background: rgba(168, 85, 247, 0.14);
}

.kv-note {
  display: inline-block;
  margin-left: 6px;
  font: 600 0.62rem/1.2 var(--sans);
  padding: 2px 6px;
  border-radius: 99px;
  background: rgba(255, 159, 10, 0.2);
  color: var(--app-orange);
}

/* Timing waterfall */
.timing {
  padding: 4px 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.timing-row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) 62px;
  gap: 8px;
  align-items: center;
  font-size: 0.72rem;
}

.timing-label {
  color: var(--app-muted);
}

.timing-track {
  position: relative;
  height: 9px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.05);
}

.timing-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 3px;
  background: var(--app-blue);
  min-width: 2px;
}

.timing-bar.is-wait { background: var(--app-emerald); }
.timing-bar.is-tls { background: var(--app-purple); }
.timing-bar.is-rule { background: var(--app-teal); }

.timing-ms {
  font-family: var(--mono);
  color: var(--app-fg);
  text-align: right;
}

.timing-total {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--app-border);
  font: 600 0.72rem/1.4 var(--mono);
  color: var(--app-fg);
  display: flex;
  justify-content: space-between;
}

.insp-empty {
  padding: 12px;
  font-size: 0.76rem;
  color: var(--app-muted);
}

/* Diagnostics card (SSL pinning) */
.diag-card {
  margin: 4px 12px 12px;
  border: 1px solid rgba(255, 159, 10, 0.35);
  background: rgba(255, 159, 10, 0.07);
  border-radius: 9px;
  padding: 12px 14px;
}

.diag-card.is-resolved {
  border-color: rgba(48, 209, 88, 0.35);
  background: rgba(48, 209, 88, 0.07);
}

.diag-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.diag-title {
  margin: 0;
  font: 600 0.84rem/1.35 var(--sans);
  color: var(--app-fg);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.diag-title .tb-ic {
  width: 16px;
  height: 16px;
  color: var(--app-orange);
  margin-top: 1px;
}

.diag-card.is-resolved .diag-title .tb-ic {
  color: var(--app-green);
}

.confidence {
  font: 600 0.64rem/1 var(--sans);
  padding: 4px 8px;
  border-radius: 99px;
  background: rgba(255, 159, 10, 0.2);
  color: var(--app-orange);
  white-space: nowrap;
}

.diag-summary {
  margin: 7px 0 9px;
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--app-fg);
  opacity: 0.9;
}

.diag-evidence {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.diag-evidence li {
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--app-muted);
  padding-left: 13px;
  position: relative;
}

.diag-evidence li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.6em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--app-orange);
}

.diag-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.app-btn {
  appearance: none;
  border: 1px solid var(--app-border);
  background: var(--app-elevated);
  color: var(--app-fg);
  font: 500 0.74rem/1 var(--sans);
  padding: 7px 11px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 140ms var(--ease), border-color 140ms var(--ease);
}

.app-btn:hover {
  border-color: rgba(255, 255, 255, 0.24);
}

.app-btn.is-primary {
  background: var(--app-blue);
  border-color: var(--app-blue);
  color: #ffffff;
  font-weight: 600;
}

.app-btn.is-primary:hover {
  filter: brightness(1.08);
}

.app-btn.is-done {
  background: rgba(48, 209, 88, 0.16);
  border-color: rgba(48, 209, 88, 0.4);
  color: #5ee07f;
  cursor: default;
}

.app-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.playbook {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid var(--app-border);
}

.playbook ol {
  margin: 6px 0 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--app-fg);
}

.playbook code {
  font-family: var(--mono);
  font-size: 0.92em;
  color: var(--app-teal);
}

.playbook-note {
  margin: 8px 0 0;
  font-size: 0.68rem;
  color: var(--app-muted);
}

/* Visual rule / Mock editor view */
.rule-editor {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.rule-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 14px;
  background: var(--app-surface);
  border-bottom: 1px solid var(--app-border);
  flex-wrap: wrap;
}

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

.rule-title strong {
  font-size: 0.82rem;
  font-weight: 600;
}

.rule-title span {
  font-size: 0.7rem;
  color: var(--app-muted);
}

.switch {
  appearance: none;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--app-fg);
  font: 500 0.74rem/1 var(--sans);
  cursor: pointer;
  padding: 2px;
}

.switch-track {
  position: relative;
  width: 32px;
  height: 18px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.18);
  transition: background-color 160ms var(--ease);
  flex-shrink: 0;
}

.switch-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  transition: transform 180ms var(--ease);
}

.switch[aria-checked="true"] .switch-track {
  background: var(--app-purple);
}

.switch[aria-checked="true"] .switch-track::after {
  transform: translateX(14px);
}

.tpl-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-bottom: 1px solid var(--app-border);
  overflow-x: auto;
  scrollbar-width: none;
}

.tpl-strip::-webkit-scrollbar {
  display: none;
}

.tpl-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--app-muted);
  white-space: nowrap;
  margin-right: 2px;
}

.tpl-chip {
  appearance: none;
  border: 1px solid var(--app-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--app-muted);
  font: 500 0.7rem/1 var(--sans);
  padding: 5px 10px;
  border-radius: 99px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 140ms var(--ease), color 140ms var(--ease), border-color 140ms var(--ease);
}

.tpl-chip:hover {
  color: var(--app-fg);
}

.tpl-chip[aria-pressed="true"] {
  background: rgba(168, 85, 247, 0.2);
  border-color: rgba(168, 85, 247, 0.55);
  color: #e9d5ff;
}

.rule-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.rule-form {
  border-right: 1px solid var(--app-border);
  padding: 12px 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rule-block-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font: 700 0.68rem/1 var(--sans);
  letter-spacing: 0.04em;
  color: var(--app-muted);
  margin-bottom: 8px;
}

.rule-block-title .tb-ic {
  color: #c084fc;
}

.match-grid {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 6px 10px;
  align-items: center;
  font-size: 0.72rem;
}

.match-k {
  color: var(--app-muted);
}

.match-v {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.fake-select {
  font: 500 0.68rem/1 var(--sans);
  color: var(--app-fg);
  padding: 4px 7px;
  border-radius: 5px;
  background: var(--app-elevated);
  border: 1px solid var(--app-border);
  white-space: nowrap;
}

.fake-field {
  font: 400 0.7rem/1 var(--mono);
  color: var(--app-fg);
  padding: 5px 7px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.match-test {
  margin-top: 8px;
  font-size: 0.68rem;
  color: #5ee07f;
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.action-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 8px 10px;
  border-radius: 7px;
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  cursor: pointer;
  transition: border-color 140ms var(--ease), opacity 140ms var(--ease);
}

.action-item:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.action-item.is-off {
  opacity: 0.55;
}

.action-check {
  width: 15px;
  height: 15px;
  margin-top: 1px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 700;
  color: #ffffff;
}

.action-item:not(.is-off) .action-check {
  background: var(--app-purple);
  border-color: var(--app-purple);
}

.action-name {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--app-fg);
}

.action-detail {
  display: block;
  margin-top: 3px;
  font: 400 0.68rem/1.4 var(--mono);
  color: var(--app-muted);
  word-break: break-word;
}

.action-detail b {
  color: var(--app-teal);
  font-weight: 600;
}

.rule-preview {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: var(--app-pane);
}

.preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--app-border);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--app-fg);
  background: rgba(255, 255, 255, 0.02);
}

.preview-head span:last-child {
  font-weight: 400;
  color: var(--app-muted);
  font-family: var(--mono);
  font-size: 0.68rem;
}

.diff-lines {
  font: 400 0.72rem/1.6 var(--mono);
  overflow: auto;
  padding: 6px 0;
  flex: 1;
  min-height: 0;
}

.diff-row {
  display: grid;
  grid-template-columns: 28px 28px 18px minmax(0, 1fr);
  padding: 0 14px 0 6px;
  border-left: 3px solid transparent;
}

.diff-row.add {
  background: rgba(48, 209, 88, 0.13);
  border-left-color: rgba(48, 209, 88, 0.6);
}

.diff-row.del {
  background: rgba(255, 69, 58, 0.14);
  border-left-color: rgba(255, 69, 58, 0.55);
}

.diff-ln {
  color: rgba(146, 153, 168, 0.5);
  text-align: right;
  padding-right: 6px;
  user-select: none;
}

.diff-mark {
  text-align: center;
  font-weight: 700;
  user-select: none;
}

.diff-row.add .diff-mark { color: var(--app-green); }
.diff-row.del .diff-mark { color: var(--app-red); }

.diff-code {
  white-space: pre;
  color: var(--app-fg);
}

.rule-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 14px;
  border-top: 1px solid var(--app-border);
  background: var(--app-surface);
  flex-wrap: wrap;
}

.rule-foot-note {
  font-size: 0.7rem;
  color: var(--app-muted);
}

.rule-foot-actions {
  display: flex;
  gap: 8px;
}

/* Devices & Certs hub */
.hub-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: var(--app-surface);
  border-bottom: 1px solid var(--app-border);
  flex-wrap: wrap;
}

.hub-head strong {
  font-size: 0.82rem;
  font-weight: 600;
}

.hub-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 14px;
}

.hub-pane {
  display: none;
}

.hub-pane.is-active {
  display: block;
}

.ca-card {
  border: 1px solid var(--app-border);
  background: var(--app-surface);
  border-radius: 10px;
  padding: 14px 16px;
}

.ca-card + .ca-card {
  margin-top: 12px;
}

.ca-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.ca-seal {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(48, 209, 88, 0.16);
  color: var(--app-green);
  flex-shrink: 0;
}

.ca-seal.is-purple {
  background: rgba(168, 85, 247, 0.18);
  color: #c084fc;
}

.ca-seal .tb-ic {
  width: 18px;
  height: 18px;
}

.ca-card-head strong {
  display: block;
  font-size: 0.82rem;
}

.ca-card-head span {
  font-size: 0.7rem;
  color: var(--app-muted);
}

.ca-grid {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 6px 12px;
  font-size: 0.72rem;
}

.ca-k {
  color: var(--app-muted);
}

.ca-v {
  color: var(--app-fg);
  min-width: 0;
  overflow-wrap: anywhere;
}

.ca-v.mono {
  font-family: var(--mono);
  font-size: 0.68rem;
}

.ok-text {
  color: #5ee07f;
}

.ca-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.dev-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--app-border);
  border-radius: 10px;
  overflow: hidden;
}

.dev-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  background: var(--app-surface);
}

.dev-row + .dev-row {
  border-top: 1px solid var(--app-border);
}

.dev-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.dev-main .tb-ic {
  width: 18px;
  height: 18px;
  color: var(--app-muted);
}

.dev-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--app-fg);
}

.dev-sub {
  font: 400 0.68rem/1.4 var(--mono);
  color: var(--app-muted);
}

.dev-pill {
  display: inline-block;
  margin-left: 6px;
  font: 600 0.6rem/1 var(--sans);
  padding: 2px 6px;
  border-radius: 99px;
  background: rgba(48, 209, 88, 0.16);
  color: #5ee07f;
  vertical-align: 1px;
}

.dev-pill.is-off {
  background: rgba(255, 255, 255, 0.08);
  color: var(--app-muted);
}

.dev-pill.is-warn {
  background: rgba(255, 159, 10, 0.18);
  color: var(--app-orange);
}

.hub-note {
  margin: 12px 2px 0;
  font-size: 0.7rem;
  line-height: 1.5;
  color: var(--app-muted);
}

.hub-note code {
  font-family: var(--mono);
  color: var(--app-fg);
}

/* Status bar */
.app-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 12px;
  background: var(--app-toolbar);
  border-top: 1px solid var(--app-border);
  font-size: 0.7rem;
  color: var(--app-muted);
  min-height: 26px;
}

.status-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.status-sep {
  width: 1px;
  height: 11px;
  background: var(--app-border);
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 0.68rem;
}

.status-chip.is-ca {
  font-family: var(--sans);
  color: var(--app-green);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--app-green);
  flex-shrink: 0;
}

.status-dot.is-off {
  background: var(--app-red);
}

.status-msg {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--app-muted);
}

.status-count {
  font-family: var(--mono);
  font-size: 0.68rem;
  white-space: nowrap;
}

.wb-hint {
  margin: 14px 0 0;
  font: 400 0.8rem/1.55 var(--mono);
  color: var(--muted);
}

/* ---------- Asymmetric Technical Bento Grid ---------- */
.section {
  padding: 88px 0;
  scroll-margin-top: 64px;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px 48px;
  align-items: end;
  margin-bottom: 44px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.section-kicker {
  display: inline-block;
  margin: 0 0 10px;
  font: 600 0.72rem/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.section h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--text-heading);
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 52ch;
}

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

.bento-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  transition: border-color 180ms var(--ease);
}

.bento-card:hover {
  border-color: var(--line-strong);
}

.bento-card.is-wide {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 36px;
  align-items: start;
}

.bento-num {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font: 600 0.72rem/1 var(--mono);
  letter-spacing: 0.06em;
  color: var(--accent);
}

.bento-num::after {
  content: "";
  width: 24px;
  height: 1px;
  background: rgba(24, 229, 169, 0.4);
}

.bento-copy h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.38rem;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
  color: var(--fg);
  text-wrap: balance;
}

.bento-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.bento-copy p + p {
  margin-top: 12px;
}

.editorial-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
}

.editorial-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--fg);
}

.editorial-list .check {
  color: var(--accent);
  font-family: var(--mono);
  font-weight: 700;
  flex-shrink: 0;
}

.visual-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px;
}

.scale-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.scale-title {
  margin: 0 0 2px;
  font: 600 0.74rem/1.3 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.scale-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.84rem;
  margin-bottom: 6px;
}

.scale-label strong {
  color: var(--fg);
  font-weight: 600;
}

.scale-label span {
  color: var(--muted);
  font-family: var(--mono);
}

.scale-track {
  height: 10px;
  border-radius: 3px;
  background: var(--surface-subtle);
  overflow: hidden;
}

.scale-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--muted);
  opacity: 0.35;
}

.scale-fill.is-kiebitz {
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  opacity: 1;
}

.visual-divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 16px 0;
}

.visual-note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.mono-inline {
  font-family: var(--mono);
  font-size: 0.88em;
  color: var(--fg);
  background: rgba(148, 179, 206, 0.1);
  padding: 1px 5px;
  border-radius: 4px;
}

/* Tabbed step visuals */
.step-controls {
  margin-bottom: 16px;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.step-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--line-strong);
  margin-top: 7px;
}

.step-dot.is-teal {
  background: var(--accent);
}

.step strong {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--fg);
}

.step span {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 2px;
}

.step-panel {
  display: none;
}

.step-panel.is-active {
  display: block;
}

/* Node list */
.node-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.node {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.node:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.node strong {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--fg);
  flex-shrink: 0;
}

.node span {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: right;
}

.node-root {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--accent);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.node-root strong {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
}

.node-root span {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: right;
}

/* Rule sentence visual */
.rule-sentence {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rs-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
}

.rs-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.rs-k {
  font: 700 0.7rem/1.4 var(--mono);
  letter-spacing: 0.06em;
  color: #c084fc;
}

.rs-v {
  color: var(--fg);
}

.rs-v code {
  font-family: var(--mono);
  font-size: 0.88em;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--surface-subtle);
  color: var(--accent);
}

/* ---------- 3-Column Collapsed Hairline Feature Matrix ---------- */
.feature-matrix {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.feature-cell {
  background: var(--bg-elevated);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background-color 160ms var(--ease);
}

.feature-cell:hover {
  background: var(--surface);
}

.feature-cell-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.feature-cell .ic {
  color: var(--accent);
}

.feature-idx {
  font: 500 0.7rem/1 var(--mono);
  color: var(--muted);
  opacity: 0.75;
}

.feature-cell h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.25;
  margin: 0;
  color: var(--fg);
}

.feature-cell p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted);
}

/* ---------- Inverted High-Contrast Light Security Dossier Band ---------- */
.privacy-band {
  background: var(--paper);
  color: var(--paper-fg);
  padding: 88px 0;
  border-top: 2px solid var(--accent);
  border-bottom: 1px solid var(--paper-line);
  scroll-margin-top: 64px;
}

.privacy-band .section-kicker {
  color: var(--paper-accent);
}

.privacy-band h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--text-heading);
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin: 0 0 14px;
  color: var(--paper-fg);
}

.privacy-band h2 em {
  font-style: normal;
  color: var(--paper-accent);
}

.privacy-lead {
  color: var(--paper-muted);
  max-width: 58ch;
  margin: 0 0 40px;
}

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

.privacy-point {
  background: var(--paper-surface);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-sm);
  padding: 22px;
}

.privacy-idx {
  display: inline-block;
  font: 700 0.72rem/1 var(--mono);
  color: var(--paper-accent);
  margin-bottom: 12px;
}

.privacy-point h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.98rem;
  margin: 0 0 8px;
  color: var(--paper-fg);
}

.privacy-point p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--paper-muted);
}

.privacy-point code {
  font-family: var(--mono);
  font-size: 0.88em;
  color: var(--paper-accent);
  background: rgba(4, 120, 87, 0.08);
  padding: 1px 5px;
  border-radius: 4px;
}

/* ---------- 2-Column Sticky FAQ ---------- */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.65fr) minmax(0, 1.35fr);
  gap: 48px;
  align-items: start;
}

.faq-sticky {
  position: sticky;
  top: 88px;
}

.faq-sticky p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  cursor: pointer;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--fg);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-plus {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--accent);
  transition: transform 200ms var(--ease);
}

.faq-item[open] .faq-plus {
  transform: rotate(45deg);
}

.faq-answer {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.94rem;
  max-width: 66ch;
}

.faq-answer code {
  font-family: var(--mono);
  font-size: 0.88em;
  color: var(--accent);
  background: var(--surface-subtle);
  padding: 1px 5px;
  border-radius: 4px;
}

/* ---------- Framed Closing Band ---------- */
.closing-band {
  padding: 24px 0 84px;
  scroll-margin-top: 64px;
}

.closing-inner {
  position: relative;
  background:
    radial-gradient(ellipse 60% 100% at 100% 0%, rgba(24, 229, 169, 0.12), transparent 65%),
    var(--surface);
  border: 1px solid rgba(24, 229, 169, 0.3);
  border-radius: var(--radius-md);
  padding: 40px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.closing-left {
  display: flex;
  align-items: center;
  gap: 22px;
  max-width: 58ch;
}

.closing-left img {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  flex-shrink: 0;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.closing-left h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.55rem, 2.8vw, 2.2rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 6px;
}

.closing-left p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.closing-action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.closing-meta {
  font: 400 0.78rem/1.4 var(--mono);
  color: var(--muted);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  font-size: var(--text-sm);
  color: var(--muted);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px 28px;
  flex-wrap: wrap;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-suite a {
  color: var(--fg);
  text-decoration: none;
  font-weight: 500;
}

.footer-suite a:hover {
  color: var(--accent);
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 8px 20px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 150ms var(--ease);
}

.footer-nav a:hover,
.footer-nav a[aria-current="page"] {
  color: var(--fg);
}

/* ---------- Legal, Pricing & Docs Subpages ---------- */
.legal-main {
  max-width: 780px;
  margin: 0 auto;
  padding: 44px 28px 84px;
  overflow-wrap: break-word;
}

.legal-main h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.1rem, 4.8vw, 3.2rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: 0 0 16px;
  text-wrap: balance;
}

.legal-main h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.45rem, 2.5vw, 1.95rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 44px 0 12px;
  scroll-margin-top: 84px;
}

.legal-main h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--text-body);
  margin: 26px 0 8px;
}

.legal-main p,
.legal-main li {
  color: var(--muted);
  max-width: 66ch;
}

.legal-main strong {
  color: var(--fg);
}

.legal-main ul {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-main ol {
  padding-left: 22px;
}

.legal-main li {
  margin: 0 0 8px;
}

.legal-main code,
.legal-main kbd {
  font-family: var(--mono);
  font-size: 0.86em;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--accent);
}

.legal-main pre {
  font-family: var(--mono);
  font-size: 0.84rem;
  line-height: 1.55;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow-x: auto;
  margin: 14px 0 18px;
  color: var(--fg);
}

.legal-main :not(pre) > code {
  overflow-wrap: anywhere;
}

.legal-main pre code {
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--fg);
}

.notice-box,
.withdrawal-box {
  margin: 22px 0;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  background: var(--surface);
}

.notice-box p {
  margin: 0;
}

.withdrawal-box h2:first-child,
.withdrawal-box h3:first-child {
  margin-top: 0;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid rgba(24, 229, 169, 0.3);
  border-radius: var(--radius-md);
  padding: 34px;
  margin: 28px 0;
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.7);
}

.pricing-card h2 {
  margin-top: 0;
}

.pricing-card .price-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin: 12px 0 20px;
}

.pricing-card .price-amt {
  font: 700 clamp(2.5rem, 6vw, 3.6rem)/1 var(--mono);
  letter-spacing: -0.04em;
  color: var(--accent);
}

.pricing-card .price-sub {
  color: var(--muted);
  font-size: var(--text-sm);
}

.check-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legal-main .check-list {
  padding: 0;
}

.check-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0;
}

.check-list .chk {
  color: var(--accent);
  font-family: var(--mono);
  font-weight: 700;
  flex: none;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.fine-print {
  font-size: var(--text-sm);
  color: var(--muted);
  margin-top: 14px;
}

.docs-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 32px;
  padding: 0;
  list-style: none;
}

.legal-main .docs-toc {
  padding: 0;
  flex-direction: row;
}

.docs-toc li {
  margin: 0;
}

.docs-toc a {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--fg);
  text-decoration: none;
  font: 500 0.8rem/1 var(--mono);
}

.docs-toc a:hover,
.docs-toc a:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.table-scroll {
  overflow-x: auto;
  margin: 16px 0 24px;
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.docs-table th,
.docs-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.docs-table th {
  color: var(--fg);
  font-weight: 600;
}

.docs-table td {
  color: var(--muted);
}

.docs-table td:first-child {
  white-space: nowrap;
  color: var(--fg);
}

.error-main {
  max-width: 640px;
  margin: 0 auto;
  padding: 72px 28px 96px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.error-actions .text-link {
  align-self: center;
  padding: 8px 10px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .tb-opt,
  .header-status {
    display: none;
  }

  .flow-head,
  .flow-row {
    grid-template-columns: 52px 50px minmax(0, 1fr) 64px 104px 56px;
  }

  .col-started,
  .col-proto,
  .col-size {
    display: none;
  }
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .app-shell {
    grid-template-columns: minmax(0, 1fr);
    height: auto;
  }

  .app-sidebar {
    display: none;
  }

  .mobile-view-bar {
    display: block;
  }

  .app-detail {
    height: 620px;
  }

  .insp-split {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 0.44fr) minmax(0, 0.56fr);
  }

  .insp-pane + .insp-pane {
    border-left: 0;
    border-top: 1px solid var(--app-border);
  }

  .section-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

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

  .bento-card.is-wide {
    grid-column: span 1;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .feature-matrix {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .faq-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .faq-sticky {
    position: static;
  }

  .closing-inner {
    padding: 28px;
  }

  .closing-action {
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .wrap {
    padding: 0 20px;
  }

  .nav {
    gap: 12px;
  }

  .nav a.nav-opt {
    display: none;
  }

  .hero {
    padding: 40px 0 56px;
  }

  .tb-hide-s {
    display: none;
  }

  .flow-head,
  .flow-row {
    grid-template-columns: 48px 50px minmax(0, 1fr) 54px;
  }

  .col-rules,
  .col-client {
    display: none;
  }

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

  .rule-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(220px, 1fr);
    overflow-y: auto;
  }

  .rule-form {
    border-right: none;
    border-bottom: 1px solid var(--app-border);
    overflow: visible;
  }

  .mobile-view-bar .segmented {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mobile-view-bar .segmented [role="tab"] {
    text-align: center;
    padding: 7px 4px;
  }

  .closing-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
