@font-face {
  font-family: "Inter";
  src: url('/assets/type/inter-latin.woff2') format('woff2');
  font-display: swap;
  font-weight: 100 900;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url('/assets/type/jetbrains-mono-latin.woff2') format('woff2');
  font-display: swap;
  font-weight: 100 800;
}

:root {
  --bg: #09090b;
  --bg-2: #101013;
  --surface: #16161a;
  --surface-2: #1e1e24;
  --surface-3: #27272f;

  --ink: #f4f4f6;
  --ink-2: #d4d4dc;
  --muted: #90929e;
  --dim: #646672;

  --line: rgba(255, 255, 255, 0.085);
  --line-strong: rgba(255, 255, 255, 0.16);
  --accent: #5b93ff;
  --accent-dim: rgba(91, 147, 255, 0.14);
  --accent-border: rgba(91, 147, 255, 0.42);
  --sage: #3ecf8e;
  --warn: #eab308;
  --danger: #f87171;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --r-sm: 7px;
  --r-md: 11px;
  --r-lg: 14px;

  color-scheme: dark;
  color: var(--ink);
  background: var(--bg);
  font: 15px/1.58 var(--sans);
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, ul, ol { margin: 0; }
body { overflow-x: clip; background: var(--bg); color: var(--ink); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.24em; transition: color 0.15s ease, border-color 0.15s ease; }
button, summary, input { font: inherit; color: inherit; }
button, summary { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[id] { scroll-margin-top: 72px; }

code {
  font-family: var(--mono);
  font-size: 0.84em;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  padding: 0.1em 0.38em;
  border-radius: 5px;
}

.svg-library { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.icon {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip {
  position: fixed;
  z-index: 100;
  left: 1rem;
  top: 1rem;
  background: var(--ink);
  color: var(--bg);
  padding: 9px 14px;
  border-radius: var(--r-sm);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-160%);
}
.skip:focus { opacity: 1; pointer-events: auto; transform: none; }

.wrap {
  width: min(calc(100% - clamp(32px, 6vw, 96px)), 1220px);
  margin-inline: auto;
}

/* ==================== HEADER ==================== */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 9, 11, 0.84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.navbar {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-size: 0.98rem;
  letter-spacing: -0.025em;
  font-weight: 620;
  color: var(--ink);
}
.brand img { width: 22px; height: 22px; display: block; }
.nav-version {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--muted);
  text-decoration: none;
  padding: 2px 7px;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.nav-version:hover { color: var(--ink); border-color: var(--line-strong); }

.nav-right { display: flex; align-items: center; gap: 24px; }
.wide-nav { display: flex; align-items: center; gap: 22px; }
.wide-nav a {
  font-size: 0.875rem;
  font-weight: 480;
  color: var(--muted);
  text-decoration: none;
}
.wide-nav a:hover, .wide-nav a[aria-current="page"] { color: var(--ink); }
.wide-nav a[aria-current="page"] { font-weight: 560; }

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

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--r-sm);
  font-size: 0.88rem;
  line-height: 1;
  font-weight: 560;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}
.button.primary, .nav-download {
  background: var(--ink);
  color: var(--bg);
}
.button.primary:hover, .nav-download:hover {
  background: #e2e4ea;
  color: var(--bg);
}
.nav-download {
  min-height: 32px;
  padding: 0 12px;
  font-size: 0.82rem;
}
.button.secondary {
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--line-strong);
  color: var(--ink);
}
.button.secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.28);
}

.menu { display: none; position: relative; }
.menu summary {
  list-style: none;
  width: 34px;
  height: 34px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  display: grid;
  align-content: center;
  justify-content: center;
  gap: 5px;
}
summary::-webkit-details-marker { display: none; }
.menu summary span { width: 15px; height: 1.5px; background: var(--ink); }
.menu[open] summary span:first-child { transform: translateY(3.2px) rotate(45deg); }
.menu[open] summary span:last-child { transform: translateY(-3.2px) rotate(-45deg); }
.menu nav {
  position: absolute;
  right: 0;
  top: 42px;
  z-index: 60;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: 6px;
  min-width: 184px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.72);
}
.menu nav a {
  display: block;
  padding: 8px 11px;
  border-radius: 6px;
  font-size: 0.88rem;
  text-decoration: none;
  color: var(--ink-2);
}
.menu nav a:hover { background: var(--surface-2); color: var(--ink); }

/* ==================== PRODUCT-FIRST HERO ==================== */
.hero-header {
  padding-block: clamp(32px, 4.2vw, 54px) clamp(22px, 2.8vw, 32px);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px 48px;
  align-items: end;
}
.hero-header h1 {
  font-size: clamp(2.15rem, 3.85vw, 3.35rem);
  font-weight: 560;
  line-height: 1.05;
  letter-spacing: -0.036em;
  color: var(--ink);
  text-wrap: balance;
}
.hero-right p {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.58;
  max-width: 50ch;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.hero-spec {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--dim);
}

/* ==================== INTERACTIVE WORKSPACE (ABOVE THE FOLD) ==================== */
.workspace-wrap {
  padding-bottom: clamp(48px, 6vw, 80px);
}
.workspace-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.scenario-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.scenario-tab {
  border: 1px solid transparent;
  background: transparent;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--muted);
  transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}
.scenario-tab:hover { color: var(--ink); background: rgba(255, 255, 255, 0.045); }
.scenario-tab[aria-pressed="true"] {
  background: var(--surface-2);
  border-color: var(--line-strong);
  color: var(--ink);
  font-weight: 560;
}

.segmented {
  display: inline-flex;
  padding: 2px;
  border-radius: 7px;
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.segmented button {
  border: 0;
  background: transparent;
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 0.79rem;
  font-weight: 520;
  color: var(--muted);
}
.segmented button[aria-pressed="true"] {
  background: var(--surface-3);
  color: var(--ink);
}

/* Native macOS Window — Pure Cool Obsidian / Crisp Light (zero brown/orange) */
.mac-app-shell {
  --app-bg: #111114;
  --app-sidebar: #0c0c0f;
  --app-panel: #0e0e11;
  --app-elevated: #19191f;
  --app-hover: rgba(255, 255, 255, 0.05);
  --app-active: rgba(255, 255, 255, 0.085);
  --app-border: rgba(255, 255, 255, 0.085);
  --app-border-strong: rgba(255, 255, 255, 0.15);
  --app-text: #f4f4f6;
  --app-muted: #8f919e;
  --app-user-bubble: #1d283d;
  --app-user-border: rgba(91, 147, 255, 0.24);
  --app-user-text: #f4f7ff;
  --app-accent: #5b93ff;
  --app-accent-soft: rgba(91, 147, 255, 0.14);
  --app-card-bg: #17171d;
  --app-ok: #3ecf8e;
  --app-warn: #eab308;
  --app-danger: #f87171;

  border-radius: 12px;
  overflow: hidden;
  background: var(--app-bg);
  color: var(--app-text);
  border: 1px solid var(--line-strong);
  box-shadow: 0 32px 84px -26px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}
.mac-app-shell[data-theme="light"] {
  --app-bg: #ffffff;
  --app-sidebar: #f5f5f7;
  --app-panel: #f8f9fb;
  --app-elevated: #ffffff;
  --app-hover: rgba(15, 23, 42, 0.045);
  --app-active: rgba(15, 23, 42, 0.075);
  --app-border: rgba(15, 23, 42, 0.09);
  --app-border-strong: rgba(15, 23, 42, 0.16);
  --app-text: #111318;
  --app-muted: #5b6070;
  --app-user-bubble: #eaf1ff;
  --app-user-border: rgba(37, 99, 235, 0.2);
  --app-user-text: #0f172a;
  --app-accent: #2563eb;
  --app-accent-soft: rgba(37, 99, 235, 0.1);
  --app-card-bg: #f8f9fb;
  --app-ok: #15803d;
  --app-warn: #b45309;
  --app-danger: #dc2626;
}
.mac-app-shell code {
  background: var(--app-hover);
  border-color: var(--app-border-strong);
  color: var(--app-text);
  font-size: 0.82em;
}

.mac-titlebar {
  height: 38px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--app-sidebar);
  border-bottom: 1px solid var(--app-border);
  font-size: 0.78rem;
  color: var(--app-muted);
}
.mac-lights { display: flex; align-items: center; gap: 7px; }
.mac-lights i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.mac-lights i:nth-child(1) { background: #ff5f57; }
.mac-lights i:nth-child(2) { background: #febc2e; }
.mac-lights i:nth-child(3) { background: #28c840; }
.mac-window-title { font-weight: 560; color: var(--app-text); font-size: 0.8rem; }
.mac-window-note { font-family: var(--mono); font-size: 0.71rem; color: var(--app-muted); }

.mac-body {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr) 256px;
  height: 500px;
  overflow: hidden;
}
.mac-body.inspector-hidden { grid-template-columns: 236px minmax(0, 1fr); }
.mac-body.inspector-hidden .mac-inspector { display: none; }

.mac-sidebar {
  background: var(--app-sidebar);
  border-right: 1px solid var(--app-border);
  padding: 9px 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-height: 0;
  overflow-y: auto;
}
.mac-search-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 9px;
  margin: 0 3px 6px;
  border-radius: 6px;
  background: var(--app-hover);
  border: 1px solid var(--app-border);
  color: var(--app-muted);
  font-size: 0.76rem;
}
.mac-search-chip kbd { font-family: var(--mono); font-size: 0.7rem; }

/* Unified Needs Attention Inbox row */
.inbox-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 9px;
  margin-bottom: 5px;
  border-radius: 7px;
  border: 1px solid var(--app-border);
  background: transparent;
  font-size: 0.8rem;
  font-weight: 540;
  color: var(--app-text);
  position: relative;
  text-align: left;
}
.inbox-row:hover { background: var(--app-hover); }
.inbox-row[aria-selected="true"] {
  background: var(--app-active);
  border-color: var(--app-border-strong);
}
.inbox-row[aria-selected="true"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  bottom: 5px;
  width: 2.5px;
  border-radius: 2px;
  background: var(--app-accent);
}
.inbox-left { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.inbox-left svg { width: 14px; height: 14px; color: var(--app-muted); flex: none; }
.inbox-badge {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--app-accent-soft);
  color: var(--app-accent);
}
.inbox-badge.is-zero {
  background: var(--app-hover);
  color: var(--app-muted);
}

.bot-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 9px;
  border-radius: 7px;
  border: 0;
  background: transparent;
  text-align: left;
  position: relative;
}
.bot-row:hover { background: var(--app-hover); }
.bot-row[aria-selected="true"] { background: var(--app-active); }
.bot-row[aria-selected="true"]::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 6px;
  bottom: 6px;
  width: 2.5px;
  border-radius: 2px;
  background: var(--app-accent);
}
.bot-row-meta { min-width: 0; flex: 1; }
.bot-row-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 0.83rem; font-weight: 580; color: var(--app-text); }
.bot-row-name { display: inline-flex; align-items: center; gap: 4px; }
.bot-row-head .star { color: var(--app-accent); font-size: 0.72rem; }
.bot-row-rt { font-family: var(--mono); font-size: 0.66rem; font-weight: 480; color: var(--app-muted); }
.bot-row-sub { font-size: 0.73rem; color: var(--app-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }

/* Helper Tree with 1px vertical rail */
.helper-tree {
  margin: 1px 4px 5px 20px;
  padding-left: 10px;
  border-left: 1px solid var(--app-border-strong);
  display: grid;
  gap: 2px;
}
.helper-item {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 4px 7px;
  border-radius: 6px;
  border: 0;
  background: transparent;
  text-align: left;
}
.helper-item:hover { background: var(--app-hover); }
.helper-item[aria-selected="true"] { background: var(--app-active); }
.helper-dot {
  width: 12px;
  height: 12px;
  margin-top: 2px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.58rem;
  font-weight: 800;
}
.helper-dot.done { background: var(--app-ok); color: #09140e; }
.helper-dot.working { border: 2px dotted var(--app-accent); }
.helper-meta { min-width: 0; flex: 1; }
.helper-top { display: flex; justify-content: space-between; gap: 6px; font-size: 0.76rem; font-weight: 540; }
.helper-top span:last-child { font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--app-muted); font-weight: 420; font-size: 0.68rem; }
.helper-sub { font-size: 0.7rem; color: var(--app-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.mac-sidebar-foot {
  margin-top: auto;
  padding: 8px 6px 2px;
  border-top: 1px solid var(--app-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.69rem;
  color: var(--app-muted);
}
.foot-dot {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.foot-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--app-ok);
}

.bot-avatar { width: 28px; height: 28px; flex: none; display: grid; place-items: center; }
.bot-avatar.sm { width: 22px; height: 22px; }
.bot-avatar.lg { width: 34px; height: 34px; }
.bot-avatar svg { width: 100%; height: 100%; display: block; overflow: visible; }

.mac-chat { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; background: var(--app-bg); }
.mac-chat-header {
  min-height: 46px;
  padding: 7px 14px;
  border-bottom: 1px solid var(--app-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.mac-chat-identity { display: flex; align-items: center; gap: 9px; min-width: 0; }
.mac-chat-identity strong { font-size: 0.87rem; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.mac-chat-identity small { display: block; font-size: 0.73rem; color: var(--app-muted); }
.ready-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--app-ok); display: inline-block; }
.mac-chat-tools { display: flex; align-items: center; gap: 6px; }

.ctx-pill {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.7rem;
  color: var(--app-muted);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--app-border);
  background: transparent;
}
.model-switcher, .inspector-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 6px;
  border: 1px solid var(--app-border-strong);
  background: var(--app-elevated);
  font-size: 0.76rem;
  font-weight: 520;
  color: var(--app-text);
}
.model-switcher:hover, .inspector-btn:hover { border-color: var(--app-accent); }
.inspector-btn { background: transparent; color: var(--app-muted); }
.inspector-btn[aria-pressed="true"] { color: var(--app-text); background: var(--app-hover); }

.mac-feed {
  flex: 1;
  min-height: 0;
  padding: 15px 18px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  overflow-y: auto;
}
.msg-user-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.msg-user {
  max-width: 78%;
  padding: 8px 12px;
  border-radius: 10px 10px 3px 10px;
  background: var(--app-user-bubble);
  border: 1px solid var(--app-user-border);
  color: var(--app-user-text);
  font-size: 0.855rem;
  line-height: 1.48;
}
.msg-attachment {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 9px;
  border-radius: 7px;
  background: var(--app-elevated);
  border: 1px solid var(--app-border-strong);
  font-family: var(--mono);
  font-size: 0.71rem;
  color: var(--app-muted);
}
.msg-attachment svg { width: 13px; height: 13px; color: var(--app-accent); }

.msg-bot { display: flex; align-items: flex-start; gap: 10px; max-width: 94%; position: relative; }
.msg-bot-body { min-width: 0; flex: 1; }
.msg-bot-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 3px; }
.msg-bot-head-l { display: inline-flex; align-items: center; gap: 7px; }
.msg-bot-head strong { font-size: 0.83rem; font-weight: 600; }
.msg-bot-head span { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 0.7rem; color: var(--app-muted); }
.msg-hover-actions {
  display: inline-flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.14s ease;
}
.msg-bot:hover .msg-hover-actions, .msg-bot:focus-within .msg-hover-actions { opacity: 1; }
.msg-hover-btn {
  border: 1px solid var(--app-border);
  background: var(--app-elevated);
  color: var(--app-muted);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.68rem;
}
.msg-hover-btn:hover { color: var(--app-text); border-color: var(--app-border-strong); }
.msg-bot-text { font-size: 0.855rem; line-height: 1.54; color: var(--app-text); }

.steps-drawer {
  margin-top: 7px;
  border-radius: 7px;
  border: 1px solid var(--app-border);
  background: var(--app-elevated);
  font-size: 0.78rem;
}
.steps-drawer summary {
  list-style: none;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--app-muted);
}
.steps-drawer summary > span:not(.cmd-inline) {
  white-space: nowrap;
  flex: none;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.72rem;
}
.steps-drawer summary .cmd-inline {
  font-family: var(--mono);
  font-size: 0.72rem;
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.steps-drawer summary .step-check { color: var(--app-ok); font-weight: 700; }
.steps-list { border-top: 1px solid var(--app-border); padding: 7px 10px; display: grid; gap: 5px; }
.step-item { display: flex; align-items: center; gap: 8px; font-size: 0.76rem; }
.step-item code { background: transparent; border: 0; padding: 0; color: var(--app-muted); font-size: 0.72rem; }

.handoff-note, .system-note {
  align-self: center;
  font-size: 0.74rem;
  color: var(--app-muted);
  padding: 4px 10px;
  border-radius: 5px;
  border: 1px solid var(--app-border);
  background: var(--app-elevated);
}
.reviewer-pill {
  margin-top: 7px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(62, 207, 142, 0.09);
  border: 1px solid rgba(62, 207, 142, 0.25);
  color: var(--app-ok);
  font-family: var(--mono);
  font-size: 0.7rem;
}

.artifact-card {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--app-card-bg);
  border: 1px solid var(--app-border-strong);
}
.artifact-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 0.81rem;
  font-weight: 600;
}
.artifact-card-head span { font-family: var(--mono); font-size: 0.7rem; color: var(--app-muted); font-weight: 500; }
.artifact-card ul { padding-left: 16px; display: grid; gap: 4px; font-size: 0.82rem; }

/* Neutral Hairline Action / Approval Card (zero pink/red/green washes) */
.action-card {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--app-elevated);
  border: 1px solid var(--app-border-strong);
  border-left: 2.5px solid var(--app-accent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.action-card-info strong { display: block; font-size: 0.82rem; }
.action-card-info span { display: block; font-family: var(--mono); font-size: 0.72rem; color: var(--app-muted); margin-top: 2px; }
.action-card-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.mini-btn {
  padding: 4px 9px;
  border-radius: 6px;
  border: 1px solid var(--app-border-strong);
  background: transparent;
  color: var(--app-text);
  font-size: 0.75rem;
  font-weight: 520;
}
.mini-btn:hover { background: var(--app-hover); border-color: var(--app-accent); }
.mini-btn.accent { background: var(--app-accent); border-color: var(--app-accent); color: #ffffff; }
.mini-btn.accent:hover { filter: brightness(1.08); }
.action-resolved { font-family: var(--mono); font-size: 0.73rem; font-weight: 540; color: var(--app-ok); }

/* Dedicated Helper View & Inbox View inside Center Pane */
.panel-view { display: grid; gap: 11px; }
.panel-card {
  border-radius: 8px;
  border: 1px solid var(--app-border);
  background: var(--app-elevated);
  overflow: hidden;
}
.panel-card-head {
  padding: 8px 12px;
  border-bottom: 1px solid var(--app-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
}
.panel-card-head span { font-family: var(--mono); font-size: 0.7rem; font-weight: 480; color: var(--app-muted); }
.panel-card-body { padding: 10px 12px; font-size: 0.82rem; line-height: 1.54; color: var(--app-text); }
.terminal-pre {
  margin: 0;
  padding: 10px 12px;
  font-family: var(--mono);
  font-size: 0.73rem;
  line-height: 1.6;
  color: var(--app-muted);
  background: var(--app-sidebar);
  overflow-x: auto;
}
.inbox-card {
  padding: 11px 13px;
  border-radius: 8px;
  border: 1px solid var(--app-border-strong);
  border-left: 2.5px solid var(--app-accent);
  background: var(--app-elevated);
  display: grid;
  gap: 8px;
}
.inbox-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.82rem;
}
.inbox-card-bot { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.inbox-card-meta { font-family: var(--mono); font-size: 0.7rem; color: var(--app-muted); }
.inbox-card p { font-size: 0.81rem; color: var(--app-muted); line-height: 1.48; }

/* Structured Multi-line macOS Composer */
.mac-composer-wrap {
  padding: 8px 14px 11px;
  border-top: 1px solid var(--app-border);
  display: grid;
  gap: 7px;
}
.demo-step-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.73rem;
  color: var(--app-muted);
}
.step-next-btn {
  padding: 4px 11px;
  border-radius: 6px;
  border: 1px solid var(--app-border-strong);
  background: var(--app-elevated);
  color: var(--app-text);
  font-family: var(--sans);
  font-size: 0.79rem;
  font-weight: 560;
}
.step-next-btn:hover { border-color: var(--app-accent); color: var(--app-accent); }

.mac-composer {
  display: grid;
  gap: 6px;
  padding: 8px 9px 7px 11px;
  border-radius: 10px;
  background: var(--app-elevated);
  border: 1px solid var(--app-border-strong);
}
.mac-composer:focus-within { border-color: var(--app-accent); }
.mac-composer-row { display: flex; align-items: center; gap: 8px; }
.mac-composer input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 0.84rem; outline: none; }
.mac-composer input::placeholder { color: var(--app-muted); }
.composer-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.composer-left-tools { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.composer-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 5px;
  border: 1px solid var(--app-border);
  background: transparent;
  color: var(--app-muted);
  font-family: var(--mono);
  font-size: 0.69rem;
}
.composer-chip:hover { color: var(--app-text); border-color: var(--app-border-strong); background: var(--app-hover); }
.composer-chip.is-armed { color: var(--app-accent); border-color: var(--app-accent); background: var(--app-accent-soft); }
.mac-send-btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 0;
  background: var(--app-accent);
  color: #ffffff;
  display: grid;
  place-items: center;
  flex: none;
}

.mac-inspector {
  background: var(--app-panel);
  border-left: 1px solid var(--app-border);
  padding: 11px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-height: 0;
  overflow-y: auto;
}
.inspector-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  padding: 2px;
  border-radius: 6px;
  background: var(--app-hover);
  border: 1px solid var(--app-border);
}
.inspector-tabs button {
  border: 0;
  background: transparent;
  padding: 4px;
  border-radius: 4px;
  font-size: 0.73rem;
  font-weight: 500;
  color: var(--app-muted);
}
.inspector-tabs button[aria-selected="true"] { background: var(--app-elevated); color: var(--app-text); }
.inspector-profile { display: flex; align-items: center; gap: 9px; }
.inspector-profile strong { display: block; font-size: 0.85rem; }
.inspector-profile span { display: block; font-size: 0.73rem; color: var(--app-muted); }
.inspector-block { border-top: 1px solid var(--app-border); padding-top: 10px; }
.inspector-block h4 { font-size: 0.72rem; font-weight: 580; color: var(--app-muted); margin-bottom: 6px; display: flex; justify-content: space-between; align-items: center; }
.inspector-block p { font-size: 0.77rem; line-height: 1.5; color: var(--app-text); }
.inspector-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.inspector-tag { font-family: var(--mono); font-size: 0.7rem; padding: 2px 7px; border-radius: 4px; background: var(--app-elevated); border: 1px solid var(--app-border); }
.ctx-meter-track { height: 4px; border-radius: 99px; background: var(--app-hover); overflow: hidden; margin: 6px 0 7px; }
.ctx-meter-fill { height: 100%; border-radius: 99px; background: var(--app-accent); }
.ctx-meter-row { display: flex; justify-content: space-between; font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 0.69rem; color: var(--app-muted); }
.activity-list { display: grid; gap: 6px; }
.activity-row { padding: 7px 8px; border-radius: 6px; background: var(--app-elevated); border: 1px solid var(--app-border); font-size: 0.74rem; }
.activity-row strong { display: block; margin-bottom: 2px; font-weight: 560; }
.activity-row span { color: var(--app-muted); font-size: 0.71rem; }

/* ==================== SECTION HEADERS ==================== */
.sec-block {
  border-top: 1px solid var(--line);
  padding-block: clamp(56px, 6.5vw, 88px);
}
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.sec-head h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 560;
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.sec-head p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 56ch;
}

/* ==================== REAL NATIVE SCREEN INSPECTOR (1PX ARCHITECTURAL SPLIT) ==================== */
.inspector-frame {
  display: grid;
  grid-template-columns: 350px minmax(0, 1fr);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-2);
}
.inspector-rail {
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.screen-tab {
  width: 100%;
  text-align: left;
  padding: 18px 20px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  position: relative;
  transition: background 0.14s ease;
}
.screen-tab:last-child { border-bottom: 0; }
.screen-tab:hover { background: rgba(255, 255, 255, 0.025); }
.screen-tab[aria-selected="true"] { background: var(--surface); }
.screen-tab[aria-selected="true"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2.5px;
  background: var(--accent);
}
.screen-tab strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 580;
  color: var(--ink-2);
  margin-bottom: 4px;
}
.screen-tab[aria-selected="true"] strong { color: var(--ink); }
.screen-tab span {
  display: block;
  font-size: 0.83rem;
  line-height: 1.48;
  color: var(--muted);
}

.inspector-stage {
  display: flex;
  flex-direction: column;
  background: #121216;
  transition: background 0.2s ease;
}
.inspector-stage[data-stage-mode="light"] {
  background: #e9ecf1;
}
.inspector-viewport {
  flex: 1;
  padding: clamp(18px, 3vw, 34px);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}
.screen-link {
  display: inline-block;
  border-radius: 9px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: 0 24px 54px -20px rgba(0, 0, 0, 0.7);
  cursor: zoom-in;
}
.inspector-stage[data-stage-mode="light"] .screen-link {
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 20px 44px -18px rgba(15, 23, 42, 0.2);
}
.screen-link img {
  width: auto;
  max-width: 100%;
  max-height: 500px;
  display: block;
}
.inspector-caption {
  padding: 11px 18px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--muted);
}
.inspector-caption a {
  font-weight: 540;
  color: var(--ink-2);
  text-decoration: none;
}
.inspector-caption a:hover { color: var(--ink); text-decoration: underline; }

/* ==================== 1PX ARCHITECTURAL TECHNICAL MATRIX ==================== */
.matrix-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.matrix-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.matrix-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 var(--r-md) var(--r-md);
  overflow: hidden;
}
.matrix-3.joined, .matrix-4.joined { border-radius: var(--r-md) var(--r-md) 0 0; }
.matrix-4.mid { border-top: 0; border-radius: 0 0 var(--r-md) var(--r-md); }
.cell {
  background: var(--bg-2);
  padding: 24px;
}
.cell-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.cell-head svg { width: 16px; height: 16px; flex: none; color: var(--ink-2); }
.cell h3 {
  font-size: 0.96rem;
  font-weight: 580;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.cell .tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  padding: 1px 5px;
  border-radius: 4px;
}
.cell p {
  font-size: 0.88rem;
  line-height: 1.56;
  color: var(--muted);
}

.pipeline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 12px;
  font-family: var(--mono);
  font-size: 0.77rem;
}
.pipeline span {
  padding: 5px 9px;
  border-radius: 5px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--ink-2);
}
.pipeline b { color: var(--muted); font-weight: 500; }

.spec-list {
  list-style: none;
  padding: 0;
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 18px;
  font-size: 0.86rem;
  color: var(--ink-2);
}
.spec-list li::before {
  content: "— ";
  color: var(--dim);
}

/* ==================== FAQ & CLOSING DOWNLOAD ROW ==================== */
.qa-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: clamp(28px, 6vw, 80px);
}
.qa-aside p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.93rem;
  max-width: 34ch;
}
.qa-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; font-size: 0.88rem; }
.qa-links a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-strong); }
.qa-links a:hover { color: var(--ink); text-decoration-color: var(--ink); }

.faq { border-bottom: 1px solid var(--line); }
.faq:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.96rem;
  font-weight: 540;
  padding: 16px 0;
  color: var(--ink);
}
.faq summary:hover { color: #fff; }
.faq summary::after { content: "+"; font: 400 1.15rem/1 var(--mono); color: var(--dim); flex: none; }
.faq[open] summary::after { content: "−"; color: var(--ink); }
.faq p { padding: 0 24px 17px 0; color: var(--muted); font-size: 0.91rem; line-height: 1.62; }
.faq p a { color: var(--ink-2); }

.download-bar {
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface);
  padding: clamp(24px, 3.5vw, 36px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.download-bar h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 560;
  letter-spacing: -0.028em;
}
.download-bar p {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
}
.download-bar-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Lightbox */
dialog {
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: 0;
  max-width: min(94vw, 1260px);
  width: fit-content;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.82);
  overflow: hidden;
}
dialog::backdrop { background: rgba(5, 6, 8, 0.85); backdrop-filter: blur(6px); }
.dialog-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 0.85rem;
  font-weight: 560;
}
.dialog-close {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  font-size: 1.15rem;
  line-height: 1;
  display: grid;
  place-items: center;
}
.dialog-close:hover { background: var(--surface-2); }
dialog img { max-height: 82vh; width: auto; max-width: 100%; margin: auto; display: block; }

/* ==================== FOOTER ==================== */
.foot {
  border-top: 1px solid var(--line);
  margin-top: clamp(48px, 6vw, 72px);
  padding-block: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 24px;
  font-size: 0.82rem;
  color: var(--dim);
}
.foot-links { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px; }
.foot-links a { text-decoration: none; color: var(--muted); }
.foot-links a:hover { color: var(--ink); }

/* ==================== FEATURES & SETUP INNER PAGES ==================== */
.inner-head {
  padding-block: clamp(40px, 5vw, 64px) clamp(24px, 3vw, 36px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.inner-head h1 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 560;
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin-bottom: 10px;
}
.inner-head p { color: var(--muted); max-width: 56ch; font-size: 0.98rem; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.feature-cell {
  background: var(--bg-2);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.feature-cell.wide { grid-column: 1 / -1; display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 28px; align-items: center; }
.feature-stage {
  border-radius: 9px;
  padding: 18px;
  background: #121216;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.feature-stage[data-stage-mode="light"] { background: #e9ecf1; }
.feature-stage .screen-link img { max-height: 390px; }
.feature-cell h2 { font-size: 1.15rem; font-weight: 580; letter-spacing: -0.02em; margin-bottom: 8px; }
.feature-cell p { font-size: 0.9rem; color: var(--muted); line-height: 1.58; }

/* Setup Documentation */
.guide {
  border-top: 1px solid var(--line);
  padding-block: 36px 40px;
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: clamp(28px, 6vw, 80px);
}
.setup-index {
  position: sticky;
  top: 78px;
  align-self: start;
  display: flex;
  flex-direction: column;
}
.setup-index strong { font-size: 0.78rem; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.setup-index a {
  padding: 6px 0 6px 12px;
  border-left: 1.5px solid var(--line);
  text-decoration: none;
  color: var(--muted);
  font-size: 0.86rem;
}
.setup-index a:hover { color: var(--ink); }
.setup-index a.is-active { color: var(--ink); font-weight: 560; border-left-color: var(--accent); }

.guide-content { min-width: 0; }
.guide-section { min-width: 0; padding-block: 30px; border-bottom: 1px solid var(--line); }
.guide-section:first-child { padding-top: 0; }
.guide-section:last-child { border-bottom: 0; }
.guide-section h2 { font-size: 1.4rem; font-weight: 560; letter-spacing: -0.025em; margin-bottom: 12px; }
.guide-section p, .guide-section li { color: var(--muted); font-size: 0.93rem; line-height: 1.64; max-width: 64ch; }
.guide-section p + p { margin-top: 10px; }
.guide-section ul { margin: 12px 0; padding-left: 18px; display: grid; gap: 7px; }
.guide-section strong { color: var(--ink); }
.guide-section .button { margin: 16px 0 10px; }
.setup-release { font-family: var(--mono); font-size: 0.78rem; color: var(--dim); margin-bottom: 10px; }
.guide-split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 24px; align-items: start; margin-top: 6px; }
.guide-shot { border-radius: 10px; overflow: hidden; border: 1px solid var(--line-strong); background: #141418; }
.guide-shot img { width: 100%; display: block; }

.guide-section table { width: 100%; text-align: left; border-collapse: collapse; margin-top: 8px; }
.guide-section th, .guide-section td { border-bottom: 1px solid var(--line); padding: 11px 10px 11px 0; font-size: 0.9rem; }
.guide-section th { color: var(--ink); font-weight: 560; }
.guide-section td { color: var(--muted); }
.guide-section caption { text-align: left; font-size: 0.8rem; color: var(--dim); margin-bottom: 6px; }

.code-card {
  min-width: 0;
  max-width: 100%;
  margin: 14px 0;
  border-radius: 9px;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
}
.code-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 12px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--muted);
}
.copy-btn {
  padding: 3px 9px;
  border-radius: 5px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 0.76rem;
}
.copy-btn:hover { background: var(--surface-2); color: var(--ink); }
.code-card pre { margin: 0; padding: 14px 16px; overflow-x: auto; font-family: var(--mono); font-size: 0.83rem; line-height: 1.65; color: var(--ink); }
.code-card pre code { background: transparent; border: 0; padding: 0; color: inherit; font-size: inherit; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1060px) {
  .mac-body { grid-template-columns: 210px minmax(0, 1fr); }
  .mac-inspector { display: none; }
  .inspector-frame { grid-template-columns: 1fr; }
  .inspector-rail { border-right: 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
  .screen-tab { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
  .matrix-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 840px) {
  .hero-header, .matrix-3, .matrix-2, .qa-grid, .feature-grid, .feature-cell.wide, .guide, .guide-split { grid-template-columns: 1fr; }
  .setup-index { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px 14px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
  .setup-index strong { width: 100%; margin-bottom: 4px; }
  .setup-index a { border-left: 0; padding: 3px 0; }
}

@media (max-width: 720px) {
  .wrap { width: calc(100% - 32px); }
  .wide-nav, .nav-version { display: none; }
  .menu { display: block; }
  .workspace-bar { flex-direction: column; align-items: flex-start; gap: 10px; }
  .scenario-tabs { flex-wrap: wrap; gap: 6px; }
  .scenario-tab { white-space: nowrap; padding: 5px 10px; font-size: 0.81rem; }
  .mac-body { grid-template-columns: minmax(0, 1fr); height: auto; overflow: visible; }
  .mac-sidebar { min-width: 0; border-right: 0; border-bottom: 1px solid var(--app-border); padding: 8px; overflow-y: visible; }
  .mac-search-chip, .helper-tree, .mac-sidebar-foot { display: none; }
  .inbox-row { margin-bottom: 6px; }
  .bot-list { display: flex; gap: 6px; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .bot-list::-webkit-scrollbar { display: none; }
  .bot-row { width: auto; flex: 0 0 auto; padding: 6px 10px 6px 8px; border: 1px solid var(--app-border); }
  .bot-row[aria-selected="true"]::before, .bot-row-sub, .bot-row-rt { display: none; }
  .mac-chat { overflow: visible; }
  .mac-feed { padding: 14px; max-height: 360px; }
  .inspector-rail {
    display: flex;
    flex-direction: column;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .screen-tab {
    width: 100%;
    padding: 11px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .screen-tab:last-child { border-bottom: 0; }
  .screen-tab strong { margin-bottom: 0; font-size: 0.84rem; }
  .screen-tab span { display: none; }
  .screen-tab[aria-selected="true"]::before {
    left: 0;
    top: 0;
    bottom: 0;
    width: 2.5px;
    height: auto;
  }
  .inspector-viewport { min-height: 280px; padding: 14px; }
  .inspector-caption { flex-direction: column; align-items: flex-start; gap: 6px; }
  .matrix-4 { grid-template-columns: 1fr; }
  .spec-list { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .mac-window-note, .inspector-btn, .ctx-pill { display: none; }
  .hero-actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
