:root {
  color-scheme: dark;
  --sidebar-w: 300px;
  --center-w: 920px;
  --ops-w: 320px;
  --workbench-gap: 24px;
  --workbench-edge: max(28px, (100vw - var(--sidebar-w) - var(--center-w) - var(--ops-w) - var(--workbench-gap)) / 2);
  --bg: #080b13;
  --rail: #0b0f18;
  --panel: #191d28;
  --panel-2: #202636;
  --panel-3: #111722;
  --ink: #f7f8fb;
  --muted: #8e95a7;
  --soft: #cbd1df;
  --line: #292f40;
  --blue: #4b78ff;
  --green: #58d27d;
  --amber: #f0bd52;
  --red: #ff6d67;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.36);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
}

button,
textarea,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
  transition:
    background-color 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease,
    opacity 0.16s ease;
}

button:active {
  transform: translateY(0) scale(0.985);
}

button:focus-visible,
summary:focus-visible,
textarea:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 2px solid rgba(121, 153, 255, 0.78);
  outline-offset: 3px;
}

:where(.chat-main, .chat-surface, .home-screen, .run-feed, article, section, div, button, span, strong, small, p, h1, h2, h3, em, pre) {
  min-width: 0;
}

:where(.chat-surface, .home-screen, .run-feed, .deep-workbench, .queue-table-card, .tap-review-card, .next-click-card, .reddit-connect-card, .connector-card, .runtime-card, .human-loop-card, .daily-insights-card, .trend-card, .subagent-card, .workflow-card, .flag-card, .kanban-card, .report-card) {
  overflow-wrap: anywhere;
}

.app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  display: flex;
  flex-direction: column;
  background: var(--rail);
  border-right: 1px solid var(--line);
  padding: 24px 20px;
}

.brand,
.history-head,
.profile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: white;
  font-weight: 900;
}

.collapse-button,
.profile button,
.top-actions button,
.icon-button {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--soft);
  background: var(--panel);
}

.sidebar-command {
  width: 100%;
  height: 46px;
  margin-top: 24px;
  border-radius: 12px;
  padding: 0 14px;
  color: var(--ink);
  background: var(--panel);
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  text-align: left;
  font-weight: 750;
}

.side-nav,
.tool-nav,
.community-nav,
.history,
.profile {
  margin-top: 24px;
}

.side-nav {
  display: grid;
  gap: 7px;
}

.side-link {
  height: 44px;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border-radius: 12px;
  padding: 0 14px;
  color: var(--soft);
  background: transparent;
  text-align: left;
  font-weight: 700;
}

.side-link:hover,
.side-link.active,
.community-item:hover,
.community-item.active {
  background: var(--panel);
  color: white;
}

.sidebar-command:hover,
.side-link:hover,
.tool-item:hover,
.community-item:hover,
.history-item:hover {
  transform: translateY(-1px);
}

.nav-icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #cbd7ff;
  background: rgba(75, 120, 255, 0.1);
  font-size: 13px;
  font-weight: 950;
}

.side-link.active .nav-icon,
.sidebar-command:hover .nav-icon,
.side-link:hover .nav-icon {
  color: white;
  background: rgba(75, 120, 255, 0.2);
}

.sidebar-section-title,
.history-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 10px;
  padding: 0;
  background: transparent;
  text-align: left;
}

.section-toggle i {
  font-style: normal;
  transition: transform 0.18s ease;
}

.tool-nav.collapsed .tool-list,
.community-nav.collapsed .community-list {
  display: none;
}

.tool-nav.collapsed .section-toggle i,
.community-nav.collapsed .section-toggle i {
  transform: rotate(-90deg);
}

.community-list,
.tool-list,
.history-list {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.tool-list {
  gap: 6px;
}

.tool-item {
  min-height: 54px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border-radius: 13px;
  padding: 8px 10px;
  color: var(--soft);
  background: transparent;
  text-align: left;
}

.tool-item:hover,
.tool-item.active {
  background: var(--panel);
  color: white;
}

.tool-item span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #d9e1ff;
  background: rgba(75, 120, 255, 0.12);
  font-size: 12px;
  font-weight: 950;
}

.tool-item b,
.tool-item small {
  display: block;
  min-width: 0;
}

.tool-item b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.tool-item small {
  grid-column: 2;
  margin-top: -13px;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}

.community-item {
  min-height: 58px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-radius: 12px;
  padding: 8px;
  background: transparent;
  color: var(--muted);
  text-align: left;
}

.community-icon,
.profile-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #222a3a;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.community-copy {
  min-width: 0;
}

.community-copy strong,
.community-copy small,
.profile strong,
.profile small {
  display: block;
}

.community-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.community-copy small,
.profile small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.community-count {
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffb9b4;
  background: rgba(255, 109, 103, 0.18);
  font-size: 11px;
  font-weight: 900;
  animation: soft-count-in 0.28s ease-out both;
}

@keyframes soft-count-in {
  from {
    transform: scale(0.86);
    opacity: 0.35;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.history-head button {
  color: var(--muted);
  background: transparent;
  font-size: 12px;
}

.history-item {
  min-height: 36px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  color: var(--soft);
  background: transparent;
  text-align: left;
}

.history-item p {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.history-item small {
  color: var(--muted);
  font-size: 10px;
}

.history-divider {
  margin: 6px 0 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.history-empty {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: rgba(25, 29, 40, 0.5);
}

.history-empty strong,
.history-empty small {
  display: block;
}

.history-empty strong {
  color: var(--soft);
  font-size: 13px;
}

.history-empty small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.profile {
  border-top: 1px solid var(--line);
  margin-top: auto;
  padding-top: 18px;
}

.chat-main {
  min-width: 0;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, var(--center-w)) var(--ops-w);
  grid-template-rows: auto minmax(0, 1fr);
  align-items: start;
  justify-content: center;
  gap: var(--workbench-gap);
  padding: 24px 32px 168px;
}

body.ops-collapsed {
  --ops-w: 64px;
  --center-w: 1080px;
}

.chat-top {
  grid-column: 1 / -1;
  position: sticky;
  top: 0;
  z-index: 5;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.community-pill,
.top-actions {
  pointer-events: auto;
}

.community-pill {
  height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  padding: 0 18px 0 8px;
  color: var(--ink);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.community-pill span {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: white;
  font-size: 12px;
  font-weight: 900;
}

.community-pill i {
  color: var(--muted);
  font-style: normal;
}

.top-actions {
  position: absolute;
  right: 0;
  display: flex;
  gap: 10px;
}

.chat-surface {
  grid-column: 1;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  min-width: 0;
}

.ops-rail {
  grid-column: 2;
  position: sticky;
  top: 88px;
  align-self: start;
  max-height: calc(100vh - 116px);
  overflow: auto;
}

.ops-panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 16px;
  background: rgba(25, 29, 40, 0.92);
  box-shadow: var(--shadow);
}

.ops-head,
.ops-section summary,
.ops-settings {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ops-head {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.ops-head strong,
.ops-head span {
  display: block;
}

.ops-head strong {
  font-size: 16px;
}

.ops-head span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.ops-head button,
.ops-rail-restore {
  border-radius: 12px;
  color: var(--soft);
  background: rgba(8, 11, 19, 0.38);
}

.ops-head button {
  width: 34px;
  height: 34px;
}

.ops-section {
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
}

.ops-section summary {
  list-style: none;
  cursor: pointer;
  color: var(--soft);
  font-weight: 900;
}

.ops-section summary::-webkit-details-marker {
  display: none;
}

.ops-section summary span {
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  font-size: 11px;
}

.ops-list {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.ops-progress-item,
.ops-artifact-item,
.ops-worker-item,
.ops-source-item {
  min-height: 48px;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border-radius: 14px;
  padding: 8px;
  color: var(--soft);
  background: transparent;
  text-align: left;
  text-decoration: none;
}

.ops-progress-item:hover,
.ops-artifact-item:hover,
.ops-worker-item:hover,
.ops-source-item:hover {
  background: rgba(75, 120, 255, 0.1);
}

.ops-progress-item i,
.ops-artifact-item i,
.ops-worker-item i,
.ops-source-item i {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #c9d6ff;
  background: rgba(75, 120, 255, 0.13);
  font-style: normal;
  font-size: 12px;
  font-weight: 950;
}

.ops-progress-item i {
  color: #aef0c5;
  background: rgba(88, 210, 125, 0.13);
}

.ops-worker-item.hot i {
  color: #ffbab6;
  background: rgba(255, 109, 103, 0.13);
}

.ops-progress-item strong,
.ops-progress-item small,
.ops-artifact-item strong,
.ops-artifact-item small,
.ops-worker-item strong,
.ops-worker-item small,
.ops-source-item strong,
.ops-source-item small {
  display: block;
  min-width: 0;
}

.ops-progress-item strong,
.ops-artifact-item strong,
.ops-worker-item strong,
.ops-source-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.ops-progress-item small,
.ops-artifact-item small,
.ops-worker-item small,
.ops-source-item small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.ops-worker-item b {
  border-radius: 999px;
  padding: 5px 8px;
  color: #ffe1a3;
  background: rgba(240, 189, 82, 0.12);
  font-size: 10px;
  text-transform: uppercase;
}

.ops-terminal {
  margin-top: 12px;
  display: grid;
  gap: 6px;
  border-radius: 14px;
  padding: 12px;
  background: #080b13;
}

.ops-terminal code {
  color: var(--soft);
  font-size: 12px;
  line-height: 1.35;
  white-space: normal;
}

.ops-settings {
  padding-top: 14px;
}

.ops-settings button,
.ops-rail-restore {
  min-height: 34px;
  padding: 0 10px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 850;
}

.ops-settings button {
  flex: 1;
  border-radius: 12px;
  background: rgba(75, 120, 255, 0.11);
}

.ops-rail-restore {
  width: 42px;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  text-align: center;
  padding: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.home-screen {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  min-width: 0;
  min-height: calc(100vh - 220px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-content: start;
  padding-top: 46px;
}

.home-screen > *,
.run-feed > * {
  min-width: 0;
}

.home-screen h1 {
  width: min(820px, 100%);
  justify-self: center;
  margin: 0 0 22px;
  text-align: center;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.08;
  letter-spacing: 0;
  text-wrap: balance;
}

.home-hero {
  width: 100%;
  min-width: 0;
  display: grid;
  justify-items: stretch;
}

.landing-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(32, 38, 54, 0.92), rgba(17, 23, 34, 0.9));
}

.landing-panel h2 {
  margin: 7px 0 0;
  max-width: 660px;
  font-size: 28px;
  line-height: 1.12;
}

.landing-panel p {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.48;
}

.landing-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.connection-status {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  color: var(--muted);
  background: rgba(8, 11, 19, 0.28);
  font-size: 12px;
  font-weight: 900;
}

.connection-status::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--amber);
}

.connection-status.ready::before {
  background: var(--green);
}

.landing-actions button {
  min-height: 42px;
  border-radius: 999px;
  padding: 0 14px;
  color: var(--ink);
  font-weight: 900;
}

.landing-actions .primary {
  background: var(--blue);
}

.landing-actions .secondary {
  background: rgba(75, 120, 255, 0.14);
  border: 1px solid rgba(75, 120, 255, 0.3);
}

.landing-metrics {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.landing-metrics span {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px;
  background: rgba(8, 11, 19, 0.24);
}

.landing-metrics strong,
.landing-metrics small {
  display: block;
}

.landing-metrics strong {
  color: white;
  font-size: 24px;
}

.landing-metrics small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.landing-proof-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  border-top: 1px solid rgba(203, 209, 223, 0.12);
  padding-top: 12px;
}

.landing-proof-strip span {
  min-height: 68px;
  border: 1px solid rgba(203, 209, 223, 0.12);
  border-radius: 14px;
  padding: 12px;
  background: rgba(8, 11, 19, 0.2);
}

.landing-proof-strip strong,
.landing-proof-strip small {
  display: block;
}

.landing-proof-strip strong {
  color: white;
  font-size: 13px;
  font-weight: 950;
}

.landing-proof-strip small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.category-strip {
  position: sticky;
  top: 0;
  z-index: 8;
  display: grid;
  grid-template-columns: repeat(6, minmax(110px, 1fr));
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(75, 120, 255, 0.18);
  border-radius: 18px;
  background: rgba(10, 14, 24, 0.92);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(12px);
}

.category-strip.compact {
  margin-bottom: 12px;
}

.category-strip button {
  min-height: 58px;
  display: grid;
  align-content: center;
  gap: 4px;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 9px 10px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.04);
  text-align: left;
}

.category-strip button:hover,
.category-strip button.active {
  color: white;
  border-color: rgba(75, 120, 255, 0.5);
  background: rgba(75, 120, 255, 0.16);
}

.category-strip strong,
.category-strip span {
  display: block;
}

.category-strip strong {
  color: inherit;
  font-size: 13px;
  font-weight: 950;
}

.category-strip span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.action-status-strip {
  display: grid;
  grid-template-columns: auto minmax(0, auto) minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  border: 1px solid rgba(75, 120, 255, 0.28);
  border-radius: 999px;
  padding: 8px 12px;
  color: #c9d6ff;
  background: rgba(75, 120, 255, 0.1);
}

.action-status-strip span {
  border-radius: 999px;
  padding: 3px 8px;
  color: white;
  background: rgba(75, 120, 255, 0.38);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.action-status-strip.ready span {
  color: #aef0c5;
  background: rgba(88, 210, 125, 0.16);
}

.action-status-strip strong,
.action-status-strip small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.action-status-strip strong {
  color: white;
  font-size: 13px;
}

.action-status-strip small {
  color: var(--muted);
  font-size: 12px;
}

.first-run-card,
.inbox-console-card,
.advanced-home {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 18px;
  background: rgba(17, 21, 31, 0.72);
}

.first-run-head,
.inbox-console-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
}

.first-run-head h2,
.inbox-console-top h2 {
  margin: 6px 0 0;
  font-size: 24px;
}

.first-run-head p,
.inbox-console-top p {
  max-width: 650px;
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.first-run-head button,
.inbox-actions button,
.starter-prompts button,
.first-run-steps button,
.advanced-home summary {
  color: var(--ink);
}

.first-run-head button,
.inbox-actions button {
  min-height: 38px;
  border: 1px solid rgba(75, 120, 255, 0.32);
  border-radius: 999px;
  padding: 0 13px;
  background: rgba(75, 120, 255, 0.12);
  font-weight: 900;
}

.first-run-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.first-run-steps button {
  min-height: 86px;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 13px;
  background: rgba(8, 11, 19, 0.3);
  text-align: left;
}

.first-run-steps strong,
.first-run-steps small {
  display: block;
}

.first-run-steps strong {
  font-size: 15px;
}

.first-run-steps small {
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.35;
}

.starter-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.starter-prompts button {
  min-height: 34px;
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(75, 120, 255, 0.14);
  color: #dce5ff;
  font-weight: 850;
}

.inbox-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.inbox-table {
  width: 100%;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.inbox-row {
  width: 100%;
  min-height: 64px;
  display: grid;
  grid-template-columns: minmax(240px, 2fr) minmax(120px, 1fr) 80px 120px 78px;
  gap: 12px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 0 14px;
  color: var(--ink);
  background: transparent;
  text-align: left;
}

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

.inbox-row:not(.inbox-head):hover {
  background: rgba(75, 120, 255, 0.08);
}

.inbox-head {
  min-height: 46px;
  color: var(--muted);
  background: rgba(8, 11, 19, 0.42);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.inbox-row strong,
.inbox-row small {
  display: block;
}

.inbox-row small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.inbox-row b {
  width: 32px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffd2d0;
  background: rgba(255, 109, 103, 0.15);
}

.row-more {
  justify-self: end;
  color: #c9d6ff;
  font-size: 12px;
  font-weight: 900;
}

.reddit-surface-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 18px;
  background:
    radial-gradient(circle at 14% 0%, rgba(75, 120, 255, 0.12), transparent 30%),
    rgba(17, 21, 31, 0.72);
}

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

.surface-card-head h2 {
  margin: 5px 0 0;
  font-size: 20px;
}

.surface-card-head button {
  min-height: 34px;
  border: 1px solid rgba(75, 120, 255, 0.3);
  border-radius: 999px;
  padding: 0 12px;
  color: #dce5ff;
  background: rgba(75, 120, 255, 0.12);
  font-size: 12px;
  font-weight: 900;
}

.surface-map-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.surface-map-grid button {
  min-height: 94px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  color: var(--soft);
  background: rgba(8, 11, 19, 0.25);
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.surface-map-grid button:hover,
.pain-chip-row button:hover {
  border-color: rgba(75, 120, 255, 0.44);
  background: rgba(75, 120, 255, 0.1);
  transform: translateY(-1px);
}

.surface-title {
  display: flex !important;
  align-items: center;
  gap: 8px;
}

.native-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #dfe6ff;
  background: rgba(75, 120, 255, 0.13);
  font-style: normal;
  font-size: 12px;
}

.surface-map-grid strong,
.surface-map-grid small,
.surface-map-grid span,
.surface-map-grid em {
  display: block;
}

.surface-map-grid strong {
  color: white;
  font-size: 14px;
}

.surface-map-grid small {
  margin-top: 4px;
  color: #b8efcb;
  font-size: 11px;
  font-weight: 900;
}

.surface-map-grid span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.32;
}

.surface-map-grid em {
  margin-top: 8px;
  color: #cbd5ea;
  font-size: 11px;
  line-height: 1.35;
  font-style: normal;
  opacity: 0.78;
}

.pain-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.pain-chip-row button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  color: var(--soft);
  background: rgba(8, 11, 19, 0.22);
  font-size: 12px;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.pain-chip-row strong,
.pain-chip-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pain-chip-row strong {
  color: white;
}

.pain-chip-row span {
  max-width: 280px;
  color: var(--muted);
}

.advanced-home {
  padding: 0;
  overflow: hidden;
}

.advanced-home summary {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 900;
  list-style: none;
}

.advanced-home summary::-webkit-details-marker {
  display: none;
}

.advanced-home summary small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.advanced-home[open] {
  padding: 0 18px 18px;
}

.advanced-home[open] summary {
  margin: 0 -18px 18px;
  border-bottom: 1px solid var(--line);
}

.prompt-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.intake-strip {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: -30px 0 18px;
}

.intake-strip button {
  min-height: 74px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 14px;
  color: var(--soft);
  background: rgba(25, 29, 40, 0.7);
  text-align: left;
}

.intake-strip button:hover {
  border-color: rgba(75, 120, 255, 0.48);
  background: rgba(75, 120, 255, 0.1);
}

.intake-strip strong,
.intake-strip span {
  display: block;
}

.intake-strip span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.prompt-card {
  min-height: 190px;
  display: grid;
  align-content: start;
  gap: 18px;
  border-radius: 18px;
  padding: 20px;
  color: var(--ink);
  background: var(--panel);
  text-align: left;
}

.prompt-card:hover {
  background: var(--panel-2);
  transform: translateY(-1px);
}

.prompt-card span {
  color: var(--muted);
  font-size: 15px;
  font-weight: 850;
}

.prompt-card p {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.42;
}

.prompt-card i {
  align-self: end;
  justify-self: end;
  color: var(--muted);
  font-style: normal;
}

.reddit-connect-card,
.connector-card,
.opportunity-feed-card {
  padding: 22px;
}

.opportunity-feed-card.home-feed {
  overflow: hidden;
  padding: 18px;
  background:
    radial-gradient(circle at 92% 0%, rgba(75, 120, 255, 0.13), transparent 28%),
    rgba(17, 21, 31, 0.76);
}

.connect-head,
.connector-head,
.opportunity-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.connect-head h2,
.connector-head h2,
.opportunity-head h2 {
  margin: 7px 0 0;
  font-size: 24px;
}

.connect-head p,
.connector-head p,
.opportunity-head p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.connect-head button,
.connector-head button,
.opportunity-head button {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 10px 14px;
  color: white;
  background: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.connector-head button {
  color: var(--soft);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
}

.connect-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.connect-step {
  min-height: 132px;
  display: grid;
  align-content: start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 15px;
  color: var(--soft);
  background: rgba(8, 11, 19, 0.26);
  text-align: left;
}

.connect-step.live {
  border-color: rgba(75, 120, 255, 0.52);
  background: rgba(75, 120, 255, 0.1);
}

.connect-step.hot,
.connect-step.locked {
  border-color: rgba(255, 109, 103, 0.38);
  background: rgba(255, 109, 103, 0.08);
}

.connect-step span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: white;
  background: rgba(75, 120, 255, 0.78);
  font-weight: 950;
}

.connect-step strong,
.connect-step small {
  display: block;
  overflow-wrap: anywhere;
}

.connect-step strong {
  color: white;
  font-size: 17px;
  line-height: 1.2;
}

.connect-step small {
  color: var(--muted);
  line-height: 1.38;
}

.sync-strip {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.sync-strip button {
  min-height: 68px;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 12px;
  color: var(--soft);
  background: rgba(8, 11, 19, 0.22);
  text-align: left;
}

.sync-strip strong,
.sync-strip span {
  display: block;
}

.sync-strip span {
  margin-top: 5px;
  color: var(--muted);
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.35;
}

.connector-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.connector-tile {
  min-height: 128px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-rows: auto auto 1fr;
  column-gap: 12px;
  row-gap: 4px;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 14px;
  color: var(--soft);
  background: rgba(8, 11, 19, 0.26);
  text-align: left;
}

.connector-tile > span {
  grid-row: 1 / 4;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: white;
  background: rgba(75, 120, 255, 0.16);
  border: 1px solid rgba(75, 120, 255, 0.22);
  font-size: 12px;
  font-weight: 950;
}

.connector-tile strong,
.connector-tile em,
.connector-tile small {
  display: block;
}

.connector-tile strong {
  color: white;
  font-size: 15px;
}

.connector-tile em {
  color: var(--muted);
  font-style: normal;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.connector-tile small {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.35;
}

.connector-tile.ready {
  border-color: rgba(88, 210, 125, 0.34);
}

.connector-tile.checking {
  border-color: rgba(240, 189, 82, 0.34);
}

.connector-tile.needs {
  border-color: rgba(255, 109, 103, 0.34);
}

.connect-gates,
.opportunity-toolbar {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.connect-gates span,
.opportunity-toolbar span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  font-weight: 850;
}

.connect-gates span.ready {
  color: #aef0c5;
  background: rgba(88, 210, 125, 0.12);
}

.connect-gates span.locked {
  color: #ffbab6;
  background: rgba(255, 109, 103, 0.12);
}

.opportunity-feed {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.home-feed .opportunity-feed {
  gap: 12px;
}

.tap-review-card,
.realtime-card {
  padding: 22px;
}

.tap-review-head,
.realtime-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.tap-review-head h2,
.realtime-head h2 {
  margin: 7px 0 0;
  font-size: 24px;
}

.tap-review-head p,
.realtime-head p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.tap-review-head button,
.realtime-head button {
  flex: 0 0 auto;
  min-height: 42px;
  border-radius: 999px;
  padding: 0 15px;
  color: white;
  background: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.realtime-head-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.realtime-head-actions .ghost {
  color: var(--soft);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
}

.tap-review-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.tap-review-item,
.tap-review-empty {
  min-height: 192px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 15px;
  background: rgba(8, 11, 19, 0.28);
}

.tap-review-empty {
  grid-column: 1 / -1;
  align-content: center;
  color: var(--muted);
}

.tap-review-item.warning {
  border-color: rgba(240, 189, 82, 0.38);
  background: rgba(240, 189, 82, 0.08);
}

.tap-review-item.critical {
  border-color: rgba(255, 109, 103, 0.38);
  background: rgba(255, 109, 103, 0.08);
}

.tap-review-item.positive {
  border-color: rgba(88, 210, 125, 0.34);
  background: rgba(88, 210, 125, 0.08);
}

.tap-review-item > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: white;
  background: rgba(75, 120, 255, 0.78);
  font-weight: 950;
}

.tap-review-item small,
.tap-review-item strong,
.tap-review-item p {
  display: block;
  overflow-wrap: anywhere;
}

.tap-review-item small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.tap-review-item strong {
  margin-top: 6px;
  color: white;
  font-size: 18px;
  line-height: 1.22;
}

.tap-review-item p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.38;
  font-size: 13px;
}

.tap-review-actions,
.realtime-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tap-review-actions button,
.realtime-actions button,
.opportunity-buttons button {
  min-height: 34px;
  border-radius: 999px;
  padding: 0 11px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 900;
}

.tap-review-actions button:last-child,
.opportunity-buttons button:last-child {
  color: white;
  background: rgba(75, 120, 255, 0.28);
  border-color: rgba(75, 120, 255, 0.42);
}

.realtime-card.ready {
  border-color: rgba(88, 210, 125, 0.34);
  box-shadow: 0 0 0 1px rgba(88, 210, 125, 0.08), 0 18px 52px rgba(34, 197, 94, 0.08);
}

.realtime-card.starting {
  border-color: rgba(75, 120, 255, 0.52);
}

.realtime-card.fallback {
  border-color: rgba(240, 189, 82, 0.34);
}

.realtime-status-strip {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.realtime-status-strip span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
  font-weight: 850;
}

.realtime-status-strip span.online {
  color: #baf6ca;
  border-color: rgba(88, 210, 125, 0.32);
  background: rgba(88, 210, 125, 0.12);
}

.realtime-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.realtime-grid div {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px;
  background: rgba(8, 11, 19, 0.28);
}

.realtime-grid small,
.realtime-grid strong,
.realtime-grid span {
  display: block;
}

.realtime-grid small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.realtime-grid strong {
  margin-top: 7px;
  color: white;
  font-size: 17px;
}

.realtime-grid span {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.35;
  font-size: 13px;
}

.realtime-actions {
  margin-top: 14px;
}

.realtime-live {
  margin-top: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 10px;
}

.realtime-live > div {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px;
  background: rgba(8, 11, 19, 0.28);
}

.realtime-live small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.realtime-live p {
  min-height: 54px;
  margin: 8px 0 0;
  color: var(--soft);
  line-height: 1.45;
}

.realtime-live ul {
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 7px;
  list-style: none;
}

.realtime-live li {
  display: grid;
  gap: 2px;
}

.realtime-live li strong {
  color: white;
  font-size: 13px;
}

.realtime-live li span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.opportunity-card {
  min-height: 94px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) minmax(130px, auto);
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  color: var(--soft);
  background: rgba(8, 11, 19, 0.26);
  text-align: left;
}

.home-feed .opportunity-card {
  min-height: 126px;
  grid-template-columns: 44px minmax(0, 1fr) minmax(190px, 0.8fr);
  align-items: center;
  gap: 14px;
}

.opportunity-card:hover {
  border-color: rgba(75, 120, 255, 0.52);
  background: rgba(75, 120, 255, 0.1);
  transform: translateY(-1px);
}

.opportunity-card.critical {
  border-color: rgba(255, 109, 103, 0.38);
  background: rgba(255, 109, 103, 0.08);
}

.opportunity-card.warning {
  border-color: rgba(240, 189, 82, 0.38);
  background: rgba(240, 189, 82, 0.08);
}

.opportunity-card.positive {
  border-color: rgba(88, 210, 125, 0.34);
  background: rgba(88, 210, 125, 0.08);
}

.opportunity-card.connect {
  border-color: rgba(75, 120, 255, 0.56);
  background: rgba(75, 120, 255, 0.12);
}

.opportunity-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: white;
  background: rgba(75, 120, 255, 0.72);
  font-weight: 950;
}

.opportunity-main small,
.opportunity-main strong,
.opportunity-main em,
.opportunity-action b,
.opportunity-action i {
  display: block;
}

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

.opportunity-main small {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.opportunity-main strong {
  margin-top: 6px;
  overflow: hidden;
  color: white;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 18px;
}

.home-feed .opportunity-main strong {
  white-space: normal;
  line-height: 1.25;
}

.opportunity-main em {
  margin-top: 6px;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-style: normal;
}

.home-feed .opportunity-main em {
  display: -webkit-box;
  white-space: normal;
  line-height: 1.38;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.opportunity-action {
  justify-self: end;
  text-align: right;
}

.home-feed .opportunity-action {
  grid-column: auto;
  justify-self: stretch;
  text-align: left;
}

.home-feed .opportunity-action > b,
.home-feed .opportunity-action > i {
  display: none;
}

.opportunity-action b {
  color: white;
  font-size: 24px;
}

.opportunity-action i {
  margin-top: 4px;
  color: #c9d6ff;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.opportunity-buttons {
  margin-top: 9px;
  display: flex !important;
  justify-content: flex-end;
  gap: 7px;
}

.home-feed .opportunity-buttons {
  justify-content: stretch;
  margin-top: 0;
}

.home-feed .opportunity-buttons button {
  flex: 1 1 0;
  min-height: 38px;
}

.home-feed .opportunity-buttons button:last-child {
  flex: 1.8 1 0;
  background: var(--blue);
  border-color: rgba(121, 153, 255, 0.7);
}

.run-feed {
  padding-top: 46px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  scroll-margin-bottom: 170px;
}

.chat-thread {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 30px 0 126px;
  display: grid;
  gap: 14px;
}

.chat-turn {
  display: grid;
  gap: 12px;
  scroll-margin-bottom: 156px;
  animation: chat-rise 0.18s ease-out both;
}

@keyframes chat-rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-message {
  max-width: min(610px, 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 13px 15px;
  background: rgba(17, 21, 31, 0.74);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.chat-message span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.chat-message p {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.user-message {
  justify-self: end;
  border-bottom-right-radius: 6px;
  background: rgba(38, 45, 64, 0.86);
}

.assistant-message {
  justify-self: start;
  border-bottom-left-radius: 6px;
  background: rgba(15, 19, 30, 0.72);
}

.assistant-copy {
  display: grid;
  gap: 8px;
}

.assistant-copy p,
.assistant-copy ul {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
}

.assistant-copy ul {
  padding-left: 18px;
}

.assistant-copy li + li {
  margin-top: 5px;
}

.assistant-link {
  color: #c9d6ff;
  text-decoration: none;
  border-bottom: 1px solid rgba(150, 176, 255, 0.45);
}

.assistant-link.user {
  color: #b8efcb;
  border-bottom-color: rgba(88, 210, 125, 0.38);
}

.assistant-token {
  border-radius: 7px;
  padding: 1px 4px;
  color: #dce5ff;
  background: rgba(75, 120, 255, 0.1);
}

.chat-loading {
  width: fit-content;
  margin-top: 12px;
  border: 1px solid rgba(75, 120, 255, 0.22);
  border-radius: 999px;
  padding: 8px 10px;
  display: flex;
  gap: 6px;
  background: rgba(75, 120, 255, 0.08);
}

.chat-loading i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  animation: pulse-dot 1s infinite ease-in-out;
}

.chat-loading i:nth-child(2) {
  animation-delay: 0.16s;
}

.chat-loading i:nth-child(3) {
  animation-delay: 0.32s;
}

@keyframes pulse-dot {
  0%,
  80%,
  100% {
    opacity: 0.32;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

.chat-mini-context {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chat-used-context {
  width: fit-content;
  max-width: 100%;
  margin-top: 10px;
}

.chat-used-context summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  cursor: pointer;
  border: 1px solid rgba(75, 120, 255, 0.16);
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--muted);
  background: rgba(8, 11, 19, 0.18);
  font-size: 12px;
  font-weight: 850;
}

.chat-used-context summary::-webkit-details-marker {
  display: none;
}

.chat-used-context summary::before {
  content: "⌁";
  color: #c9d6ff;
}

.chat-used-context[open] summary {
  color: #dce5ff;
}

.chat-used-context summary span,
.chat-used-context summary small {
  margin: 0;
  display: inline;
  font-size: inherit;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
}

.chat-used-context summary small {
  max-width: 320px;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 750;
}

.chat-inline-actions {
  margin-top: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chat-route-status {
  width: fit-content;
  max-width: 100%;
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(75, 120, 255, 0.24);
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--muted);
  background: rgba(8, 11, 19, 0.26);
  font-size: 12px;
  line-height: 1.25;
}

.chat-route-status i {
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #c9d6ff;
  background: rgba(75, 120, 255, 0.18);
  font-style: normal;
  font-size: 10px;
  font-weight: 900;
  flex: 0 0 auto;
}

.chat-route-status.running i {
  color: transparent;
  border: 2px solid rgba(201, 214, 255, 0.24);
  border-top-color: #c9d6ff;
  background: transparent;
  animation: route-spin 0.8s linear infinite;
}

.chat-route-status.ready {
  border-color: rgba(88, 210, 125, 0.28);
}

.chat-route-status.ready i {
  color: #b8efcb;
  background: rgba(88, 210, 125, 0.13);
}

.chat-route-status.fallback {
  border-color: rgba(240, 189, 82, 0.28);
}

.chat-route-status.fallback i {
  color: #ffe1a3;
  background: rgba(240, 189, 82, 0.13);
}

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

.chat-inline-actions button {
  min-height: 32px;
  border: 1px solid rgba(75, 120, 255, 0.35);
  border-radius: 999px;
  padding: 0 12px;
  color: #dce5ff;
  background: rgba(75, 120, 255, 0.12);
  font-size: 12px;
  font-weight: 850;
}

.chat-inline-actions button:hover {
  border-color: rgba(75, 120, 255, 0.64);
  background: rgba(75, 120, 255, 0.2);
}

.chat-mini-context span,
.chat-mini-context a {
  margin: 0;
  border-radius: 999px;
  padding: 6px 9px;
  color: var(--muted);
  background: rgba(8, 11, 19, 0.35);
  font-size: 12px;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: none;
}

.chat-mini-context a.subreddit {
  color: #c9d6ff;
  background: rgba(75, 120, 255, 0.12);
}

.chat-mini-context a.user {
  color: #b8efcb;
  background: rgba(88, 210, 125, 0.1);
}

.chat-surfaced-actions {
  display: grid;
  gap: 14px;
}

.chat-context-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  background: rgba(17, 21, 31, 0.54);
  animation: chat-rise 0.2s ease-out both;
}

.chat-context-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  list-style: none;
  cursor: pointer;
  color: var(--ink);
  font-weight: 900;
}

.chat-context-panel summary::-webkit-details-marker {
  display: none;
}

.chat-context-panel summary small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.chat-context-panel > article {
  margin-top: 14px;
}

.agent-transcript {
  width: 100%;
  max-width: 820px;
  justify-self: center;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.user-bubble {
  justify-self: center;
  max-width: 680px;
  border-radius: 18px 18px 4px 18px;
  padding: 16px 20px;
  background: var(--panel-2);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.42;
}

.agent-transcript .user-bubble {
  width: min(760px, 100%);
  justify-self: center;
}

.thought {
  margin-top: 24px;
  color: var(--muted);
  font-size: 19px;
}

.thought-package {
  display: grid;
  gap: 9px;
}

.thought-package summary {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  list-style: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 15px;
  font-weight: 750;
}

.thought-package summary::-webkit-details-marker {
  display: none;
}

.thought-package summary span {
  color: #8e96aa;
}

.thought-package summary small {
  color: #5f6a81;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

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

.ready-row {
  min-height: 54px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px 12px;
  background: rgba(25, 29, 40, 0.72);
}

.ready-row span {
  color: var(--green);
  font-size: 19px;
}

.ready-row strong {
  font-size: 14px;
}

.ready-row small {
  grid-column: 2;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.agent-answer-card {
  width: min(760px, 100%);
  justify-self: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

.agent-answer-card p {
  margin: 0;
  color: var(--ink);
  font-size: clamp(16px, 1.45vw, 20px);
  line-height: 1.52;
}

.agent-answer-divider {
  height: 1px;
  margin: 18px 0;
  background: var(--line);
}

.agent-answer-focus {
  display: grid;
  gap: 8px;
}

.agent-answer-focus span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.agent-answer-focus strong {
  color: white;
  font-size: 19px;
}

.agent-answer-focus small {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.next-click-card {
  display: grid;
  grid-template-columns: minmax(230px, 0.66fr) minmax(0, 1.34fr);
  gap: 16px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  background: rgba(17, 21, 31, 0.68);
}

.next-click-card h2 {
  margin: 6px 0 0;
  font-size: 24px;
  line-height: 1.12;
}

.next-click-card p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

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

.next-click-grid button {
  min-height: 82px;
  display: grid;
  align-content: start;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px;
  color: var(--soft);
  background: rgba(8, 11, 19, 0.32);
  text-align: left;
}

.next-click-grid button:hover {
  border-color: rgba(75, 120, 255, 0.56);
  background: rgba(75, 120, 255, 0.12);
}

.next-click-grid button.running,
.next-click-grid button.ready {
  border-color: rgba(75, 120, 255, 0.62);
  background: rgba(75, 120, 255, 0.16);
}

.next-click-grid button.ready {
  border-color: rgba(88, 210, 125, 0.44);
  background: rgba(88, 210, 125, 0.1);
}

.next-click-grid strong,
.next-click-grid span {
  display: block;
}

.next-click-grid strong {
  color: white;
  font-size: 15px;
}

.next-click-grid span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.next-click-grid em {
  display: block;
  color: #c9d6ff;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.deep-workbench {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(17, 21, 31, 0.52);
  overflow: hidden;
}

.deep-workbench > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  list-style: none;
  padding: 18px 20px;
  cursor: pointer;
}

.deep-workbench > summary::-webkit-details-marker {
  display: none;
}

.deep-workbench > summary span,
.deep-workbench > summary small {
  display: block;
  min-width: 0;
}

.deep-workbench > summary span {
  color: white;
  font-size: 17px;
  font-weight: 950;
}

.deep-workbench > summary small {
  color: var(--muted);
  text-align: right;
  font-size: 12px;
  line-height: 1.35;
}

.deep-workbench[open] > summary {
  border-bottom: 1px solid var(--line);
}

.deep-workbench > :not(summary) {
  margin: 18px;
}

.command-center,
.atlas-card {
  padding: 22px;
}

.command-center {
  display: grid;
  grid-template-columns: minmax(210px, 0.62fr) minmax(0, 1.38fr);
  align-items: start;
  gap: 18px;
}

.command-center h2,
.atlas-head h2 {
  margin: 7px 0 0;
  font-size: 24px;
}

.command-center p,
.atlas-head p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

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

.command-chip-grid button {
  min-height: 76px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  color: var(--soft);
  background: rgba(8, 11, 19, 0.3);
  text-align: left;
}

.command-chip-grid button.active,
.command-chip-grid button:hover {
  border-color: rgba(75, 120, 255, 0.58);
  background: rgba(75, 120, 255, 0.13);
}

.command-chip-grid strong,
.command-chip-grid span {
  display: block;
}

.command-chip-grid strong {
  color: white;
}

.command-chip-grid span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

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

.surface-awareness span {
  min-height: 64px;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 11px 12px;
  background: rgba(8, 11, 19, 0.25);
}

.surface-awareness b,
.surface-awareness small {
  display: block;
}

.surface-awareness small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.32;
}

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

.agent-spine-grid div {
  min-height: 82px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  background: rgba(8, 11, 19, 0.28);
}

.agent-spine-grid small,
.agent-spine-grid strong,
.agent-spine-grid span {
  display: block;
}

.agent-spine-grid small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.agent-spine-grid strong {
  margin-top: 6px;
  overflow: hidden;
  color: white;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-spine-grid span {
  margin-top: 5px;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.atlas-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.atlas-head button {
  min-height: 40px;
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 0 14px;
  color: #c9d6ff;
  background: rgba(75, 120, 255, 0.12);
  font-weight: 850;
}

.atlas-table {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.atlas-row {
  width: 100%;
  min-height: 66px;
  display: grid;
  grid-template-columns: 1.5fr 70px 80px 90px 1.15fr 1.05fr;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 12px 16px;
  color: var(--soft);
  background: transparent;
  text-align: left;
}

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

.atlas-row-head {
  min-height: 44px;
  color: var(--muted);
  background: rgba(8, 11, 19, 0.48);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.atlas-row:not(.atlas-row-head):hover {
  background: rgba(75, 120, 255, 0.08);
}

.atlas-row b,
.atlas-row small {
  display: block;
}

.atlas-row small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.atlas-row .hot {
  color: #ffbab6;
  font-weight: 950;
}

.thinking-card,
.runtime-card,
.human-loop-card,
.daily-insights-card,
.workflow-launcher,
.trend-card,
.subagent-card {
  padding: 22px;
}

.runtime-card.runtime-compact {
  padding: 0;
  overflow: hidden;
}

.runtime-summary {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
}

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

.runtime-summary div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.runtime-summary strong {
  color: var(--ink);
  font-size: 16px;
}

.runtime-summary small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.runtime-summary i {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 7px 10px;
  color: #c9d6ff;
  background: rgba(75, 120, 255, 0.1);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.runtime-body {
  border-top: 1px solid var(--line);
  padding: 16px;
}

.thinking-head,
.runtime-head,
.human-loop-head,
.insights-head,
.workflow-launcher-head,
.trend-head,
.subagent-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.thinking-head h2,
.runtime-head h2,
.human-loop-head h2,
.insights-head h2,
.workflow-launcher-head h2,
.trend-head h2,
.subagent-head h2 {
  margin: 7px 0 0;
  font-size: 24px;
}

.thinking-head p,
.runtime-head p,
.human-loop-head p,
.workflow-launcher-head p,
.trend-head p,
.subagent-head p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.thinking-head > span,
.runtime-head button,
.human-loop-head button,
.insights-head button,
.workflow-launcher-head button,
.trend-head button,
.subagent-head button {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 10px 14px;
  color: #c9d6ff;
  background: rgba(75, 120, 255, 0.12);
  font-size: 12px;
  font-weight: 900;
}

.runtime-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.runtime-grid div {
  min-height: 76px;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 12px;
  background: rgba(8, 11, 19, 0.28);
}

.runtime-grid small,
.runtime-grid strong,
.runtime-grid span {
  display: block;
}

.runtime-grid small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.runtime-grid strong {
  margin-top: 7px;
  color: white;
  font-size: 17px;
  line-height: 1.15;
}

.runtime-grid span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.model-route-strip {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.model-route-strip span {
  min-height: 74px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  background: rgba(8, 11, 19, 0.22);
}

.model-route-strip span.live {
  border-color: rgba(75, 120, 255, 0.5);
  background: rgba(75, 120, 255, 0.1);
}

.model-route-strip span.hot {
  border-color: rgba(255, 109, 103, 0.38);
  background: rgba(255, 109, 103, 0.08);
}

.model-route-strip b,
.model-route-strip small {
  display: block;
}

.model-route-strip small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.approval-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.approval-gate {
  min-height: 132px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 15px;
  color: var(--soft);
  background: rgba(8, 11, 19, 0.28);
  text-align: left;
}

.approval-gate.locked {
  border-color: rgba(255, 109, 103, 0.38);
  background: rgba(255, 109, 103, 0.08);
}

.approval-gate.review {
  border-color: rgba(240, 189, 82, 0.38);
  background: rgba(240, 189, 82, 0.08);
}

.approval-gate.ready {
  border-color: rgba(88, 210, 125, 0.3);
}

.approval-gate span,
.approval-gate strong,
.approval-gate small {
  display: block;
}

.approval-gate span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.approval-gate strong {
  margin-top: 11px;
  color: white;
  font-size: 17px;
  line-height: 1.2;
}

.approval-gate small {
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.38;
}

.thinking-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.thinking-step {
  min-height: 134px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  background: rgba(8, 11, 19, 0.28);
}

.thinking-step i {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  font-style: normal;
  font-weight: 950;
}

.thinking-step.done i {
  color: #aef0c5;
  background: rgba(88, 210, 125, 0.15);
}

.thinking-step.live {
  border-color: rgba(75, 120, 255, 0.52);
  background: rgba(75, 120, 255, 0.1);
}

.thinking-step.live i {
  color: white;
  background: var(--blue);
}

.thinking-step strong,
.thinking-step small {
  display: block;
}

.thinking-step strong {
  margin-top: 12px;
}

.thinking-step small {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.context-trail,
.workflow-library-grid,
.trend-grid,
.subagent-grid,
.insight-grid {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.context-trail {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.context-trail span {
  min-height: 68px;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 12px;
  background: rgba(8, 11, 19, 0.22);
}

.context-trail b,
.context-trail small {
  display: block;
}

.context-trail small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.33;
}

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

.insight-card {
  min-height: 136px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  color: var(--soft);
  background: rgba(8, 11, 19, 0.28);
  text-align: left;
}

.insight-card.critical {
  border-color: rgba(255, 109, 103, 0.38);
  background: rgba(255, 109, 103, 0.08);
}

.insight-card.warning {
  border-color: rgba(240, 189, 82, 0.38);
  background: rgba(240, 189, 82, 0.08);
}

.insight-card.positive {
  border-color: rgba(88, 210, 125, 0.34);
  background: rgba(88, 210, 125, 0.08);
}

.insight-card span,
.insight-card strong,
.insight-card small {
  display: block;
}

.insight-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.insight-card strong {
  margin-top: 12px;
  font-size: 18px;
  line-height: 1.24;
}

.insight-card small {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.42;
}

.workflow-library-grid {
  grid-template-columns: repeat(7, minmax(190px, 1fr));
  overflow-x: auto;
  padding-bottom: 2px;
}

.workflow-library-card {
  min-height: 182px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  color: var(--soft);
  background: rgba(8, 11, 19, 0.28);
  text-align: left;
}

.workflow-library-card.live,
.workflow-library-card.hot {
  border-color: rgba(75, 120, 255, 0.52);
  background: rgba(75, 120, 255, 0.1);
}

.workflow-library-card.hot {
  border-color: rgba(240, 189, 82, 0.42);
}

.workflow-library-card span,
.workflow-library-card strong,
.workflow-library-card small,
.workflow-library-card em {
  display: block;
}

.workflow-library-card span {
  color: #c9d6ff;
  font-size: 13px;
  font-weight: 950;
}

.workflow-library-card strong {
  margin-top: 12px;
  color: white;
  font-size: 18px;
  line-height: 1.2;
}

.workflow-library-card small {
  margin-top: 9px;
  color: var(--muted);
  line-height: 1.38;
}

.workflow-library-card em {
  margin-top: 12px;
  color: #ffe1a3;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

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

.trend-signal {
  min-height: 112px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  color: var(--soft);
  background: rgba(8, 11, 19, 0.28);
  text-align: left;
}

.trend-signal.critical {
  border-color: rgba(255, 109, 103, 0.38);
}

.trend-signal.warning {
  border-color: rgba(240, 189, 82, 0.36);
}

.trend-signal.positive {
  border-color: rgba(88, 210, 125, 0.32);
}

.trend-signal strong {
  font-size: 17px;
}

.trend-signal span {
  min-width: 36px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: white;
  background: rgba(75, 120, 255, 0.18);
  font-weight: 950;
}

.trend-signal small {
  grid-column: 1 / -1;
  color: var(--muted);
  line-height: 1.38;
}

.trend-signal i {
  grid-column: 1 / -1;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: #252b3b;
}

.trend-signal i::after {
  content: "";
  width: var(--trend-width);
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--green));
}

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

.subagent-item {
  min-height: 104px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  color: var(--soft);
  background: rgba(8, 11, 19, 0.28);
  text-align: left;
}

.subagent-item.critical {
  border-color: rgba(255, 109, 103, 0.38);
}

.subagent-item.warning {
  border-color: rgba(240, 189, 82, 0.36);
}

.subagent-item.positive {
  border-color: rgba(88, 210, 125, 0.32);
}

.subagent-item > span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: white;
  background: rgba(75, 120, 255, 0.22);
  font-size: 14px;
  font-weight: 950;
}

.subagent-item strong,
.subagent-item small,
.subagent-item em {
  display: block;
}

.subagent-item strong {
  color: white;
}

.subagent-item small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.subagent-item em {
  margin-top: 8px;
  color: var(--soft);
  font-size: 13px;
  font-style: normal;
  line-height: 1.35;
}

.subagent-item b {
  border-radius: 999px;
  padding: 8px 10px;
  color: #aef0c5;
  background: rgba(88, 210, 125, 0.12);
  font-size: 11px;
  white-space: nowrap;
}

.digest-card,
.source-card,
.model-card,
.ingestion-card,
.command-center,
.thinking-card,
.runtime-card,
.human-loop-card,
.daily-insights-card,
.workflow-launcher,
.trend-card,
.subagent-card,
.gbrain-card,
.atlas-card,
.workflow-card,
.visual-card,
.flag-card,
.queue-table-card,
.kanban-card,
.work-card,
.report-card {
  border-radius: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.ingestion-card {
  padding: 22px;
  display: grid;
  grid-template-columns: minmax(220px, 0.64fr) minmax(0, 1.36fr);
  gap: 18px;
}

.ingestion-card h2,
.visual-card h2,
.visual-panel h3 {
  margin: 0;
}

.ingestion-card p,
.visual-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.48;
}

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

.ingestion-metric {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: rgba(8, 11, 19, 0.28);
}

.ingestion-metric strong,
.ingestion-metric span,
.ingestion-metric small {
  display: block;
}

.ingestion-metric strong {
  font-size: 32px;
}

.ingestion-metric span {
  margin-top: 2px;
  font-weight: 900;
}

.ingestion-metric small {
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.35;
}

.attachment-evidence {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
}

.attachment-evidence.empty {
  border: 1px dashed var(--line);
  border-radius: 16px;
  padding: 14px;
  color: var(--muted);
  background: rgba(8, 11, 19, 0.2);
}

.attachment-evidence.empty strong,
.attachment-evidence.empty span {
  display: block;
}

.attachment-evidence.empty span {
  margin-top: 5px;
  font-size: 13px;
}

.evidence-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  background: rgba(8, 11, 19, 0.26);
}

.evidence-row > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #c9d6ff;
  background: rgba(75, 120, 255, 0.14);
}

.evidence-row strong,
.evidence-row small,
.evidence-row p {
  display: block;
}

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

.evidence-row small {
  margin-top: 4px;
  color: var(--muted);
}

.evidence-row p {
  margin: 9px 0 0;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.45;
}

.vision-note {
  border-left: 2px solid rgba(75, 120, 255, 0.45);
  padding-left: 10px;
}

.vision-note.running {
  color: #ffe1a3;
  border-left-color: rgba(240, 189, 82, 0.72);
}

.vision-note.ready {
  color: #c9d6ff;
}

.vision-note.fallback,
.vision-note.error {
  color: #ffbab6;
  border-left-color: rgba(255, 109, 103, 0.62);
}

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

.vision-scan-button {
  min-height: 32px;
  margin-top: 10px;
  border-radius: 999px;
  padding: 0 12px;
  color: white;
  background: rgba(75, 120, 255, 0.24);
  border: 1px solid rgba(75, 120, 255, 0.42);
  font-size: 12px;
  font-weight: 900;
}

.gbrain-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 18px;
  padding: 20px;
}

.gbrain-orb {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  color: white;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.3), transparent 34%),
    linear-gradient(135deg, var(--blue), #7b61ff 54%, #56d486);
  font-size: 17px;
  font-weight: 950;
  box-shadow: 0 20px 48px rgba(75, 120, 255, 0.28);
}

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

.gbrain-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.gbrain-head h2 {
  margin: 7px 0 0;
}

.gbrain-head strong {
  border-radius: 999px;
  padding: 8px 12px;
  color: #ffe1a3;
  background: rgba(240, 189, 82, 0.13);
  font-size: 12px;
  white-space: nowrap;
}

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

.gbrain-grid div {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  background: rgba(8, 11, 19, 0.26);
}

.gbrain-grid small,
.gbrain-grid strong,
.gbrain-grid span {
  display: block;
}

.gbrain-grid small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.gbrain-grid strong {
  margin-top: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 18px;
}

.gbrain-grid span {
  margin-top: 5px;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.memory-strip {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.memory-strip span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  color: var(--soft);
  background: rgba(75, 120, 255, 0.1);
  border: 1px solid rgba(75, 120, 255, 0.18);
  font-size: 12px;
}

.workflow-card,
.flag-card,
.kanban-card {
  padding: 22px;
}

.workflow-head,
.flag-head,
.kanban-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.workflow-head h2,
.flag-head h2,
.kanban-head h2 {
  margin: 7px 0 0;
  font-size: 24px;
}

.workflow-head p,
.flag-head p,
.kanban-head p {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.workflow-head > span,
.kanban-head > span {
  align-self: start;
  max-width: 230px;
  border: 1px solid rgba(75, 120, 255, 0.28);
  border-radius: 16px;
  padding: 10px 12px;
  color: #c9d6ff;
  background: rgba(75, 120, 255, 0.1);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
}

.workflow-stage-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.workflow-stage {
  min-height: 138px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  background: rgba(8, 11, 19, 0.28);
}

.workflow-stage i {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  font-style: normal;
  font-weight: 950;
}

.workflow-stage.done {
  border-color: rgba(88, 210, 125, 0.26);
}

.workflow-stage.done i {
  color: #aef0c5;
  background: rgba(88, 210, 125, 0.14);
}

.workflow-stage.live {
  border-color: rgba(75, 120, 255, 0.55);
  background: rgba(75, 120, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(75, 120, 255, 0.14);
}

.workflow-stage.live i {
  color: white;
  background: var(--blue);
}

.workflow-stage strong,
.workflow-stage small {
  display: block;
}

.workflow-stage strong {
  margin-top: 14px;
  color: var(--soft);
}

.workflow-stage small {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.35;
}

.workflow-output-row {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.workflow-output-row span {
  min-height: 31px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 11px;
  color: var(--soft);
  background: rgba(8, 11, 19, 0.38);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 850;
}

.flag-score {
  min-width: 132px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 13px 14px;
  text-align: right;
  background: rgba(8, 11, 19, 0.32);
}

.flag-score strong,
.flag-score span {
  display: block;
}

.flag-score strong {
  color: var(--green);
}

.flag-score.high strong,
.flag-score.critical strong {
  color: var(--red);
}

.flag-score.medium strong {
  color: var(--amber);
}

.flag-score span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.flag-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.flag-grid div {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px;
  background: rgba(8, 11, 19, 0.28);
}

.flag-grid strong,
.flag-grid span,
.flag-grid small {
  display: block;
}

.flag-grid strong {
  font-size: 28px;
}

.flag-grid span {
  margin-top: 5px;
  color: var(--soft);
  font-weight: 900;
}

.flag-grid small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.flag-signal-list {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.flag-signal,
.flag-empty {
  min-height: 76px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  color: var(--ink);
  background: rgba(8, 11, 19, 0.3);
  text-align: left;
}

.flag-empty {
  grid-column: 1 / -1;
  display: grid;
  align-items: center;
  color: var(--muted);
}

.flag-signal:hover {
  border-color: rgba(75, 120, 255, 0.62);
  background: rgba(75, 120, 255, 0.08);
}

.flag-signal span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border-radius: 999px;
  padding: 0 8px;
  color: var(--green);
  background: rgba(88, 210, 125, 0.14);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.flag-signal.medium span {
  color: #ffe1a3;
  background: rgba(240, 189, 82, 0.14);
}

.flag-signal.high span,
.flag-signal.critical span {
  color: #ffbab6;
  background: rgba(255, 109, 103, 0.14);
}

.flag-signal strong,
.flag-signal small {
  display: block;
}

.flag-signal strong {
  margin-top: 9px;
}

.flag-signal small {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.35;
}

.model-card {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
}

.model-card.ready,
.model-card.structured {
  display: grid;
  align-items: stretch;
}

.model-card.pending {
  border-color: rgba(75, 120, 255, 0.42);
}

.model-card.ready {
  border-color: rgba(88, 210, 125, 0.34);
}

.model-card.fallback {
  border-color: rgba(240, 189, 82, 0.34);
}

.model-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.model-card strong {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 17px;
}

.model-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.48;
}

.model-card small {
  white-space: nowrap;
  color: var(--muted);
  font-weight: 800;
}

.model-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
  background: var(--blue);
  box-shadow: 0 0 0 5px rgba(75, 120, 255, 0.12);
}

.ready .model-dot {
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(88, 210, 125, 0.12);
}

.fallback .model-dot {
  background: var(--amber);
  box-shadow: 0 0 0 5px rgba(240, 189, 82, 0.12);
}

.model-priority-list {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.model-priority-list div {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: rgba(8, 11, 19, 0.26);
}

.model-priority-list b,
.model-priority-list span {
  display: block;
}

.model-priority-list span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.remote-ops-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.remote-ops-grid section {
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 12px;
  background: rgba(8, 11, 19, 0.24);
}

.remote-ops-grid strong,
.remote-ops-grid span,
.remote-ops-grid small {
  display: block;
}

.remote-ops-grid span {
  margin-top: 6px;
  color: var(--soft);
  font-size: 13px;
}

.remote-ops-grid small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.model-guidance {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.visual-card {
  padding: 22px;
}

.visual-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.visual-head span {
  align-self: start;
  border-radius: 999px;
  padding: 7px 11px;
  color: #c9d6ff;
  background: rgba(75, 120, 255, 0.16);
  font-size: 12px;
  font-weight: 900;
}

.visual-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.visual-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: rgba(8, 11, 19, 0.28);
}

.visual-panel h3 {
  margin-bottom: 14px;
  font-size: 15px;
}

.bar-row {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.bar-row div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

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

.bar-row b {
  color: var(--soft);
}

.bar-row i {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: #252b3b;
}

.bar-row i::after {
  content: "";
  width: var(--bar-width);
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), #6ce08a);
}

.queue-table-card {
  min-width: 0;
  overflow: hidden;
  padding: 22px;
}

.queue-table-card.home-table {
  margin-top: 18px;
}

.queue-table-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: start;
}

.eyebrow {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.queue-table-top h2 {
  margin: 7px 0 0;
  font-size: 27px;
}

.queue-table-top p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.48;
}

.table-summary {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(70px, 1fr));
  gap: 8px;
}

.table-summary div {
  min-height: 68px;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 10px 12px;
  background: rgba(8, 11, 19, 0.3);
}

.table-summary strong,
.table-summary span {
  display: block;
}

.table-summary strong {
  font-size: 24px;
}

.table-summary span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.queue-filter-bar {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.queue-filter-bar button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-radius: 999px;
  padding: 0 13px;
  color: var(--soft);
  background: rgba(8, 11, 19, 0.34);
  font-weight: 850;
}

.queue-filter-bar button.active {
  color: white;
  background: var(--blue);
}

.queue-filter-bar span {
  min-width: 22px;
  min-height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
  font-size: 12px;
}

.queue-table-scroll {
  width: 100%;
  max-width: 100%;
  margin-top: 16px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.queue-table {
  min-width: min(980px, calc(100vw - 42px));
}

.queue-row {
  width: 100%;
  display: grid;
  grid-template-columns: 78px minmax(170px, 2fr) minmax(92px, 1fr) minmax(110px, 1.1fr) minmax(150px, 1.45fr) minmax(130px, 1.15fr) minmax(140px, 1.25fr);
  gap: 12px;
  align-items: center;
}

.queue-head {
  min-height: 46px;
  padding: 0 18px;
  color: var(--muted);
  background: rgba(8, 11, 19, 0.48);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.queue-body {
  min-height: 88px;
  border-top: 1px solid var(--line);
  padding: 14px 18px;
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.queue-body:hover {
  background: rgba(75, 120, 255, 0.08);
}

.priority-cell {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
}

.priority-cell b {
  font-size: 25px;
}

.priority-cell i {
  width: 9px;
  height: 38px;
  border-radius: 999px;
  background: var(--green);
}

.priority-cell .hot {
  background: var(--red);
}

.priority-cell .warm {
  background: var(--amber);
}

.priority-cell .cool {
  background: var(--green);
}

.appeal-cell strong,
.appeal-cell small,
.evidence-cell strong,
.evidence-cell small,
.odds-cell strong,
.odds-cell small,
.step-cell strong,
.step-cell small {
  display: block;
}

.appeal-cell strong,
.step-cell strong {
  font-size: 14px;
}

.appeal-cell small,
.evidence-cell small,
.odds-cell small,
.step-cell small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.appeal-cell small,
.evidence-cell small {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.type-pill,
.risk-cell em {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  font-style: normal;
  font-size: 12px;
  font-weight: 850;
}

.type-pill {
  color: #c9d6ff;
  background: rgba(75, 120, 255, 0.14);
}

.risk-cell {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.risk-none {
  color: #aef0c5;
  background: rgba(88, 210, 125, 0.14);
}

.risk-alert {
  color: #ffbab6;
  background: rgba(255, 109, 103, 0.14);
}

.evidence-cell strong {
  color: var(--soft);
}

.odds-cell i {
  width: 100%;
  height: 8px;
  display: block;
  margin-top: 8px;
  border-radius: 999px;
  background: #252b3b;
  overflow: hidden;
}

.odds-cell i::after {
  content: "";
  width: var(--odds);
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--amber), var(--green));
}

.risk-cell strong.severity-pill,
.risk-cell small {
  display: block;
}

.severity-pill {
  width: fit-content;
  min-height: 25px;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  color: #aef0c5;
  background: rgba(88, 210, 125, 0.14);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.severity-pill.medium {
  color: #ffe1a3;
  background: rgba(240, 189, 82, 0.14);
}

.severity-pill.high,
.severity-pill.critical {
  color: #ffbab6;
  background: rgba(255, 109, 103, 0.14);
}

.risk-cell small {
  width: 100%;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.kanban-card {
  margin-top: 18px;
}

.kanban-card.home-kanban {
  margin-top: 18px;
}

.kanban-board {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(5, minmax(210px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 3px;
}

.kanban-lane {
  min-height: 300px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
  background: rgba(8, 11, 19, 0.28);
}

.kanban-lane.drag-over {
  border-color: rgba(75, 120, 255, 0.78);
  background: rgba(75, 120, 255, 0.1);
}

.kanban-lane-head {
  min-height: 74px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.kanban-lane-head strong,
.kanban-lane-head small {
  display: block;
}

.kanban-lane-head strong {
  color: var(--soft);
}

.kanban-lane-head small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.32;
}

.kanban-lane-head b {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 10px;
  color: #c9d6ff;
  background: rgba(75, 120, 255, 0.15);
}

.kanban-stack {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.kanban-item,
.kanban-empty {
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 12px;
  background: rgba(25, 29, 40, 0.78);
}

.kanban-empty {
  min-height: 76px;
  display: grid;
  place-items: center;
  color: var(--muted);
  border-style: dashed;
}

.kanban-item {
  position: relative;
  min-height: 118px;
  color: var(--ink);
  text-align: left;
  cursor: grab;
}

.kanban-item:active {
  cursor: grabbing;
}

.kanban-item.dragging {
  opacity: 0.5;
}

.kanban-item:hover {
  border-color: rgba(75, 120, 255, 0.66);
  background: rgba(75, 120, 255, 0.08);
}

.kanban-item.critical,
.kanban-item.high {
  border-color: rgba(255, 109, 103, 0.3);
}

.kanban-priority {
  position: absolute;
  top: 10px;
  right: 10px;
  min-width: 34px;
  min-height: 27px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 950;
}

.kanban-item strong,
.kanban-item small,
.kanban-item em {
  display: block;
  padding-right: 42px;
}

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

.kanban-item small {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.35;
}

.kanban-item em {
  width: fit-content;
  margin-top: 11px;
  border-radius: 999px;
  padding: 6px 9px;
  color: #c9d6ff;
  background: rgba(75, 120, 255, 0.14);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

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

.kanban-actions button {
  min-height: 30px;
  border-radius: 999px;
  padding: 0 10px;
  color: var(--soft);
  background: rgba(8, 11, 19, 0.38);
  font-size: 12px;
  font-weight: 850;
}

.kanban-actions button:hover {
  color: white;
  background: rgba(75, 120, 255, 0.18);
}

.source-card {
  margin-top: 10px;
  padding: 22px;
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  gap: 20px;
}

.source-card h2 {
  margin: 0;
  font-size: 24px;
}

.source-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

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

.source-grid a {
  min-height: 84px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px;
  color: var(--ink);
  background: rgba(8, 11, 19, 0.28);
  text-decoration: none;
}

.source-grid a:hover {
  border-color: rgba(75, 120, 255, 0.72);
  background: rgba(75, 120, 255, 0.1);
}

.source-grid strong,
.source-grid span {
  display: block;
}

.source-grid strong {
  font-size: 13px;
}

.source-grid span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.digest-card {
  margin-top: 22px;
  min-height: 124px;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 20px;
}

.medal {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #382500;
  background: radial-gradient(circle at 35% 30%, #ffe38c, #e9ad3f 72%);
  font-size: 22px;
  font-weight: 950;
  box-shadow: 0 0 0 5px rgba(240, 189, 82, 0.12);
}

.digest-card h2,
.section-title h2,
.work-head h3 {
  margin: 0;
}

.digest-card p,
.work-head p {
  margin: 7px 0 0;
  color: var(--muted);
}

.secondary,
.primary {
  min-height: 44px;
  border-radius: 14px;
  padding: 0 18px;
  color: var(--ink);
  background: var(--panel-2);
  font-weight: 850;
}

.primary {
  background: var(--blue);
  color: white;
}

.agent-section {
  margin-top: 18px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.section-title h2 {
  font-size: 25px;
}

.section-title span {
  color: var(--muted);
}

.action-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.action-card {
  min-height: 154px;
  border-radius: 18px;
  padding: 20px;
  color: var(--ink);
  background: var(--panel);
  text-align: left;
}

.action-card strong {
  display: block;
  font-size: 48px;
}

.action-card span {
  display: block;
  margin-top: 6px;
  color: var(--soft);
  font-weight: 850;
}

.action-card p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.work-card {
  margin-bottom: 28px;
  padding: 24px;
}

.work-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.ghost {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: var(--muted);
  background: transparent;
  font-size: 24px;
}

.case-quote {
  margin-top: 22px;
  border-radius: 18px;
  padding: 20px;
  background: var(--panel-3);
  border: 1px solid var(--line);
}

.case-quote p,
.draft-box p {
  margin: 0;
  color: var(--soft);
  font-size: 18px;
  line-height: 1.52;
}

.work-meta {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.work-meta span {
  min-height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  color: var(--soft);
  background: var(--panel-2);
  font-size: 13px;
  font-weight: 850;
}

.work-meta .ok {
  color: #aef0c5;
  background: rgba(88, 210, 125, 0.14);
}

.work-meta .risk {
  color: #ffbab6;
  background: rgba(255, 109, 103, 0.14);
}

.draft-box {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: rgba(8, 11, 19, 0.35);
}

.work-actions {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 12px;
}

.ai-note {
  display: block;
  margin-top: 14px;
  text-align: center;
  color: var(--muted);
}

.report-card {
  padding: 22px;
}

.report-card pre {
  margin: 0;
  white-space: pre-wrap;
  color: var(--soft);
  line-height: 1.58;
  font-size: 15px;
}

.composer {
  position: fixed;
  left: calc(var(--sidebar-w) + var(--workbench-edge));
  right: calc(var(--ops-w) + var(--workbench-gap) + var(--workbench-edge));
  bottom: 14px;
  z-index: 10;
  min-height: 0;
  max-height: min(220px, calc(100vh - 96px));
  overflow: auto;
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 10px;
  background: #151924;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.38);
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.composer.drag-ready {
  border-color: rgba(75, 120, 255, 0.72);
  background: #1f2638;
  box-shadow: 0 18px 58px rgba(75, 120, 255, 0.16), 0 18px 58px rgba(0, 0, 0, 0.38);
}

.composer:focus-within {
  border-color: rgba(121, 153, 255, 0.56);
  background: #171c29;
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(75, 120, 255, 0.12) inset;
}

.context-tray {
  min-height: 0;
  display: grid;
  gap: 5px;
}

.context-chip-row,
.native-command-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.native-command-row {
  padding-top: 1px;
}

.compact-context-row {
  overflow-x: auto;
  flex-wrap: nowrap;
  padding-bottom: 1px;
  scrollbar-width: none;
}

.compact-context-row::-webkit-scrollbar,
.native-command-row::-webkit-scrollbar {
  display: none;
}

.compact-context-row .context-chip {
  flex: 0 0 auto;
}

.native-command-details {
  color: var(--muted);
  font-size: 12px;
}

.native-command-details summary {
  width: fit-content;
  list-style: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 5px 9px;
  color: #c9d6ff;
  background: rgba(75, 120, 255, 0.1);
  font-size: 11px;
  font-weight: 900;
}

.native-command-details summary::-webkit-details-marker {
  display: none;
}

.native-command-row.compact {
  margin-top: 8px;
}

.attachment-chip-row {
  margin-top: 8px;
}

.native-command-row button {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 0 10px;
  color: var(--muted);
  background: rgba(8, 11, 19, 0.25);
  font-size: 12px;
  font-weight: 850;
}

.native-command-row button.active,
.native-command-row button:hover {
  color: white;
  background: rgba(75, 120, 255, 0.2);
}

.native-command-row strong {
  color: #c9d6ff;
}

.context-chip {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 0 8px;
  color: var(--soft);
  background: rgba(8, 11, 19, 0.5);
  border: 1px solid var(--line);
  font-size: 10px;
  font-weight: 850;
}

.context-chip.community {
  color: #c9d6ff;
  border-color: rgba(75, 120, 255, 0.4);
}

.context-chip.model {
  color: #ffe1a3;
  border-color: rgba(240, 189, 82, 0.4);
}

.context-chip.tool {
  color: #aef0c5;
  border-color: rgba(88, 210, 125, 0.34);
}

.context-chip.command {
  color: white;
  border-color: rgba(75, 120, 255, 0.48);
  background: rgba(75, 120, 255, 0.16);
}

.context-chip.file.image {
  color: #aef0c5;
}

.context-chip.file.vision-ready {
  color: #c9d6ff;
  border-color: rgba(75, 120, 255, 0.42);
}

.context-chip.file.video {
  color: #ffe1a3;
}

.context-chip i {
  font-style: normal;
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.context-chip button {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  color: inherit;
  background: rgba(255, 255, 255, 0.07);
}

.composer-main {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto 46px;
  align-items: center;
  gap: 9px;
}

.composer-main > button {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: var(--ink);
  background: transparent;
  font-size: 24px;
}

.composer-main > button:hover {
  color: white;
  background: rgba(255, 255, 255, 0.06);
}

.composer textarea {
  min-height: 38px;
  max-height: 96px;
  resize: none;
  border: 0;
  outline: none;
  color: var(--ink);
  background: transparent;
  font-size: 16px;
  line-height: 1.45;
}

.composer textarea::placeholder {
  color: #7e8495;
}

.composer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}

.composer-options {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  min-width: 0;
}

.composer-options summary {
  width: fit-content;
  list-style: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 5px 9px;
  color: #c9d6ff;
  background: rgba(75, 120, 255, 0.1);
  font-size: 12px;
  font-weight: 900;
}

.composer-options summary::-webkit-details-marker {
  display: none;
}

.composer-options[open] summary {
  margin-bottom: 9px;
}

.composer-options[open] {
  grid-column: 1 / -1;
  grid-row: 2;
  justify-self: stretch;
}

.composer-actions input {
  width: min(340px, 100%);
  height: 34px;
  margin: 0;
  border-radius: 999px;
  padding: 0 13px;
  color: var(--ink);
  background: rgba(8, 11, 19, 0.4);
  border: 1px solid var(--line);
  font-size: 13px;
}

.composer-actions button {
  min-width: 70px;
  height: 34px;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(8, 11, 19, 0.2);
  font-weight: 850;
  font-size: 13px;
}

.composer-actions button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.send-button {
  grid-column: 4;
  grid-row: 1;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  border-radius: 13px !important;
  background: var(--blue) !important;
  box-shadow: 0 10px 28px rgba(75, 120, 255, 0.22);
}

.send-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(75, 120, 255, 0.28);
}

dialog {
  width: min(880px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0;
  color: var(--ink);
  background: var(--panel);
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgba(4, 7, 13, 0.72);
}

#caseForm {
  padding: 20px;
}

.connection-dialog {
  width: min(960px, calc(100vw - 28px));
  max-height: min(860px, calc(100vh - 28px));
  overflow: auto;
  padding: 20px;
}

.connection-dialog .dialog-head {
  margin-bottom: 18px;
}

.connection-dialog .dialog-head p {
  margin: 6px 0 0;
  max-width: 680px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.connection-center {
  display: grid;
  gap: 16px;
}

.connection-account,
.connection-section,
.handoff-section,
.connection-footer {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: rgba(8, 11, 19, 0.26);
}

.connection-account {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.connection-account h3,
.connection-section h3 {
  margin: 5px 0 0;
  font-size: 20px;
}

.connection-account p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.connection-account button,
.connection-footer button {
  min-height: 40px;
  border-radius: 999px;
  padding: 0 15px;
  color: white;
  font-weight: 900;
}

.connection-account .primary,
.connection-footer .primary {
  background: var(--blue);
}

.connection-account .secondary,
.connection-footer .secondary {
  color: var(--soft);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
}

.account-switcher,
.checklist-grid,
.connection-connector-grid,
.handoff-section {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.account-switcher button,
.checklist-grid button,
.connection-connector-grid button,
.handoff-section button {
  min-height: 90px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px;
  color: var(--soft);
  background: rgba(17, 23, 34, 0.7);
  text-align: left;
}

.account-switcher button:hover,
.account-switcher button.active,
.checklist-grid button:hover,
.connection-connector-grid button:hover,
.handoff-section button:hover {
  border-color: rgba(75, 120, 255, 0.52);
  background: rgba(75, 120, 255, 0.1);
}

.account-switcher strong,
.account-switcher span,
.checklist-grid strong,
.checklist-grid small,
.connection-connector-grid strong,
.connection-connector-grid em,
.connection-connector-grid small,
.handoff-section strong,
.handoff-section span {
  display: block;
}

.account-switcher span,
.checklist-grid small,
.connection-connector-grid small,
.handoff-section span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.checklist-grid i,
.connection-connector-grid span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  margin-bottom: 9px;
  border-radius: 11px;
  color: white;
  background: rgba(75, 120, 255, 0.16);
  border: 1px solid rgba(75, 120, 255, 0.26);
  font-style: normal;
  font-size: 12px;
  font-weight: 950;
}

.connection-connector-grid em {
  margin-top: 4px;
  color: var(--amber);
  font-style: normal;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.connection-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.dialog-head h2 {
  margin: 0;
}

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

label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
  margin-bottom: 12px;
}

input,
label textarea {
  width: 100%;
  margin-top: 7px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 11px;
  color: var(--ink);
  background: #0e1420;
  outline: none;
}

label textarea {
  min-height: 78px;
  resize: vertical;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 190px;
  z-index: 20;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: var(--panel);
  padding: 12px 14px;
  box-shadow: var(--shadow);
  font-size: 13px;
}

@media (max-width: 1360px) and (min-width: 1101px) {
  :root {
    --center-w: 980px;
    --ops-w: 0px;
    --workbench-gap: 0px;
    --workbench-edge: max(24px, (100vw - var(--sidebar-w) - var(--center-w)) / 2);
  }

  .chat-main {
    grid-template-columns: minmax(0, var(--center-w));
  }

  .ops-rail {
    display: none;
  }

  .composer {
    right: var(--workbench-edge);
  }
}

@media (min-width: 1101px) {
  .composer {
    left: calc(var(--sidebar-w) + ((100vw - var(--sidebar-w) - var(--ops-w) - var(--workbench-gap)) / 2));
    right: auto;
    width: min(760px, calc(100vw - var(--sidebar-w) - var(--ops-w) - var(--workbench-gap) - 56px));
    transform: translateX(-50%);
  }
}

@media (max-width: 1100px) {
  :root {
    --sidebar-w: 0px;
    --center-w: 100vw;
    --ops-w: 0px;
    --workbench-gap: 0px;
    --workbench-edge: 16px;
  }

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

  .sidebar {
    position: static;
    height: auto;
  }

  .chat-main {
    grid-template-columns: minmax(0, 1fr);
    padding: 20px 16px 156px;
  }

  .ops-rail {
    display: none;
  }

  .chat-surface {
    grid-column: 1;
    width: 100%;
  }

  .composer {
    left: 16px;
    right: 16px;
    width: auto;
    transform: none;
    max-height: min(220px, calc(100vh - 72px));
  }

  .prompt-grid,
  .landing-panel,
  .landing-metrics,
  .landing-proof-strip,
  .first-run-head,
  .first-run-steps,
  .inbox-console-top,
  .next-click-card,
  .next-click-grid,
  .intake-strip,
  .tap-review-grid,
  .realtime-grid,
  .realtime-live,
  .connect-grid,
  .connector-grid,
  .sync-strip,
  .command-center,
  .command-chip-grid,
  .agent-spine-grid,
  .runtime-grid,
  .model-route-strip,
  .approval-grid,
  .thinking-grid,
  .context-trail,
  .insight-grid,
  .trend-grid,
  .subagent-grid,
  .surface-awareness,
  .action-card-grid,
  .ingestion-card,
  .ingestion-strip,
  .gbrain-card,
  .gbrain-grid,
  .digest-card,
  .source-card,
  .model-card,
  .source-grid,
  .remote-ops-grid,
  .visual-grid,
  .workflow-stage-grid,
  .flag-grid,
  .flag-signal-list,
  .queue-table-top,
  .work-actions {
    grid-template-columns: 1fr;
  }

  .landing-actions {
    justify-content: flex-start;
  }

  .inbox-actions {
    justify-content: flex-start;
  }

  .inbox-table {
    overflow-x: auto;
  }

  .inbox-row {
    min-width: 760px;
  }

  .atlas-head,
  .tap-review-head,
  .realtime-head,
  .connect-head,
  .connector-head,
  .opportunity-head,
  .thinking-head,
  .runtime-head,
  .human-loop-head,
  .insights-head,
  .workflow-launcher-head,
  .trend-head,
  .subagent-head {
    display: grid;
  }

  .atlas-table {
    overflow-x: auto;
  }

  .atlas-row {
    min-width: 820px;
  }

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

  .ready-list {
    grid-template-columns: 1fr;
  }

  .model-card,
  .model-card-head {
    display: grid;
  }

  .composer-main {
    grid-template-columns: 38px minmax(0, 1fr) auto 46px;
  }

  .composer-actions {
    grid-column: 1 / -1;
  }

  .composer-actions {
    flex-wrap: wrap;
  }

  .composer-actions input {
    width: min(100%, 360px);
    flex: 1 1 220px;
  }
}

@media (max-width: 640px) {
  html,
  body {
    overflow-x: hidden;
  }

  .sidebar {
    display: none;
  }

  .chat-main {
    min-height: 100vh;
    padding: 10px 8px 112px;
  }

  .top-actions {
    display: none;
  }

  .home-screen {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    min-height: auto;
    gap: 14px;
    padding: 18px 0 44px;
  }

  .chat-surface,
  .home-hero {
    width: calc(100vw - 16px);
    max-width: 100%;
    overflow-x: hidden;
  }

  .home-screen h1 {
    margin-bottom: 16px;
    font-size: 28px;
    line-height: 1.12;
  }

  .landing-panel {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    grid-template-columns: 1fr;
    overflow: hidden;
    border-radius: 18px;
    padding: 15px;
    margin-bottom: 12px;
  }

  .landing-panel > *,
  .first-run-card > *,
  .inbox-console-card > *,
  .first-run-head > *,
  .inbox-console-top > * {
    min-width: 0;
  }

  .landing-panel h2 {
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: 24px;
    line-height: 1.12;
  }

  .landing-panel p {
    max-width: 100%;
    font-size: 13px;
    line-height: 1.42;
  }

  .landing-actions button {
    width: 100%;
    min-height: 36px;
    padding: 0 12px;
    font-size: 13px;
  }

  .landing-actions {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
    min-width: 0;
    width: 100%;
  }

  .connection-status {
    min-height: 32px;
    font-size: 11px;
  }

  .landing-metrics {
    gap: 8px;
  }

  .landing-metrics span {
    padding: 9px;
  }

  .landing-metrics strong {
    font-size: 21px;
  }

  .prompt-grid {
    gap: 12px;
  }

  .first-run-card,
  .inbox-console-card {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    overflow: hidden;
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 12px;
  }

  .first-run-head,
  .inbox-console-top {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .first-run-head button,
  .inbox-actions button {
    width: fit-content;
    max-width: 100%;
  }

  .first-run-head h2,
  .inbox-console-top h2 {
    font-size: 22px;
  }

  .first-run-head p,
  .inbox-console-top p {
    font-size: 13px;
  }

  .first-run-steps {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .first-run-steps button {
    min-height: 70px;
    padding: 11px;
  }

  .starter-prompts {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .starter-prompts button {
    flex: 0 0 auto;
  }

  .advanced-home {
    border-radius: 16px;
    margin-bottom: 12px;
  }

  .advanced-home summary {
    min-height: 52px;
    padding: 0 14px;
  }

  .advanced-home summary small {
    display: none;
  }

  .intake-strip {
    margin-top: -18px;
  }

  .sync-strip {
    grid-template-columns: 1fr;
  }

  .opportunity-card {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .home-feed .opportunity-card {
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: start;
  }

  .opportunity-action {
    grid-column: 2;
    justify-self: start;
    text-align: left;
  }

  .home-feed .opportunity-action {
    grid-column: 2;
  }

  .opportunity-buttons {
    justify-content: flex-start;
  }

  .home-feed .opportunity-buttons {
    margin-top: 9px;
  }

  .prompt-card {
    min-height: 130px;
  }

  .queue-table-card {
    padding: 16px;
  }

  .gbrain-card {
    grid-template-columns: 1fr;
  }

  .gbrain-orb {
    width: 54px;
    height: 54px;
    border-radius: 17px;
  }

  .gbrain-head {
    display: grid;
  }

  .workflow-head,
  .flag-head,
  .kanban-head,
  .atlas-head {
    display: grid;
  }

  .workflow-card,
  .flag-card,
  .kanban-card,
  .thinking-card,
  .daily-insights-card,
  .reddit-connect-card,
  .tap-review-card,
  .realtime-card,
  .opportunity-feed-card,
  .workflow-launcher,
  .trend-card,
  .subagent-card,
  .command-center,
  .atlas-card {
    padding: 16px;
  }

  .workflow-stage {
    min-height: auto;
  }

  .queue-table-top h2 {
    font-size: 23px;
  }

  .queue-filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .queue-filter-bar button {
    flex: 0 0 auto;
  }

  .user-bubble {
    font-size: 15px;
    padding: 13px 15px;
  }

  .chat-thread {
    width: 100%;
    padding: 14px 0 92px;
    gap: 12px;
  }

  .chat-message {
    max-width: 92%;
    padding: 11px 12px;
    border-radius: 16px;
  }

  .chat-message p,
  .assistant-copy p,
  .assistant-copy ul {
    font-size: 14px;
    line-height: 1.48;
  }

  .assistant-message {
    max-width: 94%;
  }

  .user-message {
    max-width: 88%;
  }

  .agent-transcript {
    gap: 12px;
  }

  .thought-package summary {
    font-size: 14px;
    gap: 8px;
  }

  .agent-answer-card {
    padding: 16px 0;
  }

  .agent-answer-card p {
    font-size: 15px;
  }

  .ready-row {
    grid-template-columns: 30px 1fr;
  }

  .ready-row small {
    grid-column: 2;
  }

  .composer {
    min-height: 0;
    left: 8px;
    right: 8px;
    width: calc(100vw - 16px);
    bottom: 10px;
    max-height: min(190px, calc(100vh - 58px));
    border-radius: 16px;
    padding: 8px;
    gap: 5px;
  }

  .context-tray {
    gap: 4px;
  }

  .compact-context-row .context-chip.model {
    display: none;
  }

  .context-chip {
    min-height: 22px;
    padding: 0 7px;
    font-size: 10px;
  }

  .context-chip.command {
    max-width: 46vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .native-command-row {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }

  .native-command-row button {
    flex: 0 0 auto;
  }

  .composer-main {
    grid-template-columns: 32px minmax(0, 1fr) 40px;
    gap: 6px;
  }

  .composer-main > button {
    width: 30px;
    height: 30px;
    font-size: 21px;
  }

  .composer-actions {
    grid-column: 1 / -1;
  }

  .composer-options,
  .native-command-details {
    display: none;
  }

  .composer-actions {
    justify-content: space-between;
    gap: 8px;
  }

  .composer textarea {
    min-width: 0;
    min-height: 34px;
    max-height: 78px;
    font-size: 14px;
  }

  .composer-actions input {
    width: 100%;
    flex-basis: 100%;
  }

  .composer-actions button {
    min-width: auto;
    padding: 0 12px;
  }

  .send-button {
    grid-column: 3 !important;
  }

  .connection-dialog {
    width: calc(100vw - 18px);
    max-height: calc(100vh - 18px);
    padding: 14px;
    border-radius: 16px;
  }

  .connection-account,
  .connection-footer {
    display: grid;
    justify-content: stretch;
  }

  .account-switcher,
  .checklist-grid,
  .connection-connector-grid,
  .handoff-section {
    grid-template-columns: 1fr;
  }

  .send-button {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    border-radius: 13px !important;
  }

  .runtime-summary {
    min-height: 58px;
    padding: 12px;
  }

  .runtime-body {
    padding: 12px;
  }
}

@media (max-width: 900px) {
  .category-strip {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .action-status-strip {
    width: 100%;
    grid-template-columns: auto minmax(0, 1fr);
    border-radius: 16px;
  }

  .action-status-strip small {
    grid-column: 1 / -1;
  }

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

  .pain-chip-row button {
    width: 100%;
    justify-content: space-between;
  }

  .pain-chip-row span {
    max-width: 48vw;
  }
}

@media (max-width: 560px) {
  .category-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .surface-map-grid {
    grid-template-columns: 1fr;
  }

  .reddit-surface-card {
    padding: 14px;
  }
}

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