/* ─────────────────────────────────────────────
   Assistant You — Design System & Stylesheet
   Focus: Research Project Coordination
   ───────────────────────────────────────────── */

/* ── Reset & Tokens ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Core Palette */
  --bg:           #09090b;
  --surface:      #121217;
  --surface-2:    #181820;
  --surface-3:    #22222d;
  --border:       #272732;
  --border-light: #373748;
  --text:         #fafafa;
  --text-dim:     #a1a1b2;
  --text-muted:   #717182;

  /* Accent Gradients */
  --accent-1:     #818cf8;   /* Indigo-400 */
  --accent-2:     #c084fc;   /* Purple-400 */
  --accent-3:     #38bdf8;   /* Sky-400 */

  /* State Colors */
  --state-running:    #38bdf8; /* Cyan/Sky */
  --state-review:     #34d399; /* Emerald */
  --state-decision:   #fbbf24; /* Amber */
  --state-blocked:    #f87171; /* Rose */
  --state-ready:      #a78bfa; /* Violet */
  --state-success:    #4ade80; /* Green */

  /* Sizing & Geometry */
  --max-w:        1140px;
  --radius-lg:    16px;
  --radius:       12px;
  --radius-sm:    8px;
  --radius-pill:  999px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-width: 320px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

code, .code-font {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88em;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.15em 0.35em;
  border-radius: 4px;
  color: #e0e7ff;
}

/* ── Typography & Gradients ── */
.gradient-text {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2), var(--accent-3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 600;
  text-align: center;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(129, 140, 248, 0.32);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.btn--sm {
  font-size: 0.85rem;
  padding: 0.5rem 1.15rem;
}

.btn--lg {
  font-size: 1rem;
  padding: 0.8rem 2rem;
}

.btn--outline {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-light);
  color: var(--text);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-1);
  box-shadow: 0 4px 16px rgba(129, 140, 248, 0.15);
}

.btn--text {
  background: transparent;
  border-color: transparent;
  color: var(--text-dim);
  text-decoration: underline;
  padding: 0.4rem 0.8rem;
}

.btn--text:hover {
  color: var(--text);
  transform: none;
  box-shadow: none;
}

/* ── Badges & Pills ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
}

.badge--subtle {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-dim);
}

.badge--accent {
  background: rgba(129, 140, 248, 0.12);
  border: 1px solid rgba(129, 140, 248, 0.3);
  color: var(--accent-1);
}

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  background: rgba(9, 9, 11, 0.75);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.nav__logo-img {
  width: 32px;
  height: 32px;
  max-width: 32px;
  max-height: 32px;
  border-radius: 6px;
  object-fit: contain;
  display: block;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.2s ease;
}

.nav__link:hover {
  color: var(--text);
}

/* ── Hero ── */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8.5rem 1.5rem 4.5rem;
  text-align: center;
  overflow: hidden;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
}

.hero__badge-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.hero__eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-1);
  padding: 0.3rem 0.9rem;
  border: 1px solid rgba(129, 140, 248, 0.35);
  border-radius: var(--radius-pill);
  background: rgba(129, 140, 248, 0.08);
}

.hero__title {
  font-size: clamp(1.8rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  overflow-wrap: break-word;
  word-break: normal;
}

.hero__subtitle {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: var(--text-dim);
  max-width: 680px;
  margin: 0 auto 2.5rem;
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.hero__note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Ambient glow blobs */
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.35;
  pointer-events: none;
}

.hero__glow--1 {
  width: 520px;
  height: 520px;
  background: var(--accent-1);
  top: -12%;
  left: -10%;
  animation: drift 15s ease-in-out infinite alternate;
}

.hero__glow--2 {
  width: 440px;
  height: 440px;
  background: var(--accent-2);
  bottom: -15%;
  right: -8%;
  animation: drift 20s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, 40px) scale(1.15); }
}

/* ── Section Scaffolding ── */
.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 6rem 1.5rem;
}

.section--alt {
  background: var(--surface);
  max-width: 100%;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section--alt > * {
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}

.section-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

.section__heading {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}

.section__subtext {
  font-size: 1.05rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ─────────────────────────────────────────────
   2. Project Coordination Example (Demo)
   ───────────────────────────────────────────── */
.section--demo {
  padding-top: 2rem;
  padding-bottom: 6rem;
}

.demo-wrapper {
  background: linear-gradient(180deg, rgba(24, 24, 32, 0.8) 0%, rgba(18, 18, 23, 0.95) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.demo-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2.5rem;
}

.demo-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.demo-pill {
  display: inline-block;
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: var(--state-decision);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-pill);
}

.demo-subnote {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.demo-micro-pill {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  color: var(--text-dim);
}

/* Project Meta Bar */
.project-meta {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.project-meta__tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-1);
}

.project-meta__title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 0.2rem;
}

.project-meta__desc {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-top: 0.25rem;
}

.project-meta__right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.meta-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.meta-stat__label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.meta-stat__val {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

/* Workstreams Grid */
.workstreams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.25rem;
}

.ws-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.3s ease, transform 0.2s ease;
}

.ws-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.ws-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.ws-card__name {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
}

.ws-card__detail {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.5;
  flex-grow: 1;
}

.ws-card__meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 0.6rem;
}

.ws-card__dep {
  font-size: 0.78rem;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.4rem 0.65rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.dep-label {
  font-weight: 600;
  color: var(--text-muted);
}

/* Status Pills */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.status-pill--running {
  background: rgba(56, 189, 248, 0.15);
  color: var(--state-running);
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.status-pill--review {
  background: rgba(52, 211, 153, 0.15);
  color: var(--state-review);
  border: 1px solid rgba(52, 211, 153, 0.35);
}

.status-pill--decision {
  background: rgba(251, 191, 36, 0.18);
  color: var(--state-decision);
  border: 1px solid rgba(251, 191, 36, 0.45);
}

.status-pill--blocked {
  background: rgba(248, 113, 113, 0.15);
  color: var(--state-blocked);
  border: 1px solid rgba(248, 113, 113, 0.35);
}

.status-pill--ready {
  background: rgba(167, 139, 250, 0.15);
  color: var(--state-ready);
  border: 1px solid rgba(167, 139, 250, 0.35);
}

.status-pill--unblocked {
  background: rgba(52, 211, 153, 0.2);
  color: var(--state-success);
  border: 1px solid rgba(52, 211, 153, 0.5);
  animation: pulse 2s infinite ease-in-out;
}

.status-pill--resolved {
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.4);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background-color: currentColor;
  border-radius: 50%;
  animation: pulse 1.8s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.85); }
}

/* Specific Card Emphasis */
.ws-card--decision {
  border-color: rgba(251, 191, 36, 0.35);
  background: linear-gradient(180deg, rgba(30, 26, 18, 0.9) 0%, var(--surface-2) 100%);
}

.ws-card--blocked {
  border-color: rgba(248, 113, 113, 0.3);
  opacity: 0.92;
}

.ws-card--unblocked {
  border-color: rgba(52, 211, 153, 0.5);
  background: linear-gradient(180deg, rgba(16, 32, 24, 0.8) 0%, var(--surface-2) 100%);
}

.ws-card__dep--critical {
  color: var(--state-decision);
  border-color: rgba(251, 191, 36, 0.25);
  background: rgba(251, 191, 36, 0.08);
}

.ws-card__dep--blocked {
  color: var(--state-blocked);
  border-color: rgba(248, 113, 113, 0.25);
  background: rgba(248, 113, 113, 0.08);
}

/* ── Decision Box ── */
.decision-box {
  background: var(--surface-2);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 2.25rem;
  position: relative;
}

.decision-box__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.decision-box__tag {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--state-decision);
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  background-color: var(--state-decision);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

.decision-box__title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.65rem;
}

.decision-box__intro {
  font-size: 0.92rem;
  color: var(--text-dim);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

/* Evidence Snippet */
.evidence-snippet {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-1);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}

.evidence-snippet__label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-1);
  margin-bottom: 0.4rem;
}

.evidence-snippet__file {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.evidence-snippet__summary {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* Options */
.decision-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.decision-option {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.decision-option:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-light);
}

.decision-option--selected {
  border-color: var(--accent-1);
  background: rgba(129, 140, 248, 0.06);
}

.decision-option input[type="radio"] {
  margin-top: 0.25rem;
  accent-color: var(--accent-1);
  cursor: pointer;
}

.decision-option__content {
  flex-grow: 1;
}

.decision-option__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.decision-option__name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.option-tag--rec {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(52, 211, 153, 0.15);
  color: var(--state-review);
  border: 1px solid rgba(52, 211, 153, 0.3);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.decision-option__desc {
  font-size: 0.86rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* Impact & Simulation */
.decision-impact {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.decision-impact__info {
  flex: 1 1 320px;
}

.impact-label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--state-review);
  display: block;
  margin-bottom: 0.25rem;
}

.impact-text {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.decision-impact__cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.demo-feedback-banner {
  margin-top: 1rem;
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  line-height: 1.5;
  background: rgba(129, 140, 248, 0.12);
  border: 1px solid rgba(129, 140, 248, 0.35);
  color: #e0e7ff;
}

/* ── Completion & Provenance Record ── */
.completion-record {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.completion-record__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.record-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-3);
}

.provenance-tag {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.completion-record__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.record-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.record-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.record-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.record-value {
  font-size: 0.86rem;
  color: var(--text);
  word-break: break-all;
}

/* Dual Status Comparison */
.verification-dual-status {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.status-comparison {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.status-block {
  flex: 1 1 260px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
}

.status-block--agent {
  border-left: 3px solid var(--accent-1);
}

.status-block--verified {
  border-left: 3px solid var(--state-review);
}

.status-block__badge {
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
}

.status-block--agent .status-block__badge {
  color: var(--accent-1);
}

.status-block--verified .status-block__badge {
  color: var(--state-review);
}

.status-block__desc {
  font-size: 0.84rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.status-divider {
  color: var(--text-muted);
  font-size: 1.25rem;
  font-weight: 700;
}

.verification-callout {
  font-size: 0.84rem;
  color: var(--text-dim);
  background: rgba(129, 140, 248, 0.08);
  border: 1px solid rgba(129, 140, 248, 0.2);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  line-height: 1.5;
}

/* ─────────────────────────────────────────────
   3. How It Works Cards
   ───────────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.card:hover {
  border-color: var(--accent-1);
  transform: translateY(-4px);
}

.card__number {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent-1);
  letter-spacing: 0.1em;
}

.card__icon {
  font-size: 2.2rem;
  margin-bottom: 0.25rem;
}

.card__title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.card__text {
  color: var(--text-dim);
  font-size: 0.94rem;
  line-height: 1.6;
}

.card__list {
  list-style: none;
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
}

.card__list li {
  font-size: 0.84rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card__list li::before {
  content: "•";
  color: var(--accent-2);
  font-weight: bold;
}

/* ─────────────────────────────────────────────
   4. Features List (Capabilities)
   ───────────────────────────────────────────── */
.features {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.feature {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.feature__icon {
  font-size: 1.75rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}

.feature__title {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.feature__desc {
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Roadmap Note (Audit compliance) */
.roadmap-note {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-2);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.roadmap-note__icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.roadmap-note__body {
  font-size: 0.86rem;
  color: var(--text-dim);
  line-height: 1.55;
}

.roadmap-note__body strong {
  color: var(--text);
}

/* ─────────────────────────────────────────────
   5. Waitlist Section
   ───────────────────────────────────────────── */
.waitlist {
  text-align: center;
  max-width: 580px;
  margin: 0 auto;
}

.waitlist .badge {
  margin-bottom: 1rem;
}

.waitlist__text {
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.waitlist__form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
}

.waitlist__input-group {
  flex: 1 1 280px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.waitlist__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

.waitlist__input {
  width: 100%;
  font-family: inherit;
  font-size: 0.98rem;
  padding: 0.8rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.waitlist__input:focus {
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.2);
}

.waitlist__status {
  margin-top: 1.25rem;
  font-size: 0.92rem;
  line-height: 1.5;
  min-height: 1.5em;
}

.waitlist__status--loading {
  color: var(--accent-1);
}

.waitlist__status--success {
  color: #86efac;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
}

.waitlist__status--error {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
}

/* ─────────────────────────────────────────────
   6. Footer
   ───────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 1.5rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.footer__logo {
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.footer__logo-img {
  width: 24px;
  height: 24px;
  max-width: 24px;
  max-height: 24px;
  border-radius: 4px;
  object-fit: contain;
}

.footer__tagline {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer__links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer__link {
  font-size: 0.86rem;
  color: var(--text-dim);
  transition: color 0.2s ease;
}

.footer__link:hover {
  color: var(--text);
}

.footer__copy {
  font-size: 0.82rem;
  color: var(--text-muted);
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.5rem;
  margin-top: 1rem;
}

/* ─────────────────────────────────────────────
   7. Responsive Design
   ───────────────────────────────────────────── */
@media (max-width: 860px) {
  .nav__links .nav__link {
    display: none;
  }
  
  .status-divider {
    display: none;
  }
}

.btn-text-mobile {
  display: none;
}

@media (max-width: 640px) {
  .btn-text-desktop {
    display: none;
  }

  .btn-text-mobile {
    display: inline;
  }

  .hero {
    padding-top: 6.5rem;
    padding-bottom: 3.5rem;
  }

  .hero__title {
    font-size: clamp(1.45rem, 6.5vw, 2.1rem);
    line-height: 1.22;
  }

  .section {
    padding: 3.5rem 1rem;
  }

  .demo-wrapper {
    padding: 1rem 0.75rem;
  }

  .project-meta {
    padding: 1rem 0.75rem;
  }

  .project-meta__right {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
  }

  .decision-box,
  .completion-record {
    padding: 1rem 0.75rem;
  }

  .evidence-snippet {
    padding: 0.75rem;
  }

  .evidence-snippet__file {
    word-break: break-all;
  }

  .decision-option {
    padding: 0.85rem 0.75rem;
  }

  .decision-impact {
    flex-direction: column;
    align-items: stretch;
    padding: 0.85rem 0.75rem;
  }

  .decision-impact__info {
    flex: 1 1 100%;
    width: 100%;
  }

  .decision-impact__cta {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .decision-impact__cta .btn {
    width: 100%;
  }

  .status-block {
    flex: 1 1 100%;
    width: 100%;
  }

  .nav__inner {
    padding: 0.75rem 1rem;
  }

  .nav__logo-text {
    font-size: 0.98rem;
  }

  .nav .btn--sm {
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
  }

  .workstreams-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .record-grid {
    grid-template-columns: 1fr;
    padding: 1rem 0.75rem;
  }

  .record-value {
    word-break: break-all;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .card {
    padding: 1.5rem 1.15rem;
  }

  .features {
    grid-template-columns: 1fr;
    padding: 0;
    gap: 1.5rem;
  }

  .roadmap-note {
    padding: 1rem;
    flex-direction: column;
    gap: 0.5rem;
  }

  .waitlist__form {
    flex-direction: column;
    align-items: stretch;
  }

  .waitlist__input-group {
    flex: 1 1 100%;
  }

  .waitlist__form .btn {
    width: 100%;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__links {
    width: 100%;
    justify-content: flex-start;
  }
}

/* ─────────────────────────────────────────────
   Desktop Operations Dashboard Styles
   ───────────────────────────────────────────── */

.code-font {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.desktop-body {
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

/* Top Navigation */
.d-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 9, 11, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.d-nav__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.d-nav__left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.d-nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text);
}

.d-nav__brand {
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.d-nav__brand strong {
  color: var(--accent-1);
}

.d-nav__divider {
  color: var(--text-muted);
  font-weight: 300;
}

.d-nav__title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.d-db-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-dim);
}

.d-db-status .status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.status-dot--online {
  background: #4ade80;
  box-shadow: 0 0 6px rgba(74, 222, 128, 0.6);
}

.status-dot--offline {
  background: #fbbf24;
}

.status-dot--loading {
  background: #38bdf8;
  animation: pulseDot 1s infinite alternate;
}

@keyframes pulseDot {
  from { opacity: 0.4; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1.15); }
}

.d-nav__center {
  display: flex;
  align-items: center;
}

.d-view-toggle {
  display: inline-flex;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 3px;
  gap: 2px;
}

.d-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-dim);
  background: transparent;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.15s ease;
}

.d-toggle-btn:hover {
  color: var(--text);
}

.d-toggle-btn--active {
  background: var(--surface-3);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.toggle-icon {
  font-size: 0.9rem;
}

.d-nav__right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.d-nav__back {
  font-size: 0.82rem;
  color: var(--text-dim);
  text-decoration: none;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease;
}

.d-nav__back:hover {
  color: var(--text);
}

/* Main Container */
.d-main {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3rem;
  flex: 1;
}

/* KPI Metrics Strip */
.d-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.d-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.15s ease;
}

.d-stat-card:hover {
  border-color: var(--border-light);
}

.d-stat-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.d-stat-label {
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}

.d-stat-icon {
  font-size: 1rem;
}

.d-stat-val {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 0.35rem;
  font-family: 'JetBrains Mono', monospace;
}

.d-stat-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.d-stat-badges,
.d-stat-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}

/* Chips in Metrics */
.env-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
  user-select: none;
}

.env-chip .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.env-chip--work {
  background: rgba(56, 189, 248, 0.12);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.3);
}
.env-chip--work .dot { background: #38bdf8; }

.env-chip--lab {
  background: rgba(52, 211, 153, 0.12);
  color: #6ee7b7;
  border: 1px solid rgba(52, 211, 153, 0.3);
}
.env-chip--lab .dot { background: #34d399; }

.env-chip--phone {
  background: rgba(251, 191, 36, 0.12);
  color: #fde047;
  border: 1px solid rgba(251, 191, 36, 0.3);
}
.env-chip--phone .dot { background: #fbbf24; }

.env-chip:hover {
  transform: translateY(-1px);
}

.agent-chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  user-select: none;
  transition: transform 0.15s ease;
}

.agent-chip--agy {
  background: rgba(129, 140, 248, 0.15);
  color: #c7d2fe;
  border: 1px solid rgba(129, 140, 248, 0.35);
}

.agent-chip--codex {
  background: rgba(56, 189, 248, 0.15);
  color: #bae6fd;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.agent-chip--claude {
  background: rgba(192, 132, 252, 0.15);
  color: #f3e8ff;
  border: 1px solid rgba(192, 132, 252, 0.35);
}

.agent-chip:hover {
  transform: translateY(-1px);
}

/* Toolbar & Filters */
.d-toolbar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1.15rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.d-toolbar__search {
  position: relative;
  flex: 1 1 280px;
  max-width: 420px;
  display: flex;
  align-items: center;
}

.d-toolbar__search input {
  width: 100%;
  padding: 0.5rem 2rem 0.5rem 2.2rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.84rem;
  font-family: inherit;
  transition: border-color 0.15s ease;
}

.d-toolbar__search input:focus {
  outline: none;
  border-color: var(--accent-1);
}

.d-toolbar__search .search-icon {
  position: absolute;
  left: 0.75rem;
  font-size: 0.85rem;
  pointer-events: none;
  opacity: 0.6;
}

.d-toolbar__search .clear-btn {
  position: absolute;
  right: 0.6rem;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.8rem;
  padding: 0.2rem;
}

.d-toolbar__search .clear-btn:hover {
  color: var(--text);
}

.d-toolbar__filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-label {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-dim);
}

.pill-selector {
  display: inline-flex;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 2px;
  gap: 2px;
}

.pill-btn {
  background: transparent;
  border: none;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pill-btn:hover {
  color: var(--text);
}

.pill-btn--active {
  background: var(--surface-3);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.pill-btn--work.pill-btn--active {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
}

.pill-btn--lab.pill-btn--active {
  color: #34d399;
  background: rgba(52, 211, 153, 0.15);
}

.pill-btn--phone.pill-btn--active {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.15);
}

.pill-btn--agy.pill-btn--active {
  color: #a5b4fc;
  background: rgba(129, 140, 248, 0.2);
}

.pill-btn--codex.pill-btn--active {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.2);
}

.pill-btn--claude.pill-btn--active {
  color: #c084fc;
  background: rgba(192, 132, 252, 0.2);
}

.d-select {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
  outline: none;
  cursor: pointer;
}

.d-select:focus {
  border-color: var(--accent-1);
}

.btn--xs {
  font-size: 0.75rem;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
}

/* Active filter bar */
.d-active-filter-bar {
  background: rgba(129, 140, 248, 0.08);
  border: 1px dashed rgba(129, 140, 248, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.btn-link {
  background: none;
  border: none;
  color: var(--accent-1);
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.8rem;
}

/* Table View */
.d-table-wrapper {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.d-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.84rem;
}

.d-table th {
  background: var(--surface-2);
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  user-select: none;
}

.d-table th[onclick] {
  cursor: pointer;
}

.d-table th[onclick]:hover {
  color: var(--text);
}

.th-sort-btn {
  background: transparent;
  border: none;
  color: inherit;
  font: inherit;
  font-size: inherit;
  font-weight: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.th-sort-btn:hover {
  color: var(--text);
}

.sort-icon {
  font-size: 0.7rem;
  opacity: 0.5;
  margin-left: 0.25rem;
}

.sort-icon--active {
  opacity: 1;
  color: var(--accent-1);
}

.d-table td {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.d-table-row {
  transition: background-color 0.12s ease;
}

.d-table-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.d-table-row:last-child td {
  border-bottom: none;
}

.row--decision {
  background: rgba(251, 191, 36, 0.03);
}

/* Table Specific Cell Styles */
.id-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  background: var(--surface-3);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: inline-block;
  white-space: nowrap;
}

.jira-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 600;
  color: #93c5fd;
  text-decoration: none;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.jira-link:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.5);
  color: #bfdbfe;
}

.ext-arrow {
  font-size: 0.72rem;
  opacity: 0.7;
}

.env-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.env-badge--work {
  background: rgba(56, 189, 248, 0.12);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.env-badge--lab {
  background: rgba(52, 211, 153, 0.12);
  color: #6ee7b7;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.env-badge--phone {
  background: rgba(251, 191, 36, 0.12);
  color: #fde047;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.agent-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.agent-tag--agy {
  background: rgba(129, 140, 248, 0.14);
  color: #c7d2fe;
  border: 1px solid rgba(129, 140, 248, 0.3);
}

.agent-tag--codex {
  background: rgba(56, 189, 248, 0.14);
  color: #bae6fd;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.agent-tag--claude {
  background: rgba(192, 132, 252, 0.14);
  color: #f3e8ff;
  border: 1px solid rgba(192, 132, 252, 0.3);
}

.phase-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

.phase-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  user-select: none;
}

.phase-pill--planning {
  background: rgba(167, 139, 250, 0.12);
  color: #c4b5fd;
  border: 1px solid rgba(167, 139, 250, 0.28);
}

.phase-pill--progress {
  background: rgba(56, 189, 248, 0.12);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.28);
}

.phase-pill--decision {
  background: rgba(251, 191, 36, 0.14);
  color: #fde047;
  border: 1px solid rgba(251, 191, 36, 0.35);
}

.phase-pill--review {
  background: rgba(52, 211, 153, 0.12);
  color: #6ee7b7;
  border: 1px solid rgba(52, 211, 153, 0.28);
}

.phase-pill--done {
  background: rgba(74, 222, 128, 0.12);
  color: #86efac;
  border: 1px solid rgba(74, 222, 128, 0.28);
}

.desc-main {
  color: var(--text);
  line-height: 1.45;
  font-size: 0.85rem;
}

.desc-sub {
  margin-top: 0.3rem;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.notes-tag {
  color: var(--text-dim);
  background: var(--surface-2);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.conf-link {
  font-size: 0.78rem;
  color: #a5b4fc;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(129, 140, 248, 0.08);
  border: 1px solid rgba(129, 140, 248, 0.2);
  padding: 0.22rem 0.55rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: all 0.15s ease;
}

.conf-link:hover {
  background: rgba(129, 140, 248, 0.18);
  color: #c7d2fe;
}

.conf-icon {
  font-size: 0.78rem;
}

.action-btn-group {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-icon {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-dim);
  border-radius: var(--radius-sm);
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.12s ease;
}

.btn-icon:hover {
  background: var(--surface-3);
  color: var(--text);
  border-color: var(--border-light);
}

.btn-icon--del:hover {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.4);
}

/* Empty State */
.d-empty-state {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 3rem 1.5rem;
  text-align: center;
}

.d-empty-icon {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
  opacity: 0.7;
}

.d-empty-state h3 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.d-empty-state p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

/* Kanban Board View */
.d-board-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  align-items: flex-start;
}

.d-board-col {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  min-height: 480px;
}

.d-board-col--decision {
  border-color: rgba(251, 191, 36, 0.35);
}

.d-board-col__head {
  padding: 0.85rem 1rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.d-board-col__title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
}

.d-board-col__count {
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--surface-3);
  color: var(--text-dim);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
}

.d-board-col__cards {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.b-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform 0.12s ease, border-color 0.12s ease;
}

.b-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-light);
}

.b-card--decision {
  border-left: 3px solid #fbbf24;
}

.b-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.b-card__desc {
  font-size: 0.8rem;
  color: var(--text);
  line-height: 1.4;
}

.b-card__notes {
  font-size: 0.72rem;
  color: var(--text-muted);
  background: var(--surface-3);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.b-card__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.b-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.b-card__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 0.4rem;
}

.btn-text-xs {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 0.72rem;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
}

.btn-text-xs:hover {
  color: var(--text);
  background: var(--surface-3);
}

/* Footer Utility Bar */
.d-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0.5rem 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.d-footer-left,
.d-footer-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sep {
  opacity: 0.4;
}

.btn-text-action {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 0.78rem;
  cursor: pointer;
  text-decoration: underline;
}

.btn-text-action:hover {
  color: var(--text);
}

/* Modal Styles */
.d-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.d-modal {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 580px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalEnter 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalEnter {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.d-modal__header {
  padding: 1.25rem 1.5rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.d-modal__title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.d-modal__close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
}

.d-modal__close:hover {
  color: var(--text);
}

.d-modal__form {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  gap: 1rem;
}

.form-row--2 { grid-template-columns: 1fr 1fr; }
.form-row--3 { grid-template-columns: 1fr 1fr 1fr; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-dim);
}

.req {
  color: #f87171;
}

.d-input,
.d-textarea {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.85rem;
  padding: 0.55rem 0.75rem;
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s ease;
}

.d-input:focus,
.d-textarea:focus {
  border-color: var(--accent-1);
}

.d-textarea {
  resize: vertical;
}

.d-modal__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

/* Toast Notification */
.d-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 2000;
  background: var(--surface-3);
  color: var(--text);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 0.65rem 1.25rem;
  font-size: 0.82rem;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.d-toast--show {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Overrides for Desktop View */
@media (max-width: 1200px) {
  .d-board-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .d-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .d-nav__inner {
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
  }
  .d-metrics {
    grid-template-columns: 1fr;
  }
  .d-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .d-toolbar__search {
    max-width: 100%;
  }
  .d-board-grid {
    grid-template-columns: 1fr;
  }
  .form-row--2,
  .form-row--3 {
    grid-template-columns: 1fr;
  }
}


/* ── Desktop dashboard fixes ── */
/* Ensure the [hidden] attribute always wins over component display rules (modal, toast, filter bar, views) */
.desktop-body [hidden] {
  display: none !important;
}

/* Keep modal form grids from overflowing their container */
.form-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.d-modal .d-select,
.d-modal .d-input,
.d-modal .d-textarea {
  width: 100%;
  min-width: 0;
}

/* Accessibility Focus-Visible Ring Indicator Styles */
:focus-visible {
  outline: 2px solid var(--accent-1);
  outline-offset: 2px;
}

.btn:focus-visible,
.btn-icon:focus-visible,
.d-toggle-btn:focus-visible,
.pill-btn:focus-visible,
.phase-btn:focus-visible,
.d-modal__close:focus-visible {
  outline: 2px solid var(--accent-1);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(129, 140, 248, 0.25);
}

.decision-option:has(input:focus-visible) {
  outline: 2px solid var(--accent-1);
  outline-offset: 2px;
  border-color: var(--accent-1);
  box-shadow: 0 0 0 4px rgba(129, 140, 248, 0.25);
}
