/* ============================================================
   Hakili Intake App — Styles
   ============================================================ */

@import url('../shared/tokens.css');

/* Global helper to override display properties for hidden elements */
[hidden] {
  display: none !important;
}

/* ── Background Mesh ── */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, hsla(250, 65%, 30%, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 80%, hsla(38, 92%, 50%, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse 70% 70% at 50% 50%, hsla(222, 40%, 11%, 0.9) 0%, transparent 70%),
    var(--bg-primary);
}

/* ── Header ── */
.app-header {
  text-align: center;
  padding: var(--space-10) var(--space-6) var(--space-4);
}

.brand {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
  text-shadow: 0 0 40px hsla(38, 92%, 50%, 0.3), 0 2px 4px hsla(0, 0%, 0%, 0.4);
  line-height: 1;
}

.subtitle {
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 400;
  color: var(--text-secondary);
  margin-top: var(--space-2);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

/* ── Main Container ── */
.app-main {
  display: flex;
  justify-content: center;
  padding: 0 var(--space-4) var(--space-16);
}

.card {
  width: 100%;
  max-width: 640px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-8) var(--space-6);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

/* subtle top highlight */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, hsla(38, 92%, 50%, 0.4), transparent);
}

/* ══════════════════════════════════════
   PROGRESS BAR
   ══════════════════════════════════════ */
.progress-bar {
  margin-bottom: var(--space-8);
}

.progress-steps {
  list-style: none;
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: var(--space-3);
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  flex: 1;
  position: relative;
  z-index: 1;
}

.step-circle {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 2px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition-normal);
}

.step-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 500;
  transition: color var(--transition-normal);
  text-align: center;
  white-space: nowrap;
}

/* Active step */
.progress-step.active .step-circle {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--text-on-accent);
  box-shadow: 0 0 16px hsla(38, 92%, 50%, 0.35);
}

.progress-step.active .step-label {
  color: var(--accent);
}

/* Completed step */
.progress-step.completed .step-circle {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--text-on-accent);
}

.progress-step.completed .step-label {
  color: var(--text-secondary);
}

/* Progress track */
.progress-track {
  height: 3px;
  background: var(--border);
  border-radius: var(--radius-full);
  margin: 0 18px;
  position: relative;
  top: -28px;
  margin-bottom: -28px;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: var(--radius-full);
  width: 0%;
  transition: width var(--transition-slow);
  box-shadow: 0 0 8px hsla(38, 92%, 50%, 0.3);
}

/* ══════════════════════════════════════
   FORM STEPS & FIELDS
   ══════════════════════════════════════ */
form {
  position: relative;
}

.step {
  border: none;
  padding: 0;
  display: none;
  opacity: 0;
  transform: translateX(24px);
  transition: opacity var(--transition-normal), transform var(--transition-normal);
}

.step-active {
  display: block;
  opacity: 1;
  transform: translateX(0);
}

.step-exit {
  display: block;
  opacity: 0;
  transform: translateX(-24px);
}

.step-title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.step-description {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
}

.field-group {
  margin-bottom: var(--space-5);
}

.field-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

/* Select */
.select-wrapper {
  position: relative;
}

.select-wrapper::after {
  content: '▾';
  position: absolute;
  right: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  font-size: var(--text-sm);
}

select,
input[type="date"],
textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--text-base);
  padding: var(--space-3) var(--space-4);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  appearance: none;
  -webkit-appearance: none;
}

select {
  padding-right: var(--space-10);
  cursor: pointer;
}

input[type="date"] {
  cursor: pointer;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.6);
  cursor: pointer;
}

select:focus,
input[type="date"]:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

select:hover,
input[type="date"]:hover,
textarea:hover {
  border-color: var(--surface-hover);
}

textarea {
  resize: vertical;
  min-height: 80px;
  line-height: var(--leading-relaxed);
}

textarea::placeholder,
select option[disabled] {
  color: var(--text-muted);
}

/* Role display */
.role-display {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  color: var(--text-secondary);
  font-size: var(--text-base);
  font-style: italic;
}

.role-display.filled {
  color: var(--accent);
  font-style: normal;
  font-weight: 500;
}

/* Field errors */
.field-error {
  display: block;
  font-size: var(--text-xs);
  color: var(--error);
  margin-top: var(--space-1);
  min-height: 1.2em;
  transition: opacity var(--transition-fast);
}

.field-error:empty {
  opacity: 0;
}

.field-error:not(:empty) {
  opacity: 1;
}

/* Invalid field state */
.field-invalid select,
.field-invalid input,
.field-invalid textarea {
  border-color: var(--error) !important;
  box-shadow: 0 0 0 3px var(--error-muted) !important;
}

/* ══════════════════════════════════════
   RADIO CARDS (Update Type)
   ══════════════════════════════════════ */
.radio-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-2);
}

.radio-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-2);
  padding: var(--space-6) var(--space-4);
  border-radius: var(--radius-lg);
  border: 2px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition:
    border-color var(--transition-normal),
    background var(--transition-normal),
    transform var(--transition-fast),
    box-shadow var(--transition-normal);
}

.radio-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.radio-card.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  border-color: var(--border-subtle);
  background: var(--bg-secondary);
}


/* Morning card */
.radio-card--morning:hover {
  border-color: hsla(38, 92%, 50%, 0.4);
  background: var(--morning-bg);
}

.radio-card--morning.selected {
  border-color: var(--morning);
  background: var(--morning-bg);
  box-shadow: 0 0 24px hsla(38, 92%, 50%, 0.2);
}

/* Evening card */
.radio-card--evening:hover {
  border-color: hsla(250, 65%, 60%, 0.4);
  background: var(--evening-bg);
}

.radio-card--evening.selected {
  border-color: var(--evening);
  background: var(--evening-bg);
  box-shadow: 0 0 24px hsla(250, 65%, 60%, 0.2);
}

.card-emoji {
  font-size: 2.5rem;
  line-height: 1;
  filter: drop-shadow(0 2px 8px hsla(0, 0%, 0%, 0.3));
}

.card-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
}

.card-desc {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  line-height: var(--leading-normal);
}

/* Selected indicator */
.radio-card.selected::after {
  content: '✓';
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: var(--text-on-accent);
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radio-card--evening.selected::after {
  background: var(--evening);
  color: #fff;
}

/* ══════════════════════════════════════
   REVIEW PANEL
   ══════════════════════════════════════ */
.review-panel {
  margin-top: var(--space-6);
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.review-heading {
  font-family: var(--font-heading);
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--accent);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border-subtle);
}

.review-list {
  display: grid;
  gap: var(--space-3);
}

.review-list dt {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

.review-list dd {
  font-size: var(--text-sm);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--border-subtle);
  line-height: var(--leading-normal);
  white-space: pre-wrap;
  word-break: break-word;
}

.review-list dd:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.review-list .review-badge {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
}

.review-badge--morning {
  background: var(--morning-bg);
  color: var(--morning);
  border: 1px solid hsla(38, 92%, 50%, 0.3);
}

.review-badge--evening {
  background: var(--evening-bg);
  color: var(--evening);
  border: 1px solid hsla(250, 65%, 60%, 0.3);
}

/* ══════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════ */
.form-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-8);
  gap: var(--space-4);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 600;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition:
    background var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    opacity var(--transition-fast);
  outline: none;
}

.btn:focus-visible {
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: var(--text-on-accent);
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
  transform: scale(1.02);
  box-shadow: 0 4px 16px hsla(38, 92%, 50%, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-secondary:hover:not(:disabled) {
  border-color: var(--text-muted);
  color: var(--text-primary);
  transform: scale(1.02);
}

.btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

.btn-icon {
  font-size: 0.9em;
}

.btn-submit {
  margin-left: auto;
}

/* ══════════════════════════════════════
   CONFIRMATION OVERLAY
   ══════════════════════════════════════ */
.overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: hsla(222, 47%, 5%, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.overlay[hidden] {
  display: none;
}

.overlay.visible {
  opacity: 1;
}

.overlay-card {
  background: var(--glass-bg-solid);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-10) var(--space-8);
  text-align: center;
  max-width: 420px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  transform: scale(0.9);
  transition: transform var(--transition-spring);
}

.overlay.visible .overlay-card {
  transform: scale(1);
}

/* Animated checkmark */
.checkmark-ring {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-6);
}

.checkmark-svg {
  width: 80px;
  height: 80px;
}

.checkmark-circle {
  stroke: var(--success);
  stroke-width: 2;
  stroke-dasharray: 150;
  stroke-dashoffset: 150;
  animation: checkmark-circle-anim 0.6s ease-out 0.1s forwards;
}

.checkmark-check {
  stroke: var(--success);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: checkmark-check-anim 0.4s ease-out 0.5s forwards;
}

@keyframes checkmark-circle-anim {
  to { stroke-dashoffset: 0; }
}

@keyframes checkmark-check-anim {
  to { stroke-dashoffset: 0; }
}

.overlay-title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--success);
  margin-bottom: var(--space-2);
}

.overlay-message {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
  line-height: var(--leading-normal);
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
@media (max-width: 600px) {
  .app-header {
    padding: var(--space-8) var(--space-4) var(--space-3);
  }

  .brand {
    font-size: var(--text-3xl);
  }

  .card {
    padding: var(--space-5) var(--space-4) var(--space-4);
    border-radius: var(--radius-lg);
  }

  .radio-cards {
    grid-template-columns: 1fr;
  }

  .step-label {
    font-size: 0.65rem;
  }

  .step-circle {
    width: 30px;
    height: 30px;
    font-size: var(--text-xs);
  }

  .progress-track {
    margin: 0 15px;
    top: -23px;
    margin-bottom: -23px;
  }

  .form-nav {
    flex-wrap: wrap;
  }

  .btn {
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-sm);
  }
}

/* ══════════════════════════════════════
   REDUCED MOTION
   ══════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .step {
    transition: none;
  }

  .radio-card:hover {
    transform: none;
  }
}

/* ── Reminder Banner ── */
.reminder-banner {
  max-width: 680px;
  margin: 0 auto var(--space-2);
  padding: 0 var(--space-4);
}

.reminder-inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--glass-bg-solid);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--accent);
  transition: border-color var(--transition-normal);
}

.reminder-banner.submitted .reminder-inner {
  border-left-color: var(--success);
}

.reminder-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
}

.reminder-content {
  flex: 1;
  min-width: 0;
}

.reminder-text {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.reminder-sub {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin: var(--space-1) 0 0;
}

.reminder-banner.submitted .reminder-text {
  color: var(--success);
}

.reminder-settings-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.reminder-settings-btn:hover {
  background: var(--surface-hover);
  color: var(--accent);
  border-color: var(--accent-muted);
}

/* ── Reminder Panel (Overlay) ── */
.reminder-panel {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsla(222, 47%, 5%, 0.75);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity var(--transition-normal);
  padding: var(--space-4);
}

.reminder-panel:not([hidden]) {
  opacity: 1;
}

.reminder-panel-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  max-width: 520px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: translateY(12px);
  transition: transform var(--transition-normal);
}

.reminder-panel:not([hidden]) .reminder-panel-card {
  transform: translateY(0);
}

.reminder-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6) var(--space-6) var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
}

.reminder-panel-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
}

.reminder-close-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.reminder-close-btn:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
}

.reminder-section {
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--border-subtle);
}

.reminder-section:last-child {
  border-bottom: none;
  padding-bottom: var(--space-6);
}

.reminder-section-title {
  font-family: var(--font-heading);
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.reminder-section-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-4);
  line-height: var(--leading-relaxed);
}

/* Toggle Switch */
.reminder-toggle-row {
  margin-bottom: var(--space-4);
}

.toggle-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: var(--space-3) var(--space-4);
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.toggle-text {
  font-size: var(--text-base);
  color: var(--text-primary);
  font-weight: 500;
}

.toggle-switch {
  position: relative;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.toggle-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: var(--radius-full);
  transition: background var(--transition-fast);
  cursor: pointer;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: var(--text-primary);
  border-radius: 50%;
  transition: transform var(--transition-fast);
}

.toggle-input:checked + .toggle-slider {
  background: var(--accent);
}

.toggle-input:checked + .toggle-slider::before {
  transform: translateX(22px);
  background: var(--text-on-accent);
}

.toggle-input:focus-visible + .toggle-slider {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Time Inputs */
.reminder-times {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.time-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.time-row label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: 500;
}

.time-input {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  padding: var(--space-2) var(--space-3);
  color-scheme: dark;
}

.time-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-muted);
}

.reminder-note {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--space-3);
  padding: var(--space-2) var(--space-3);
  background: var(--accent-subtle);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
}

.reminder-note.active {
  border-left-color: var(--success);
  background: var(--success-muted);
}

/* Calendar Buttons */
.calendar-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.btn-calendar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
}

.btn-calendar:hover {
  background: var(--surface-hover);
  border-color: var(--accent-muted);
  transform: translateY(-1px);
}

.btn-calendar--both {
  border-color: var(--accent-muted);
  background: var(--accent-subtle);
}

.btn-calendar--both:hover {
  background: var(--accent-muted);
}

.cal-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.cal-label {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cal-label strong {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
}

.cal-label small {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.cal-download {
  font-size: var(--text-xs);
  color: var(--accent);
  font-weight: 600;
  padding: var(--space-1) var(--space-2);
  background: var(--accent-subtle);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

/* ── Morning Plan Reference Card ── */
.morning-reference-card {
  background: var(--surface-trans);
  border: 1px solid hsla(38, 92%, 50%, 0.3);
  border-left: 4px solid var(--morning, #f59e0b);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-6);
  font-family: var(--font-body);
  transition: all var(--transition-normal);
}

.reference-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-2);
}

.reference-badge {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-xs);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--morning, #f59e0b);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.reference-time {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.reference-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.reference-main-work {
  font-size: var(--text-sm);
  color: var(--text-primary);
  line-height: 1.5;
  white-space: pre-wrap;
  background: rgba(0, 0, 0, 0.25);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  margin: 0;
}

.reference-blockers-row {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}

.reference-label {
  font-weight: 600;
  color: var(--error, #ef4444);
}

.reference-blockers {
  color: var(--text-secondary);
}

/* ── Reduced Motion Override ── */
@media (prefers-reduced-motion: reduce) {
  .step {
    transition: none;
  }

  .btn:hover:not(:disabled) {
    transform: none;
  }

  .overlay-card {
    transition: none;
  }

  .checkmark-circle,
  .checkmark-check {
    animation: none;
    stroke-dashoffset: 0;
  }

  .progress-fill {
    transition: none;
  }

  .reminder-panel-card {
    transition: none;
  }

  .btn-calendar:hover {
    transform: none;
  }
}
