/* ==========================================================================
   MY YEAR 2026 — components.css
   Buttons, cards, forms, modals, toasts, badges, timeline, progress bars.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 0 var(--space-5);
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; }

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover { background: var(--color-primary-700); color: #fff; }

.btn-accent {
  background: var(--color-accent);
  color: #fff;
}
.btn-accent:hover { background: var(--color-accent-700); color: #fff; }

.btn-secondary {
  background: var(--color-surface);
  border-color: var(--color-border-strong);
  color: var(--color-text);
}
.btn-secondary:hover { border-color: var(--color-primary); color: var(--color-primary); }

.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
}
.btn-ghost:hover { background: var(--color-surface-sunken); color: var(--color-primary); }

.btn-danger {
  background: var(--color-danger-bg);
  color: var(--color-danger);
  border-color: transparent;
}
.btn-danger:hover { background: var(--color-danger); color: #fff; }

.btn-block { display: flex; width: 100%; }
.btn-sm { min-height: 36px; padding: 0 var(--space-4); font-size: var(--fs-xs); }
.btn-lg { min-height: 52px; padding: 0 var(--space-6); font-size: var(--fs-md); }
.btn-icon-only { padding: 0; width: 44px; }

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.card:hover { box-shadow: var(--shadow-sm); }
.card-pad-lg { padding: var(--space-6); }
.card-pad-sm { padding: var(--space-4); }

.card-link { display: block; text-decoration: none; color: inherit; }
.card-link:hover { border-color: var(--color-border-strong); box-shadow: var(--shadow-md); }

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}
.card-title { font-size: var(--fs-md); color: var(--color-primary); }
.card-subtitle { font-size: var(--fs-xs); color: var(--color-text-muted); margin-top: 2px; }

/* Stat card */
.stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}
.stat-card .stat-value {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  color: var(--color-primary);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-card .stat-label {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.stat-card .stat-delta {
  font-size: var(--fs-xs);
  margin-top: var(--space-1);
  color: var(--color-text-muted);
}
.stat-card.accent .stat-value { color: var(--color-accent); }
.stat-card.success .stat-value { color: var(--color-success); }
.stat-card.muted .stat-value { color: var(--color-text-muted); }

/* --------------------------------------------------------------------------
   Badges & pills
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 2px var(--space-2);
  border-radius: var(--radius-xs);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--color-surface-sunken);
  color: var(--color-text-muted);
}
.badge-accent { background: var(--color-accent-100); color: var(--color-accent-700); }
.badge-primary { background: rgba(38,54,74,0.08); color: var(--color-primary); }
.badge-success { background: var(--color-success-bg); color: var(--color-success); }
.badge-warning { background: var(--color-warning-bg); color: var(--color-warning); }
.badge-danger { background: var(--color-danger-bg); color: var(--color-danger); }
.badge-info { background: var(--color-info-bg); color: var(--color-info); }
.badge-dot::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* Category pill */
.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  background: var(--color-surface-sunken);
  color: var(--color-text);
  font-weight: 500;
}
.cat-pill .swatch {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cat-color, var(--color-secondary));
}

/* --------------------------------------------------------------------------
   Progress bar
   -------------------------------------------------------------------------- */
.progress {
  height: 8px;
  background: var(--color-surface-sunken);
  border-radius: var(--radius-pill);
  overflow: hidden;
  position: relative;
}
.progress > span {
  display: block;
  height: 100%;
  background: var(--color-secondary);
  border-radius: inherit;
  transition: width var(--dur-slow) var(--ease);
}
.progress.progress-accent > span { background: var(--color-accent); }
.progress.progress-success > span { background: var(--color-success); }
.progress.progress-primary > span { background: var(--color-primary); }
.progress-thin { height: 4px; }
.progress-thick { height: 12px; }

/* Ring progress (SVG-based) */
.ring-progress {
  display: inline-block;
  position: relative;
}
.ring-progress svg { transform: rotate(-90deg); }
.ring-progress .track { stroke: var(--color-surface-sunken); }
.ring-progress .fill { stroke: var(--color-accent); transition: stroke-dashoffset var(--dur-slow) var(--ease); }
.ring-progress .label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-family: var(--font-display);
  color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form-group { margin-bottom: var(--space-4); }
.form-row { display: grid; grid-template-columns: 1fr; gap: var(--space-4); }
@media (min-width: 640px) { .form-row.cols-2 { grid-template-columns: 1fr 1fr; } .form-row.cols-3 { grid-template-columns: repeat(3, 1fr); } }

label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
label .req { color: var(--color-danger); margin-left: 2px; }
label .hint { display: block; font-weight: 400; color: var(--color-text-muted); font-size: var(--fs-xs); margin-top: 2px; }

input[type="text"], input[type="search"], input[type="email"], input[type="url"], input[type="date"], input[type="number"], input[type="tel"], textarea, select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  font-size: var(--fs-base);
  font-family: inherit;
  color: var(--color-text);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  min-height: 44px;
}
textarea { min-height: 96px; resize: vertical; line-height: var(--lh-relaxed); }
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(38, 54, 74, 0.08);
}
input::placeholder, textarea::placeholder { color: var(--color-text-faint); }
input[type="date"] { color: var(--color-text); }

select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path fill='%237B8088' d='M2 4l4 4 4-4'/></svg>");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  padding-right: var(--space-8);
}

.input-error { border-color: var(--color-danger) !important; }
.field-error {
  display: block;
  color: var(--color-danger);
  font-size: var(--fs-xs);
  margin-top: var(--space-1);
}

/* Checkbox & radio */
.checkbox, .radio {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  cursor: pointer;
}
.checkbox input, .radio input {
  width: 18px; height: 18px;
  margin-top: 2px;
  accent-color: var(--color-primary);
  flex-shrink: 0;
}

/* Range slider */
input[type="range"] {
  width: 100%;
  accent-color: var(--color-accent);
}

/* Form actions */
.form-actions {
  display: flex;
  gap: var(--space-3);
  justify-content: flex-end;
  margin-top: var(--space-6);
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Modal dialog
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(38, 54, 74, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: var(--z-modal);
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.modal-overlay.open { display: flex; opacity: 1; }
@media (min-width: 640px) {
  .modal-overlay { align-items: center; padding: var(--space-4); }
}

.modal {
  background: var(--color-surface);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  max-height: 90dvh;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform var(--dur-slow) var(--ease-out);
  box-shadow: var(--shadow-lg);
}
.modal-overlay.open .modal { transform: translateY(0); }
@media (min-width: 640px) {
  .modal {
    border-radius: var(--radius-lg);
    transform: translateY(20px);
  }
  .modal-overlay.open .modal { transform: translateY(0); }
}

.modal.modal-lg { max-width: 800px; }
.modal.modal-sm { max-width: 420px; }

.modal-header {
  padding: var(--space-5) var(--space-5) var(--space-3);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
}
.modal-header h3 { font-size: var(--fs-lg); }
.modal-header p { font-size: var(--fs-sm); color: var(--color-text-muted); margin-top: 2px; }
.modal-body {
  padding: var(--space-5);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.modal-footer {
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--color-border);
  display: flex;
  gap: var(--space-3);
  justify-content: flex-end;
  flex-wrap: wrap;
  background: var(--color-surface-alt);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.modal-close {
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  flex-shrink: 0;
}
.modal-close:hover { background: var(--color-surface-sunken); color: var(--color-primary); }
.modal-close svg { width: 18px; height: 18px; }

/* Modal grab handle on mobile */
.modal-handle {
  display: block;
  width: 36px; height: 4px;
  background: var(--color-border-strong);
  border-radius: var(--radius-pill);
  margin: var(--space-2) auto 0;
}
@media (min-width: 640px) { .modal-handle { display: none; } }

/* --------------------------------------------------------------------------
   Toast notifications
   -------------------------------------------------------------------------- */
.toast-stack {
  position: fixed;
  z-index: var(--z-toast);
  bottom: calc(var(--nav-height) + var(--space-4));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column-reverse;
  gap: var(--space-2);
  width: calc(100% - var(--space-6));
  max-width: 420px;
  pointer-events: none;
}
@media (min-width: 640px) {
  .toast-stack { bottom: var(--space-6); left: var(--space-6); right: auto; transform: none; }
}
.toast {
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  pointer-events: auto;
  font-size: var(--fs-sm);
  min-height: 44px;
  opacity: 0;
  transform: translateY(8px);
  animation: toast-in var(--dur) var(--ease-out) forwards;
}
.toast.toast-success { background: var(--color-success); }
.toast.toast-error { background: var(--color-danger); }
.toast.toast-warning { background: var(--color-warning); }
.toast.toast-info { background: var(--color-primary); }
.toast.fade-out { animation: toast-out var(--dur) var(--ease) forwards; }
.toast svg { width: 18px; height: 18px; flex-shrink: 0; }
.toast .toast-msg { flex: 1; }
.toast .toast-action {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  font-size: var(--fs-xs);
}
@keyframes toast-in {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes toast-out {
  to { opacity: 0; transform: translateY(8px); }
}

/* --------------------------------------------------------------------------
   Empty state
   -------------------------------------------------------------------------- */
.empty-state {
  text-align: center;
  padding: var(--space-12) var(--space-4);
  max-width: 480px;
  margin: 0 auto;
}
.empty-state .empty-icon {
  width: 56px; height: 56px;
  margin: 0 auto var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-circle);
  background: var(--color-surface-sunken);
  color: var(--color-text-muted);
}
.empty-state .empty-icon svg { width: 28px; height: 28px; }
.empty-state h3 { font-size: var(--fs-md); margin-bottom: var(--space-2); }
.empty-state p { color: var(--color-text-muted); font-size: var(--fs-sm); margin-bottom: var(--space-5); }
.empty-state .actions { display: flex; gap: var(--space-3); justify-content: center; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   Timeline
   -------------------------------------------------------------------------- */
.timeline {
  position: relative;
  padding-left: var(--space-8);
}
.timeline::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 0;
  left: 11px;
  width: 2px;
  background: var(--color-border);
}
.timeline-item {
  position: relative;
  padding-bottom: var(--space-6);
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  top: 6px;
  left: -27px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 2px solid var(--color-accent);
  z-index: 1;
}
.timeline-item .date {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-1);
}
.timeline-item h4 {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  color: var(--color-primary);
  margin-bottom: var(--space-1);
}
.timeline-item p { font-size: var(--fs-sm); color: var(--color-text-muted); line-height: var(--lh-normal); }
.timeline-item .timeline-thumb {
  margin-top: var(--space-3);
  border-radius: var(--radius-sm);
  overflow: hidden;
  max-width: 320px;
}
.timeline-item .timeline-thumb img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

/* --------------------------------------------------------------------------
   Image picker / thumbnail grid
   -------------------------------------------------------------------------- */
.image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
}
@media (min-width: 640px) { .image-grid { grid-template-columns: repeat(4, 1fr); } }
.image-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-surface-sunken);
}
.image-thumb img { width: 100%; height: 100%; object-fit: cover; }
.image-thumb .remove-btn {
  position: absolute;
  top: 4px; right: 4px;
  width: 24px; height: 24px;
  background: rgba(38,54,74,0.7);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-thumb .remove-btn svg { width: 14px; height: 14px; }

.image-add-btn {
  aspect-ratio: 1;
  border: 1.5px dashed var(--color-border-strong);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  color: var(--color-text-muted);
  font-size: var(--fs-xs);
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.image-add-btn:hover { border-color: var(--color-accent); color: var(--color-accent); }
.image-add-btn svg { width: 22px; height: 22px; }

/* Photo card for milestones / memories */
.photo-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--dur) var(--ease);
}
.photo-card:hover { box-shadow: var(--shadow-md); }
.photo-card .photo {
  aspect-ratio: 4/3;
  background: var(--color-surface-sunken);
  overflow: hidden;
}
.photo-card .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.photo-card:hover .photo img { transform: scale(1.02); }
.photo-card .body { padding: var(--space-4); }
.photo-card .body h4 { font-family: var(--font-display); font-size: var(--fs-md); color: var(--color-primary); margin-bottom: var(--space-1); }
.photo-card .body .meta { font-size: var(--fs-xs); color: var(--color-text-muted); margin-bottom: var(--space-2); }
.photo-card .body p { font-size: var(--fs-sm); color: var(--color-text-muted); line-height: var(--lh-normal); }

/* --------------------------------------------------------------------------
   Month grid (for monthly review overview)
   -------------------------------------------------------------------------- */
.month-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
@media (min-width: 720px) { .month-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 960px) { .month-grid { grid-template-columns: repeat(6, 1fr); } }

.month-cell {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  text-align: left;
  min-height: 88px;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.month-cell:hover { border-color: var(--color-accent); box-shadow: var(--shadow-sm); }
.month-cell .month-name { font-family: var(--font-display); font-size: var(--fs-md); color: var(--color-primary); }
.month-cell .month-num { font-size: var(--fs-xs); color: var(--color-text-faint); text-transform: uppercase; letter-spacing: 0.08em; }
.month-cell .month-status { font-size: var(--fs-xs); margin-top: auto; }
.month-cell.future { opacity: 0.55; background: transparent; }
.month-cell.future .month-status { color: var(--color-text-faint); }
.month-cell.reviewed { border-left: 3px solid var(--color-accent); }
.month-cell.reviewed .month-status { color: var(--color-success); }
.month-cell.past-empty { border-left: 3px solid var(--color-border-strong); }
.month-cell.past-empty .month-status { color: var(--color-text-muted); }

/* --------------------------------------------------------------------------
   List item
   -------------------------------------------------------------------------- */
.list-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-border);
}
.list-item:last-child { border-bottom: none; }
.list-item .li-main { flex: 1; min-width: 0; }
.list-item .li-title { font-weight: 600; color: var(--color-primary); margin-bottom: 2px; }
.list-item .li-meta { font-size: var(--fs-xs); color: var(--color-text-muted); }
.list-item .li-actions { display: flex; gap: var(--space-1); flex-shrink: 0; }

/* --------------------------------------------------------------------------
   Tabs (simple)
   -------------------------------------------------------------------------- */
.tabs {
  display: flex;
  gap: var(--space-1);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-5);
  overflow-x: auto;
}
.tab {
  padding: var(--space-3) var(--space-4);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  margin-bottom: -1px;
}
.tab.active { color: var(--color-primary); border-color: var(--color-accent); }
.tab:hover { color: var(--color-primary); }

/* --------------------------------------------------------------------------
   Search/filter bar
   -------------------------------------------------------------------------- */
.filter-bar {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: var(--space-5);
}
.filter-bar .search-input {
  position: relative;
  flex: 1;
  min-width: 200px;
}
.filter-bar .search-input svg {
  position: absolute;
  left: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  color: var(--color-text-muted);
}
.filter-bar .search-input input { padding-left: var(--space-8); }

/* --------------------------------------------------------------------------
   Loading / spinner
   -------------------------------------------------------------------------- */
.spinner {
  width: 18px; height: 18px;
  border: 2px solid var(--color-border-strong);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}
.spinner-lg { width: 32px; height: 32px; border-width: 3px; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  padding: var(--space-4);
}

/* Skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--color-surface-sunken) 25%, var(--color-surface-alt) 50%, var(--color-surface-sunken) 75%);
  background-size: 200% 100%;
  animation: skeleton 1.4s ease infinite;
  border-radius: var(--radius-xs);
}
@keyframes skeleton { to { background-position: -200% 0; } }

/* --------------------------------------------------------------------------
   Editorial (year summary) typography
   -------------------------------------------------------------------------- */
.editorial-cover {
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-12) var(--space-6);
  position: relative;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.editorial-cover .cover-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}
.editorial-cover .cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(38,54,74,0.2) 0%, rgba(38,54,74,0.85) 100%);
}
.editorial-cover .cover-inner { position: relative; z-index: 1; }
.editorial-cover .eyebrow {
  color: var(--color-accent);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: var(--space-3);
}
.editorial-cover h1 {
  color: #fff;
  font-size: var(--fs-4xl);
  line-height: 0.95;
  margin-bottom: var(--space-4);
  font-family: var(--font-display);
}
.editorial-cover .subtitle {
  font-size: var(--fs-md);
  color: rgba(255,255,255,0.78);
  font-style: italic;
  font-family: var(--font-serif);
  max-width: 50ch;
}

.editorial-section {
  padding: var(--space-10) 0;
  border-bottom: 1px solid var(--color-border);
}
.editorial-section:last-child { border-bottom: none; }
.editorial-section .eyebrow {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.editorial-section h2 {
  font-size: var(--fs-2xl);
  margin-bottom: var(--space-4);
}
.editorial-section .narrative {
  font-size: var(--fs-md);
  line-height: var(--lh-relaxed);
  color: var(--color-text);
  max-width: 65ch;
}
.editorial-section .narrative p + p { margin-top: var(--space-4); }

.editorial-pull {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  line-height: var(--lh-snug);
  color: var(--color-primary);
  border-left: 3px solid var(--color-accent);
  padding-left: var(--space-5);
  margin: var(--space-6) 0;
  font-style: italic;
}

.editorial-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin: var(--space-6) 0;
}
@media (min-width: 720px) { .editorial-stats { grid-template-columns: repeat(4, 1fr); } }
.editorial-stat {
  text-align: center;
  padding: var(--space-4);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}
.editorial-stat .v {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  color: var(--color-primary);
  line-height: 1;
}
.editorial-stat .l {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: var(--space-1);
}

/* Reflection question card */
.reflection-q {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  margin-bottom: var(--space-4);
}
.reflection-q .q {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}
.reflection-q textarea {
  border: none;
  background: transparent;
  padding: 0;
  min-height: 80px;
  font-size: var(--fs-base);
  font-family: var(--font-serif);
  line-height: var(--lh-relaxed);
}
.reflection-q textarea:focus { box-shadow: none; }

/* Month review form sections */
.review-section { margin-bottom: var(--space-5); }
.review-section label { color: var(--color-primary); }

/* Inline value editor (for measurable goals) */
.value-editor {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.value-editor input { width: 120px; }
.value-editor .unit { font-size: var(--fs-sm); color: var(--color-text-muted); }

/* Bar chart (CSS-only) */
.bar-chart {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-4) 0;
}
.bar-row { display: grid; grid-template-columns: 110px 1fr 50px; gap: var(--space-3); align-items: center; }
.bar-row .bar-label { font-size: var(--fs-sm); color: var(--color-text); }
.bar-row .bar-track { height: 10px; background: var(--color-surface-sunken); border-radius: var(--radius-pill); overflow: hidden; }
.bar-row .bar-fill { height: 100%; background: var(--color-accent); border-radius: inherit; transition: width var(--dur-slow) var(--ease); }
.bar-row .bar-value { font-size: var(--fs-xs); color: var(--color-text-muted); text-align: right; font-variant-numeric: tabular-nums; }

/* Donut / category breakdown simple list */
.breakdown-list { display: flex; flex-direction: column; gap: var(--space-2); }
.breakdown-row { display: flex; align-items: center; gap: var(--space-3); font-size: var(--fs-sm); }
.breakdown-row .swatch { width: 10px; height: 10px; border-radius: 2px; flex-shrink: 0; }
.breakdown-row .name { flex: 1; color: var(--color-text); }
.breakdown-row .count { color: var(--color-text-muted); font-variant-numeric: tabular-nums; }
