:root {
  --bg: #eef5ff;
  --bg-accent: #dceaff;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --surface-muted: #f5f9ff;
  --line: #d8e5f6;
  --line-strong: #bfd4ee;
  --text: #12304f;
  --text-soft: #486581;
  --text-faint: #6f89a6;
  --accent: #2563eb;
  --accent-strong: #1d4ed8;
  --accent-soft: #dbeafe;
  --accent-ink: #113a8f;
  --success: #0f9f6e;
  --danger: #d14d72;
  --shadow-sm: 0 16px 30px rgba(37, 99, 235, 0.08);
  --shadow-md: 0 24px 64px rgba(15, 47, 86, 0.12);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --max-width: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(147, 197, 253, 0.35), transparent 24%),
    radial-gradient(circle at top right, rgba(191, 219, 254, 0.5), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #eef5ff 52%, #e8f1ff 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.22);
  outline-offset: 2px;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(191, 212, 238, 0.75);
  background: rgba(248, 251, 255, 0.88);
  backdrop-filter: blur(18px);
}

.topbar-inner {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  min-height: 84px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.job-strip {
  border-top: 1px solid rgba(191, 212, 238, 0.55);
  background: rgba(238, 245, 255, 0.72);
}

.job-strip-inner {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  min-height: 36px;
  max-height: 40px;
  display: flex;
  align-items: center;
}

.job-strip-list {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 0;
}

.job-strip-list::-webkit-scrollbar {
  display: none;
}

.job-chip {
  min-width: 240px;
  max-width: 320px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 84px;
  gap: 10px;
  align-items: center;
  padding: 6px 10px;
  border-radius: 14px;
  border: 1px solid rgba(191, 212, 238, 0.9);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.07);
}

.job-chip-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.job-chip-title,
.job-chip-detail {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.job-chip-title {
  font-size: 0.78rem;
  font-weight: 750;
}

.job-chip-detail {
  font-size: 0.68rem;
  color: var(--text-faint);
}

.job-chip-meter {
  position: relative;
  height: 7px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(191, 212, 238, 0.6);
}

.job-chip-meter-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.95), rgba(37, 99, 235, 0.95));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--accent-ink);
  background: linear-gradient(135deg, #bfdbfe 0%, #dbeafe 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

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

.brand-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 750;
}

.eyebrow {
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-faint);
  font-size: 0.74rem;
  font-weight: 700;
}

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

.nav-row {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-list {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(216, 229, 246, 0.95);
  box-shadow: var(--shadow-sm);
}

.nav-link {
  position: relative;
  padding: 11px 16px;
  border-radius: 999px;
  color: var(--text-soft);
  font-weight: 600;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(219, 234, 254, 0.72);
}

.nav-link.is-active {
  color: var(--accent-ink);
  background: linear-gradient(135deg, rgba(219, 234, 254, 1), rgba(191, 219, 254, 0.92));
}

.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  margin-left: 8px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(209, 77, 114, 0.28);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 300px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(216, 229, 246, 0.95);
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 800;
  flex-shrink: 0;
}

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

.user-name,
.user-subtitle {
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-name {
  font-weight: 700;
  font-size: 0.92rem;
}

.user-subtitle {
  font-size: 0.8rem;
  color: var(--text-faint);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 14px;
  border: 1px solid rgba(191, 212, 238, 0.95);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.menu-toggle svg {
  width: 20px;
  height: 20px;
}

.mobile-nav-panel {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
}

.mobile-nav-panel.is-open {
  display: block;
}

.mobile-nav-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.32);
}

.mobile-nav-drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: min(86vw, 360px);
  height: 100%;
  padding: 24px;
  display: grid;
  gap: 18px;
  align-content: start;
  background: rgba(250, 252, 255, 0.98);
  border-left: 1px solid rgba(191, 212, 238, 0.95);
  box-shadow: -24px 0 60px rgba(15, 23, 42, 0.16);
}

.mobile-nav-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.mobile-nav-links {
  display: grid;
  gap: 10px;
}

.mobile-nav-links .nav-link {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(216, 229, 246, 0.9);
}

.content {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.auth-content {
  display: grid;
  align-items: center;
  min-height: 100vh;
  padding-top: 40px;
  padding-bottom: 40px;
}

.page-stack {
  display: grid;
  gap: 24px;
}

.page-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(244, 249, 255, 0.98)),
    linear-gradient(180deg, rgba(219, 234, 254, 0.3), rgba(191, 219, 254, 0));
  border: 1px solid rgba(216, 229, 246, 0.96);
  box-shadow: var(--shadow-md);
}

.page-hero h1,
.page-hero h2,
.section-head h3,
.card h3,
.card h4 {
  margin: 0;
}

.page-hero p {
  margin: 10px 0 0;
}

.page-hero-copy {
  max-width: 780px;
}

.page-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.page-subtitle {
  max-width: 720px;
  color: var(--text-soft);
  font-size: 1.02rem;
  line-height: 1.6;
}

.hero-actions,
.section-actions,
.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-aside {
  min-width: 240px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.96), rgba(219, 234, 254, 0.9));
  border: 1px solid rgba(191, 219, 254, 0.92);
}

.hero-aside p {
  margin: 0;
}

.hero-stat {
  margin-top: 12px;
  display: grid;
  gap: 6px;
}

.hero-stat strong {
  font-size: 1.8rem;
}

.metric-grid,
.two-column,
.login-grid,
.info-grid,
.action-grid {
  display: grid;
  gap: 20px;
}

.metric-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.two-column,
.login-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: start;
}

.info-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.action-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid rgba(216, 229, 246, 0.98);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.card-soft {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(245, 249, 255, 0.96));
}

.card-header,
.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-copy,
.card-header-copy {
  max-width: 720px;
}

.section-copy p,
.card-header-copy p,
.card-intro {
  margin: 8px 0 0;
  color: var(--text-soft);
  line-height: 1.55;
}

.metric-card {
  position: relative;
  overflow: hidden;
}

.metric-card::after {
  content: "";
  position: absolute;
  inset: auto -30px -30px auto;
  width: 110px;
  height: 110px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(191, 219, 254, 0.65), rgba(191, 219, 254, 0));
}

.metric-label {
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 600;
}

.metric-card strong {
  display: block;
  margin-top: 10px;
  font-size: clamp(2rem, 4vw, 2.7rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.metric-trend {
  margin-top: 14px;
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(219, 234, 254, 0.72);
  color: var(--accent-ink);
  font-size: 0.84rem;
  font-weight: 700;
}

.stack {
  display: grid;
  gap: 14px;
}

.stack.compact {
  gap: 10px;
}

.list-item,
.todo-row,
.action-item,
.recording-mobile-item,
.info-item {
  border-radius: 20px;
  border: 1px solid rgba(216, 229, 246, 0.94);
  background: rgba(255, 255, 255, 0.82);
}

.list-item,
.todo-row,
.action-item,
.recording-mobile-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.list-item:hover,
.action-item:hover,
.recording-mobile-item:hover {
  transform: translateY(-1px);
  border-color: rgba(191, 219, 254, 0.98);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.08);
}

.list-title {
  margin: 0;
  font-size: 1rem;
}

.list-meta,
.inline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  min-width: 0;
  max-width: 100%;
}

.meta-pill,
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 999px;
  background: var(--surface-muted);
  border: 1px solid rgba(216, 229, 246, 0.98);
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 600;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.chip-list {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.chip-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(209, 77, 114, 0.12);
  color: var(--danger);
  font-size: 0.78rem;
  font-weight: 800;
}

.list-trailing {
  flex-shrink: 0;
  text-align: right;
  color: var(--text-faint);
  font-size: 0.88rem;
}

.empty-state {
  padding: 24px;
  border-radius: 22px;
  border: 1px dashed rgba(191, 212, 238, 0.98);
  background: rgba(245, 249, 255, 0.84);
  color: var(--text-soft);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(219, 234, 254, 0.72);
  color: var(--accent-ink);
  font-size: 0.82rem;
  font-weight: 700;
}

label {
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--text-soft);
  font-weight: 600;
}

.field-help {
  color: var(--text-faint);
  font-size: 0.85rem;
  font-weight: 500;
}

input,
textarea,
select {
  width: 100%;
  padding: 13px 15px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

input:hover,
textarea:hover,
select:hover {
  border-color: var(--line-strong);
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(59, 130, 246, 0.72);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

textarea {
  resize: vertical;
}

button,
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 18px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #f8fbff;
  font-weight: 700;
  box-shadow: 0 16px 28px rgba(37, 99, 235, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

button:hover,
.button-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 30px rgba(37, 99, 235, 0.24);
  filter: saturate(1.03);
}

button.secondary,
.button-link.secondary {
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  border: 1px solid rgba(216, 229, 246, 0.98);
  box-shadow: none;
}

.button-link.ghost {
  background: rgba(219, 234, 254, 0.54);
  color: var(--accent-ink);
  box-shadow: none;
}

.button-link.full-width,
button.full-width {
  width: 100%;
}

.checkbox-button {
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 16px;
  background: rgba(219, 234, 254, 0.82);
  color: var(--accent-ink);
  box-shadow: none;
  flex-shrink: 0;
}

.checkbox-button:hover {
  box-shadow: none;
}

.grow {
  flex: 1;
}

.todo-row {
  align-items: center;
}

.todo-text {
  margin: 0;
  font-weight: 700;
}

.action-item p,
.todo-row p,
.list-item p {
  margin: 8px 0 0;
}

.error {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(209, 77, 114, 0.08);
  border: 1px solid rgba(209, 77, 114, 0.16);
  color: var(--danger);
}

.feature-list {
  margin: 20px 0 0;
  padding-left: 18px;
  color: var(--text-soft);
  line-height: 1.65;
}

.feature-list li + li {
  margin-top: 10px;
}

.login-panel {
  position: relative;
  overflow: hidden;
}

.login-panel::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(191, 219, 254, 0.72), rgba(191, 219, 254, 0));
}

.auth-kicker {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(219, 234, 254, 0.72);
  color: var(--accent-ink);
  font-size: 0.85rem;
  font-weight: 700;
}

.auth-title {
  margin: 16px 0 0;
  font-size: clamp(2.3rem, 4.8vw, 4rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.auth-subtitle {
  margin-top: 18px;
  font-size: 1.04rem;
  line-height: 1.7;
  color: var(--text-soft);
}

.auth-metrics {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.auth-metric {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(216, 229, 246, 0.94);
}

.auth-metric strong {
  display: block;
  font-size: 1.5rem;
}

.auth-form-card h2,
.auth-form-card h3 {
  margin: 0;
}

.auth-form-card hr {
  margin: 24px 0;
}

.info-item {
  padding: 18px;
}

.info-item strong {
  display: block;
  color: var(--text-faint);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.info-item span,
.info-item p {
  margin: 8px 0 0;
}

pre {
  white-space: pre-wrap;
  background: rgba(245, 249, 255, 0.92);
  border: 1px solid rgba(216, 229, 246, 0.96);
  padding: 16px;
  border-radius: 18px;
  max-height: 320px;
  overflow: auto;
  color: var(--text-soft);
  line-height: 1.6;
}

.table-card {
  overflow: hidden;
}

.table-wrap {
  overflow-x: auto;
  margin: 0 -4px;
  padding: 0 4px 4px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

th,
td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid rgba(216, 229, 246, 0.88);
  vertical-align: top;
}

th {
  color: var(--text-faint);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

tbody tr:hover {
  background: rgba(245, 249, 255, 0.66);
}

.table-link {
  color: var(--accent-ink);
  font-weight: 700;
}

.desktop-only {
  display: block;
}

.mobile-only {
  display: none;
}

hr {
  border: none;
  border-top: 1px solid rgba(216, 229, 246, 0.96);
}

.board-hero {
  align-items: start;
}

.board-hero-dark {
  background:
    radial-gradient(circle at top left, rgba(124, 92, 255, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(42, 157, 143, 0.16), transparent 26%),
    linear-gradient(180deg, rgba(10, 16, 28, 0.96), rgba(19, 27, 43, 0.96));
  color: rgba(247, 250, 255, 0.98);
  border-color: rgba(89, 109, 144, 0.4);
}

.board-hero-dark .page-subtitle,
.board-hero-dark .muted,
.board-hero-dark .eyebrow {
  color: rgba(207, 219, 241, 0.88);
}

.board-workspace {
  display: grid;
  gap: 18px;
  padding: 20px;
  border-radius: 28px;
  border: 1px solid rgba(44, 58, 84, 0.84);
  background:
    radial-gradient(circle at top left, rgba(124, 92, 255, 0.1), transparent 22%),
    radial-gradient(circle at bottom right, rgba(42, 157, 143, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(7, 12, 21, 0.98), rgba(16, 23, 37, 0.98));
  box-shadow: 0 24px 56px rgba(4, 7, 14, 0.34);
}

.board-hero-aside {
  display: grid;
  gap: 14px;
}

.board-toolbar {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(60, 79, 113, 0.72);
  background: rgba(12, 19, 31, 0.88);
}

.board-toolbar-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
}

.board-toolbar-meta {
  display: grid;
  justify-items: end;
  gap: 20px;
  color: rgba(197, 209, 233, 0.88);
  font-size: 0.92rem;
}

.board-linking-state {
  color: rgba(255, 226, 138, 0.98);
  font-weight: 700;
}

.board-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(320px, 0.95fr);
  gap: 18px;
  align-items: start;
}

.board-canvas-panel {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.board-stage-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.board-stage-badge {
  display: inline-grid;
  gap: 4px;
  color: rgba(225, 234, 247, 0.94);
}

.board-stage-badge strong {
  font-size: 1.1rem;
}

.board-zoom-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.board-zoom-readout {
  min-width: 60px;
  text-align: center;
  color: rgba(214, 225, 244, 0.92);
  font-weight: 700;
}

.board-tool {
  border: 1px solid rgba(91, 114, 158, 0.55);
  background: rgba(26, 37, 58, 0.9);
  color: rgba(240, 245, 255, 0.96);
  box-shadow: none;
}

.board-tool:hover {
  background: rgba(37, 53, 82, 0.96);
}

.board-tool.primary {
  background: linear-gradient(180deg, rgba(86, 114, 255, 0.95), rgba(62, 88, 217, 0.95));
  border-color: rgba(120, 146, 255, 0.76);
}

.board-tool.icon-only {
  width: 42px;
  min-height: 42px;
  padding: 0;
}

.board-viewport {
  position: relative;
  min-height: 74vh;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(60, 79, 113, 0.72);
  background:
    linear-gradient(rgba(103, 128, 171, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103, 128, 171, 0.16) 1px, transparent 1px),
    radial-gradient(circle at center, rgba(16, 22, 35, 0.92), rgba(9, 14, 24, 0.98));
  background-size: 28px 28px, 28px 28px, 100% 100%;
}

.board-transform {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: top left;
  will-change: transform;
}

.board-edges {
  position: absolute;
  inset: 0;
  overflow: visible;
}

.board-edge-path {
  fill: none;
  stroke: rgba(111, 131, 170, 0.84);
  stroke-width: 4;
  stroke-linecap: round;
  pointer-events: stroke;
  cursor: pointer;
  opacity: 0.92;
}

.board-edge-path.is-system {
  stroke-dasharray: 10 10;
  opacity: 0.72;
}

.board-edge-path.is-selected {
  stroke: rgba(255, 206, 92, 0.98) !important;
  stroke-width: 5;
}

.board-edge-preview {
  stroke: rgba(255, 214, 94, 0.96);
  stroke-width: 4;
  stroke-dasharray: 12 10;
  opacity: 0.92;
  pointer-events: none;
}

.board-stage {
  position: relative;
}

.board-node-card {
  position: absolute;
  display: grid;
  gap: 14px;
  padding: 18px;
  min-width: 260px;
  border-radius: 24px;
  border: 1px solid rgba(93, 117, 159, 0.48);
  background:
    linear-gradient(180deg, rgba(31, 43, 67, 0.98), rgba(18, 27, 42, 0.98));
  box-shadow:
    0 24px 40px rgba(2, 6, 14, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  text-align: left;
  color: rgba(245, 248, 255, 0.98);
  cursor: grab;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.board-node-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid color-mix(in srgb, var(--node-accent, rgba(124, 92, 255, 1)) 70%, transparent);
  opacity: 0.66;
  pointer-events: none;
}

.board-node-card:hover,
.board-node-card.is-selected,
.board-node-card.is-link-source {
  border-color: rgba(155, 180, 255, 0.84);
  box-shadow:
    0 26px 46px rgba(0, 0, 0, 0.44),
    0 0 0 1px rgba(255, 210, 84, 0.14);
  transform: translateY(-2px);
}

.board-node-card.is-link-source {
  box-shadow:
    0 0 0 1px rgba(255, 214, 94, 0.22),
    0 0 0 4px rgba(255, 214, 94, 0.16),
    0 26px 46px rgba(0, 0, 0, 0.44);
}

.board-node-card.is-link-target {
  border-color: rgba(76, 226, 181, 0.9);
  box-shadow:
    0 0 0 1px rgba(76, 226, 181, 0.28),
    0 0 0 4px rgba(76, 226, 181, 0.14),
    0 26px 46px rgba(0, 0, 0, 0.44);
}

.board-node-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.board-node-head-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.board-node-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  max-width: 100%;
}

.board-node-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  max-width: 100%;
  flex: 0 1 auto;
  border-radius: 999px;
  border: 1px solid rgba(129, 153, 194, 0.52);
  background: rgba(43, 60, 92, 0.96);
  color: rgba(246, 249, 255, 0.96);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.board-node-link span:first-child {
  font-size: 1rem;
  flex: 0 0 auto;
}

.board-node-body {
  color: rgba(194, 207, 232, 0.92);
  line-height: 1.55;
}

.board-node-body p {
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.board-node-card strong {
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.board-node-subtitle {
  color: rgba(181, 196, 224, 0.84);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.board-node-link-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-node-kind {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: rgba(158, 178, 214, 0.82);
  font-weight: 700;
}

@media (min-width: 900px) {
  .board-node-head {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .board-node-head-actions {
    justify-content: flex-end;
  }
}

@media (max-width: 1180px) {
  .board-node-link-label {
    display: none;
  }

  .board-node-link {
    padding: 0 10px;
  }
}

.board-node-summary {
  --node-accent: #7c5cff;
}

.board-node-research {
  --node-accent: #2a9d8f;
}

.board-node-tool {
  --node-accent: #ff8f6b;
  background:
    linear-gradient(180deg, rgba(61, 32, 21, 0.96), rgba(23, 14, 11, 0.98)),
    linear-gradient(135deg, rgba(255, 143, 107, 0.16), rgba(255, 201, 107, 0.08));
  border-color: rgba(255, 153, 112, 0.55);
  box-shadow:
    0 22px 48px rgba(7, 10, 18, 0.34),
    0 0 0 1px rgba(255, 171, 128, 0.14) inset;
}

.board-node-tool .board-node-kind {
  color: rgba(255, 214, 187, 0.88);
}

.board-node-tool .board-node-subtitle,
.board-node-tool .board-node-body {
  color: rgba(255, 235, 222, 0.9);
}

.board-node-subtask {
  --node-accent: #d8b24c;
  background:
    linear-gradient(180deg, rgba(63, 47, 16, 0.97), rgba(29, 22, 9, 0.98)),
    linear-gradient(135deg, rgba(216, 178, 76, 0.18), rgba(255, 224, 145, 0.08));
  border-color: rgba(232, 198, 102, 0.55);
  box-shadow:
    0 22px 48px rgba(8, 10, 16, 0.38),
    0 0 0 1px rgba(232, 198, 102, 0.12) inset;
}

.board-node-subtask .board-node-kind {
  color: rgba(255, 228, 165, 0.92);
}

.board-node-subtask .board-node-subtitle,
.board-node-subtask .board-node-body {
  color: rgba(255, 241, 209, 0.9);
}

.tool-pill {
  background: rgba(255, 164, 123, 0.18);
  color: rgba(255, 230, 214, 0.96);
  border-color: rgba(255, 175, 134, 0.22);
}

.subtask-pill {
  background: rgba(232, 198, 102, 0.18);
  color: rgba(255, 241, 209, 0.98);
  border-color: rgba(232, 198, 102, 0.22);
}

.board-node-recording {
  --node-accent: #4f8cff;
}

.board-node-note {
  --node-accent: #4f8cff;
}

.board-node-document {
  --node-accent: #f4a261;
}

.board-inspector {
  position: sticky;
  top: 100px;
  min-height: 560px;
  border-radius: 28px;
  border: 1px solid rgba(60, 79, 113, 0.72);
  background: rgba(11, 18, 30, 0.94);
  padding: 22px;
  color: rgba(238, 243, 252, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.board-panel-placeholder,
.board-panel-content {
  display: grid;
  gap: 18px;
}

.board-panel-placeholder h3,
.panel-head h3,
.panel-section h4 {
  margin: 0;
}

.panel-head {
  display: grid;
  gap: 8px;
}

.panel-status {
  display: inline-flex;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(62, 88, 146, 0.5);
  color: rgba(228, 238, 255, 0.96);
  font-size: 0.84rem;
  font-weight: 700;
}

.panel-summary,
.panel-transcript {
  margin: 0;
  color: rgba(198, 210, 232, 0.92);
  line-height: 1.6;
}

.panel-transcript {
  padding: 14px;
  border-radius: 16px;
  background: rgba(20, 30, 48, 0.9);
  border: 1px solid rgba(67, 86, 121, 0.7);
  white-space: pre-wrap;
}

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

.panel-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
  color: rgba(201, 212, 234, 0.92);
}

.panel-list li {
  display: grid;
  gap: 4px;
}

.panel-empty {
  margin: 0;
  color: rgba(158, 176, 209, 0.78);
}

.panel-key-value {
  display: grid;
  gap: 10px;
}

.panel-key-value div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(18, 28, 44, 0.86);
  border: 1px solid rgba(56, 74, 108, 0.66);
}

.panel-key-value span {
  color: rgba(198, 210, 232, 0.92);
  overflow-wrap: anywhere;
}

.panel-connection-list {
  display: grid;
  gap: 10px;
}

.panel-connection-item {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  min-width: 0;
  padding: 12px;
  border-radius: 16px;
  background: rgba(18, 28, 44, 0.86);
  border: 1px solid rgba(56, 74, 108, 0.66);
}

.panel-connection-item div {
  display: grid;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
}

.small-button {
  min-height: 36px;
  padding: 8px 12px;
}

.danger-button {
  border-color: rgba(196, 85, 85, 0.52);
  color: rgba(255, 214, 214, 0.94);
}

.inline-link {
  color: rgba(141, 181, 255, 0.96);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.compact-two-column {
  gap: 12px;
}

.project-secondary {
  align-items: start;
}

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

.meta-stat {
  padding: 16px;
  border-radius: 18px;
  background: rgba(245, 249, 255, 0.9);
  border: 1px solid rgba(216, 229, 246, 0.96);
}

.meta-stat strong {
  display: block;
  font-size: 1.4rem;
  margin-top: 8px;
}

.meta-stat-label {
  color: var(--text-faint);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.compact-stack {
  gap: 12px;
}

.nested-card,
.question-card {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(216, 229, 246, 0.96);
  background: rgba(255, 255, 255, 0.78);
}

.question-card p {
  margin: 0;
}

@media (max-width: 1100px) {
  .topbar-inner {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .job-strip-inner {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .content {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .user-pill {
    display: none;
  }

  .mobile-nav-drawer .user-pill {
    display: inline-flex;
    max-width: none;
  }
}

@media (max-width: 900px) {
  .nav-row,
  .desktop-logout {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .topbar-inner {
    min-height: 76px;
  }

  .page-hero {
    display: grid;
    grid-template-columns: 1fr;
  }

  .page-hero,
  .card {
    padding: 22px;
  }

  .board-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .content,
  .auth-content {
    width: min(calc(100% - 20px), var(--max-width));
    padding-top: 20px;
    padding-bottom: 36px;
  }

  .page-stack {
    gap: 18px;
  }

  .page-hero {
    padding: 20px;
  }

  .page-title {
    font-size: 2.2rem;
  }

  .auth-title {
    font-size: 2.5rem;
  }

  .auth-metrics {
    grid-template-columns: 1fr;
  }

  .topbar-inner {
    width: calc(100% - 20px);
  }

  .job-strip-inner {
    width: calc(100% - 20px);
  }

  .job-chip {
    min-width: 220px;
  }

  .metric-grid,
  .two-column,
  .login-grid,
  .info-grid,
  .action-grid {
    grid-template-columns: 1fr;
  }

  .section-head,
  .card-header {
    flex-direction: column;
    align-items: stretch;
  }

  .list-item,
  .todo-row,
  .action-item,
  .recording-mobile-item {
    flex-direction: column;
    align-items: stretch;
  }

  .list-trailing {
    text-align: left;
  }

  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: grid;
  }

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

  .board-workspace {
    padding: 16px;
  }

  .board-toolbar {
    grid-template-columns: 1fr;
  }

  .board-toolbar-meta {
    justify-items: start;
  }

  .board-shell {
    grid-template-columns: 1fr;
  }

  .board-inspector {
    position: static;
    min-height: auto;
  }

  .board-viewport {
    min-height: 64vh;
  }

  .board-stage-meta {
    align-items: stretch;
  }

  .board-zoom-controls {
    justify-content: space-between;
  }

  .panel-connection-item {
    flex-direction: column;
    align-items: stretch;
  }
}
