:root {
  color-scheme: dark;
  --purple-dark: #160820;
  --purple-mid: #26113d;
  --purple-card: #321653;
  --pink: #ff7ac8;
  --gold: #f0c66b;
  --cream: #fff4e4;
  --cream-soft: #f7ead8;
  --text-primary: #20132f;
  --text-secondary: #47365d;
  --text-on-dark: #fff8f0;
  --text-muted-dark: #ece3f5;
  --text-dark: var(--text-primary);
  --text-light: var(--text-on-dark);
  --muted-dark: var(--text-secondary);
  --muted-light: var(--text-muted-dark);
  --ink: var(--text-primary);
  --muted: var(--text-secondary);
  --bg: #160820;
  --bg-2: #26113d;
  --bg-3: #321653;
  --surface: #fff4e4;
  --surface-2: #f7ead8;
  --surface-3: #efe1c8;
  --text: #1f102e;
  --muted-2: #7d667f;
  --line: rgba(95, 74, 111, 0.2);
  --line-strong: rgba(95, 74, 111, 0.34);
  --pink-deep: #db58b0;
  --gold-soft: #f7d98d;
  --cream-2: #fff8ed;
  --shadow: 0 18px 50px rgba(19, 8, 33, 0.24);
  --shadow-soft: 0 12px 26px rgba(19, 8, 33, 0.14);
  --radius: 24px;
  --radius-sm: 16px;
  --radius-xs: 12px;
  --page-width: min(1180px, calc(100vw - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text-primary);
  font-family: "Segoe UI", "Trebuchet MS", "Gill Sans", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(233, 123, 189, 0.24), transparent 34%),
    radial-gradient(circle at top right, rgba(216, 180, 93, 0.14), transparent 28%),
    linear-gradient(180deg, var(--purple-dark) 0%, var(--purple-mid) 28%, #241339 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.06), transparent 0 38%),
    radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.05), transparent 0 24%);
  opacity: 0.45;
}

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

.text-on-dark {
  color: var(--text-on-dark);
}

.text-on-light {
  color: var(--text-primary);
}

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

.muted-on-light {
  color: var(--text-secondary);
}

.text-light-card {
  color: var(--text-primary);
}

.text-light-card-muted {
  color: var(--text-secondary);
}

.text-dark-card {
  color: var(--text-on-dark);
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.page-width {
  width: var(--page-width);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(24, 15, 40, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
}

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

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  flex: 0 0 auto;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.26);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

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

.brand-name {
  margin: 0;
  color: var(--cream);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 1rem + 0.5vw, 1.35rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
}

.brand-tag {
  margin: 3px 0 0;
  color: var(--text-muted-dark);
  font-size: 0.9rem;
}

.topbar-actions,
.hero-actions,
.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.82rem 1.08rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff7eb;
  background: linear-gradient(135deg, #ff4aa6 0%, #ff2f92 52%, #dc146f 100%);
  box-shadow: 0 16px 30px rgba(255, 47, 146, 0.28);
  border-color: rgba(255, 122, 200, 0.24);
}

.btn-primary:hover {
  color: #fff7eb;
  box-shadow: 0 20px 34px rgba(255, 47, 146, 0.34);
  transform: translateY(-2px);
}

.btn-secondary {
  color: var(--cream);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

.btn-ghost {
  color: var(--cream);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.14);
}

.btn-sm {
  padding: 0.68rem 0.95rem;
  font-size: 0.95rem;
}

.page {
  padding: 28px 0 64px;
}

.hero {
  padding: 24px 0 18px;
}

.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  padding: clamp(28px, 3vw, 42px);
  background:
    linear-gradient(135deg, rgba(47, 22, 77, 0.96), rgba(30, 16, 48, 0.92)),
    radial-gradient(circle at top right, rgba(233, 123, 189, 0.26), transparent 34%),
    radial-gradient(circle at left bottom, rgba(216, 180, 93, 0.16), transparent 34%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(130deg, rgba(255, 255, 255, 0.08), transparent 22%),
    radial-gradient(circle at 84% 18%, rgba(255, 255, 255, 0.16), transparent 0 20%);
  opacity: 0.34;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 24px;
}

.hero-copy {
  max-width: 760px;
}

.hero-title {
  margin: 0;
  color: var(--cream);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.3rem, 1.35rem + 3vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.hero-text {
  margin: 16px 0 0;
  color: var(--text-on-dark);
  max-width: 64ch;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.12rem);
  line-height: 1.7;
}

.hero-note {
  margin: 14px 0 0;
  color: var(--text-muted-dark);
  max-width: 78ch;
  font-size: 0.98rem;
  line-height: 1.7;
}

.meta-row,
.stat-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.meta-pill,
.stat-pill,
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-on-dark);
  padding: 0.62rem 0.92rem;
  font-size: 0.94rem;
}

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

.stat-card {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 245, 224, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-on-dark);
}

.stat-label {
  display: block;
  color: var(--text-muted-dark);
  font-size: 0.88rem;
  margin-bottom: 10px;
}

.stat-value {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 1.2rem + 1vw, 2.2rem);
  line-height: 1;
}

.stat-note {
  display: block;
  margin-top: 8px;
  color: var(--text-muted-dark);
  font-size: 0.92rem;
  line-height: 1.55;
}

.toolbar {
  margin: 22px 0 28px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 247, 234, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.toolbar-inner {
  display: grid;
  gap: 16px;
}

.toolbar-search {
  display: grid;
  gap: 10px;
}

.toolbar-label {
  color: var(--text-muted-dark);
  font-size: 0.92rem;
  font-weight: 600;
}

.search-field {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 0.96rem 1.05rem;
  color: var(--text-on-dark);
  background: rgba(20, 11, 35, 0.72);
  outline: none;
}

.search-field::placeholder {
  color: var(--text-muted-dark);
}

.search-field:focus {
  border-color: rgba(233, 123, 189, 0.7);
  box-shadow: 0 0 0 4px rgba(233, 123, 189, 0.14);
}

.toolbar-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-on-dark);
  background: rgba(255, 255, 255, 0.04);
}

.filter-chip[aria-pressed="true"] {
  color: #2a1738;
  background: linear-gradient(135deg, #fff1c9, #f0cf82);
  border-color: transparent;
}

.section-title {
  margin: 0 0 14px;
  color: var(--cream);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem);
  letter-spacing: -0.02em;
}

.section-copy {
  margin: 0 0 18px;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 68ch;
}

.panel-dark .section-copy {
  color: var(--text-on-dark);
}

.module-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.module-card {
  position: relative;
  display: grid;
  gap: 18px;
  min-height: 100%;
  padding: 22px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 249, 236, 0.98), rgba(245, 234, 213, 0.96));
  border: 1px solid rgba(76, 49, 96, 0.14);
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.module-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 44px rgba(19, 8, 33, 0.2);
  border-color: rgba(233, 123, 189, 0.28);
}

.module-card[hidden] {
  display: none !important;
}

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

.module-kind {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.46rem 0.76rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2a1738;
  background: linear-gradient(135deg, rgba(233, 123, 189, 0.24), rgba(216, 180, 93, 0.26));
  border: 1px solid rgba(76, 49, 96, 0.12);
}

.module-time {
  color: var(--text-secondary);
  font-size: 0.92rem;
  white-space: nowrap;
}

.module-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text-primary);
  font-size: 1.45rem;
  line-height: 1.05;
}

.module-copy {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

.module-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.module-mini {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.48rem 0.76rem;
  font-size: 0.86rem;
  color: var(--text-secondary);
  background: rgba(120, 91, 145, 0.08);
  border: 1px solid rgba(120, 91, 145, 0.12);
}

.module-progress {
  display: grid;
  gap: 8px;
  margin-top: auto;
}

.progress-track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(89, 63, 112, 0.12);
}

.progress-fill {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pink), var(--gold));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
  transition: width 220ms ease;
}

.progress-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

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

.panel {
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 249, 236, 0.98), rgba(246, 237, 220, 0.96));
  border: 1px solid rgba(76, 49, 96, 0.12);
  box-shadow: var(--shadow-soft);
  padding: 22px;
}

.panel-dark {
  background: linear-gradient(180deg, rgba(52, 25, 82, 0.96), rgba(33, 15, 56, 0.96));
  color: var(--cream);
  border-color: rgba(255, 255, 255, 0.08);
}

.panel h2,
.panel h3 {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.02em;
}

.panel h2 {
  font-size: 1.35rem;
}

.panel h3 {
  font-size: 1.15rem;
}

.panel-copy {
  margin: 0 0 16px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.panel-dark .panel-copy,
.panel-dark .support-copy,
.panel-dark .field-help,
.panel-dark .progress-summary,
.panel-dark .prompt-label {
  color: var(--text-on-dark);
}

.dashboard-tracker {
  display: grid;
  gap: 16px;
}

.dashboard-tracker .task-item {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.support-copy {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.65;
}

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

.task-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 15px;
  border-radius: 18px;
  background: rgba(120, 91, 145, 0.06);
  border: 1px solid rgba(120, 91, 145, 0.12);
}

.task-item input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--pink-deep);
}

.task-title {
  display: block;
  font-weight: 700;
  color: var(--text-primary);
}

.task-detail {
  display: block;
  margin-top: 4px;
  color: var(--text-secondary);
  line-height: 1.5;
  font-size: 0.94rem;
}

.panel-dark .task-title {
  color: var(--text-on-dark);
}

.panel-dark .task-detail {
  color: var(--text-muted-dark);
}

.field-grid {
  display: grid;
  gap: 14px;
}

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

.field-label {
  color: var(--text-primary);
  font-weight: 700;
}

.field-help {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.5;
}

.field-input,
.field-textarea {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(76, 49, 96, 0.14);
  background: rgba(255, 255, 255, 0.76);
  color: var(--text-primary);
  padding: 0.95rem 1rem;
  outline: none;
}

.field-input:focus,
.field-textarea:focus {
  border-color: rgba(233, 123, 189, 0.72);
  box-shadow: 0 0 0 4px rgba(233, 123, 189, 0.14);
}

.field-textarea {
  min-height: 132px;
  resize: vertical;
  line-height: 1.6;
}

.range-input {
  width: 100%;
  accent-color: var(--pink);
}

.tool-kicker {
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tool-inline-value {
  margin-top: 6px;
  color: var(--text-primary);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.tool-inline-note {
  margin-top: 10px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.55;
}

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

.tool-result-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(76, 49, 96, 0.12);
}

.panel-dark .tool-result-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.tool-result-card-wide {
  grid-column: 1 / -1;
}

.tool-result-label {
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tool-result-value {
  color: var(--text-primary);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  line-height: 1.1;
}

.panel-dark .tool-result-value,
.panel-dark .tool-result-copy {
  color: var(--text-on-dark);
}

.tool-result-copy {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.55;
}

.tool-criteria {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tool-criterion {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.48rem 0.78rem;
  font-size: 0.84rem;
  color: var(--text-secondary);
  background: rgba(120, 91, 145, 0.08);
  border: 1px solid rgba(120, 91, 145, 0.12);
}

.dashboard-grid {
  display: grid;
  gap: 14px;
}

.dashboard-range {
  display: grid;
  gap: 8px;
}

.dashboard-range-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-on-dark);
  font-weight: 700;
}

.dashboard-range-head strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
}

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

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

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

.flow-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: grab;
}

.flow-item.is-dragging {
  box-shadow: 0 14px 28px rgba(18, 7, 30, 0.28);
  transform: translateY(-1px) scale(0.995);
  cursor: grabbing;
}

.flow-handle {
  color: var(--text-muted-dark);
  letter-spacing: 0.12em;
  font-weight: 800;
}

.flow-label {
  color: var(--text-on-dark);
  font-weight: 700;
}

.flow-index {
  color: var(--text-muted-dark);
  font-size: 0.84rem;
}

.inline-actions,
.dashboard-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dashboard-achievements {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.resource-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-on-dark);
}

.resource-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.resource-row {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(76, 49, 96, 0.12);
  background: rgba(255, 255, 255, 0.7);
}

.panel-dark .resource-row {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.resource-row-title {
  color: var(--text-primary);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-dark .resource-row-title {
  color: var(--text-on-dark);
}

.notes-box {
  width: 100%;
  min-height: 180px;
  border-radius: 20px;
  border: 1px solid rgba(76, 49, 96, 0.14);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text-primary);
  padding: 1rem 1.05rem;
  resize: vertical;
  line-height: 1.65;
}

.notes-box:focus {
  border-color: rgba(233, 123, 189, 0.72);
  box-shadow: 0 0 0 4px rgba(233, 123, 189, 0.14);
  outline: none;
}

.prompt-panel {
  display: grid;
  gap: 12px;
}

.prompt-box {
  width: 100%;
  min-height: 160px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(18, 10, 31, 0.6);
  color: var(--cream);
  padding: 1rem 1.05rem;
  resize: vertical;
  line-height: 1.65;
}

.prompt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.progress-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
}

.progress-summary strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
}

.template-preview {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(76, 49, 96, 0.12);
  background: rgba(255, 255, 255, 0.74);
  color: var(--text-primary);
  line-height: 1.75;
  white-space: normal;
}

.panel-dark .template-preview {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text-on-dark);
}

.footer {
  padding: 0 0 40px;
  color: var(--text-muted-dark);
}

.footer-inner {
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.94rem;
  line-height: 1.6;
}

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

[data-progress-total] {
  display: inline-flex;
}

[data-workflow-library][hidden],
[data-final-launch-panel][hidden] {
  display: none !important;
}

.hero-inner.hero-split {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
  align-items: start;
}

.workflow-meter {
  display: grid;
  gap: 14px;
}

.workflow-meter-card {
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 245, 224, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-on-dark);
}

.workflow-meter-count {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 1.3rem + 1.4vw, 2.6rem);
  line-height: 1;
  margin-bottom: 8px;
}

.workflow-meter-copy {
  margin: 0;
  color: var(--text-muted-dark);
  line-height: 1.6;
}

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

.workflow-card {
  gap: 16px;
}

.workflow-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.workflow-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(120, 91, 145, 0.12);
  background: rgba(120, 91, 145, 0.08);
  color: #534162;
  padding: 0.52rem 0.78rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.workflow-status.is-complete {
  background: rgba(42, 135, 86, 0.12);
  border-color: rgba(42, 135, 86, 0.18);
  color: #1f6441;
}

.workflow-library {
  margin-top: 18px;
}

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

.workflow-library-item {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.workflow-library-title {
  margin: 0 0 4px;
  color: var(--cream);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
}

.workflow-library-copy {
  margin: 0 0 12px;
  color: var(--text-muted-dark);
  line-height: 1.55;
  font-size: 0.95rem;
}

.workflow-checklist-grid {
  display: grid;
  gap: 12px;
}

[data-gpt-panel][hidden] {
  display: none !important;
}

.dashboard-shell {
  display: grid;
  gap: 20px;
}

.dashboard-hero-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.dashboard-progress-card,
.instruction-card,
.vault-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
}

.dashboard-progress-card {
  display: grid;
  gap: 16px;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(53, 24, 84, 0.98), rgba(31, 14, 53, 0.98)),
    radial-gradient(circle at top left, rgba(233, 123, 189, 0.2), transparent 34%);
  color: var(--cream);
}

.dashboard-progress-label {
  color: var(--text-muted-dark);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-progress-value {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 1.8rem + 2.4vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.dashboard-progress-copy {
  margin: 0;
  color: var(--text-muted-dark);
  line-height: 1.7;
}

.dashboard-roadmap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.roadmap-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.72rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted-dark);
  font-size: 0.94rem;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.roadmap-step .roadmap-mark {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted-dark);
  font-size: 0.82rem;
  font-weight: 800;
}

.roadmap-step.is-active {
  color: #291339;
  background: linear-gradient(135deg, #fff0cc 0%, #f0cf82 100%);
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(216, 180, 93, 0.22);
}

.roadmap-step.is-active .roadmap-mark,
.roadmap-step.is-complete .roadmap-mark {
  background: rgba(41, 19, 57, 0.12);
  color: currentColor;
}

.roadmap-step.is-complete {
  color: var(--text-on-dark);
  background: rgba(233, 123, 189, 0.12);
  border-color: rgba(233, 123, 189, 0.2);
}

.roadmap-step.is-locked {
  color: var(--text-muted-dark);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.instruction-card {
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 249, 236, 0.99), rgba(246, 237, 220, 0.96));
}

.instruction-head {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.instruction-layout {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
}

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

.instruction-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  color: var(--text-primary);
  line-height: 1.6;
}

.instruction-warning {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 240, 204, 0.92), rgba(247, 234, 216, 0.96));
  border: 1px solid rgba(240, 198, 107, 0.36);
  color: var(--text-primary);
}

.instruction-warning strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
}

.instruction-warning p {
  margin: 0;
  line-height: 1.65;
  color: var(--text-secondary);
}

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

.mission-learning-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 249, 236, 0.98), rgba(246, 237, 220, 0.96));
  border: 1px solid rgba(76, 49, 96, 0.12);
  box-shadow: var(--shadow-soft);
  color: var(--text-primary);
}

.mission-learning-card strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
}

.mission-learning-card p {
  margin: 0;
  line-height: 1.6;
  color: var(--muted-dark);
}

.mission-prep,
.mission-next-use {
  margin: 12px 0 0;
  padding: 0.8rem 0.95rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted-dark);
  line-height: 1.6;
}

.stage-summary {
  margin: 0;
  color: var(--text-muted-dark);
  line-height: 1.55;
}

.step-bullet {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #271338;
  background: linear-gradient(135deg, #ffe8c8 0%, #f0cf82 100%);
  font-size: 0.84rem;
  font-weight: 800;
}

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

.stage-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 16px;
  min-height: 100%;
  padding: 22px;
  border-radius: 30px;
  color: var(--cream);
  background:
    linear-gradient(180deg, rgba(47, 21, 77, 0.98), rgba(25, 12, 42, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, opacity 180ms ease;
}

.stage-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(233, 123, 189, 0.55), rgba(216, 180, 93, 0.42), transparent 65%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.stage-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(18, 7, 30, 0.34);
  border-color: rgba(233, 123, 189, 0.28);
}

.stage-card.is-active {
  box-shadow: 0 24px 64px rgba(18, 7, 30, 0.4), 0 0 0 1px rgba(233, 123, 189, 0.22);
}

.stage-card.is-complete {
  border-color: rgba(216, 180, 93, 0.38);
}

.stage-card.is-locked {
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.stage-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.stage-identity {
  display: grid;
  gap: 8px;
}

.stage-number {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stage-icon {
  font-size: 1.45rem;
  line-height: 1;
}

.stage-title {
  margin: 0;
  color: var(--cream);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 1.25rem + 0.8vw, 2rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.stage-gpts,
.stage-meta,
.stage-actions,
.stage-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.stage-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.58rem 0.82rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-primary);
  background: linear-gradient(135deg, #ffe7c7 0%, #f0cf82 100%);
}

.stage-chip.is-pink {
  color: var(--text-on-dark);
  background: rgba(233, 123, 189, 0.12);
  border: 1px solid rgba(233, 123, 189, 0.18);
}

.stage-copy,
.stage-support {
  margin: 0;
  color: var(--text-muted-dark);
  line-height: 1.65;
}

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

.stage-fact {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stage-fact span {
  display: block;
  margin-bottom: 6px;
  color: var(--gold-soft);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stage-fact p {
  margin: 0;
  color: var(--text-on-dark);
  line-height: 1.55;
}

.stage-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.stage-section {
  display: grid;
  gap: 8px;
}

.stage-section strong {
  color: var(--text-on-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
}

.stage-footer {
  justify-content: space-between;
}

.stage-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 0.55rem 0.82rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-on-dark);
  font-weight: 700;
}

.stage-status.is-complete {
  background: rgba(216, 180, 93, 0.18);
  border-color: rgba(216, 180, 93, 0.24);
  color: var(--text-on-dark);
}

.stage-complete {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 0.8rem 0.95rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-on-dark);
}

.stage-complete input {
  width: 18px;
  height: 18px;
  accent-color: var(--pink);
}

.stage-progress {
  display: grid;
  gap: 8px;
}

.stage-progress .progress-track {
  height: 9px;
  background: rgba(255, 255, 255, 0.08);
}

.stage-progress .progress-fill {
  background: linear-gradient(90deg, var(--pink) 0%, var(--gold) 100%);
}

.stage-progress-label {
  color: var(--text-muted-dark);
  font-size: 0.9rem;
}

.library-drawer {
  margin-top: 18px;
}

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

.library-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.library-card-title {
  margin: 0;
  color: var(--cream);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
}

.library-card-copy {
  margin: 0;
  color: var(--text-muted-dark);
  line-height: 1.6;
}

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

.vault-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(255, 249, 236, 0.98), rgba(246, 237, 220, 0.96));
  color: var(--ink);
}

.vault-card.is-pulse {
  animation: vaultPulse 1.4s ease;
}

.vault-card-title {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
}

.vault-card-copy {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

.vault-card-empty {
  color: var(--text-secondary);
}

.vault-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.mission-shell {
  display: grid;
  gap: 18px;
}

.mission-hero-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
}

.mission-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(233, 123, 189, 0.12);
  border: 1px solid rgba(233, 123, 189, 0.16);
  color: var(--text-on-dark);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mission-summary-card {
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(53, 24, 84, 0.98), rgba(31, 14, 53, 0.98));
  color: var(--cream);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.mission-summary-value {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 1.4rem + 2vw, 3.6rem);
  line-height: 0.95;
}

.mission-summary-copy {
  margin: 0;
  color: var(--text-muted-dark);
  line-height: 1.7;
}

.mission-work-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.mission-work-grid .panel:first-child h2 {
  margin-bottom: 8px;
}

.mission-work-grid .panel:first-child .panel-copy {
  margin-bottom: 18px;
}

.mission-save-card {
  display: grid;
  gap: 14px;
}

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

.mission-instruction-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  color: var(--text-primary);
  line-height: 1.6;
}

.mission-checklist .task-item {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

.mission-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.mission-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.54rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(233, 123, 189, 0.18);
  background: rgba(233, 123, 189, 0.12);
  color: var(--text-on-dark);
  font-weight: 700;
}

.mission-empty-state {
  color: var(--text-muted-dark);
  font-size: 0.95rem;
  line-height: 1.55;
}

.mission-prompt-panel {
  display: grid;
  gap: 12px;
}

.mission-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

@keyframes vaultPulse {
  0% {
    transform: scale(1);
    box-shadow: var(--shadow-soft);
  }
  50% {
    transform: scale(1.01);
    box-shadow: 0 20px 44px rgba(19, 8, 33, 0.2);
  }
  100% {
    transform: scale(1);
    box-shadow: var(--shadow-soft);
  }
}

@media (max-width: 1080px) {
  .stat-grid,
  .module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-inner.hero-split,
  .workflow-library-grid,
  .workflow-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-hero-grid,
  .mission-hero-grid,
  .mission-work-grid,
  .instruction-layout,
  .mission-learning-grid,
  .stage-facts,
  .stage-grid,
  .vault-grid,
  .library-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .page-width {
    width: min(100vw - 20px, 1180px);
  }

  .topbar-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-card,
  .panel,
  .module-card,
  .toolbar {
    border-radius: 22px;
  }

  .stat-grid,
  .module-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner.hero-split,
  .workflow-library-grid,
  .workflow-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-hero-grid,
  .mission-hero-grid,
  .mission-work-grid,
  .instruction-layout,
  .mission-learning-grid,
  .stage-facts,
  .stage-grid,
  .vault-grid,
  .library-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: clamp(2rem, 2rem + 5vw, 3rem);
  }

  .topbar-actions,
  .hero-actions,
  .toolbar-actions {
    justify-content: flex-start;
  }

  .btn {
    width: 100%;
  }
}

@media print {
  body {
    background: #fff !important;
    color: #111 !important;
  }

  body::before,
  .topbar,
  .hero-actions,
  .toolbar,
  .prompt-actions,
  .footer,
  .btn,
  .filter-chip,
  .module-card,
  .brand-mark {
    box-shadow: none !important;
  }

  .topbar,
  .hero-actions,
  .toolbar,
  .btn,
  .filter-chip,
  [data-print],
  [data-gpt-toggle],
  [data-copy-prompt] {
    display: none !important;
  }

  .hero-card,
  .panel,
  .module-card,
  .toolbar {
    background: #fff !important;
    border-color: #ccc !important;
    color: #111 !important;
  }

  .page {
    padding-top: 0;
  }
}

:root {
  --purple-deep: #12051f;
  --purple-dark: #1b082b;
  --purple-card: #2a0f42;
  --purple-line: #5c2b76;
  --cream: #fff4e4;
  --cream-soft: #f8ead7;
  --text-dark: #24142f;
  --text-muted: #5a4168;
  --text-light: #fff7eb;
  --pink: #ff2f92;
  --pink-soft: #ff7ac8;
  --gold: #f2c66d;
  --border-light: #f2d6aa;
}

body {
  background:
    radial-gradient(circle at top left, rgba(255, 47, 146, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(242, 198, 109, 0.14), transparent 24%),
    linear-gradient(180deg, var(--purple-deep) 0%, var(--purple-dark) 54%, #180925 100%);
  color: var(--text-light);
}

.app-shell {
  width: min(1540px, calc(100vw - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 16px;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 4px 0;
}

.sidebar-brand .brand-name,
.sidebar-brand .brand-tag {
  color: var(--text-light);
}

.sidebar-brand .brand-name {
  font-size: 1.1rem;
  line-height: 1.05;
}

.sidebar-brand .brand-tag {
  margin-top: 2px;
  color: #f2c66d;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

.roadmap-card,
.today-task-card,
.results-vault-card,
.checklist-card,
.support-tools-panel {
  border-radius: 24px;
  border: 1px solid rgba(242, 214, 170, 0.16);
  background: linear-gradient(180deg, rgba(41, 19, 57, 0.96), rgba(27, 10, 45, 0.96));
  padding: 18px;
  box-shadow: 0 24px 52px rgba(11, 2, 20, 0.22);
}

.roadmap-card-head,
.card-head,
.support-tools-head {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.roadmap-card-head h2,
.card-head h2,
.support-tools-head h3 {
  margin: 0;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.02em;
}

.roadmap-card-head p,
.support-tools-head p,
.today-task-card p,
.card-copy,
.last-saved,
.continue-note {
  margin: 0;
  color: #eadcf4;
  line-height: 1.6;
}

.phase-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 122, 200, 0.22);
  background: rgba(255, 255, 255, 0.03);
}

.phase-card.current-step {
  border-color: rgba(255, 47, 146, 0.88);
  background: linear-gradient(180deg, rgba(56, 20, 87, 0.98), rgba(34, 11, 53, 0.98));
  box-shadow:
    0 0 0 1px rgba(255, 47, 146, 0.22),
    0 0 0 6px rgba(255, 47, 146, 0.06),
    0 18px 34px rgba(255, 47, 146, 0.12);
}

.phase-card.locked-step {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.08);
}

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

.phase-card-label {
  margin: 0 0 4px;
  color: var(--pink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 800;
}

.phase-card h3 {
  margin: 0;
  color: var(--text-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
}

.phase-step-list {
  display: grid;
  gap: 8px;
}

.step-item {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px 12px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-light);
  text-align: left;
}

.step-item strong,
.step-item small {
  display: block;
}

.step-item strong {
  color: var(--text-light);
  font-size: 0.96rem;
}

.step-item small {
  color: #eadcf4;
  margin-top: 2px;
  font-size: 0.82rem;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), #f7dc99);
  color: #291338;
  font-weight: 800;
}

.step-item.current-step {
  border-color: rgba(255, 47, 146, 0.9);
  background: linear-gradient(135deg, rgba(255, 47, 146, 0.24), rgba(255, 122, 200, 0.12));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.step-item.completed-step {
  border-color: rgba(242, 198, 109, 0.6);
  background: rgba(242, 198, 109, 0.08);
}

.step-item.locked-step {
  background: rgba(255, 255, 255, 0.02);
}

.support-tools-button {
  width: 100%;
}

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

.support-tool-link {
  display: block;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-light);
  line-height: 1.4;
}

.wizard-main {
  display: grid;
  gap: 16px;
}

.setup-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding-top: 8px;
}

.setup-kicker {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.setup-title {
  margin: 0;
  color: var(--text-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.3rem, 1.5rem + 2vw, 4rem);
  line-height: 0.98;
}

.setup-subtitle {
  margin: 10px 0 0;
  color: #eadcf4;
  font-size: 1.02rem;
  line-height: 1.65;
}

.setup-progress-card {
  min-width: 240px;
  padding: 16px 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(54, 23, 87, 0.95), rgba(35, 12, 56, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-light);
}

.setup-progress-card span {
  display: block;
  color: #eadcf4;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.setup-progress-card strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.6rem;
  line-height: 1;
  margin-bottom: 16px;
}

.top-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border-radius: 22px;
  background: #e8d7be;
  border: 1px solid rgba(242, 198, 109, 0.5);
}

.top-summary-strip > div {
  padding: 16px 18px;
  background: linear-gradient(180deg, rgba(255, 244, 228, 0.98), rgba(248, 234, 215, 0.96));
}

.top-summary-strip span {
  display: block;
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.top-summary-strip strong {
  color: var(--text-dark);
  font-size: 1rem;
}

.step-hero,
.instruction-card,
.why-card {
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 244, 228, 0.99), rgba(248, 234, 215, 0.97));
  border: 1px solid rgba(242, 214, 170, 0.9);
  color: var(--text-dark);
  box-shadow: 0 20px 50px rgba(12, 3, 19, 0.18);
}

.step-hero {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  padding: 24px;
}

.current-step-card {
  box-shadow:
    0 0 0 1px rgba(255, 47, 146, 0.1),
    0 0 0 8px rgba(255, 47, 146, 0.05),
    0 20px 50px rgba(12, 3, 19, 0.18);
}

.step-hero .btn-secondary,
.instruction-card .btn-secondary,
.top-summary-strip .btn-secondary {
  color: var(--text-dark);
  border-color: rgba(36, 20, 47, 0.18);
  background: rgba(255, 255, 255, 0.6);
}

.step-hero .btn-secondary:hover,
.instruction-card .btn-secondary:hover,
.top-summary-strip .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.78);
}

.sidebar .btn-secondary,
.sidebar .btn-ghost {
  color: var(--text-light);
}

.step-hero-media {
  min-height: 320px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 36%, rgba(255, 122, 200, 0.28), transparent 32%),
    radial-gradient(circle at bottom left, rgba(255, 47, 146, 0.38), transparent 28%),
    linear-gradient(180deg, #2e1048, #160820);
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 4rem;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 18px 40px rgba(12, 3, 19, 0.16);
}

.step-hero-copy {
  display: grid;
  gap: 16px;
  align-content: start;
}

.step-number {
  margin: 0;
  color: var(--pink);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.step-title {
  margin: 0;
  color: var(--text-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 1.3rem + 1.5vw, 3.1rem);
  line-height: 0.98;
}

.step-copy {
  margin: 0;
  color: var(--text-dark);
  font-size: 1.03rem;
  line-height: 1.72;
}

.step-creates {
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 47, 146, 0.14);
  background: rgba(255, 255, 255, 0.58);
}

.step-creates h3 {
  margin: 0 0 10px;
  color: var(--text-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
}

.step-creates ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text-dark);
  line-height: 1.7;
}

.hero-actions {
  flex-wrap: wrap;
}

.launch-button,
.continue-button {
  font-weight: 800;
}

.instruction-card {
  padding: 22px;
}

.instruction-head h2 {
  margin: 0;
  color: var(--text-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
}

.instruction-head p {
  margin: 6px 0 0;
  color: var(--text-muted);
  line-height: 1.65;
}

.instruction-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 18px;
  align-items: start;
}

.instruction-list {
  padding: 0;
  margin: 0;
}

.instruction-list li {
  margin-bottom: 10px;
  color: var(--text-dark);
}

.why-grid {
  display: grid;
  gap: 12px;
}

.why-card {
  padding: 16px;
  border-radius: 20px;
}

.why-card strong {
  color: var(--text-dark);
}

.why-card p {
  margin: 8px 0 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.sidebar-right {
  gap: 14px;
}

.today-task-card,
.results-vault-card,
.checklist-card {
  display: grid;
  gap: 14px;
}

.meta-stack {
  display: grid;
  gap: 8px;
}

.meta-stack span {
  color: #eadcf4;
  font-weight: 700;
}

.results-vault-card .field-textarea,
.results-vault-card .notes-box {
  min-height: 120px;
  background: rgba(255, 247, 235, 0.98);
  color: var(--text-dark);
  border-color: rgba(242, 214, 170, 0.9);
}

.results-vault-card .field-label {
  color: var(--text-light);
}

.checklist-card .task-item {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

.step-complete-toggle {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--text-light);
  font-weight: 700;
}

.step-complete-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--pink);
}

.continue-note {
  font-size: 0.92rem;
}

.sidebar-left .support-tools-panel[hidden] {
  display: none !important;
}

.sidebar-left .support-tools-panel {
  max-height: 360px;
  overflow: auto;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .setup-header,
  .instruction-layout,
  .step-hero,
  .top-summary-strip {
    grid-template-columns: 1fr;
  }

  .setup-progress-card {
    min-width: 0;
  }
}

@media (max-width: 720px) {
  .app-shell {
    width: min(100vw - 20px, 1540px);
  }

  .wizard-main {
    order: 1;
  }

  .sidebar-right {
    order: 2;
  }

  .sidebar-left {
    order: 3;
  }

  .top-summary-strip {
    overflow: visible;
  }

  .top-summary-strip > div {
    border-radius: 18px;
  }

  .step-hero {
    padding: 18px;
  }

  .step-hero-media {
    min-height: 180px;
  }

  .setup-title {
    font-size: clamp(2rem, 1.6rem + 3vw, 3rem);
  }
}
