.nb-kit,
.nb-mobile-kit,
.ws-kit {
  --accent-primary: #d97757;
  --accent-primary-hover: #c76648;
  --accent-primary-tint: rgba(217, 119, 87, 0.1);
  --accent-primary-border: rgba(217, 119, 87, 0.24);
  --accent-ink: #ad5f45;
  --indigo: #5e6ad2;
  --bg-app: #fafafa;
  --bg-surface: #ffffff;
  --bg-secondary: #f3f4f6;
  --bg-tertiary: #e5e7eb;
  --bg-muted: #f5f4f1;
  --bg-paper: #fbf8f2;
  --text-primary: #111827;
  --text-secondary: #374151;
  --text-muted: #6b7280;
  --text-faint: #9ca3af;
  --border-subtle: rgba(15, 23, 42, 0.06);
  --border-default: rgba(15, 23, 42, 0.1);
  --border-strong: rgba(15, 23, 42, 0.16);
  --success: #047857;
  --warning: #b45309;
  --danger: #dc2626;
  --shadow-sm: 0 0 0 1px rgba(0, 0, 0, 0.02), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 0 0 1px rgba(0, 0, 0, 0.03), 0 2px 4px rgba(0, 0, 0, 0.05), 0 12px 24px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 0 0 1px rgba(0, 0, 0, 0.03), 0 4px 8px rgba(0, 0, 0, 0.06), 0 24px 48px rgba(0, 0, 0, 0.08);
  --shadow-accent: 0 14px 34px rgba(217, 119, 87, 0.25);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "Manrope", system-ui, sans-serif;
  --font-serif: "Lora", "Iowan Old Style", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  box-sizing: border-box;
  color: var(--text-primary);
  font-family: var(--font-sans);
}

/* Dark mode token overrides — cockpit useTheme sets `.dark` on document root.
   Without these, kit-scoped surfaces stay light even after toggling theme. */
.dark .nb-kit,
.dark .nb-mobile-kit,
.dark .ws-kit {
  --accent-primary: #e08a6e;
  --accent-primary-hover: #f0a08c;
  --accent-primary-tint: rgba(217, 119, 87, 0.16);
  --accent-primary-border: rgba(217, 119, 87, 0.40);
  --accent-ink: #f0a890;
  --indigo: #7c87dc;
  --bg-app: #0f1014;
  --bg-surface: #16181d;
  --bg-secondary: #1f222a;
  --bg-tertiary: #2a2e38;
  --bg-muted: #11141a;
  --bg-paper: #1a1d24;
  --text-primary: #f3f4f6;
  --text-secondary: #d1d5db;
  --text-muted: #9ca3af;
  --text-faint: #6b7280;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-default: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);
  --shadow-sm: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 1px 2px rgba(0, 0, 0, 0.40);
  --shadow-md: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 2px 4px rgba(0, 0, 0, 0.30), 0 12px 24px rgba(0, 0, 0, 0.40);
  --shadow-lg: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 4px 8px rgba(0, 0, 0, 0.40), 0 24px 48px rgba(0, 0, 0, 0.50);
}

/* Avatar panel must also flip — its identity gradient is intentional, but
   pulse tiles that aren't `[data-hot]` need the dark surface treatment. */
.dark .nb-avm-link:hover { background: var(--bg-secondary); }
.dark .nb-avm-pulse:not([data-hot="true"]) { background: var(--bg-tertiary); }

.nb-kit *,
.nb-kit *::before,
.nb-kit *::after,
.nb-mobile-kit *,
.nb-mobile-kit *::before,
.nb-mobile-kit *::after,
.ws-kit *,
.ws-kit *::before,
.ws-kit *::after {
  box-sizing: border-box;
}

.nb-kit {
  min-height: 100%;
  background:
    radial-gradient(circle at 12% -12%, rgba(217, 119, 87, 0.08), transparent 28%),
    radial-gradient(circle at 92% 4%, rgba(94, 106, 210, 0.06), transparent 24%),
    var(--bg-app);
}

.nb-kit button,
.nb-mobile-kit button,
.ws-kit button {
  font-family: inherit;
}

.nb-kit .nb-shell {
  max-width: 72rem;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.nb-kit .nb-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.nb-kit .nb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 8px 14px;
  background: transparent;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  transition: all 160ms var(--ease-out-expo);
}

.nb-kit .nb-btn-primary {
  border-color: var(--accent-primary-border);
  background: linear-gradient(180deg, #d97757 96%, #c6684a 100%);
  color: #fffaf8;
  font-weight: 700;
  box-shadow: var(--shadow-accent);
}

.nb-kit .nb-btn-secondary {
  border-color: var(--border-default);
  background: rgba(255, 255, 255, 0.78);
  color: var(--text-primary);
}

.nb-kit .nb-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-default);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text-muted);
  transition: all 160ms var(--ease-out-expo);
}

.nb-kit .nb-icon-btn:hover {
  border-color: var(--accent-primary-border);
  color: var(--accent-ink);
  background: var(--accent-primary-tint);
}

.nb-kit .nb-icon-btn[data-state="active"] {
  border-color: var(--accent-primary-border);
  background: var(--accent-primary-tint);
  color: var(--accent-ink);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.72), 0 12px 24px -20px rgba(217,119,87,0.82);
}

.nb-kit .nb-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text-muted);
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
}

.nb-kit .nb-badge-accent {
  border-color: var(--accent-primary-border);
  background: var(--accent-primary-tint);
  color: var(--accent-ink);
}

.nb-kit .nb-badge-success {
  border-color: rgba(5, 150, 105, 0.16);
  background: rgba(5, 150, 105, 0.08);
  color: var(--success);
}

.dark .nb-kit .nb-btn-secondary {
  border-color: var(--border-strong);
  background: color-mix(in oklab, var(--bg-tertiary) 72%, #05070b 28%);
  color: var(--text-secondary);
}

.dark .nb-kit .nb-btn-secondary:hover {
  border-color: var(--accent-primary-border);
  background: color-mix(in oklab, var(--accent-primary-tint) 60%, var(--bg-tertiary));
  color: var(--text-primary);
}

.dark .nb-kit .nb-icon-btn {
  border-color: var(--border-strong);
  background: color-mix(in oklab, var(--bg-tertiary) 72%, #05070b 28%);
  color: var(--text-secondary);
}

.dark .nb-kit .nb-icon-btn:hover,
.dark .nb-kit .nb-icon-btn[data-state="active"] {
  border-color: color-mix(in oklab, var(--accent-primary) 54%, transparent);
  background: color-mix(in oklab, var(--accent-primary-tint) 72%, var(--bg-tertiary));
  color: #ffd4c8;
}

.dark .nb-kit .nb-badge {
  border-color: var(--border-strong);
  background: color-mix(in oklab, var(--bg-tertiary) 72%, #05070b 28%);
  color: var(--text-secondary);
}

.dark .nb-kit .nb-badge-accent {
  border-color: color-mix(in oklab, var(--accent-primary) 54%, transparent);
  background: color-mix(in oklab, var(--accent-primary-tint) 72%, var(--bg-tertiary));
  color: #ffd4c8;
}

.dark .nb-kit .nb-badge-success {
  border-color: color-mix(in oklab, var(--success) 42%, transparent);
  background: color-mix(in oklab, var(--success) 14%, var(--bg-tertiary));
  color: #7ee0b7;
}

.nb-kit .nb-kicker {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nb-kit .nb-composer-hero {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.nb-kit .nb-composer-hero h1 {
  margin: 8px 0 0;
  color: var(--text-primary);
  font-size: 36px;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.nb-kit .nb-composer-hero p {
  margin: 8px auto 0;
  max-width: 470px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.45;
}

.nb-kit .nb-composer-box {
  margin-top: 28px;
  border: 1px solid var(--border-default);
  border-radius: 22px;
  background: color-mix(in oklab, var(--bg-surface) 92%, transparent);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  text-align: left;
}

.nb-kit .nb-composer-input {
  min-height: 92px;
  width: 100%;
  border: 0;
  outline: 0;
  resize: none;
  background: transparent;
  color: var(--text-primary);
  padding: 20px 22px;
  font: inherit;
  font-size: 15px;
}

.nb-kit .nb-composer-input::placeholder {
  color: var(--text-faint);
}

.nb-kit .nb-composer-bottom {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--border-subtle);
  padding: 12px 18px;
}

.nb-kit .nb-lanes {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 7px;
}

.nb-kit .nb-lane {
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  background: var(--bg-surface);
  color: var(--text-muted);
  padding: 5px 11px;
  font-size: 11.5px;
  font-weight: 700;
}

.nb-kit .nb-lane[data-active="true"] {
  border-color: var(--accent-primary-border);
  background: var(--accent-primary-tint);
  color: var(--accent-ink);
}

.nb-kit .nb-lane small {
  margin-left: 6px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
}

.nb-kit .nb-async-proof {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 12px;
}

.nb-kit .nb-async-proof span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  background: var(--bg-surface);
  padding: 6px 9px;
}

.nb-kit .nb-voice-status {
  margin: 10px auto 0;
  max-width: 420px;
  border: 1px solid var(--accent-primary-border);
  border-radius: 999px;
  background: var(--accent-primary-tint);
  color: var(--accent-ink);
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
}

.nb-kit .nb-background-feedback {
  margin: 12px auto 0;
  max-width: 640px;
  border: 1px solid rgba(5, 150, 105, 0.18);
  border-radius: 8px;
  background: rgba(5, 150, 105, 0.08);
  color: var(--success);
  padding: 10px 12px;
  text-align: left;
  font-size: 12.5px;
  line-height: 1.45;
}

.nb-kit .nb-background-feedback[data-state="error"] {
  border-color: rgba(185, 28, 28, 0.18);
  background: rgba(185, 28, 28, 0.08);
  color: var(--fail);
}

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

.nb-kit .nb-prompt-card {
  min-height: 86px;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: var(--bg-surface);
  color: var(--text-primary);
  padding: 14px;
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: transform 180ms var(--ease-out-expo), border-color 180ms var(--ease-out-expo), box-shadow 180ms var(--ease-out-expo);
}

.nb-kit .nb-prompt-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-primary-border);
  box-shadow: var(--shadow-md);
}

.nb-kit .nb-prompt-icon {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--accent-primary-tint);
  color: var(--accent-ink);
  margin-bottom: 12px;
}

.nb-kit .nb-first-board {
  border: 1px solid var(--border-default);
  border-radius: 12px;
  background: color-mix(in oklab, var(--bg-surface) 94%, transparent);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.nb-kit .nb-first-board-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
}

.nb-kit .nb-first-board-head h2 {
  max-width: 620px;
  margin: 6px 0 0;
  color: var(--text-primary);
  font-size: 22px;
  font-weight: 760;
  line-height: 1.16;
  letter-spacing: -0.01em;
}

.nb-kit .nb-first-tabs {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(88px, 1fr));
  gap: 6px;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: var(--bg-muted);
  padding: 4px;
}

.nb-kit .nb-first-tabs button {
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  padding: 7px 8px;
  text-align: left;
  font-size: 12px;
  font-weight: 760;
}

.nb-kit .nb-first-tabs button[data-active="true"] {
  border-color: var(--border-default);
  background: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: var(--shadow-xs);
}

.nb-kit .nb-first-tabs small {
  display: block;
  margin-top: 2px;
  color: var(--text-faint);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.2;
}

.nb-kit .nb-first-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.nb-kit .nb-first-card {
  display: flex;
  min-height: 264px;
  flex-direction: column;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: var(--bg-surface);
  padding: 14px;
  text-align: left;
}

.nb-kit .nb-first-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.nb-kit .nb-first-card-horizon {
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.nb-kit .nb-first-card h3 {
  margin: 12px 0 0;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 780;
  line-height: 1.2;
}

.nb-kit .nb-first-card p {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
}

.nb-kit .nb-first-proof {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}

.nb-kit .nb-first-proof span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.3;
}

.nb-kit .nb-first-proof svg {
  flex: 0 0 auto;
  color: var(--success);
}

.nb-kit .nb-first-export {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 12px;
}

.nb-kit .nb-first-export span {
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  background: var(--bg-muted);
  color: var(--text-muted);
  padding: 4px 7px;
  font-size: 10.5px;
  font-weight: 700;
}

.nb-kit .nb-first-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

.nb-kit .nb-install-chip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 12px;
}

.nb-kit .nb-install-chip code {
  border: 1px solid var(--border-default);
  border-radius: 7px;
  background: var(--bg-surface);
  color: var(--text-secondary);
  padding: 5px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
}

.nb-kit .nb-reports-toolbar,
.nb-kit .nb-inbox-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.nb-kit .nb-reports-source-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  background: var(--bg-surface);
  color: var(--text-muted);
  padding: 0 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
}

.nb-kit .nb-reports-source-pill[data-source="live_convex"] {
  border-color: rgba(16, 185, 129, 0.28);
  background: rgba(16, 185, 129, 0.08);
  color: #047857;
}

.nb-kit .nb-view-toggle,
.nb-kit .nb-inbox-filter {
  display: inline-flex;
  gap: 2px;
  border-radius: 10px;
  background: var(--bg-secondary);
  padding: 3px;
}

.nb-kit .nb-view-toggle button,
.nb-kit .nb-inbox-filter button {
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  padding: 5px 12px;
  font-size: 11.5px;
  font-weight: 700;
}

.nb-kit .nb-view-toggle button[data-active="true"],
.nb-kit .nb-inbox-filter button[data-active="true"] {
  background: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

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

.nb-kit .nb-reports-grid[data-view="list"] {
  grid-template-columns: 1fr;
}

.nb-kit .nb-rcard {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  background: var(--bg-surface);
  color: inherit;
  cursor: pointer;
  text-align: left;
  transition: transform 200ms var(--ease-out-expo), box-shadow 200ms var(--ease-out-expo), border-color 200ms var(--ease-out-expo);
}

.nb-kit .nb-rcard:hover {
  transform: translateY(-3px);
  border-color: var(--border-default);
  box-shadow: var(--shadow-md);
}

.nb-kit .nb-rcard-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
}

.nb-kit .nb-rcard-thumb svg {
  width: 100%;
  height: 100%;
  display: block;
}

.nb-kit .nb-rcard-thumb-overlay {
  position: absolute;
  inset: 10px 10px auto;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nb-kit .nb-rcard-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
}

.nb-kit .nb-rcard-title {
  color: var(--text-primary);
  font-size: 14.5px;
  font-weight: 750;
  letter-spacing: -0.012em;
  line-height: 1.3;
}

.nb-kit .nb-rcard-sub {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.nb-kit .nb-rcard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 72px;
  margin-top: 4px;
  opacity: 1;
  overflow: hidden;
  pointer-events: auto;
  transform: translateY(0);
  transition: max-height 180ms var(--ease-out-expo), margin-top 180ms var(--ease-out-expo), opacity 160ms ease, transform 180ms var(--ease-out-expo);
}

.nb-kit .nb-rcard:hover .nb-rcard-actions,
.nb-kit .nb-rcard:focus-within .nb-rcard-actions {
  max-height: 72px;
  margin-top: 4px;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nb-kit .nb-rcard-actions .nb-btn {
  min-height: 28px;
  padding: 5px 9px;
  font-size: 11px;
}

.nb-kit .nb-rcard-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  border-top: 1px dashed var(--border-subtle);
  padding-top: 8px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.nb-kit .nb-rcard-watch {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--border-default);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text-muted);
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 700;
}

.nb-kit .nb-rcard-watch[data-on="true"] {
  border-color: var(--accent-primary-border);
  background: var(--accent-primary-tint);
  color: var(--accent-ink);
}

.dark .nb-kit .nb-rcard {
  border-color: rgba(255, 255, 255, 0.09);
  background: color-mix(in oklab, var(--bg-surface) 88%, #090b10);
}

.dark .nb-kit .nb-rcard-thumb-overlay .nb-badge {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(12, 15, 22, 0.74);
  color: #f5f7fb;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
}

.dark .nb-kit .nb-rcard-thumb-overlay .nb-badge-accent {
  border-color: rgba(224, 138, 110, 0.55);
  background: rgba(224, 138, 110, 0.20);
  color: #ffd7ca;
}

.dark .nb-kit .nb-rcard-thumb-overlay .nb-badge-success {
  border-color: rgba(126, 224, 183, 0.48);
  background: rgba(16, 185, 129, 0.18);
  color: #a7f3d0;
}

.dark .nb-kit .nb-rcard-actions .nb-btn-secondary,
.dark .nb-kit .nb-rcard-watch {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(38, 42, 52, 0.92);
  color: #eef2f7;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.dark .nb-kit .nb-rcard-actions .nb-btn-secondary:hover,
.dark .nb-kit .nb-rcard-watch:hover {
  border-color: rgba(224, 138, 110, 0.54);
  background: rgba(224, 138, 110, 0.18);
  color: #ffd4c8;
}

.dark .nb-kit .nb-rcard-watch[data-on="true"] {
  border-color: rgba(224, 138, 110, 0.54);
  background: rgba(224, 138, 110, 0.18);
  color: #ffd4c8;
}

.nb-kit .nb-deferred-panel,
.nb-mobile-kit .nb-deferred-panel {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  border: 1px dashed var(--border-subtle);
  border-radius: 8px;
  background: color-mix(in srgb, var(--bg-surface) 72%, transparent);
  color: var(--text-muted);
  padding: 11px 13px;
  font-size: 12px;
  font-weight: 650;
}

.nb-kit .nb-deferred-panel-dot,
.nb-mobile-kit .nb-deferred-panel-dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 999px;
  background: var(--accent-primary);
  opacity: 0.72;
}

.nb-kit .pipeline-launcher-advanced,
.nb-mobile-kit .pipeline-launcher-advanced {
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: var(--bg-muted, var(--bg-secondary));
  padding: 8px 10px;
}

.nb-kit .pipeline-launcher-advanced summary,
.nb-mobile-kit .pipeline-launcher-advanced summary {
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 800;
  list-style: none;
}

.nb-kit .pipeline-launcher-advanced summary::-webkit-details-marker,
.nb-mobile-kit .pipeline-launcher-advanced summary::-webkit-details-marker {
  display: none;
}

.nb-kit .pipeline-launcher-advanced-body,
.nb-mobile-kit .pipeline-launcher-advanced-body {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-top: 9px;
}

.nb-kit .pipeline-launcher-chatlike {
  border-color: var(--border-default);
  border-radius: 22px;
  background:
    radial-gradient(circle at 8% 0%, rgba(217, 119, 87, 0.08), transparent 28%),
    var(--bg-surface);
  box-shadow: var(--shadow-sm);
}

.nb-kit .pipeline-launcher-chatlike .pipeline-launcher-head {
  padding: 0 2px;
}

.nb-kit .pipeline-launcher-chatlike .pipeline-launcher-head h3 {
  font-size: 13px;
}

.nb-kit .pipeline-launcher-chatlike .pipeline-launcher-head p {
  font-size: 11.5px;
}

.nb-kit .pipeline-launcher-chatlike .pipeline-launcher-form {
  display: grid;
  gap: 12px;
}

.nb-kit .pipeline-launcher-chatlike .pipeline-launcher-prompt {
  gap: 8px;
  color: var(--text-secondary);
}

.nb-kit .pipeline-launcher-chatlike .pipeline-launcher-prompt > span:first-child {
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 800;
}

.nb-kit .pipeline-launcher-chatlike [data-testid="pipeline-launcher-spec"] {
  min-height: 132px;
  border-color: var(--border-default);
  border-radius: 18px;
  background: var(--bg-app);
  color: var(--text-primary);
  padding: 16px 18px;
  font-size: 14px;
  line-height: 1.55;
  resize: vertical;
  box-shadow: inset 0 1px 0 rgba(15, 23, 42, 0.03);
}

.nb-kit .pipeline-launcher-chatlike [data-testid="pipeline-launcher-spec"]:focus {
  outline: 0;
  border-color: var(--accent-primary-border);
  box-shadow: 0 0 0 3px var(--accent-primary-tint);
}

.nb-kit .pipeline-launcher-chatlike select,
.nb-kit .pipeline-launcher-chatlike input[type="text"] {
  min-height: 34px;
  border-radius: 10px;
  border-color: var(--border-default);
  background: var(--bg-surface);
  color: var(--text-primary);
}

.nb-kit .pipeline-launcher-chatlike .pipeline-launcher-advanced {
  border-color: var(--border-subtle);
  border-radius: 14px;
  background: color-mix(in oklab, var(--bg-secondary) 78%, transparent);
}

.nb-kit .pipeline-launcher-chatlike [data-testid="pipeline-launcher-submit"] {
  min-height: 34px;
  border-radius: 999px;
  padding-inline: 16px;
  font-weight: 800;
}

.dark .nb-kit .pipeline-launcher-chatlike {
  border-color: rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 7% -6%, rgba(224, 138, 110, 0.12), transparent 30%),
    radial-gradient(circle at 90% 8%, rgba(124, 135, 220, 0.08), transparent 25%),
    rgba(12, 14, 19, 0.86);
}

.dark .nb-kit .pipeline-launcher-chatlike [data-testid="pipeline-launcher-spec"] {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(7, 9, 13, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.dark .nb-kit .pipeline-launcher-chatlike .pipeline-launcher-advanced {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
}

/* Reports uses the launcher as a composer, not a settings form. */
.nb-kit .pipeline-launcher-chatlike {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.nb-kit .pipeline-launcher-chatlike .pipeline-launcher-head {
  display: none;
}

.nb-kit .pipeline-launcher-chatlike .pipeline-launcher-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 10px;
  align-items: end;
  border: 1px solid var(--border-default);
  border-radius: 24px;
  background:
    radial-gradient(circle at 8% 0%, rgba(217, 119, 87, 0.06), transparent 34%),
    var(--bg-surface);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
  padding: 8px 10px;
}

.nb-kit .pipeline-launcher-chatlike .pipeline-launcher-prompt {
  grid-column: 1 / -1;
  gap: 0;
}

.nb-kit .pipeline-launcher-chatlike .pipeline-launcher-prompt > span:first-child {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  margin: -1px;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.nb-kit .pipeline-launcher-chatlike .pipeline-launcher-prompt > span:last-child {
  display: none;
}

.nb-kit .pipeline-launcher-chatlike [data-testid="pipeline-launcher-spec"] {
  min-height: 46px;
  max-height: 108px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  box-shadow: none;
  padding: 9px 12px 5px;
  font-size: 14.5px;
  line-height: 1.45;
  resize: none;
}

.nb-kit .pipeline-launcher-chatlike [data-testid="pipeline-launcher-spec"]:focus {
  box-shadow: none;
}

.nb-kit .pipeline-launcher-chatlike .pipeline-launcher-kind-row {
  display: flex;
  grid-column: 1;
  grid-row: 2;
  gap: 7px;
  align-items: center;
  min-width: 0;
}

.nb-kit .pipeline-launcher-chatlike .pipeline-launcher-kind-row label {
  display: inline-flex;
  min-height: 30px;
  flex: 0 1 auto;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  background: color-mix(in oklab, var(--bg-secondary) 72%, transparent);
  padding: 0 9px;
}

.nb-kit .pipeline-launcher-chatlike .pipeline-launcher-kind-row label > span {
  display: none;
}

.nb-kit .pipeline-launcher-chatlike .pipeline-launcher-kind-row select,
.nb-kit .pipeline-launcher-chatlike .pipeline-launcher-kind-row input[type="text"] {
  min-height: 28px;
  max-width: 190px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  padding: 0 2px;
  font-size: 11.5px;
  font-weight: 760;
}

.nb-kit .pipeline-launcher-chatlike .pipeline-launcher-advanced {
  grid-column: 1;
  grid-row: 2;
  width: fit-content;
  max-width: 100%;
  align-self: center;
  border-radius: 999px;
  margin-left: 140px;
  padding: 5px 10px;
}

.nb-kit .pipeline-launcher-chatlike .pipeline-launcher-advanced[open] {
  grid-column: 1 / -1;
  grid-row: 3;
  width: 100%;
  border-radius: 16px;
  margin-left: 0;
  padding: 9px 11px;
}

.nb-kit .pipeline-launcher-chatlike .pipeline-launcher-footer {
  grid-column: 2;
  grid-row: 2;
  justify-content: flex-end;
  align-self: center;
  min-width: max-content;
}

.nb-kit .pipeline-launcher-chatlike .pipeline-launcher-status {
  display: none;
}

.nb-kit .pipeline-launcher-chatlike [data-testid="pipeline-launcher-submit"] {
  width: 42px;
  min-height: 42px;
  border-radius: 999px;
  gap: 0;
  padding: 0;
  font-size: 0;
  font-weight: 800;
}

.nb-kit .pipeline-launcher-chatlike [data-testid="pipeline-launcher-submit"] svg {
  width: 16px;
  height: 16px;
}

.dark .nb-kit .pipeline-launcher-chatlike .pipeline-launcher-form {
  border-color: rgba(255, 255, 255, 0.13);
  background:
    radial-gradient(circle at 8% 0%, rgba(224, 138, 110, 0.10), transparent 34%),
    rgba(8, 10, 14, 0.78);
  box-shadow: 0 20px 64px rgba(0, 0, 0, 0.30);
}

.dark .nb-kit .pipeline-launcher-chatlike .pipeline-launcher-kind-row label {
  border-color: rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.045);
}

.nb-kit .nb-show-more-row {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.nb-kit .nb-ibx-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  border: 1px solid var(--border-subtle);
  border-left-width: 3px;
  border-radius: 12px;
  background: var(--bg-surface);
  padding: 14px 14px 12px 16px;
  transition: all 200ms var(--ease-out-expo);
}

.nb-kit .nb-ibx-row[data-priority="act"] { border-left-color: var(--accent-primary); }
.nb-kit .nb-ibx-row[data-priority="auto"] { border-left-color: var(--success); }
.nb-kit .nb-ibx-row[data-priority="watch"] { border-left-color: var(--indigo); }
.nb-kit .nb-ibx-row[data-priority="fyi"] { border-left-color: var(--text-faint); }

.nb-kit .nb-ibx-icon {
  display: flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--accent-primary-tint);
  color: var(--accent-ink);
}

.nb-kit .nb-ibx-top {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.nb-kit .nb-ibx-entity {
  color: var(--accent-ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nb-kit .nb-ibx-title {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 750;
}

.nb-kit .nb-ibx-when {
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.nb-kit .nb-ibx-msg {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.55;
}

.nb-kit .nb-ibx-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.nb-kit .nb-ibx-actions button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--border-default);
  border-radius: 999px;
  background: var(--bg-surface);
  color: var(--text-secondary);
  padding: 5px 10px;
  font-size: 11.5px;
  font-weight: 700;
}

.nb-kit .nb-ibx-actions button.primary {
  border-color: var(--accent-primary-border);
  background: var(--accent-primary-tint);
  color: var(--accent-ink);
}

.nb-kit .nb-ibx-priority {
  display: inline-flex;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nb-kit .nb-answer {
  max-width: 820px;
  margin: 0 auto;
}

.nb-kit .nb-answer h1 {
  margin: 10px 0 12px;
  color: var(--text-primary);
  font-size: 30px;
  font-weight: 760;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.nb-kit .nb-answer-p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.75;
}

.nb-kit .nb-cite {
  display: inline-flex;
  align-items: center;
  margin-left: 2px;
  border: 1px solid var(--accent-primary-border);
  border-radius: 4px;
  background: var(--accent-primary-tint);
  color: var(--accent-primary);
  padding: 0 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  vertical-align: super;
}

.nb-kit .nb-reasoning {
  border: 1px dashed var(--border-default);
  border-radius: 12px;
  background: var(--bg-secondary);
  padding: 12px;
}

.nb-kit .nb-reasoning-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 0;
  padding: 0;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11.5px;
  list-style: none;
}

.nb-kit .nb-reasoning-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nb-kit .nb-reasoning-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--success);
}

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

.nb-kit .nb-source-card {
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: var(--bg-surface);
  padding: 12px;
}

.nb-kit .nb-followups {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.nb-kit .nb-followup-chip {
  border: 1px solid var(--accent-primary-border);
  border-radius: 999px;
  background: var(--accent-primary-tint);
  color: var(--accent-ink);
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
}

.nb-kit .nb-me-grid {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 24px;
}

.nb-kit .nb-me-sidenav,
.nb-kit .nb-settings-section {
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
}

.nb-kit .nb-me-sidenav {
  align-self: start;
  padding: 10px;
}

.nb-kit .nb-me-sidenav .hd {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px 14px;
}

.nb-kit .nb-me-sidenav .av {
  display: flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #d97757, #5e6ad2);
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 800;
}

.nb-kit .nb-me-sidenav .nm {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 800;
}

.nb-kit .nb-me-sidenav .em,
.nb-kit .section-title {
  color: var(--text-muted);
  font-size: 11px;
}

.nb-kit .section-title {
  padding: 12px 8px 6px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nb-kit .nb-me-sidenav button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-secondary);
  padding: 8px 9px;
  text-align: left;
  font-size: 12.5px;
  font-weight: 700;
}

.nb-kit .nb-me-sidenav button[data-active="true"] {
  background: var(--accent-primary-tint);
  color: var(--accent-ink);
}

.nb-kit .nb-settings-h1 {
  margin: 0;
  color: var(--text-primary);
  font-size: 28px;
  font-weight: 760;
  letter-spacing: -0.025em;
}

.nb-kit .nb-settings-sub {
  margin: 4px 0 18px;
  color: var(--text-muted);
  font-size: 13px;
}

.nb-kit .nb-settings-section {
  margin-bottom: 14px;
  padding: 18px 20px;
}

.nb-kit .nb-settings-section h2 {
  margin: 0 0 4px;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 800;
}

.nb-kit .nb-field {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  border-top: 1px solid var(--border-subtle);
  padding: 13px 0;
}

.nb-kit .nb-field:first-of-type {
  border-top: 0;
}

.nb-kit .nb-field-l {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
}

.nb-kit .nb-field-l .hint {
  display: block;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
}

.nb-kit .nb-field-r {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nb-kit .nb-field-r input,
.nb-kit .nb-field-r select {
  width: 100%;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  background: var(--bg-surface);
  color: var(--text-primary);
  padding: 8px 10px;
  font: inherit;
  font-size: 13px;
}

.nb-kit .nb-switch {
  position: relative;
  width: 36px;
  height: 20px;
  border: 0;
  border-radius: 999px;
  background: var(--bg-tertiary);
}

.nb-kit .nb-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.18);
  transition: transform 160ms var(--ease-out-expo);
}

.nb-kit .nb-switch[data-on="true"] {
  background: #22c55e;
}

.nb-kit .nb-switch[data-on="true"]::after {
  transform: translateX(16px);
}

.nb-mobile-kit {
  height: 100%;
  --accent: #d97757;
  --accent-hover: #c76648;
  --accent-tint: rgba(217, 119, 87, 0.1);
  --accent-border: rgba(217, 119, 87, 0.24);
  --bg-app: #fbf9f6;
  --bg-canvas: #f5f2ee;
  --bg-surface: #ffffff;
  --bg-muted: #f5f4f1;
  --bg-notebook: #fffcf6;
}

.nb-mobile-kit .m-screen {
  width: 100%;
  min-height: calc(100dvh - 56px);
  background: var(--bg-app);
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}

.nb-mobile-kit .m-top {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.9);
  padding: calc(env(safe-area-inset-top, 0px) + 14px) 16px 10px;
}

.dark .nb-mobile-kit .m-top {
  background: rgba(15, 17, 22, 0.94);
}

.nb-mobile-kit .m-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--text-primary);
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nb-mobile-kit .m-top-sub {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.nb-mobile-kit .m-icon-btn {
  display: flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: var(--bg-surface);
  color: var(--text-secondary);
}

.nb-mobile-kit .m-body {
  overflow-y: auto;
  padding-bottom: 84px;
}

.nb-mobile-kit .kicker {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nb-mobile-kit .pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}

.nb-mobile-kit .pill-accent { border-color: var(--accent-border); background: var(--accent-tint); color: var(--accent-ink); }
.nb-mobile-kit .pill-ok { border-color: rgba(4, 120, 87, 0.18); background: rgba(4, 120, 87, 0.08); color: var(--success); }
.nb-mobile-kit .pill-warn { border-color: rgba(180, 83, 9, 0.18); background: rgba(180, 83, 9, 0.08); color: var(--warning); }
.nb-mobile-kit .pill-neutral { border-color: var(--border-subtle); background: var(--bg-muted); color: var(--text-muted); }
.nb-mobile-kit .pill-mono { font-family: var(--font-mono); font-size: 10px; }

.nb-mobile-kit .m-home-greet {
  padding: 14px 18px 10px;
}

.nb-mobile-kit .m-home-greet h2,
.nb-mobile-kit .m-chat-title,
.nb-mobile-kit .m-brief-title,
.nb-mobile-kit .m-notebook-title {
  margin: 0;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-weight: 800;
  letter-spacing: -0.022em;
}

.nb-mobile-kit .m-home-greet h2 { font-size: 22px; line-height: 1.25; }
.nb-mobile-kit .m-home-greet p {
  margin: 2px 0 0;
  color: var(--text-muted);
  font-size: 12.5px;
}

.nb-mobile-kit .m-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 16px 14px;
  border: 1px solid var(--border-default);
  border-radius: 14px;
  background: var(--bg-surface);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  padding: 11px 14px;
}

.nb-mobile-kit .m-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-primary);
  font: inherit;
  font-size: 13.5px;
}

.nb-mobile-kit .m-search button {
  flex: 0 0 auto;
  min-width: 52px;
  border: 1px solid var(--accent-primary-border);
  border-radius: 8px;
  background: var(--accent-primary);
  color: #fffaf0;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 800;
}

.nb-mobile-kit .m-search button:disabled {
  opacity: 0.6;
}

.nb-mobile-kit .m-search .m-voice-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 7px;
  border-color: var(--border-default);
  background: var(--bg-surface);
  color: var(--text-muted);
}

.nb-mobile-kit .m-search .m-voice-button[data-state="active"] {
  border-color: var(--accent-primary-border);
  background: var(--accent-primary-tint);
  color: var(--accent-ink);
}

.nb-mobile-kit .m-search kbd {
  border: 1px solid var(--border-subtle);
  border-radius: 3px;
  background: var(--bg-muted);
  color: var(--text-muted);
  padding: 1px 5px;
  font-family: var(--font-mono);
  font-size: 10px;
}

.nb-mobile-kit .m-offline-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: -4px 16px 16px;
}

.nb-mobile-kit .m-offline-proof span {
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--text-muted);
  padding: 3px 0;
  font-size: 10.5px;
  font-weight: 600;
}
.nb-mobile-kit .m-offline-proof span::before {
  content: "✓ ";
  color: var(--accent, #d97757);
  font-weight: 700;
}

.nb-mobile-kit .m-run-feedback {
  margin: -4px 16px 14px;
  border: 1px solid rgba(5, 150, 105, 0.18);
  border-radius: 8px;
  background: rgba(5, 150, 105, 0.08);
  color: var(--success);
  padding: 9px 10px;
  font-size: 11.5px;
  line-height: 1.35;
}

.nb-mobile-kit .m-section {
  margin-bottom: 18px;
  padding: 0 16px;
}

.nb-mobile-kit .m-section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.nb-mobile-kit .m-section-head a {
  color: var(--accent-ink);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.nb-mobile-kit .m-watch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.nb-mobile-kit .m-scenario-stack {
  display: grid;
  gap: 9px;
}

.nb-mobile-kit .m-scenario-card {
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: var(--bg-surface);
  padding: 11px 12px;
}

.nb-mobile-kit .m-scenario-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--text-faint);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.nb-mobile-kit .m-scenario-title {
  margin-top: 7px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 840;
  line-height: 1.2;
}

.nb-mobile-kit .m-scenario-card p {
  margin: 5px 0 9px;
  color: var(--text-muted);
  font-size: 11.5px;
  line-height: 1.35;
}

.nb-mobile-kit .m-scenario-card button {
  width: 100%;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  background: var(--bg-muted);
  color: var(--text-primary);
  padding: 8px 10px;
  font-size: 11.5px;
  font-weight: 800;
}

.nb-mobile-kit .m-scenario-card button:disabled {
  opacity: 0.6;
}

.nb-mobile-kit .m-public-memory-stack {
  display: grid;
  gap: 9px;
}

.nb-mobile-kit .m-public-memory-card {
  width: 100%;
  border: 1px solid var(--border-subtle);
  border-radius: 13px;
  background: var(--bg-surface);
  padding: 11px 12px;
  text-align: left;
  box-shadow: var(--shadow-sm);
}

.nb-mobile-kit .m-public-memory-card strong {
  display: block;
  color: var(--text-primary);
  font-size: 13px;
  line-height: 1.2;
}

.nb-mobile-kit .m-public-memory-card small {
  display: block;
  margin-top: 4px;
  color: var(--text-faint);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.nb-mobile-kit .m-public-memory-card p {
  margin: 8px 0;
  color: var(--text-muted);
  display: -webkit-box;
  font-size: 11.5px;
  line-height: 1.4;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.nb-mobile-kit .m-public-memory-card span {
  color: var(--accent-ink);
  font-size: 11px;
  font-weight: 800;
}

.nb-mobile-kit .m-watch-tile,
.nb-mobile-kit .m-nudge,
.nb-mobile-kit .m-thread,
.nb-mobile-kit .m-card,
.nb-mobile-kit .m-src-row,
.nb-mobile-kit .m-claim,
.nb-mobile-kit .m-stat,
.nb-mobile-kit .m-triad-card {
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: var(--bg-surface);
}

.nb-mobile-kit .m-watch-tile {
  padding: 10px 12px;
}

.nb-mobile-kit .m-watch-tile-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.nb-mobile-kit .m-watch-tile-avatar,
.nb-mobile-kit .m-card-avatar,
.nb-mobile-kit .m-inbox-row-avatar,
.nb-mobile-kit .m-me-avatar,
.nb-mobile-kit .m-me-ws-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fffaf0;
  font-family: var(--font-mono);
  font-weight: 800;
}

.nb-mobile-kit .m-watch-tile-avatar {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  font-size: 10px;
}

.nb-mobile-kit .m-watch-tile-name {
  font-size: 12.5px;
  font-weight: 800;
}

.nb-mobile-kit .m-watch-tile-ticker,
.nb-mobile-kit .m-watch-tile-meta,
.nb-mobile-kit .m-thread-meta,
.nb-mobile-kit .m-card-sub,
.nb-mobile-kit .m-src-meta {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.nb-mobile-kit .m-watch-tile-ticker {
  margin-left: auto;
}

.nb-mobile-kit .m-watch-tile-val {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.nb-mobile-kit .m-watch-tile-val strong {
  font-size: 16px;
}

.nb-mobile-kit .delta[data-trend="up"],
.nb-mobile-kit [data-trend="up"] {
  color: var(--success);
}

.nb-mobile-kit .delta[data-trend="down"],
.nb-mobile-kit [data-trend="down"] {
  color: var(--warning);
}

.nb-mobile-kit .m-nudges,
.nb-mobile-kit .m-threads,
.nb-mobile-kit .m-inbox-list,
.nb-mobile-kit .m-me-ws-list,
.nb-mobile-kit .m-me-settings {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nb-mobile-kit .m-nudge,
.nb-mobile-kit .m-thread {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
}

.nb-mobile-kit .m-nudge-icon,
.nb-mobile-kit .m-thread-icon,
.nb-mobile-kit .m-me-setting-icon {
  display: flex;
  width: 28px;
  height: 28px;
  flex: none;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: var(--accent-tint);
  color: var(--accent-ink);
}

.nb-mobile-kit .m-nudge-title,
.nb-mobile-kit .m-thread-title,
.nb-mobile-kit .m-card-name,
.nb-mobile-kit .m-src-title {
  color: var(--text-primary);
  font-size: 12.5px;
  font-weight: 750;
  line-height: 1.35;
}

.nb-mobile-kit .m-nudge-meta {
  display: flex;
  gap: 8px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.nb-mobile-kit .m-chat-body,
.nb-mobile-kit .m-brief-body,
.nb-mobile-kit .m-src-body {
  padding: 14px 16px 84px;
}

.nb-mobile-kit .m-chat-body {
  padding-bottom: 126px;
}

.nb-mobile-kit .m-chat-title {
  margin: 10px 0;
  font-size: 20px;
  line-height: 1.25;
}

.nb-mobile-kit .m-chat-p,
.nb-mobile-kit .m-notebook-p {
  color: var(--text-primary);
  font-family: var(--font-serif);
  font-size: 14.5px;
  line-height: 1.62;
}

.nb-mobile-kit .m-chat-callout {
  margin: 12px 0;
  border: 1px solid var(--accent-border);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  background: var(--accent-tint);
  padding: 10px 12px;
}

.nb-mobile-kit .m-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin: 0 -16px;
  padding: 0 16px 4px;
}

.nb-mobile-kit .m-strip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0 8px;
}

.nb-mobile-kit .m-strip-head a {
  flex: none;
  color: var(--accent-ink);
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.nb-mobile-kit .m-card {
  flex: 0 0 220px;
  padding: 11px 13px;
}

.nb-mobile-kit .m-card-head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 6px;
}

.nb-mobile-kit .m-card-avatar {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-size: 11px;
}

.nb-mobile-kit .m-card-metrics,
.nb-mobile-kit .m-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.nb-mobile-kit .m-card-metric-l,
.nb-mobile-kit .m-stat-l {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-transform: uppercase;
}

.nb-mobile-kit .m-card-metric-v,
.nb-mobile-kit .m-stat-v {
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 800;
}

.nb-mobile-kit .m-src-row {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
  padding: 10px 12px;
}

.nb-mobile-kit .m-followups {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin: 0 -16px;
  padding: 12px 16px;
}

.nb-mobile-kit .m-pipeline-block {
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  background: var(--bg-surface);
  padding: 10px;
  margin-bottom: 12px;
}

.nb-mobile-kit .m-pipeline-block-minimal {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0 12px;
  margin-bottom: 14px;
}

.nb-mobile-kit .m-report-runtime-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 720;
}

.nb-mobile-kit .m-report-runtime-actions {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 4px;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  background: var(--bg-muted);
  padding: 3px;
}

.nb-mobile-kit .m-report-runtime-actions button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  padding: 5px 8px;
  font-size: 10.5px;
  font-weight: 820;
}

.nb-mobile-kit .m-report-runtime-actions button[data-active="true"] {
  background: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.nb-mobile-kit .m-pipeline-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nb-mobile-kit .m-pipeline-block .nb-surface-card {
  border-radius: 12px;
  box-shadow: none;
  padding: 12px;
}

.nb-mobile-kit .m-pipeline-block .grid {
  grid-template-columns: minmax(0, 1fr);
}

.nb-mobile-kit .m-pipeline-block .max-w-\[55\%\] {
  max-width: 100%;
}

.nb-mobile-kit .m-pipeline-block [data-testid="pipeline-launcher-spec"] {
  min-height: 72px;
}

.nb-mobile-kit .m-pipeline-block [data-testid="pipeline-run-list"] {
  max-height: 300px;
  overflow-y: auto;
  padding-right: 2px;
}

.nb-mobile-kit .m-pipeline-block [data-testid="pipeline-eval-by-kind"] {
  overflow-x: auto;
}

.nb-mobile-kit .m-report-cards-section {
  margin-top: 14px;
}

.nb-mobile-kit .m-report-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nb-mobile-kit .m-report-row {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: var(--bg-surface);
  color: inherit;
  padding: 10px;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.nb-mobile-kit .m-report-row-avatar {
  display: inline-flex;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  color: #fffaf0;
  font-size: 13px;
  font-weight: 850;
}

.nb-mobile-kit .m-report-row-main {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 3px;
}

.nb-mobile-kit .m-report-row-title {
  overflow: hidden;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 820;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nb-mobile-kit .m-report-row-summary {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 11.5px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.nb-mobile-kit .m-report-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 9.5px;
}

.nb-mobile-kit .m-report-row-meta span {
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  background: var(--bg-muted);
  padding: 2px 6px;
}

.nb-mobile-kit .m-followup {
  flex: none;
  border: 1px solid var(--border-default);
  border-radius: 999px;
  background: var(--bg-surface);
  color: var(--text-secondary);
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
}

.nb-mobile-kit .m-composer-dock {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 72px);
  z-index: 42;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border-default);
  border-radius: 14px;
  background: var(--bg-surface);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1), 0 2px 6px rgba(15, 23, 42, 0.05);
  padding: 8px 10px;
}

.nb-mobile-kit .m-chat-body .m-composer-dock {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 72px);
  margin-top: 0;
}

.nb-mobile-kit .m-composer-dock input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 13px;
}

.nb-mobile-kit .m-composer-send {
  display: flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
}

.nb-mobile-kit .m-brief-title {
  font-size: 22px;
  line-height: 1.18;
}

.nb-mobile-kit .m-brief-sub {
  margin: 8px 0 12px;
  color: var(--text-muted);
  font-family: var(--font-serif);
  font-size: 12.5px;
  line-height: 1.5;
}

.nb-mobile-kit .m-brief-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 16px;
}

.nb-mobile-kit .m-verdict {
  margin-bottom: 16px;
  border: 1px solid var(--accent-border);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff8f2, #fffaf5);
  padding: 14px;
}

.nb-mobile-kit .m-verdict h2 {
  margin: 4px 0 6px;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 800;
}

.nb-mobile-kit .m-triad {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.nb-mobile-kit .m-triad-card {
  border-left: 3px solid var(--accent);
  padding: 12px 14px;
}

.nb-mobile-kit .m-h3 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 16px 0 10px;
  font-size: 14px;
  font-weight: 800;
}

.nb-mobile-kit .m-timeline-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 0;
}

.nb-mobile-kit .m-timeline-date {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.nb-mobile-kit .m-notebook-body {
  min-height: 100%;
  background: var(--bg-notebook);
  padding: 14px 18px 84px;
}

.nb-mobile-kit .m-notebook-title {
  font-size: 24px;
  line-height: 1.12;
}

.nb-mobile-kit .m-notebook-h2 {
  margin: 18px 0 6px;
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 800;
}

.nb-mobile-kit .m-notebook-proposal,
.nb-mobile-kit .m-claim-block {
  margin: 12px 0;
  border: 1px solid var(--accent-border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  background: rgba(217, 119, 87, 0.04);
  padding: 10px 12px;
}

.nb-mobile-kit .m-inbox-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: 0 14px 10px;
}

.nb-mobile-kit .m-inbox-tab {
  border: 1px solid var(--border-default);
  border-radius: 999px;
  background: var(--bg-surface);
  color: var(--text-secondary);
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 700;
}

.nb-mobile-kit .m-inbox-tab[data-active="true"] {
  border-color: #111827;
  background: #111827;
  color: #fffaf0;
}

.nb-mobile-kit .m-inbox-section-head,
.nb-mobile-kit .m-me-section-head {
  padding: 10px 14px 6px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nb-mobile-kit .m-inbox-row,
.nb-mobile-kit .m-me-ws-row,
.nb-mobile-kit .m-me-setting-row {
  display: flex;
  gap: 10px;
  border: 0;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: 11px 14px 13px;
  text-align: left;
}

.nb-mobile-kit .m-inbox-row-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 12px;
}

.nb-mobile-kit .m-inbox-row-title,
.nb-mobile-kit .m-me-name,
.nb-mobile-kit .m-me-ws-name,
.nb-mobile-kit .m-me-setting-label {
  color: var(--text-primary);
  font-size: 13.5px;
  font-weight: 800;
}

.nb-mobile-kit .m-inbox-row-snippet,
.nb-mobile-kit .m-me-email,
.nb-mobile-kit .m-me-ws-meta,
.nb-mobile-kit .m-me-setting-value {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.4;
}

.nb-mobile-kit .m-me-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 14px 18px;
}

.nb-mobile-kit .m-me-avatar {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  font-size: 17px;
}

.nb-mobile-kit .m-me-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-muted);
  padding: 12px 0;
}

.nb-mobile-kit .m-me-stat {
  border-right: 1px solid var(--border-subtle);
  padding: 4px 6px;
  text-align: center;
}

.nb-mobile-kit .m-me-stat-v {
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 800;
}

.nb-mobile-kit .m-me-stat-l {
  color: var(--text-muted);
  font-size: 10.5px;
}

.nb-mobile-kit .m-me-ws-avatar {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  font-size: 11.5px;
}

.m-tabbar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  width: 100%;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  background: rgba(255, 255, 255, 0.94);
  padding: 6px 6px calc(env(safe-area-inset-bottom, 0px) + 6px);
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
}

.dark .m-tabbar {
  border-top-color: rgba(255, 255, 255, 0.08);
  background: rgba(12, 15, 20, 0.94);
  box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.42);
}

.m-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #9ca3af;
  padding: 8px 4px;
  transition: color 180ms var(--ease-out-expo), background 180ms var(--ease-out-expo);
}

.m-tab[data-active="true"] {
  color: #ad5f45;
}

.dark .m-tab {
  color: rgba(255, 255, 255, 0.54);
}

.dark .m-tab[data-active="true"] {
  color: #f0a890;
}

.m-tab-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.m-tab-badge {
  position: absolute;
  top: 4px;
  right: calc(50% - 18px);
  border-radius: 999px;
  background: #d97757;
  color: #fff;
  padding: 1px 5px;
  font-size: 8.5px;
  font-weight: 800;
}

.m-fab {
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: #d97757;
  color: #fff;
  box-shadow: 0 10px 28px rgba(217, 119, 87, 0.34), 0 2px 8px rgba(15, 23, 42, 0.12);
}

.ws-kit {
  height: 100dvh;
  background: #f5f2ee;
  color: #111827;
  overflow: hidden;
}

.ws-kit .ws-shell {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
}

.ws-kit .ws-header {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  background: rgba(255, 255, 255, 0.86);
  padding: 0 18px;
  backdrop-filter: blur(18px);
}

.ws-kit .ws-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

.ws-kit .ws-logo,
.ws-kit .ws-chip-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fffaf0;
  font-family: var(--font-mono);
  font-weight: 800;
}

.ws-kit .ws-logo {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: #d97757;
}

.ws-kit .ws-entity-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 999px;
  background: #fff;
  padding: 6px 10px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.ws-kit .ws-chip-icon {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: #1a365d;
  font-size: 10px;
}

.ws-kit .ws-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  border-radius: 10px;
  background: #f5f4f1;
  padding: 4px;
}

.ws-kit .ws-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #6b7280;
  padding: 7px 10px;
  font-size: 12.5px;
  font-weight: 700;
}

.ws-kit .ws-tab[data-active="true"] {
  background: #fff;
  color: #111827;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.ws-kit .ws-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  min-height: 0;
}

.ws-kit .ws-content {
  overflow-y: auto;
}

.ws-kit .ws-aside {
  overflow-y: auto;
  border-left: 1px solid rgba(15, 23, 42, 0.06);
  background: #fafaf7;
  padding: 18px;
}

.ws-kit .ws-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 24px 48px;
}

.ws-kit .ws-kicker {
  color: #6b7280;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.ws-kit .ws-title {
  margin: 7px 0 18px;
  color: #111827;
  font-size: 30px;
  font-weight: 760;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

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

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

.ws-kit .ws-panel,
.ws-kit .ws-card {
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.ws-kit .ws-panel {
  padding: 18px;
}

.ws-kit .ws-card {
  min-height: 210px;
  padding: 16px;
}

.ws-kit .ws-card h3,
.ws-kit .ws-panel h2 {
  margin: 0;
  color: #111827;
  font-size: 16px;
  font-weight: 800;
}

.ws-kit .ws-card p,
.ws-kit .ws-panel p {
  color: #6b7280;
  font-size: 14px;
  line-height: 1.65;
}

.ws-kit .ws-metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.ws-kit .ws-metric {
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 8px;
  background: #f5f4f1;
  padding: 12px;
}

.ws-kit .ws-metric strong {
  display: block;
  color: #111827;
  font-family: var(--font-mono);
  font-size: 22px;
}

.ws-kit .ws-note-paper {
  min-height: 600px;
  border: 1px solid rgba(217, 119, 87, 0.16);
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(217, 119, 87, 0.08) 1px, transparent 1px) 64px 0 / 1px 100% no-repeat,
    repeating-linear-gradient(0deg, transparent 0, transparent 31px, rgba(217, 119, 87, 0.06) 32px),
    #fffcf6;
  box-shadow: 0 18px 60px rgba(40, 30, 20, 0.1);
  padding: 34px 42px 34px 88px;
}

.ws-kit .ws-note-paper h2 {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: 30px;
}

.ws-kit .ws-source-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  padding: 13px 0;
}

.ws-kit .ws-chat-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: calc(100dvh - 58px);
}

.ws-kit .ws-chat-rail {
  border-right: 1px solid rgba(15, 23, 42, 0.06);
  background: #f5f4f1;
  padding: 14px;
}

.ws-kit .ws-chat-thread {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 0;
}

.ws-kit .ws-chat-scroll {
  overflow-y: auto;
  padding: 24px;
}

.ws-kit .ws-chat-turn {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  max-width: 760px;
  margin: 0 auto 18px;
}

.ws-kit .ws-chat-avatar {
  display: flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: #d97757;
  color: #fffaf0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
}

.ws-kit .ws-chat-composer {
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  background: rgba(250, 248, 245, 0.9);
  padding: 14px 24px 18px;
}

.ws-kit .ws-chat-field {
  display: flex;
  max-width: 760px;
  margin: 0 auto;
  gap: 8px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 14px;
  background: #fff;
  padding: 8px 8px 8px 14px;
}

.ws-kit .ws-chat-field textarea {
  flex: 1;
  min-height: 30px;
  max-height: 160px;
  border: 0;
  outline: 0;
  resize: none;
  color: #111827;
  font: inherit;
}

.ws-kit .ws-map {
  width: 100%;
  min-height: 560px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 12px;
  background: #fbf9f6;
}

@media (max-width: 900px) {
  .nb-kit .nb-first-board-head,
  .nb-kit .nb-first-grid,
  .nb-kit .nb-prompt-grid,
  .nb-kit .nb-reports-grid,
  .nb-kit .nb-sources-grid,
  .ws-kit .ws-grid,
  .ws-kit .ws-grid-3,
  .ws-kit .ws-main,
  .ws-kit .ws-chat-shell {
    grid-template-columns: 1fr;
  }

  .nb-kit .nb-me-grid {
    grid-template-columns: 1fr;
  }

  .nb-kit .nb-first-tabs {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .ws-kit .ws-tabs {
    display: none;
  }

  .ws-kit .ws-aside {
    display: none;
  }
}

/* Workspace exact kit parity overrides */
.ws-kit {
  --accent: #d97757;
  --accent-hover: #c76648;
  --accent-tint: rgba(217, 119, 87, 0.1);
  --accent-border: rgba(217, 119, 87, 0.24);
  --accent-ink: #ad5f45;
  --indigo: #5e6ad2;
  --indigo-tint: rgba(94, 106, 210, 0.08);
  --indigo-border: rgba(94, 106, 210, 0.22);
  --bg-app: #fbf9f6;
  --bg-canvas: #f5f2ee;
  --bg-surface: #ffffff;
  --bg-muted: #f5f4f1;
  --bg-notebook: #fffcf6;
  --bg-inspector: #fafaf7;
  --text-primary: #111827;
  --text-secondary: #374151;
  --text-muted: #6b7280;
  --text-faint: #9ca3af;
  --border-subtle: rgba(15, 23, 42, 0.06);
  --border-default: rgba(15, 23, 42, 0.1);
  --border-strong: rgba(15, 23, 42, 0.16);
  --success: #047857;
  --success-tint: rgba(4, 120, 87, 0.08);
  --warn: #b45309;
  --warn-tint: rgba(180, 83, 9, 0.08);
  --fail: #b91c1c;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 1px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 8px 22px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 48px rgba(15, 23, 42, 0.12), 0 4px 10px rgba(15, 23, 42, 0.06);
  --radius-md: 10px;
  --radius-lg: 14px;
  background: var(--bg-canvas);
}

.ws-kit .ws-shell {
  display: grid;
  grid-template-rows: auto 1fr;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg-app);
  color: var(--text-primary);
}

.ws-kit .ws-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 52px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.85);
  padding: 10px 20px;
  backdrop-filter: blur(14px);
}

.ws-kit .ws-brand,
.ws-kit .ws-entity,
.ws-kit .ws-tab,
.ws-kit .chat-history-item,
.ws-kit .chat-strip-more,
.ws-kit .brief-toc-item,
.ws-kit .brief-receipt,
.ws-kit .cc,
.ws-kit .sources-claim,
.ws-kit .sources-row {
  border: 0;
  font-family: inherit;
  text-align: left;
}

.ws-kit .ws-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-primary);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.ws-kit .ws-brand em {
  color: var(--accent);
  font-style: normal;
}

.ws-kit .ws-logo {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: var(--accent);
  color: #fffaf0;
  font-size: 11px;
}

.ws-kit .ws-entity {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  background: var(--bg-surface);
  padding: 4px 12px;
  box-shadow: var(--shadow-xs);
}

.ws-kit .ws-entity-avatar {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  background: linear-gradient(135deg, #1a365d, #0f4c81);
  color: #fffaf0;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
}

.ws-kit .ws-entity-name {
  font-size: 13px;
  font-weight: 600;
}

.ws-kit .ws-entity-meta {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

.ws-kit .ws-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  border-radius: 10px;
  background: var(--bg-muted);
  padding: 2px;
}

.ws-kit .ws-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 7px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  padding: 6px 14px;
  transition: all 180ms var(--ease-out-expo);
}

.ws-kit .ws-tab[data-active="true"] {
  background: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: var(--shadow-xs);
  font-weight: 600;
}

.ws-kit .ws-tab-count {
  border-radius: 999px;
  background: var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
}

.ws-kit .ws-tab[data-active="true"] .ws-tab-count {
  background: var(--accent-tint);
  color: var(--accent-ink);
}

.ws-kit .ws-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ws-kit .ws-icon-btn {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: var(--bg-surface);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 160ms var(--ease-out-expo);
}

.ws-kit .ws-icon-btn:hover {
  border-color: var(--border-default);
  background: var(--bg-muted);
  color: var(--text-primary);
}

.ws-kit .ws-body {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 0;
  overflow: hidden;
}

.ws-kit .ws-body[data-has-inspector="true"] {
  grid-template-columns: minmax(0, 1fr) 360px;
}

.ws-kit .ws-main {
  position: relative;
  display: block;
  min-height: 0;
  overflow-y: auto;
}

.ws-kit .ws-inspector {
  display: flex;
  min-height: 0;
  flex-direction: column;
  border-left: 1px solid var(--border-subtle);
  background: var(--bg-inspector);
  overflow-y: auto;
}

.ws-kit .ws-inspector-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-inspector);
  padding: 16px 18px 12px;
}

.ws-kit .ws-inspector-kicker,
.ws-kit .kicker {
  color: var(--text-muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ws-kit .ws-inspector-title {
  margin: 3px 0 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ws-kit .ws-inspector-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 14px 18px 40px;
}

.ws-kit .ws-insp-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ws-kit .ws-insp-section h4 {
  margin: 0;
  color: var(--text-muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ws-kit .ws-insp-section p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 12.5px;
  line-height: 1.55;
}

.ws-kit .ws-insp-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
}

.ws-kit .pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.005em;
  padding: 2px 9px;
}

.ws-kit .pill-neutral {
  border-color: var(--border-subtle);
  background: var(--bg-muted);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
}

.ws-kit .pill-accent {
  border-color: var(--accent-border);
  background: var(--accent-tint);
  color: var(--accent-ink);
}

.ws-kit .pill-ok {
  border-color: rgba(4, 120, 87, 0.2);
  background: var(--success-tint);
  color: var(--success);
}

.ws-kit .pill-warn {
  border-color: rgba(180, 83, 9, 0.2);
  background: var(--warn-tint);
  color: var(--warn);
}

.ws-kit .ent-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--indigo-border);
  border-radius: 5px;
  background: var(--indigo-tint);
  color: var(--indigo);
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  padding: 1px 7px 1px 4px;
  vertical-align: baseline;
}

.ws-kit .ent-chip-dot {
  display: inline-flex;
  width: 14px;
  height: 14px;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  background: linear-gradient(135deg, #1a365d, #0f4c81);
  color: #fffaf0;
  font-size: 8px;
  font-weight: 800;
}

.ws-kit .ent-chip-dot--green { background: linear-gradient(135deg, #0e7a5c, #16a37e); }
.ws-kit .ent-chip-dot--amber { background: linear-gradient(135deg, #c77826, #e09149); }
.ws-kit .ent-chip-dot--purple { background: linear-gradient(135deg, #6b3ba3, #8b5cc1); }

.ws-kit .cite {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent-border);
  border-radius: 3px;
  background: var(--accent-tint);
  color: var(--accent-ink);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 1px;
  min-width: 19px;
  padding: 1px 5px;
  vertical-align: baseline;
}

.ws-kit .cc {
  display: flex;
  width: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  color: var(--text-primary);
  cursor: pointer;
  transition: box-shadow 180ms var(--ease-out-expo), transform 180ms var(--ease-out-expo);
}

.ws-kit .cc:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.ws-kit .cc[data-active="true"] {
  border-color: var(--accent-border);
  box-shadow: 0 0 0 3px var(--accent-tint), var(--shadow-sm);
}

.ws-kit .cc-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 14px 10px;
}

.ws-kit .cc-avatar {
  display: inline-flex;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: #fffaf0;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
}

.ws-kit .cc-main {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.ws-kit .cc-title {
  color: var(--text-primary);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.ws-kit .cc-subtitle {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.ws-kit .cc-kicker {
  border-radius: 999px;
  background: var(--bg-muted);
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
}

.ws-kit .cc-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 14px;
  padding: 12px 14px;
}

.ws-kit .cc-metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ws-kit .cc-metric-label {
  color: var(--text-muted);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ws-kit .cc-metric-val {
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
}

.ws-kit .cc-metric-val[data-trend="up"] { color: var(--success); }
.ws-kit .cc-metric-val[data-trend="down"] { color: var(--fail); }

.ws-kit .cc-footer {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 8px 14px;
}

.ws-kit .chat-layout {
  position: relative;
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
  min-height: 100%;
}

.ws-kit .chat-history {
  position: sticky;
  top: 0;
  display: flex;
  max-height: 100%;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  border-right: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.4);
  padding: 16px 10px 100px;
}

.ws-kit .chat-history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px 8px;
}

.ws-kit .chat-history-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ws-kit .chat-history-item {
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px 10px;
  transition: background 140ms var(--ease-out-expo);
}

.ws-kit .chat-history-item:hover {
  background: rgba(15, 23, 42, 0.04);
}

.ws-kit .chat-history-item[data-active="true"] {
  background: var(--accent-tint);
  box-shadow: inset 2px 0 0 var(--accent);
}

.ws-kit .chat-history-title {
  overflow: hidden;
  color: var(--text-primary);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ws-kit .chat-history-meta {
  margin-top: 2px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.ws-kit .chat-answer {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 28px 36px 180px;
}

.ws-kit .chat-query {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 18px;
}

.ws-kit .chat-query-user {
  display: flex;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #d97757, #5e6ad2);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
}

.ws-kit .chat-query-text {
  padding-top: 3px;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.4;
}

.ws-kit .chat-runbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  padding: 8px 0;
}

.ws-kit .chat-run-actions {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.ws-kit .chat-body {
  color: var(--text-primary);
  font-size: 15.5px;
  line-height: 1.65;
}

.ws-kit .chat-title {
  margin: 0 0 18px;
  background: linear-gradient(180deg, #111827 78%, #374151 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.ws-kit .chat-body p {
  margin: 0 0 14px;
}

.ws-kit .chat-callout {
  margin: 18px 0 22px;
  border: 1px solid var(--accent-border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(217, 119, 87, 0.05), rgba(217, 119, 87, 0.02));
  padding: 14px 16px;
}

.ws-kit .chat-callout-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  color: var(--accent-ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ws-kit .chat-callout p {
  margin: 0;
}

.ws-kit .chat-strip,
.ws-kit .chat-sources {
  margin: 24px 0;
}

.ws-kit .chat-strip-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}

.ws-kit .chat-strip-more {
  background: transparent;
  color: var(--accent-ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

.ws-kit .chat-strip-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.ws-kit .chat-sources-list {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
}

.ws-kit .chat-source-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 12px;
  border: 0;
  border-bottom: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  font-size: 12.5px;
  padding: 9px 14px;
  text-align: left;
}

.ws-kit .chat-source-row:last-child {
  border-bottom: 0;
}

.ws-kit .chat-source-title {
  overflow: hidden;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ws-kit .chat-source-meta {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

.ws-kit .chat-followups {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 18px 0 40px;
}

.ws-kit .chat-followup {
  border: 1px solid var(--border-default);
  border-radius: 999px;
  background: var(--bg-surface);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 500;
  padding: 7px 13px;
}

.ws-kit .chat-composer {
  position: absolute;
  z-index: 20;
  pointer-events: none;
}

.ws-kit .chat-composer > * {
  pointer-events: auto;
}

.ws-kit .chat-composer--dock {
  right: 0;
  bottom: 0;
  left: 208px;
  background: linear-gradient(180deg, transparent, rgba(251, 249, 246, 0.92) 30%, var(--bg-app));
  padding: 18px 36px 22px;
}

.ws-kit .composer {
  max-width: 820px;
  margin: 0 auto;
  border: 1px solid var(--border-default);
  border-radius: 14px;
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
  padding: 9px 10px;
}

.ws-kit .composer-input {
  width: 100%;
  min-height: 32px;
  border: 0;
  outline: 0;
  resize: none;
  color: var(--text-primary);
  font: inherit;
}

.ws-kit .composer-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.ws-kit .composer-tool-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  background: var(--bg-muted);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 10px;
}

.ws-kit .composer-tool-btn[data-active="true"] {
  border-color: var(--accent-border);
  background: var(--accent-tint);
  color: var(--accent-ink);
}

.ws-kit .composer-submit {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #fffaf0;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(217, 119, 87, 0.24);
}

.ws-kit .brief-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 100%;
}

.ws-kit .brief-toc {
  position: sticky;
  top: 0;
  display: flex;
  max-height: 100%;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
  border-right: 1px solid var(--border-subtle);
  padding: 24px 16px;
}

.ws-kit .brief-toc-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ws-kit .brief-toc-item {
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 500;
  padding: 6px 10px;
}

.ws-kit .brief-toc-item[data-active="true"] {
  background: var(--accent-tint);
  color: var(--accent-ink);
  box-shadow: inset 2px 0 0 var(--accent);
  font-weight: 600;
}

.ws-kit .brief-health {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  padding: 12px;
}

.ws-kit .brief-health-row {
  display: grid;
  grid-template-columns: 1fr 60px;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 11.5px;
}

.ws-kit .brief-meter {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--border-subtle);
}

.ws-kit .brief-meter > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--success);
}

.ws-kit .brief-meter[data-warn="true"] > span {
  background: var(--warn);
}

.ws-kit .brief-main {
  width: 100%;
  max-width: 860px;
  padding: 32px 56px 80px;
}

.ws-kit .brief-header {
  margin-bottom: 28px;
}

.ws-kit .brief-title {
  margin: 4px 0 10px;
  color: var(--text-primary);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.ws-kit .brief-sub {
  max-width: 640px;
  margin: 0 0 14px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
}

.ws-kit .brief-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.ws-kit .brief-exec {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #fff 0%, #fefbf6 100%);
  box-shadow: var(--shadow-sm);
  padding: 24px;
}

.ws-kit .brief-exec::before {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 0% 0%, var(--accent-tint), transparent 50%);
  content: "";
  pointer-events: none;
}

.ws-kit .brief-exec > * {
  position: relative;
}

.ws-kit .brief-exec-verdict h2 {
  margin: 6px 0 8px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ws-kit .brief-exec-verdict p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.ws-kit .brief-exec-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.ws-kit .brief-stat {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  color: var(--text-primary);
  cursor: pointer;
  padding: 10px 12px;
}

.ws-kit .brief-stat-val,
.ws-kit .brief-receipt-val {
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.ws-kit .brief-stat-val {
  font-size: 20px;
}

.ws-kit .brief-stat-val[data-trend="up"],
.ws-kit .brief-receipt-val[data-trend="up"] { color: var(--success); }
.ws-kit .brief-stat-val[data-trend="down"],
.ws-kit .brief-receipt-val[data-trend="down"] { color: var(--fail); }

.ws-kit .brief-stat-label,
.ws-kit .brief-receipt-label {
  color: var(--text-muted);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ws-kit .brief-triad,
.ws-kit .brief-receipts {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}

.ws-kit .brief-triad {
  grid-template-columns: repeat(3, 1fr);
}

.ws-kit .brief-triad-card,
.ws-kit .brief-receipt,
.ws-kit .brief-nudge {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
}

.ws-kit .brief-triad-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
}

.ws-kit .brief-triad-title {
  margin-top: 2px;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.ws-kit .brief-triad-body {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.55;
}

.ws-kit .brief-h3 {
  margin: 32px 0 12px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.ws-kit .brief-receipts {
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.ws-kit .brief-receipt {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  padding: 12px;
}

.ws-kit .brief-receipt-val {
  margin-top: 3px;
  font-size: 17px;
}

.ws-kit .brief-receipt-src {
  margin-top: 3px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.ws-kit .brief-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 20px;
}

.ws-kit .brief-timeline::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 5px;
  width: 1px;
  background: var(--border-subtle);
  content: "";
}

.ws-kit .brief-event {
  position: relative;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 6px 0;
}

.ws-kit .brief-event-dot {
  position: absolute;
  top: 11px;
  left: -19px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--border-default);
  border-radius: 50%;
  background: var(--bg-surface);
}

.ws-kit .brief-event-dot.is-accent {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-tint);
}

.ws-kit .brief-event-date {
  padding-top: 3px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

.ws-kit .brief-event-title,
.ws-kit .brief-nudge-title {
  color: var(--text-primary);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.ws-kit .brief-event-meta,
.ws-kit .brief-nudge-meta {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 12px;
}

.ws-kit .brief-nudges {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ws-kit .brief-nudge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
}

.ws-kit .brief-nudge-dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent);
}

.ws-kit .brief-nudge .ws-icon-btn {
  margin-left: auto;
}

.ws-kit .brief-footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 40px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
}

.ws-kit .brief-footer-meta {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

.ws-kit .cards-layout {
  display: flex;
  height: 100%;
  min-height: 0;
  flex-direction: column;
}

.ws-kit .cards-breadcrumb {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.6);
  padding: 14px 24px;
  backdrop-filter: blur(10px);
}

.ws-kit .cards-crumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  background: var(--bg-surface);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 600;
  padding: 4px 10px;
}

.ws-kit .cards-crumb-kicker {
  color: var(--text-muted);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ws-kit .cards-actions {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.ws-kit .cards-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  flex: 1;
  min-height: 0;
  overflow-x: auto;
}

.ws-kit .cards-col {
  display: flex;
  min-height: 0;
  min-width: 260px;
  flex-direction: column;
  border-right: 1px solid var(--border-subtle);
}

.ws-kit .cards-col:last-child {
  border-right: 0;
}

.ws-kit .cards-col-head {
  position: sticky;
  top: 0;
  z-index: 2;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.5);
  padding: 16px 18px 10px;
}

.ws-kit .cards-col-sub {
  margin-top: 2px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

.ws-kit .cards-col-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding: 14px 18px 40px;
}

.ws-kit .cards-blank {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px dashed var(--border-default);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 500;
  padding: 24px;
}

.ws-kit .nb-layout {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  min-height: 100%;
  background: linear-gradient(180deg, var(--bg-notebook), #fdfbf6);
}

.ws-kit .nb-block-gutter {
  position: relative;
  border-right: 1px dashed rgba(15, 23, 42, 0.04);
}

.ws-kit .nb-handle-row {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 3px;
  padding-top: 20px;
  opacity: 0.65;
}

.ws-kit .nb-handle {
  display: flex;
  width: 18px;
  height: 20px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--text-faint);
  cursor: grab;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.ws-kit .nb-handle-plus {
  color: var(--accent);
}

.ws-kit .nb-doc {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 40px 64px 120px;
}

.ws-kit .nb-doc-head {
  margin-bottom: 28px;
}

.ws-kit .nb-crumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  color: var(--text-muted);
  font-size: 11.5px;
}

.ws-kit .nb-title {
  margin: 0 0 10px;
  color: var(--text-primary);
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.ws-kit .nb-title-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ws-kit .nb-save-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  background: var(--bg-muted);
  color: var(--text-muted);
  font-size: 11px;
  padding: 4px 10px 4px 8px;
}

.ws-kit .nb-save-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 2px rgba(4, 120, 87, 0.16);
}

.ws-kit .nb-rich-editor {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: var(--shadow-sm);
  padding: 18px 22px;
}

.ws-kit .nb-claim {
  margin: 18px 0;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #fffdf8, #fffbf1);
  padding: 14px 16px;
}

.ws-kit .nb-claim-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  color: var(--accent);
}

.ws-kit .nb-claim-status {
  margin-left: auto;
}

.ws-kit .nb-claim-body {
  margin-bottom: 10px;
  color: var(--text-primary);
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.45;
}

.ws-kit .nb-claim-evidence {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ws-kit .nb-claim-ev {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 5px;
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 12.5px;
  padding: 5px 8px;
}

.ws-kit .sources-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 36px 80px;
}

.ws-kit .sources-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.ws-kit .sources-title {
  margin: 4px 0 0;
  color: var(--text-primary);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ws-kit .sources-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  border-radius: 10px;
  background: var(--bg-muted);
  padding: 4px;
}

.ws-kit .sources-filter {
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  text-transform: lowercase;
}

.ws-kit .sources-filter[data-active="true"] {
  background: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: var(--shadow-xs);
  font-weight: 600;
}

.ws-kit .sources-sep {
  width: 1px;
  height: 20px;
  margin: 0 4px;
  background: var(--border-default);
}

.ws-kit .sources-section {
  margin-bottom: 28px;
}

.ws-kit .sources-claims {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.ws-kit .sources-claim {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  color: var(--text-primary);
  cursor: pointer;
  padding: 12px 14px;
}

.ws-kit .sources-claim[data-expanded="true"] {
  border-color: var(--accent-border);
  box-shadow: 0 0 0 3px var(--accent-tint);
}

.ws-kit .sources-claim-text {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.45;
}

.ws-kit .sources-claim-support,
.ws-kit .sources-claim-refs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.ws-kit .sources-claim-toggle {
  margin-left: auto;
  color: var(--text-faint);
  font-size: 10.5px;
}

.ws-kit .sources-domain {
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  background: var(--bg-muted);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 1px 7px;
}

.ws-kit .sources-table {
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
}

.ws-kit .sources-table-head,
.ws-kit .sources-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 2.5fr) 80px 50px 90px 100px;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
}

.ws-kit .sources-table-head {
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-muted);
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ws-kit .sources-row {
  width: 100%;
  border-bottom: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  font-size: 12.5px;
}

.ws-kit .sources-row:last-child {
  border-bottom: 0;
}

.ws-kit .sources-row-title {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.ws-kit .sources-row-name {
  overflow: hidden;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ws-kit .sources-row-domain {
  margin-top: 2px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.ws-kit .sources-trust {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--border-subtle);
}

.ws-kit .sources-trust > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #e59579);
}

.ws-kit .map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 16px;
  height: 100%;
  min-height: 0;
  background: radial-gradient(ellipse at top, rgba(255, 253, 248, 0.6), transparent 60%), #f4efe7;
  padding: 16px 20px 20px;
}

.ws-kit .map-canvas,
.ws-kit .map-panel {
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  background: #faf8f5;
  box-shadow: var(--shadow-sm);
}

.ws-kit .map-canvas {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.ws-kit .map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 42px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.6);
  padding: 10px 14px;
}

.ws-kit .map-toolbar-l,
.ws-kit .map-toolbar-r {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ws-kit .map-kind-filter {
  display: inline-flex;
  gap: 2px;
  border-radius: 9px;
  background: #efeae0;
  padding: 3px;
}

.ws-kit .map-kind-btn,
.ws-kit .map-recenter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
}

.ws-kit .map-kind-btn[data-active="true"] {
  background: #faf8f5;
  color: var(--text-primary);
  box-shadow: var(--shadow-xs);
}

.ws-kit .map-kind-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.ws-kit .map-recenter {
  border: 1px solid var(--border-subtle);
  border-radius: 7px;
  background: #fffaf0;
  color: var(--text-secondary);
}

.ws-kit .map-svg-wrap {
  position: relative;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}

.ws-kit .map-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.ws-kit .map-help {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.55);
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 8px 14px;
}

.ws-kit .map-help kbd {
  margin: 0 3px;
  border: 1px solid var(--border-subtle);
  border-bottom-width: 2px;
  border-radius: 3px;
  background: #efeae0;
  color: var(--text-secondary);
  font-size: 10px;
  padding: 1px 5px;
}

.ws-kit .map-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  padding: 16px;
}

.ws-kit .map-panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 14px;
}

.ws-kit .map-panel-avatar {
  display: flex;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #1a365d, #0f4c81);
  color: #fffaf0;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
}

.ws-kit .map-panel-name {
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 700;
}

.ws-kit .map-panel-sub {
  margin-top: 1px;
  color: var(--text-muted);
  font-size: 11.5px;
}

.ws-kit .map-panel-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ws-kit .map-panel-metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: #fffaf0;
  padding: 8px 10px;
}

.ws-kit .map-panel-metric-l {
  color: var(--text-faint);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ws-kit .map-panel-metric-v {
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
}

.ws-kit .map-panel-metric-v[data-trend="up"] { color: var(--success); }
.ws-kit .map-panel-metric-v[data-trend="down"] { color: var(--fail); }

.ws-kit .map-panel-section,
.ws-kit .map-panel-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ws-kit .map-panel-row {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  padding: 7px 8px;
  text-align: left;
}

.ws-kit .map-panel-row:hover {
  background: rgba(15, 23, 42, 0.04);
}

.ws-kit .map-panel-row-avatar {
  display: flex;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  color: #fffaf0;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
}

.ws-kit .map-panel-row-mid {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.ws-kit .map-panel-row-name {
  overflow: hidden;
  color: var(--text-primary);
  font-size: 12.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ws-kit .map-panel-row-rel {
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
}

@media (max-width: 1080px) {
  .ws-kit .ws-header {
    gap: 10px;
    padding-inline: 12px;
  }

  .ws-kit .ws-tabs {
    overflow-x: auto;
  }

  .ws-kit .ws-entity-meta,
  .ws-kit .ws-header-actions {
    display: none;
  }

  .ws-kit .chat-strip-row,
  .ws-kit .brief-triad,
  .ws-kit .brief-receipts,
  .ws-kit .sources-claims {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .ws-kit .ws-body[data-has-inspector="true"],
  .ws-kit .chat-layout,
  .ws-kit .brief-layout,
  .ws-kit .map-layout {
    grid-template-columns: 1fr;
  }

  .ws-kit .chat-history,
  .ws-kit .brief-toc,
  .ws-kit .ws-inspector,
  .ws-kit .map-panel {
    position: static;
    max-height: none;
  }

  .ws-kit .chat-composer--dock {
    left: 0;
    padding-inline: 12px;
  }

  .ws-kit .chat-answer,
  .ws-kit .brief-main,
  .ws-kit .sources-layout,
  .ws-kit .nb-doc {
    padding-inline: 18px;
  }

  .ws-kit .sources-table-head,
  .ws-kit .sources-row {
    grid-template-columns: 28px minmax(0, 1fr) auto;
  }

  .ws-kit .sources-table-head span:nth-child(n + 4),
  .ws-kit .sources-row span:nth-child(n + 4) {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Home Pulse — full HomePulse layout matching nodebench-web kit
   PulseStrip · TodayIntel · ActiveEvent · RecentReports
   ═══════════════════════════════════════════════════════════════════════════ */

@keyframes nb-pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-primary-tint); }
  50%      { box-shadow: 0 0 0 6px transparent; }
}

.nb-home-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 16px;
}
@media (max-width: 1100px) {
  .nb-home-grid { grid-template-columns: 1fr; }
}

.nb-home-block {
  padding: 22px 22px 20px;
  display: flex; flex-direction: column; gap: 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.nb-home-block-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
}
.nb-home-block-title {
  margin: 6px 0 0;
  font-size: 17px; font-weight: 700; letter-spacing: -0.01em;
  color: var(--text-primary);
  text-wrap: balance;
}
.nb-home-block-link {
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-muted);
  font-family: inherit; font-size: 11.5px; font-weight: 600;
  padding: 5px 10px; border-radius: 8px;
  cursor: pointer; transition: all 140ms;
  white-space: nowrap;
}
.nb-home-block-link:hover {
  border-color: var(--accent-primary-border);
  color: var(--accent-ink);
  background: var(--accent-primary-tint);
}

.nb-pulse {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 22px 22px 20px;
  display: flex; flex-direction: column; gap: 18px;
  position: relative; overflow: hidden;
}
.nb-pulse::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(900px 200px at 12% -10%, rgba(217,119,87,.08), transparent 70%);
  pointer-events: none;
}
.nb-pulse > * { position: relative; }
.nb-pulse-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
}
.nb-pulse-title {
  margin: 6px 0 0;
  font-size: 22px; font-weight: 700; letter-spacing: -0.015em;
  color: var(--text-primary);
  text-wrap: balance;
}
.nb-pulse-sub { margin: 4px 0 0; font-size: 13px; color: var(--text-muted); }
.nb-pulse-priv {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10.5px; font-weight: 600;
  font-family: var(--font-mono);
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-faint);
  border: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  padding: 4px 10px; border-radius: 999px;
  white-space: nowrap;
}
.nb-pulse-priv-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(4,120,87,.10);
}
.nb-pulse-cards {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 10px;
}
@media (max-width: 980px) { .nb-pulse-cards { grid-template-columns: 1fr 1fr; } }
.nb-pulse-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 14px 14px 0;
  display: flex; flex-direction: column; gap: 4px;
  overflow: hidden;
  min-height: 124px;
  transition: border-color 140ms, transform 140ms;
}
.nb-pulse-card:hover { border-color: var(--accent-primary-border); }
.nb-pulse-card[data-hero="true"] {
  background: linear-gradient(180deg, var(--accent-primary-tint), var(--bg-surface) 70%);
  border-color: var(--accent-primary-border);
}
.nb-pulse-card-num {
  font-size: 30px; font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.nb-pulse-card-num .u {
  font-size: 16px; font-weight: 600;
  color: var(--text-muted);
  margin-left: 2px;
}
.nb-pulse-card[data-hero="true"] .nb-pulse-card-num { color: var(--accent-ink); font-size: 36px; }
.nb-pulse-card[data-hero="true"] .nb-pulse-card-num .u { color: var(--accent-primary); }
.nb-pulse-card-label {
  font-size: 11.5px; color: var(--text-muted);
  text-transform: lowercase;
  letter-spacing: 0.01em;
}
.nb-pulse-card-trend {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10.5px; font-weight: 600;
  color: var(--text-faint);
  font-family: var(--font-mono);
  margin-top: 2px;
}
.nb-pulse-trend-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--success);
}
.nb-pulse-trend-dot[data-dir="down"] { background: var(--warning); }
.nb-pulse-spark {
  display: block;
  width: calc(100% + 28px);
  height: 28px;
  margin: auto -14px 0;
}
.nb-pulse-spark .line {
  fill: none; stroke: var(--accent-primary);
  stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.nb-pulse-spark .fill {
  fill: var(--accent-primary-tint); opacity: 0.9;
  stroke: none;
}
.nb-pulse-card:not([data-hero="true"]) .nb-pulse-spark .line { stroke: var(--text-faint); opacity: 0.7; }
.nb-pulse-card:not([data-hero="true"]) .nb-pulse-spark .fill { fill: var(--bg-secondary); }

.nb-pulse-secondary {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  border: 1px solid var(--border-subtle);
  background: var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
}
@media (max-width: 980px) { .nb-pulse-secondary { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .nb-pulse-secondary { grid-template-columns: repeat(2, 1fr); } }
.nb-pulse-mini {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 12px;
  background: var(--bg-surface);
}
.nb-pulse-mini .v {
  font-size: 16px; font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.nb-pulse-mini .v .u {
  font-size: 11px; font-weight: 600;
  color: var(--text-muted);
  margin-left: 1px;
}
.nb-pulse-mini .l { font-size: 10.5px; color: var(--text-muted); text-transform: lowercase; }
.nb-pulse-mini .t {
  font-size: 9.5px; color: var(--text-faint);
  font-family: var(--font-mono);
  text-transform: uppercase; letter-spacing: 0.05em;
  margin-top: 1px;
}

.nb-today-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  border: 1px solid var(--border-subtle);
  background: var(--border-subtle);
  border-radius: 12px; overflow: hidden;
}
.nb-today-lane {
  background: var(--bg-surface);
  padding: 12px 14px 14px;
  display: flex; flex-direction: column; gap: 8px;
  min-height: 160px;
}
.nb-today-lane-head { display: flex; align-items: center; gap: 8px; }
.nb-today-lane-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-primary);
}
.nb-today-lane[data-accent="indigo"]  .nb-today-lane-dot { background: var(--indigo); }
.nb-today-lane[data-accent="success"] .nb-today-lane-dot { background: var(--success); }
.nb-today-lane[data-accent="warning"] .nb-today-lane-dot { background: var(--warning); }
.nb-today-lane-title { font-size: 12px; font-weight: 700; color: var(--text-primary); }
.nb-today-lane-count {
  margin-left: auto;
  font-size: 10.5px; font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-faint);
  background: var(--bg-secondary);
  padding: 1px 6px; border-radius: 4px;
}
.nb-today-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 6px;
}
.nb-today-item {
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 120ms;
}
.nb-today-item:hover { background: var(--bg-secondary); }
.nb-today-item .hd { font-size: 12.5px; font-weight: 600; color: var(--text-primary); line-height: 1.3; }
.nb-today-item .meta { font-size: 10.5px; color: var(--text-muted); font-family: var(--font-mono); margin-top: 1px; }

.nb-event {
  background: linear-gradient(180deg, color-mix(in oklab, var(--accent-primary) 5%, var(--bg-surface)), var(--bg-surface) 60%);
  border-color: var(--accent-primary-border);
}
.nb-event-pip {
  display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-primary);
  margin-right: 4px; vertical-align: 1px;
  animation: nb-pulse 1.6s infinite;
}
@media (prefers-reduced-motion: reduce) { .nb-event-pip { animation: none; } }
.nb-event-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border: 1px solid var(--border-subtle);
  background: var(--border-subtle);
  border-radius: 10px; overflow: hidden;
}
@media (max-width: 720px) { .nb-event-stats { grid-template-columns: repeat(2, 1fr); } }
.nb-event-stat {
  background: var(--bg-surface);
  padding: 12px 14px 10px;
  display: flex; flex-direction: column; gap: 2px;
}
.nb-event-stat[data-emph="true"] { background: var(--accent-primary-tint); }
.nb-event-stat .v {
  font-size: 22px; font-weight: 700; letter-spacing: -0.01em;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.nb-event-stat[data-emph="true"] .v { color: var(--accent-ink); }
.nb-event-stat .l { font-size: 10.5px; color: var(--text-muted); }
.nb-event-captures { display: flex; flex-direction: column; gap: 8px; }
.nb-event-captures-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
}
.nb-event-captures-meta { font-size: 10.5px; color: var(--text-faint); font-family: var(--font-mono); }
.nb-event-cap-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column;
  border: 1px solid var(--border-subtle);
  border-radius: 10px; overflow: hidden;
  background: var(--bg-surface);
}
.nb-event-cap {
  display: grid;
  grid-template-columns: 80px minmax(0, 1.1fr) minmax(0, 2fr);
  gap: 12px;
  padding: 8px 12px;
  font-size: 12px;
  border-bottom: 1px solid var(--border-subtle);
}
.nb-event-cap:last-child { border-bottom: 0; }
.nb-event-cap .t { color: var(--text-faint); font-family: var(--font-mono); font-size: 10.5px; }
.nb-event-cap .who {
  color: var(--text-primary); font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nb-event-cap .note {
  color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.nb-recent-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 980px) { .nb-recent-grid { grid-template-columns: 1fr; } }
.nb-recent-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 14px 16px 14px;
  display: flex; flex-direction: column; gap: 8px;
  cursor: pointer;
  transition: border-color 140ms, box-shadow 140ms, transform 140ms;
  text-align: left;
}
.nb-recent-card:hover {
  border-color: var(--accent-primary-border);
  box-shadow: var(--shadow-sm);
}
.nb-recent-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.nb-recent-eye {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-faint);
}
.nb-recent-fresh {
  font-size: 10px; font-weight: 700;
  font-family: var(--font-mono);
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--success);
}
.nb-recent-fresh[data-state="updated"]  { color: var(--indigo); }
.nb-recent-fresh[data-state="watching"] { color: var(--accent-ink); }
.nb-recent-title {
  margin: 0;
  font-size: 14.5px; font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1.25;
  text-wrap: balance;
}
.nb-recent-teaser {
  margin: 0;
  font-size: 12px; color: var(--text-muted);
  line-height: 1.45;
  text-wrap: pretty;
}
.nb-recent-meta {
  font-size: 10.5px; color: var(--text-faint);
  font-family: var(--font-mono);
  text-transform: lowercase;
  letter-spacing: 0.02em;
}
.nb-recent-actions { display: flex; gap: 6px; margin-top: 4px; }
.nb-recent-action {
  flex: 1;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-muted);
  font-family: inherit; font-size: 11.5px; font-weight: 600;
  padding: 6px 10px; border-radius: 8px;
  cursor: pointer; transition: all 140ms;
}
.nb-recent-action:hover {
  border-color: var(--accent-primary-border);
  color: var(--accent-ink);
  background: var(--accent-primary-tint);
}
.nb-recent-action[data-primary="true"] {
  border-color: var(--accent-primary-border);
  background: var(--accent-primary);
  color: #FFFAF8;
}
.nb-recent-action[data-primary="true"]:hover { background: var(--accent-primary-hover); }

/* ═══════════════════════════════════════════════════════════════════════════
   Inline Report Detail (cockpit-embedded)
   Matches design system mock — breadcrumb back + header + actions + sections
   ═══════════════════════════════════════════════════════════════════════════ */

.nb-rdetail-cockpit {
  max-width: 880px;
  margin: 0 auto;
  padding: 16px 0 64px;
  display: flex; flex-direction: column; gap: 16px;
}

.nb-rdetail-cockpit-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}

.nb-rdetail-crumb {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--text-muted);
}
.nb-rdetail-back {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 140ms, color 140ms, background 140ms;
}
.nb-rdetail-back:hover {
  border-color: var(--accent-primary-border);
  color: var(--accent-ink);
  background: var(--accent-primary-tint);
}
.nb-rdetail-crumb-link {
  border: 0; background: transparent; padding: 0;
  font-family: inherit; font-size: 12.5px; font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
}
.nb-rdetail-crumb-link:not([aria-disabled]):hover { color: var(--accent-ink); }
.nb-rdetail-crumb-sep { color: var(--text-faint); }
.nb-rdetail-crumb-current {
  font-weight: 700; color: var(--text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 360px;
}

.nb-rdetail-actions {
  display: inline-flex; align-items: center; gap: 8px;
}
.nb-rdetail-live {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600;
  font-family: var(--font-mono);
  color: var(--success);
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--success) 30%, transparent);
  background: color-mix(in oklab, var(--success) 8%, var(--bg-surface));
  white-space: nowrap;
}
.nb-rdetail-live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--success) 18%, transparent);
}
.nb-rdetail-action {
  padding: 5px 11px; font-size: 12px; border-radius: 8px;
  display: inline-flex; align-items: center; gap: 6px;
}

.nb-rdetail-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10px; font-weight: 700;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-ink);
  margin-top: 8px;
}
.nb-rdetail-title {
  margin: 0;
  font-size: 32px; font-weight: 760;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text-primary);
  text-wrap: balance;
}

.nb-rdetail-meta {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 4px;
}
.nb-kit .nb-badge-quiet {
  background: var(--bg-secondary);
  color: var(--text-muted);
  border-color: var(--border-subtle);
}

.nb-rdetail-body {
  display: flex; flex-direction: column; gap: 28px;
  margin-top: 12px;
}
.nb-rdetail-section {
  display: flex; flex-direction: column; gap: 10px;
}
.nb-rdetail-section-head {
  margin: 0;
  font-size: 19px; font-weight: 700; letter-spacing: -0.01em;
  color: var(--text-primary);
}
.nb-rdetail-section-body {
  margin: 0;
  font-size: 14.5px; line-height: 1.55;
  color: var(--text-primary);
  text-wrap: pretty;
}

.nb-rdetail-quote {
  margin: 4px 0 0;
  padding: 14px 18px;
  border-left: 3px solid var(--accent-primary-border);
  background: var(--accent-primary-tint);
  border-radius: 0 10px 10px 0;
  display: flex; flex-direction: column; gap: 6px;
}
.nb-rdetail-quote p {
  margin: 0;
  font-size: 14px; line-height: 1.5;
  color: var(--accent-ink);
  font-style: italic;
}
.nb-rdetail-quote cite {
  font-size: 11px; color: var(--text-muted);
  font-family: var(--font-mono);
  font-style: normal;
}

.nb-rdetail-card {
  margin-top: 4px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.nb-rdetail-card-head {
  display: flex; align-items: center; gap: 8px;
}
.nb-rdetail-card-kind {
  font-size: 9.5px; font-weight: 700;
  font-family: var(--font-mono);
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--accent-ink);
  background: var(--accent-primary-tint);
  padding: 2px 8px; border-radius: 4px;
}
.nb-rdetail-card-tag {
  font-size: 9.5px; font-weight: 600;
  color: var(--text-faint);
  font-family: var(--font-mono);
  text-transform: uppercase; letter-spacing: 0.12em;
}
.nb-rdetail-card-name {
  margin: 0;
  font-size: 18px; font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.nb-rdetail-card-rows {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px 18px;
  margin: 6px 0 0;
}
.nb-rdetail-card-row {
  display: flex; flex-direction: column; gap: 1px;
}
.nb-rdetail-card-row dt {
  font-size: 10.5px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.nb-rdetail-card-row dd {
  margin: 0;
  font-size: 13px; font-weight: 600;
  color: var(--text-primary);
}

@media (max-width: 720px) {
  .nb-rdetail-title { font-size: 24px; }
  .nb-rdetail-actions { width: 100%; justify-content: flex-end; }
  .nb-rdetail-crumb-current { max-width: 200px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ChatStream — full conversation surface (kit ChatStream port)
   ═══════════════════════════════════════════════════════════════════════════ */

.nb-stream-root {
  position: relative;
  min-height: 620px;
  height: max(620px, calc(100dvh - 172px));
  display: flex;
  flex-direction: column;
  background: transparent;
}
.nb-stream-main {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
  flex: 1;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  background: var(--bg-surface);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.nb-stream-header {
  padding: 10px 22px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex; align-items: center; gap: 10px;
  background: transparent;
}
.nb-stream-header h2 {
  font-size: 13.5px; font-weight: 700;
  letter-spacing: -0.008em;
  color: var(--text-primary);
  margin: 0 0 2px;
}
.nb-stream-header-meta {
  font-size: 10.5px; color: var(--text-muted);
  font-family: var(--font-mono);
  display: flex; gap: 5px; flex-wrap: wrap;
}
.nb-stream-fresh { color: var(--success); font-weight: 600; }
.nb-stream-fresh[data-state="stale"] { color: var(--warning); }
.nb-rail-toggle {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  border-radius: 7px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 120ms, color 120ms;
}
.nb-rail-toggle:hover { background: var(--bg-secondary); color: var(--text-primary); }
.nb-chat-header-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: grid; place-items: center;
  background: var(--accent-primary-tint);
  color: var(--accent-ink);
  font-weight: 800; font-size: 13px;
  flex-shrink: 0;
}
.nb-chat-header-actions {
  display: inline-flex; gap: 4px;
  border: 0; background: transparent; padding: 0;
}
.nb-chat-header-actions button {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 9px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-muted);
  border-radius: 7px;
  font-size: 11px; font-weight: 600;
  cursor: pointer;
  transition: all 140ms;
}
.nb-chat-header-actions button:hover {
  border-color: var(--accent-primary-border);
  color: var(--accent-ink);
  background: var(--accent-primary-tint);
}

.nb-stream-savebar {
  padding: 7px 22px;
  display: flex; align-items: center; gap: 8px;
  font-size: 11.5px; color: var(--text-muted);
  background: transparent;
  border-bottom: 1px solid var(--border-subtle);
}
.nb-stream-savebar-icon {
  color: var(--accent-primary); font-size: 10px;
  animation: nb-pulse 2s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .nb-stream-savebar-icon { animation: none; } }
.nb-stream-savebar strong { color: var(--text-primary); font-weight: 600; }
.nb-stream-savebar .dim { color: var(--text-muted); font-family: var(--font-mono); font-size: 10.5px; }
.nb-stream-savebar button {
  border: 1px solid var(--accent-primary-border);
  background: var(--bg-surface);
  color: var(--accent-ink);
  font-size: 11px; font-weight: 600;
  padding: 4px 10px; border-radius: 6px;
  cursor: pointer;
  transition: all 140ms;
}
.nb-stream-savebar button:hover {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
}

.nb-stream-scroll {
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--bg-app, var(--bg-surface));
  min-height: 0;
}
.nb-stream-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 28px 38px;
  display: flex; flex-direction: column; gap: 28px;
}

.nb-turn {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: flex-start;
}
.nb-turn-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.nb-turn-avatar[data-role="user"] {
  background: var(--text-primary);
}
.nb-turn-avatar[data-role="agent"] {
  background: var(--accent-primary);
  color: #FFFAF8;
}
.nb-turn-body { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.nb-turn-head {
  display: flex; align-items: baseline; gap: 8px;
}
.nb-turn-who { font-size: 12.5px; font-weight: 700; color: var(--text-primary); }
.nb-turn-time {
  font-size: 10.5px; color: var(--text-faint);
  font-family: var(--font-mono);
}
.nb-turn[data-role="user"] .nb-turn-text {
  background: var(--bg-secondary);
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 13.5px;
  color: var(--text-primary);
  line-height: 1.5;
  max-width: 100%;
  display: inline-block;
}
.nb-turn[data-role="agent"] .nb-turn-text {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.55;
}
.nb-turn[data-role="agent"] .nb-turn-text p {
  margin: 0 0 8px;
}
.nb-turn[data-role="agent"] .nb-turn-text p:last-child { margin-bottom: 0; }

.nb-runbar {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
  flex-wrap: wrap;
  max-width: 100%;
  align-self: flex-start;
}
.nb-runbar .ic { font-size: 12px; color: var(--accent-primary); }
.nb-runbar .sum strong { color: var(--text-primary); font-weight: 600; }
.nb-runbar .dt { color: var(--text-faint); font-family: var(--font-mono); font-size: 10.5px; }

.nb-runtrace {
  display: block;
  margin: 0 0 4px;
}
.nb-runtrace summary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 10px;
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  cursor: pointer;
  list-style: none;
}
.nb-runtrace summary::-webkit-details-marker { display: none; }
.nb-runtrace-sum { font-weight: 600; color: var(--text-primary); }
.nb-runtrace-tags {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-faint);
  text-transform: lowercase;
  letter-spacing: 0.04em;
}
.nb-runtrace-list {
  display: flex; flex-direction: column; gap: 4px;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: var(--bg-secondary);
}
.nb-runtrace-step {
  display: flex; gap: 8px; flex-wrap: wrap;
  font-size: 11px; color: var(--text-muted);
  font-family: var(--font-mono);
}
.nb-runtrace-step .step {
  color: var(--accent-ink);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex-shrink: 0;
  min-width: 60px;
}
.nb-runtrace-step .lbl { color: var(--text-primary); }
.nb-runtrace-step .hits { color: var(--text-faint); }

.nb-runups {
  display: flex; flex-direction: column; gap: 5px;
  margin: 6px 0 0;
}
.nb-runup {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 10px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  border-radius: 8px;
  font-size: 11.5px;
  color: var(--text-muted);
  width: fit-content;
  max-width: 100%;
}
.nb-runup .ic {
  color: var(--accent-primary);
  font-size: 12px;
  flex-shrink: 0;
}
.nb-runup .lbl strong { color: var(--text-primary); font-weight: 600; }
.nb-runup .lbl .dim { color: var(--text-faint); font-family: var(--font-mono); }

.nb-followups {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 6px;
}
.nb-followup-chip {
  display: inline-flex; align-items: center;
  padding: 4px 11px;
  border: 1px solid var(--accent-primary-border);
  background: var(--accent-primary-tint);
  color: var(--accent-ink);
  border-radius: 999px;
  font-size: 11.5px; font-weight: 600;
  cursor: pointer;
  transition: all 140ms;
}
.nb-followup-chip:hover {
  background: var(--accent-primary);
  color: #FFFAF8;
}

.nb-epill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 1px 8px 1px 6px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
  border-radius: 999px;
  font-size: 12px; font-weight: 500;
  cursor: pointer;
  vertical-align: -1px;
  transition: border-color 120ms;
}
.nb-epill:hover { border-color: var(--accent-primary-border); }
.nb-epill .d {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-muted);
}
.nb-epill[data-kind="company"] .d { background: #d97757; }
.nb-epill[data-kind="person"] .d { background: #6b3ba3; }
.nb-epill[data-kind="event"] .d { background: var(--success); }
.nb-epill[data-kind="theme"] .d { background: #5e6ad2; }
.nb-epill .lbl { color: var(--text-primary); font-weight: 600; }
.nb-epill .sub {
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 10px;
}

.nb-block-p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.55;
}
.nb-block-h {
  margin: 10px 0 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.nb-block-h:first-child { margin-top: 0; }
.nb-block-list {
  margin: 0 0 8px;
  padding-left: 18px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-primary);
}
.nb-block-list li {
  margin: 0 0 3px;
  padding-left: 2px;
}
.nb-block-list li::marker {
  color: var(--text-faint);
}

/* Confirm-match block (e.g. "Possible match: Alex Park · Orbital Labs") */
.nb-confirm {
  margin: 6px 0 6px;
  padding: 10px 12px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  border-radius: 10px;
  display: flex; flex-direction: column; gap: 8px;
}
.nb-confirm .hd {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.nb-confirm .hd strong { color: var(--text-primary); font-weight: 600; }
.nb-confirm .hd .d {
  width: 8px; height: 8px; border-radius: 50%;
  background: #6b3ba3;
  flex-shrink: 0;
}
.nb-confirm .conf {
  margin-left: auto;
  padding: 2px 8px;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  background: var(--bg-surface);
}
.nb-confirm[data-confidence="high"] .conf {
  color: var(--success);
  border-color: color-mix(in oklab, var(--success) 40%, transparent);
}
.nb-confirm[data-confidence="medium"] .conf {
  color: var(--accent-ink);
  border-color: var(--accent-primary-border);
}
.nb-confirm[data-confidence="low"] .conf {
  color: var(--text-muted);
}
.nb-confirm .actions {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.nb-confirm .actions button {
  padding: 4px 11px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 140ms, background 140ms, color 140ms;
}
.nb-confirm .actions button:hover {
  border-color: var(--accent-primary-border);
}
.nb-confirm .actions button.primary {
  background: var(--accent-primary);
  color: #FFFAF8;
  border-color: var(--accent-primary);
  font-weight: 600;
}
.nb-confirm .actions button.primary:hover {
  filter: brightness(1.05);
}

/* Per-turn source chips ("Sources" row beneath an agent body) */
.nb-turn-sources {
  display: flex; flex-wrap: wrap; gap: 6px;
  align-items: center;
  margin: 4px 0 0;
}
.nb-turn-sources .ttl {
  font-size: 10.5px;
  font-family: var(--font-mono);
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-right: 2px;
}
.nb-src-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px 3px 6px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-muted);
  border-radius: 999px;
  font-size: 11px;
  cursor: pointer;
  transition: border-color 140ms, color 140ms;
  max-width: 220px;
}
.nb-src-chip:hover {
  border-color: var(--accent-primary-border);
  color: var(--text-primary);
}
.nb-src-chip .fav {
  font-size: 11px;
  line-height: 1;
  flex-shrink: 0;
}
.nb-src-chip .n {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-faint);
  flex-shrink: 0;
}
.nb-src-chip .dom {
  color: var(--text-primary);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.nb-src-chip .badge {
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 1px 6px;
  border-radius: 999px;
  color: var(--text-faint);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}
.nb-src-chip .badge.live {
  color: var(--success);
  border-color: color-mix(in oklab, var(--success) 40%, transparent);
  background: color-mix(in oklab, var(--success) 10%, var(--bg-secondary));
}

/* Composer */
.nb-stream-composer {
  position: sticky;
  bottom: 0;
  z-index: 12;
  padding: 10px 22px 14px;
  background: color-mix(in oklab, var(--bg-surface) 92%, transparent);
  border-top: 1px solid var(--border-subtle);
  backdrop-filter: blur(18px);
}

.dark .nb-stream-composer {
  background: rgba(18, 20, 26, 0.92);
}
.nb-stream-composer-inner {
  max-width: 760px; margin: 0 auto;
}
.nb-composer-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 10px 12px 10px;
  display: flex; flex-direction: column;
  transition: border-color 160ms, box-shadow 160ms;
  box-shadow: 0 1px 0 rgba(15,23,42,.02);
}
.nb-composer-card:focus-within {
  border-color: var(--border-default, var(--accent-primary-border));
  box-shadow: 0 0 0 3px var(--accent-primary-tint), 0 1px 0 rgba(15,23,42,.02);
}
.nb-composer-pins {
  display: flex; flex-wrap: wrap; gap: 5px;
  padding: 2px 4px 8px;
  border-bottom: 1px dashed var(--border-subtle);
  margin: 0 0 8px;
}
.nb-composer-pins .nb-pin {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 4px 2px 8px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  border-radius: 999px;
  font-size: 11px; font-weight: 500;
}
.nb-composer-pins button.nb-pin {
  cursor: pointer;
  font: inherit;
}
.nb-composer-pins button.nb-pin:hover,
.nb-composer-pins button.nb-pin:focus-visible {
  color: var(--text-primary);
  border-color: var(--accent-primary-border);
  outline: none;
}
.nb-composer-pins .nb-pin .typ {
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
}
.nb-composer-pins .nb-pin button {
  width: 16px; height: 16px;
  border: 0; background: transparent;
  color: var(--text-muted);
  border-radius: 50%;
  display: grid; place-items: center;
  cursor: pointer;
}
.nb-composer-pins .nb-pin button:hover { background: var(--bg-secondary); color: var(--text-primary); }
.nb-composer-pins .nb-pin-add {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 9px;
  background: transparent;
  border: 1px dashed var(--border-subtle);
  color: var(--text-muted);
  font-size: 11px;
  border-radius: 999px;
  cursor: pointer;
}
.nb-composer-pins .nb-pin-add:hover { color: var(--text-primary); border-color: var(--accent-primary-border); }
.nb-composer-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
}
.nb-composer-tools {
  display: flex; align-items: center; gap: 2px;
  min-width: 0;
}
.nb-composer-tools button {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  border-radius: 7px;
  cursor: pointer;
}
.nb-composer-tools button:hover { background: var(--bg-secondary); color: var(--text-primary); }
.nb-composer-divider {
  width: 1px; height: 16px;
  background: var(--border-subtle);
  margin: 0 6px;
}
.nb-composer-tools .nb-model-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  height: 22px;
  padding: 0 8px 0 6px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-muted);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
}
.nb-composer-tools button.nb-model-trigger {
  width: auto;
  height: 22px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  border-radius: 999px;
  cursor: pointer;
}
.nb-composer-tools button.nb-model-trigger:hover,
.nb-composer-tools button.nb-model-trigger:focus-visible {
  color: var(--text-primary);
  border-color: var(--accent-primary-border);
  outline: none;
}
.nb-composer-tools .nb-model-select-trigger {
  position: relative;
  padding-right: 7px;
  color: var(--text-primary);
}
.nb-composer-tools .nb-model-select {
  min-width: 112px;
  max-width: min(34vw, 190px);
  border: 0;
  outline: none;
  appearance: none;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: 1;
  cursor: pointer;
  padding: 0 13px 0 0;
}
.nb-composer-tools .nb-model-select:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}
.nb-composer-tools .nb-model-select option {
  background: #111318;
  color: #f7f8fb;
}
.nb-composer-tools .nb-model-select-trigger::after {
  content: "";
  position: absolute;
  right: 7px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-65%) rotate(45deg);
  opacity: 0.7;
  pointer-events: none;
}
.nb-composer-tools .nb-model-select-trigger:hover,
.nb-composer-tools .nb-model-select-trigger:focus-within {
  color: var(--text-primary);
  border-color: var(--accent-primary-border);
}
.nb-composer-tools .nb-model-trigger .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--text-muted);
}
.nb-composer-tools .nb-model-trigger .dot[data-provider="openai"] { background: #10a37f; }
.nb-composer-tools .nb-model-trigger .dot[data-provider="anthropic"] { background: #C96442; }
.nb-composer-tools .nb-model-trigger .dot[data-provider="google"] { background: #8ab4f8; }
.nb-composer-tools .nb-model-trigger .dot[data-provider="openrouter"] { background: #a78bfa; }
.nb-composer-send-group {
  display: inline-flex; align-items: center; gap: 10px;
}
.nb-composer-meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-faint);
}
.nb-composer-send {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border: 0;
  background: var(--text-primary);
  color: var(--bg-surface);
  border-radius: 8px;
  cursor: pointer;
}
.nb-composer-send:hover { transform: translateY(-1px); }
.nb-composer-send:disabled {
  background: var(--bg-secondary);
  color: var(--text-faint);
  cursor: not-allowed;
}
.nb-composer-suggest {
  display: flex; flex-wrap: wrap; gap: 5px;
  padding: 8px 4px 0;
}
.nb-prompt-chip {
  display: inline-flex; align-items: center;
  padding: 3px 9px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-muted);
  border-radius: 999px;
  font-size: 11px;
  cursor: pointer;
  transition: all 140ms;
}
.nb-prompt-chip:hover {
  color: var(--text-primary);
  border-color: var(--accent-primary-border);
}

/* ═══════════════════════════════════════════════════════════════════════════
   ExactAvatarMenu — TopNav avatar status panel
   ═══════════════════════════════════════════════════════════════════════════ */

.nb-avm-root { position: relative; display: inline-flex; }

.nb-avm-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 8px 2px 2px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: all 160ms;
}
.nb-avm-trigger:hover {
  background: var(--bg-secondary);
}
.nb-avm-trigger[data-active="true"] {
  border-color: var(--border-subtle);
  background: var(--bg-secondary);
}
.nb-avm-avatar-sm {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #D97757, #5E6AD2);
  color: #fff;
  font-weight: 700; font-size: 11px;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.nb-avm-chev {
  color: var(--text-faint);
  transition: transform 160ms;
}
.nb-avm-chev[data-open="true"] { transform: rotate(-90deg); }

.nb-avm-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 380px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  box-shadow: 0 28px 70px -20px rgba(15,23,42,.28), 0 6px 16px -4px rgba(15,23,42,.08);
  padding: 0;
  z-index: 100;
  overflow: hidden;
  animation: nb-avm-in 180ms ease-out;
}
@keyframes nb-avm-in {
  from { opacity: 0; transform: translateY(4px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .nb-avm-menu { animation: none; }
}

.nb-avm-identity {
  position: relative;
  padding: 16px 16px 14px;
  background: linear-gradient(135deg, rgba(217,119,87,.10) 0%, rgba(94,106,210,.08) 100%);
  border-bottom: 1px solid var(--border-subtle);
  display: flex; align-items: center; gap: 12px;
}
.nb-avm-avatar-lg {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #D97757, #5E6AD2);
  color: #fff;
  font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 16px -6px rgba(94,106,210,.5);
}
.nb-avm-identity-body { min-width: 0; flex: 1; }
.nb-avm-name {
  font-size: 14px; font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.nb-avm-id {
  font-size: 11px; color: var(--text-muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nb-avm-pro {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--accent-primary);
  background: var(--bg-surface);
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid var(--accent-primary-border);
  flex-shrink: 0;
}

.nb-avm-section {
  padding: 14px 14px 10px;
}
.nb-avm-section-divided { border-top: 1px dashed var(--border-subtle); padding-top: 12px; padding-bottom: 14px; }
.nb-avm-section-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.nb-avm-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.nb-avm-section-link {
  font-size: 11px;
  color: var(--accent-ink);
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-weight: 500;
}
.nb-avm-section-link:hover { color: var(--accent-primary); text-decoration: underline; }
.nb-avm-section-meta {
  font-size: 11px;
  color: var(--text-faint);
  font-family: var(--font-mono);
}

.nb-avm-pulse-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
}
.nb-avm-pulse {
  padding: 8px 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
}
.nb-avm-pulse[data-hot="true"] {
  background: var(--accent-primary-tint);
  border-color: var(--accent-primary-border);
}
.nb-avm-pulse-v {
  font-size: 18px; font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1;
}
.nb-avm-pulse[data-hot="true"] .nb-avm-pulse-v { color: var(--accent-primary); }
.nb-avm-pulse-l {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
}
.nb-avm-pulse-t {
  font-size: 10px;
  color: var(--text-faint);
  margin-top: 2px;
  font-family: var(--font-mono);
}
.nb-avm-pulse[data-hot="true"] .nb-avm-pulse-t { color: var(--accent-primary); }

.nb-avm-watch-row {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 0;
}
.nb-avm-watch-mark {
  width: 22px; height: 22px;
  border-radius: 6px;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nb-avm-watch-body { flex: 1; min-width: 0; }
.nb-avm-watch-name {
  font-size: 12px; font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.005em;
}
.nb-avm-watch-detail {
  font-size: 10px;
  color: var(--text-faint);
  margin-top: 1px;
}
.nb-avm-watch-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-faint);
  flex-shrink: 0;
}
.nb-avm-watch-dot[data-dot="hot"] {
  background: #D97757;
  box-shadow: 0 0 0 3px rgba(217,119,87,.18);
}
.nb-avm-watch-dot[data-dot="warm"] { background: #E0A33C; }
.nb-avm-watch-dot[data-dot="cool"] { background: #9CA3AF; }

.nb-avm-usage { margin-bottom: 8px; }
.nb-avm-usage-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 3px;
}
.nb-avm-usage-label { font-size: 11px; color: var(--text-muted); }
.nb-avm-usage-num {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-faint);
}
.nb-avm-usage-num[data-hot="true"] { color: var(--accent-primary); }
.nb-avm-usage-cap { color: var(--text-faint); }
.nb-avm-usage-track {
  height: 4px;
  background: var(--bg-secondary);
  border-radius: 999px;
  overflow: hidden;
}
.nb-avm-usage-fill {
  height: 100%;
  background: #5E6AD2;
  border-radius: 999px;
  transition: width 240ms;
}
.nb-avm-usage-fill[data-hot="true"] { background: var(--accent-primary); }

.nb-avm-upgrade {
  width: 100%;
  margin-top: 8px;
  padding: 7px 10px;
  font-size: 12px; font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: border-color 140ms, background 140ms;
}
.nb-avm-upgrade:hover {
  border-color: var(--accent-primary-border);
  background: var(--accent-primary-tint);
}
.nb-avm-upgrade-ic { color: var(--accent-primary); }

.nb-avm-sessions { margin-top: 8px; }
.nb-avm-session {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 0;
}
.nb-avm-session-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-faint);
  flex-shrink: 0;
}
.nb-avm-session-dot[data-current="true"] {
  background: #3F8F6E;
  box-shadow: 0 0 0 3px rgba(63,143,110,.18);
}
.nb-avm-session-time {
  font-size: 11px;
  color: var(--text-muted);
  min-width: 64px;
}
.nb-avm-session-device {
  font-size: 11px;
  color: var(--text-primary);
  flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nb-avm-session-this {
  font-size: 9px;
  font-family: var(--font-mono);
  color: #3F8F6E;
  background: rgba(63,143,110,.10);
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.nb-avm-footer {
  padding: 6px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
}
.nb-avm-theme-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 8px;
}
.nb-avm-theme {
  display: inline-flex;
  background: var(--bg-surface);
  border-radius: 999px;
  padding: 2px;
  border: 1px solid var(--border-subtle);
}
.nb-avm-theme-opt {
  font-size: 11px; font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--text-faint);
  cursor: pointer;
  transition: all 140ms;
}
.nb-avm-theme-opt[data-active="true"] {
  background: var(--bg-secondary);
  color: var(--text-primary);
  cursor: default;
  box-shadow: 0 2px 6px -2px rgba(15,23,42,.2);
}

.nb-avm-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  margin-top: 2px;
}
.nb-avm-link {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  color: var(--text-primary);
  font-size: 12px; font-weight: 500;
  transition: background 120ms;
}
.nb-avm-link:hover { background: var(--bg-surface); }
.nb-avm-link[data-danger]:hover { background: rgba(196,68,79,.10); color: #C4444F; }
.nb-avm-link svg {
  color: var(--text-muted);
  flex-shrink: 0;
}
.nb-avm-link[data-danger] svg { color: #C4444F; }
.nb-avm-link span:nth-of-type(1) { flex: 1; min-width: 0; }
.nb-avm-kbd {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text-faint);
  background: var(--bg-secondary);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
}

/* Clarity pass: keep first-run surfaces focused instead of dashboard-dense. */
.nb-kit .nb-example-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.nb-kit .nb-example-chip {
  display: inline-flex;
  max-width: 260px;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  background: var(--bg-surface);
  color: var(--text-secondary);
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 720;
  line-height: 1.15;
  text-align: left;
  box-shadow: var(--shadow-sm);
}

.nb-kit .nb-example-chip span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nb-kit .nb-example-chip .nb-prompt-icon {
  flex: none;
  width: 22px;
  height: 22px;
  margin-bottom: 0;
}

.nb-kit .nb-public-memory {
  margin: 0 auto;
  max-width: 960px;
  width: 100%;
}

.nb-kit .nb-public-memory-head {
  align-items: flex-end;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.nb-kit .nb-public-memory-head h2 {
  color: var(--text-primary);
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 5px 0 0;
}

.nb-kit .nb-public-memory-head > span {
  border: 1px solid var(--border-default);
  border-radius: 999px;
  color: var(--text-muted);
  flex: none;
  font-size: 11px;
  font-weight: 760;
  padding: 6px 10px;
}

.nb-kit .nb-public-memory-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.nb-kit .nb-public-memory-card {
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  background: var(--bg-surface);
  color: inherit;
  min-height: 172px;
  padding: 14px;
  text-align: left;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.nb-kit .nb-public-memory-card:hover {
  border-color: var(--accent-primary-border);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.nb-kit .nb-public-memory-card-top {
  align-items: flex-start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.nb-kit .nb-public-memory-card-top strong {
  color: var(--text-primary);
  display: block;
  font-size: 14px;
  line-height: 1.2;
}

.nb-kit .nb-public-memory-card-top small {
  color: var(--text-faint);
  display: block;
  font-size: 10px;
  font-weight: 820;
  line-height: 1.4;
  margin-top: 5px;
  text-transform: uppercase;
}

.nb-kit .nb-public-memory-card-top svg {
  color: var(--text-faint);
  flex: none;
  transition: color 160ms ease;
}

.nb-kit .nb-public-memory-card:hover .nb-public-memory-card-top svg {
  color: var(--accent-primary);
}

.nb-kit .nb-public-memory-card p {
  color: var(--text-muted);
  display: -webkit-box;
  font-size: 12px;
  line-height: 1.5;
  margin: 12px 0 0;
  min-height: 36px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.nb-kit .nb-public-memory-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.nb-kit .nb-public-memory-meta span {
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 10.5px;
  font-weight: 760;
  padding: 4px 7px;
}

@media (max-width: 880px) {
  .nb-kit .nb-public-memory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .nb-kit .nb-public-memory-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .nb-kit .nb-public-memory-grid {
    grid-template-columns: 1fr;
  }
}

.nb-kit .nb-first-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.nb-kit .nb-first-list .nb-first-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
  min-height: 0;
  padding: 13px 14px;
}

.nb-kit .nb-first-card-main {
  min-width: 0;
}

.nb-kit .nb-first-list .nb-first-proof {
  flex-direction: row;
  flex-wrap: wrap;
  margin-top: 9px;
}

.nb-kit .nb-first-list .nb-first-export {
  justify-content: flex-end;
  margin: 0;
  padding: 0;
}

.nb-kit .nb-first-list .nb-first-actions {
  min-width: 240px;
  align-items: flex-end;
  flex-direction: column;
  margin: 0;
}

.nb-kit .nb-home-more {
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
}

.nb-kit .nb-home-more > summary {
  display: flex;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 800;
  list-style: none;
}

.nb-kit .nb-home-more > summary::-webkit-details-marker {
  display: none;
}

.nb-kit .nb-home-more > summary small {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 680;
}

.nb-kit .nb-home-more-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-top: 1px solid var(--border-subtle);
  padding: 16px;
}

.nb-kit .nb-research-workbench {
  max-width: 1040px;
  margin: 18px auto 24px;
  border: 1px solid var(--border-default);
  border-radius: 24px;
  background:
    radial-gradient(circle at 8% -8%, rgba(217, 119, 87, 0.10), transparent 30%),
    radial-gradient(circle at 92% 0%, rgba(94, 106, 210, 0.08), transparent 26%),
    color-mix(in oklab, var(--bg-surface) 94%, transparent);
  box-shadow: var(--shadow-md);
  padding: 18px;
}

.nb-kit .nb-research-workbench-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nb-kit .nb-research-workbench-head h2 {
  margin: 3px 0 0;
  color: var(--text-primary);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.018em;
  line-height: 1.12;
}

.nb-kit .nb-workbench-tabs {
  display: inline-flex;
  gap: 4px;
  margin-top: 14px;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  background: color-mix(in oklab, var(--bg-secondary) 82%, transparent);
  padding: 4px;
}

.nb-kit .nb-workbench-tabs button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 800;
}

.nb-kit .nb-workbench-tabs button[data-active="true"] {
  background: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08), 0 7px 18px rgba(15, 23, 42, 0.05);
}

.nb-kit .nb-workbench-panel {
  margin-top: 14px;
}

.nb-kit .nb-workbench-panel > [data-testid="reports-pipeline-launcher-slot"] > .pipeline-launcher {
  box-shadow: none;
}

.dark .nb-kit .nb-research-workbench {
  border-color: rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 8% -8%, rgba(224, 138, 110, 0.12), transparent 30%),
    radial-gradient(circle at 92% 0%, rgba(124, 135, 220, 0.09), transparent 27%),
    rgba(17, 19, 25, 0.88);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.dark .nb-kit .nb-workbench-tabs {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
}

.dark .nb-kit .nb-workbench-tabs button[data-active="true"] {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 10px 24px rgba(0, 0, 0, 0.16);
}

.nb-kit .nb-research-workbench-minimal {
  max-width: 960px;
  margin: 14px 0 18px;
  border-radius: 22px;
  padding: 10px;
}

.nb-kit .nb-report-command-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 1px 4px 8px;
}

.nb-kit .nb-report-command-title {
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 820;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.nb-kit .nb-report-command-note {
  border: 1px solid color-mix(in oklab, var(--success) 30%, transparent);
  border-radius: 999px;
  background: color-mix(in oklab, var(--success) 8%, transparent);
  color: var(--success);
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 760;
}

.nb-kit .nb-research-workbench-minimal .nb-workbench-panel {
  margin-top: 0;
}

.nb-kit .nb-research-workbench-minimal .pipeline-launcher-chatlike .pipeline-launcher-form {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 56px;
  border-radius: 18px;
  padding: 6px 7px 6px 14px;
}

.nb-kit .nb-research-workbench-minimal .pipeline-launcher-chatlike .pipeline-launcher-prompt {
  grid-column: 1;
  grid-row: 1;
}

.nb-kit .nb-research-workbench-minimal .pipeline-launcher-chatlike [data-testid="pipeline-launcher-spec"] {
  min-height: 40px;
  max-height: 72px;
  padding: 8px 8px 6px;
}

.nb-kit .nb-research-workbench-minimal .pipeline-launcher-chatlike .pipeline-launcher-kind-row,
.nb-kit .nb-research-workbench-minimal .pipeline-launcher-chatlike .pipeline-launcher-advanced {
  display: none;
}

.nb-kit .nb-research-workbench-minimal .pipeline-launcher-chatlike .pipeline-launcher-footer {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
}

.nb-kit .nb-research-workbench-minimal .pipeline-launcher-chatlike [data-testid="pipeline-launcher-submit"] {
  width: 40px;
  min-height: 40px;
}

.nb-kit .nb-reports-ops-disclosure {
  margin-top: 8px;
}

.nb-kit .nb-reports-ops-disclosure summary {
  display: inline-flex;
  cursor: pointer;
  user-select: none;
  align-items: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--text-muted);
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 780;
  list-style: none;
}

.nb-kit .nb-reports-ops-disclosure summary::-webkit-details-marker {
  display: none;
}

.nb-kit .nb-reports-ops-disclosure summary::after {
  content: "+";
  color: var(--text-faint);
  font-weight: 900;
}

.nb-kit .nb-reports-ops-disclosure[open] summary {
  border-color: var(--border-subtle);
  background: color-mix(in oklab, var(--bg-secondary) 78%, transparent);
  color: var(--text-secondary);
}

.nb-kit .nb-reports-ops-disclosure[open] summary::after {
  content: "-";
}

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

.dark .nb-kit .nb-research-workbench-minimal {
  background:
    radial-gradient(circle at 8% -20%, rgba(224, 138, 110, 0.09), transparent 32%),
    rgba(16, 18, 24, 0.72);
}

.dark .nb-kit .nb-report-command-note {
  color: #7ee0b7;
}

.dark .nb-kit .nb-reports-ops-disclosure[open] summary {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.045);
}

.nb-kit .nb-research-workbench-minimal {
  max-width: 760px;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.nb-kit .nb-research-workbench-minimal .nb-report-command-head {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  margin: -1px;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.nb-kit .pipeline-launcher-chatlike .pipeline-launcher-composer-inner {
  max-width: 760px;
}

.nb-kit .pipeline-launcher-chatlike .pipeline-launcher-form.nb-composer-card,
.nb-kit .nb-research-workbench-minimal .pipeline-launcher-chatlike .pipeline-launcher-form.nb-composer-card {
  display: flex;
  min-height: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  background: var(--bg-surface);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
  padding: 10px 12px;
}

.nb-kit .pipeline-launcher-chatlike .pipeline-launcher-form.nb-composer-card:focus-within,
.nb-kit .nb-research-workbench-minimal .pipeline-launcher-chatlike .pipeline-launcher-form.nb-composer-card:focus-within {
  border-color: var(--border-default, var(--accent-primary-border));
  box-shadow: 0 0 0 3px var(--accent-primary-tint), 0 1px 0 rgba(15, 23, 42, 0.02);
}

.nb-kit .pipeline-launcher-chatlike .pipeline-launcher-form.nb-composer-card .nb-composer-pins {
  display: flex;
}

.nb-kit .pipeline-launcher-chatlike .pipeline-launcher-form.nb-composer-card .pipeline-launcher-composer-input,
.nb-kit .nb-research-workbench-minimal .pipeline-launcher-chatlike .pipeline-launcher-form.nb-composer-card .pipeline-launcher-composer-input {
  min-height: 92px;
  max-height: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 20px 22px;
  font-size: 15px;
  line-height: normal;
  resize: none;
}

.nb-kit .pipeline-launcher-chatlike .pipeline-launcher-composer-input:focus {
  outline: 0;
  box-shadow: none;
}

.nb-kit .pipeline-launcher-chatlike .pipeline-launcher-composer-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  border-top: 1px dashed var(--border-subtle);
  margin: 0 4px 8px;
  padding: 10px 0 0;
}

.nb-kit .pipeline-launcher-option-field,
.nb-kit .pipeline-launcher-schedule-field,
.nb-kit .pipeline-launcher-composed-note {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 650;
}

.nb-kit .pipeline-launcher-option-field {
  flex-direction: column;
  align-items: stretch;
}

.nb-kit .pipeline-launcher-option-field span {
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nb-kit .pipeline-launcher-option-field select,
.nb-kit .pipeline-launcher-option-field input,
.nb-kit .pipeline-launcher-cadence {
  min-height: 30px;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: var(--bg-surface);
  color: var(--text-primary);
  padding: 0 8px;
  font-size: 11.5px;
  font-weight: 600;
}

.nb-kit .pipeline-launcher-option-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.nb-kit .pipeline-launcher-option-pills button {
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  background: var(--bg-surface);
  color: var(--text-muted);
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 650;
}

.nb-kit .pipeline-launcher-option-pills button[data-active="true"] {
  border-color: var(--accent-primary-border);
  background: var(--accent-primary-tint);
  color: var(--accent-ink);
}

.nb-kit .pipeline-launcher-feedback {
  margin: 8px 4px 0;
  font-size: 11px;
}

.nb-kit .pipeline-launcher-success {
  color: var(--success);
}

.nb-kit .pipeline-launcher-error {
  color: var(--danger);
}

.dark .nb-kit .nb-research-workbench-minimal {
  background: transparent;
}

.dark .nb-kit .pipeline-launcher-chatlike .pipeline-launcher-form.nb-composer-card,
.dark .nb-kit .nb-research-workbench-minimal .pipeline-launcher-chatlike .pipeline-launcher-form.nb-composer-card {
  border-color: rgba(255, 255, 255, 0.08);
  background: var(--bg-surface);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.dark .nb-kit .pipeline-launcher-option-field select,
.dark .nb-kit .pipeline-launcher-option-field input,
.dark .nb-kit .pipeline-launcher-cadence,
.dark .nb-kit .pipeline-launcher-option-pills button {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
}

@media (max-width: 920px) {
  .nb-kit .nb-reports-ops-grid {
    grid-template-columns: 1fr;
  }
}

.nb-kit .nb-workbench-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nb-mobile-kit .pipeline-launcher-compact-golden {
  padding: 0;
}

.nb-mobile-kit .pipeline-launcher-compact-golden .pipeline-launcher-composer-inner {
  max-width: none;
}

.nb-mobile-kit .pipeline-launcher-compact-golden .pipeline-launcher-form.nb-composer-card {
  border-radius: 12px;
  padding: 9px;
}

.nb-mobile-kit .pipeline-launcher-compact-golden .nb-composer-pins {
  gap: 6px;
  padding: 0 0 8px;
  margin-bottom: 8px;
}

.nb-mobile-kit .pipeline-launcher-compact-golden .nb-composer-pins .nb-pin,
.nb-mobile-kit .pipeline-launcher-compact-golden .nb-composer-pins .nb-pin-add {
  min-height: 28px;
  padding: 4px 9px;
}

.nb-mobile-kit .pipeline-launcher-compact-golden .pipeline-launcher-composer-input {
  min-height: 64px;
  padding: 10px 0 12px;
  border: 0;
  background: transparent;
  font-size: 15px;
  line-height: 1.35;
  resize: none;
}

.nb-mobile-kit .pipeline-launcher-compact-golden .nb-composer-footer {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.nb-mobile-kit .pipeline-launcher-compact-golden .nb-composer-tools {
  width: 100%;
  gap: 8px;
}

.nb-mobile-kit .pipeline-launcher-compact-golden .nb-composer-tools button:not(.nb-model-trigger) {
  width: 32px;
  height: 32px;
}

.nb-mobile-kit .pipeline-launcher-compact-golden .nb-composer-tools .nb-model-trigger {
  max-width: min(180px, 48vw);
  overflow: hidden;
  white-space: nowrap;
}

.nb-mobile-kit .pipeline-launcher-compact-golden .nb-composer-tools .nb-model-trigger .nm {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nb-mobile-kit .pipeline-launcher-compact-golden .nb-composer-send-group {
  width: 100%;
  justify-content: space-between;
}

.nb-mobile-kit .pipeline-launcher-compact-golden .nb-composer-meta {
  max-width: calc(100% - 58px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nb-mobile-kit .pipeline-launcher-compact-golden .nb-composer-send {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.nb-mobile-kit .pipeline-launcher-compact-golden .nb-composer-suggest {
  gap: 6px;
  margin-top: 7px;
}

.nb-mobile-kit .pipeline-launcher-compact-golden .nb-prompt-chip {
  min-height: 28px;
  padding: 5px 9px;
  font-size: 11.5px;
}

.nb-mobile-kit .pipeline-launcher-compact-golden .pipeline-launcher-composer-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  border-top: 1px dashed var(--border-subtle);
  margin-top: 10px;
  padding-top: 12px;
}

.nb-mobile-kit .pipeline-launcher-compact-golden .pipeline-launcher-option-field,
.nb-mobile-kit .pipeline-launcher-compact-golden .pipeline-launcher-schedule-field,
.nb-mobile-kit .pipeline-launcher-compact-golden .pipeline-launcher-composed-note {
  display: flex;
  min-width: 0;
  gap: 6px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 650;
}

.nb-mobile-kit .pipeline-launcher-compact-golden .pipeline-launcher-option-field {
  flex-direction: column;
  align-items: stretch;
}

.nb-mobile-kit .pipeline-launcher-compact-golden .pipeline-launcher-option-field span {
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nb-mobile-kit .pipeline-launcher-compact-golden .pipeline-launcher-option-field select,
.nb-mobile-kit .pipeline-launcher-compact-golden .pipeline-launcher-option-field input,
.nb-mobile-kit .pipeline-launcher-compact-golden .pipeline-launcher-cadence {
  min-height: 40px;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: var(--bg-surface);
  color: var(--text-primary);
  padding: 0 10px;
  font-size: 14px;
  font-weight: 650;
}

.nb-mobile-kit .m-scenario-more,
.nb-mobile-kit .m-mobile-more,
.nb-mobile-kit .m-chat-evidence {
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: var(--bg-surface);
}

.nb-mobile-kit .m-scenario-more {
  padding: 0;
}

.nb-mobile-kit .m-scenario-more summary,
.nb-mobile-kit .m-mobile-more summary,
.nb-mobile-kit .m-chat-evidence summary {
  display: flex;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 820;
  list-style: none;
}

.nb-mobile-kit .m-scenario-more summary::-webkit-details-marker,
.nb-mobile-kit .m-mobile-more summary::-webkit-details-marker,
.nb-mobile-kit .m-chat-evidence summary::-webkit-details-marker {
  display: none;
}

.nb-mobile-kit .m-scenario-more summary::after,
.nb-mobile-kit .m-mobile-more summary::after,
.nb-mobile-kit .m-chat-evidence summary::after {
  content: "+";
  color: var(--text-muted);
  font-weight: 900;
}

.nb-mobile-kit .m-scenario-more[open] summary::after,
.nb-mobile-kit .m-mobile-more[open] summary::after,
.nb-mobile-kit .m-chat-evidence[open] summary::after {
  content: "-";
}

.nb-mobile-kit .m-mobile-more summary small,
.nb-mobile-kit .m-chat-evidence summary small {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 650;
}

.nb-mobile-kit .m-scenario-more button {
  display: block;
  width: calc(100% - 16px);
  margin: 0 8px 8px;
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
  background: var(--bg-muted);
  color: var(--text-primary);
  padding: 9px 10px;
  text-align: left;
  font-size: 12px;
  font-weight: 760;
}

.nb-mobile-kit .m-scenario-more button span {
  display: block;
  margin-bottom: 2px;
  color: var(--text-muted);
  font-size: 9.5px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nb-mobile-kit .m-mobile-more .m-watch,
.nb-mobile-kit .m-mobile-more .m-threads {
  padding: 0 10px 10px;
}

.nb-mobile-kit .m-chat-evidence {
  margin-top: 12px;
}

.nb-mobile-kit .m-chat-evidence .m-strip-head {
  padding: 0 12px;
}

.nb-mobile-kit .m-chat-evidence .m-src-row {
  margin-right: 10px;
  margin-left: 10px;
}

@media (max-width: 760px) {
  .nb-kit .nb-first-list .nb-first-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .nb-kit .nb-first-list .nb-first-actions {
    min-width: 0;
    align-items: stretch;
  }
}
