:root {
  --bg: #050604;
  --surface: rgba(13, 15, 12, 0.82);
  --surface-2: rgba(24, 27, 22, 0.76);
  --surface-paper: #e8e0cf;
  --text: #f1eee4;
  --muted: rgba(241, 238, 228, 0.68);
  --faint: rgba(241, 238, 228, 0.42);
  --line: rgba(232, 224, 207, 0.13);
  --line-strong: rgba(232, 224, 207, 0.32);
  --glass: rgba(10, 12, 9, 0.72);
  --glass-soft: rgba(232, 224, 207, 0.055);
  --acc: #b7ff5a;
  --acc-2: #ffb35c;
  --acc-soft: rgba(183, 255, 90, 0.16);
  --danger: #ff6d59;
  --shadow: rgba(0, 0, 0, 0.62);
  --font-body: "Urbanist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Urbanist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

html {
  background:
    radial-gradient(circle at 12% -10%, rgba(183, 255, 90, 0.12), transparent 30%),
    radial-gradient(circle at 92% 12%, rgba(255, 179, 92, 0.11), transparent 28%),
    var(--bg);
}

body {
  color: var(--text);
  font-family: var(--font-body);
  letter-spacing: 0;
}

button,
input,
textarea {
  font: inherit;
}

img,
video {
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

body::before,
body::after {
  content: none;
}

.app-header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 80;
  width: 74px;
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.88);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: visible;
  transition: width 180ms ease, background 180ms ease;
}

body:not([data-stage="whiteboard"]) .app-header {
  display: none;
}

body[data-workspace-mode="chat"] .app-header:hover {
  width: 260px;
  align-items: stretch;
  background: rgba(0, 0, 0, 0.94);
}

.app-brand {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-size: 16px;
  font-weight: 800;
}

.app-brand > span:not(.app-brand-mark) {
  display: none;
}

body[data-workspace-mode="chat"] .app-header:hover .app-brand {
  justify-content: flex-start;
}

body[data-workspace-mode="chat"] .app-header:hover .app-brand > span:not(.app-brand-mark) {
  display: inline;
}

.app-brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.app-brand-mark img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: none;
}

.app-nav {
  width: 100%;
  flex: 1;
  margin: 10px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

body[data-workspace-mode="chat"] .app-header:hover .app-nav {
  align-items: stretch;
}

.app-nav a,
.app-nav button {
  position: relative;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.58);
  text-decoration: none;
  background: transparent;
  border: 1px solid transparent;
  font: inherit;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

body[data-workspace-mode="chat"] .app-header:hover .app-nav button {
  width: 100%;
  padding: 0 16px;
  grid-template-columns: 30px minmax(0, 1fr);
  column-gap: 14px;
  justify-items: start;
}

.app-nav svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-nav img {
  width: 22px;
  height: 22px;
  display: block;
  object-fit: contain;
  opacity: 0.58;
  filter: invert(1);
  transition: opacity 160ms ease, transform 160ms ease;
}

.app-nav a::after,
.app-nav button::after {
  content: attr(data-label);
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%) translateX(-4px);
  padding: 7px 9px;
  border-radius: 9px;
  color: #ffffff;
  background: rgba(16, 16, 16, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease;
}

body[data-workspace-mode="chat"] .app-header:hover .app-nav button::after {
  position: static;
  transform: none;
  padding: 0;
  border: 0;
  color: rgba(255, 255, 255, 0.74);
  background: transparent;
  font-size: 13px;
  text-align: left;
  opacity: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 1;
}

.app-nav a:hover,
.app-nav a:focus-visible,
.app-nav button:hover,
.app-nav button:focus-visible,
.app-nav a.is-active,
.app-nav button.is-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  outline: none;
}

.app-nav a:hover img,
.app-nav a:focus-visible img,
.app-nav button:hover img,
.app-nav button:focus-visible img,
.app-nav button.is-open img,
.app-nav button.is-active img {
  opacity: 1;
  transform: translateY(-1px);
}

.app-nav a:hover::after,
.app-nav a:focus-visible::after,
.app-nav button:hover::after,
.app-nav button:focus-visible::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

body[data-workspace-mode="chat"] .app-header:hover .app-nav button:hover::after,
body[data-workspace-mode="chat"] .app-header:hover .app-nav button:focus-visible::after {
  transform: none;
}

.app-nav-projects {
  margin-top: 0;
}

.sidebar-chat-list {
  display: none;
}

body[data-workspace-mode="chat"] .sidebar-chat-list {
  width: 42px;
  margin: -2px 0 8px;
  padding: 0 0 0 12px;
  display: none;
  gap: 5px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

body[data-workspace-mode="chat"] .app-header:hover .sidebar-chat-list {
  width: 100%;
  display: grid;
}

.sidebar-chat-list button {
  width: 34px;
  min-height: 30px;
  padding: 0;
  display: grid;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.68);
  background: transparent;
  cursor: pointer;
  overflow: hidden;
}

.sidebar-chat-list button span {
  width: 7px;
  height: 7px;
  margin-left: 13px;
  border-radius: 50%;
  color: transparent;
  background: rgba(255, 255, 255, 0.36);
  overflow: hidden;
  white-space: nowrap;
}

.sidebar-chat-list button.is-active {
  border-color: rgba(183, 255, 90, 0.22);
  background: rgba(183, 255, 90, 0.08);
}

.sidebar-chat-list button.is-active span {
  background: var(--acc);
}

body[data-workspace-mode="chat"] .app-header:hover .sidebar-chat-list button {
  width: 100%;
  padding: 0 10px;
}

body[data-workspace-mode="chat"] .app-header:hover .sidebar-chat-list button span {
  width: auto;
  height: auto;
  margin-left: 0;
  border-radius: 0;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
}

.app-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.sidebar-help,
.account-menu {
  position: relative;
}

body[data-workspace-mode="chat"] .app-header:hover .app-actions {
  align-items: stretch;
}

body[data-workspace-mode="chat"] .app-header:hover .account-menu {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-avatar-label {
  display: none;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

body[data-workspace-mode="chat"] .app-header:hover .app-avatar-label {
  display: inline;
}

.app-actions button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: transparent;
  cursor: pointer;
}

.app-actions button:hover,
.app-actions button:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.app-actions svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-actions img {
  width: 21px;
  height: 21px;
  display: block;
  object-fit: contain;
  opacity: 0.72;
  filter: invert(1);
  transition: opacity 160ms ease, transform 160ms ease;
}

.app-actions button:hover img,
.app-actions button:focus-visible img {
  opacity: 1;
  transform: translateY(-1px);
}

.sidebar-help-popover,
.account-popover {
  position: absolute;
  left: calc(100% + 12px);
  bottom: -8px;
  z-index: 120;
  width: 286px;
  padding: 13px 14px;
  border: 1px solid rgba(232, 224, 207, 0.14);
  border-radius: 9px;
  color: rgba(241, 238, 228, 0.82);
  background:
    linear-gradient(135deg, rgba(232, 224, 207, 0.09), transparent 42%),
    rgba(9, 11, 8, 0.94);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.sidebar-help-popover {
  opacity: 0;
  transform: translateX(-6px);
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease;
}

.sidebar-help:hover .sidebar-help-popover,
.sidebar-help:focus-within .sidebar-help-popover {
  opacity: 1;
  transform: translateX(0);
}

.sidebar-help-popover strong,
.account-popover strong {
  display: block;
  margin-bottom: 8px;
  color: var(--surface-paper);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sidebar-help-popover ul {
  margin: 0;
  padding-left: 16px;
  display: grid;
  gap: 6px;
  font-size: 12px;
  line-height: 1.34;
}

.account-popover[hidden] {
  display: none;
}

.account-popover {
  bottom: 0;
  width: 238px;
}

.account-popover > span {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
}

.account-popover dl {
  margin: 0;
  display: grid;
  gap: 8px;
}

.account-popover dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
}

.account-popover dt {
  color: var(--faint);
}

.account-popover dd {
  margin: 0;
  color: var(--surface-paper);
  font-weight: 800;
}

.app-avatar {
  font-size: 14px;
  font-weight: 800;
  background:
    radial-gradient(circle at 34% 25%, rgba(255, 255, 255, 0.44), transparent 28%),
    linear-gradient(135deg, #314333, #0d0d0d) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.bip-page {
  padding: 44px 24px 44px 98px;
}

body:not([data-stage="whiteboard"]) .bip-page {
  padding: 44px 24px;
}

.bip-screen {
  inset: 44px 24px 44px 98px;
  max-height: calc(100dvh - 88px);
}

.bip-screen.whiteboard-screen {
  inset: 0;
  max-height: none;
}

body:not([data-stage="whiteboard"]) .bip-screen {
  inset: 44px 24px;
}

.bip-bg-video {
  filter: grayscale(0.86) contrast(1.18) brightness(0.72);
  opacity: 0.62;
}

body[data-stage="dashboard"] .bip-bg-video {
  opacity: 0.5;
}

.bip-video-overlay {
  background:
    radial-gradient(circle at 55% 40%, rgba(183, 255, 90, 0.06), transparent 32%),
    linear-gradient(105deg, rgba(5, 6, 4, 0.3), rgba(5, 6, 4, 0.88) 70%),
    linear-gradient(to bottom, rgba(5, 6, 4, 0.22), rgba(5, 6, 4, 0.82));
}

.bip-screen {
  filter: blur(7px) saturate(0.82);
}

.welcome-screen h1,
.intake-copy h2,
.dashboard-copy h1 {
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: 0;
}

.welcome-screen h1 {
  font-size: clamp(54px, 8vw, 132px);
  font-style: normal;
}

.welcome-screen h1 span:first-child {
  color: var(--surface-paper);
}

.welcome-screen h1 span:last-child {
  color: var(--acc);
  text-shadow: 0 0 34px rgba(183, 255, 90, 0.2);
}

.tap-cue,
.wb-label,
.context-tree small,
.node-picker > span,
.node-picker small,
.node-detail-section-title span,
.node-detail-body label > span,
.whiteboard-help-popover strong {
  font-family: var(--font-mono);
}

.dashboard-shell {
  justify-content: center;
  gap: 26px;
  padding: min(5vh, 54px) 0;
}

.dashboard-copy h1 {
  max-width: 760px;
  font-size: clamp(48px, 7vw, 104px);
  line-height: 0.86;
  color: var(--surface-paper);
}

.dashboard-copy::before {
  content: "Angle";
  width: fit-content;
  margin-bottom: 13px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--acc);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: rgba(5, 6, 4, 0.58);
}

.project-grid {
  gap: 12px;
  perspective: 1200px;
  grid-template-columns: repeat(2, minmax(0, 360px));
  justify-content: center;
}

.project-card {
  min-height: 298px;
  border-radius: 8px;
  border-color: rgba(232, 224, 207, 0.15);
  background:
    linear-gradient(146deg, rgba(232, 224, 207, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(20, 23, 18, 0.86), rgba(8, 9, 7, 0.82));
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.08),
    0 30px 90px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(14px) saturate(1.04);
  -webkit-backdrop-filter: blur(14px) saturate(1.04);
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(232, 224, 207, 0.075);
  border-radius: 4px;
  pointer-events: none;
}

.project-card:hover,
.project-card:focus-visible {
  transform: translateY(-7px) rotateX(2deg);
  border-color: rgba(183, 255, 90, 0.46);
  background:
    linear-gradient(146deg, rgba(183, 255, 90, 0.12), transparent 40%),
    linear-gradient(180deg, rgba(25, 30, 20, 0.92), rgba(8, 9, 7, 0.9));
}

.project-card strong {
  font-family: var(--font-display);
  font-size: clamp(30px, 3vw, 45px);
  font-weight: 400;
}

.project-card-action {
  border-radius: 6px;
  color: var(--bg);
  background: var(--surface-paper);
}

.project-art {
  width: min(178px, 58%);
  border-radius: 12px;
  transform: rotate(-2deg);
  background: #151712;
  box-shadow:
    0 18px 60px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(232, 224, 207, 0.12);
}

.project-card:nth-child(even) .project-art {
  transform: rotate(2deg);
}

.project-card[data-open-project="CLICK ME"] .project-art {
  padding: 24px;
}

.project-card[data-open-project="CLICK ME"] .project-art img {
  object-fit: contain;
}

.project-meta {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-card-new {
  border-color: rgba(183, 255, 90, 0.32);
  background:
    linear-gradient(135deg, rgba(183, 255, 90, 0.08), transparent 42%),
    rgba(10, 12, 9, 0.46);
}

.project-card-new[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.72;
}

.project-card-new[aria-disabled="true"]:hover,
.project-card-new[aria-disabled="true"]:focus-visible {
  transform: none;
  border-color: rgba(183, 255, 90, 0.32);
}

.project-new-icon {
  border-radius: 8px;
  color: var(--bg);
  border-color: transparent;
  background: var(--acc);
}

.intake-screen {
  width: min(920px, 100%);
}

.intake-copy h2 {
  max-width: 720px;
  font-size: clamp(48px, 7.4vw, 96px);
  color: var(--surface-paper);
}

.intake-copy::before {
  content: "Unstructured context is welcome";
  display: block;
  margin-bottom: 12px;
  color: var(--acc);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tp-shell {
  gap: 10px;
  padding: 12px;
  overflow: visible;
  border-radius: 9px;
  border-color: rgba(232, 224, 207, 0.24);
  background:
    linear-gradient(115deg, rgba(232, 224, 207, 0.08), transparent 42%),
    rgba(8, 9, 7, 0.78);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.07),
    0 32px 120px rgba(0, 0, 0, 0.46);
}

.tp-shell::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(232, 224, 207, 0.075);
  border-radius: 5px;
  pointer-events: none;
}

.tp-attachments,
.tp-input-area,
.tp-toolbar {
  position: relative;
  z-index: 1;
}

.tp-attachments {
  padding: 0;
}

.tp-input-area {
  padding: 0;
}

.tp-edit {
  min-height: 158px;
  padding: 14px;
  border: 1px solid rgba(232, 224, 207, 0.11);
  border-radius: 7px;
  color: var(--surface-paper);
  background: rgba(3, 4, 2, 0.28);
  font-size: 18px;
}

.tp-edit:empty::before {
  color: rgba(232, 224, 207, 0.38);
}

.tp-plus-btn,
.tp-wand-btn,
.tp-send-btn,
.whiteboard-tools button,
.context-panel-actions button,
.context-add-dropdown button {
  border-radius: 7px;
}

.tp-plus-btn,
.tp-wand-btn {
  min-width: 38px;
  max-width: 38px;
  height: 38px;
}

.tp-toolbar {
  min-height: 40px;
  padding: 0;
  overflow: visible;
}

.tp-send-btn {
  width: 40px;
  height: 40px;
  color: var(--bg);
  background: var(--acc);
  border-color: transparent;
}

.tp-send-btn img {
  width: 20px;
  height: 20px;
  filter: none;
}

.demo-disabled-send {
  position: relative;
}

.demo-disabled-send:hover,
.demo-disabled-send:focus-visible {
  background: rgba(232, 224, 207, 0.18) !important;
  color: rgba(241, 238, 228, 0.56) !important;
  cursor: not-allowed;
  filter: grayscale(1);
}

.demo-disabled-send::after {
  content: attr(data-demo-tooltip);
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  z-index: 200;
  width: max-content;
  max-width: 240px;
  padding: 8px 10px;
  border: 1px solid rgba(232, 224, 207, 0.14);
  border-radius: 8px;
  color: rgba(241, 238, 228, 0.84);
  background: rgba(6, 8, 5, 0.96);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.42);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.demo-disabled-send:hover::after,
.demo-disabled-send:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.loading-orbit {
  border-radius: 10px;
  border-color: rgba(232, 224, 207, 0.18);
  background: rgba(8, 9, 7, 0.72);
}

.loading-shell p {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.whiteboard-app {
  background:
    radial-gradient(circle at 15% 10%, rgba(183, 255, 90, 0.08), transparent 28%),
    radial-gradient(circle at 86% 20%, rgba(255, 179, 92, 0.07), transparent 24%),
    #030402;
}

.whiteboard-bg-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.11;
  filter: grayscale(0.85) contrast(1.2) brightness(0.62);
  pointer-events: none;
}

.whiteboard-app::before {
  opacity: 0.18;
  background:
    linear-gradient(115deg, transparent 0 42%, rgba(232, 224, 207, 0.06) 42% 43%, transparent 43%),
    radial-gradient(circle at 70% 55%, rgba(183, 255, 90, 0.1), transparent 24%);
}

.whiteboard-canvas {
  background:
    radial-gradient(circle at 1px 1px, rgba(232, 224, 207, 0.12) 1px, transparent 0),
    radial-gradient(circle at 1px 1px, rgba(183, 255, 90, 0.035) 1px, transparent 0),
    linear-gradient(rgba(232, 224, 207, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 224, 207, 0.025) 1px, transparent 1px),
    rgba(3, 4, 2, 0.76);
}

.whiteboard-tools {
  left: 94px;
  top: auto;
  bottom: 24px;
  transform: none;
}

.context-panel {
  left: var(--context-left, 92px);
  top: var(--context-top, 24px);
}

.whiteboard-tools.is-floating {
  left: max(var(--tools-left, 94px), 88px);
}

.context-panel.is-floating {
  left: max(var(--context-left, 92px), 88px);
}

.chat-drawer-handle img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: invert(1) drop-shadow(0 8px 16px rgba(0, 0, 0, 0.45));
}

.chat-drawer-handle.is-open {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.14);
}

.chat-drawer {
  position: absolute;
  left: 74px;
  top: 0;
  bottom: 0;
  z-index: 7;
  width: calc(100vw - 74px);
  padding: 22px 26px 22px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 14px;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 10%, rgba(183, 255, 90, 0.08), transparent 26%),
    linear-gradient(135deg, rgba(232, 224, 207, 0.08), transparent 42%),
    rgba(4, 5, 3, 0.94);
  border-right: 1px solid rgba(232, 224, 207, 0.14);
  box-shadow: 34px 0 140px rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(22px) saturate(1.05);
  -webkit-backdrop-filter: blur(22px) saturate(1.05);
  transform: translateX(-100%);
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.whiteboard-app.is-chat-mode .whiteboard-canvas,
.whiteboard-app.is-chat-mode .context-panel,
.whiteboard-app.is-chat-mode .whiteboard-tools,
.whiteboard-app.is-chat-mode .whiteboard-help-button,
.whiteboard-app.is-chat-mode .whiteboard-help-popover {
  display: none;
}

.whiteboard-app.is-chat-mode .chat-drawer {
  border-right: 0;
  box-shadow: none;
  transform: none;
}

.chat-drawer.is-open {
  transform: translateX(0);
}

.chat-drawer-list {
  display: none;
}

.chat-drawer-list::-webkit-scrollbar,
.chat-drawer-log::-webkit-scrollbar {
  display: none;
}

.chat-drawer-list button {
  border: 1px solid rgba(232, 224, 207, 0.11);
  border-radius: 7px;
  min-height: 40px;
  padding: 0 11px;
  display: grid;
  align-items: center;
  color: inherit;
  text-align: left;
  background:
    linear-gradient(135deg, rgba(232, 224, 207, 0.08), transparent 48%),
    rgba(8, 9, 7, 0.58);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.chat-drawer-list button:hover,
.chat-drawer-list button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(232, 224, 207, 0.22);
  outline: none;
}

.chat-drawer-list button.is-active {
  border-color: rgba(183, 255, 90, 0.34);
  background: rgba(183, 255, 90, 0.08);
}

.chat-drawer-list span {
  color: var(--surface-paper);
  font-weight: 800;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-drawer-thread {
  width: min(980px, 100%);
  justify-self: center;
  min-height: 0;
  padding: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 14px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.chat-drawer-thread.is-new-chat {
  width: min(760px, 100%);
  grid-template-rows: auto auto auto;
  align-content: center;
  gap: 18px;
  padding-bottom: 8vh;
}

.chat-drawer-log {
  min-height: 0;
  padding: 10px 10px 22px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.chat-drawer-thread.is-new-chat .chat-drawer-log {
  min-height: auto;
  padding: 0;
  overflow: visible;
  align-items: center;
}

.chat-new-state {
  width: min(680px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 22px;
  text-align: center;
}

.chat-new-state h1 {
  margin: 0;
  color: var(--surface-paper);
  font-size: 48px;
  line-height: 1.02;
  letter-spacing: 0;
}

.chat-drawer-recents {
  width: min(560px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 8px;
}

.chat-drawer-recents[hidden] {
  display: none;
}

.chat-drawer-recents button {
  min-height: 44px;
  border: 1px solid rgba(232, 224, 207, 0.12);
  border-radius: 8px;
  padding: 0 14px;
  color: rgba(241, 238, 228, 0.78);
  text-align: left;
  background:
    linear-gradient(135deg, rgba(232, 224, 207, 0.065), transparent 44%),
    rgba(232, 224, 207, 0.035);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.chat-drawer-recents button:hover,
.chat-drawer-recents button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(183, 255, 90, 0.28);
  background: rgba(183, 255, 90, 0.07);
  outline: none;
}

.chat-drawer-recents span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 800;
}

.chat-message {
  margin: 0;
  max-width: min(68ch, 72%);
  padding: 12px 14px;
  display: grid;
  gap: 5px;
  border: 1px solid rgba(232, 224, 207, 0.1);
  border-radius: 8px;
  color: rgba(241, 238, 228, 0.82);
  background:
    linear-gradient(135deg, rgba(232, 224, 207, 0.08), transparent 46%),
    rgba(232, 224, 207, 0.055);
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.chat-message > span:first-child,
.chat-llm-page > header span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(241, 238, 228, 0.48);
}

.chat-message p {
  margin: 0;
}

.chat-message.is-user {
  align-self: flex-end;
  color: #061006;
  background: var(--acc);
  border-color: transparent;
}

.chat-message.is-user > span:first-child {
  color: rgba(6, 16, 6, 0.58);
}

.chat-llm-page {
  width: min(880px, 100%);
  margin: 8px 0 18px;
  padding: 22px;
  display: grid;
  gap: 18px;
  border: 1px solid rgba(232, 224, 207, 0.14);
  border-radius: 8px;
  color: rgba(241, 238, 228, 0.86);
  background:
    linear-gradient(145deg, rgba(232, 224, 207, 0.07), transparent 38%),
    rgba(7, 8, 6, 0.8);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
}

.chat-llm-page > header {
  display: grid;
  gap: 6px;
}

.chat-llm-page > header strong {
  color: var(--surface-paper);
  font-size: 20px;
  line-height: 1.12;
}

.llm-section {
  display: grid;
  gap: 10px;
}

.llm-section h3 {
  margin: 0;
  color: var(--surface-paper);
  font-size: 15px;
  line-height: 1.2;
}

.llm-section p,
.llm-section li,
.llm-section dd,
.llm-draft p {
  margin: 0;
  color: rgba(241, 238, 228, 0.78);
  line-height: 1.52;
}

.llm-section ul,
.llm-section ol {
  margin: 0;
  padding-left: 21px;
  display: grid;
  gap: 5px;
}

.llm-section blockquote {
  margin: 2px 0 0;
  padding: 12px 14px;
  border-left: 3px solid var(--acc);
  border-radius: 0 7px 7px 0;
  color: var(--surface-paper);
  background: rgba(183, 255, 90, 0.065);
  line-height: 1.48;
}

.llm-section dl {
  margin: 0;
  display: grid;
  gap: 8px;
}

.llm-section dl div {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 14px;
}

.llm-section dt {
  color: rgba(241, 238, 228, 0.5);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.llm-draft {
  padding: 16px;
  display: grid;
  gap: 10px;
  border: 1px solid rgba(232, 224, 207, 0.12);
  border-radius: 8px;
  background: rgba(232, 224, 207, 0.045);
}

.chat-drawer-form {
  width: min(900px, 100%);
  justify-self: center;
  padding: 12px;
  display: grid;
  grid-template-columns: 46px 1fr 46px;
  gap: 10px;
  border: 1px solid rgba(232, 224, 207, 0.13);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(232, 224, 207, 0.08), transparent 42%),
    rgba(232, 224, 207, 0.045);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.32);
  overflow: visible;
}

.chat-drawer-thread.is-new-chat .chat-drawer-form {
  width: min(720px, 100%);
}

.chat-drawer-form input {
  min-width: 0;
  height: 48px;
  border: 1px solid rgba(232, 224, 207, 0.13);
  border-radius: 7px;
  padding: 0 13px;
  color: var(--text);
  background: rgba(232, 224, 207, 0.055);
  outline: none;
}

.chat-drawer-form button {
  border: 0;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--acc);
  cursor: pointer;
}

.chat-drawer-form .chat-upload-btn {
  background: rgba(232, 224, 207, 0.1);
}

.chat-drawer-form .chat-upload-btn img {
  filter: invert(1);
  opacity: 0.78;
}

.chat-drawer-form img {
  width: 19px;
  height: 19px;
}

.context-panel,
.whiteboard-tools,
.node-picker,
.whiteboard-help-popover,
.node-detail-panel,
.whiteboard-prompt .tp-shell {
  border-radius: 9px;
  border-color: rgba(232, 224, 207, 0.16);
  background:
    linear-gradient(135deg, rgba(232, 224, 207, 0.08), transparent 43%),
    rgba(9, 11, 8, 0.78);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.06),
    0 28px 110px rgba(0, 0, 0, 0.42);
}

.context-panel-header,
.node-detail-header {
  border-bottom-color: rgba(232, 224, 207, 0.11);
}

.context-panel-header strong {
  color: var(--surface-paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.context-tree summary,
.context-tree button {
  border-radius: 6px;
}

.context-tree summary:hover,
.context-tree button:hover,
.context-tree summary:focus-visible,
.context-tree button:focus-visible {
  background: rgba(232, 224, 207, 0.08);
}

.wb-box {
  width: 250px !important;
  height: 188px !important;
  min-width: 250px;
  min-height: 188px;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible;
}

.wb-box::before {
  content: "";
  position: absolute;
  inset: 0 0 34px;
  z-index: 0;
  border-radius: 24px;
  border: 1px solid rgba(232, 224, 207, 0.18);
  background:
    linear-gradient(145deg, rgba(232, 224, 207, 0.12), transparent 47%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(0, 0, 0, 0.08)),
    rgba(22, 23, 20, 0.9);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.07),
    0 28px 82px rgba(0, 0, 0, 0.48);
  pointer-events: none;
}

.wb-box.is-text::before {
  inset: 0;
}

.wb-box {
  border-radius: 24px;
  border-color: rgba(232, 224, 207, 0.18);
}

.wb-box.is-selected,
.wb-box.is-active {
  border-color: rgba(232, 224, 207, 0.72);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.08),
    0 22px 70px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(183, 255, 90, 0.13);
}

.wb-box.is-selected::after {
  inset: -5px -5px 29px;
  border-radius: 29px;
  border-color: rgba(183, 255, 90, 0.56);
}

.wb-content {
  position: absolute;
  inset: 0;
  padding: 0;
  display: block;
  overflow: visible;
}

.wb-visual,
.wb-preview,
.wb-file-type {
  position: absolute;
  left: 12px;
  top: 10px;
  width: calc(100% - 24px);
  height: 134px;
  min-height: 134px;
  max-height: 134px !important;
  margin: 0;
  border-radius: 16px;
  overflow: visible;
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 255, 255, 0.18), transparent 46%),
    rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.wb-preview {
  overflow: hidden;
}

.wb-preview img,
.wb-preview video {
  object-fit: cover;
}

.wb-visual {
  display: grid;
  place-items: center;
}

.wb-visual::before {
  inset: 9px;
  border-radius: 13px;
}

.wb-visual::after {
  inset: auto 11px 10px 11px;
  height: 20px;
  border-radius: 10px;
}

.wb-visual-icon {
  position: relative;
  z-index: 2;
  max-width: 112px;
  max-height: 96px;
  object-fit: contain;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.42));
}

.wb-visual-lines,
.wb-visual-card,
.wb-visual-chip {
  opacity: 0.42;
}

.wb-node-icon {
  position: absolute;
  left: 12px;
  top: -20px;
  width: calc(100% - 24px);
  height: 142px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  overflow: visible;
}

.wb-node-icon img {
  width: 104%;
  height: 122%;
  object-fit: contain;
  filter: drop-shadow(0 20px 28px rgba(0, 0, 0, 0.42));
  transform: translateY(-20px);
}

/* Per-node icon tuning. Adjust these to position/scale each icon type. */
.wb-node-icon-documents img,
.wb-node-icon-file img,
.wb-node-icon-folder img {
  width: 104%;
  height: 122%;
  transform: translateY(-60px);
}

.wb-node-icon-chat img {
  width: 130%;
  height: 122%;
  transform: translateY(-70px);
}

.wb-node-icon-icp img {
  width: 126%;
  height: 120%;
  transform: translateY(-70px);
}

.wb-node-icon-instruction img {
  width: 140%;
  height: 112%;
  transform: translateY(-80px);
}

.wb-node-icon-media img {
  width: 122%;
  height: 122%;
  transform: translateY(-62px);
}

.wb-node-icon-output img,
.wb-node-icon-post img {
  width: 112%;
  height: 126%;
  transform: translateY(-50px);
}

.wb-node-icon-profile img,
.wb-node-icon-website img {
  width: 106%;
  height: 124%;
  transform: translateY(-50px);
}

.wb-box.has-media .wb-node-icon {
  display: none;
}

.wb-box strong {
  position: absolute;
  left: 0;
  top: 164px;
  width: 100%;
  max-width: 100%;
  color: var(--surface-paper);
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  margin: 0;
  padding: 0 8px;
  text-align: center;
  -webkit-line-clamp: 1;
  text-shadow: 0 16px 34px rgba(0, 0, 0, 0.74);
}

.wb-box p {
  display: none;
  color: rgba(241, 238, 228, 0.64);
}

.wb-box[data-node-key="linkedin-post"] .wb-content {
  border-color: rgba(183, 255, 90, 0.22);
  background:
    radial-gradient(circle at 78% 18%, rgba(183, 255, 90, 0.16), transparent 34%),
    linear-gradient(145deg, rgba(183, 255, 90, 0.08), transparent 42%),
    rgba(16, 22, 12, 0.72);
}

.wb-label {
  display: none;
}

.resize-handle {
  display: none !important;
}

.node-handle {
  border-color: rgba(232, 224, 207, 0.36);
  background: #030402;
}

.node-handle[data-port-index="0"] {
  top: 116px;
}

.connector-layer path {
  stroke-width: 1.7;
  filter: drop-shadow(0 0 8px rgba(183, 255, 90, 0.2));
}

.node-detail-panel {
  position: relative;
  width: min(1040px, calc(100vw - 56px));
  height: min(820px, calc(100vh - 56px));
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.node-detail {
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(16px) saturate(0.92);
  -webkit-backdrop-filter: blur(16px) saturate(0.92);
}

.node-detail-header {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  padding: 0;
  border: 0;
  justify-content: flex-end;
}

.node-detail-header button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border-color: rgba(232, 224, 207, 0.22);
  color: var(--surface-paper);
  background: rgba(4, 5, 3, 0.64);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.node-detail-body {
  padding: 0;
  overflow: visible;
}

.node-detail-title {
  display: none;
}

.node-detail-shell {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr) minmax(220px, 280px);
  gap: 14px;
}

.node-detail-shell.is-minimal {
  grid-template-columns: minmax(0, 1fr);
}

.node-detail-shell.is-preview {
  height: 100%;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}

.node-detail-overview,
.node-detail-page,
.node-detail-notes {
  min-height: 0;
  border: 1px solid rgba(232, 224, 207, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(232, 224, 207, 0.06), transparent 42%),
    rgba(232, 224, 207, 0.035);
}

.node-detail-overview {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: auto;
  scrollbar-width: none;
}

.node-detail-overview::-webkit-scrollbar,
.node-detail-page::-webkit-scrollbar,
.node-detail-note-list::-webkit-scrollbar {
  display: none;
}

.node-detail-kicker {
  color: var(--acc);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.node-detail-icon {
  width: 118px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(232, 224, 207, 0.06);
}

.node-detail-icon img {
  width: 116%;
  height: 116%;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.38));
}

.node-detail-icon.is-profile-photo {
  width: 124px;
  height: 124px;
  overflow: hidden;
  border-radius: 50%;
  background: rgba(232, 224, 207, 0.09);
}

.node-detail-icon.is-profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
}

.node-detail-overview h2,
.node-detail-page h2 {
  margin: 0;
  color: var(--surface-paper);
  font-size: 24px;
  line-height: 1.04;
}

.node-detail-overview p {
  margin: 0;
  color: rgba(241, 238, 228, 0.68);
  line-height: 1.42;
}

.node-detail-meta {
  margin: 4px 0 0;
  display: grid;
  gap: 10px;
}

.node-detail-meta div {
  display: grid;
  gap: 4px;
}

.node-detail-meta dt {
  color: rgba(241, 238, 228, 0.5);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.node-detail-meta dd {
  margin: 0;
  color: rgba(241, 238, 228, 0.78);
  line-height: 1.38;
}

.node-detail-page {
  padding: 22px;
  display: grid;
  align-content: start;
  gap: 20px;
  overflow: auto;
  scrollbar-width: none;
}

.node-detail-page.is-minimal {
  padding: 18px;
  gap: 14px;
}

.node-detail-page.is-preview {
  min-height: 0;
  padding: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 14px;
  overflow: visible;
  border: 0;
  background: transparent;
}

.node-preview-content {
  min-height: 0;
  display: grid;
  align-content: center;
  gap: 12px;
  overflow: auto;
  scrollbar-width: none;
}

.node-preview-content::-webkit-scrollbar {
  display: none;
}

.node-detail-page > header {
  display: grid;
  gap: 7px;
}

.node-detail-page > header span {
  color: var(--acc);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.node-content-section {
  padding: 0;
  border-bottom: 0;
}

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

.node-detail-page.is-preview .node-content-section h3 {
  display: none;
}

.node-detail-page.is-preview .node-content-section h3:not(:empty) {
  display: none;
}

.node-detail-page.is-preview .node-content-section:has(.detail-image) h3 {
  display: block;
  margin: 0 0 10px;
  color: var(--surface-paper);
  font-size: 18px;
  line-height: 1.2;
  text-align: center;
}

.detail-pdf-preview {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 30px 110px rgba(0, 0, 0, 0.48);
}

.detail-pdf-frame {
  width: 100%;
  height: min(68vh, 660px);
  border: 0;
  display: block;
  background: #ffffff;
}

.detail-pdf-actions {
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  color: rgba(241, 238, 228, 0.58);
  background: rgba(8, 9, 7, 0.86);
}

.detail-pdf-actions span {
  min-width: 0;
  margin-right: auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 800;
}

.detail-pdf-actions a {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(232, 224, 207, 0.16);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--surface-paper);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  background: rgba(232, 224, 207, 0.07);
}

.detail-pdf-actions a:hover,
.detail-pdf-actions a:focus-visible {
  border-color: rgba(183, 255, 90, 0.34);
  outline: none;
}

@media (max-width: 720px) {
  .detail-pdf-frame {
    height: min(62vh, 560px);
  }

  .detail-pdf-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .detail-pdf-actions a {
    width: 100%;
  }
}

.detail-image {
  margin: 2px 0 0;
  display: grid;
  gap: 8px;
}

.detail-image img {
  width: 100%;
  max-height: min(68vh, 660px);
  object-fit: contain;
  border: 0;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.24);
  box-shadow: 0 30px 110px rgba(0, 0, 0, 0.48);
}

.detail-image figcaption {
  color: rgba(241, 238, 228, 0.5);
  font-size: 12px;
  line-height: 1.35;
}

.detail-asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.detail-asset-card {
  min-height: 82px;
  padding: 14px;
  display: grid;
  align-content: start;
  gap: 8px;
  border: 0;
  border-radius: 10px;
  color: rgba(241, 238, 228, 0.78);
  font: inherit;
  text-align: left;
  text-decoration: none;
  background:
    rgba(8, 9, 7, 0.68);
  cursor: default;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.34);
  overflow: hidden;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.detail-asset-card:hover,
.detail-asset-card:focus-visible {
  border-color: rgba(183, 255, 90, 0.28);
  outline: none;
}

.detail-asset-card > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #061006;
  background: var(--acc);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-asset-card img {
  width: calc(100% + 28px);
  height: min(42vh, 360px);
  margin: -14px -14px 2px;
  object-fit: cover;
  border-bottom: 1px solid rgba(232, 224, 207, 0.1);
}

.node-detail-prompt {
  width: min(760px, 100%);
  justify-self: center;
  padding: 10px;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  gap: 9px;
  border-radius: 12px;
  background: rgba(4, 5, 3, 0.72);
  box-shadow: 0 22px 90px rgba(0, 0, 0, 0.44);
  backdrop-filter: blur(20px) saturate(1.08);
  -webkit-backdrop-filter: blur(20px) saturate(1.08);
  overflow: visible;
}

.node-detail-prompt input {
  min-width: 0;
  height: 44px;
  border: 1px solid rgba(232, 224, 207, 0.12);
  border-radius: 8px;
  padding: 0 13px;
  color: var(--surface-paper);
  background: rgba(232, 224, 207, 0.06);
  outline: none;
}

.node-detail-prompt button {
  border: 0;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(232, 224, 207, 0.1);
  cursor: pointer;
}

.node-detail-prompt .node-detail-send {
  background: var(--acc);
}

.node-detail-prompt img {
  width: 18px;
  height: 18px;
}

.node-detail-upload img {
  filter: invert(1);
  opacity: 0.78;
}

.detail-asset-card strong {
  color: var(--surface-paper);
  font-size: 13px;
  line-height: 1.2;
}

.detail-asset-card small {
  color: rgba(241, 238, 228, 0.5);
  font-size: 12px;
  line-height: 1.35;
}

.node-detail-notes {
  padding: 14px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.node-detail-note-list {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 9px;
  overflow: auto;
  scrollbar-width: none;
}

.node-detail-note {
  padding: 10px 11px;
  border: 1px solid rgba(232, 224, 207, 0.1);
  border-radius: 8px;
  background: rgba(232, 224, 207, 0.045);
}

.node-detail-note.is-user {
  background: rgba(183, 255, 90, 0.08);
  border-color: rgba(183, 255, 90, 0.15);
}

.node-detail-note span {
  display: block;
  margin-bottom: 5px;
  color: rgba(241, 238, 228, 0.48);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.node-detail-note p,
.node-detail-empty {
  margin: 0;
  color: rgba(241, 238, 228, 0.72);
  line-height: 1.42;
}

.node-detail-preview {
  overflow: auto;
  padding-right: 4px;
  scrollbar-width: none;
}

.node-detail-preview::-webkit-scrollbar {
  display: none;
}

.node-detail-preview-card {
  min-height: 280px;
  align-items: start;
}

.node-detail textarea,
.node-detail-chat-log,
.node-detail-chat-form input {
  border-radius: 7px;
  border-color: rgba(232, 224, 207, 0.14);
  background: rgba(232, 224, 207, 0.045);
}

.whiteboard-prompt {
  width: min(820px, calc(100vw - 72px));
}

.whiteboard-prompt .tp-shell {
  min-height: 220px;
  gap: 12px;
  padding: 14px;
  border-radius: 9px;
}

.whiteboard-prompt .tp-shell::before {
  inset: 8px;
  border-radius: 5px;
}

.whiteboard-prompt .tp-input-area {
  padding-right: 48px;
}

.whiteboard-prompt .tp-edit {
  min-height: 120px;
  max-height: 30vh;
  padding: 16px;
  font-size: 16px;
}

.whiteboard-prompt .tp-toolbar {
  padding: 0;
}

.whiteboard-prompt-close {
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 22px;
  line-height: 1;
}

.linkedin-preview {
  border-radius: 8px;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.32);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.whiteboard-help-button {
  color: var(--bg);
  background: var(--surface-paper);
  border-color: transparent;
  font-family: var(--font-display);
  font-size: 24px;
}

@media (max-width: 820px) {
  .app-header {
    width: 60px;
    height: auto;
    padding: 14px 8px;
    gap: 14px;
  }

  .app-brand {
    font-size: 0;
  }

  .app-brand-mark {
    width: 34px;
    height: 34px;
  }

  .app-nav {
    gap: 8px;
  }

  .app-nav a {
    width: 40px;
    height: 40px;
  }

  .app-nav button {
    width: 40px;
    height: 40px;
  }

  .app-actions {
    gap: 4px;
  }

  .app-actions button:not(.app-avatar):not(.app-help-button) {
    display: none;
  }

  .sidebar-help-popover,
  .account-popover {
    left: calc(100% + 10px);
    right: auto;
    width: min(278px, calc(100vw - 82px));
  }

  .bip-page {
    padding: 24px 14px 24px 74px;
  }

  .bip-screen {
    inset: 24px 14px 24px 74px;
    max-height: calc(100dvh - 48px);
  }

  .bip-screen.whiteboard-screen {
    inset: 0;
    max-height: none;
  }

  .dashboard-shell {
    justify-content: start;
  }

  .whiteboard-tools {
    left: 72px;
  }

  .chat-drawer {
    left: 60px;
    width: calc(100vw - 60px);
    padding: 12px;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr);
    gap: 10px;
  }

  .chat-message,
  .chat-llm-page {
    max-width: 92%;
  }

  .chat-new-state h1 {
    font-size: 34px;
  }

  .llm-section dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .node-detail-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(360px, 1fr) auto;
    overflow: auto;
  }

  .node-detail-overview,
  .node-detail-notes {
    max-height: none;
  }

  .whiteboard-prompt {
    width: min(640px, calc(100vw - 28px));
  }

  .whiteboard-prompt .tp-input-area {
    padding-right: 0;
    padding-top: 42px;
  }

  .project-card {
    min-height: 236px;
  }

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

  .project-card strong {
    font-size: 34px;
  }
}
