/* Shared V4 surfaces: light paper, quiet borders, blue / rose / green categories. */
:root {
  --v4-surface: #ffffffba;
  --v4-edge: #dce5d9;
  --v4-blue: #476d82;
  --v4-rose: #955f59;
  --v4-green: #52775d;
}
.projects-section, .analysis-section { margin-top: clamp(42px, 5vw, 66px); }
.section-heading h2, .panel-heading h3, .category-heading h4,
.share-copy h3, dialog h2 { font-family: Georgia, "Songti SC", serif; font-weight: 400; letter-spacing: -.025em; }
.eyebrow { font-weight: 650; letter-spacing: .22em; }
.project-panel, .chart-panel, .table-panel, .share-panel, .analysis-card {
  border: 1px solid var(--v4-edge);
  border-radius: 22px;
  background: var(--v4-surface);
  box-shadow: none;
}
.project-panel-title { font-weight: 500; padding: 22px 26px; }
.project-head { background: #f3f6f0; font-weight: 500; }
.project-row { border-color: #e7ede3; }
.project-row:focus-within { background: #f4f7f0; }
.project-name, .project-duration { font-weight: 500; }
.project-type { padding: 5px 10px; font-weight: 600; }
.project-row:has(.project-type.recover) .project-duration { color: var(--v4-blue); }
.project-row:has(.project-type.explore) .project-duration { color: var(--v4-rose); }
.project-row:has(.project-type.create) .project-duration { color: var(--v4-green); }
.project-note { border-radius: 12px; }
.project-note:hover, .project-note:focus { background: #ffffffad; }
.delete-project { width: 36px; border-radius: 10px; }
.day-selector, .add-project-button, .demo-toggle, .account button, .return-link {
  border: 1px solid var(--v4-edge);
  border-radius: 13px;
  background: var(--v4-surface);
  box-shadow: none;
  font-weight: 500;
}
.scope-tabs { background: #edf1e9; border: 1px solid var(--v4-edge); border-radius: 14px; flex-wrap: wrap; }
.scope-tabs button { font-weight: 500; }
.scope-tabs button.active { background: #ffffffdf; box-shadow: none; }
.analysis-card { padding: 24px; gap: 12px; }
.analysis-card.recover-summary { background: #eff5f7; border-color: #dbe8ed; }
.analysis-card.explore-summary { background: #fbf2ef; border-color: #efdfda; }
.analysis-card.create-summary { background: #f0f6ee; border-color: #dfebdc; }
.analysis-card.recover-summary strong, .analysis-card.recover-summary > span { color: var(--v4-blue); }
.analysis-card.explore-summary strong, .analysis-card.explore-summary > span { color: var(--v4-rose); }
.analysis-card.create-summary strong, .analysis-card.create-summary > span { color: var(--v4-green); }
.analysis-card > span { font: 400 1.25rem Georgia, serif; }
.analysis-card strong { font-weight: 400; line-height: 1.35; }
.analysis-card small { font-weight: 400; opacity: 1; color: #778779; line-height: 1.6; }
.panel-heading { flex-wrap: wrap; }
.panel-heading h3 { line-height: 1.35; }
.category-heading { flex-wrap: wrap; row-gap: 7px; }
.category-heading h4 { font-size: 1.45rem; }
.category-panel:has(#recover-chart) { background: #f3f8fa; border-color: #dbe8ed; }
.category-panel:has(#explore-chart) { background: #fcf5f3; border-color: #efdfda; }
.category-panel:has(#create-chart) { background: #f4f8f1; border-color: #dfebdc; }
.share-copy h3 { font-size: 1.6rem; }
.share-item strong, .share-item small { font-weight: 500; }
.pie-slice-label { font-size: .7rem; font-weight: 500; }
.daily-table .time-point, .day-link { font-weight: 500; }
.daily-table .selected-day-row { background: #edf3e9; }
.table-scroll thead th { background: #f7f9f4; font-weight: 500; }
.daily-table tbody tr:hover { background: #f1f5ed; }
.clock-bar { box-shadow: none; }
.analysis-guide p { border-radius: 0 12px 12px 0; }
dialog { border-color: var(--v4-edge); border-radius: 24px; background: #fbfcf8; box-shadow: 0 20px 70px #263e3420; }
dialog::backdrop { background: #263e3466; backdrop-filter: blur(5px); }
.goal-dialog { background: #fbfcf8; }
.password-label, .manual-fields label, .bedtime-time-label { font-weight: 500; }
.manual-fields input, .manual-fields select, .manual-fields textarea, .password-label input {
  border-color: var(--v4-edge); border-radius: 12px; background: #ffffffbf;
}
.submit-button { border: 1px solid #bdcfbd; border-radius: 13px; background: #e5eee2; color: #365b43; font-weight: 600; }
.submit-button:hover { background: #d9e7d6; }
.goal-hour-display { box-shadow: 0 0 0 6px #e7efe3; }
.close-dialog { background: #edf2e8; }
/* The reflection page uses the same calm Create palette. */
body:has(.meditation-shell) { background: linear-gradient(180deg, #f4f6ef, #fafbf7); }
.breath-stage { color: #365b43; background: #f0f6ee; border: 1px solid #dfebdc; border-radius: 25px; }
.breath-stage::after { opacity: .12; background: linear-gradient(135deg, #fff, #bdd0b6); }
.stage-top, .stage-eyebrow, .stage-copy > p:last-child, .time-display > span, .time-display small { color: #688771; }
.time-display { border-color: #d2e1d0; }
.time-display strong { font-weight: 400; }
.reflection-panel { border-color: var(--v4-edge); border-radius: 25px; background: var(--v4-surface); box-shadow: none; }
.details-form label, .details-form input { font-weight: 500; }
.finish-button { background: #e5eee2; color: #365b43; border: 1px solid #bdcfbd; box-shadow: none; font-weight: 600; }
.finish-button:not(:disabled):hover { background: #d9e7d6; box-shadow: none; transform: none; }
@media (max-width: 760px) {
  .analysis-cards { grid-template-columns: 1fr; gap: 10px; }
  .analysis-card { padding: 18px 20px; }
  .analysis-card strong { font-size: 1.5rem; }
  .chart-panel, .table-panel, .share-panel { border-radius: 18px; }
  .project-row { grid-template-columns: minmax(0, 1fr) minmax(100px, auto); }
  .scope-tabs { display: flex; }
  .scope-tabs button { flex: 1 1 auto; padding: 10px 12px; }
  .daily-table.category-table, .daily-table.sleep-table { min-width: 550px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
