@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap");

:root {
  color-scheme: light;
  --ink: #173d3a;
  --ink-soft: #2d504c;
  --muted: #697875;
  --faint: #8b9692;
  --paper: #fff8ed;
  --surface: #fffefa;
  --surface-strong: #ffffff;
  --line: #eadfd3;
  --blue: #d6e9ff;
  --green: #ddeed7;
  --coral: #f4b9a6;
  --wattle: #f4ebc9;
  --lavender: #e6e1f5;
  --sky: #dff0f7;
  --danger: #a4493f;
  --shadow: 0 26px 80px rgba(34, 48, 47, 0.11);
  --shadow-soft: 0 18px 44px rgba(34, 48, 47, 0.08);
  --radius: 22px;
  --radius-sm: 14px;
  --wrap: min(1120px, calc(100vw - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  letter-spacing: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 12%, rgba(244, 185, 166, 0.24), transparent 26%),
    linear-gradient(180deg, #fff8ed 0%, #fbf4e9 54%, #f6f1e9 100%);
}

img,
svg {
  max-width: 100%;
}

a {
  color: inherit;
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

:focus-visible {
  outline: 3px solid rgba(79, 124, 184, 0.38);
  outline-offset: 3px;
}

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

.topbar {
  position: fixed;
  z-index: 30;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1120px, calc(100vw - 28px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border: 1px solid rgba(234, 223, 211, 0.76);
  border-radius: 999px;
  background: rgba(255, 254, 250, 0.78);
  box-shadow: 0 18px 60px rgba(34, 48, 47, 0.1);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
  font-weight: 900;
  color: var(--ink);
}

.brand img {
  width: 42px;
  height: 42px;
}

.brand-word {
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a,
.ghost-btn,
.primary-btn,
.icon-btn {
  border: 0;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 750;
  color: var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-links a {
  padding: 10px 12px;
  color: var(--muted);
}

.nav-links a.primary-btn {
  color: white;
}

.nav-links a:hover,
.ghost-btn:hover,
.primary-btn:hover,
.icon-btn:hover {
  transform: translateY(-1px);
}

.primary-btn,
.ghost-btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
}

.primary-btn {
  background: var(--ink);
  color: white;
  box-shadow: 0 14px 32px rgba(23, 61, 58, 0.22);
}

.primary-btn:hover {
  box-shadow: 0 18px 42px rgba(23, 61, 58, 0.26);
}

.ghost-btn {
  border: 1px solid var(--line);
  background: rgba(255, 254, 250, 0.68);
}

.small-btn {
  min-height: 36px;
  padding: 0 13px;
  font-size: 13px;
}

.icon-btn {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--surface);
}

.hero {
  position: relative;
  min-height: 76svh;
  display: grid;
  align-items: center;
  padding: 102px 0 28px;
  isolation: isolate;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(255, 248, 237, 0.2), rgba(255, 248, 237, 0.88));
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255, 248, 237, 0.96), rgba(255, 248, 237, 0.78) 45%, rgba(255, 248, 237, 0.42)),
    linear-gradient(180deg, transparent 70%, var(--paper));
}

.hero-inner {
  width: var(--wrap);
  margin: 0 auto;
  display: grid;
  gap: 30px;
}

.eyebrow,
.trust-pill,
.status-pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(23, 61, 58, 0.12);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 254, 250, 0.74);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 760;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7bbf86;
}

.hero .eyebrow-dot {
  background: #7bbf86;
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 670px;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(18px, 2.5vw, 23px);
  line-height: 1.5;
}

.hero-copy span {
  display: inline;
  margin-top: 0;
  color: inherit;
  font-size: inherit;
}

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

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.section {
  width: var(--wrap);
  margin: 0 auto;
  padding: 68px 0;
  scroll-margin-top: 88px;
}

.compact-section {
  padding: 24px 0 52px;
}

.section-header {
  display: grid;
  gap: 12px;
  max-width: 720px;
  margin-bottom: 26px;
}

.section-kicker {
  display: inline-flex;
  width: fit-content;
  border: 1px solid rgba(23, 61, 58, 0.12);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255, 254, 250, 0.72);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 820;
}

.section-header h2,
.app-heading h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

.section-header p,
.muted,
.card p {
  color: var(--muted);
  line-height: 1.55;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.proof-item {
  min-height: 112px;
  display: grid;
  align-content: center;
  gap: 8px;
  border: 1px solid rgba(234, 223, 211, 0.76);
  border-radius: 20px;
  background: rgba(255, 254, 250, 0.74);
  padding: 18px;
  box-shadow: 0 14px 34px rgba(34, 48, 47, 0.06);
}

.proof-item strong {
  font-size: 38px;
  line-height: 1;
}

.proof-item span {
  color: var(--muted);
  font-weight: 720;
  line-height: 1.35;
}

.pathway-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.pathway-card,
.card,
.task-card,
.auth-panel,
.onboarding-panel,
.dashboard-panel,
.modal-card {
  border: 1px solid rgba(234, 223, 211, 0.82);
  border-radius: var(--radius);
  background: rgba(255, 254, 250, 0.84);
  box-shadow: var(--shadow-soft);
}

.pathway-card {
  min-height: 208px;
  padding: 18px;
  display: grid;
  align-content: space-between;
  gap: 22px;
}

.pathway-card img {
  width: 58px;
  height: 58px;
}

.pathway-card h3,
.card h3,
.task-card h3,
.modal-card h3 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: 0;
}

.pathway-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.step-card,
.feature-card,
.preview-panel,
.parent-guidance article,
.faq-grid details {
  border: 1px solid rgba(234, 223, 211, 0.82);
  border-radius: var(--radius);
  background: rgba(255, 254, 250, 0.84);
  box-shadow: var(--shadow-soft);
}

.step-card,
.feature-card,
.parent-guidance article,
.faq-grid details {
  padding: 22px;
}

.step-number {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 50%;
  background: var(--green);
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.step-card:nth-child(2) .step-number {
  background: var(--blue);
}

.step-card:nth-child(3) .step-number {
  background: var(--coral);
}

.step-card:nth-child(4) .step-number {
  background: var(--wattle);
}

.step-card h3,
.feature-card h3,
.preview-panel h3,
.parent-guidance h3 {
  margin: 0 0 10px;
  line-height: 1.1;
}

.step-card p,
.feature-card p,
.preview-panel p,
.parent-guidance p,
.faq-grid p,
.cta-band p,
.safety-band p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.demo-band {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: 18px;
  align-items: stretch;
}

.checklist-demo {
  overflow: hidden;
  padding: 20px;
  color: var(--ink);
}

.demo-task {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  animation: softIn 0.7s ease both;
}

.demo-task:last-child {
  border-bottom: 0;
}

.tick {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: var(--ink);
  font-weight: 900;
}

.source-chip {
  border-radius: 999px;
  padding: 7px 10px;
  background: #f5efe6;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 760;
  white-space: nowrap;
}

.source-groups {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(280px, 1.35fr);
  gap: 14px;
}

.source-group {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 254, 250, 0.78);
  box-shadow: 0 14px 34px rgba(34, 48, 47, 0.06);
  padding: 16px;
}

.source-group h3 {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.1;
}

.source-group div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.source-group-wide div {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.source-group a,
.metric {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 12px;
  font-weight: 800;
  color: var(--ink-soft);
}

.source-group a {
  position: relative;
  text-decoration: none;
  transition: border 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.source-group a::after {
  content: "↗";
  float: right;
  color: var(--faint);
  font-weight: 900;
}

.source-group a:hover {
  border-color: rgba(23, 61, 58, 0.24);
  box-shadow: 0 14px 32px rgba(34, 48, 47, 0.07);
  transform: translateY(-1px);
}

.product-preview {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.76fr);
  grid-template-areas:
    "main timeline"
    "main ai";
  gap: 14px;
  align-items: stretch;
}

.preview-panel {
  padding: 24px;
}

.preview-main {
  grid-area: main;
  display: grid;
  align-content: center;
  gap: 18px;
  min-height: 390px;
}

.preview-main h3 {
  font-size: clamp(30px, 5vw, 54px);
  letter-spacing: 0;
}

.product-preview .preview-panel:nth-child(2) {
  grid-area: timeline;
}

.ai-preview {
  grid-area: ai;
  background: linear-gradient(135deg, rgba(214, 233, 255, 0.72), rgba(221, 238, 215, 0.7));
}

.preview-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.timeline-demo {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 12px 10px;
  margin-top: 18px;
}

.timeline-demo span {
  width: 12px;
  height: 12px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--coral);
}

.timeline-demo strong {
  display: block;
  color: var(--ink);
}

.timeline-demo p {
  margin-top: 2px;
}

.safety-band,
.cta-band,
.parent-section {
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(255, 254, 250, 0.92), rgba(238, 248, 245, 0.82)),
    var(--surface);
  border: 1px solid rgba(234, 223, 211, 0.82);
  box-shadow: var(--shadow-soft);
}

.safety-band {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 0.72fr);
  gap: 30px;
  align-items: center;
  padding: 34px;
}

.safety-band h2,
.cta-band h2 {
  margin: 12px 0 14px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1;
  letter-spacing: 0;
}

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

.never-grid span {
  display: flex;
  align-items: center;
  min-height: 52px;
  border: 1px solid rgba(164, 73, 63, 0.16);
  border-radius: 16px;
  background: #fff0ea;
  color: #74372f;
  padding: 12px;
  font-weight: 820;
}

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

.feature-card {
  min-height: 230px;
}

.parent-section {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 30px;
}

.parent-section .section-header {
  margin: 0;
}

.parent-guidance {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.parent-guidance article:first-child {
  background: rgba(221, 238, 215, 0.62);
}

.parent-guidance article:nth-child(2) {
  background: rgba(255, 240, 234, 0.78);
}

.parent-guidance article:nth-child(3) {
  background: rgba(214, 233, 255, 0.62);
}

.parent-guidance article:nth-child(4) {
  background: rgba(244, 235, 201, 0.56);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.faq-grid details {
  padding: 0;
  overflow: hidden;
  align-self: start;
}

.faq-grid summary {
  cursor: pointer;
  padding: 20px 22px;
  color: var(--ink);
  font-weight: 850;
  list-style: none;
}

.faq-grid summary::-webkit-details-marker {
  display: none;
}

.faq-grid summary::after {
  content: "+";
  float: right;
  color: var(--muted);
  font-weight: 900;
}

.faq-grid details[open] summary::after {
  content: "-";
}

.faq-grid details:not([open]) p {
  display: none;
}

.faq-grid p {
  padding: 0 22px 22px;
}

.cta-band {
  display: grid;
  justify-items: center;
  text-align: center;
  padding: 48px 24px;
}

.cta-band p {
  max-width: 650px;
  margin-bottom: 22px;
}

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

.testimonial-section {
  padding: 52px 0;
}

.testimonial-section .section-header {
  margin-bottom: 18px;
}

.testimonial-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
  align-items: stretch;
}

.testimonial-feature,
.testimonial-card {
  display: grid;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(234, 223, 211, 0.82);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(34, 48, 47, 0.07);
}

.testimonial-feature {
  min-height: 430px;
  align-content: space-between;
  gap: 28px;
  background:
    radial-gradient(circle at 90% 0%, rgba(214, 233, 255, 0.68), transparent 34%),
    linear-gradient(135deg, rgba(255, 254, 250, 0.96), rgba(238, 248, 245, 0.82));
  padding: 30px;
}

.quote-large {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 900;
  line-height: 1.06;
}

.testimonial-person {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 12px;
  align-items: center;
}

.testimonial-avatar {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  font-weight: 900;
}

.testimonial-stack {
  display: grid;
  gap: 12px;
}

.testimonial-card {
  min-height: 132px;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(234, 223, 211, 0.82);
  background:
    linear-gradient(180deg, rgba(255, 254, 250, 0.94), rgba(255, 254, 250, 0.78)),
    var(--surface);
  padding: 22px;
}

.testimonial-tag {
  display: inline-grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border-radius: 18px;
  background: var(--green);
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.testimonial-card:nth-child(2) .testimonial-tag {
  background: var(--blue);
}

.testimonial-card:nth-child(3) .testimonial-tag {
  background: var(--wattle);
}

.testimonial-card p {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 820;
  line-height: 1.28;
}

.testimonial-card div {
  display: grid;
  gap: 4px;
  min-width: 130px;
}

.testimonial-card strong {
  color: var(--ink);
  white-space: nowrap;
}

.testimonial-person span,
.testimonial-card div span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 720;
}

.testimonial-person div span + span {
  position: relative;
  padding-left: 14px;
}

.testimonial-person div span + span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--coral);
}

.card {
  padding: 22px;
}

.quote {
  font-size: 18px;
  color: var(--ink);
  margin: 0 0 18px;
}

.footer {
  width: var(--wrap);
  margin: 0 auto;
  padding: 24px 0 34px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 22px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  border-top: 1px solid var(--line);
}

.footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
}

.footer-brand {
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.footer nav a {
  color: var(--muted);
  font-weight: 760;
  text-decoration: none;
}

.footer p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--faint);
}

.app-body {
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 8%, rgba(214, 233, 255, 0.6), transparent 28%),
    radial-gradient(circle at 88% 20%, rgba(244, 185, 166, 0.34), transparent 28%),
    linear-gradient(180deg, #fff8ed, #f7f2ea);
}

.app-layout {
  width: var(--wrap);
  min-height: 100svh;
  margin: 0 auto;
  padding: 96px 0 48px;
}

.app-nav {
  position: fixed;
  z-index: 40;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1120px, calc(100vw - 28px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(234, 223, 211, 0.8);
  border-radius: 999px;
  background: rgba(255, 254, 250, 0.82);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.auth-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(360px, 0.64fr);
  gap: 24px;
  align-items: center;
  min-height: calc(100svh - 150px);
}

.auth-copy {
  display: grid;
  gap: 18px;
}

.auth-copy h1 {
  margin: 0;
  font-size: clamp(42px, 8vw, 82px);
  line-height: 0.96;
  letter-spacing: 0;
}

.auth-panel,
.onboarding-panel,
.dashboard-panel {
  min-width: 0;
  padding: 24px;
}

.auth-panel form,
.form-grid {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label,
.field-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-soft);
}

.field input,
.field select,
.field textarea,
.control-select {
  max-width: 100%;
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: white;
  color: var(--ink);
  padding: 0 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.control-select {
  width: auto;
  min-width: 128px;
  appearance: none;
  padding-right: 36px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink) 50%),
    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 13px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  font-weight: 750;
}

.field textarea {
  min-height: 110px;
  padding: 12px 14px;
  resize: vertical;
}

.switch-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 650;
}

.switch-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--ink);
}

.dev-link {
  display: none;
  padding: 14px;
  border: 1px solid rgba(23, 61, 58, 0.16);
  border-radius: 16px;
  background: #f3fbf8;
}

.dev-link.visible {
  display: block;
}

.onboarding-shell {
  overflow: hidden;
  border: 1px solid rgba(214, 217, 215, 0.96);
  border-radius: 20px;
  background: rgba(255, 254, 250, 0.92);
  box-shadow: var(--shadow-soft);
}

.onboarding-wrap {
  display: grid;
  grid-template-columns: minmax(320px, 0.52fr) minmax(0, 1fr);
  align-items: stretch;
}

.onboarding-art {
  overflow: hidden;
  display: grid;
  align-content: start;
  gap: 24px;
  min-height: 620px;
  border: 0;
  border-right: 1px solid rgba(214, 217, 215, 0.96);
  border-radius: 0;
  background:
    radial-gradient(circle at 24% 74%, rgba(221, 238, 215, 0.8), transparent 25%),
    linear-gradient(135deg, rgba(238, 248, 245, 0.92), rgba(255, 254, 250, 0.78));
  box-shadow: none;
  padding: 48px;
}

.onboarding-art h1 {
  max-width: 360px;
  margin: 0 0 22px;
  font-size: clamp(34px, 3.4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

.onboarding-art p {
  max-width: 390px;
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.45;
}

.onboarding-art img {
  width: min(430px, 100%);
  justify-self: center;
  margin: 6px 0 2px;
  filter: drop-shadow(0 18px 26px rgba(34, 48, 47, 0.08));
}

.onboarding-benefits {
  display: grid;
  gap: 18px;
  margin-top: 2px;
}

.onboarding-benefits div {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 720;
}

.benefit-icon {
  display: inline-grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #d6efdd;
  color: var(--ink);
}

.benefit-icon svg,
.field-icon svg,
.choice-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.step-dots {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  gap: 12px;
  min-height: 86px;
  padding: 22px 34px;
  border-bottom: 1px solid rgba(214, 217, 215, 0.96);
  background: rgba(255, 255, 255, 0.86);
}

.step-dots span {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #8a9492;
  font-weight: 690;
  font-size: 14px;
}

.step-dots span::after {
  content: "";
  position: absolute;
  left: calc(100% + 7px);
  right: -5px;
  height: 1px;
  background: #cfd5d2;
}

.step-dots span:last-child::after {
  display: none;
}

.step-dots strong {
  display: inline-grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border: 2px solid #a9b2b0;
  border-radius: 50%;
  background: white;
  color: #63706d;
  font-size: 14px;
  font-weight: 780;
  line-height: 1;
}

.step-dots em {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-style: normal;
}

.step-dots span.active {
  color: var(--ink);
  font-weight: 760;
}

.step-dots span.active strong,
.step-dots span.complete strong {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
}

.step-dots span.complete::after {
  background: var(--ink);
}

.onboarding-step {
  display: none;
  gap: 18px;
}

.onboarding-step.active {
  display: grid;
}

.onboarding-form-panel {
  border: 0;
  border-radius: 0;
  background: rgba(255, 254, 250, 0.96);
  box-shadow: none;
  padding: 46px 48px 38px;
}

.step-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 6px;
}

.step-heading h2 {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1.1;
}

.step-heading p {
  margin: 0;
  color: #2f4643;
  font-size: 17px;
  line-height: 1.45;
}

.select-shell {
  position: relative;
}

.select-shell select {
  appearance: none;
  -webkit-appearance: none;
  padding-left: 58px;
  padding-right: 48px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink) 50%),
    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position:
    calc(100% - 22px) 50%,
    calc(100% - 16px) 50%;
  background-size: 7px 7px, 7px 7px;
  background-repeat: no-repeat;
}

.field-icon {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 18px;
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: #253936;
  transform: translateY(-50%);
  pointer-events: none;
}

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

.choice {
  position: relative;
}

.choice input {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.choice > span {
  display: grid;
  min-height: 68px;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: white;
  padding: 14px;
  color: var(--ink-soft);
  font-weight: 800;
  transition: border 0.2s ease, background 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.choice input:checked + span {
  border-color: rgba(23, 61, 58, 0.72);
  background: #eef8f5;
  transform: translateY(-1px);
}

.choice input:focus-visible + span {
  outline: 3px solid rgba(79, 124, 184, 0.38);
  outline-offset: 3px;
}

.pathway-options {
  gap: 12px;
}

.pathway-choice > span {
  grid-template-columns: 34px minmax(0, 1fr) 26px;
  align-items: center;
  min-height: 62px;
  padding: 12px 16px;
  border-color: #d8dedb;
  border-radius: 15px;
  background: white;
}

.choice-icon {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #253936;
}

.choice-check {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  justify-self: end;
  border-radius: 50%;
  background: #45a36f;
  color: white;
  font-size: 14px;
  opacity: 0;
  transform: scale(0.82);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.pathway-choice input:checked + span {
  border-color: #339765;
  box-shadow: 0 0 0 1px rgba(51, 151, 101, 0.16);
}

.pathway-choice input:checked + span .choice-check {
  opacity: 1;
  transform: scale(1);
}

.situation-options {
  gap: 12px;
}

.situation-choice > span {
  grid-template-columns: minmax(0, 1fr) 26px;
  align-items: center;
  min-height: 96px;
  gap: 14px;
  padding: 16px;
  border-color: #d8dedb;
  background: rgba(255, 255, 255, 0.94);
}

.situation-copy {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.situation-copy strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.22;
  letter-spacing: 0;
}

.situation-copy small {
  color: #5f706d;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}

.situation-choice input:checked + span {
  border-color: #4ca675;
  background: linear-gradient(135deg, rgba(238, 248, 245, 0.96), rgba(255, 254, 250, 0.96));
  box-shadow: 0 0 0 1px rgba(76, 166, 117, 0.14);
}

.situation-choice input:checked + span .choice-check {
  opacity: 1;
  transform: scale(1);
}

.situation-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.situation-detail-head {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: baseline;
  justify-content: space-between;
  color: var(--ink);
}

.situation-detail-head strong {
  font-size: 15px;
}

.situation-detail-head span {
  color: #5f706d;
  font-size: 13px;
  font-weight: 650;
}

.situation-detail-card {
  min-width: 0;
  border: 1px solid #d8dedb;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  padding: 14px;
}

.situation-detail-card select {
  margin-top: 8px;
}

.situation-detail-card p {
  margin: 8px 0 0;
  color: #63706d;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

.situation-note {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  border: 1px solid rgba(76, 166, 117, 0.18);
  border-radius: 16px;
  background: rgba(238, 248, 245, 0.7);
  padding: 14px;
  color: var(--ink);
}

.situation-note span {
  color: #5f706d;
  font-size: 13px;
  font-weight: 650;
}

.goal-layout {
  display: grid;
  gap: 20px;
}

.goal-block {
  display: grid;
  gap: 12px;
}

.goal-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.goal-choice > span {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  min-height: 118px;
  gap: 14px;
  padding: 16px;
  border-color: #d8dedb;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(250, 247, 241, 0.74)),
    white;
}

.goal-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.goal-copy strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.goal-copy small {
  color: #5f706d;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.goal-copy em {
  width: max-content;
  max-width: 100%;
  margin-top: 3px;
  overflow: hidden;
  border: 1px solid rgba(23, 61, 58, 0.12);
  border-radius: 999px;
  padding: 4px 9px;
  color: #49645f;
  font-size: 11px;
  font-style: normal;
  font-weight: 760;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.goal-choice input:checked + span {
  border-color: #4ca675;
  background: linear-gradient(135deg, rgba(238, 248, 245, 0.96), rgba(255, 254, 250, 0.96));
  box-shadow: 0 0 0 1px rgba(76, 166, 117, 0.14);
}

.goal-choice input:checked + span .choice-check {
  opacity: 1;
  transform: scale(1);
}

.goal-help {
  margin: 0;
  color: #5f706d;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
}

.goal-date-grid {
  gap: 12px;
}

.optional-date-panel {
  overflow: hidden;
  border: 1px solid rgba(23, 61, 58, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.optional-date-panel summary {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.optional-date-panel summary::-webkit-details-marker {
  display: none;
}

.optional-date-panel summary span:first-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.optional-date-panel summary strong {
  font-size: 16px;
  line-height: 1.2;
}

.optional-date-panel summary small {
  color: #5f706d;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}

.optional-date-chip {
  display: inline-grid;
  min-width: 58px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(23, 61, 58, 0.14);
  border-radius: 999px;
  background: #eef8f5;
  color: #315a53;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 800;
}

.optional-date-panel summary::after {
  content: "+";
  display: inline-grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  font-size: 20px;
  line-height: 1;
}

.optional-date-panel[open] summary {
  border-bottom: 1px solid rgba(23, 61, 58, 0.12);
}

.optional-date-panel[open] summary::after {
  content: "−";
}

.optional-date-panel.no-date-fields summary::after {
  content: "✓";
  background: #eef8f5;
  color: #315a53;
  font-size: 16px;
  font-weight: 900;
}

.optional-date-body {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.goal-date-card {
  min-width: 0;
  border: 1px solid #d8dedb;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  padding: 14px;
}

.goal-date-card input {
  margin-top: 8px;
}

.goal-date-card p {
  margin: 8px 0 0;
  color: #63706d;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

.timing-confidence {
  max-width: 380px;
}

.onboarding-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 22px;
}

.onboarding-actions .primary-btn {
  min-width: 112px;
}

.text-link-btn {
  border: 0;
  background: transparent;
  color: #49645f;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  cursor: pointer;
}

.review-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  padding: 18px;
}

.review-card ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 20px;
  color: var(--ink-soft);
}

.review-summary {
  display: grid;
  gap: 12px;
}

.review-hero-card {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(23, 61, 58, 0.14);
  border-radius: 20px;
  background: #f7fbf7;
  padding: 20px;
}

.review-ready-row {
  display: flex;
  gap: 14px;
  align-items: center;
}

.review-ready-icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #45a36f;
  color: white;
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(69, 163, 111, 0.22);
}

.review-hero-card .status-pill {
  width: fit-content;
  background: rgba(69, 163, 111, 0.12);
  color: #245f44;
}

.review-hero-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 26px;
  line-height: 1.12;
}

.review-ready-row h3 {
  margin-top: 7px;
}

.review-hero-card p {
  max-width: 660px;
  margin: 0;
  color: #586864;
  font-size: 15px;
  line-height: 1.55;
}

.review-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.review-chip-row span {
  min-height: 32px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(23, 61, 58, 0.12);
  border-radius: 999px;
  background: white;
  color: var(--ink-soft);
  padding: 0 11px;
  font-size: 12px;
  font-weight: 800;
}

.compact-review-card {
  grid-template-columns: minmax(0, 1fr) minmax(250px, auto);
  align-items: center;
}

.compact-review-card > div:first-child {
  display: grid;
  gap: 5px;
}

.compact-review-card strong,
.invite-card strong {
  color: var(--ink);
}

.review-reminder-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.review-reminder-options label {
  position: relative;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d9e0dc;
  border-radius: 999px;
  background: white;
  padding: 0 13px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.review-reminder-options input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--ink);
}

.review-reminder-options label:has(input:checked) {
  border-color: rgba(51, 151, 101, 0.72);
  background: #eef8f5;
  color: #1e5c41;
}

.review-reminder-options label:has(input:focus-visible) {
  outline: 3px solid rgba(79, 124, 184, 0.34);
  outline-offset: 3px;
}

.invite-card {
  gap: 14px;
}

.invite-switch {
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
}

.invite-switch input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.invite-switch span {
  display: grid;
  gap: 5px;
}

.invite-switch small {
  color: #65716e;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
}

.invite-fields {
  display: grid;
  gap: 12px;
  border-top: 1px solid rgba(23, 61, 58, 0.1);
  padding-top: 14px;
}

.support-invite-list {
  display: grid;
  gap: 10px;
}

.support-email-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.support-email-row .field {
  min-width: 0;
}

.add-invite-btn,
.remove-invite-btn {
  min-height: 40px;
  width: fit-content;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}

.add-invite-btn {
  border: 1px solid rgba(23, 61, 58, 0.16);
  background: #f7fbf7;
  color: var(--ink);
  padding: 0 14px;
}

.remove-invite-btn {
  border: 0;
  background: transparent;
  color: #8d4c45;
  padding: 0 8px;
}

.review-safety-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px dashed rgba(23, 61, 58, 0.2);
  border-radius: 16px;
  background: rgba(255, 254, 250, 0.7);
  padding: 14px 16px;
  color: #65716e;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
}

.review-safety-note strong {
  flex: 0 0 auto;
  color: var(--ink);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 18px;
  align-items: start;
}

.dashboard-main,
.dashboard-side {
  min-width: 0;
  display: grid;
  gap: 18px;
}

.dashboard-side {
  position: sticky;
  top: 104px;
}

.app-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.app-heading > div {
  display: grid;
  min-width: 0;
  gap: 10px;
}

.app-heading .eyebrow {
  padding: 6px 10px;
  font-size: 11px;
  line-height: 1.1;
}

.app-heading h1 {
  font-size: 44px;
  line-height: 1.06;
}

.progress-panel {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  align-items: center;
}

.ring {
  --progress: 0deg;
  position: relative;
  width: 136px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--ink) var(--progress), #ede4d8 0deg);
}

.ring::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: var(--surface);
}

.ring strong {
  position: relative;
  z-index: 1;
  font-size: 34px;
}

.task-list {
  display: grid;
  gap: 12px;
}

#nextTaskPanel {
  display: grid;
  gap: 18px;
}

#nextTaskPanel .status-pill {
  padding: 7px 11px;
  font-size: 12px;
}

#nextTaskPanel .warning-box {
  padding: 13px 15px;
  font-size: 14px;
}

.dashboard-panel .button-row {
  gap: 10px;
}

.dashboard-panel .small-btn {
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
  white-space: nowrap;
}

.task-list-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border: 1px dashed rgba(23, 61, 58, 0.18);
  border-radius: 18px;
  background: rgba(255, 254, 250, 0.62);
  padding: 12px 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.task-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.task-head {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: start;
}

.task-title-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.category-dot {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
  border: 1px solid rgba(23, 61, 58, 0.12);
}

.task-meta,
.mini-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.meta-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 9px;
  background: #faf4eb;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.meta-chip.high {
  background: #fff0ea;
  color: #8d3f34;
}

.meta-chip.done {
  background: #eef8f5;
  color: var(--ink);
}

.task-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-panel {
  display: grid;
  gap: 14px;
  align-content: start;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(23, 61, 58, 0.98), rgba(38, 82, 76, 0.96)),
    var(--ink);
  color: white;
}

.ai-panel h2,
.ai-panel p {
  margin: 0;
}

.ai-panel .field {
  gap: 0;
}

.ai-panel .button-row {
  gap: 8px;
}

.ai-panel p,
.ai-panel .muted,
.ai-answer {
  overflow-wrap: anywhere;
}

.ai-panel p,
.ai-panel .muted {
  color: rgba(255, 255, 255, 0.76);
}

.ai-panel textarea {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.09);
  color: white;
}

.ai-panel textarea::placeholder {
  color: rgba(255, 255, 255, 0.56);
}

.ai-answer {
  min-height: 80px;
  white-space: pre-wrap;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
}

.timeline-pin {
  width: 12px;
  height: 12px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--coral);
}

.empty-state {
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
  padding: 28px;
}

.empty-state img {
  width: min(280px, 82vw);
}

.skeleton {
  position: relative;
  overflow: hidden;
  min-height: 92px;
  border-radius: var(--radius);
  background: #f1e8dd;
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  animation: shimmer 1.3s infinite;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(23, 61, 58, 0.36);
  backdrop-filter: blur(10px);
}

.modal.open {
  display: grid;
}

.modal-card {
  width: min(760px, 100%);
  max-height: min(86svh, 820px);
  overflow: auto;
  padding: 24px;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.step-list,
.risk-list {
  display: grid;
  gap: 8px;
  padding-left: 20px;
  color: var(--ink-soft);
  line-height: 1.55;
}

.task-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 10px;
}

.task-detail-grid div {
  display: grid;
  gap: 5px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffaf2;
  padding: 12px;
}

.task-detail-grid .wide {
  grid-column: 1 / -1;
}

.task-detail-grid strong {
  color: var(--ink);
  font-size: 12px;
  text-transform: uppercase;
}

.task-detail-grid span {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.45;
}

.warning-box {
  border: 1px solid rgba(164, 73, 63, 0.16);
  border-radius: 16px;
  background: #fff0ea;
  color: #74372f;
  padding: 14px;
  line-height: 1.5;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

.admin-config-panel {
  grid-column: 1 / -1;
}

.admin-config-tabs {
  display: block;
  margin: 16px 0;
}

.admin-config-tabs:empty {
  display: none;
}

.admin-editor-menu {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  border: 1px solid rgba(23, 61, 58, 0.1);
  border-radius: 18px;
  background: rgba(255, 254, 250, 0.76);
  padding: 6px;
}

.admin-editor-menu-item {
  display: grid;
  gap: 2px;
  align-content: center;
  min-width: 0;
  min-height: 50px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: var(--ink-soft);
  padding: 8px 10px;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, border 0.2s ease, color 0.2s ease;
}

.admin-editor-menu-item:hover,
.admin-editor-menu-item:focus-visible {
  border-color: rgba(23, 61, 58, 0.16);
  background: rgba(238, 248, 245, 0.68);
  color: var(--ink);
}

.admin-editor-menu-item.active {
  border-color: rgba(23, 61, 58, 0.18);
  background: var(--ink);
  color: white;
}

.admin-editor-menu-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  color: inherit;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.15;
  white-space: nowrap;
}

.admin-editor-menu-item em {
  overflow: hidden;
  text-overflow: ellipsis;
  color: currentColor;
  font-size: 11px;
  font-style: normal;
  line-height: 1.2;
  opacity: 0.72;
  white-space: nowrap;
}

.admin-config-tab {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 254, 250, 0.7);
  color: var(--muted);
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 800;
}

.admin-config-tab.active {
  background: var(--ink);
  color: white;
}

.admin-config-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.admin-flow-builder {
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.admin-flow-builder.admin-home-mode {
  display: block;
}

.admin-flow-builder.admin-home-mode .admin-flow-rail,
.admin-flow-builder.admin-home-mode .admin-flow-side {
  display: none;
}

.admin-flow-builder.admin-inspector-closed {
  display: block;
}

.admin-flow-builder.admin-inspector-closed .admin-flow-rail,
.admin-flow-builder.admin-inspector-closed .admin-flow-side {
  display: none;
}

.admin-flow-builder.admin-inspector-open {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 400px);
}

.admin-flow-builder.admin-inspector-open .admin-flow-rail {
  display: none;
}

.admin-save-state {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid rgba(23, 61, 58, 0.14);
  border-radius: 999px;
  background: #eef8f5;
  color: var(--ink-soft);
  padding: 0 12px;
  font-size: 12px;
  font-weight: 820;
}

.admin-save-state.dirty {
  background: #fff0ea;
  border-color: rgba(164, 73, 63, 0.22);
  color: #74372f;
}

.admin-focused-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 14px 0 16px;
  border: 1px solid rgba(23, 61, 58, 0.1);
  border-radius: 18px;
  background: rgba(255, 254, 250, 0.72);
  padding: 12px;
}

.admin-focused-topbar div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.admin-focused-topbar span,
.admin-section-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.admin-focused-topbar strong {
  color: var(--ink);
  font-size: 16px;
}

.admin-overview-hero {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  border: 1px solid rgba(23, 61, 58, 0.12);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(238, 248, 245, 0.9), rgba(255, 254, 250, 0.92));
  padding: 22px;
}

.admin-overview-hero > div {
  display: grid;
  gap: 10px;
  max-width: 720px;
}

.admin-overview-hero h3 {
  margin: 0;
  color: var(--ink);
  font-size: 32px;
  line-height: 1.06;
}

.admin-overview-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

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

.admin-section-card {
  display: grid;
  min-height: 166px;
  align-content: start;
  gap: 10px;
  border: 1px solid rgba(234, 223, 211, 0.82);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 254, 250, 0.94), rgba(238, 248, 245, 0.68)),
    var(--surface);
  color: var(--ink);
  padding: 18px;
  box-shadow: 0 12px 28px rgba(34, 48, 47, 0.045);
  text-align: left;
  cursor: pointer;
  transition: border 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.admin-section-card:hover,
.admin-section-card:focus-visible {
  border-color: rgba(23, 61, 58, 0.32);
  box-shadow: 0 16px 34px rgba(34, 48, 47, 0.07);
  transform: translateY(-1px);
}

.admin-section-card strong {
  font-size: 17px;
  font-weight: 760;
  line-height: 1.15;
}

.admin-section-card em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.45;
}

.admin-section-card small {
  width: fit-content;
  margin-top: auto;
  border-radius: 999px;
  background: #eef8f5;
  color: var(--ink-soft);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 760;
}

.admin-flow-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  align-items: center;
  margin: 16px 0;
}

.admin-flow-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 8px;
  align-items: center;
  min-height: 62px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 254, 250, 0.82);
  color: var(--ink);
  padding: 10px;
  text-align: left;
}

.admin-flow-step.active {
  border-color: rgba(23, 61, 58, 0.58);
  background: #eef8f5;
}

.admin-flow-step span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: #eef8f5;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 900;
}

.admin-flow-step strong {
  font-size: 12px;
  line-height: 1.1;
}

.admin-flow-step em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.2;
}

.admin-flow-arrow {
  display: none;
}

.admin-config-list,
.admin-config-form {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.admin-config-item {
  display: grid;
  gap: 4px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 254, 250, 0.72);
  padding: 12px;
  text-align: left;
  color: var(--ink);
}

.admin-config-item.active {
  border-color: rgba(23, 61, 58, 0.6);
  background: #eef8f5;
}

.admin-config-form {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 16px;
}

.admin-config-form textarea {
  min-height: 92px;
  resize: vertical;
}

.admin-config-form .large-textarea {
  min-height: 160px;
  font-size: 14px;
}

.admin-flow-rail,
.admin-flow-canvas,
.admin-flow-side {
  min-width: 0;
}

.admin-rail-head,
.admin-canvas-head,
.admin-option-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.admin-rail-head {
  margin-bottom: 10px;
}

.admin-rail-head div,
.admin-canvas-head div {
  display: grid;
  gap: 3px;
}

.admin-rail-head span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.admin-journey-list,
.admin-flow-lane,
.admin-flow-card-stack,
.admin-flow-side {
  display: grid;
  gap: 10px;
}

.admin-journey-node,
.admin-global-node,
.admin-flow-card,
.admin-add-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 254, 250, 0.82);
  color: var(--ink);
  padding: 12px;
  text-align: left;
  transition: border 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.admin-journey-node:hover,
.admin-global-node:hover,
.admin-flow-card:hover,
.admin-add-card:hover {
  border-color: rgba(23, 61, 58, 0.28);
  transform: translateY(-1px);
}

.admin-journey-node.active,
.admin-global-node.active,
.admin-flow-card.active {
  border-color: rgba(23, 61, 58, 0.64);
  background: #eef8f5;
}

.admin-journey-node > span:last-child,
.admin-global-node,
.admin-flow-card > span:last-child {
  display: grid;
  gap: 3px;
}

.admin-journey-node em,
.admin-global-node span,
.admin-flow-card em,
.admin-flow-card small {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.admin-node-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: #eef8f5;
  color: var(--ink);
  flex: 0 0 auto;
}

.admin-node-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-global-node {
  margin-top: 10px;
}

.admin-canvas-head {
  border: 1px solid rgba(23, 61, 58, 0.1);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(238, 248, 245, 0.9), rgba(255, 254, 250, 0.86));
  padding: 16px;
}

.admin-canvas-head h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.05;
}

.admin-focused-head {
  margin-bottom: 12px;
}

.admin-back-link {
  width: fit-content;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0 0 4px;
  font-size: 12px;
  font-weight: 780;
  cursor: pointer;
}

.admin-back-link:hover,
.admin-back-link:focus-visible {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.admin-head-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.admin-focused-list,
.admin-start-picker,
.admin-preview-picker {
  display: grid;
  gap: 10px;
}

.admin-focus-card {
  display: grid;
  gap: 5px;
  width: 100%;
  border: 1px solid rgba(234, 223, 211, 0.82);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 254, 250, 0.96), rgba(238, 248, 245, 0.52)),
    var(--surface);
  color: var(--ink);
  padding: 14px;
  text-align: left;
  cursor: pointer;
  transition: border 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.admin-focus-card.with-icon {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.admin-focus-card.with-icon[draggable="true"] {
  grid-template-columns: auto auto minmax(0, 1fr);
}

.admin-focus-card.with-icon > span:last-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.admin-focus-card:hover,
.admin-focus-card:focus-visible {
  border-color: rgba(23, 61, 58, 0.28);
  background:
    linear-gradient(135deg, white, rgba(238, 248, 245, 0.68)),
    var(--surface);
  transform: translateY(-1px);
}

.admin-focus-card.active {
  border-color: rgba(23, 61, 58, 0.62);
  background: #eef8f5;
}

.admin-focus-card strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.2;
}

.admin-focus-card span,
.admin-focus-card em,
.admin-focus-card small {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.admin-context-select {
  max-width: 420px;
  margin-bottom: 12px;
}

.admin-flow-lane.calm {
  gap: 8px;
}

.admin-flow-stage {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  padding: 14px;
}

.admin-flow-stage.collapsed {
  gap: 0;
  background: rgba(255, 254, 250, 0.58);
  padding: 8px 10px;
}

.admin-flow-stage.active {
  border-color: rgba(23, 61, 58, 0.2);
  background: rgba(255, 255, 255, 0.78);
}

.admin-stage-title {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0;
  text-align: left;
}

.admin-stage-title span,
.admin-drag-dot {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: #f5efe6;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  flex: 0 0 auto;
}

.admin-stage-title em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  margin-left: auto;
}

.admin-stage-title small {
  min-width: 54px;
  border-radius: 999px;
  background: #f5efe6;
  color: var(--muted);
  padding: 5px 8px;
  text-align: center;
  font-size: 11px;
  font-weight: 850;
}

.admin-flow-stage.active .admin-stage-title small {
  background: #eef8f5;
  color: var(--ink-soft);
}

.admin-stage-body {
  display: grid;
  gap: 10px;
}

.admin-nested-hint {
  display: none;
}

.admin-flow-card-stack.compact .admin-flow-card {
  padding: 10px 12px;
}

.admin-add-card {
  justify-content: center;
  border-style: dashed;
  color: var(--ink-soft);
  font-weight: 820;
}

.quiet-add {
  min-height: 42px;
  background: rgba(255, 254, 250, 0.68);
}

.admin-flow-empty {
  border: 1px dashed rgba(23, 61, 58, 0.2);
  border-radius: 16px;
  background: rgba(255, 254, 250, 0.7);
  padding: 14px;
}

.admin-flow-empty p {
  margin: 4px 0 12px;
  color: var(--muted);
  line-height: 1.45;
}

.admin-flow-side {
  position: sticky;
  top: 90px;
  align-self: start;
}

.admin-flow-inspector,
.admin-student-preview {
  border-radius: 18px;
}

.admin-inspector-head {
  position: relative;
  display: grid;
  gap: 5px;
  border-bottom: 1px solid var(--line);
  padding-right: 42px;
  padding-bottom: 12px;
}

.admin-inspector-close {
  position: absolute;
  top: -4px;
  right: -4px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(23, 61, 58, 0.12);
  border-radius: 999px;
  background: rgba(255, 254, 250, 0.9);
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.admin-inspector-close:hover,
.admin-inspector-close:focus-visible {
  color: var(--ink);
  border-color: rgba(23, 61, 58, 0.28);
  background: white;
}

.admin-inspector-head span,
.admin-preview-head span,
.admin-phone-section em {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-style: normal;
}

.admin-inspector-head h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.08;
}

.admin-inspector-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.admin-relationship-note {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(23, 61, 58, 0.1);
  border-radius: 16px;
  background: #eef8f5;
  padding: 12px;
}

.admin-relationship-note span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.admin-inspector-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding-top: 4px;
}

.admin-inspector-actions .primary-btn,
.admin-inspector-actions .ghost-btn {
  flex: 1 1 130px;
  justify-content: center;
  box-shadow: none;
}

.admin-inspector-actions .primary-btn:hover,
.admin-inspector-actions .ghost-btn:hover {
  box-shadow: none;
}

.admin-config-form .field {
  gap: 5px;
}

.admin-config-form .field > span {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.25;
}

.admin-config-form .field input,
.admin-config-form .field select,
.admin-config-form .field textarea {
  min-width: 0;
  min-height: 42px;
  border-radius: 13px;
  padding-inline: 12px;
  font-size: 14px;
}

.admin-config-form .field textarea {
  padding-block: 10px;
}

.admin-student-preview {
  display: none;
}

.admin-preview-sticky {
  display: grid;
  gap: 12px;
}

.admin-preview-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.admin-phone-preview {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(23, 61, 58, 0.1);
  border-radius: 22px;
  background: #fffefa;
  padding: 14px;
  max-height: 520px;
  overflow: auto;
}

.admin-phone-section {
  display: grid;
  gap: 7px;
}

.admin-phone-section p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.admin-preview-choice,
.admin-preview-select,
.admin-preview-empty {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  padding: 10px;
  font-size: 12px;
}

.admin-preview-choice.selected {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #eef8f5;
}

.admin-preview-choice span,
.admin-preview-empty {
  color: var(--muted);
  line-height: 1.35;
}

.admin-preview-select {
  min-height: 38px;
  justify-content: center;
  color: var(--ink-soft);
  font-weight: 760;
}

.admin-preview-collapsed {
  display: grid;
  gap: 4px;
  width: 100%;
  border: 1px dashed rgba(23, 61, 58, 0.18);
  border-radius: 18px;
  background: rgba(255, 254, 250, 0.68);
  color: var(--ink);
  padding: 14px;
  text-align: left;
}

.admin-preview-collapsed span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-preview-collapsed em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.admin-preview-workspace {
  display: grid;
  grid-template-columns: minmax(240px, 0.45fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.admin-journey-preview-panel {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  padding: 16px;
}

.admin-preview-journey-head {
  display: flex;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.admin-preview-journey-head div {
  display: grid;
  gap: 2px;
}

.admin-preview-journey-head span:not(.admin-node-icon) {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-preview-journey-head strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.15;
}

.admin-preview-journey,
.admin-preview-group,
.admin-preview-group > div {
  display: grid;
  gap: 10px;
}

.admin-preview-group {
  border: 1px solid rgba(23, 61, 58, 0.09);
  border-radius: 16px;
  background: #fffefa;
  padding: 12px;
}

.admin-preview-group > strong {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-preview-group p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.admin-editor-note {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid rgba(23, 61, 58, 0.1);
  border-radius: 16px;
  background: #eef8f5;
  color: var(--ink-soft);
}

.admin-editor-note strong,
.admin-option-head strong,
.admin-drop-zone > strong {
  color: var(--ink);
}

.admin-option-head strong {
  font-size: 16px;
  line-height: 1.2;
}

.admin-editor-note span,
.admin-option-head span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.admin-icon-picker {
  gap: 8px;
}

.admin-icon-current {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  list-style: none;
  border-radius: 14px;
}

.admin-icon-details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 254, 250, 0.82);
  padding: 0;
  overflow: hidden;
}

.admin-icon-details summary {
  cursor: pointer;
  color: var(--ink-soft);
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 760;
}

.admin-icon-details summary::-webkit-details-marker {
  display: none;
}

.admin-icon-details[open] summary {
  border-bottom: 1px solid var(--line);
}

.admin-icon-current > span:first-child,
.admin-icon-option span:first-child,
.admin-assignment-chip span:first-child {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: #eef8f5;
  color: var(--ink);
  flex: 0 0 auto;
}

.admin-icon-current-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.admin-icon-current-copy strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 760;
  line-height: 1.15;
}

.admin-icon-current-copy small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 620;
  line-height: 1.2;
}

.admin-icon-current svg,
.admin-icon-option svg,
.admin-assignment-chip svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-icon-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
  gap: 8px;
  padding: 10px;
}

.admin-icon-option,
.admin-assignment-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 254, 250, 0.86);
  color: var(--ink-soft);
  padding: 8px 10px;
  text-align: left;
  font-size: 13px;
  font-weight: 780;
}

.admin-icon-option.active {
  border-color: rgba(23, 61, 58, 0.62);
  background: #eef8f5;
  color: var(--ink);
}

.admin-assignment-picker {
  display: grid;
  gap: 8px;
}

.admin-rule-picker {
  display: grid;
  gap: 9px;
  min-width: 0;
  border: 1px solid rgba(23, 61, 58, 0.1);
  border-radius: 16px;
  background: rgba(255, 254, 250, 0.72);
  padding: 12px;
}

.admin-rule-picker > label {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 850;
}

.admin-rule-picker p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.admin-rule-picker select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.admin-rule-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-rule-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-height: 38px;
  border: 1px solid rgba(23, 61, 58, 0.12);
  border-radius: 999px;
  background: #eef8f5;
  color: var(--ink);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 820;
  cursor: pointer;
}

.admin-rule-chip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-rule-chip em {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.admin-assignment-picker > label {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-soft);
}

.admin-drop-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-drop-zone {
  min-height: 96px;
  border: 1px dashed rgba(23, 61, 58, 0.22);
  border-radius: 16px;
  background: rgba(255, 254, 250, 0.75);
  padding: 12px;
}

.admin-drop-zone > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.admin-empty-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border-radius: 999px;
  background: #f5efe6;
  color: var(--muted);
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 780;
}

.admin-option-editor,
.admin-option-stack {
  display: grid;
  gap: 10px;
}

.admin-option-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.admin-edit-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  border: 1px solid rgba(234, 223, 211, 0.82);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 254, 250, 0.96), rgba(238, 248, 245, 0.5)),
    var(--surface);
  padding: 12px;
}

.admin-card-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-card-toolbar strong {
  margin-right: auto;
  font-size: 15px;
  line-height: 1.2;
}

.admin-drag-handle {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: #eef8f5;
  color: var(--muted);
  font-weight: 900;
  cursor: grab;
}

.admin-inline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-edit-card.compact-card {
  gap: 9px;
  padding: 12px;
}

.admin-edit-card.compact-card .admin-inline-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

.danger-link {
  color: var(--ink);
}

.quiet-danger {
  justify-self: center;
  width: fit-content;
  margin-inline: auto;
  opacity: 0.72;
  color: var(--ink);
  font-size: 13px;
  font-weight: 720;
  text-decoration: underline;
  text-decoration-color: rgba(23, 61, 58, 0.32);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.quiet-danger:hover,
.quiet-danger:focus-visible {
  opacity: 1;
  color: var(--ink);
  text-decoration-color: currentColor;
}

.admin-card-toolbar .quiet-danger {
  justify-self: auto;
  margin-inline: 0;
}

.admin-task-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.admin-table {
  display: grid;
  gap: 2px;
}

.admin-user-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.admin-user-row > div {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.admin-user-row > div:last-child {
  justify-items: end;
}

.admin-secondary-panel {
  padding: 0;
  overflow: hidden;
}

.admin-secondary-panel details {
  display: grid;
}

.admin-secondary-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
}

.admin-secondary-panel summary::-webkit-details-marker {
  display: none;
}

.admin-secondary-panel summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #eef8f5;
  color: var(--ink);
  font-weight: 900;
}

.admin-secondary-panel details[open] summary::after {
  content: "-";
}

.admin-secondary-panel summary span {
  display: grid;
  gap: 4px;
}

.admin-secondary-panel summary strong {
  color: var(--ink);
  font-size: 18px;
}

.admin-secondary-panel summary small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.admin-secondary-panel #adminUsers,
.admin-secondary-panel #adminTasks {
  padding: 0 20px 18px;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 120;
  display: none;
  width: min(420px, calc(100vw - 40px));
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 254, 250, 0.94);
  box-shadow: var(--shadow);
  padding: 14px 16px;
  color: var(--ink);
}

.toast.visible {
  display: block;
  animation: softIn 0.2s ease both;
}

.hidden {
  display: none !important;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

@keyframes softIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1160px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-side {
    position: static;
  }

  .admin-flow-builder {
    grid-template-columns: minmax(220px, 0.35fr) minmax(0, 1fr);
  }

  .admin-flow-side {
    grid-column: 1 / -1;
    position: static;
    grid-template-columns: 1fr;
  }

  .admin-editor-menu {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 940px) {
  .nav-links a:not(.primary-btn) {
    display: none;
  }

  .pathway-grid,
  .metrics-grid,
  .proof-grid,
  .step-grid,
  .feature-grid,
  .faq-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .demo-band,
  .product-preview,
  .safety-band,
  .parent-section,
  .source-groups,
  .testimonial-layout,
  .auth-wrap,
  .onboarding-wrap,
  .dashboard-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .product-preview {
    grid-template-areas:
      "main"
      "timeline"
      "ai";
  }

  .dashboard-side {
    order: initial;
    position: static;
  }

  .onboarding-art {
    order: 2;
    min-height: 0;
    border-right: 0;
    border-top: 1px solid rgba(214, 217, 215, 0.96);
    border-bottom: 0;
  }

  .onboarding-form-panel {
    order: 1;
    padding: 34px;
  }
}

@media (max-width: 680px) {
  :root {
    --wrap: min(100vw - 24px, 1120px);
    --radius: 18px;
  }

  .topbar,
  .app-nav {
    top: 8px;
    width: calc(100vw - 16px);
    border-radius: 22px;
  }

  .brand-word {
    display: none;
  }

  .hero {
    min-height: 76svh;
    padding-top: 96px;
  }

  .hero::after {
    background:
      linear-gradient(180deg, rgba(255, 248, 237, 0.9), rgba(255, 248, 237, 0.62) 58%, rgba(255, 248, 237, 0.94)),
      linear-gradient(180deg, transparent 70%, var(--paper));
  }

  .section {
    padding: 48px 0;
  }

  .pathway-grid,
  .metrics-grid,
  .proof-grid,
  .step-grid,
  .feature-grid,
  .faq-grid,
  .task-detail-grid,
  .source-group-wide div,
  .never-grid,
  .parent-guidance,
  .option-grid,
  .goal-options,
  .situation-detail-grid {
    grid-template-columns: 1fr;
  }

  .compact-section {
    padding: 18px 0 38px;
  }

  .proof-item {
    min-height: 92px;
  }

  .step-card,
  .feature-card,
  .preview-panel,
  .parent-guidance article {
    padding: 18px;
  }

  .feature-card {
    min-height: 0;
  }

  .testimonial-feature {
    min-height: 360px;
    padding: 24px;
  }

  .testimonial-card {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .testimonial-tag {
    width: fit-content;
    height: auto;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
  }

  .preview-main {
    min-height: 0;
  }

  .preview-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .demo-task {
    grid-template-columns: 34px 1fr;
  }

  .demo-task .source-chip {
    grid-column: 2;
    justify-self: start;
  }

  .safety-band,
  .parent-section {
    padding: 22px;
    border-radius: 24px;
  }

  .cta-band {
    align-items: start;
    justify-items: start;
    text-align: left;
  }

  .footer,
  .app-heading,
  .task-head {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .footer nav {
    justify-content: flex-start;
  }

  .app-heading {
    gap: 12px;
  }

  .app-heading h1 {
    font-size: 36px;
  }

  .app-heading .eyebrow {
    max-width: 100%;
  }

  .onboarding-shell {
    border-radius: 24px;
  }

  .step-dots {
    gap: 8px;
    min-height: 86px;
    padding: 22px 26px;
  }

  .step-dots em {
    display: none;
  }

  .step-dots span {
    justify-content: center;
  }

  .step-dots span::after {
    left: calc(50% + 24px);
    right: calc(-50% + 24px);
  }

  .onboarding-art {
    gap: 20px;
    padding: 34px 28px;
  }

  .onboarding-art h1 {
    font-size: 44px;
  }

  .onboarding-art p {
    font-size: 21px;
  }

  .onboarding-art img {
    width: min(330px, 100%);
  }

  .onboarding-benefits {
    gap: 14px;
  }

  .onboarding-benefits div {
    gap: 12px;
    font-size: 20px;
  }

  .onboarding-form-panel {
    padding: 28px;
  }

  .compact-review-card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .review-reminder-options {
    justify-content: flex-start;
  }

  .review-reminder-options label {
    flex: 1 1 140px;
    justify-content: center;
  }

  .review-safety-note {
    display: grid;
  }

  .review-ready-row,
  .support-email-row {
    grid-template-columns: 1fr;
  }

  .review-ready-row {
    display: grid;
  }

  .remove-invite-btn {
    justify-self: start;
  }

  .dashboard-panel {
    padding: 20px;
  }

  .admin-config-tabs {
    padding-bottom: 0;
  }

  .admin-editor-menu {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .admin-editor-menu-item {
    min-height: 46px;
  }

  .admin-editor-menu-item em {
    display: none;
  }

  .task-list-footer {
    display: grid;
  }

  .admin-user-row,
  .admin-task-row,
  .admin-config-layout,
  .admin-flow-summary,
  .admin-section-grid,
  .admin-preview-workspace,
  .admin-drop-grid,
  .admin-inline-grid {
    grid-template-columns: 1fr;
  }

  .admin-overview-hero,
  .admin-focused-topbar {
    display: grid;
  }

  .admin-flow-builder.admin-inspector-open {
    grid-template-columns: 1fr;
  }

  .admin-focus-card.with-icon {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .admin-focus-card.with-icon .admin-drag-dot {
    grid-row: span 2;
  }

  .admin-flow-side {
    position: static;
  }

  .admin-phone-preview {
    max-height: none;
  }

  .admin-user-row > div:last-child {
    justify-items: start;
  }

  .app-nav .brand-word {
    display: inline;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
  }

  .modal-card {
    padding: 18px;
  }

  .modal-head {
    flex-direction: row;
    align-items: flex-start;
  }

  .progress-panel {
    grid-template-columns: 1fr;
  }

  .ring {
    width: 122px;
  }

  .app-layout {
    padding-top: 88px;
  }
}

@media (max-width: 420px) {
  .admin-editor-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-heading h1 {
    font-size: 32px;
  }

  .dashboard-panel {
    padding: 18px;
  }

  .dashboard-panel .button-row {
    gap: 8px;
  }

  #nextTaskPanel .button-row {
    align-items: stretch;
  }
}
