
:root {
  color-scheme: light;
  --canvas: #f7f6f2;
  --paper: #fffefa;
  --white: #ffffff;
  --ink: #293b35;
  --muted: #7e857e;
  --line: #e9e9e0;
  --lavender: #e4dcf5;
  --lavender-dark: #716385;
  --lavender-light: #f1edf8;
  --green: #e4eddc;
  --green-dark: #5e7752;
  --coral: #f8e6dd;
  --coral-dark: #ab7860;
  --yellow: #f4edd6;
  --shadow: 0 8px 30px rgba(41, 59, 53, .025);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
svg { flex-shrink: 0; }
button { color: inherit; }
button, input, select, textarea { outline: none; }
:focus-visible { outline: 3px solid #a291be; outline-offset: 4px; }
::selection { background: var(--lavender); }
button { transition: background .17s ease, border-color .17s ease, box-shadow .17s ease, transform .17s ease; }
button:active:not(:disabled) { transform: translateY(1px); }

.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: 230px;
  padding: 33px 21px 23px;
  border-right: 1px solid var(--line);
  background: #f3f3ec;
  display: flex;
  flex-direction: column;
}
.brand { display: flex; align-items: center; gap: 11px; margin: 0 8px 40px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border-radius: 12px;
  color: #5e7752;
  background: #e5eadc;
}
.brand-mark svg { width: 23px; height: 23px; }
.brand-name { font-size: 17px; font-weight: 650; letter-spacing: -.6px; line-height: 1.2; }
.brand-sub { margin-top: 4px; color: #8b9187; font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; }
.nav-list { display: flex; flex-direction: column; gap: 7px; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 0;
  border-radius: 11px;
  padding: 12px 14px;
  text-align: left;
  color: #7a8379;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
}
.nav-item:hover { background: #eaece2; color: var(--ink); }
.nav-item.active, .nav-item[aria-current='page'] { background: #e3e9d8; color: #4c6344; }
.nav-icon { width: 19px; height: 19px; display: inline-flex; align-items: center; justify-content: center; }
.nav-icon svg { width: 18px; height: 18px; stroke-width: 1.7; }
.sidebar-bottom { margin-top: auto; padding: 24px 10px 0; }
.sidebar-quote { margin: 0 0 18px; color: #86907e; font-family: Georgia, serif; font-size: 15px; line-height: 1.7; font-style: italic; }
.storage-note { display: flex; gap: 6px; align-items: center; color: #979c92; font-size: 10px; }
.storage-note svg { width: 12px; height: 12px; }
.main { margin-left: 230px; min-height: 100vh; padding: 0 48px 38px; }
.topbar {
  max-width: 1180px;
  margin: 0 auto;
  padding: 25px 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}
.eyebrow { color: #8d938a; font-size: 10px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; }
.top-actions { display: flex; align-items: center; gap: 11px; }
.top-date { color: #92988e; font-size: 11px; }
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 33px;
  height: 33px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: #828e7c;
}
.icon-button:hover { background: #edeee5; }
.icon-button svg { width: 16px; height: 16px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 41px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 600;
  white-space: nowrap;
}
.button svg { width: 16px; height: 16px; }
.primary { background: var(--lavender); color: #645572; }
.primary:hover { background: #d9cdec; box-shadow: 0 4px 14px rgba(113,99,133,.1); }
.secondary { background: var(--white); color: #69785f; border-color: var(--line); }
.secondary:hover { background: #f0f2e9; border-color: #d7dccf; }
.ghost { background: transparent; color: #8c927f; }
.ghost:hover { background: #edeee7; }
.small { min-height: 32px; padding: 7px 12px; font-size: 11px; }
.page-content { max-width: 1180px; margin: 0 auto; padding-top: 31px; animation: fade-in .24s ease; }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.page-title { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-size: 36px; line-height: 1.22; letter-spacing: -.95px; margin: 0 0 9px; }
.page-description { color: var(--muted); margin: 0; font-size: 13px; line-height: 1.7; max-width: 620px; }
.heading-accent { color: #879c78; font-style: italic; }
.hero {
  min-height: 183px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 31px;
  padding: 26px 32px;
  background: #eeefe5;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}
.hero-copy { position: relative; z-index: 1; max-width: 500px; }
.hero-copy h2 { margin: 0 0 10px; font-family: Georgia, serif; font-size: 28px; font-weight: 400; line-height: 1.27; letter-spacing: -.6px; }
.hero-copy p { max-width: 400px; margin: 0 0 16px; color: #879079; font-size: 12px; line-height: 1.8; }
.hero-art { flex: 0 0 230px; width: 230px; max-height: 155px; align-self: center; object-fit: contain; }
.hero-art svg { width: 100%; height: auto; max-height: 155px; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 20px; background: rgba(255,255,255,.6); color: #8d9980; font-size: 9px; font-weight: 500; letter-spacing: .1px; }
.pill svg { width: 12px; height: 12px; }
.energy-section { margin-bottom: 29px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 15px; margin: 0 0 15px; }
.section-title { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -.25px; }
.section-subtitle { margin: 3px 0 0; color: #959b91; font-size: 11px; }
.section-hint { margin: 0; color: #a1a69b; font-size: 10px; }
.energy-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
.energy-option {
  position: relative;
  border: 1px solid transparent;
  border-radius: 15px;
  padding: 17px 19px;
  display: flex;
  align-items: center;
  gap: 13px;
  text-align: left;
  background: #e8eddf;
  color: #627953;
}
.energy-option:hover { box-shadow: 0 4px 15px rgba(41,59,53,.05); }
.energy-option[data-energy='low'], .energy-option.low { background: #e7eddf; color: #627953; }
.energy-option[data-energy='medium'], .energy-option.medium { background: #f6e7dc; color: #ad7b63; }
.energy-option[data-energy='high'], .energy-option.high { background: #ebe4f4; color: #8b77a5; }
.energy-option.active { border-color: currentColor; box-shadow: inset 0 0 0 1px currentColor; }
.energy-option.active::after { content: '✓'; position: absolute; top: 11px; right: 12px; font-size: 11px; font-weight: 700; }
.energy-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; flex-shrink: 0; background: rgba(255,255,255,.4); }
.energy-icon svg { width: 22px; height: 22px; stroke-width: 1.4; }
.energy-name { display: block; font-size: 13px; font-weight: 600; margin-bottom: 3px; }
.energy-desc { display: block; font-size: 10px; opacity: .8; line-height: 1.5; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0,1fr) 286px; align-items: start; gap: 21px; }
.tasks-panel, .aside-panel { min-width: 0; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 19px; box-shadow: var(--shadow); }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 21px 22px 16px; }
.panel-head .section-title { font-size: 14px; }
.panel-head p { font-size: 10px; color: #a1a697; margin: 4px 0 0; }
.panel-count { font-size: 10px; color: #a4a99e; background: #f4f5ee; padding: 3px 7px; border-radius: 6px; }
.task-list { padding: 0 12px 11px; display: flex; flex-direction: column; gap: 2px; }
.task-card { padding: 14px 11px; border-radius: 11px; border: 1px solid transparent; background: #fff; }
.task-card + .task-card { border-top-color: #f0f1ea; border-top-left-radius: 0; border-top-right-radius: 0; }
.task-card:hover { background: #fafbf7; border-radius: 11px; }
.task-top { display: flex; align-items: flex-start; gap: 11px; }
.task-check { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin-top: 2px; border: 1.4px solid #d8ded0; border-radius: 6px; background: #fff; padding: 0; }
.task-check:hover { border-color: #849975; background: #edf2e7; }
.task-check svg { width: 12px; height: 12px; }
.task-body { min-width: 0; flex: 1; }
.task-title { margin: 0; font-size: 12px; font-weight: 550; color: #53614a; line-height: 1.6; overflow-wrap: anywhere; }
.task-step { margin: 3px 0 7px; font-size: 10px; color: #9ca18f; line-height: 1.7; overflow-wrap: anywhere; }
.task-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: #a0a596; font-size: 9px; }
.tag { display: inline-flex; align-items: center; gap: 4px; background: #f0f2e8; color: #8b987b; padding: 2px 7px; border-radius: 5px; line-height: 1.65; font-size: 9px; white-space: nowrap; }
.tag.low { background: #eef3e6; color: #889b71; }
.tag.medium { background: #faf0e6; color: #ba9577; }
.tag.high { background: #f2edf8; color: #a58fb9; }
.tag svg { width: 9px; height: 9px; }
.task-actions { display: flex; align-items: center; gap: 4px; margin: -3px -4px 0 4px; }
.focus-button, .task-edit, .task-delete { width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; background: transparent; border: 0; border-radius: 7px; color: #c2c7b9; padding: 4px; }
.focus-button svg, .task-edit svg, .task-delete svg { width: 14px; height: 14px; }
.focus-button:hover, .task-edit:hover { background: #eef0e7; color: #82916f; }
.focus-button.selected { background: #f3ecdf; color: #bca376; }
.task-delete:hover { background: #fbefeb; color: #bc806e; }
.task-complete .task-title { color: #a7ae9e; text-decoration: line-through; }
.task-complete .task-check { background: #e6eddc; color: #829771; border-color: #dce6ce; }
.task-complete .task-step { opacity: .55; }
.empty-state { padding: 30px 20px 35px; text-align: center; color: #9ba28e; }
.empty-state svg { width: 32px; height: 32px; color: #b7c0aa; margin: 0 auto 12px; }
.empty-state h3 { margin: 0 0 7px; font-family: Georgia, serif; font-size: 20px; font-weight: 400; color: #718168; }
.empty-state p { font-size: 11px; margin: 0 auto; max-width: 250px; line-height: 1.8; }
.aside-panel { display: flex; flex-direction: column; gap: 17px; }
.focus-card { background: #f0ebf7; padding: 21px; border-radius: 18px; border: 1px solid #e9e1f1; }
.focus-label { display: flex; align-items: center; gap: 7px; font-size: 9px; letter-spacing: 1.2px; text-transform: uppercase; color: #9b8cae; margin-bottom: 14px; }
.focus-label svg { width: 13px; height: 13px; }
.focus-card-title { margin: 0 0 10px; color: #71627e; font-family: Georgia, serif; font-size: 21px; font-weight: 400; line-height: 1.3; overflow-wrap: anywhere; }
.focus-card > p { font-size: 11px; color: #a395af; margin: 0; line-height: 1.8; }
.next-step { margin-top: 15px; padding: 12px 13px; background: rgba(255,255,255,.5); border-radius: 10px; color: #9986ac; font-size: 10px; line-height: 1.8; overflow-wrap: anywhere; }
.next-step strong { display: block; color: #a392b4; font-size: 8px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 3px; }
.focus-card .button { margin-top: 15px; width: 100%; background: rgba(255,255,255,.65); color: #8d7ba0; font-size: 10px; min-height: 35px; }
.focus-card .button:hover { background: #fff; }
.gentle-note { padding: 20px 22px; background: #f0f2e8; border-radius: 16px; }
.gentle-note svg { width: 19px; height: 19px; color: #acb19a; margin-bottom: 10px; }
.gentle-note p { margin: 0; color: #a0a58f; font-family: Georgia, serif; font-size: 15px; line-height: 1.6; font-style: italic; }
.mini-link { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; color: #949e86; padding: 0; border: 0; background: transparent; }
.mini-link:hover { color: #657b52; }
.mini-link svg { width: 12px; height: 12px; }
.gentle-note .mini-link { margin-top: 13px; }
.quick-capture { padding: 18px 22px; margin-top: 20px; }
.quick-capture h3 { margin: 0 0 3px; font-size: 13px; font-weight: 550; }
.quick-capture p { margin: 0 0 12px; font-size: 10px; color: #9aa18f; }
.capture-form { display: flex; gap: 9px; }
.capture-form input { width: 100%; min-width: 0; border: 1px solid #e8ecdf; background: #fafbf7; border-radius: 9px; padding: 10px 12px; color: #6b785f; font-size: 11px; }
.capture-form input::placeholder { color: #b1b7a5; }
.capture-form input:focus { border-color: #b9c6a7; background: #fff; }
.capture-submit { border: 0; border-radius: 9px; width: 37px; flex-shrink: 0; display: grid; place-items: center; background: #e6ebdc; color: #8b9e76; }
.capture-submit:hover { background: #d8e3cc; }
.capture-submit svg { width: 16px; height: 16px; }
.section-footer { display: flex; justify-content: space-between; align-items: center; padding: 15px 0 0; gap: 15px; color: #a2a89a; font-size: 9px; }
.section-footer p { margin: 0; }
.footer-dot { color: #b5b9af; }

/* Supporting pages */
.filter-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin: 20px 0; }
.filter-tab { border: 1px solid var(--line); background: #fffefa; border-radius: 9px; padding: 8px 13px; color: #8c9682; font-size: 11px; }
.filter-tab:hover { background: #f0f2e7; }
.filter-tab.active { background: #e4e9da; border-color: #dce3cf; color: #647b53; }
.search-input { width: 100%; max-width: 290px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #fff; font-size: 12px; }
.search-input::placeholder { color: #a9afa0; }
.search-input:focus { border-color: #b5c2a2; }
.prompt-toolbar { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 10px; }
.prompt-toolbar .filter-tabs { margin-top: 0; }
.prompt-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 17px; }
.prompt-card { padding: 23px; background: #fff; border: 1px solid var(--line); border-radius: 17px; display: flex; flex-direction: column; min-width: 0; }
.prompt-category { margin: 0 0 12px; color: #a493b7; font-size: 8px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.prompt-title { margin: 0 0 10px; font-family: Georgia, serif; font-weight: 400; font-size: 20px; line-height: 1.35; color: #627456; }
.prompt-content { flex: 1; }
.prompt-text { margin: 0 0 20px; font-size: 11px; color: #919887; line-height: 1.85; }
.copy-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; align-self: flex-start; padding: 7px 11px; background: #f2edf8; color: #9785aa; border: 0; border-radius: 8px; font-size: 10px; }
.copy-button:hover { background: #e8def3; color: #79678e; }
.copy-button svg { width: 12px; height: 12px; }
.project-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.project-card { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.project-icon { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 12px; background: #eef1e5; color: #94a27e; margin-bottom: 18px; }
.project-icon svg { width: 20px; height: 20px; }
.project-title { margin: 0 0 9px; font-size: 21px; line-height: 1.3; font-family: Georgia, serif; font-weight: 400; color: #627357; }
.project-desc { margin: 0; font-size: 11px; line-height: 1.8; color: #9aa08e; }
.project-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px solid #f0f1e9; font-size: 9px; color: #a6ac9a; }
.status-tag { display: inline-flex; padding: 3px 8px; border-radius: 6px; background: #edf2e6; color: #94a381; font-size: 9px; line-height: 1.5; }
.status-tag.paused, .status-tag.planned { background: #f4eddf; color: #b2a17c; }
.status-tag.done { background: #efebf5; color: #aa96bc; }
.project-task-list { padding: 14px 0 0; margin: 0; list-style: none; }
.project-task-list li { padding: 5px 0; color: #8f9a81; font-size: 10px; }
.project-task-list li::before { content: '○'; margin-right: 7px; color: #b9c1ad; }
.reset-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.reset-card { padding: 27px; border: 1px solid var(--line); border-radius: 19px; background: #fff; }
.reset-card h2 { font-family: Georgia, serif; font-size: 25px; font-weight: 400; margin: 0 0 8px; letter-spacing: -.5px; color: #68795c; }
.reset-card > p { color: #9ba28e; font-size: 12px; margin: 0 0 20px; }
.reset-list { display: flex; flex-direction: column; gap: 13px; margin: 0; padding: 0; list-style: none; }
.reset-check { display: flex; align-items: flex-start; gap: 10px; padding: 12px 13px; border: 1px solid #eef0e5; border-radius: 11px; background: #fcfcf9; font-size: 12px; color: #7f8c71; }
.reset-check input { margin: 4px 0 0; accent-color: #a9b990; width: 14px; height: 14px; }
.reset-check:has(input:checked) { background: #eef3e6; border-color: #e1e9d4; }
.recharge-item { padding: 15px 0; border-bottom: 1px solid #eff1e6; }
.recharge-item:last-child { border-bottom: 0; padding-bottom: 0; }
.recharge-item p { font-size: 12px; margin: 7px 0 0; color: #98a08b; line-height: 1.8; }
.guide-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.guide-card { display: flex; gap: 16px; padding: 23px; border: 1px solid var(--line); border-radius: 17px; background: #fff; }
.step-number { display: grid; place-items: center; flex-shrink: 0; width: 32px; height: 32px; border-radius: 10px; background: #e9edde; color: #93a080; font-family: Georgia,serif; font-size: 18px; }
.guide-card h3 { margin: 0 0 7px; font-size: 14px; font-weight: 550; color: #687a5b; }
.guide-card p { margin: 0; font-size: 11px; color: #9aa18d; line-height: 1.85; }
.about-note { padding: 25px 29px; margin-top: 25px; background: #f0ecf6; border-radius: 17px; color: #a08caf; font-size: 12px; line-height: 1.8; }
.about-note h3 { margin: 0 0 8px; color: #9580a7; font-family: Georgia,serif; font-size: 22px; font-weight: 400; }
.about-note p { margin: 0; }
.notice { margin: 18px 0; background: #eef1e5; border: 1px solid #e4e9d9; border-radius: 12px; padding: 14px 17px; color: #8f9d7d; font-size: 11px; line-height: 1.8; }
.textarea-capture { display: block; width: 100%; min-height: 145px; resize: vertical; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 15px; color: #667a57; font-size: 13px; line-height: 1.85; }
.textarea-capture::placeholder { color: #adb6a0; }
.textarea-capture:focus { border-color: #b7c4a5; }
.capture-actions { margin-top: 12px; display: flex; align-items: center; gap: 10px; }
.capture-actions p { margin: 0; color: #a1a994; font-size: 10px; }
.deadline-list { padding: 0 15px 15px; }
.deadline-list .task-card { background: transparent; }

/* Modal and feedback */
.modal-backdrop { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(41,59,53,.22); backdrop-filter: blur(5px); }
.modal-backdrop[hidden], .modal[hidden], [hidden] { display: none !important; }
.modal { width: 100%; max-width: 560px; max-height: calc(100vh - 48px); overflow-y: auto; background: #fffefa; border: 1px solid rgba(255,255,255,.8); border-radius: 23px; box-shadow: 0 30px 90px rgba(41,59,53,.15); padding: 29px; animation: modal-in .2s ease; }
.modal-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 24px; }
.modal-header h2 { margin: 0 0 6px; font-family: Georgia, serif; font-weight: 400; font-size: 29px; letter-spacing: -.7px; }
.modal-header p { margin: 0; color: #99a08d; font-size: 11px; }
.modal-close { display: grid; place-items: center; flex-shrink: 0; width: 30px; height: 30px; border: 0; border-radius: 9px; background: #f1f3e9; color: #9ba68a; padding: 5px; }
.modal-close:hover { background: #e4e9da; }
.modal-close svg { width: 16px; height: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px; }
.form-field { min-width: 0; }
.form-field label { display: block; font-size: 10px; font-weight: 550; color: #7c8a6e; margin-bottom: 7px; }
.form-field input, .form-field select, .form-field textarea { width: 100%; border: 1px solid #e3e7da; border-radius: 10px; background: #fff; padding: 11px 12px; font-size: 12px; color: #6e7d60; }
.form-field input::placeholder, .form-field textarea::placeholder { color: #b1baa3; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: #b6c49f; box-shadow: 0 0 0 3px rgba(182,196,159,.12); }
.form-field textarea { min-height: 80px; resize: vertical; }
.form-field .field-hint { margin: 6px 0 0; color: #a2ab96; font-size: 9px; }
.span-two { grid-column: 1 / -1; }
.modal-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.toast { position: fixed; z-index: 100; left: calc(50% + 115px); bottom: 27px; transform: translateX(-50%); max-width: calc(100vw - 40px); padding: 12px 21px; border-radius: 12px; color: #fff; background: #52654a; box-shadow: 0 7px 25px rgba(41,59,53,.15); font-size: 12px; text-align: center; animation: fade-in .2s ease; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.mobile-menu-button { display: none; }

@keyframes fade-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (min-width: 1600px) {
  .main { padding-right: 65px; padding-left: 65px; }
  .page-content { padding-top: 38px; }
  .hero { min-height: 205px; }
}
@media (max-width: 1200px) {
  .main { padding-left: 32px; padding-right: 32px; }
  .dashboard-grid { grid-template-columns: minmax(0,1fr) 255px; gap: 17px; }
  .hero-art { flex-basis: 195px; width: 195px; }
  .hero { padding: 25px; }
  .energy-option { padding: 16px 14px; gap: 9px; }
  .energy-desc { font-size: 9px; }
  .energy-icon { width: 31px; height: 31px; }
  .prompt-grid, .project-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 1000px) {
  .sidebar { width: 205px; padding-left: 15px; padding-right: 15px; }
  .main { margin-left: 205px; padding-left: 25px; padding-right: 25px; }
  .dashboard-grid { grid-template-columns: minmax(0,1fr); }
  .aside-panel { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .aside-panel > .panel { grid-column: 1 / -1; }
  .page-title { font-size: 33px; }
  .hero-art { flex-basis: 150px; width: 150px; }
  .hero-copy h2 { font-size: 25px; }
  .energy-option { flex-direction: column; align-items: flex-start; padding: 15px; gap: 10px; }
  .energy-desc { font-size: 10px; }
  .toast { left: calc(50% + 102px); }
}
@media (max-width: 800px) {
  .sidebar { width: 230px; transform: translateX(-100%); transition: transform .22s ease; box-shadow: 12px 0 40px rgba(41,59,53,.08); }
  .menu-open .sidebar { transform: translateX(0); }
  .menu-open::after { content: ''; position: fixed; z-index: 20; inset: 0; background: rgba(41,59,53,.2); }
  .main { margin-left: 0; padding-left: 24px; padding-right: 24px; }
  .mobile-menu-button { display: inline-flex; }
  .topbar { padding: 18px 0 16px; }
  .topbar > .eyebrow { display: none; }
  .topbar .top-actions { margin-left: auto; }
  .page-content { padding-top: 25px; }
  .page-title { font-size: 34px; }
  .dashboard-grid { grid-template-columns: minmax(0,1fr); }
  .hero { min-height: 185px; }
  .hero-art { flex-basis: 195px; width: 195px; }
  .energy-option { flex-direction: row; align-items: center; }
  .toast { left: 50%; }
  .reset-grid, .guide-grid { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 600px) {
  body { font-size: 13px; }
  .main { padding: 0 17px 25px; }
  .top-date { display: none; }
  .topbar { gap: 10px; }
  .top-actions { gap: 7px; }
  .top-actions .button { padding: 8px 11px; min-height: 35px; font-size: 10px; }
  .top-actions .icon-button { width: 31px; height: 31px; }
  .page-heading { gap: 12px; margin-bottom: 21px; }
  .page-heading > .button { padding: 9px 11px; font-size: 10px; }
  .page-title { font-size: 31px; letter-spacing: -.8px; }
  .page-description { font-size: 11px; }
  .hero { padding: 25px 23px; min-height: 195px; margin-bottom: 25px; }
  .hero-copy h2 { font-size: 25px; max-width: 240px; }
  .hero-copy p { font-size: 11px; max-width: 235px; }
  .hero-art { position: absolute; right: -12px; bottom: 3px; width: 140px; opacity: .45; }
  .hero-copy { max-width: 85%; }
  .hero .pill { font-size: 8px; }
  .energy-grid { grid-template-columns: minmax(0,1fr); gap: 9px; }
  .energy-option { padding: 13px 16px; gap: 13px; }
  .energy-icon { width: 35px; height: 35px; }
  .energy-name { font-size: 12px; margin-bottom: 2px; }
  .energy-desc { font-size: 10px; }
  .energy-option.active::after { top: 24px; right: 17px; }
  .section-hint { display: none; }
  .section-title { font-size: 14px; }
  .section-subtitle { font-size: 10px; }
  .energy-section { margin-bottom: 25px; }
  .panel-head { padding: 19px 17px 13px; }
  .task-list { padding-left: 8px; padding-right: 8px; }
  .task-card { padding: 13px 9px; }
  .task-actions { gap: 0; }
  .task-edit { width: 23px; }
  .task-title { font-size: 11px; }
  .task-step { font-size: 9px; }
  .task-meta { font-size: 8px; }
  .tag { font-size: 8px; }
  .aside-panel { display: flex; }
  .focus-card { padding: 21px; }
  .gentle-note { padding: 21px; }
  .quick-capture { padding: 19px 17px; }
  .section-footer { flex-direction: column; align-items: flex-start; gap: 7px; padding-top: 15px; }
  .prompt-grid, .project-grid { grid-template-columns: minmax(0,1fr); }
  .prompt-card, .project-card { padding: 23px; }
  .prompt-toolbar { flex-direction: column-reverse; margin: 20px 0; }
  .prompt-toolbar .filter-tabs { margin-bottom: 0; }
  .search-input { max-width: none; }
  .filter-tabs { gap: 6px; }
  .filter-tab { font-size: 10px; padding: 7px 10px; }
  .reset-card { padding: 22px; }
  .guide-card { padding: 21px; gap: 13px; }
  .about-note { padding: 23px; }
  .modal-backdrop { padding: 14px; align-items: center; }
  .modal { padding: 24px 20px; max-height: calc(100dvh - 28px); border-radius: 18px; }
  .modal-header h2 { font-size: 26px; }
  .form-grid { gap: 15px; }
  .form-field input, .form-field select, .form-field textarea { font-size: 13px; }
  .modal-actions .button { flex: 1; }
  .toast { font-size: 11px; width: max-content; max-width: calc(100vw - 34px); bottom: 18px; }
}
@media (max-width: 360px) {
  .page-title { font-size: 28px; }
  .top-actions .icon-button { display: none; }
  .task-edit { display: none; }
  .form-grid { grid-template-columns: minmax(0,1fr); }
  .span-two { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Final component layout and readable, calm contrast. */
body { font-size: 14px; }
.brand { margin-left: 0; margin-right: 0; }
.brand-mark { flex-shrink: 0; }
.brand-name, .brand-sub { display: block; }
.brand-sub { font-size: 10px; letter-spacing: 0; text-transform: none; color: #657362; line-height: 1.5; }
.nav-label { margin: 0 12px 16px; color: #66725e; font-size: 9px; }
.nav-item { font-size: 13px; color: #616e60; }
.nav-count { margin-left: auto; background: #e4e8dc; padding: 0 6px; border-radius: 5px; font-size: 10px; }
.sidebar-bottom { padding-left: 2px; padding-right: 2px; }
.sidebar-bottom .gentle-note { padding: 16px; margin-bottom: 20px; background: #e8ecdf; }
.sidebar-bottom .gentle-note > span { display: block; margin-bottom: 6px; color: #6f8162; font-size: 22px; }
.sidebar-bottom .gentle-note p { color: #6a7a5f; font-size: 15px; }
.storage-note { display: block; font-size: 11px; color: #687363; margin-top: 14px; }
.topbar-left { display: flex; align-items: center; gap: 12px; }
.eyebrow { color: #687361; }
.page-heading { display: block; }
.page-heading > .eyebrow { display: block; margin-bottom: 12px; }
.page-description { color: #687464; font-size: 14px; }
.hero { min-height: 242px; padding: 30px 36px; background: #edf0e6; }
.hero-copy h1 { margin: 15px 0 12px; font-family: Georgia,serif; font-size: clamp(32px,3.4vw,47px); font-weight: 400; line-height: 1.14; letter-spacing: -1.5px; color: #344836; }
.hero-copy p { color: #65765c; font-size: 13px; line-height: 1.7; margin: 0; }
.hero-art { flex-basis: 300px; width: 300px; max-height: 200px; }
.hero-art svg { max-height: 200px; }
.pill { color: #63735b; font-size: 11px; }
.section-title { font-size: 16px; }
.section-subtitle { font-size: 12px; color: #6e7869; }
.energy-option { min-height: 99px; padding: 18px 17px; }
.energy-option.active::after { content: none; }
.energy-selected { align-self: flex-start; margin-left: auto; }
.energy-selected svg { width: 15px; height: 15px; }
.energy-name { font-size: 14px; }
.energy-desc { font-size: 11px; opacity: 1; }
.energy-detail { display: none; }
.energy-option.low { color: #526848; }
.energy-option.medium { color: #855744; }
.energy-option.high { color: #746089; }
.panel-head .section-title { font-size: 16px; }
.panel-head p { font-size: 12px; color: #6d7867; }
.task-title { padding: 0; border: 0; background: none; text-align: left; font-size: 13px; font-weight: 550; color: #3f5540; }
.task-title:hover { text-decoration: underline; text-underline-offset: 3px; }
.task-step { font-size: 12px; color: #71806a; margin-bottom: 10px; }
.task-meta { font-size: 10px; color: #62725b; }
.task-project { display: inline-flex; align-items: center; gap: 4px; }
.task-project svg { width: 11px; height: 11px; }
.task-check { width: 21px; height: 21px; margin-top: 1px; }
.task-actions .focus-button, .task-actions .task-edit { width: 30px; height: 30px; color: #718268; }
.focus-button.selected { background: #ece5f4; color: #766088; }
.tag { font-size: 10px; color: #66735a; }
.tag.low { color: #526d42; }
.tag.medium { color: #8b603e; }
.tag.high { color: #795c94; }
.search-wrap { display: flex; align-items: center; gap: 7px; }
.search-wrap > svg { width: 14px; height: 14px; color: #8b967c; }
.search-input { font-size: 12px; }
.search-input::placeholder { color: #75826d; }
.tasks-panel > .search-wrap { padding: 0 22px 10px; }
.tasks-panel > .search-wrap .search-input { border: 0; background: #f6f8f1; max-width: none; }
.tasks-panel > .section-footer { border-top: 1px solid var(--line); padding: 15px 22px; font-size: 10px; color: #6d7b65; }
.mini-link { font-size: 12px; color: #657a55; line-height: 1.6; }
.focus-label { font-size: 10px; color: #756487; }
.focus-card-title { font-size: 24px; color: #655176; }
.focus-card > p { font-size: 13px; color: #73637e; }
.next-step { color: #756385; font-size: 13px; }
.next-step p { margin: 4px 0 0; }
.focus-card .button { font-size: 12px; color: #665074; min-height: 41px; }
.focus-card > .mini-link { display: flex; justify-content: center; margin-top: 12px; color: #77628b; font-size: 11px; }
.gentle-note h3 { margin: 0 0 6px; font-size: 14px; font-weight: 500; color: #607353; }
.gentle-note p { color: #6c7b60; }
.completed-link { padding: 0 12px; }
.deadline-section { margin: 22px 0; border: 1px solid var(--line); border-radius: 12px; background: #fcfcf8; }
.deadline-section > summary { cursor: pointer; padding: 14px 18px; font-size: 12px; }
.deadline-section > summary span { margin-left: 10px; font-size: 11px; color: #718067; }
.deadline-list { padding: 0 18px 14px; }
.deadline-list p { color: #718067; font-size: 12px; margin: 0; }
.deadline-item { display: flex; justify-content: space-between; gap: 10px; width: 100%; padding: 10px 0; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; font-size: 12px; }
.deadline-item time { color: #7d6e57; white-space: nowrap; }
.quick-capture { display: flex; align-items: center; gap: 25px; border: 1px solid var(--line); background: #fff; border-radius: 16px; margin-top: 22px; }
.quick-capture > div { position: relative; padding-left: 39px; min-width: 240px; }
.capture-icon { position: absolute; left: 0; top: 6px; color: #809170; }
.quick-capture .section-title { font-size: 14px; }
.quick-capture p { color: #718067; font-size: 11px; margin: 4px 0 0; }
.capture-form { flex: 1; }
.capture-form input { font-size: 12px; }
.capture-form input::placeholder { color: #75836a; }
.capture-panel { padding: 22px; }
.list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.filter-tab { color: #67795b; font-size: 12px; }
.filter-tab.active { color: #465e39; }
.list-count { color: #6b7c60; font-size: 11px; white-space: nowrap; }
.notice { color: #627253; font-size: 12px; display: flex; align-items: flex-start; gap: 8px; }
.notice svg { width: 17px; height: 17px; margin-top: 2px; }
.prompt-category { display: flex; align-items: center; gap: 7px; color: #7d668f; font-size: 10px; }
.prompt-category svg { width: 15px; height: 15px; }
.prompt-title { color: #53684a; }
.prompt-description { font-size: 12px; color: #738068; margin: 0 0 17px; }
.prompt-content { margin-bottom: 18px; }
.prompt-content summary { display: flex; justify-content: space-between; cursor: pointer; list-style: none; color: #6e8060; font-size: 12px; }
.prompt-content summary::-webkit-details-marker { display: none; }
.prompt-text { font-size: 12px; color: #64745b; margin: 13px 0 0; }
.copy-button { font-size: 12px; color: #755e89; min-height: 35px; }
.project-grid { margin-top: 20px; }
.project-card { text-align: left; position: relative; }
.project-card:hover { border-color: #bac8aa; }
.project-card > .status-tag { position: absolute; top: 28px; right: 24px; color: #66795a; }
.project-desc { font-size: 13px; color: #718067; }
.project-card .eyebrow { font-size: 9px; }
.project-next { padding-top: 18px; }
.project-next p { color: #687d59; font-size: 12px; margin: 6px 0 0; }
.project-footer { color: #6d7f5d; font-size: 11px; }
.project-icon.shade-1 { background: #eee8f5; color: #8e77a5; }
.project-icon.shade-2 { background: #f8eadb; color: #a78963; }
.project-task-link { display: flex; justify-content: space-between; gap: 12px; text-align: left; width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); background: none; font-size: 12px; }
.project-task-list > .mini-link { margin-top: 12px; }
.reset-card .panel-head { padding: 0 0 17px; }
.reset-card .panel-head .section-title { margin-top: 7px; }
.reset-check { font-size: 13px; color: #627555; }
.reset-card > .section-subtitle { margin: 16px 0 12px; color: #68775c; font-size: 12px; }
.recharge-card { background: #eef1e6; }
.recharge-card > .section-title { margin-top: 8px; }
.recharge-group { padding: 14px 0; border-bottom: 1px solid #dde5d4; }
.recharge-group p { font-size: 13px; color: #6b7b5d; margin: 8px 0 0; }
.reflection-panel { margin-top: 22px; }
.reflection-panel .textarea-capture { width: calc(100% - 44px); margin: 0 22px; min-height: 180px; }
.reflection-save { color: #6b7b5d; font-size: 11px; margin: 12px 22px 20px; }
.guide-card { display: block; position: relative; padding: 25px 25px 25px 76px; }
.guide-card .step-number { position: absolute; left: 25px; top: 25px; }
.guide-card h2 { font-size: 16px; font-weight: 500; margin: 0 0 8px; }
.guide-card p { color: #6c7a62; font-size: 13px; }
.guide-energy, .status-guide { margin-top: 22px; }
.guide-energy-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; padding: 4px 24px 25px; }
.guide-energy-grid p { font-size: 13px; color: #617354; }
.status-guide { padding: 24px; }
.status-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px 24px; margin-top: 20px; }
.status-grid strong { font-size: 13px; font-weight: 500; }
.status-grid p { font-size: 12px; color: #6c7c61; margin: 4px 0 0; }
.guide-closing { text-align: center; padding: 35px 0 10px; }
.guide-closing p { font-size: 27px; color: #687b5a; font-family: Georgia,serif; line-height: 1.5; }
.about-note { background: none; text-align: center; color: #6c7b61; padding: 20px 0 0; font-size: 11px; max-width: 1180px; margin: 20px auto 0; }
.modal-open { overflow: hidden; }
.modal-header { margin-bottom: 0; height: 12px; }
.modal > h2 { font-family: Georgia,serif; font-weight: 400; font-size: 28px; margin: 0 38px 10px 0; line-height: 1.3; }
.modal > .page-description { font-size: 13px; margin-bottom: 23px; }
.form-field label { font-size: 12px; color: #637857; }
.form-field label span { font-size: 10px; margin-left: 5px; color: #718168; }
.form-field input, .form-field select, .form-field textarea { font-size: 13px; color: #526845; }
.modal-actions { flex-wrap: wrap; }
.danger { color: #9a5a4d; margin-right: auto; }
.data-section { border-top: 1px solid var(--line); padding: 20px 0; }
.data-section p { font-size: 13px; color: #6b7b60; }
.file-button { cursor: pointer; position: relative; }
.toast { opacity: 0; pointer-events: none; transition: opacity .15s ease; }
.toast.show { opacity: 1; }
.skip-link:focus { position: fixed; z-index: 200; top: 12px; left: 12px; width: auto; height: auto; clip: auto; padding: 10px; background: white; }
.empty-state p { font-size: 13px; color: #6c7c60; }
@media (max-width: 1200px) { .energy-selected { display: none; } .hero-art { width: 230px; flex-basis: 230px; } .energy-option { padding: 15px 12px; } }
@media (max-width: 1000px) { .energy-selected { display: block; position: absolute; top: 10px; right: 10px; } .quick-capture { align-items: stretch; flex-direction: column; gap: 16px; } .energy-name { font-size: 13px; } .hero-art { width: 190px; flex-basis: 190px; } }
@media (max-width: 800px) { .topbar-left > .eyebrow { font-size: 9px; letter-spacing: 1px; } .hero-art { width: 230px; flex-basis: 230px; } .energy-selected { position: static; display: block; } .page-title { font-size: 35px; } }
@media (max-width: 800px) { .sidebar { visibility: hidden; } .menu-open .sidebar { visibility: visible; } }
@media (max-width: 600px) {
  .hero { padding: 26px 23px; min-height: 245px; } .hero-copy h1 { font-size: 36px; } .hero-art { width: 170px; bottom: 10px; }
  .hero-copy p { font-size: 13px; } .hero .pill { font-size: 9px; } .hero-art { opacity: .18; } .section-heading > .eyebrow { display: none; }
  .energy-option { padding: 15px 17px; min-height: 76px; } .energy-selected { margin-left: auto; align-self: center; }
  .energy-name { font-size: 14px; } .energy-desc { font-size: 12px; } .section-subtitle { font-size: 12px; }
  .task-title { font-size: 13px; } .task-step { font-size: 12px; } .tag { font-size: 10px; } .task-meta { font-size: 10px; }
  .task-actions { flex-direction: column; margin-top: -4px; } .filter-tab { font-size: 12px; } .search-wrap { width: 100%; }
  .prompt-toolbar { flex-direction: column; } .prompt-toolbar .pill { display: none; } .project-grid { margin-top: 15px; }
  .guide-energy-grid { grid-template-columns: 1fr; gap: 18px; } .status-grid { grid-template-columns: repeat(2,1fr); }
  .deadline-section > summary span { display: block; margin-left: 16px; } .deadline-item { align-items: start; }
  .modal > h2 { font-size: 26px; } .modal-actions .button { min-width: 95px; } .guide-closing p { font-size: 25px; }
}
