:root {
  color-scheme: light;
  --ink: #17110f;
  --muted: #6a5a52;
  --paper: #fff8ec;
  --snow: #fffdf7;
  --red: #c51628;
  --red-deep: #8f101e;
  --green: #114a35;
  --green-deep: #09291f;
  --gold: #d7a946;
  --mint: #e4f2e9;
  --line: rgba(77, 46, 34, 0.16);
  --shadow: 0 24px 60px rgba(44, 21, 14, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.92), rgba(255, 248, 236, 0.96)),
    radial-gradient(circle at 8% 4%, rgba(197, 22, 40, 0.13), transparent 30%),
    radial-gradient(circle at 92% 10%, rgba(17, 74, 53, 0.18), transparent 30%),
    var(--paper);
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(255, 255, 255, 0.68) 0 1px, transparent 1.8px);
  background-size: 84px 84px, 136px 136px;
  background-position: 0 0, 28px 42px;
  opacity: 0.34;
  animation: snowDrift 24s linear infinite;
  pointer-events: none;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  width: 282px;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(9, 41, 31, 0.96), rgba(17, 74, 53, 0.98)),
    var(--green-deep);
  color: white;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: white;
  font-weight: 900;
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.sidebar nav {
  display: grid;
  gap: 6px;
  margin-top: 28px;
}

.sidebar nav a {
  min-height: 40px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
  font-weight: 900;
  text-decoration: none;
}

.sidebar nav a.active,
.sidebar nav a:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.plan-box {
  display: none;
  margin-top: auto;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-status {
  display: grid;
  gap: 12px;
  margin-top: auto;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(215, 169, 70, 0.08)),
    rgba(255, 255, 255, 0.08);
}

.sidebar-account {
  display: grid;
  gap: 4px;
}

.sidebar-account small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.sidebar-account strong {
  overflow: hidden;
  color: white;
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.sidebar-metrics div {
  min-height: 78px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.sidebar-metrics span {
  display: block;
  color: var(--gold);
  font-family: Fraunces, Georgia, serif;
  font-size: 2rem;
  line-height: 0.9;
}

.sidebar-metrics small {
  display: block;
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.25;
  text-transform: uppercase;
}

.sidebar-achievements-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--green-deep);
  font-size: 0.86rem;
  font-weight: 900;
  text-decoration: none;
}

.sidebar-logout {
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
}

.sidebar-logout:hover {
  background: rgba(255, 255, 255, 0.16);
  color: white;
}

.plan-box span,
.eyebrow {
  display: block;
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.plan-box strong {
  display: block;
  margin-top: 10px;
  font-family: Fraunces, Georgia, serif;
  font-size: 2rem;
  line-height: 1;
}

.plan-box p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
  line-height: 1.5;
}

main {
  min-height: 100vh;
  margin-left: 282px;
  padding: 28px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2 {
  font-family: Fraunces, Georgia, serif;
  letter-spacing: 0;
}

h1 {
  max-width: 880px;
  font-size: clamp(2.55rem, 5vw, 5.3rem);
  line-height: 0.94;
}

h2 {
  font-size: clamp(1.85rem, 3vw, 3.4rem);
  line-height: 1;
}

h3 {
  font-size: 1.05rem;
  line-height: 1.25;
}

.page-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: clamp(22px, 4vw, 54px);
  align-items: center;
  min-height: 360px;
  margin-bottom: 16px;
  padding: clamp(24px, 5vw, 52px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.84);
  box-shadow: var(--shadow);
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0 32%, rgba(255, 255, 255, 0.18) 39%, transparent 47% 100%);
  transform: translateX(-70%);
  animation: lightSweep 10s ease-in-out infinite;
  pointer-events: none;
}

.image-hero {
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.72fr);
}

.split-hero {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 360px);
  background:
    linear-gradient(135deg, rgba(255, 253, 247, 0.9), rgba(228, 242, 233, 0.82)),
    var(--snow);
}

.page-hero > * {
  position: relative;
  z-index: 1;
}

.page-hero p:not(.eyebrow) {
  max-width: 720px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.65;
}

.page-hero img {
  width: 100%;
  max-height: 420px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 22px 52px rgba(44, 21, 14, 0.18);
}

.split-hero img {
  aspect-ratio: 4 / 3;
  background: white;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.primary-button {
  background: var(--red);
  color: white;
  box-shadow: 0 12px 24px rgba(197, 22, 40, 0.22);
}

.ghost-button {
  border-color: rgba(17, 74, 53, 0.2);
  background: rgba(255, 255, 255, 0.68);
  color: var(--green);
}

.stat-grid,
.dashboard-grid,
.workspace,
.two-column,
.template-grid,
.admin-grid,
.tool-grid,
.tier-grid,
.timeline,
.character-grid,
.flow-strip,
.parent-action-grid,
.home-support-grid,
.create-choice-grid,
.rewards-summary,
.achievement-grid {
  display: grid;
  gap: 14px;
}

.stat-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 14px;
}

.stat-grid + .tool-grid,
.tool-grid + .dashboard-grid,
.admin-grid + .panel,
.timeline + .empty-library,
.timeline + .library-list,
.workspace + .panel,
.tier-grid + .panel {
  margin-top: 14px;
}

.stat-grid article {
  padding: 24px;
  border-radius: 8px;
  background: var(--green-deep);
  color: white;
  box-shadow: 0 18px 38px rgba(44, 21, 14, 0.1);
}

.stat-grid span {
  display: block;
  color: var(--gold);
  font-family: Fraunces, Georgia, serif;
  font-size: 2.6rem;
  line-height: 0.9;
}

.stat-grid p {
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 800;
}

.dashboard-grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.72fr);
}

.dashboard-grid .panel.full-row {
  grid-column: 1 / -1;
}

.parent-hero h1 {
  max-width: 980px;
}

.flow-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 14px;
}

.flow-strip article {
  position: relative;
  overflow: hidden;
  min-height: 160px;
  padding: 18px;
  border: 1px solid rgba(77, 46, 34, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 34px rgba(44, 21, 14, 0.08);
}

.flow-strip article::after {
  content: "";
  position: absolute;
  right: -28px;
  top: -34px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(215, 169, 70, 0.24), transparent 65%);
}

.flow-strip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--red);
  color: white;
  font-weight: 900;
}

.flow-strip strong {
  display: block;
  margin-top: 14px;
  font-size: 1.05rem;
}

.flow-strip p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.45;
}

.parent-action-grid {
  grid-template-columns: 1.2fr 1fr 1fr;
  margin-bottom: 14px;
}

.action-card {
  display: grid;
  align-content: space-between;
  gap: 18px;
  min-height: 290px;
}

.action-card h2,
.countdown-card h2 {
  font-size: clamp(2rem, 3vw, 3.3rem);
}

.primary-action {
  background:
    linear-gradient(135deg, rgba(197, 22, 40, 0.08), rgba(228, 242, 233, 0.72)),
    rgba(255, 253, 247, 0.9);
  border-color: rgba(197, 22, 40, 0.22);
}

.home-support-grid {
  grid-template-columns: minmax(260px, 0.38fr) minmax(0, 1fr);
}

.countdown-card {
  background:
    linear-gradient(145deg, rgba(9, 41, 31, 0.96), rgba(17, 74, 53, 0.94)),
    var(--green-deep);
  color: white;
}

.countdown-card .eyebrow,
.countdown-card h2 {
  color: var(--gold);
}

.countdown-card p {
  color: rgba(255, 255, 255, 0.78);
}

.create-choice-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.choice-card {
  overflow: hidden;
  display: grid;
  grid-template-rows: 220px auto auto auto;
  min-height: 430px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.86);
  box-shadow: 0 16px 40px rgba(44, 21, 14, 0.1);
  text-decoration: none;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.choice-card:hover {
  transform: translateY(-5px);
  border-color: rgba(215, 169, 70, 0.48);
  box-shadow: 0 24px 52px rgba(44, 21, 14, 0.15);
}

.choice-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.choice-card span,
.choice-card strong,
.choice-card p {
  margin-inline: 20px;
}

.choice-card span {
  display: inline-flex;
  width: max-content;
  margin-top: 18px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(197, 22, 40, 0.1);
  color: var(--red-deep);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.choice-card strong {
  display: block;
  margin-top: 12px;
  font-family: Fraunces, Georgia, serif;
  font-size: 2rem;
  line-height: 1;
}

.choice-card p {
  margin-top: 8px;
  margin-bottom: 22px;
  color: var(--muted);
  line-height: 1.5;
}

.gentle-empty {
  margin-top: 14px;
}

.rewards-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 14px;
}

.rewards-summary article {
  padding: 24px;
  border-radius: 8px;
  background: var(--green-deep);
  color: white;
  box-shadow: 0 18px 38px rgba(44, 21, 14, 0.1);
}

.rewards-summary span {
  display: block;
  color: var(--gold);
  font-family: Fraunces, Georgia, serif;
  font-size: 2.7rem;
  line-height: 0.9;
}

.rewards-summary p {
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 800;
}

.achievement-progress-panel {
  display: grid;
  gap: 18px;
  margin-bottom: 14px;
}

.achievement-progress-track {
  overflow: hidden;
  height: 14px;
  border-radius: 999px;
  background: rgba(17, 74, 53, 0.12);
}

.achievement-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red), var(--gold));
  transition: width 420ms ease;
}

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

.achievement-card {
  display: grid;
  gap: 16px;
  min-height: 260px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.86);
  box-shadow: 0 14px 34px rgba(44, 21, 14, 0.08);
}

.achievement-card.complete {
  border-color: rgba(17, 74, 53, 0.22);
  background:
    linear-gradient(135deg, rgba(17, 74, 53, 0.08), rgba(255, 253, 247, 0.9)),
    var(--snow);
}

.achievement-card span:first-child {
  display: inline-flex;
  width: max-content;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(215, 169, 70, 0.16);
  color: #8a6418;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.achievement-card strong {
  display: block;
  margin-top: 12px;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.55rem;
  line-height: 1;
}

.achievement-card p {
  margin-top: 9px;
  color: var(--muted);
  line-height: 1.5;
}

.achievement-reward {
  display: flex;
  align-items: end;
  gap: 7px;
}

.achievement-reward b {
  color: var(--red);
  font-family: Fraunces, Georgia, serif;
  font-size: 2rem;
  line-height: 0.9;
}

.achievement-reward small {
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}

.workspace {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.42fr);
}

.two-column {
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
}

.panel,
.request-builder,
.queue-panel,
.template-card,
.admin-grid article,
.wizard-shell,
.wizard-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.82);
  box-shadow: 0 14px 34px rgba(44, 21, 14, 0.08);
}

.panel,
.request-builder,
.queue-panel,
.template-card,
.admin-grid article,
.wizard-shell,
.wizard-card {
  padding: 22px;
}

.wizard-shell {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 16px;
  margin-bottom: 14px;
  background:
    linear-gradient(135deg, rgba(255, 253, 247, 0.92), rgba(228, 242, 233, 0.58)),
    var(--snow);
}

.wizard-shell::before,
.wizard-shell::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.wizard-shell::before {
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(215, 169, 70, 0.34) 0 2px, transparent 2.8px),
    radial-gradient(circle, rgba(197, 22, 40, 0.16) 0 1.5px, transparent 2.4px),
    radial-gradient(circle, rgba(17, 74, 53, 0.18) 0 1.5px, transparent 2.5px);
  background-size: 110px 110px, 150px 150px, 190px 190px;
  background-position: 15px 10px, 60px 44px, 120px 20px;
  opacity: 0.22;
  animation: festiveFloat 18s linear infinite;
}

.wizard-shell::after {
  right: -80px;
  top: -110px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(215, 169, 70, 0.3), transparent 65%);
  animation: glowPulse 5s ease-in-out infinite;
}

.wizard-progress {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 8px;
}

.wizard-dot {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  border: 1px solid rgba(77, 46, 34, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
  color: var(--muted);
  padding: 9px 11px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 220ms ease, background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.wizard-dot span {
  color: inherit;
  font-size: 0.76rem;
  letter-spacing: 0;
  text-transform: none;
}

.wizard-dot.active {
  border-color: rgba(197, 22, 40, 0.28);
  background: var(--red);
  color: white;
  box-shadow: 0 12px 24px rgba(197, 22, 40, 0.18);
  transform: translateY(-2px);
}

.wizard-dot.done {
  border-color: rgba(17, 74, 53, 0.22);
  background: rgba(17, 74, 53, 0.1);
  color: var(--green);
}

.wizard-dot.done::before {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(17, 74, 53, 0.12);
}

.wizard-card {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.72);
}

.wizard-step {
  display: none;
}

.wizard-step.active {
  display: grid;
  gap: 16px;
  animation: wizardStepIn 360ms ease both;
}

.wizard-step h2 {
  max-width: 760px;
}

.wizard-step > p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.6;
}

.wizard-step-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  gap: clamp(18px, 3vw, 30px);
  align-items: stretch;
}

.wizard-step-layout > div:first-child {
  display: grid;
  align-content: start;
  gap: 16px;
}

.wizard-visual {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: end;
  min-height: 360px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, transparent 0 42%, rgba(9, 41, 31, 0.84)),
    var(--green-deep);
  color: white;
  box-shadow: 0 18px 42px rgba(44, 21, 14, 0.15);
}

.wizard-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0 1px, transparent 1.8px);
  background-size: 48px 48px;
  opacity: 0.34;
  animation: snowDrift 22s linear infinite;
}

.wizard-visual::after {
  content: "";
  position: absolute;
  inset: auto 18px 18px auto;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(215, 169, 70, 0.9);
  box-shadow: 0 0 34px rgba(215, 169, 70, 0.72);
  opacity: 0.8;
  animation: ornamentBob 3.5s ease-in-out infinite;
}

.wizard-visual.green::after {
  background: rgba(197, 22, 40, 0.9);
  box-shadow: 0 0 34px rgba(197, 22, 40, 0.42);
}

.wizard-visual.celebration::after {
  inset: 18px 18px auto auto;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 0 42px rgba(255, 255, 255, 0.62);
}

.wizard-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  animation: imageBreath 9s ease-in-out infinite;
}

.wizard-visual strong,
.wizard-visual p {
  position: relative;
  z-index: 2;
  margin: 0;
  padding-inline: 20px;
}

.wizard-visual strong {
  display: block;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.45rem;
  line-height: 1;
}

.wizard-visual p {
  padding-top: 8px;
  padding-bottom: 20px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  line-height: 1.45;
}

.wizard-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(77, 46, 34, 0.12);
}

.wizard-submit {
  display: none;
}

.wizard-summary {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(77, 46, 34, 0.13);
  border-radius: 8px;
  background: rgba(255, 248, 236, 0.8);
}

.wizard-summary dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.wizard-summary div {
  display: grid;
  gap: 3px;
}

.wizard-summary dt {
  color: var(--red-deep);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wizard-summary dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

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

.tool-grid .panel {
  min-height: 220px;
}

.tier-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tier-card {
  display: grid;
  align-content: space-between;
  gap: 18px;
  min-height: 300px;
}

.tier-card.featured {
  border-color: rgba(197, 22, 40, 0.28);
  background:
    linear-gradient(135deg, rgba(197, 22, 40, 0.08), rgba(228, 242, 233, 0.66)),
    rgba(255, 253, 247, 0.88);
}

.tier-price {
  display: block;
  margin-top: 12px;
  font-family: Fraunces, Georgia, serif;
  font-size: 3rem;
  line-height: 0.92;
}

.check-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 25px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.45;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.84);
}

.feature-panel {
  display: grid;
  align-content: space-between;
  gap: 22px;
  min-height: 320px;
  background:
    linear-gradient(135deg, rgba(255, 253, 247, 0.92), rgba(228, 242, 233, 0.74)),
    var(--snow);
}

.media-panel {
  overflow: hidden;
  padding: 0;
}

.media-panel img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.media-panel div {
  padding: 22px;
}

.section-heading {
  margin-bottom: 20px;
}

.section-heading.compact {
  margin-bottom: 14px;
}

.section-heading .eyebrow,
.page-hero .eyebrow {
  color: var(--red-deep);
  margin-bottom: 10px;
}

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

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.step-label {
  display: inline-flex;
  width: max-content;
  margin-bottom: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(17, 74, 53, 0.1);
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.full {
  grid-column: 1 / -1;
  width: 100%;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(77, 46, 34, 0.18);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 0 13px;
}

textarea {
  min-height: 132px;
  padding: 13px;
  resize: vertical;
}

.request-list,
.child-list,
.library-list,
.letter-list,
.referral-list,
.review-list {
  display: grid;
  gap: 10px;
}

.request-item,
.child-item,
.library-item,
.empty-library,
.letter-item,
.referral-item,
.review-item,
.day-card {
  padding: 16px;
  border: 1px solid rgba(77, 46, 34, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.request-item strong,
.child-item strong,
.library-item strong,
.empty-library strong,
.letter-item strong,
.referral-item strong,
.review-item strong,
.day-card strong,
.admin-grid strong {
  display: block;
}

.request-item p,
.child-item p,
.library-item p,
.empty-library p,
.letter-item p,
.referral-item p,
.review-item p,
.day-card p,
.template-card p,
.admin-grid p,
.panel p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.library-video {
  width: min(100%, 260px);
  margin: 12px 0 4px;
  border-radius: 8px;
  background: #102d24;
  box-shadow: var(--shadow-soft);
}

blockquote,
.script-preview {
  margin: 12px 0 0;
  padding: 14px;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  background: rgba(215, 169, 70, 0.13);
  color: #4a3620;
  line-height: 1.6;
}

.script-preview {
  min-height: 160px;
}

.profile-details {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
}

.profile-details div {
  display: grid;
  gap: 4px;
}

.profile-details dt {
  color: var(--red-deep);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-details dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.mini-metric {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(77, 46, 34, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
}

.mini-metric span {
  font-family: Fraunces, Georgia, serif;
  color: var(--red);
  font-size: 2.2rem;
  line-height: 0.92;
}

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

.day-card {
  min-height: 190px;
}

.day-card.today {
  border-color: rgba(197, 22, 40, 0.28);
  background: rgba(197, 22, 40, 0.07);
}

.character-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.voice-rules {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.voice-rules li {
  padding: 14px;
  border: 1px solid rgba(77, 46, 34, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
  line-height: 1.5;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.admin-actions .ghost-button,
.admin-actions .primary-button {
  min-height: 38px;
  padding: 8px 12px;
  font-size: 0.82rem;
}

.status {
  display: inline-flex;
  width: max-content;
  margin-top: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(215, 169, 70, 0.18);
  color: #8a6418;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status.ready {
  background: rgba(197, 22, 40, 0.1);
  color: var(--red-deep);
}

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

.template-card,
.admin-grid article {
  min-height: 210px;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.template-card:hover,
.template-card.selected,
.admin-grid article:hover {
  transform: translateY(-4px);
  border-color: rgba(215, 169, 70, 0.48);
  box-shadow: 0 22px 44px rgba(44, 21, 14, 0.13);
}

.template-card span {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--red);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

[hidden] {
  display: none !important;
}

.environment-banner {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 24;
  display: grid;
  max-width: min(390px, calc(100vw - 40px));
  padding: 12px 15px;
  border: 1px solid rgba(215, 169, 70, 0.34);
  border-radius: 12px;
  background: rgba(23, 17, 15, 0.94);
  color: white;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

.environment-banner.connected {
  border-color: rgba(228, 242, 233, 0.32);
  background: rgba(9, 41, 31, 0.94);
}

.environment-banner strong {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.environment-banner span {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  line-height: 1.4;
}

.membership-console {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  gap: 22px;
}

.plan-console,
.account-safety {
  align-content: start;
}

.plan-console-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
}

.plan-console-heading h2,
.account-safety h2 {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(2rem, 3.5vw, 3.4rem);
  line-height: 1;
}

.connection-pill {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(215, 169, 70, 0.18);
  color: #8a6418;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.connection-pill.connected {
  background: var(--mint);
  color: var(--green);
}

.plan-price-row {
  display: flex;
  gap: 16px;
  align-items: end;
  margin-block: 24px;
  padding-block: 22px;
  border-block: 1px solid var(--line);
}

.plan-price-row strong {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(4rem, 7vw, 6rem);
  letter-spacing: -0.06em;
  line-height: 0.8;
}

.plan-price-row span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.5;
  text-transform: uppercase;
}

.plan-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-block: 22px;
}

.plan-metrics div {
  min-height: 96px;
  padding: 16px;
  border: 1px solid rgba(77, 46, 34, 0.11);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.52);
}

.plan-metrics span {
  display: block;
  overflow-wrap: anywhere;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.7rem;
  font-weight: 800;
}

.plan-metrics small {
  color: var(--muted);
  font-weight: 800;
}

.integration-note,
.queue-mode-note {
  color: var(--muted);
  font-size: 0.76rem !important;
  line-height: 1.5 !important;
}

.field-note {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.45;
  text-transform: none;
}

.account-safety > p:not(.eyebrow, .integration-note) {
  margin-top: 18px;
  color: var(--muted);
  line-height: 1.65;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.danger-button {
  border-color: rgba(197, 22, 40, 0.25);
  color: var(--red-deep);
}

.admin-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.admin-status-grid article {
  min-height: 190px;
  padding: 22px;
  border: 1px solid rgba(77, 46, 34, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 16px 36px rgba(44, 21, 14, 0.08);
}

.admin-status-grid span {
  display: block;
  margin-bottom: 20px;
  color: var(--red);
  font-family: Fraunces, Georgia, serif;
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 0.8;
}

.admin-status-grid strong {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.35rem;
}

.admin-status-grid p {
  color: var(--muted);
  line-height: 1.55;
}

.review-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
}

.review-heading > div {
  display: grid;
}

.review-heading .status {
  margin: 0 0 10px;
}

.review-heading > small {
  color: var(--muted);
  font-weight: 800;
}

.request-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 22px 0;
  padding: 0;
  list-style: none;
}

.request-timeline li {
  position: relative;
  display: grid;
  gap: 7px;
  justify-items: start;
  color: var(--muted);
}

.request-timeline li::after {
  position: absolute;
  top: 13px;
  right: 6px;
  left: 34px;
  height: 1px;
  content: "";
  background: var(--line);
}

.request-timeline li:last-child::after {
  display: none;
}

.request-timeline span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 27px;
  height: 27px;
  border: 1px solid var(--line);
  border-radius: 50%;
  place-items: center;
  background: var(--paper);
  font-size: 0.7rem;
  font-weight: 900;
}

.request-timeline li.complete span,
.request-timeline li.current span {
  border-color: var(--green);
  background: var(--green);
  color: white;
}

.request-timeline li.current small {
  color: var(--green);
}

.request-timeline small {
  max-width: 11ch;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  max-width: min(380px, calc(100vw - 44px));
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--green-deep);
  color: white;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.22);
  font-weight: 800;
}

@keyframes snowDrift {
  to {
    background-position: 70px 420px, -90px 540px;
  }
}

@keyframes lightSweep {
  0%,
  50% {
    transform: translateX(-70%);
  }
  100% {
    transform: translateX(70%);
  }
}

@keyframes festiveFloat {
  to {
    background-position: 105px 360px, -80px 440px, 220px 380px;
  }
}

@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.96);
  }
  50% {
    opacity: 0.92;
    transform: scale(1.04);
  }
}

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

@keyframes ornamentBob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes imageBreath {
  0%,
  100% {
    transform: scale(1.03);
  }
  50% {
    transform: scale(1.08);
  }
}

@media (max-width: 1050px) {
  .sidebar {
    position: static;
    width: auto;
  }

  .sidebar nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .plan-box {
    display: none;
  }

  main {
    margin-left: 0;
  }

  .image-hero,
  .split-hero,
  .wizard-step-layout,
  .stat-grid,
  .dashboard-grid,
  .workspace,
  .two-column,
  .template-grid,
  .admin-grid,
  .tool-grid,
  .tier-grid,
  .timeline,
  .character-grid,
  .flow-strip,
  .parent-action-grid,
  .home-support-grid,
  .create-choice-grid,
  .rewards-summary,
  .achievement-grid {
    grid-template-columns: 1fr;
  }

  .membership-console {
    grid-template-columns: 1fr;
  }

  .admin-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-grid .panel.full-row {
    grid-column: auto;
  }
}

@media (max-width: 680px) {
  main,
  .sidebar {
    padding: 16px;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 20;
  }

  .sidebar .brand img {
    width: 36px;
    height: 36px;
  }

  .sidebar nav {
    display: flex;
    gap: 6px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .sidebar nav::-webkit-scrollbar {
    display: none;
  }

  .sidebar nav a {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 8px 10px;
    white-space: nowrap;
  }

  .sidebar-status {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
    align-items: center;
    margin-top: 10px;
    padding: 10px;
  }

  .sidebar-metrics {
    display: none;
  }

  .sidebar-achievements-button,
  .sidebar-logout {
    min-height: 34px;
    padding: 7px 10px;
    white-space: nowrap;
  }

  .form-grid,
  .child-form {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(2.45rem, 14vw, 4rem);
  }

  .primary-button,
  .ghost-button {
    width: 100%;
  }

  .wizard-actions {
    display: grid;
  }

  .wizard-dot {
    justify-content: center;
  }

  .admin-status-grid,
  .plan-metrics {
    grid-template-columns: 1fr;
  }

  .review-heading {
    display: grid;
  }

  .request-timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 8px;
  }

  .request-timeline li:nth-child(2)::after {
    display: none;
  }

  .environment-banner {
    right: 12px;
    bottom: 12px;
    max-width: calc(100vw - 24px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
