/* ==========================================================================
   Velang Cards · 1-Thing-at-a-Time Study Planner Wizard & Hero Plan
   Design System: Velang Calm UI (Zero Explanation Waste, Tactile Interactive)
   ========================================================================== */

.progressive-planner {
  max-width: 780px !important;
  margin: 0 auto;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* ==========================================================================
   Wizard Card Container
   ========================================================================== */

.wizard-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-card, 20px);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}

.wizard-animate {
  animation: wizardFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* ==========================================================================
   Wizard Navigation & Step Header
   ========================================================================== */

.wizard-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.wizard-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  transition: all var(--dur-fast, 150ms) ease;
}

.wizard-back-btn:hover {
  color: var(--text-main);
  background: var(--bg-surface-elevated);
}

.wizard-back-btn svg {
  display: block;
}

.wizard-back-placeholder {
  width: 60px;
}

.wizard-progress-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wizard-progress-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-main);
  transition: all var(--dur-fast, 150ms) ease;
}

.wizard-progress-dot.is-active {
  background: var(--brand-green);
  width: 24px;
  border-radius: 12px;
}

.wizard-progress-dot.is-done {
  background: var(--brand-green);
  opacity: 0.6;
}

.wizard-screen-num {
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

/* ==========================================================================
   Wizard Titles
   ========================================================================== */

.wizard-title {
  font-size: clamp(20px, 3vw, 24px);
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
  line-height: 1.25;
  text-align: center;
}

/* ==========================================================================
   Tactile Tiles & Grids (Screens 1, 2, 3, 4)
   ========================================================================== */

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

.wizard-weakness-grid {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

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

.wizard-grid-levels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
}

.wizard-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  padding: 22px 14px;
  background: var(--bg-surface-elevated);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-box, 14px);
  color: var(--text-main);
  font: inherit;
  cursor: pointer;
  transition: all var(--dur-fast, 150ms) ease;
  min-height: 110px;
}

.wizard-tile:hover {
  border-color: var(--brand-green);
  background: var(--bg-surface-soft, rgba(86, 201, 122, 0.07));
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.wizard-tile.is-selected {
  border-color: var(--brand-green);
  background: rgba(86, 201, 122, 0.08);
  box-shadow: 0 0 0 1px var(--brand-green);
}

.wizard-tile-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-green);
}

.wizard-tile-label {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

/* CEFR Level Emblems */
.wizard-level-emblem {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-surface-recessed);
  border: 1.5px solid var(--border-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono, monospace);
  font-size: 16px;
  font-weight: 800;
  color: var(--brand-green);
  transition: all var(--dur-fast, 150ms) ease;
}

.wizard-tile:hover .wizard-level-emblem {
  border-color: var(--brand-green);
  background: rgba(86, 201, 122, 0.12);
}

.wizard-level-emblem.is-target {
  color: var(--accent-honey, #D6BE82);
  border-color: rgba(214, 190, 130, 0.35);
}

.wizard-tile.is-target:hover .wizard-level-emblem.is-target {
  border-color: var(--accent-honey, #D6BE82);
  background: rgba(214, 190, 130, 0.15);
}

/* ==========================================================================
   Screen 5: Available Days & Time
   ========================================================================== */

.wizard-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.wizard-day-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 6px;
  background: var(--bg-surface-elevated);
  border: 1.5px solid var(--border-subtle);
  border-radius: 10px;
  color: var(--text-muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: all var(--dur-fast, 150ms) ease;
}

.wizard-day-chip:hover {
  border-color: var(--brand-green);
  color: var(--text-main);
}

.wizard-day-chip.is-active {
  border-color: var(--brand-green);
  background: rgba(86, 201, 122, 0.12);
  color: var(--brand-green);
  font-weight: 700;
  box-shadow: 0 0 0 1px var(--brand-green);
}

.wizard-generate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 15px 24px;
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--radius-btn, 12px);
  margin-top: 8px;
  cursor: pointer;
}

/* ==========================================================================
   Screen 6: Hero Result Plan
   ========================================================================== */

.wizard-plan-result {
  background: var(--bg-surface);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-card, 20px);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.plan-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.plan-hero-eyebrow {
  color: var(--brand-green);
  font: 700 11px var(--font-mono, monospace);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plan-reset-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 6px 12px;
  color: var(--text-muted);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--dur-fast, 150ms) ease;
}

.plan-reset-btn:hover {
  color: var(--text-main);
  border-color: var(--brand-green);
}

.plan-hero-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}

.plan-hero-title {
  font-size: clamp(28px, 4.5vw, 40px);
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.plan-hero-subtitle {
  font-size: clamp(14px, 2vw, 16px);
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

/* ==========================================================================
   Animated SVG Projection Graph (Hero)
   ========================================================================== */

.planner-graph-container {
  width: 100%;
  padding: 0;
  overflow: hidden;
}

.planner-svg-chart {
  width: 100%;
  height: auto;
  display: block;
}

.graph-grid-line {
  stroke: var(--border-subtle);
  stroke-width: 1;
}

.graph-grid-line.is-dashed {
  stroke-dasharray: 4;
}

/* Animated Path Drawing */
.planner-graph-path {
  fill: none;
  stroke: var(--brand-green);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: drawGraphCurve 1.3s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes drawGraphCurve {
  to {
    stroke-dashoffset: 0;
  }
}

/* Animated Area Fill Fade */
.planner-graph-area {
  opacity: 0;
  animation: revealGraphArea 0.8s ease-out 0.8s forwards;
}

@keyframes revealGraphArea {
  to {
    opacity: 1;
  }
}

/* Milestone Nodes on the Graph */
.graph-node-group {
  opacity: 0;
  animation: revealNode 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: calc(0.35s + var(--node-idx, 0) * 0.25s);
}

@keyframes revealNode {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.graph-node-halo {
  fill: var(--brand-green);
  opacity: 0.18;
  animation: pulseHalo 2.5s infinite ease-in-out;
}

@keyframes pulseHalo {
  0%, 100% {
    r: 12;
    opacity: 0.18;
  }
  50% {
    r: 16;
    opacity: 0.3;
  }
}

.graph-node-dot {
  fill: var(--brand-green);
  stroke: var(--bg-surface-recessed);
  stroke-width: 2.5;
}

.graph-node-text {
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  font-weight: 800;
  fill: var(--text-main);
}

.graph-node-date {
  font-family: var(--font-sans, sans-serif);
  font-size: 10px;
  font-weight: 700;
  fill: var(--accent-honey, #D6BE82);
}

.graph-node-words {
  font-family: var(--font-mono, monospace);
  font-size: 9px;
  font-weight: 600;
  fill: var(--text-muted);
  display: none; /* now shown on Y-axis instead */
}

.graph-axis-line {
  stroke: var(--border-main, #334155);
  stroke-width: 1;
  opacity: 0.35;
}

.graph-axis-tick {
  stroke: var(--border-main, #334155);
  stroke-width: 1;
  opacity: 0.35;
}

.graph-y-label {
  font-family: var(--font-mono, monospace);
  font-size: 9px;
  font-weight: 600;
  fill: var(--text-muted);
}

.graph-x-label {
  font-family: var(--font-mono, monospace);
  font-size: 9px;
  font-weight: 600;
  fill: var(--text-muted);
}

/* ==========================================================================
   3-Point Stat Row (replaces milestone chips)
   ========================================================================== */

.plan-stat-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--border-subtle);
}

.plan-stat-point {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex: 1;
}

.plan-stat-value {
  font-size: clamp(22px, 3.5vw, 30px);
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  line-height: 1;
}

.plan-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.plan-stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border-subtle);
  flex-shrink: 0;
}

/* ==========================================================================
   Minimalist Milestones Summary (Screen 6)
   ========================================================================== */

.plan-milestones-summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 0 0;
  border-top: 1px solid var(--border-subtle);
}

.milestones-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.milestones-headline strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.milestones-headline span {
  font-size: 12px;
  color: var(--brand-green);
  font-weight: 600;
  font-family: var(--font-mono, monospace);
}

.milestones-timeline-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.milestone-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.milestone-chip:last-child {
  border-bottom: none;
}

.milestone-chip-badge {
  font-family: var(--font-mono, monospace);
  font-size: 13px;
  font-weight: 800;
  color: var(--brand-green);
  background: rgba(86, 201, 122, 0.12);
  padding: 3px 8px;
  border-radius: 6px;
}

.milestone-chip-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.milestone-chip-details strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.milestone-chip-details small {
  font-size: 11px;
  color: var(--text-muted);
}

/* ==========================================================================
   Printable Custom Plan Box (Calendar & PDF)
   ========================================================================== */

.printable-plan-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 0 0;
  border-top: 1px solid var(--border-subtle);
}

.printable-plan-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 220px;
}

.printable-plan-icon {
  color: var(--brand-green);
  display: flex;
  align-items: center;
}

.printable-plan-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.printable-plan-text strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.printable-plan-text small {
  font-size: 12px;
  color: var(--text-muted);
}

.printable-plan-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.printable-plan-actions .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
}

.wizard-next-screen-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-btn, 12px);
  cursor: pointer;
}

/* ==========================================================================
   Interactive & Printable Study Calendar
   ========================================================================== */

.printable-calendar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 20px;
  transition: all var(--dur-fast, 150ms) ease;
}

.printable-calendar.is-collapsed {
  display: none;
}


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

.printable-cal-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 2px;
}

.printable-cal-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.cal-print-icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface-recessed);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 7px 12px;
  color: var(--text-main);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--dur-fast, 150ms) ease;
}

.cal-print-icon-btn:hover {
  border-color: var(--brand-green);
  color: var(--brand-green);
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.cal-month-header {
  grid-column: 1 / -1;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 10px 0 2px;
  border-top: 1px solid var(--border-subtle);
  margin-top: 4px;
}

.cal-month-header:first-child {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

.cal-day {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  color: var(--text-main);
  font: inherit;
  text-align: start;
  cursor: pointer;
  min-height: 64px;
  transition: all var(--dur-fast, 150ms) ease;
}

.cal-day:hover {
  border-color: var(--brand-green);
  transform: translateY(-1px);
}

.cal-day.is-rest {
  opacity: 0.35;
  cursor: default;
}

.cal-day.is-rest:hover {
  border-color: var(--border-subtle);
  transform: none;
}

.cal-day.is-checked {
  background: rgba(86, 201, 122, 0.08);
  border-color: var(--brand-green);
}

.cal-day.is-milestone {
  border-color: var(--accent-honey, #D6BE82);
  background: rgba(214, 190, 130, 0.06);
}

.cal-day-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.cal-day-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

.cal-box {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid var(--border-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: var(--brand-green);
}

.cal-day.is-checked .cal-box {
  background: var(--brand-green);
  color: var(--on-accent, #0E171A);
  border-color: var(--brand-green);
}

.cal-day-content {
  margin-top: 6px;
}

.cal-words {
  font-size: 10px;
  color: var(--brand-green);
  font-family: var(--font-mono, monospace);
  font-weight: 600;
}

.cal-badge {
  font-size: 9px;
  font-weight: 700;
  color: var(--accent-honey, #D6BE82);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   Recommended Primary Resource (Velang Cards)
   ========================================================================== */

.plan-resource-spotlight {
  background: var(--bg-surface-elevated);
  border: 1.5px solid var(--brand-green);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.spotlight-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.spotlight-tag {
  color: var(--brand-green);
  font: 700 11px var(--font-mono, monospace);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plan-resource-spotlight h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
}

.plan-resource-spotlight p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

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

.spotlight-actions .btn-primary,
.spotlight-actions .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-btn, 12px);
  text-decoration: none;
  cursor: pointer;
}

/* ==========================================================================
   Recommended YouTube Channels
   ========================================================================== */

.plan-external-resources {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.res-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.res-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-main);
  transition: all var(--dur-fast, 150ms) ease;
}

.res-card:hover {
  border-color: #FF0000;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.res-card-icon {
  color: #FF0000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.res-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.res-info strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.res-info small {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.35;
}

.res-arrow {
  color: var(--text-muted);
  font-size: 14px;
}

.res-card:hover .res-arrow {
  color: var(--text-main);
}

/* ==========================================================================
   Footer Actions
   ========================================================================== */

.plan-footer-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.plan-footer-actions .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-btn, 12px);
  cursor: pointer;
}

.copy-status-bubble {
  font-size: 12px;
  color: var(--brand-green);
  font-weight: 600;
}

/* ==========================================================================
   RTL Alignment
   ========================================================================== */

[dir="rtl"] .wizard-tile,
[dir="rtl"] .cal-day {
  text-align: right;
}

[dir="rtl"] .wizard-back-btn span {
  order: 2;
}

[dir="rtl"] .wizard-back-btn svg {
  order: 1;
}

[dir="rtl"] .cal-day-header {
  flex-direction: row-reverse;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 640px) {
  .wizard-icon-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .wizard-grid-3 {
    grid-template-columns: 1fr;
  }
  .wizard-days-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .plan-stat-pills {
    grid-template-columns: 1fr;
  }
  .cal-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .spotlight-actions > * {
    width: 100%;
    justify-content: center;
  }
  .plan-footer-actions > button {
    width: 100%;
    justify-content: center;
  }
}

/* Hidden on standard screen view; active only in print / PDF generation */
.print-doc-header,
.print-doc-footer,
.print-routine-page,
.print-milestone-bar {
  display: none;
}

/* ==========================================================================
   Print / PDF — Paper-native, typographic, no containers
   ========================================================================== */

@media print {
  @page {
    size: A4 portrait;
    margin: 16mm 18mm 14mm;
  }

  html,
  body {
    background: #fff !important;
    color: #111 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 11pt !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* Isolate the planner */
  body > *:not(.plan-setter-section) {
    display: none !important;
  }

  /* Strip all screen chrome */
  .site-header,
  .site-footer,
  .plan-setter-section .section-header,
  .wizard-header-bar,
  .plan-topbar,
  .plan-hero-head,
  .plan-reset-btn,
  .printable-plan-box,
  .wizard-next-screen-btn,
  .cal-print-icon-btn,
  .spotlight-actions,
  .resources-footer-nav,
  .plan-resource-spotlight,
  .plan-external-resources {
    display: none !important;
  }

  .plan-setter-section {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
  }

  .plan-setter-section .container {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .plan-card.progressive-planner,
  .wizard-card,
  .wizard-plan-result {
    border: none !important;
    background: #fff !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    color: #111 !important;
  }

  /* ── Document header ────────────────────────────────────────────── */
  .print-doc-header {
    display: block !important;
    margin-bottom: 14pt !important;
  }

  /* Brand line: VELANG CARDS on left, level→target + date on right */
  .print-brand-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: baseline !important;
    border-bottom: 1.5pt solid #1a7a40 !important;
    padding-bottom: 4pt !important;
    margin-bottom: 8pt !important;
  }

  .print-logo {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 8pt !important;
    font-weight: 700 !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
    color: #1a7a40 !important;
  }

  .print-tag {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 8pt !important;
    font-weight: 600 !important;
    color: #444 !important;
  }

  /* Hero goal title — the thing that motivates */
  .print-hero-goal {
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 22pt !important;
    font-weight: 700 !important;
    color: #111 !important;
    line-height: 1.15 !important;
    margin: 0 0 2pt !important;
    letter-spacing: -0.01em !important;
  }

  /* ── Projection Graph ───────────────────────────────────────────── */
  .planner-graph-container {
    display: block !important;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 14pt 0 8pt !important;
    page-break-inside: avoid !important;
  }

  .planner-svg-chart {
    width: 100% !important;
    height: auto !important;
    max-height: 160pt !important;
  }

  .planner-graph-area {
    opacity: 0.18 !important;
    fill: #1a7a40 !important;
  }

  .planner-graph-path {
    stroke: #1a7a40 !important;
    stroke-width: 2pt !important;
    fill: none !important;
  }

  .graph-grid-line {
    stroke: #ccc !important;
    stroke-width: 0.5pt !important;
  }

  .graph-node-halo {
    display: none !important;
  }

  .graph-node-dot {
    fill: #1a7a40 !important;
    stroke: #fff !important;
    stroke-width: 2pt !important;
    r: 4pt !important;
  }

  .graph-node-text {
    fill: #111 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-weight: 700 !important;
    font-size: 9pt !important;
  }

  .graph-node-date {
    fill: #333 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-weight: 400 !important;
    font-size: 7.5pt !important;
  }

  .graph-node-words {
    fill: #888 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 7pt !important;
  }

  /* ── Milestone timeline — plain ruled rows, no chips ────────────── */
  .plan-milestones-summary {
    display: block !important;
    margin: 12pt 0 16pt !important;
    page-break-inside: avoid !important;
  }

  .milestones-headline {
    display: flex !important;
    justify-content: space-between !important;
    align-items: baseline !important;
    border-bottom: 0.5pt solid #bbb !important;
    padding-bottom: 3pt !important;
    margin-bottom: 6pt !important;
  }

  .milestones-headline strong {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 8.5pt !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    color: #111 !important;
  }

  .milestones-headline span {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 8pt !important;
    color: #555 !important;
    font-weight: 400 !important;
  }

  .milestones-timeline-row {
    display: flex !important;
    gap: 0 !important;
    flex-wrap: nowrap !important;
  }

  /* Each milestone as a bare column: level → date → word count */
  .milestone-chip {
    flex: 1 !important;
    background: none !important;
    border: none !important;
    border-right: 0.5pt solid #ddd !important;
    border-radius: 0 !important;
    padding: 4pt 8pt !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1pt !important;
  }

  .milestone-chip:last-child {
    border-right: none !important;
  }

  .milestone-chip-badge {
    background: none !important;
    color: #111 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 10pt !important;
    font-weight: 700 !important;
    padding: 0 !important;
    border-radius: 0 !important;
  }

  .milestone-chip-details strong {
    display: block !important;
    font-family: Arial, Helvetica, sans-serif !important;
    color: #333 !important;
    font-size: 8.5pt !important;
    font-weight: 400 !important;
  }

  .milestone-chip-details small {
    display: block !important;
    font-family: Arial, Helvetica, sans-serif !important;
    color: #888 !important;
    font-size: 7.5pt !important;
  }

  /* ── Horizontal Milestone Checklist ────────────────────────────── */
  .print-milestone-bar {
    display: block !important;
    margin: 20pt 0 0 !important;
    page-break-inside: avoid !important;
  }

  .print-ms-label {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 7pt !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    color: #1a7a40 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8pt !important;
    margin-bottom: 10pt !important;
  }

  .print-ms-label::before,
  .print-ms-label::after {
    content: '' !important;
    flex: 1 !important;
    border-top: 0.5pt solid #b2d9c0 !important;
  }

  .print-ms-cols {
    display: flex !important;
    gap: 0 !important;
  }

  .print-ms-col {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 4pt !important;
    padding: 0 8pt !important;
    border-right: 0.5pt solid #e0e0e0 !important;
  }

  .print-ms-col:last-child {
    border-right: none !important;
  }

  .print-ms-level {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 18pt !important;
    font-weight: 800 !important;
    color: #1a7a40 !important;
    letter-spacing: -0.01em !important;
    line-height: 1 !important;
  }

  .print-ms-check-row {
    display: flex !important;
    align-items: center !important;
    gap: 5pt !important;
  }

  /* Milestone checkboxes — bigger + ghost ✓ to show purpose */
  .print-ms-col .print-checkbox {
    width: 13pt !important;
    height: 13pt !important;
    border: 1pt solid #999 !important;
    border-radius: 2pt !important;
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
  }

  .print-ms-col .print-checkbox::after {
    content: '✓' !important;
    font-size: 9pt !important;
    line-height: 1 !important;
    color: #ccc !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-weight: 700 !important;
  }

  .print-ms-date {
    font-family: Georgia, serif !important;
    font-size: 9pt !important;
    color: #111 !important;
  }

  .print-ms-words {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 7.5pt !important;
    color: #888 !important;
  }

  /* ── 4-Week Calendar — bare grid, no borders on days ───────────── */
  .printable-calendar,
  .printable-calendar.is-collapsed {
    display: block !important;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin-top: 14pt !important;
    page-break-inside: avoid !important;
  }

  .printable-cal-head {
    display: flex !important;
    justify-content: space-between !important;
    align-items: baseline !important;
    border-bottom: 0.5pt solid #bbb !important;
    padding-bottom: 3pt !important;
    margin-bottom: 6pt !important;
  }

  .printable-cal-title {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 8.5pt !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    color: #111 !important;
    margin: 0 !important;
  }

  .printable-cal-meta {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 8pt !important;
    color: #888 !important;
  }

  /* Suppress the calendar's own print button inside the calendar header */
  .cal-print-icon-btn {
    display: none !important;
  }

  .cal-grid {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    gap: 3pt !important;
  }

  /* Each day: just a number + checkbox square + word count. No border unless milestone */
  .cal-day {
    border: 0.5pt solid #ddd !important;
    background: #fff !important;
    color: #111 !important;
    border-radius: 0 !important;
    padding: 4pt 3pt 3pt !important;
    min-height: 30pt !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 1pt !important;
  }

  .cal-day-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    gap: 2pt !important;
  }

  .cal-day-num {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 7.5pt !important;
    font-weight: 600 !important;
    color: #111 !important;
  }

  /* Checkbox square — draw it with CSS, not content */
  .cal-box {
    width: 8pt !important;
    height: 8pt !important;
    border: 0.75pt solid #bbb !important;
    display: inline-block !important;
    flex-shrink: 0 !important;
  }

  .cal-day.is-checked .cal-box {
    border-color: #111 !important;
    background: #111 !important;
    color: #fff !important;
    font-size: 5pt !important;
    line-height: 8pt !important;
    text-align: center !important;
  }

  /* Word count — tiny, muted */
  .cal-words,
  .cal-day-content small {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 6.5pt !important;
    color: #aaa !important;
    margin: 0 !important;
  }

  /* Milestone day: a thin top border accent, no fill */
  .cal-day.is-milestone {
    border-color: #111 !important;
    border-width: 1pt !important;
    background: #fff !important;
  }

  .cal-badge {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 5.5pt !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    color: #111 !important;
  }

  /* ── Document footer ────────────────────────────────────────────── */
  .print-doc-footer {
    display: block !important;
    margin-top: 16pt !important;
    padding-top: 6pt !important;
    border-top: 0.5pt solid #ccc !important;
    text-align: left !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 7pt !important;
    color: #aaa !important;
    letter-spacing: 0.02em !important;
  }

  /* ── Routine Page (Page 2) ──────────────────────────────────────── */
  .print-routine-page {
    display: block !important;
    page-break-before: always !important;
    padding-top: 4pt !important;
  }

  /* Section rule — thin line with label */
  .print-section-rule {
    display: flex !important;
    align-items: center !important;
    gap: 8pt !important;
    margin: 14pt 0 6pt !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 7pt !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    color: #1a7a40 !important;
  }

  .print-section-rule::before,
  .print-section-rule::after {
    content: '' !important;
    flex: 1 !important;
    border-top: 0.5pt solid #b2d9c0 !important;
  }

  .print-section-rule:first-child {
    margin-top: 0 !important;
  }

  /* Printable checkbox square */
  .print-checkbox {
    display: inline-block !important;
    width: 7pt !important;
    height: 7pt !important;
    border: 0.75pt solid #888 !important;
    margin-right: 4pt !important;
    flex-shrink: 0 !important;
    vertical-align: middle !important;
  }

  /* ── Daily Session Table ────────────────────────────────────────── */
  .print-routine-table {
    display: table !important;
    width: 100% !important;
    border-collapse: collapse !important;
  }

  .print-routine-row {
    display: table-row !important;
  }

  .print-routine-row + .print-routine-row .print-routine-time,
  .print-routine-row + .print-routine-row .print-routine-task,
  .print-routine-row + .print-routine-row .print-routine-res {
    padding-top: 4pt !important;
  }

  .print-routine-time {
    display: table-cell !important;
    width: 60pt !important;
    padding: 3pt 8pt 3pt 0 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 7.5pt !important;
    font-weight: 700 !important;
    color: #555 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    vertical-align: top !important;
    white-space: nowrap !important;
  }

  .print-routine-task {
    display: table-cell !important;
    padding: 3pt 12pt 3pt 0 !important;
    font-family: Georgia, serif !important;
    font-size: 9.5pt !important;
    color: #111 !important;
    vertical-align: top !important;
    line-height: 1.4 !important;
  }

  .print-routine-res {
    display: table-cell !important;
    width: 90pt !important;
    padding: 3pt 0 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 7.5pt !important;
    color: #888 !important;
    text-align: right !important;
    vertical-align: top !important;
    white-space: nowrap !important;
  }

  /* ── Weekly Accountability Strips ───────────────────────────────── */
  .print-week-header,
  .print-week-row {
    display: grid !important;
    grid-template-columns: 38pt 70pt 68pt 68pt 1fr !important;
    gap: 0 6pt !important;
    padding: 4pt 0 !important;
    border-bottom: 0.5pt solid #eee !important;
    align-items: center !important;
  }

  .print-week-header {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 7pt !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: #888 !important;
    border-bottom: 0.75pt solid #bbb !important;
    padding-bottom: 3pt !important;
  }

  .print-week-label {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 8pt !important;
    font-weight: 700 !important;
    color: #111 !important;
  }

  .print-week-range {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 8pt !important;
    color: #555 !important;
  }

  .print-week-check {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 8pt !important;
    color: #333 !important;
    display: flex !important;
    align-items: center !important;
    gap: 4pt !important;
  }

  .print-week-bonus {
    font-family: Georgia, serif !important;
    font-size: 8pt !important;
    color: #555 !important;
    font-style: italic !important;
  }

  /* ── Resource Index ─────────────────────────────────────────────── */
  .print-resource-table {
    display: table !important;
    width: 100% !important;
    border-collapse: collapse !important;
  }

  .print-resource-row {
    display: table-row !important;
  }

  .print-res-role {
    display: table-cell !important;
    width: 80pt !important;
    padding: 3pt 10pt 3pt 0 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 7.5pt !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    color: #888 !important;
    vertical-align: top !important;
    white-space: nowrap !important;
  }

  .print-res-val {
    display: table-cell !important;
    padding: 3pt 0 !important;
    font-family: Georgia, serif !important;
    font-size: 9.5pt !important;
    color: #111 !important;
    vertical-align: top !important;
    line-height: 1.4 !important;
  }

  /* Rest days are dimmed — don't need to shout in print */
  .cal-day.is-rest {
    opacity: 0.45 !important;
  }
}

