:root {
  --paper: #f5f1e8;
  --paper-deep: #ece5d8;
  --surface: rgba(255, 253, 248, 0.86);
  --surface-solid: #fffdf8;
  --ink: #181713;
  --ink-soft: #5f5a50;
  --line: rgba(38, 35, 29, 0.12);
  --line-strong: rgba(38, 35, 29, 0.22);
  --amber: #b76d18;
  --amber-bright: #e6a84c;
  --amber-pale: #f5e4c3;
  --green: #26735d;
  --green-pale: #dcece4;
  --red: #9f3e35;
  --red-pale: #f4dfda;
  --blue: #3f6477;
  --blue-pale: #e0eaee;
  --shadow: 0 18px 60px rgba(53, 42, 25, 0.08);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --sidebar: 262px;
  --max-width: 1380px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 74% -10%, rgba(230, 168, 76, 0.13), transparent 32rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button, textarea, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 3px solid rgba(183, 109, 24, 0.48);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: white;
}
.skip-link:focus { transform: translateY(0); }

.app-shell { min-height: 100vh; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: var(--sidebar);
  display: flex;
  flex-direction: column;
  padding: 26px 20px 24px;
  border-right: 1px solid var(--line);
  background: rgba(248, 245, 237, 0.88);
  backdrop-filter: blur(18px);
}

.brand-row, .brand, .mobile-bar, .agent-card-top, .section-heading,
.run-title-row, .panel-heading, .review-card-head, .form-actions,
.review-actions, .timeline-meta {
  display: flex;
  align-items: center;
}

.brand-row { justify-content: space-between; }
.brand { gap: 12px; min-height: 44px; text-decoration: none; }
.brand-mark, .agent-orb {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(183, 109, 24, 0.32);
  border-radius: 13px;
  color: #2e2418;
  background: linear-gradient(145deg, #f6dca9, #d6963e);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.65), 0 8px 24px rgba(142, 83, 19, 0.15);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.brand strong, .brand small { display: block; }
.brand strong { font-size: 14px; letter-spacing: -0.01em; }
.brand small { margin-top: 1px; color: var(--ink-soft); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; }

.nav-list { display: grid; gap: 5px; margin-top: 54px; }
.nav-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 13px;
  border-radius: 12px;
  color: #5f5b52;
  text-decoration: none;
  font-size: 14px;
  font-weight: 620;
}
.nav-list a span { width: 20px; color: #898274; text-align: center; font-size: 18px; }
.nav-list a:hover { background: rgba(255,255,255,0.6); color: var(--ink); }
.nav-list a.active { color: var(--ink); background: var(--surface-solid); box-shadow: 0 7px 24px rgba(49, 39, 23, 0.07); }
.nav-list a.active span { color: var(--amber); }

.sidebar-note {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.38);
}
.sidebar-note strong, .sidebar-note small { display: block; }
.sidebar-note strong { font-size: 12px; }
.sidebar-note small { margin-top: 2px; color: var(--ink-soft); font-size: 12px; }
.status-dot { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: #4ba87d; box-shadow: 0 0 0 4px rgba(75,168,125,0.13); }

.mobile-bar { display: none; }
.mobile-only { display: none !important; }
.main-content {
  min-height: 100vh;
  margin-left: var(--sidebar);
  padding: 58px clamp(28px, 4vw, 76px) 90px;
}
.main-content > * { width: min(100%, var(--max-width)); margin-inline: auto; }

.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 54px;
}
.page-header > div { max-width: 890px; }
.hero-header { min-height: 270px; padding-top: 20px; }
.page-header h1 {
  max-width: 950px;
  margin: 9px 0 15px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(43px, 5.5vw, 80px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 500;
}
.page-header:not(.hero-header) h1 { font-size: clamp(38px, 4.4vw, 63px); line-height: 1.04; }
.page-header h1 span { color: var(--amber); }
.eyebrow { margin: 0; color: var(--amber); font-size: 12px; font-weight: 780; letter-spacing: 0.14em; text-transform: uppercase; }
.lede { max-width: 720px; margin: 0; color: var(--ink-soft); font-size: clamp(16px, 1.6vw, 19px); line-height: 1.65; }

.provider-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 30px;
  margin-bottom: 28px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.provider-strip h2 { margin: 5px 0 8px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(25px, 3vw, 36px); font-weight: 500; }
.provider-strip p { max-width: 760px; margin: 0; color: var(--ink-soft); }
.provider-strip .provider-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 13px; }
.provider-links a { color: var(--amber); font-weight: 750; text-decoration: none; }
.provider-links a:hover { text-decoration: underline; }
.provider-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; }
.provider-facts div { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.5); }
.provider-facts dt { color: var(--ink-soft); font-size: 12px; }
.provider-facts dd { margin: 4px 0 0; overflow-wrap: anywhere; font-weight: 700; font-size: 14px; }
.device-control { display: grid; grid-template-columns: minmax(240px,.7fr) minmax(0,1.3fr); gap: 28px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.device-control h2 { margin: 5px 0 8px; font-family: Georgia,serif; font-size: clamp(25px,3vw,36px); font-weight: 500; }
.device-control p { margin: 0; color: var(--ink-soft); }
.device-list { display: grid; gap: 9px; }
.device-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.48); }
.device-row strong, .device-row small { display: block; }
.device-row small { margin-top: 3px; color: var(--ink-soft); font-size: 12px; }
.device-revoked { opacity: .65; }
.local-only-notice { padding: 16px; border-left: 2px solid var(--amber); background: var(--amber-pale); }
.local-only-notice p { margin-top: 5px; }
.empty-inline { padding: 18px; border: 1px dashed var(--line-strong); border-radius: 12px; }

.workspace-facts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin: 18px 0; }
.workspace-facts div { min-width: 0; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.45); }
.workspace-facts span, .workspace-facts code { display: block; }
.workspace-facts span { color: var(--ink-soft); font-size: 12px; }
.workspace-facts code { margin-top: 5px; overflow-wrap: anywhere; font-size: 13px; }
.diff-panel { margin-top: 18px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #1d1c19; color: #f7f1e6; }
.diff-panel summary { min-height: 52px; padding: 14px 18px; cursor: pointer; color: var(--amber-bright); font-weight: 750; }
.diff-panel pre { max-height: 680px; margin: 0; padding: 18px; overflow: auto; border-top: 1px solid rgba(255,255,255,.1); font-size: 12px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.workspace-commit-action { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 18px 0; padding: 18px; border: 1px solid rgba(38,115,93,.24); border-radius: var(--radius); background: var(--green-pale); }
.workspace-commit-action p { margin: 0; color: var(--ink-soft); }
.workspace-commit-action code { overflow-wrap: anywhere; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  font-size: 14px;
  font-weight: 740;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:disabled { cursor: wait; opacity: 0.62; }
.button-primary { color: white; background: var(--ink); box-shadow: 0 10px 28px rgba(24,23,19,0.18); }
.button-primary:hover:not(:disabled) { background: #302e28; box-shadow: 0 12px 32px rgba(24,23,19,0.22); }
.button-secondary { border-color: var(--line-strong); background: var(--surface-solid); }
.button-ghost { border-color: transparent; color: var(--ink-soft); background: transparent; }
.button-danger { color: var(--red); border-color: rgba(159,62,53,0.25); background: var(--red-pale); }
.text-link { color: var(--ink-soft); font-size: 13px; font-weight: 700; text-decoration: none; }
.text-link:hover { color: var(--amber); }

section + section { margin-top: 72px; }
.section-heading { justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section-heading.compact { margin-bottom: 18px; }
.section-heading h2, .panel h2, .future-note h2 {
  margin: 3px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(27px, 2.7vw, 39px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 500;
}
.section-note { max-width: 680px; margin: 8px 0 0; color: var(--ink-soft); font-size: 13px; }
.quiet-label { color: #8a8377; font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; }

.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 13px; }
.metric-card {
  min-height: 145px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,253,248,0.62);
}
.metric-card span, .metric-card small { display: block; color: var(--ink-soft); }
.metric-card span { font-size: 12px; font-weight: 700; }
.metric-card strong { display: block; margin: 12px 0 2px; font-family: Georgia, serif; font-size: 43px; line-height: 1; font-weight: 500; }
.metric-card small { font-size: 12px; }
.metric-accent { color: white; background: var(--ink); border-color: var(--ink); box-shadow: var(--shadow); }
.metric-accent span, .metric-accent small { color: rgba(255,255,255,0.62); }

.agent-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 18px; }
.agent-card, .panel, .registry-card, .review-card, .result-card, .future-note {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 1px rgba(255,255,255,0.7);
}
.agent-card { min-height: 310px; padding: clamp(24px, 3vw, 34px); }
.agent-manager { color: white; background: linear-gradient(145deg, #1d1b17, #302b24); box-shadow: var(--shadow); }
.agent-card-top { justify-content: space-between; margin-bottom: 42px; }
.agent-orb { width: 54px; height: 54px; border-radius: 17px; background: #e8e1d4; border-color: var(--line); box-shadow: none; }
.manager-orb { color: #2a2216; background: linear-gradient(145deg, #f6dca9, #d6963e); }
.agent-portrait {
  width: 86px;
  height: 86px;
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 24px;
  background-image: url("/static/avatars/agent-team-atlas.webp");
  background-repeat: no-repeat;
  background-size: 500% 400%;
  box-shadow: 0 12px 35px rgba(27,22,16,.16);
}
.agent-portrait-card { width: 68px; height: 68px; border-radius: 20px; }
.agent-portrait-large { width: 128px; height: 128px; border-radius: 34px; }
.avatar-slot-0 { background-position: 0 0; }
.avatar-slot-1 { background-position: 25% 0; }
.avatar-slot-2 { background-position: 50% 0; }
.avatar-slot-3 { background-position: 75% 0; }
.avatar-slot-4 { background-position: 100% 0; }
.avatar-slot-5 { background-position: 0 33.333%; }
.avatar-slot-6 { background-position: 25% 33.333%; }
.avatar-slot-7 { background-position: 50% 33.333%; }
.avatar-slot-8 { background-position: 75% 33.333%; }
.avatar-slot-9 { background-position: 100% 33.333%; }
.avatar-slot-10 { background-position: 0 66.667%; }
.avatar-slot-11 { background-position: 25% 66.667%; }
.avatar-slot-12 { background-position: 50% 66.667%; }
.avatar-slot-13 { background-position: 75% 66.667%; }
.avatar-slot-14 { background-position: 100% 66.667%; }
.avatar-slot-15 { background-position: 0 100%; }
.avatar-slot-16 { background-position: 25% 100%; }
.avatar-slot-17 { background-position: 50% 100%; }
.avatar-slot-18 { background-position: 75% 100%; }
.avatar-slot-19 { background-position: 100% 100%; }
.pill, .status-badge, .live-indicator {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pill { padding: 7px 10px; border: 1px solid var(--line); }
.pill-live { color: var(--green); border-color: rgba(38,115,93,.2); background: var(--green-pale); }
.agent-manager .pill-live { color: #c4f0dd; border-color: rgba(196,240,221,.18); background: rgba(71,143,114,.16); }
.pill-readonly { color: var(--blue); background: var(--blue-pale); border-color: transparent; }
.agent-card h3 { margin: 7px 0; font-family: Georgia, serif; font-size: clamp(27px, 3vw, 40px); line-height: 1.1; font-weight: 500; letter-spacing: -0.03em; }
.agent-card > p:not(.eyebrow) { max-width: 560px; margin: 0; color: var(--ink-soft); }
.agent-manager > p:not(.eyebrow) { color: rgba(255,255,255,0.66); }
.agent-card .agent-persona-title { font-weight: 760; }
.agent-card .agent-card-bio { margin-top: 10px !important; font-size: 13px; }
.agent-tech-name { display: block; margin-top: 14px; color: #7d766a; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; overflow-wrap: anywhere; }
.agent-manager .agent-tech-name { color: rgba(255,255,255,.42); }
.agent-route { display: flex; align-items: center; gap: 10px; margin-top: 34px; color: rgba(255,255,255,0.68); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; }
.agent-route span { padding: 8px 10px; border: 1px solid rgba(255,255,255,0.11); border-radius: 8px; }
.agent-route i { color: var(--amber-bright); font-style: normal; }
.clean-list, .check-list { margin: 25px 0 0; padding: 0; list-style: none; }
.clean-list li, .check-list li { position: relative; margin-top: 10px; padding-left: 24px; color: var(--ink-soft); font-size: 13px; }
.clean-list li::before, .check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }

.run-table-wrap { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,253,248,0.54); }
.run-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.run-table th { padding: 13px 17px; color: #817b70; text-align: left; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.run-table td { padding: 17px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 13px; vertical-align: middle; }
.run-table td:first-child { width: 48%; color: var(--ink); font-size: 14px; }
.run-table td:first-child a { display: block; overflow: hidden; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; font-weight: 680; }
.run-table th:first-child { width: 48%; }
.run-table th:last-child, .run-table td:last-child { width: 52px; text-align: right; }
.run-table tr:hover td { background: rgba(255,255,255,0.45); }
.row-arrow { color: var(--amber); text-decoration: none; font-size: 19px; }

.status-badge { padding: 6px 9px; border: 1px solid transparent; }
.status-queued { color: var(--blue); background: var(--blue-pale); }
.status-running { color: #8a5917; background: var(--amber-pale); }
.status-completed { color: var(--green); background: var(--green-pale); }
.status-failed, .status-cancelled { color: var(--red); background: var(--red-pale); }
.status-interrupted { color: #6f6355; background: #e8e2d9; }
.outcome-accepted, .outcome-planning, .outcome-investigating, .outcome-executing,
.outcome-verifying { color: #8a5917; background: var(--amber-pale); }
.outcome-awaiting_user, .outcome-blocked, .outcome-partially_solved,
.outcome-not_assessed { color: var(--blue); background: var(--blue-pale); }
.outcome-solved, .outcome-prevented { color: var(--green); background: var(--green-pale); }
.outcome-unresolved, .outcome-failed, .outcome-cancelled,
.outcome-interrupted { color: var(--red); background: var(--red-pale); }
.technical-status { color: var(--ink-soft); font-size: 11px; }

.empty-state { padding: 60px 24px; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); text-align: center; }
.empty-state h2, .empty-state h3 { margin: 12px 0 6px; font-family: Georgia, serif; font-size: 30px; font-weight: 500; }
.empty-state p { max-width: 570px; margin: 0 auto 22px; color: var(--ink-soft); }
.empty-icon { display: grid; place-items: center; width: 54px; height: 54px; margin: auto; border-radius: 50%; color: var(--amber); background: var(--amber-pale); font-size: 24px; }

.form-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .65fr); gap: 22px; align-items: start; }
.panel { padding: clamp(24px, 3vw, 38px); }
.command-header { margin-bottom: 44px; }
.command-header .lede { max-width: 790px; }
.command-layout { grid-template-columns: minmax(0, 1.65fr) minmax(300px, .6fr); }
.command-layout > * { min-width: 0; }
.command-form { padding: clamp(25px,4vw,48px); }
.command-agent { display: flex; align-items: center; gap: 20px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.command-agent > div:last-child { min-width: 0; }
.command-agent h2 { margin: 8px 0 5px; font-family: Georgia,serif; font-size: clamp(25px,3vw,34px); font-weight: 500; }
.command-agent h2, .command-agent p { overflow-wrap: anywhere; }
.command-agent p { max-width: 700px; margin: 0; color: var(--ink-soft); font-size: 13px; }
.command-field { margin-top: 30px; }
.command-field textarea { min-height: 250px; padding: 20px; border-radius: 16px; background: rgba(255,255,255,.8); font-size: 16px; }
.auto-handling { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; margin-top: 28px; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--line); }
.auto-handling div { min-height: 112px; padding: 17px; background: rgba(255,253,248,.86); }
.auto-handling span, .auto-handling strong, .auto-handling small { display: block; }
.auto-handling span { color: var(--amber); font-family: Georgia,serif; font-size: 17px; }
.auto-handling strong { margin-top: 13px; font-size: 13px; }
.auto-handling small { margin-top: 3px; color: var(--ink-soft); font-size: 11px; line-height: 1.4; }
.advanced-options { margin-top: 26px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.3); }
.advanced-options summary { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 56px; padding: 14px 17px; cursor: pointer; font-size: 13px; font-weight: 760; }
.advanced-options summary small { color: var(--ink-soft); font-weight: 500; }
.advanced-options-body { padding: 0 18px 20px; border-top: 1px solid var(--line); }
.advanced-options-body .field-group { margin-top: 20px; }
.advanced-options-body .option-card { margin-top: 12px !important; }
.command-actions { justify-content: flex-start; }
.command-actions .button-primary { min-width: 190px; }
.command-promise h2 { margin-bottom: 22px; }
.promise-boundary { margin-top: 26px; padding: 16px; border: 1px solid rgba(230,168,76,.2); border-radius: 13px; background: rgba(230,168,76,.07); }
.promise-boundary strong { color: var(--amber-bright); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.promise-boundary p { margin: 7px 0 0; color: rgba(255,255,255,.66); font-size: 12px; line-height: 1.55; }
.field-group + .field-group, .option-group, .form-actions { margin-top: 28px; }
.field-group label, .option-group legend, .review-card label { display: block; margin-bottom: 9px; font-size: 13px; font-weight: 760; }
.optional { color: var(--ink-soft); font-size: 12px; font-weight: 500; }
textarea, .field-group input[type="number"], .field-group select {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--ink);
  background: rgba(255,255,255,0.68);
  line-height: 1.55;
}
.setting-field input[type="number"] {
  width: 104px;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--ink);
  background: rgba(255,255,255,.68);
  text-align: center;
  font-size: 18px;
  font-weight: 760;
}
textarea { resize: vertical; }
textarea::placeholder { color: #aaa397; }
textarea:hover, .field-group input[type="number"]:hover, .field-group select:hover { border-color: rgba(183,109,24,0.38); }
textarea:focus, .field-group input[type="number"]:focus, .field-group select:focus { border-color: var(--amber); outline: 3px solid rgba(183,109,24,0.12); }
.field-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 7px; color: var(--ink-soft); font-size: 12px; }
.field-group > small { display: block; margin-top: 7px; color: var(--ink-soft); font-size: 12px; }
.route-preview { margin: 10px 0 0; padding: 11px 13px; border-left: 2px solid var(--amber); color: var(--ink-soft); background: rgba(245,228,195,.45); font-size: 12px; }
.option-group { display: grid; gap: 10px; padding: 0; border: 0; }
.option-card { display: flex !important; align-items: flex-start; gap: 13px; margin: 0 !important; padding: 15px; border: 1px solid var(--line); border-radius: 13px; cursor: pointer; background: rgba(255,255,255,0.36); }
.option-card:hover { border-color: rgba(183,109,24,0.38); }
.option-card input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--amber); }
.option-copy strong, .option-copy small { display: block; }
.option-copy strong { font-size: 13px; }
.option-copy small { margin-top: 3px; color: var(--ink-soft); font-size: 12px; font-weight: 450; }
.voice-composer textarea { display: block; }
.voice-controls { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.voice-button { min-height: 44px; }
.voice-button [data-voice-icon] { color: var(--red); font-size: 10px; }
.voice-button.recording { color: white; border-color: var(--red); background: var(--red); }
.voice-button.recording [data-voice-icon] { color: white; animation: voice-pulse 1s ease-in-out infinite; }
.voice-status { color: var(--ink-soft); font-size: 12px; }
.voice-consent { display: flex !important; align-items: flex-start; gap: 11px; margin: 15px 0 0 !important; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.34); cursor: pointer; }
.voice-consent input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 3px; accent-color: var(--amber); }
.voice-consent strong, .voice-consent small { display: block; }
.voice-consent strong { font-size: 13px; }
.voice-consent small { margin-top: 3px; color: var(--ink-soft); font-size: 12px; font-weight: 450; }
@keyframes voice-pulse { 50% { opacity: .42; transform: scale(.8); } }
.form-actions { gap: 10px; }
.form-error { margin-top: 18px; padding: 12px 14px; border-radius: 10px; color: var(--red); background: var(--red-pale); font-size: 13px; }
.safety-panel { position: sticky; top: 32px; background: linear-gradient(150deg, #28251f, #181713); color: white; }
.safety-panel h2 { margin-bottom: 22px; }
.safety-panel .check-list li, .safety-panel .fine-print { color: rgba(255,255,255,0.66); }
.safety-panel .check-list li::before { color: #7bd0a9; }
.safety-mark { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 28px; border-radius: 50%; color: var(--amber-bright); background: rgba(230,168,76,0.1); font-size: 24px; }
.fine-print { margin: 30px 0 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 12px; }

.pairing-body { display: grid; min-height: 100vh; place-items: center; padding: 22px; }
.pairing-shell { width: min(100%, 560px); }
.pairing-card { padding: clamp(28px, 7vw, 52px); }
.pairing-card .brand-mark { margin-bottom: 36px; }
.pairing-card h1 { margin: 8px 0 16px; font-family: Georgia, serif; font-size: clamp(38px, 10vw, 58px); line-height: 1; letter-spacing: -.04em; font-weight: 500; }
.pairing-card .button { width: 100%; margin-top: 24px; }
.pairing-card input { width: 100%; padding: 15px 16px; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(255,255,255,.68); }
.pairing-status { margin: 20px 0 0; color: var(--ink-soft); font-size: 12px; }

.migration-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 18px; }
.migration-card { padding: 26px; }
.migration-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.migration-card h3 { margin: 5px 0 0; font-family: Georgia, serif; font-size: 25px; line-height: 1.1; font-weight: 500; }
.migration-card > p { color: var(--ink-soft); font-size: 13px; }
.migration-meta { display: grid; gap: 7px; padding-top: 16px; border-top: 1px solid var(--line); }
.migration-meta div { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 8px; }
.migration-meta dt { color: var(--ink-soft); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.migration-meta dd { margin: 0; overflow-wrap: anywhere; font-size: 12px; font-weight: 700; }
.migration-card .clean-list { margin-top: 16px; }
.archive-ready { margin: 18px 0 0 !important; padding: 10px 12px; border-radius: 10px; color: var(--green) !important; background: var(--green-pale); font-weight: 700; }
.migration-takeover_passed, .migration-registered, .migration-qualified { color: var(--green); background: var(--green-pale); }
.migration-handoff_running { color: #8a5917; background: var(--amber-pale); }
.migration-blocked, .migration-handoff_needs_fix { color: var(--red); background: var(--red-pale); }
.migration-classified, .migration-handoff_ready { color: var(--blue); background: var(--blue-pale); }

.run-header h1 { max-width: 940px; font-size: clamp(31px, 3.6vw, 52px) !important; }
.run-title-row { gap: 10px; }
.mono-label { color: #7d766a; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; letter-spacing: 0.06em; }
.run-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .65fr); gap: 20px; align-items: start; }
.timeline-panel { min-height: 390px; }
.panel-heading { justify-content: space-between; margin-bottom: 28px; }
.panel-heading h2 { font-size: 30px; }
.live-indicator { gap: 7px; padding: 7px 10px; color: var(--green); background: var(--green-pale); }
.live-indicator i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .35; transform: scale(.8); } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
.timeline { margin: 0; padding: 0; list-style: none; }
.timeline-item { position: relative; display: grid; grid-template-columns: 22px 1fr; gap: 13px; padding-bottom: 27px; }
.timeline-item:not(:last-child)::before { content: ""; position: absolute; left: 6px; top: 14px; bottom: -2px; width: 1px; background: var(--line-strong); }
.timeline-node { position: relative; z-index: 1; width: 13px; height: 13px; margin-top: 4px; border: 3px solid var(--surface-solid); border-radius: 50%; background: #aaa397; box-shadow: 0 0 0 1px var(--line-strong); }
.event-completed .timeline-node, .event-classified .timeline-node,
.event-workspace_checkpoint_created .timeline-node,
.event-workspace_rollback_created .timeline-node { background: var(--green); }
.event-failed .timeline-node, .event-cancelled .timeline-node { background: var(--red); }
.event-review_required .timeline-node,
.event-workspace_intervention_required .timeline-node { background: var(--amber); }
.timeline-meta { justify-content: space-between; gap: 15px; }
.timeline-meta strong { font-size: 13px; }
.timeline-meta time { color: var(--ink-soft); font-size: 12px; white-space: nowrap; }
.timeline-item p { margin: 4px 0 0; color: var(--ink-soft); font-size: 12px; }
.quiet-state { color: var(--ink-soft); }
.context-panel h2 { margin-bottom: 22px; font-size: 29px; }
.detail-list { margin: 0; }
.detail-list > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.detail-list dt { color: var(--ink-soft); }
.detail-list dd { margin: 0; text-align: right; font-weight: 700; }
.evidence-box { margin-top: 26px; }
.evidence-box h3 { font-size: 12px; }
.evidence-box ul, .evidence-box p { margin: 10px 0 0; padding-left: 18px; color: var(--ink-soft); font-size: 12px; }

.alert { display: flex; align-items: center; gap: 13px; margin-top: 22px; padding: 15px 18px; border: 1px solid; border-radius: 13px; font-size: 12px; }
.alert strong { flex: 0 0 auto; }
.alert span { color: var(--ink-soft); }
.alert a { margin-left: auto; font-weight: 700; text-decoration: none; white-space: nowrap; }
.alert-error { color: var(--red); border-color: rgba(159,62,53,.25); background: var(--red-pale); }
.alert-review { color: #8a5917; border-color: rgba(183,109,24,.23); background: var(--amber-pale); }
.alert-neutral { color: var(--green); border-color: rgba(38,115,93,.24); background: var(--green-pale); }
.review-banner { margin: 0 0 28px; }
.result-section { margin-top: 66px; }
.result-summary { display: flex; justify-content: space-between; gap: 30px; padding: clamp(24px, 3vw, 38px); border-radius: var(--radius-lg); color: white; background: var(--ink); box-shadow: var(--shadow); }
.result-summary > div { min-width: 0; }
.result-summary h3 { max-width: 890px; margin: 8px 0 0; overflow-wrap: anywhere; font-family: Georgia, serif; font-size: clamp(23px, 2.8vw, 38px); line-height: 1.25; font-weight: 500; }
.result-owner { color: var(--amber-bright); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.result-flags { display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.result-flags span { padding: 7px 9px; border: 1px solid rgba(255,255,255,.13); border-radius: 999px; color: rgba(255,255,255,.72); font-size: 11px; text-transform: uppercase; white-space: nowrap; }
.result-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 15px; margin-top: 15px; }
.result-card { padding: 24px; }
.result-card, .result-card li, .result-card p, .result-card code { overflow-wrap: anywhere; }
.result-card-wide { grid-column: 1 / -1; }
.result-card h3 { margin: 5px 0 17px; font-family: Georgia, serif; font-size: 23px; font-weight: 500; }
.result-card ul, .result-card ol { margin: 0; padding-left: 20px; color: var(--ink-soft); font-size: 12px; }
.result-card li + li { margin-top: 8px; }
.result-pending { display: flex; align-items: center; gap: 18px; margin-top: 35px; padding: 25px; border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.result-pending h2 { margin: 0; font-family: Georgia, serif; font-size: 24px; font-weight: 500; }
.result-pending p { margin: 3px 0 0; color: var(--ink-soft); font-size: 12px; }
.spinner { width: 27px; height: 27px; border: 3px solid var(--line); border-top-color: var(--amber); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.feedback-panel { margin-top: 28px; }
.feedback-form fieldset { margin: 0 0 20px; padding: 0; border: 0; }
.feedback-choices { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.feedback-choice { min-height: 52px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 13px; color: var(--ink); background: rgba(255,255,255,.48); cursor: pointer; font-weight: 760; }
.feedback-choice:hover, .feedback-choice.selected { border-color: var(--amber); background: var(--amber-pale); }
.feedback-choice-good:hover, .feedback-choice-good.selected { color: var(--green); border-color: rgba(38,115,93,.35); background: var(--green-pale); }
.feedback-choice-bad:hover, .feedback-choice-bad.selected { color: var(--red); border-color: rgba(159,62,53,.35); background: var(--red-pale); }
.feedback-form label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 760; }
.feedback-form textarea { width: 100%; }
.feedback-success { margin: 14px 0 0; padding: 12px 14px; border-radius: 10px; color: var(--green); background: var(--green-pale); font-size: 13px; }
.feedback-history { margin-top: 25px; padding-top: 20px; border-top: 1px solid var(--line); }
.feedback-history h3 { margin: 0 0 10px; font-size: 13px; }
.feedback-history ul { margin: 0; padding: 0; list-style: none; }
.feedback-history li { padding: 10px 0; color: var(--ink-soft); font-size: 12px; }
.feedback-history li + li { border-top: 1px solid var(--line); }
.feedback-history small { display: block; margin-top: 3px; color: #817b70; }

.orchestration-board {
  padding: clamp(26px,4vw,48px);
  border: 1px solid rgba(230,168,76,.2);
  border-radius: var(--radius-lg);
  color: white;
  background: linear-gradient(145deg,#191815,#29251f);
  box-shadow: var(--shadow);
}
.orchestration-lead { display: flex; align-items: center; gap: clamp(22px,4vw,40px); max-width: 970px; }
.orchestration-lead h2 { margin: 5px 0 10px; font-family: Georgia,serif; font-size: clamp(30px,4vw,49px); line-height: 1.06; font-weight: 500; letter-spacing: -.035em; }
.orchestration-lead p:not(.eyebrow) { margin: 0; color: rgba(255,255,255,.65); }
.ai-identity { display: inline-flex; align-items: center; width: fit-content; margin-top: 14px; padding: 6px 9px; border: 1px solid rgba(183,109,24,.22); border-radius: 999px; color: #8a5917; background: var(--amber-pale); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.orchestration-flow { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 1px; margin: 38px 0 0; padding: 0; border: 1px solid rgba(255,255,255,.1); border-radius: 18px; overflow: hidden; list-style: none; background: rgba(255,255,255,.1); }
.orchestration-flow li { position: relative; min-height: 154px; padding: 20px; background: rgba(255,255,255,.035); }
.orchestration-flow li:not(:last-child)::after { content: "→"; position: absolute; z-index: 2; top: 20px; right: -8px; color: var(--amber-bright); font-weight: 800; }
.orchestration-flow span, .orchestration-flow strong, .orchestration-flow small { display: block; }
.orchestration-flow span { color: var(--amber-bright); font-family: Georgia,serif; font-size: 19px; }
.orchestration-flow strong { margin-top: 18px; font-size: 13px; }
.orchestration-flow small { margin-top: 6px; color: rgba(255,255,255,.65); font-size: 12px; line-height: 1.5; }
.orchestration-note { margin: 24px 0 0; padding: 16px 18px; border-left: 2px solid var(--amber-bright); color: rgba(255,255,255,.68); background: rgba(255,255,255,.04); font-size: 12px; }
.agent-registry-heading { margin-top: 72px; }
.registry-stack { display: grid; gap: 16px; }
.registry-card { position: relative; display: grid; grid-template-columns: minmax(0,1.08fr) minmax(320px,.92fr); gap: 38px; padding: clamp(26px, 4vw, 45px); }
.registry-manager { color: white; background: linear-gradient(145deg,#211e19,#332e27); }
.registry-orchestrator { border-color: rgba(230,168,76,.48); box-shadow: 0 24px 70px rgba(47,35,18,.16); }
.registry-profile { display: flex; align-items: flex-start; gap: 22px; min-width: 0; }
.registry-copy { min-width: 0; }
.identity-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.identity-line .ai-identity { margin-top: 0; }
.registry-profile h2 { margin: 4px 0 2px; font-family: Georgia,serif; font-size: clamp(30px,3.2vw,44px); line-height: 1.05; font-weight: 500; }
.registry-profile p { margin: 0; }
.registry-profile .persona-title { color: var(--amber); font-size: 12px; font-weight: 800; }
.registry-profile .persona-bio { max-width: 680px; margin-top: 13px; color: var(--ink-soft); font-size: 13px; }
.registry-manager .persona-bio { color: rgba(255,255,255,.66); }
.trait-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.trait-list span { padding: 5px 8px; border-radius: 999px; color: #746c5f; background: rgba(80,70,55,.08); font-size: 11px; font-weight: 720; }
.registry-manager .trait-list span { color: rgba(255,255,255,.66); background: rgba(255,255,255,.08); }
.technical-identity { display: grid; grid-template-columns: auto 1fr; gap: 1px 10px; margin-top: 20px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.28); }
.technical-identity span { grid-row: 1 / 3; align-self: center; color: var(--ink-soft); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; }
.technical-identity strong { font-size: 13px; }
.technical-identity code, .registry-profile small code { color: var(--ink-soft); font-size: 11px; overflow-wrap: anywhere; }
.registry-profile small { display: block; margin-top: 9px; color: var(--ink-soft); font-size: 12px; }
.registry-manager .technical-identity { border-color: rgba(255,255,255,.11); background: rgba(255,255,255,.035); }
.registry-manager .technical-identity span, .registry-manager .technical-identity code, .registry-manager .registry-profile small, .registry-manager .registry-profile small code { color: rgba(255,255,255,.48); }
.registry-details { display: grid; gap: 24px; align-content: start; }
.registry-capabilities h3, .registry-boundaries h3 { margin: 0; font-size: 12px; }
.registry-capabilities .check-list { margin-top: 12px; }
.registry-boundaries { padding-top: 20px; border-top: 1px solid var(--line); }
.registry-boundaries ul { margin: 10px 0 0; padding-left: 18px; color: var(--ink-soft); font-size: 12px; }
.registry-boundaries li + li { margin-top: 6px; }
.registry-manager .check-list li, .registry-manager .registry-boundaries ul { color: rgba(255,255,255,.65); }
.registry-manager .registry-boundaries { border-top-color: rgba(255,255,255,.1); }
.registry-card > .pill { position: absolute; top: 22px; right: 22px; }
.registry-run { position: absolute; right: 20px; bottom: 18px; }
.registry-card > .run-form { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line); }
.registry-manager > .run-form { border-top-color: rgba(255,255,255,.12); }
.future-note { margin-top: 22px; padding: clamp(24px,4vw,42px); border-style: dashed; }
.future-note > p:not(.eyebrow) { max-width: 780px; color: var(--ink-soft); }
.future-note .button { margin-top: 18px; }

.control-overview { margin-top: 0; }
.control-metric-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.control-metric { min-height: 148px; padding: 21px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,253,248,.68); }
.control-metric span, .control-metric small, .control-metric strong { display: block; }
.control-metric span { color: var(--ink-soft); font-size: 12px; font-weight: 760; }
.control-metric strong { margin-top: 14px; font-family: Georgia,serif; font-size: clamp(29px,3.2vw,43px); line-height: 1; font-weight: 500; }
.control-metric small { margin-top: 8px; color: var(--ink-soft); font-size: 12px; }
.control-metric-queue { color: white; border-color: var(--ink); background: var(--ink); box-shadow: var(--shadow); }
.control-metric-queue span, .control-metric-queue small { color: rgba(255,255,255,.6); }
.control-grid { display: grid; grid-template-columns: minmax(0,1.12fr) minmax(330px,.88fr); gap: 18px; align-items: stretch; }
.control-settings-panel h2, .queue-explainer h2, .deployment-boundary h2 { margin: 4px 0 10px; font-family: Georgia,serif; font-size: clamp(28px,3vw,42px); line-height: 1.08; font-weight: 500; letter-spacing: -.03em; }
.control-intro { max-width: 650px; margin: 0 0 28px; color: var(--ink-soft); }
.option-card-prominent { border-color: rgba(183,109,24,.28); background: var(--amber-pale); }
.setting-field { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 18px; padding: 20px 0 0; border-top: 1px solid var(--line); }
.setting-field label, .setting-field small { display: block; }
.setting-field label { font-size: 13px; font-weight: 780; }
.setting-field small { max-width: 520px; margin-top: 3px; color: var(--ink-soft); font-size: 12px; }
.queue-explainer { color: white; background: linear-gradient(145deg,#211e19,#332e27); box-shadow: var(--shadow); }
.queue-explainer .eyebrow { color: var(--amber-bright); }
.numbered-flow { display: grid; gap: 0; margin: 26px 0 0; padding: 0; list-style: none; }
.numbered-flow li { display: grid; grid-template-columns: 32px 1fr; gap: 13px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.1); }
.numbered-flow li > span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: var(--amber-bright); background: rgba(230,168,76,.1); font-family: Georgia,serif; }
.numbered-flow strong, .numbered-flow small { display: block; }
.numbered-flow strong { font-size: 12px; }
.numbered-flow small { margin-top: 3px; color: rgba(255,255,255,.68); font-size: 12px; }
.boundary-note { margin: 22px 0 0; padding: 15px; border-left: 2px solid var(--amber-bright); color: rgba(255,255,255,.7); background: rgba(255,255,255,.04); font-size: 12px; }
.limit-card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
.limit-card-grid article { min-height: 210px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,253,248,.58); }
.limit-card-grid span { color: var(--amber); font-family: Georgia,serif; font-size: 18px; }
.limit-card-grid h3 { margin: 35px 0 8px; font-family: Georgia,serif; font-size: 23px; font-weight: 500; }
.limit-card-grid p { margin: 0; color: var(--ink-soft); font-size: 12px; }
.schedule-list { display: grid; gap: 10px; }
.schedule-card { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,253,248,.62); overflow: hidden; }
.schedule-card[open] { border-color: rgba(183,109,24,.28); background: var(--surface-solid); box-shadow: 0 12px 42px rgba(53,42,25,.06); }
.schedule-card summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 92px; padding: 15px 20px; cursor: pointer; list-style: none; }
.schedule-card summary::-webkit-details-marker { display: none; }
.schedule-card summary::after { content: "+"; display: grid; flex: 0 0 36px; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 10px; color: var(--amber); font-size: 20px; }
.schedule-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.schedule-card[open] summary::after { content: "−"; }
.schedule-card summary:focus-visible { outline: 3px solid rgba(183,109,24,.48); outline-offset: -3px; }
.schedule-agent { display: flex; align-items: center; gap: 14px; min-width: 0; }
.agent-portrait-mini { width: 58px; height: 58px; border-radius: 17px; }
.schedule-agent strong, .schedule-agent small, .schedule-summary-meta small { display: block; }
.schedule-agent strong { font-family: Georgia,serif; font-size: 20px; font-weight: 500; }
.schedule-agent small, .schedule-summary-meta small { color: var(--ink-soft); font-size: 11px; }
.schedule-summary-meta { display: flex; align-items: center; gap: 12px; margin-left: auto; text-align: right; }
.schedule-form { padding: 4px 24px 26px; border-top: 1px solid var(--line); }
.schedule-fields { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
.schedule-fields .field-group { margin-top: 24px; }
.deployment-boundary { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); border: 1px solid rgba(183,109,24,.25); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-solid); box-shadow: var(--shadow); }
.deployment-state, .deployment-risks { padding: clamp(26px,4vw,46px); }
.deployment-state { color: white; background: var(--ink); }
.deployment-state > p:not(.eyebrow) { color: rgba(255,255,255,.64); }
.deployment-state .eyebrow { color: var(--amber-bright); }
.deployment-state .pill { margin-top: 22px; }
.local-release { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); }
.local-release strong { font-size: 12px; }
.local-release p { margin: 5px 0 0; color: rgba(255,255,255,.65); font-size: 12px; }
.deployment-risks h3 { margin: 0 0 10px; font-size: 13px; }
.deployment-risks h3:not(:first-child) { margin-top: 28px; }
.deployment-risks ul { margin: 0; padding-left: 19px; color: var(--ink-soft); font-size: 12px; }
.deployment-risks li + li { margin-top: 7px; }
.command-chain { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.command-chain code { padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--paper); font-size: 11px; }
.command-chain span { color: var(--amber); }
.deployment-fineprint { margin: 17px 0 0; color: var(--ink-soft); font-size: 12px; }
.access-boundary { margin-top: 22px; padding: 15px; border: 1px solid rgba(159,62,53,.16); border-radius: 12px; background: var(--red-pale); }
.access-boundary strong { color: var(--red); font-size: 12px; }
.access-boundary p { margin: 4px 0 0; color: var(--ink-soft); font-size: 12px; }

.review-list { display: grid; gap: 16px; }
.review-card { padding: clamp(22px,3vw,32px); }
.review-card-head { justify-content: space-between; gap: 15px; }
.review-card-head > div { display: flex; align-items: center; gap: 9px; }
.review-card-head time { color: var(--ink-soft); font-size: 12px; }
.review-card h2 { margin: 18px 0 8px; font-family: Georgia,serif; font-size: clamp(23px,2.5vw,33px); font-weight: 500; }
.review-card h2 a { text-decoration: none; }
.review-card > p { max-width: 850px; color: var(--ink-soft); }
.effect-list { display: flex; flex-wrap: wrap; gap: 7px; margin: 16px 0 22px; }
.effect-list span { padding: 6px 9px; border-radius: 999px; color: #8a5917; background: var(--amber-pale); font-size: 11px; text-transform: uppercase; }
.review-card textarea { margin-bottom: 14px; }
.review-actions { gap: 9px; }
.review-complete { border-color: rgba(38,115,93,.25); background: var(--green-pale); }

.agent-builder { margin: 0 0 44px; padding: clamp(22px,3vw,34px); }
.agent-builder > p { max-width: 840px; color: var(--ink-soft); }
.agent-draft-grid { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 14px; }
.draft-list { display: grid; gap: 14px; margin-bottom: 42px; }
.draft-card { display: flex; justify-content: space-between; gap: 24px; padding: 22px; border-style: dashed; }
.draft-card h3 { margin: 3px 0 5px; font-family: Georgia,serif; font-size: 25px; }
.draft-card p { margin: 5px 0; color: var(--ink-soft); }
.draft-meta { display: flex; flex: 0 0 210px; align-items: flex-end; flex-direction: column; gap: 6px; color: var(--ink-soft); font-size: 11px; }
.invite-form { display: grid; min-width: min(100%,620px); padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-solid); gap: 12px; }
.invite-result { padding-top: 8px; border-top: 1px solid var(--line); }
.invite-result > div { display: flex; gap: 8px; }
.invite-result input { min-width: 0; }

.icon-button { display: grid; flex: 0 0 44px; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-solid); cursor: pointer; font-size: 19px; }
.nav-backdrop { position: fixed; inset: 0; z-index: 25; background: rgba(20,18,15,.34); backdrop-filter: blur(3px); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 1050px) {
  .run-layout, .form-layout { grid-template-columns: 1fr; }
  .safety-panel { position: static; }
  .context-panel { grid-row: 1; }
  .registry-card { grid-template-columns: 1fr; }
  .orchestration-flow { grid-template-columns: 1fr 1fr; }
  .orchestration-flow li:not(:last-child)::after { display: none; }
  .control-metric-grid, .limit-card-grid { grid-template-columns: repeat(2,1fr); }
  .control-grid, .deployment-boundary { grid-template-columns: 1fr; }
  .provider-strip { grid-template-columns: 1fr; }
  .device-control { grid-template-columns: 1fr; }
  .command-layout { grid-template-columns: 1fr; }
  .agent-draft-grid { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  .sidebar { transform: translateX(-105%); transition: transform 180ms ease; box-shadow: 20px 0 60px rgba(28,23,17,.15); }
  .sidebar.open { transform: translateX(0); }
  .mobile-only { display: grid !important; }
  .mobile-bar { position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; height: 64px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: rgba(248,245,237,.9); backdrop-filter: blur(16px); }
  .mobile-brand { display: flex; align-items: center; min-height: 44px; text-decoration: none; font-family: Georgia,serif; font-size: 18px; font-weight: 600; }
  .main-content { margin-left: 0; padding: 32px 18px 70px; }
  .page-header { display: block; margin-bottom: 38px; }
  .page-header .button { margin-top: 25px; }
  .hero-header { min-height: 0; padding-top: 10px; }
  .page-header h1 { font-size: clamp(40px,13vw,60px); }
  .agent-grid { grid-template-columns: 1fr; }
  .orchestration-lead { align-items: flex-start; }
  .schedule-fields { grid-template-columns: 1fr; }
  .run-table { table-layout: auto; }
  .run-table th:nth-child(2), .run-table td:nth-child(2), .run-table th:nth-child(4), .run-table td:nth-child(4) { display: none; }
  .run-table th:first-child { width: auto; }
  .result-summary { display: block; }
  .result-flags { justify-content: flex-start; margin-top: 22px; }
  .alert { align-items: flex-start; flex-direction: column; }
  .alert a { margin-left: 0; }
}

@media (max-width: 540px) {
  .metric-grid, .result-grid, .limit-card-grid { grid-template-columns: 1fr; }
  .control-metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .control-metric { min-height: 160px; padding: 17px; }
  .result-card-wide { grid-column: auto; }
  .section-heading { align-items: flex-end; }
  .section-heading .text-link, .quiet-label { display: none; }
  .agent-route { gap: 5px; }
  .agent-route span { padding: 6px; font-size: 11px; }
  .voice-controls { align-items: stretch; flex-direction: column; }
  .voice-button { width: 100%; }
  .form-actions, .review-actions { align-items: stretch; flex-direction: column; }
  .feedback-choices { grid-template-columns: 1fr; }
  .form-actions .button, .review-actions .button { width: 100%; }
  .panel, .agent-card { border-radius: var(--radius); }
  .registry-identity { display: block; }
  .registry-identity .agent-orb { margin-bottom: 18px; }
  .orchestration-lead, .registry-profile { display: block; }
  .orchestration-lead .agent-portrait, .registry-profile .agent-portrait { margin-bottom: 20px; }
  .orchestration-flow { grid-template-columns: 1fr; }
  .registry-card > .pill { position: static; grid-row: auto; }
  .registry-run { position: static; width: 100%; }
  .technical-identity { grid-template-columns: 1fr; }
  .technical-identity span { grid-row: auto; }
  .setting-field { align-items: stretch; flex-direction: column; gap: 12px; }
  .setting-field input[type="number"] { width: 100%; text-align: left; }
  .schedule-card summary { align-items: flex-start; }
  .schedule-summary-meta { align-items: flex-end; flex-direction: column; gap: 6px; }
  .schedule-summary-meta small { display: none; }
  .schedule-agent { align-items: flex-start; }
  .agent-portrait-mini { width: 50px; height: 50px; }
  .schedule-agent strong { font-size: 18px; }
  .schedule-form { padding-inline: 18px; }
  .command-chain { align-items: flex-start; flex-direction: column; }
  .command-chain span { transform: rotate(90deg); }
  .review-card-head { align-items: flex-start; flex-direction: column; }
  .timeline-meta { align-items: flex-start; flex-direction: column; gap: 2px; }
  .provider-facts { grid-template-columns: 1fr; }
  .workspace-facts { grid-template-columns: 1fr; }
  .workspace-commit-action { align-items: stretch; flex-direction: column; }
  .device-row { align-items: stretch; flex-direction: column; }
  .device-row .button { width: 100%; }
  .command-agent { display: block; }
  .draft-card { align-items: stretch; flex-direction: column; }
  .draft-meta { align-items: flex-start; flex-basis: auto; }
  .invite-result > div { align-items: stretch; flex-direction: column; }
  .command-agent .agent-portrait { width: 58px; height: 58px; border-radius: 17px; }
  .command-agent .agent-portrait { margin-bottom: 16px; }
  .command-field textarea { min-height: 280px; }
  .auto-handling { grid-template-columns: 1fr; }
  .auto-handling div { min-height: 0; }
  .advanced-options summary { align-items: flex-start; flex-direction: column; gap: 3px; }
}

@media (max-width: 360px) {
  .control-metric-grid { grid-template-columns: 1fr; }
}
