:root {
  --ink: #0f172a;
  --ink-soft: #1e293b;
  --accent: #0d9488;
  --accent-deep: #0f766e;
  --accent-sky: #0891b2;
  --surface: #f1f5f9;
  --surface-2: #e2e8f0;
  --card: #ffffff;
  --line: #cbd5e1;
  --text: #0f172a;
  --muted: #64748b;
  --ok: #059669;
  --warn: #d97706;
  --danger: #dc2626;
  --info: #0284c8;
  --radius: 12px;
  --shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
  --font-display: "Sora", "DM Sans", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(900px 480px at 0% -5%, rgba(13, 148, 136, 0.12) 0%, transparent 55%),
    radial-gradient(800px 420px at 100% 0%, rgba(8, 145, 178, 0.1) 0%, transparent 50%),
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

h1, h2, h3, .brand, .display {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  color: var(--ink);
  border: none;
  outline: none;
}

a { color: var(--accent-deep); text-decoration: none; }
a:hover { color: var(--accent-sky); }

.btn, button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: .65rem 1.15rem;
  font: 600 .95rem/1.2 var(--font-body);
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-sky));
  color: #fff;
  box-shadow: 0 10px 24px rgba(13, 148, 136, .28);
}
.btn-primary:hover { color: #fff; }
.btn-ghost {
  background: rgba(255,255,255,.75);
  border-color: var(--line);
  color: var(--ink);
}
.btn-danger {
  background: #fef2f2;
  border-color: #fecaca;
  color: var(--danger);
}
.btn-sm { padding: .4rem .8rem; font-size: .85rem; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.field label { font-weight: 600; color: var(--ink); font-size: .92rem; }
.field input, .field textarea, .field select,
input[type=text], input[type=email], input[type=password], input[type=url],
input[type=number], input[type=time], textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .7rem .85rem;
  font: 1rem/1.3 var(--font-body);
  background: #fff;
  color: var(--text);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid rgba(13, 148, 136, .25);
  border-color: var(--accent);
}
.hint { color: var(--muted); font-size: .88rem; }
.error { color: var(--danger); font-size: .9rem; }
.success { color: var(--ok); }

/* Public layout */
.public-shell { min-height: 100vh; display: flex; flex-direction: column; }
.public-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(248, 250, 252, .88);
  border-bottom: 1px solid rgba(203, 213, 225, .7);
}
.brand {
  font-size: 1.25rem; font-weight: 700; color: var(--ink);
  display: inline-flex; align-items: center; gap: .55rem;
}
.brand-mark {
  width: 1.5rem; height: 1.5rem; border-radius: 8px;
  background: linear-gradient(145deg, var(--accent), var(--ink));
  box-shadow: 0 6px 16px rgba(13, 148, 136, .35);
}
.public-nav-links { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.public-nav-links a { color: var(--ink-soft); font-weight: 600; }
.public-main { flex: 1; }
.public-footer {
  margin-top: 3rem;
  padding: 1.75rem clamp(1rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; justify-content: space-between;
}
.public-footer a { color: var(--muted); }

/* Hero — full-bleed visual plane */
.hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.25rem, 4vw, 3rem) clamp(1rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 85% 40%, rgba(13, 148, 136, .18), transparent 60%),
    radial-gradient(ellipse 50% 50% at 10% 80%, rgba(8, 145, 178, .12), transparent 55%),
    linear-gradient(135deg, #0f172a 0%, #134e4a 48%, #0e7490 100%);
  z-index: 0;
}
.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 34rem;
  color: #f8fafc;
  animation: heroRise .65s ease both;
}
.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.45rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin: 0 0 .75rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: .65rem;
}
.hero-brand .brand-mark {
  width: 2rem; height: 2rem;
  background: linear-gradient(145deg, #2dd4bf, #22d3ee);
  box-shadow: 0 8px 22px rgba(45, 212, 191, .4);
}
.hero h1,
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 .85rem;
  color: #ecfeff;
  max-width: 28ch;
  border: none;
}
.hero p.lead {
  font-size: 1.05rem;
  color: rgba(226, 232, 240, .88);
  margin: 0 0 1.35rem;
  max-width: 36ch;
  line-height: 1.5;
}
.hero-cta { display: flex; gap: .75rem; flex-wrap: wrap; }
.hero-cta .btn-primary {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 10px 28px rgba(0,0,0,.2);
}
.hero-cta .btn-ghost {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.35);
  color: #fff;
}
.hero-visual {
  position: relative;
  z-index: 1;
  min-height: 320px;
  animation: heroRise .75s ease .08s both;
}
.pipeline-stage {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
  justify-content: center;
}
.pipeline-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  flex-wrap: wrap;
}
.pipeline-node {
  flex: 1;
  min-width: 100px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 14px;
  padding: 1rem .9rem;
  color: #fff;
  backdrop-filter: blur(8px);
  text-align: center;
}
.pipeline-node strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: .25rem;
}
.pipeline-node span { font-size: .8rem; opacity: .85; }
.pipeline-arrow {
  color: #99f6e4;
  font-size: 1.4rem;
  font-weight: 700;
  flex-shrink: 0;
}
.pipeline-platforms {
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  gap: .35rem;
}
.plat-badge {
  aspect-ratio: 1;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .72rem;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,.18);
}
@keyframes heroRise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.section {
  padding: 2.75rem clamp(1rem, 4vw, 3rem);
}
.section-head { max-width: 40rem; margin-bottom: 1.5rem; }
.section-head h2 {
  margin: 0 0 .45rem;
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  border: none;
}
.section-head p { margin: 0; color: var(--muted); }

.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem 2rem;
}
.benefit {
  padding: 0;
  border: none;
  background: none;
}
.benefit .n {
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: .35rem;
}
.benefit h3 { margin: 0 0 .4rem; font-size: 1.1rem; }
.benefit p { margin: 0; color: var(--muted); line-height: 1.45; }

.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: .65rem;
}
.platform-chip {
  display: flex;
  align-items: center;
  gap: .55rem;
  background: rgba(255,255,255,.85);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .65rem .75rem;
  font-weight: 600;
  color: var(--ink);
  font-size: .88rem;
  transition: border-color .15s ease, transform .15s ease;
}
.platform-chip:hover { border-color: var(--accent); transform: translateY(-2px); }
.platform-chip .plat-badge {
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
  font-size: .7rem;
  aspect-ratio: auto;
}

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.15rem;
}
.plan-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: .35rem;
  transition: border-color .15s ease, transform .15s ease;
}
.plan-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}
.plan-card h3 { margin: 0; }
.plan-price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-deep);
  margin: .5rem 0;
}
.plan-card .btn { margin-top: auto; align-self: flex-start; }

.cta-band {
  text-align: center;
  padding: 2.5rem clamp(1rem, 4vw, 3rem);
}
.cta-band h2 { margin: 0 0 .5rem; border: none; }

/* Auth branded layout */
.auth-shell {
  min-height: calc(100vh - 4rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.auth-brand-panel {
  background: linear-gradient(160deg, #0f172a 0%, #134e4a 55%, #0e7490 100%);
  color: #f8fafc;
  padding: clamp(2rem, 5vw, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.auth-brand-panel::after {
  content: "";
  position: absolute;
  inset: auto -20% -30% 40%;
  height: 70%;
  background: radial-gradient(circle, rgba(45, 212, 191, .25), transparent 65%);
  pointer-events: none;
}
.auth-brand-panel .brand { color: #fff; font-size: 1.6rem; margin-bottom: 1.25rem; }
.auth-brand-panel h2 {
  color: #ecfeff;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  margin: 0 0 .75rem;
  border: none;
  max-width: 18ch;
}
.auth-brand-panel p { color: rgba(226, 232, 240, .85); margin: 0; max-width: 32ch; line-height: 1.5; }
.auth-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(248, 250, 252, .6);
}
.auth-card {
  width: min(440px, 100%);
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.auth-card h1 { margin-top: 0; font-size: 1.55rem; border: none; }

/* App / Admin shells */
.app-shell, .admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 250px 1fr;
}
.sidebar {
  background: linear-gradient(180deg, #0f172a 0%, #0b1220 100%);
  color: #dce7f7;
  padding: 1.25rem 1rem;
  display: flex; flex-direction: column; gap: 1rem;
}
.sidebar .brand { color: #fff; }
.sidebar nav { display: flex; flex-direction: column; gap: .15rem; }
.sidebar a {
  color: #94a3b8;
  padding: .5rem .7rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: .92rem;
}
.sidebar a.active, .sidebar a:hover {
  background: rgba(13, 148, 136, .22);
  color: #fff;
}
.sidebar-foot { margin-top: auto; font-size: .85rem; color: #64748b; }
.app-main, .admin-main {
  padding: 1.35rem clamp(1rem, 3vw, 1.85rem);
}
.page-title {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  margin-bottom: 1.1rem; flex-wrap: wrap;
}
.page-title h1 { margin: 0; font-size: 1.65rem; border: none; }
.page-title p { margin: .3rem 0 0; color: var(--muted); }

.panel {
  background: rgba(255,255,255,.9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}
.panel h2, .panel h3 { margin-top: 0; border: none; }

.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .75rem;
  margin-bottom: 1rem;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .9rem 1rem;
}
.stat .label { color: var(--muted); font-size: .82rem; }
.stat .value {
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--ink);
}

.health-strip {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1rem;
}
.health-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .7rem;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: .82rem;
  font-weight: 600;
}
.health-pill .dot {
  width: .55rem; height: .55rem; border-radius: 50%;
  background: var(--muted);
}
.health-pill.ok .dot { background: var(--ok); }
.health-pill.warn .dot { background: var(--warn); }
.health-pill.danger .dot { background: var(--danger); }

.table-wrap { overflow: auto; }
table.data {
  width: 100%; border-collapse: collapse; font-size: .94rem;
}
table.data th, table.data td {
  text-align: left; padding: .65rem .5rem; border-bottom: 1px solid var(--line);
}
table.data th {
  color: var(--muted); font-weight: 600; font-size: .78rem;
  text-transform: uppercase; letter-spacing: .04em;
}
table.data tr:hover td { background: rgba(13, 148, 136, .04); }

.list-actions { display: flex; flex-wrap: wrap; gap: .4rem; }

.filters {
  display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; align-items: center;
}
.filters select, .filters input {
  width: auto; min-width: 140px;
}

.preview-snip {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.4;
  margin: .5rem 0;
  white-space: pre-wrap;
  max-height: 4.5em;
  overflow: hidden;
}

.block-editor .block-row {
  margin-bottom: .75rem;
  padding: .75rem;
  background: var(--surface);
  border-radius: 8px;
}
.block-editor .block-meta {
  display: flex; gap: .5rem; align-items: center; margin-bottom: .4rem;
  font-size: .82rem; color: var(--muted); font-weight: 600;
}

.status-badge {
  display: inline-flex; align-items: center;
  padding: .2rem .55rem; border-radius: 999px;
  font-size: .78rem; font-weight: 700; letter-spacing: .02em;
  background: #eef2f7; color: var(--muted);
}
.status-ok { background: #d1fae5; color: var(--ok); }
.status-warn { background: #fef3c7; color: var(--warn); }
.status-danger { background: #fee2e2; color: var(--danger); }
.status-info { background: #e0f2fe; color: var(--info); }
.status-review { background: #ccfbf1; color: var(--accent-deep); }
.status-muted { background: #eef1f5; color: #7a8798; }
.status-neutral { background: #eef2f7; color: var(--muted); }

.impersonation-banner {
  background: linear-gradient(90deg, #ea580c, #dc2626);
  color: #fff;
  padding: .75rem 1rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(220, 38, 38, .25);
}
.impersonation-banner .btn-ghost {
  background: rgba(255,255,255,.2);
  border-color: rgba(255,255,255,.45);
  color: #fff;
}

.factory-toggle {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .65rem;
  background: rgba(255,255,255,.06);
  border-radius: 8px;
  font-size: .82rem;
  color: #94a3b8;
}
.factory-toggle button {
  margin-left: auto;
}

.wizard-steps {
  display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.25rem;
}
.wizard-steps span {
  padding: .35rem .7rem; border-radius: 999px; background: #e8eef7; color: var(--muted); font-size: .85rem; font-weight: 600;
}
.wizard-steps span.active { background: var(--accent); color: #fff; }
.wizard-steps span.done { background: #ccfbf1; color: var(--accent-deep); }

.page-shell { padding: 2rem; max-width: 720px; margin: 0 auto; }

#blazor-error-ui {
  background: #fff3f2; bottom: 0; box-shadow: 0 -2px 12px rgba(0,0,0,.15);
  display: none; left: 0; padding: .6rem 1.25rem; position: fixed; width: 100%; z-index: 1000;
  border-top: 1px solid #f0c4bf;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: .75rem; top: .5rem; }
.components-reconnect-modal { display: none; }

.health-banner { padding: .75rem 1rem; border-radius: 8px; margin-bottom: 1rem; font-weight: 600; }
.health-banner.ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.health-banner.warn { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.health-banner.danger { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.health-check-list { list-style: none; padding: 0; margin: 0; }
.health-check-list li { padding: .35rem 0; border-bottom: 1px solid var(--border); }
.health-check-list li.ok { color: #065f46; }
.health-check-list li.warn { color: #92400e; }
.health-check-list li.danger { color: #991b1b; }

.toast-host { position: fixed; top: 1rem; right: 1rem; z-index: 2000; display: flex; flex-direction: column; gap: .5rem; }
.toast { padding: .75rem 1rem; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,.12); max-width: 360px; }
.toast-success { background: #ecfdf5; color: #065f46; }
.toast-error { background: #fef2f2; color: #991b1b; }
.toast-warning { background: #fffbeb; color: #92400e; }
.toast-info { background: #eff6ff; color: #1e40af; }

.error-fallback { text-align: center; max-width: 480px; margin: 2rem auto; }

.skeleton { background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 4px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.status-badge { display: inline-block; padding: .15rem .5rem; border-radius: 999px; font-size: .75rem; font-weight: 600; }
.status-badge.neutral { background: #f3f4f6; color: #374151; }
.status-badge.ok { background: #ecfdf5; color: #065f46; }
.status-badge.warn { background: #fffbeb; color: #92400e; }
.status-badge.danger { background: #fef2f2; color: #991b1b; }

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 1.5rem;
  }
  .hero-visual { min-height: 220px; }
  .pipeline-platforms { grid-template-columns: repeat(6, 1fr); }
  .benefits { grid-template-columns: 1fr; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-brand-panel { min-height: 180px; padding: 1.5rem; }
  .app-shell, .admin-shell { grid-template-columns: 1fr; }
  .sidebar { position: sticky; top: 0; z-index: 10; }
  .sidebar nav { flex-direction: row; flex-wrap: wrap; }
}

.tabs { display: flex; gap: .35rem; margin-bottom: 1rem; flex-wrap: wrap; }
.tab { border: 1px solid var(--border, #e5e7eb); background: #fff; padding: .45rem .85rem; border-radius: 8px; cursor: pointer; font-size: .875rem; }
.tab.active { background: var(--accent, #2563eb); color: #fff; border-color: transparent; }

.progress-bar { height: 6px; background: #e5e7eb; border-radius: 999px; overflow: hidden; margin: .5rem 0; }
.progress-fill { height: 100%; background: var(--accent, #2563eb); transition: width .2s; }

.ai-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .75rem; }
.ai-card { border: 1px solid var(--border, #e5e7eb); border-radius: 10px; padding: .75rem; background: #fafafa; }
.ai-card label { font-weight: 600; font-size: .8rem; display: block; margin-bottom: .35rem; }

.platform-grid-onboarding { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .65rem; }
.platform-card-onboarding { border: 1px solid var(--border, #e5e7eb); border-radius: 10px; padding: .65rem; display: flex; flex-direction: column; gap: .25rem; cursor: pointer; }
.platform-card-onboarding.selected { border-color: var(--accent, #2563eb); background: #eff6ff; }

.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: .5rem; }
.calendar-day { border: 1px solid var(--border, #e5e7eb); border-radius: 8px; padding: .5rem; min-height: 80px; font-size: .8rem; }
.calendar-day.today { border-color: var(--accent, #2563eb); background: #f0f9ff; }
.calendar-item { margin-top: .25rem; padding: .15rem .35rem; background: #f3f4f6; border-radius: 4px; }

.nav-group-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #64748b;
  margin: 1rem 0 .35rem;
  padding-left: .7rem;
}
.form-check-row {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: 1rem;
}
.form-check-row label { margin: 0; font-weight: 600; cursor: pointer; }
.form-check-row input[type=checkbox] { width: 1.05rem; height: 1.05rem; flex-shrink: 0; margin: 0; }
.empty-state {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--muted);
}
.empty-state h3 { margin: 0 0 .5rem; color: var(--ink); font-size: 1.1rem; }
.empty-state-action { margin-top: 1rem; }
.tiptap-surface:focus { outline: 2px solid #93c5fd; }
.editor-toolbar { margin-bottom: .5rem; }

.crawl-list { font-size: .85rem; max-height: 200px; overflow: auto; }
.pillar-row { border-bottom: 1px solid #eee; padding: .75rem 0; }

.wizard-overlay {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .45);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; padding: 1rem;
}
.wizard-dialog {
  width: min(640px, 100%); max-height: 90vh; overflow: auto; margin: 0;
}
.wizard-steps {
  display: flex; gap: .5rem; margin-bottom: 1rem;
}
.wizard-steps span {
  width: 1.75rem; height: 1.75rem; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .85rem; border: 1px solid var(--line); color: var(--muted);
}
.wizard-steps span.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.wizard-steps span.done { background: #d1fae5; border-color: #6ee7b7; color: #065f46; }
