:root {
  color-scheme: light;
  --ink: #263e34;
  --muted: #7d8c7d;
  --line: #e2e8de;
  --paper: #fffefb;
  --canvas: #f5f6f0;
  --green: #426b59;
  --green-soft: #eaf2ea;
  --gold: #ae8341;
  --gold-soft: #faf1df;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #96b994; outline-offset: 3px; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; z-index: 30; top: 1rem; left: 1rem; padding: .7rem 1rem; border-radius: .6rem; background: var(--ink); color: white; }
.shell { width: min(1500px, calc(100% - 72px)); margin: 0 auto; }

.site-header { min-height: 104px; display: flex; align-items: center; gap: 40px; border-bottom: 1px solid var(--line); }
.brand { font-family: Georgia, serif; font-size: 2.35rem; font-weight: 700; line-height: 1; letter-spacing: -.08em; }
.brand span, .period { color: #94b686; }
.version-nav { display: flex; align-items: center; gap: 8px; padding: 5px; background: #edf0e9; border: 1px solid #e4e9df; border-radius: 999px; }
.version-nav a { border-radius: 999px; color: #78907d; padding: 9px 16px; font-size: .86rem; font-weight: 700; white-space: nowrap; transition: background .2s, color .2s; }
.version-nav a:hover { color: var(--ink); }
.version-nav a[aria-current] { color: var(--ink); background: var(--paper); box-shadow: 0 1px 5px #203b2714; }
.account { margin-left: auto; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .84rem; white-space: nowrap; }
.connection-dot, .live-dot { width: 8px; height: 8px; border-radius: 50%; background: #bbc7b4; flex: none; }
.connection-dot.connected { background: #7da988; box-shadow: 0 0 0 4px #dcebdd; }
.account button { border: 1px solid #d7e1d4; border-radius: 10px; background: var(--paper); color: var(--ink); padding: 10px 17px; margin-left: 8px; font-weight: 700; }
.account button:hover { border-color: #a8c0a5; }

main { padding-bottom: 96px; }
.hero { min-height: 315px; display: flex; justify-content: space-between; align-items: center; gap: 40px; overflow: hidden; }
.hero-copy { max-width: 760px; position: relative; z-index: 1; }
.eyebrow { margin: 0 0 18px; color: #93a18f; letter-spacing: .27em; font-size: .74rem; font-weight: 800; }
.hero h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.8rem, 7vw, 6.5rem); font-weight: 500; letter-spacing: -.065em; line-height: 1.1; white-space: nowrap; }
.hero h1 > span:not(.period) { color: #b9c8ad; }
.hero-description { margin: 20px 0 0; max-width: 630px; color: #6e806f; font-size: 1.04rem; line-height: 1.9; }
.hero-mark { position: relative; width: 270px; height: 270px; flex: none; display: grid; place-items: center; }
.orbit { position: absolute; border: 1px solid #dce6d6; border-radius: 50%; }
.orbit-one { inset: 16px; }
.orbit-two { inset: 55px; border-color: #cbdcc8; }
.hero-mark::before, .hero-mark::after { content: ""; width: 10px; height: 10px; border-radius: 50%; position: absolute; background: #b7cbad; }
.hero-mark::before { top: 28px; left: 53px; }
.hero-mark::after { bottom: 38px; right: 47px; background: #d9c498; }
.mark-core { width: 93px; height: 93px; border-radius: 50%; display: grid; place-items: center; background: #e8efe3; color: #6b8d71; font-family: Georgia, serif; font-size: 1.65rem; letter-spacing: -.08em; box-shadow: 0 0 0 16px #e8efe35c; }
.mark-core span { color: var(--gold); }

.timer-section, .projects-section { margin-top: 24px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 26px; }
.section-heading h2 { font-family: Georgia, "Songti SC", serif; font-size: clamp(1.7rem, 2.8vw, 2.2rem); letter-spacing: -.035em; margin: 0; }
.section-heading .eyebrow { margin-bottom: 10px; }
.section-heading > p, .section-description { margin: 0; color: var(--muted); font-size: .95rem; }
.timer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.timer-card { min-height: 267px; text-align: left; border-radius: 25px; padding: 28px 30px; display: flex; flex-direction: column; align-items: flex-start; transition: transform .2s, box-shadow .2s, border-color .2s; }
.timer-card:not(:disabled):hover { transform: translateY(-3px); box-shadow: 0 14px 35px #334c2c14; }
.timer-card:disabled { opacity: .75; }
.recover-card { background: #ebf2eb; border: 1px solid #d7e5d7; color: #346250; }
.create-card { background: #faf2e4; border: 1px solid #edddba; color: #986e2f; }
.timer-card.is-active { border-width: 2px; box-shadow: 0 0 0 4px #ffffffa8; }
.card-top { width: 100%; display: flex; align-items: flex-start; justify-content: space-between; }
.timer-icon { width: 57px; height: 57px; border-radius: 18px; display: grid; place-items: center; font-size: 2rem; line-height: 1; background: #ffffff9c; border: 1px solid #ffffffbc; }
.create-icon { font-size: 1.85rem; }
.card-index { font-size: .69rem; letter-spacing: .16em; font-weight: 800; opacity: .55; margin-top: 9px; }
.timer-name { font-family: Georgia, serif; font-size: clamp(2.45rem, 4vw, 3.8rem); line-height: 1; margin-top: 25px; letter-spacing: -.055em; }
.timer-translation { margin-top: 10px; font-size: .9rem; opacity: .78; }
.timer-action { margin-top: auto; width: 100%; display: flex; justify-content: space-between; align-items: center; padding-top: 22px; font-size: .87rem; font-weight: 750; }
.timer-action span { font-size: 1.35rem; line-height: .7; }
.live-strip { position: relative; margin-top: 16px; min-height: 104px; padding: 18px 24px; border: 1px solid #d9e5d7; background: var(--paper); border-radius: 18px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; color: #577563; box-shadow: 0 8px 24px #334c2c08; }
.live-context { display: flex; align-items: center; gap: 12px; min-width: 0; color: #718676; font-size: .9rem; font-weight: 650; }
.live-dot { width: 10px; height: 10px; background: #62a777; box-shadow: 0 0 0 6px #dcefe0; margin: 0 4px; }
.live-strip strong { grid-column: 2; grid-row: 1; color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.1rem, 4.2vw, 3.2rem); font-weight: 650; line-height: 1; letter-spacing: .025em; font-variant-numeric: tabular-nums; text-align: center; white-space: nowrap; }
.meditation-page-link { color: #426b59; font-size: .8rem; font-weight: 800; white-space: nowrap; }
.live-strip > .meditation-page-link { justify-self: end; }
.meditation-page-link:hover { text-decoration: underline; }

.projects-section { margin-top: 93px; }
.projects-heading { align-items: center; }
.add-project-button { border: 1px solid #d3dfd2; border-radius: 13px; background: var(--paper); color: var(--green); padding: 13px 17px; font-weight: 750; white-space: nowrap; }
.add-project-button:hover:not(:disabled) { background: #edf4ea; }
.add-project-button:disabled { opacity: .45; cursor: not-allowed; }
.section-description { margin-top: 12px; line-height: 1.7; }
.day-selector { border: 1px solid #dae4d8; background: var(--paper); display: flex; align-items: center; border-radius: 13px; padding: 4px; }
.day-selector button { width: 36px; height: 37px; border: 0; border-radius: 9px; background: transparent; color: #69826d; font-size: 1.5rem; line-height: 1; }
.day-selector button:hover:not(:disabled) { background: #eef3ea; }
.day-selector button:disabled { opacity: .35; }
.day-selector input { border: 0; color: var(--ink); background: transparent; padding: 7px 6px; font-weight: 700; outline: none; }
.summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin-bottom: 18px; }
.summary-card { display: flex; flex-direction: column; gap: 13px; background: #fffefbba; border: 1px solid var(--line); border-radius: 17px; padding: 22px 24px; }
.summary-card span { color: #93a190; font-size: .82rem; }
.summary-card strong { font-family: Georgia, "Songti SC", serif; font-size: 1.55rem; font-weight: 600; }
.project-panel { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--paper); box-shadow: 0 8px 28px #3c58400a; }
.daily-goals { margin-top: 26px; padding: 34px 36px 36px; border: 1px solid #dbe7d8; border-radius: 22px; background: linear-gradient(118deg, #fbfdf8, #f3f7ef 70%, #edf5eb); box-shadow: 0 12px 36px #35523c0d; }
.daily-goals-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.daily-goals-heading .eyebrow { margin: 0 0 9px; }
.daily-goals h2 { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: clamp(1.65rem, 3vw, 2.25rem); color: var(--ink); }
.daily-goals-intro > p:last-child { margin: 9px 0 0; color: var(--muted); font-size: .88rem; }
.goal-setting-card { appearance: none; min-width: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 17px 20px; border: 1px solid #d2e0cf; border-radius: 16px; background: #fffefbdc; color: var(--ink); box-shadow: 0 6px 18px #35523c0a; text-align: center; font: inherit; cursor: pointer; transition: border-color .18s, box-shadow .18s, transform .18s; }
.goal-setting-card:hover:not(:disabled) { transform: translateY(-2px); border-color: #a9c3a8; box-shadow: 0 9px 24px #35523c14; }
.goal-setting-card:focus-visible { outline: 3px solid #92b995; outline-offset: 3px; }
.goal-setting-card:disabled { opacity: .6; cursor: wait; }
.goal-setting-label { color: #738975; font-size: .8rem; font-weight: 700; }
.goal-setting-card > strong { color: #315b43; font-family: Georgia, "Songti SC", serif; font-size: 1.8rem; }
.goal-dialog { width: min(520px, calc(100% - 28px)); padding: 34px 38px 36px; background: radial-gradient(ellipse at 50% 34%, #f2f8ef 0, var(--paper) 63%); }
.goal-dialog h2 { margin-top: 21px; font-size: 2rem; }
.goal-dialog form > p:not(.eyebrow):not(.form-error) { margin: 0; }
.goal-hour-display { width: 168px; height: 168px; margin: 26px auto 22px; display: flex; align-items: baseline; justify-content: center; gap: 8px; padding-top: 42px; border: 1px solid #d8e8d7; border-radius: 50%; background: radial-gradient(circle, #fffefb 55%, #f1f7ef 56%); box-shadow: 0 0 0 7px #e7f0e4, 0 10px 30px #31523b12; color: #315d44; }
.goal-hour-display strong { font-family: Georgia, "Songti SC", serif; font-size: 4.7rem; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.goal-hour-display span { color: #78917b; font-size: 1rem; font-weight: 700; }
.goal-hour-slider-label { display: block; margin-bottom: 10px; color: #617a64; font-size: .85rem; font-weight: 700; }
.goal-hour-slider { width: 100%; accent-color: #527c5d; }
.goal-hour-range { display: flex; justify-content: space-between; color: #96a594; font-size: .75rem; }
.goal-dialog .goal-setting-note { margin: 18px 0 0 !important; font-size: .82rem; text-align: center; }
.goal-dialog .form-error { margin: 12px 0 4px; }
.goal-progress-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 14px; }
.goal-progress { min-width: 0; padding: 20px; border: 1px solid #e3eae2; border-radius: 14px; background: #fbfcf9; }
.goal-title { font-family: Georgia, serif; font-size: 1.27rem; color: var(--ink); }
.goal-progress-body { display: flex; align-items: center; gap: 24px; margin-top: 14px; }
.goal-pie { position: relative; width: 108px; aspect-ratio: 1; flex: none; border-radius: 50%; background: #e5ece3; box-shadow: inset 0 0 0 1px #ffffff99; transition: background .35s, box-shadow .35s; }
.goal-pie-status { display: none; position: absolute; inset: 0; place-items: center; color: #fff; }
.goal-pie-status svg { width: 70%; height: 70%; }
.goal-progress.is-complete { border: 2px solid #79b98c; background: #f0f8ef; box-shadow: 0 0 0 4px #dff0e2; }
.goal-progress.is-complete .goal-pie { box-shadow: 0 0 0 3px #d4ead9, inset 0 0 0 1px #ffffff99; }
.goal-progress.is-complete .goal-pie-status, .goal-progress.is-exhausted .goal-pie-status { display: grid; }
.goal-progress.is-exhausted { border-color: #e9b7b2; background: #fff8f7; }
.goal-progress.is-exhausted .goal-pie { box-shadow: 0 0 0 3px #f9dfdc, inset 0 0 0 1px #ffffff99; }
.goal-progress-copy { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.goal-progress-copy > strong { font-family: Georgia, serif; font-size: 2rem; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.goal-progress.is-complete .goal-progress-copy > strong { color: #27814b; font-size: clamp(1.25rem, 2vw, 1.7rem); }
.goal-progress.is-exhausted .goal-progress-copy > strong { color: #ca3f36; font-size: clamp(1.35rem, 2vw, 1.8rem); }
.goal-progress.is-exhausted .goal-progress-copy p { color: #b14a43; font-weight: 800; }
.goal-progress.is-complete .goal-progress-copy > strong, .goal-progress.is-exhausted .goal-progress-copy > strong { animation: goal-pop .45s ease-out; }
@keyframes goal-pop { 0% { transform: scale(.72); opacity: .3; } 75% { transform: scale(1.15); } 100% { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .goal-progress-copy > strong { animation: none !important; } }
.goal-progress-copy > span { color: #577362; font-size: .86rem; font-weight: 700; }
.goal-progress-copy p { min-height: 1.2em; margin: 3px 0 0; color: #859785; font-size: .8rem; line-height: 1.5; }
.project-panel-title { padding: 25px 28px; display: flex; justify-content: space-between; color: #778b79; font-weight: 700; }
.project-head, .project-row { display: grid; grid-template-columns: minmax(230px, 2.1fr) minmax(100px, .8fr) minmax(160px, 1.25fr) minmax(160px, 1.25fr) 28px; gap: 20px; align-items: center; }
.project-head { padding: 13px 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #f7f9f4; color: #93a190; font-size: .8rem; font-weight: 700; }
.project-head .add-project-button { justify-self: end; padding: 8px 13px; font-size: .8rem; }
.project-row { padding: 22px 28px; border-bottom: 1px solid #edf0e9; }
.project-row:last-child { border-bottom: 0; }
.project-main { min-width: 0; position: relative; padding-left: 22px; }
.project-drag-handle { position: absolute; top: 1px; left: -4px; width: 22px; height: 26px; border: 0; border-radius: 6px; background: transparent; color: #91a696; font-size: 1.1rem; line-height: 1; touch-action: none; cursor: grab; }
.project-drag-handle:hover, .project-drag-handle:focus-visible { background: #e9f0e8; color: #4e7961; }
.project-drag-handle[hidden] { display: none; }
.merge-drop-target { outline: 2px solid #81ac8c; outline-offset: -2px; background-color: #edf5ee !important; }
.keyboard-merge-source { outline: 3px solid #4d8061 !important; outline-offset: 2px; }
.merge-drag-ghost { position: fixed; z-index: 10000; pointer-events: none; padding: 8px 12px; border: 1px solid #bed4c0; border-radius: 999px; background: #fffefbed; color: #466955; box-shadow: 0 8px 25px #1d3b2b24; font-size: .75rem; white-space: nowrap; }
.project-type { display: inline-block; padding: 4px 9px; border-radius: 999px; font-size: .68rem; font-weight: 800; letter-spacing: .04em; margin-bottom: 9px; }
.project-type.recover { background: #eaf2e9; color: #548268; }
.project-type.create { background: #faf0df; color: #ad8240; }
.project-name { display: block; width: 100%; border: 0; border-bottom: 1px solid transparent; background: transparent; color: var(--ink); font-weight: 700; padding: 2px 0 5px; outline: none; }
.project-name:hover, .project-name:focus { border-color: #b7cbb6; }
.project-clock { display: block; color: #9aaa99; margin-top: 7px; font-size: .75rem; }
.project-duration { font-variant-numeric: tabular-nums; font-weight: 750; color: #5e7f68; }
.project-row:has(.project-type.create) .project-duration { color: var(--gold); }
.project-note { display: block; width: 100%; min-height: 58px; resize: vertical; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #516a57; padding: 7px 8px; line-height: 1.55; outline: none; }
.project-note::placeholder { color: #b2beb1; }
.project-note:hover, .project-note:focus { border-color: #dce8d8; background: #fbfcf9; }
.delete-project { width: 26px; height: 26px; border: 0; background: transparent; color: #a4b1a2; font-size: 1.35rem; line-height: 1; border-radius: 5px; }
.delete-project:hover { background: #f9e8e5; color: #aa5e56; }
.empty-projects { padding: 64px 24px; text-align: center; color: #9aaa99; }
.empty-projects strong { display: block; font-size: 1.1rem; color: #718b75; margin: 0 0 10px; }
.empty-projects p { margin: 0; font-size: .9rem; }
.site-footer { border-top: 1px solid var(--line); display: flex; justify-content: space-between; padding: 27px 0 45px; color: #8a9b89; }
.site-footer > span { font-family: Georgia, serif; font-size: 1.2rem; color: var(--ink); }
.site-footer small { font-family: inherit; font-size: .75rem; color: #9aaa99; margin-left: 10px; }
.site-footer a { font-size: .83rem; font-weight: 700; }
.site-footer a:hover { color: var(--green); }

dialog { width: min(480px, calc(100% - 28px)); max-height: calc(100% - 30px); border: 1px solid #d9e5d7; border-radius: 22px; background: var(--paper); color: var(--ink); padding: 30px; box-shadow: 0 22px 80px #162a1c30; }
dialog::backdrop { background: #172c23aa; backdrop-filter: blur(3px); }
.dialog-top { display: flex; align-items: start; justify-content: space-between; }
.dialog-top .eyebrow { margin: 7px 0 0; }
.close-dialog { border: 0; background: #f0f3ed; width: 32px; height: 32px; border-radius: 50%; font-size: 1.2rem; color: #78917b; }
dialog h2 { font-family: Georgia, "Songti SC", serif; font-size: 1.9rem; margin: 17px 0 9px; }
dialog p { color: #849684; line-height: 1.7; }
.recovery-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 25px; }
.recovery-options button { border: 1px solid #dce8d8; border-radius: 16px; background: #f2f7f0; color: #4e755c; padding: 23px 12px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.recovery-options button:hover { border-color: #9cbaa0; transform: translateY(-2px); }
.recovery-options button span { font-size: 2.1rem; }
.recovery-options button strong { font-family: Georgia, serif; font-size: 1.2rem; }
.recovery-options button small { color: #829983; }
.password-label { display: block; color: #617a64; font-size: .9rem; font-weight: 700; margin: 27px 0 15px; }
.password-label input { width: 100%; display: block; margin-top: 9px; padding: 13px 14px; border-radius: 10px; border: 1px solid #cadac7; outline: none; }
.password-label input:focus { border-color: #8fb593; }
.manual-fields { display: grid; gap: 14px; margin-top: 20px; }
.manual-fields label { display: grid; gap: 7px; color: #617a64; font-size: .85rem; font-weight: 700; }
.manual-fields input, .manual-fields select, .manual-fields textarea { width: 100%; border: 1px solid #cadac7; border-radius: 10px; background: #fff; color: var(--ink); padding: 11px 12px; font: inherit; }
.manual-fields textarea { resize: vertical; }
.manual-fields input:focus, .manual-fields select:focus, .manual-fields textarea:focus { outline: 2px solid #8fb593; }
.submit-button { width: 100%; border: 0; border-radius: 11px; background: var(--green); color: white; font-weight: 700; padding: 14px; }
.submit-button:hover { background: #315e47; }
.form-error { min-height: 1.2em; color: #b5534b; font-size: .83rem; }
.toast { position: fixed; z-index: 40; left: 50%; bottom: 28px; transform: translateX(-50%); max-width: min(90vw, 520px); border-radius: 12px; background: #284b3b; color: white; padding: 13px 19px; box-shadow: 0 9px 35px #223c2c3b; font-size: .9rem; }
.no-script { padding: 20px; background: #fbe9e8; }

@media (max-width: 1050px) {
  .hero-mark { width: 190px; height: 190px; }
  .orbit-one { inset: 10px; } .orbit-two { inset: 40px; }
  .mark-core { width: 76px; height: 76px; font-size: 1.4rem; }
  .hero h1 { font-size: clamp(3.3rem, 7vw, 5.5rem); }
  .project-head, .project-row { grid-template-columns: minmax(180px, 1.7fr) minmax(90px, .7fr) minmax(130px, 1fr) minmax(130px, 1fr) 25px; gap: 10px; }
}
@media (max-width: 760px) {
  .shell { width: min(100% - 32px, 600px); }
  .site-header { min-height: 80px; flex-wrap: wrap; gap: 10px; padding: 15px 0; }
  .brand { font-size: 1.95rem; }
  .version-nav { margin-left: auto; }
  .version-nav a { padding: 7px 10px; font-size: .73rem; }
  .account { width: 100%; border-top: 1px solid var(--line); padding-top: 10px; }
  .account button { margin-left: auto; }
  .hero { min-height: auto; padding: 70px 0 55px; }
  .hero-mark { display: none; }
  .hero h1 { white-space: normal; font-size: clamp(3.25rem, 12vw, 5rem); }
  .hero-description { font-size: .94rem; }
  .section-heading { align-items: start; flex-direction: column; gap: 10px; }
  .timer-grid { grid-template-columns: 1fr; gap: 12px; }
  .timer-card { min-height: 220px; padding: 23px; }
  .timer-name { margin-top: 15px; }
  .live-strip { min-height: 96px; }
  .projects-section { margin-top: 75px; }
  .projects-heading { align-items: stretch; }
  .daily-goals { padding: 24px 18px; }
  .daily-goals-heading { align-items: stretch; flex-direction: column; }
  .goal-setting-card { min-width: 0; width: 100%; }
  .goal-dialog { padding: 26px 22px; }
  .goal-hour-display { width: 148px; height: 148px; padding-top: 37px; }
  .goal-progress-grid { grid-template-columns: 1fr; gap: 12px; }
  .goal-progress-body { gap: 18px; }
  .goal-pie { width: 92px; }
  .day-selector { align-self: flex-start; }
  .summary-grid { gap: 8px; }
  .summary-card { padding: 14px 12px; border-radius: 12px; gap: 12px; }
  .summary-card span { font-size: .7rem; }
  .summary-card strong { font-size: 1rem; }
  .project-head { display: flex; justify-content: flex-end; }
  .project-head > span { display: none; }
  .project-row { grid-template-columns: 1fr auto; grid-template-areas: "main duration" "feeling feeling" "thinking thinking" "delete delete"; gap: 9px 12px; padding: 20px; }
  .project-main { grid-area: main; }
  .project-duration { grid-area: duration; align-self: start; padding-top: 28px; white-space: nowrap; }
  .project-note.feeling { grid-area: feeling; }
  .project-note.thinking { grid-area: thinking; }
  .project-note { min-height: 42px; border-color: #edf1e9; }
  .delete-project { grid-area: delete; justify-self: end; }
  .site-footer small { display: none; }
}



/* V3: three equal choices, and a project-focused ledger. */
.hero-copy { max-width: 1060px; }
.hero h1 { font-size: clamp(3rem, 5.15vw, 5.45rem); }
.hero-mark { width: 205px; height: 205px; }
.mark-core { width: 105px; height: 105px; font-size: 1.45rem; }
.timer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.timer-card { min-height: 245px; padding: 25px; }
.timer-name { font-size: clamp(2.3rem, 3.2vw, 3.45rem); }
.explore-card { background: #edf2f6; border: 1px solid #d8e4ec; color: #547895; }
.summary-card.explore-summary, .analysis-card.explore-summary { color: #547895; }
.project-head, .project-row { grid-template-columns: minmax(220px, 2fr) minmax(180px, 1fr) minmax(220px, 2.5fr) 28px; gap: 20px; }
.project-type.explore { background: #e9f1f7; color: #5b82a0; }
.project-duration { display: block; }
.cost-cell small { display: block; color: #9aaa99; margin-top: 7px; line-height: 1.45; }
.project-row:has(.project-type.explore) .project-duration { color: #547895; }
.project-note.benefit { min-height: 48px; }
.site-footer div { display: flex; gap: 22px; }

.analysis-section { margin-top: 92px; }
.range-selector { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .86rem; white-space: nowrap; }
.range-selector select { border: 1px solid #dae4d8; border-radius: 10px; background: var(--paper); color: var(--ink); padding: 10px 34px 10px 12px; font-weight: 700; }
.analysis-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin-bottom: 18px; }
.analysis-card { border: 1px solid var(--line); border-radius: 17px; background: var(--paper); padding: 23px 25px; display: flex; flex-direction: column; gap: 9px; }
.analysis-card span { color: #93a190; font-size: .85rem; }
.analysis-card strong { font-family: Georgia, "Songti SC", serif; font-size: 1.7rem; font-weight: 600; }
.analysis-card small { font-weight: 800; opacity: .68; }
.recover-summary strong { color: #56826b; }
.create-summary strong { color: #a57a3a; }
.explore-summary strong { color: #547895; }
.analysis-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 18px; align-items: start; }
.chart-panel, .table-panel { min-width: 0; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); padding: 25px; }
.panel-heading { display: flex; justify-content: space-between; gap: 15px; align-items: baseline; margin-bottom: 25px; }
.panel-heading h3 { margin: 0; font-size: 1.05rem; }
.panel-heading span { color: #94a18f; font-size: .8rem; }
.chart { height: 236px; display: flex; align-items: stretch; gap: 3px; border-bottom: 1px solid var(--line); padding-top: 12px; }
.chart-column { min-width: 0; flex: 1; display: flex; flex-direction: column; justify-content: end; align-items: stretch; }
.chart-bar { flex: 1; display: flex; flex-direction: column-reverse; justify-content: flex-start; min-height: 0; }
.chart-segment { display: block; min-height: 0; width: 100%; }
.chart-segment.recover { background: #83ae8d; }
.chart-segment.create { background: #d4ae6a; }
.chart-segment.explore { background: #8db4cb; }
.chart-column small { height: 21px; font-size: .61rem; color: #a6b2a3; text-align: center; white-space: nowrap; padding-top: 4px; }
.chart-legend { display: flex; gap: 19px; margin-top: 18px; color: #839484; font-size: .78rem; }
.chart-legend span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }
.recover-key::before { background: #83ae8d; }
.create-key::before { background: #d4ae6a; }
.explore-key::before { background: #8db4cb; }
.table-scroll { max-height: 305px; overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: right; font-size: .79rem; white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
thead th { position: sticky; top: 0; background: var(--paper); color: #95a494; font-weight: 700; padding: 0 8px 12px; }
tbody th, tbody td { border-top: 1px solid #edf0e9; padding: 12px 8px; color: #6e806f; font-weight: 500; }
tbody strong { color: var(--ink); }
.table-empty { text-align: center; padding: 35px 8px; }

@media (max-width: 1050px) {
  .hero h1 { white-space: normal; }
  .timer-grid { gap: 10px; }
  .timer-card { min-height: 220px; padding: 19px; }
  .timer-name { font-size: clamp(2.1rem, 3.6vw, 3rem); }
  .project-head, .project-row { grid-template-columns: minmax(170px, 1.4fr) minmax(140px, .9fr) minmax(170px, 1.5fr) 25px; gap: 12px; }
  .analysis-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .hero h1 { font-size: clamp(3rem, 11vw, 4.7rem); }
  .timer-grid { grid-template-columns: 1fr; }
  .timer-card { min-height: 200px; padding: 22px; }
  .timer-name { font-size: 3rem; }
  .project-head { display: flex; justify-content: flex-end; }
  .project-head > span { display: none; }
  .project-row { grid-template-columns: 1fr auto; grid-template-areas: "main cost" "benefit benefit" "delete delete"; gap: 9px; padding: 20px; }
  .cost-cell { grid-area: cost; text-align: right; align-self: start; padding-top: 25px; }
  .project-note.benefit { grid-area: benefit; border-color: #edf1e9; }
  .delete-project { grid-area: delete; justify-self: end; }
  .analysis-section { margin-top: 75px; }
  .analysis-cards { gap: 8px; }
  .analysis-card { padding: 14px 12px; }
  .analysis-card strong { font-size: 1rem; }
  .chart-panel, .table-panel { padding: 20px 14px; }
  .site-footer div { gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
}

/* Four linked V3 analysis views. */
.analysis-block { margin-top: 18px; }
.analysis-block > .panel-heading { margin-bottom: 18px; }
.analysis-block .panel-heading .eyebrow { margin: 0 0 7px; font-size: .65rem; }
.analysis-block .panel-heading h3 { font-family: Georgia, "Songti SC", serif; font-size: 1.35rem; }
.analysis-help { margin: -3px 0 22px; color: #879a88; line-height: 1.65; font-size: .83rem; }
.daily-table { min-width: 940px; font-variant-numeric: tabular-nums; }
.daily-table th, .daily-table td { text-align: right; }
.daily-table th:first-child { text-align: left; }
.daily-table .time-point { color: #425f4d; font-weight: 800; }
.category-table { min-width: 600px; }
.sleep-table { min-width: 720px; }
.daily-table .unrecorded-day { opacity: .48; }
.daily-table .selected-day-row { background: #f3f7f0; }
.day-link { border: 0; padding: 0; background: transparent; color: inherit; font: inherit; font-weight: 700; white-space: nowrap; }
.day-link:hover { color: var(--green); text-decoration: underline; }
.table-scroll { max-height: 365px; }
.timeline-boundaries { display: flex; align-items: center; justify-content: space-between; color: #849585; font-size: .87rem; margin: 0 0 10px; font-variant-numeric: tabular-nums; }
.timeline-boundaries strong { color: var(--ink); margin-left: 7px; font-size: 1.12rem; }
.timeline-track { position: relative; height: 68px; border: 1px solid #dce6dc; border-radius: 12px; background: repeating-linear-gradient(135deg, #f6f8f3 0 9px, #f0f3ec 9px 18px); overflow: hidden; }
.timeline-segment { position: absolute; top: 0; bottom: 0; min-width: 2px; border-right: 2px solid #fffefbc7; }
.timeline-segment.recover { background: #83ae8d; }
.timeline-segment.create { background: #d4ae6a; }
.timeline-segment.explore { background: #8db4cb; }
.timeline-events { display: flex; flex-wrap: wrap; gap: 9px 18px; margin-top: 17px; color: #738674; font-size: .78rem; }
.timeline-events span { white-space: nowrap; }
.timeline-events i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }
.timeline-events i.recover { background: #83ae8d; }
.timeline-events i.create { background: #d4ae6a; }
.timeline-events i.explore { background: #8db4cb; }
.timeline-empty { text-align: center; color: #9aaa99; padding: 37px 10px; border: 1px dashed var(--line); border-radius: 12px; }
.combined-chart { height: 268px; }
.combined-chart .chart-day-button { border: 0; padding: 0; background: transparent; color: inherit; min-width: 0; }
.combined-chart .chart-day-button .chart-bar { width: 100%; }
.combined-chart .chart-day-button.selected .chart-bar { background: #f0f5ee; }
.combined-chart .chart-day-button:hover .chart-bar { background: #eaf1e9; }
.timeline-detail { border-top: 1px solid var(--line); margin-top: 27px; padding-top: 22px; }
.timeline-detail .panel-heading { margin-bottom: 16px; }
.timeline-detail h4 { margin: 0; font-size: 1rem; color: var(--ink); }
.timeline-detail .analysis-help { margin: 16px 0 0; }
.category-charts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.category-panel { padding: 22px 18px; }
.category-heading { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.category-heading h4 { margin: 0; font: 600 1.28rem Georgia, serif; color: var(--ink); }
.category-heading small { color: #9aaa99; white-space: nowrap; }
.category-chart { height: 188px; margin-top: 16px; gap: 2px; }
.category-chart .chart-column small { font-size: .55rem; overflow: visible; }
.average-cards { margin-bottom: 0; }
.average-cards .analysis-card small { color: #8a9c8b; opacity: 1; font-weight: 500; }
.demo-banner { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin: 20px 0 0; padding: 15px 19px; border: 1px solid #d9e5d7; border-radius: 13px; background: #edf5eb; color: #52745c; font-size: .86rem; line-height: 1.5; }
.demo-entry { display: inline-flex; margin-top: 20px; color: #5b8062; font-size: .88rem; font-weight: 750; border-bottom: 1px solid #bcd2bc; padding-bottom: 5px; }
.demo-entry:hover { color: #315b43; border-color: #315b43; }
.preview-mode .demo-entry { display: none; }
.demo-banner strong { color: #315b43; }
.demo-banner button, .demo-toggle { border: 1px solid #bfd2c0; border-radius: 10px; padding: 10px 15px; background: #fffefb; color: #4e755c; font-weight: 700; white-space: nowrap; }
.demo-banner button:hover, .demo-toggle:hover { background: #eaf3e8; }
.analysis-controls { display: flex; align-items: center; gap: 12px; }
.preview-mode .project-name[readonly], .preview-mode .project-note[readonly] { cursor: default; border-color: transparent; resize: none; }
.preview-mode .project-name[readonly]:hover, .preview-mode .project-name[readonly]:focus, .preview-mode .project-note[readonly]:hover, .preview-mode .project-note[readonly]:focus { border-color: transparent; background: transparent; }
.preview-mode .timer-card:disabled { opacity: .58; }

/* V3: compact editable costs and one shared statistics control. */
:root {
  --recover: #a8c9d9;
  --create: #b3d3bf;
  --explore: #deb4af;
  --recover-soft: #edf6f9;
  --create-soft: #eff7f1;
  --explore-soft: #faefed;
}
.recover-card { background: #eff7fa; border-color: #dcecf2; color: #55798b; }
.create-card { background: #f0f8f2; border-color: #deede3; color: #5d8067; }
.explore-card { background: #fbf1ef; border-color: #f0dfdc; color: #966461; }
.project-type.recover { background: var(--recover-soft); color: #537d91; }
.project-type.create { background: var(--create-soft); color: #5e866b; }
.project-type.explore { background: var(--explore-soft); color: #a16a65; }
.project-cost { display: block; width: 100%; padding: 5px 7px; border: 1px solid transparent; border-radius: 9px; background: transparent; text-align: left; color: inherit; }
button.project-cost:hover, button.project-cost:focus-visible { border-color: #d0ddd5; background: #f6f9f6; }
.project-cost .project-duration, .project-row:has(.project-type.create) .project-duration, .project-row:has(.project-type.explore) .project-duration { color: var(--ink); }
.project-time-range { font-variant-numeric: tabular-nums; white-space: nowrap; color: #647d73 !important; }
.scope-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 14px; }
.scope-tabs button { border: 1px solid #dce6dd; border-radius: 999px; background: var(--paper); color: #718774; padding: 9px 17px; font-weight: 700; font-size: .85rem; }
.scope-tabs button:hover { background: #f1f6f0; }
.scope-tabs button.active { background: #496e5c; border-color: #496e5c; color: white; }
.analysis-mode-label { color: #829484; margin: 0 0 15px; font-size: .84rem; font-weight: 700; }
.analysis-card small { color: #849586; opacity: 1; font-weight: 500; line-height: 1.4; }
.share-panel { display: flex; align-items: center; gap: 30px; padding: 24px 28px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); }
.category-pie { flex: none; width: 176px; aspect-ratio: 1; border-radius: 50%; box-shadow: inset 0 0 0 1px #ffffff91, 0 8px 25px #426b5914; }
.category-pie { position: relative; }
.pie-slice-label { position: absolute; transform: translate(-50%, -50%); color: #213c32; font-size: .7rem; font-weight: 800; text-shadow: 0 1px 2px #ffffffa8; white-space: nowrap; pointer-events: none; }
.share-copy { flex: 1; min-width: 0; }
.share-copy h3 { margin: 0 0 7px; font: 600 1.3rem Georgia, "Songti SC", serif; }
.share-copy p { margin: 0 0 16px; color: #879a88; font-size: .83rem; line-height: 1.55; }
.share-legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.share-item { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 5px 8px; align-items: center; min-width: 0; color: #617969; font-size: .8rem; }
.share-item strong { font-variant-numeric: tabular-nums; color: var(--ink); }
.share-item small { grid-column: 2 / -1; color: #98a999; }
.share-dot { width: 10px; height: 10px; border-radius: 50%; }
.share-dot.recover { background: var(--recover); }
.share-dot.create { background: var(--create); }
.share-dot.explore { background: var(--explore); }
.recover-summary strong { color: #64899b; }
.create-summary strong { color: #698c73; }
.explore-summary strong { color: #a36c67; }
.chart-segment.recover, .recover-key::before { background: var(--recover); }
.chart-segment.create, .create-key::before { background: var(--create); }
.chart-segment.explore, .explore-key::before { background: var(--explore); }
.category-chart { overflow-x: auto; padding-top: 18px; }
.category-chart .chart-column { min-width: 60px; }
.category-chart .chart-bar { position: relative; }
.category-chart .chart-value { position: absolute; z-index: 1; left: 50%; transform: translateX(-50%); color: #607568; font-size: .64rem; font-weight: 750; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; }
#recover-chart .chart-value { color: #628798; }
#create-chart .chart-value { color: #6b8b73; }
#explore-chart .chart-value { color: #a06b66; }
.clock-chart-scroll { width: 100%; overflow-x: auto; padding: 10px 0 3px; }
.clock-chart { display: grid; grid-template-columns: 88px minmax(0, 1fr); width: max(100%, var(--clock-chart-width, 100%)); color: #738675; }
.clock-axis { position: sticky; left: 0; z-index: 3; background: var(--paper); border-right: 1px solid #dce6dd; }
.clock-axis-track { position: relative; height: var(--clock-height, 360px); }
.clock-axis-track span { position: absolute; right: 8px; transform: translateY(-50%); font-size: .7rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.clock-axis-track .clock-end-axis { z-index: 1; right: 3px; padding: 2px 3px; border-radius: 3px; background: #f7f0e3; color: #906d38; font-size: .57rem; font-weight: 750; }
.clock-plot { position: relative; display: grid; grid-template-columns: repeat(var(--day-count), minmax(260px, 1fr)); width: 100%; height: calc(var(--clock-height, 360px) + 82px); }
.clock-plot-grid { position: absolute; inset: 0 0 82px; pointer-events: none; z-index: 0; }
.clock-plot-grid span { position: absolute; left: 0; right: 0; border-top: 1px solid #e8eee8; }
.clock-end-line { position: absolute; z-index: 2; left: 0; right: 0; border-top: 2px solid #b9965c; pointer-events: none; }
.clock-day { position: relative; z-index: 1; min-width: 0; }
.clock-day-track { position: relative; height: var(--clock-height, 360px); border-left: 1px solid #eef2ed; cursor: crosshair; user-select: none; -webkit-user-select: none; }
.clock-day-track.clock-gap-pressing { box-shadow: inset 0 0 0 2px #9bbca470; background: #eef6ee55; }
.clock-day.selected .clock-day-track { background: #eef5f122; }
.clock-day-window { position: absolute; inset-inline: 0; z-index: 0; background: #f5f8f3a8; }
.clock-bar { position: absolute; z-index: 1; display: block; left: 8%; width: 64%; min-height: 2px; border: 1px solid #fffefbb8; border-radius: 5px; box-shadow: 0 1px 3px #263e340d; color: #1c3d35; font-variant-numeric: tabular-nums; }
.clock-bar[data-drag-project] { cursor: grab; touch-action: none; }
.clock-bar:hover { filter: brightness(.98); z-index: 4; }
.clock-bar.recover { background: var(--recover); color: #244554; }
.clock-bar.create { background: var(--create); color: #2c4d37; }
.clock-bar.explore { background: var(--explore); color: #563a37; }
.clock-bar-start, .clock-bar-end { position: absolute; display: block; font-size: .58rem; font-weight: 800; line-height: 1.1; white-space: nowrap; }
.clock-bar-start { top: 3px; left: 5px; }
.clock-bar-end { right: 5px; bottom: 3px; }
.clock-bar-name { position: absolute; top: 50%; left: 4px; right: 4px; transform: translateY(-50%); display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; min-width: 0; font-size: .6rem; font-weight: 800; line-height: 1.2; }
.clock-bar-title { justify-self: end; min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clock-bar-divider { justify-self: center; }
.clock-bar-duration { justify-self: start; white-space: nowrap; }
.project-in-progress { display: inline-block; margin-left: 7px; color: #6b8b76; font-size: .7rem; font-weight: 750; }
.clock-span-label { position: absolute; z-index: 2; left: 8%; max-width: 84%; padding: 1px 2px; border-radius: 4px; background: #fffefbf0; color: #48675b; font-size: .64rem; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; pointer-events: none; }
.clock-span-label.awake { transform: translateY(calc(-100% - 2px)); }
.clock-span-label.full { transform: translateY(2px); }
.clock-day-label { display: block; width: 100%; height: 24px; margin-top: 10px; border: 0; background: transparent; color: #8da08f; font-size: .7rem; }
.clock-day-label:hover { color: var(--ink); text-decoration: underline; }
.clock-day-status { display: block; margin-top: 3px; text-align: center; color: #a58b70; font-size: .63rem; }
.clock-empty { grid-column: 1 / -1; text-align: center; padding: 80px 20px; color: #9aaa99; }
.time-help { font-size: .9rem; }
.time-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.time-fields:has(#time-end-field[hidden]) { grid-template-columns: 1fr; }
.time-fields label { color: #617a64; font-size: .84rem; font-weight: 700; }
.time-fields input { display: block; width: 100%; margin-top: 7px; border: 1px solid #cadac7; border-radius: 10px; padding: 11px 12px; font-variant-numeric: tabular-nums; }
.time-fields input:focus { outline: 2px solid #96b994; outline-offset: 2px; }
@media (max-width: 760px) {
  .project-cost { text-align: right; }
  .cost-cell { grid-area: cost; text-align: right; align-self: start; padding-top: 18px; }
  .project-row { grid-template-areas: "main cost" "benefit benefit" "delete delete"; }
  .scope-tabs { gap: 6px; }
  .scope-tabs button { padding: 8px 12px; font-size: .77rem; }
  .analysis-card strong { font-size: 1rem; }
  .share-panel { gap: 18px; padding: 18px; }
  .category-pie { width: 112px; }
  .share-legend { grid-template-columns: 1fr; gap: 5px; }
  .share-item small { display: none; }
}
@media (max-width: 1050px) {
  .category-charts { grid-template-columns: 1fr; }
  .category-chart { height: 210px; }
}
@media (max-width: 760px) {
  .demo-banner { align-items: flex-start; flex-direction: column; gap: 12px; }
  .analysis-controls { width: 100%; justify-content: space-between; flex-wrap: wrap; }
  .analysis-block .panel-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .analysis-block .panel-heading h3 { font-size: 1.15rem; }
  .timeline-track { height: 56px; }
  .timeline-events span { white-space: normal; }
  .average-cards { grid-template-columns: 1fr; gap: 10px; }
  .average-cards .analysis-card strong { font-size: 1.25rem; }
}

/* V3 local refinement: quiet surfaces, consistent rhythm, readable controls. */
:root {
  --canvas: #f5f5f0;
  --paper: #fffffc;
  --ink: #294239;
  --muted: #6f8176;
  --line: #dfe5dc;
  --surface-shadow: 0 8px 28px #253d3005;
}
body { background: radial-gradient(ellipse at 90% 0, #e9eee380, transparent 45rem), var(--canvas); }
.shell { width: min(1380px, calc(100% - 64px)); }
.site-header { min-height: 84px; gap: 28px; }
.brand { font-weight: 500; font-size: 2.2rem; }
.version-nav { padding: 3px; border: 0; background: #e9eee680; }
.version-nav a { font-size: .76rem; padding: 8px 13px; font-weight: 600; }
.account { font-size: .78rem; }
.hero { min-height: 270px; gap: 20px; padding: 36px 0; }
.hero h1 { font-size: clamp(2.8rem, 5.1vw, 4.9rem); letter-spacing: -.06em; }
.hero-description { font-size: .95rem; max-width: 640px; margin-top: 16px; }
.hero-mark { width: 168px; height: 168px; }
.mark-core { width: 84px; height: 84px; font-size: 2.3rem; display: flex; justify-content: center; background: #e8efe1; box-shadow: 0 0 0 12px #e8efe144; }
.orbit-one { inset: 0; } .orbit-two { inset: 23px; }
.hero-mark::before { top: 15px; left: 21px; width: 7px; height: 7px; }
.hero-mark::after { right: 12px; bottom: 28px; width: 8px; height: 8px; background: var(--explore); }
.eyebrow { font-size: .66rem; letter-spacing: .2em; color: #788977; }
.page-nav { display: inline-flex; flex-wrap: wrap; gap: 20px; margin-top: 18px; margin-right: 24px; color: #526d5b; font-size: .78rem; }
.page-nav a { padding: 5px 0; border-bottom: 1px solid transparent; }
.page-nav a:hover { border-color: #8ba58b; }
.demo-entry { font-size: .78rem; margin-top: 12px; }
section { scroll-margin-top: 24px; }
.section-heading { gap: 20px; margin-bottom: 20px; }
.section-heading h2 { font-weight: 500; }
.section-description { max-width: 710px; font-size: .85rem; }
.timer-card { min-height: 220px; border-radius: 20px; padding: 24px; }
.timer-card.is-active { outline: 2px solid currentColor; outline-offset: 3px; border-width: 1px; box-shadow: 0 10px 30px #355a4210; }
.timer-card:disabled:not(.is-active) { opacity: .64; }
.timer-icon { width: 43px; height: 43px; border-radius: 13px; }
.timer-icon svg { width: 25px; height: 25px; }
.timer-name { font-size: clamp(2.2rem, 3vw, 3rem); margin-top: 19px; }
.timer-translation { font-size: .79rem; line-height: 1.5; }
.timer-action { padding-top: 19px; font-size: .82rem; }
.daily-goals { margin-top: 28px; padding: 28px; border-radius: 22px; background: linear-gradient(115deg, #fffffc, #f0f5ec); box-shadow: var(--surface-shadow); }
.daily-goals h2 { font-size: clamp(1.55rem, 2.4vw, 2rem); font-weight: 500; }
.daily-goals-intro > p:last-child { font-size: .8rem; line-height: 1.65; }
.goal-setting-card { min-width: 200px; padding: 17px 25px; box-shadow: none; background: #ffffffa3; }
.goal-setting-card > strong { font-size: 2.1rem; font-weight: 500; }
.goal-setting-label { font-size: .76rem; }
.goal-progress-grid { margin-top: 24px; gap: 16px; }
.goal-progress { padding: 22px; border-color: #dfe7dc; border-radius: 16px; background: #fffffcb3; }
.goal-title { font-weight: 500; font-size: 1.3rem; }
.goal-progress-body { gap: 20px; }
.goal-pie { width: 88px; }
.goal-progress-copy { gap: 7px; }
.goal-progress-copy > strong { font-size: 2.15rem; font-weight: 500; }
.goal-progress-copy > span { font-size: .8rem; line-height: 1.65; }
.goal-progress-copy p { color: #6d8573; font-size: .76rem; }
.goal-progress.is-complete { box-shadow: 0 0 0 2px #dff0e2; }
.goal-progress.is-exhausted { border: 2px solid #d9847c; box-shadow: 0 0 0 2px #f7e1dd; }
.projects-section, .analysis-section { margin-top: 66px; }
.project-panel, .chart-panel, .table-panel, .share-panel, .analysis-card { box-shadow: var(--surface-shadow); }
.project-panel-title { padding: 20px 25px; font-size: .86rem; }
.project-head { padding: 13px 25px; font-size: .75rem; }
.project-row { padding: 22px 25px; transition: background .15s; }
.project-gap-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 12px 25px; border-bottom: 1px dashed #dce5dc; background: #f7f9f5; color: #829487; font-size: .78rem; font-variant-numeric: tabular-nums; }
.project-gap-row button { border: 1px solid #cbdccb; border-radius: 999px; background: #fffefa; color: #496d56; padding: 5px 12px; font: inherit; cursor: pointer; }
.project-gap-row button:hover { background: #edf5eb; }
.project-row:focus-within { background: #f8faf5; }
.project-head, .project-row { grid-template-columns: minmax(0, 1.15fr) minmax(180px, .85fr) minmax(0, 1.5fr) 30px; }
.cost-cell { min-width: 0; }
.project-duration { font-size: .94rem; }
.cost-cell small { font-size: .75rem; color: #758777; }
.project-type { font-size: .62rem; font-weight: 700; letter-spacing: .05em; }
.project-category { max-width: 100%; border: 1px solid transparent; cursor: pointer; font-family: inherit; }
.project-category:hover, .project-category:focus-visible { border-color: currentColor; outline: none; }
.project-category:disabled { cursor: default; opacity: .8; }
.project-name { font-size: .94rem; padding: 6px 0; }
.project-name:focus-visible, .project-note:focus-visible { outline: 2px solid #9ab59d; outline-offset: 2px; }
.project-note { font-size: .87rem; }
.project-note::placeholder { color: #819182; }
.delete-project { min-width: 30px; height: 36px; }
.day-selector .today-button { width: auto; font-size: .75rem; padding: 0 10px; }
.draft-status { padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #ebd9bc; background: #fff7e7; color: #806134; font-size: .8rem; }
.draft-status button { padding: 7px 12px; border: 1px solid #dccbac; border-radius: 8px; background: #fffefa; color: inherit; }
.scope-tabs { display: inline-flex; gap: 4px; background: #e9eee6; border-radius: 12px; padding: 4px; }
.scope-tabs button { border: 0; border-radius: 9px; background: transparent; font-size: .8rem; padding: 10px 18px; }
.scope-tabs button.active { background: #fffefa; color: #305442; box-shadow: 0 2px 6px #29473712; }
.analysis-guide { margin-bottom: 18px; color: #6a8170; font-size: .8rem; }
.analysis-guide summary { width: fit-content; cursor: pointer; padding: 7px 0; }
.analysis-guide p { max-width: 880px; line-height: 1.8; padding: 10px 15px; margin: 6px 0 0; border-left: 2px solid #becfba; background: #f6f8f1; }
.analysis-card { padding: 22px; gap: 10px; }
.analysis-card strong { font-size: clamp(1.25rem, 2vw, 1.7rem); font-weight: 500; }
.analysis-card span { color: #597563; }
.analysis-card small { font-size: .73rem; }
.recover-summary { border-top: 3px solid var(--recover); }
.explore-summary { border-top: 3px solid var(--explore); }
.create-summary { border-top: 3px solid var(--create); }
.chart-panel, .table-panel { padding: 26px; }
.panel-heading h3, .category-heading h4, .share-copy h3 { font-weight: 500; }
.category-heading { flex-wrap: wrap; }
.category-heading small { font-size: .75rem; color: #708572; }
.category-chart { gap: 7px; }
.chart-segment { border-radius: 4px 4px 0 0; }
.chart-column small, .category-chart .chart-column small { color: #718575; font-size: .63rem; }
.table-scroll, .category-chart, .clock-chart-scroll { scrollbar-width: thin; scrollbar-color: #bdcdbd transparent; }
.table-scroll thead th { padding-top: 10px; z-index: 1; color: #687e6b; }
.daily-table td, .daily-table th { padding: 14px 12px; }
.day-link { min-height: 26px; }
.share-item { line-height: 1.5; }
.share-legend { gap: 18px; }
.goal-hour-control { display: flex; align-items: center; justify-content: center; gap: 20px; }
.goal-hour-control > button { width: 40px; height: 40px; border: 1px solid #d5e0d2; border-radius: 50%; color: #4f7258; background: #f5f8f0; }
.goal-hour-control > button:disabled { opacity: .35; }
.goal-hour-display { flex-shrink: 0; margin-inline: 0; }
.goal-presets { display: flex; justify-content: center; gap: 9px; margin: 0 0 25px; }
.goal-presets button { padding: 9px 14px; border-radius: 9px; border: 1px solid #dce5d7; background: transparent; color: #6c836e; font-size: .8rem; }
.goal-presets button[aria-pressed="true"] { border-color: #88aa8c; color: #305a3b; background: #eaf3e7; }
.goal-hour-slider { min-height: 34px; cursor: pointer; }
dialog::backdrop { background: #203c3069; backdrop-filter: blur(6px); }
button:disabled { opacity: .6; }
@media (max-width: 1050px) {
  .daily-goals-heading { align-items: start; }
  .goal-progress-body { gap: 14px; }
  .goal-pie { width: 72px; }
  .share-legend { grid-template-columns: 1fr; gap: 9px; }
}
@media (max-width: 760px) {
  .shell { width: calc(100% - 28px); }
  .site-header { gap: 12px; padding-top: 18px; }
  .hero { padding: 34px 4px 30px; min-height: 0; }
  .hero h1 { font-size: clamp(2.45rem, 9.5vw, 4rem); white-space: normal; }
  .hero-description { font-size: .84rem; }
  .page-nav { gap: 16px; font-size: .76rem; margin-right: 10px; }
  .section-heading { margin-bottom: 16px; }
  .timer-grid { gap: 10px; }
  .timer-card { min-height: 0; padding: 17px 20px; display: grid; grid-template-columns: 1fr auto; gap: 7px 16px; border-radius: 16px; }
  .card-top { grid-column: 2; grid-row: 1 / span 2; width: auto; align-self: center; }
  .card-index { display: none; }
  .timer-name { grid-column: 1; grid-row: 1; margin: 0; font-size: 2rem; }
  .timer-translation { grid-column: 1; margin: 0; font-size: .72rem; }
  .timer-action { grid-column: 1 / -1; padding-top: 8px; font-size: .76rem; }
  .live-strip { min-height: 112px; padding: 16px; grid-template-columns: 1fr; grid-template-rows: auto auto auto; gap: 10px; text-align: center; }
  .live-strip strong { grid-column: 1; grid-row: 1; font-size: clamp(2.25rem, 10vw, 3rem); }
  .live-context { grid-column: 1; grid-row: 2; justify-content: center; font-size: .78rem; }
  .live-strip > .meditation-page-link { grid-column: 1; grid-row: 3; justify-self: center; }
  .daily-goals { padding: 22px 17px; }
  .daily-goals-heading { align-items: stretch; gap: 18px; }
  .goal-setting-card { min-width: 0; width: 100%; padding: 15px; }
  .goal-progress { padding: 18px; }
  .goal-progress-body { gap: 18px; }
  .goal-pie { width: 80px; }
  .projects-section, .analysis-section { margin-top: 48px; }
  .project-head { padding: 10px 17px; }
  .project-panel-title { padding: 18px; font-size: .79rem; }
  .project-row { grid-template-columns: minmax(0, 1fr) minmax(120px, .9fr); padding: 19px 17px; gap: 10px; }
  .cost-cell { padding-top: 20px; }
  .project-duration { padding-top: 0; font-size: .85rem; }
  .project-cost { padding-inline: 0; }
  .project-time-range { white-space: normal; }
  .project-in-progress { margin-left: 0; }
  .delete-project { height: 30px; }
  .analysis-cards { grid-template-columns: 1fr; gap: 10px; }
  .analysis-card { display: grid; grid-template-columns: 1fr auto; padding: 18px; }
  .analysis-card strong { font-size: 1.3rem; }
  .analysis-card small { grid-column: 1 / -1; }
  .scope-tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; max-width: 100%; }
  .scope-tabs button { white-space: nowrap; padding: 10px 11px; font-size: .73rem; flex-shrink: 0; }
  .chart-panel, .table-panel { padding: 20px 16px; }
  .share-panel { align-items: flex-start; flex-direction: column; }
  .category-pie { align-self: center; width: 156px; }
  .share-copy { width: 100%; }
  .share-item small { display: block; }
  .goal-dialog { padding: 26px 20px; }
  .goal-dialog h2 { font-size: 1.6rem; }
  .goal-hour-control { gap: 16px; }
  .goal-presets button { padding: 8px 11px; }
  .site-footer { gap: 20px; flex-direction: column; }
  .site-footer div { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Symmetric long-term targets frame a centered daily-rhythm heading. */
.daily-goals-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 1.35fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
}
.daily-goals-intro { grid-column: 2; grid-row: 1; text-align: center; }
.daily-goals-intro > p:last-child { max-width: 560px; margin-inline: auto; }
.daily-goals-intro .eyebrow { letter-spacing: .22em; }
.goal-setting-card { width: 100%; min-width: 0; min-height: 112px; padding: 17px 20px; }
.bedtime-setting-card { grid-column: 1; grid-row: 1; }
#create-goal-card { grid-column: 3; grid-row: 1; }
.goal-setting-card > strong { font-variant-numeric: tabular-nums; }
.bedtime-time-label { display: block; margin: 30px 0 10px; color: #617a64; font-size: .85rem; font-weight: 700; }
.bedtime-time-input {
  display: block; width: min(100%, 340px); margin: 0 auto; padding: 14px 20px;
  border: 1px solid #d5e2d1; border-radius: 15px; background: #fffefa;
  color: #315b43; font: 500 2.6rem Georgia, "Songti SC", serif; text-align: center;
  font-variant-numeric: tabular-nums; box-shadow: 0 0 0 6px #edf4e9;
}
.bedtime-time-input:focus-visible { outline: 2px solid #81a889; outline-offset: 4px; }
@media (max-width: 760px) {
  .daily-goals-heading {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 12px;
  }
  .daily-goals-intro { grid-column: 1 / -1; grid-row: 1; margin-bottom: 8px; }
  .bedtime-setting-card { grid-column: 1; grid-row: 2; }
  #create-goal-card { grid-column: 2; grid-row: 2; }
  .goal-setting-card { min-height: 92px; padding: 13px 8px; }
  .goal-setting-card > strong { font-size: 1.6rem; }
  .goal-setting-label { font-size: .71rem; }
  .bedtime-time-input { font-size: 2.2rem; }
}

/* Active timer: Create feels like an investment building up; Desire signals a budget being spent. */
.live-strip {
  --timer-accent: #659b78;
  --timer-soft: #edf6ef;
  min-height: 142px;
  padding: 20px 24px 24px;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-rows: auto auto 3px;
  column-gap: 24px;
  row-gap: 5px;
  overflow: hidden;
  border-color: #d9e8dc;
  background: linear-gradient(110deg, #f4faf4, #fffefb 42%, #f7fbf6);
  box-shadow: inset 0 1px #fff, 0 10px 30px #52745b0b;
  transition: background .35s, border-color .35s, box-shadow .35s;
}
.live-strip.is-desire {
  --timer-accent: #bf7770;
  --timer-soft: #fbefed;
  border-color: #ecd8d4;
  background: linear-gradient(110deg, #fcf3f1, #fffefb 42%, #fcf6f3);
  box-shadow: inset 0 1px #fff, 0 10px 30px #a65f550b;
}
.live-strip.is-recover {
  --timer-accent: #7595a8;
  --timer-soft: #edf3f6;
  border-color: #dce7eb;
  background: linear-gradient(110deg, #f1f6f8, #fffefb 42%, #f7fafb);
}
.live-kicker {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  color: var(--timer-accent);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .2em;
  line-height: 1.3;
  white-space: nowrap;
  transition: color .35s;
}
.live-strip .live-reading {
  grid-column: 2;
  grid-row: 2;
  display: inline-flex;
  align-items: baseline;
  gap: .1em;
  color: color-mix(in srgb, var(--timer-accent) 34%, var(--ink));
  font-family: "Avenir Next", "Helvetica Neue", sans-serif;
  font-size: clamp(2.55rem, 5.3vw, 4.25rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: .035em;
  font-variant-numeric: tabular-nums lining-nums;
  white-space: nowrap;
  text-align: center;
  text-shadow: none;
}
.live-strip .live-reading #live-duration { min-width: 7ch; }
.live-sign {
  color: var(--timer-accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: .64em;
  font-weight: 500;
  letter-spacing: -.04em;
  transition: color .35s;
}
.live-context {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
  color: #62786a;
  font-size: .82rem;
  line-height: 1.55;
}
.live-dot {
  background: var(--timer-accent);
  box-shadow: 0 0 0 5px var(--timer-soft);
  transition: background .35s, box-shadow .35s;
}
.live-energy {
  grid-column: 1 / -1;
  grid-row: 3;
  display: block;
  height: 3px;
  overflow: hidden;
  border-radius: 99px;
  background: color-mix(in srgb, var(--timer-accent) 12%, white);
}
.live-energy > span {
  display: block;
  width: 34%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, var(--timer-accent), #fff 50%, var(--timer-accent), transparent);
  animation: timer-energy 3.8s ease-in-out infinite;
  transition: background .35s;
}
.live-strip.is-desire .live-energy > span { animation-direction: reverse; }
.live-strip > .meditation-page-link { grid-column: 3; grid-row: 1 / span 2; align-self: center; color: var(--timer-accent); }
@keyframes timer-energy {
  from { transform: translateX(-110%); }
  to { transform: translateX(310%); }
}
@media (max-width: 760px) {
  .live-strip {
    min-height: 143px;
    padding: 17px 16px 19px;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto 3px;
    gap: 7px;
  }
  .live-kicker { grid-column: 1; grid-row: 1; font-size: .58rem; }
  .live-strip .live-reading { grid-column: 1; grid-row: 2; font-size: clamp(2.6rem, 12vw, 3.5rem); }
  .live-context { grid-column: 1; grid-row: 3; justify-content: center; font-size: .74rem; }
  .live-energy { grid-column: 1; grid-row: 4; }
  .live-strip > .meditation-page-link { grid-column: 1; grid-row: 5; justify-self: center; }
}
@media (prefers-reduced-motion: reduce) {
  .live-energy > span { animation: none; width: 100%; opacity: .55; }
}

/* Bring the timer choices and active readout into the same quiet card language as the rest of V3. */
.timer-section .section-heading { margin-bottom: 20px; }
.timer-grid { gap: 18px; align-items: stretch; }
.timer-card {
  position: relative;
  min-height: 246px;
  padding: 25px 26px 22px;
  overflow: visible;
  border-radius: 22px;
  box-shadow: 0 5px 18px #29423908;
  transition: transform .2s ease, box-shadow .2s ease, outline-color .2s ease;
}
.recover-card { background: #eff7fa; border-color: #dcecf2; color: #55798b; }
.explore-card { background: #fbf1ef; border-color: #f0dfdc; color: #966461; }
.create-card { background: #f0f8f2; border-color: #deede3; color: #5d8067; }
.timer-card:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 9px 22px #29423910; }
.timer-card:disabled:not(.is-active) { opacity: .84; }
.timer-card.is-active {
  border-width: 1px;
  outline: 2px solid color-mix(in srgb, currentColor 82%, #59443f);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px #ffffffa8, 0 10px 24px #29423910;
}
.timer-icon {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: #ffffffb5;
  border-color: #ffffffd9;
  box-shadow: inset 0 1px #fff;
}
.timer-icon svg { width: 25px; height: 25px; }
.card-index { color: currentColor; opacity: .55; letter-spacing: .18em; }
.timer-name {
  margin-top: 23px;
  font-size: clamp(2.3rem, 3.2vw, 3.35rem);
  font-weight: 400;
  letter-spacing: -.06em;
}
.timer-translation { margin-top: 9px; font-size: .84rem; opacity: .72; }
.timer-action { padding-top: 18px; font-size: .82rem; font-weight: 700; }
.timer-action span { font-size: 1.2rem; }
.live-strip {
  --timer-accent: #5d8067;
  --timer-soft: #eff8f1;
  min-height: 112px;
  margin-top: 18px;
  padding: 18px 22px 20px;
  border-color: #deede3;
  border-radius: 20px;
  background: #f0f8f2;
  box-shadow: 0 5px 18px #29423908;
}
.live-strip.is-desire {
  --timer-accent: #966461;
  --timer-soft: #fbf1ef;
  border-color: #f0dfdc;
  background: #fbf1ef;
  box-shadow: 0 5px 18px #9664610a;
}
.live-strip.is-recover {
  --timer-accent: #55798b;
  --timer-soft: #eff7fa;
  border-color: #dcecf2;
  background: #eff7fa;
}
.live-strip .live-reading {
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(2.55rem, 4.7vw, 4rem);
  font-weight: 400;
  letter-spacing: .015em;
}
.live-kicker { font-size: .61rem; letter-spacing: .19em; }
.live-context { color: color-mix(in srgb, var(--timer-accent) 88%, var(--ink)); font-size: .78rem; }
.live-energy { background: color-mix(in srgb, var(--timer-accent) 15%, white); }
.live-energy > span { width: 26%; opacity: .68; }
.live-strip > .meditation-page-link { font-size: .76rem; }
.live-strip > .shared-meditation-switch { grid-column: 3; grid-row: 1 / span 2; align-self: center; justify-self: end; border: 1px solid color-mix(in srgb, var(--timer-accent) 35%, white); border-radius: 999px; padding: 10px 15px; background: #fffefa; color: var(--timer-accent); font: inherit; font-size: .76rem; font-weight: 750; cursor: pointer; }
.live-strip > .shared-meditation-switch:hover { background: var(--timer-soft); }
.live-strip > .shared-meditation-switch[hidden] { display: none; }
.live-strip > .shared-meditation-switch:disabled { cursor: default; opacity: .5; }
@media (max-width: 760px) {
  .live-strip > .shared-meditation-switch { grid-column: 1; grid-row: 5; justify-self: center; }
}
@media (max-width: 1050px) and (min-width: 761px) {
  .timer-card { min-height: 226px; padding: 21px 19px 19px; }
  .timer-icon { width: 44px; height: 44px; border-radius: 14px; }
  .timer-name { margin-top: 19px; font-size: clamp(2rem, 4vw, 2.8rem); }
}
@media (max-width: 760px) {
  .timer-grid { gap: 12px; }
  .timer-card {
    min-height: 174px;
    padding: 17px 19px 15px;
    border-radius: 18px;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto;
    gap: 7px 14px;
  }
  .card-top { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .timer-icon { width: 43px; height: 43px; border-radius: 14px; }
  .timer-name { grid-column: 1; grid-row: 1; margin: 0; font-size: 2.35rem; }
  .timer-translation { grid-column: 1; grid-row: 2; margin: 0; font-size: .74rem; }
  .timer-action { grid-column: 1 / -1; grid-row: 3; padding-top: 8px; font-size: .76rem; }
  .live-strip { min-height: 140px; border-radius: 18px; }
  .live-strip .live-reading { font-size: clamp(2.55rem, 11vw, 3.35rem); }
  .live-kicker { font-size: .55rem; }
}

/* Put the two progress dials first, then the page title and timer choices. */
.daily-goals {
  margin-top: 30px;
  padding: clamp(20px, 3vw, 38px);
  background: linear-gradient(130deg, #fbfdfa 0%, #f4f8f2 100%);
}
.goal-progress-grid { margin-top: 0; gap: clamp(14px, 2vw, 26px); }
.goal-progress {
  min-height: 230px;
  padding: clamp(22px, 3vw, 34px);
  border-radius: 20px;
  background: #fffefbd9;
}
.goal-progress-body { gap: clamp(22px, 3vw, 42px); }
.goal-pie { width: clamp(128px, 11vw, 178px); }
.goal-progress-copy > strong { font-size: clamp(2rem, 3.2vw, 3rem); }
.daily-goals-heading {
  margin-top: clamp(20px, 3vw, 32px);
  padding-top: clamp(20px, 3vw, 30px);
  border-top: 1px solid #dce8dc;
}
.bedtime-setting-card > strong { font-size: clamp(1.35rem, 2vw, 1.9rem); }
.hero {
  min-height: 0;
  justify-content: center;
  padding: clamp(48px, 6vw, 82px) 16px clamp(36px, 5vw, 64px);
  text-align: center;
}
.hero-copy { max-width: 100%; }
.hero h1 { font-size: clamp(3rem, 5.8vw, 6rem); }
.hero-description { margin-inline: auto; }
.hero-mark { display: none; }
.page-nav { margin-right: 24px; }
.timer-section .section-heading h2 { font-size: clamp(1.55rem, 2.3vw, 2.15rem); }
.timer-card.is-bedtime-locked {
  opacity: 1 !important;
  background: #f1f2ef;
  border-color: #dfe2dc;
  color: #88928b;
  box-shadow: none;
  cursor: not-allowed;
  filter: grayscale(.9);
}
.timer-card.is-bedtime-locked .timer-icon { background: #fafbf8; }
.timer-card.is-bedtime-locked .timer-action { color: #748078; }
@media (max-width: 760px) {
  .daily-goals { margin-top: 16px; padding: 18px; }
  .goal-progress-grid { gap: 14px; }
  .goal-progress { min-height: 0; padding: 20px; }
  .goal-pie { width: clamp(100px, 26vw, 136px); }
  .goal-progress-body { gap: 18px; }
  .daily-goals-heading { margin-top: 20px; padding-top: 20px; }
  .bedtime-setting-card > strong { font-size: clamp(1.05rem, 4vw, 1.5rem); }
  .hero { padding: 42px 4px 34px; }
  .hero h1 { font-size: clamp(2.55rem, 9.5vw, 4.5rem); }
  .page-nav { margin-right: 0; justify-content: center; }
}

/* The launch viewport begins at the choices; progress stays directly below. */
.timer-section + .daily-goals { margin-top: 24px; }
@media (max-width: 760px) {
  .timer-section + .daily-goals { margin-top: 14px; }
  .goal-progress-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .goal-progress { padding: 15px 10px; border-radius: 16px; }
  .goal-title { display: block; text-align: center; font-size: 1.05rem; }
  .goal-progress-body { flex-direction: column; gap: 12px; margin-top: 12px; }
  .goal-pie { width: clamp(76px, 21vw, 98px); }
  .goal-progress-copy { align-items: center; text-align: center; gap: 4px; }
  .goal-progress-copy > strong { font-size: clamp(1.15rem, 4vw, 1.55rem); }
  .goal-progress-copy > span { font-size: .7rem; line-height: 1.4; }
  .goal-progress-copy p { display: none; }
}
.explore-card.is-active:disabled { opacity: 1; cursor: default; }
.meditation-preference { box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: 18px; width: min(100%, 390px); min-height: 64px; margin: 16px 0 0 auto; padding: 12px 17px; border: 1px solid #dce7dc; border-radius: 18px; background: #f9fbf7; color: #3e6049; cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s; }
.meditation-preference:hover { border-color: #b8d0ba; background: #f2f7f0; }
.meditation-preference:focus-within { outline: 2px solid #90b699; outline-offset: 3px; }
.meditation-preference-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.meditation-preference-copy strong { font-size: .84rem; font-weight: 750; }
.meditation-preference-copy small { color: #86988a; font-size: .68rem; letter-spacing: .02em; }
.meditation-preference-control { display: inline-flex; align-items: center; gap: 10px; flex: none; font-size: .73rem; font-weight: 700; }
.meditation-preference input { position: relative; appearance: none; width: 41px; height: 24px; margin: 0; border: 1px solid #c8d2ca; border-radius: 999px; background: #dbe1db; cursor: pointer; transition: background .2s, border-color .2s; }
.meditation-preference input::before { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: white; box-shadow: 0 1px 3px #29423935; transition: transform .2s; }
.meditation-preference input:checked { border-color: #719a79; background: #719a79; }
.meditation-preference input:checked::before { transform: translateX(17px); }
.meditation-preference input:focus-visible { outline: none; }
.meditation-preference:has(input:disabled) { opacity: .6; cursor: default; }
.meditation-preference input:disabled { cursor: default; }
@media (max-width: 480px) { .meditation-preference { width: 100%; margin-top: 12px; } }

/* V3 keeps the three dials separate from the three matching project cards. */
.timer-grid, .goal-progress-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.daily-goals { padding: 0; border: 0; background: transparent; box-shadow: none; }
.goal-progress-grid { margin: 0; }
.goal-progress { min-width: 0; min-height: 242px; padding: clamp(16px, 2vw, 26px); }
.sleep-goal { border-color: #d8e8ee; background: #f2f8fa; }
.desire-goal { border-color: #eddcd9; background: #fbf3f1; }
.create-goal { border-color: #d9e8dc; background: #f2f8f1; }
.goal-title-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.core-sleep-button { border: 0; background: transparent; color: #5d7f90; cursor: pointer; font-family: inherit; font-size: .75rem; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.core-sleep-button:hover, .core-sleep-button:focus-visible { text-decoration: underline; }
.sleep-pie { background: #e6eff1; }
.sleep-goal .goal-progress-copy > strong { color: #456f82; }
.goal-progress-body { gap: clamp(12px, 1.5vw, 20px); }
.goal-pie { width: clamp(96px, 9vw, 136px); }
.goal-progress-copy { min-width: 0; }
.goal-progress-copy > strong { font-size: clamp(1.3rem, 2vw, 2rem); overflow-wrap: anywhere; }
.goal-progress-copy > span { overflow-wrap: anywhere; }
.daily-goals-heading { padding: clamp(18px, 2.5vw, 28px); border: 1px solid #dce8dc; border-radius: 20px; background: linear-gradient(115deg, #fffffc, #f0f5ec); }
.goal-progress.is-bedtime-locked { filter: grayscale(.75); opacity: .72; }
@media (max-width: 760px) {
  .timer-grid, .goal-progress-grid { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(235px, 78vw); grid-template-columns: none; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding: 4px 4px 10px; }
  .timer-card, .goal-progress { scroll-snap-align: start; }
  .timer-card { min-height: 210px; }
  .goal-progress { min-height: 215px; padding: 18px; }
  .goal-progress-body { flex-direction: row; align-items: center; gap: 16px; }
  .goal-pie { width: 95px; }
  .goal-progress-copy { align-items: flex-start; text-align: left; }
  .goal-progress-copy > strong { font-size: 1.5rem; }
  .goal-progress-copy > span { font-size: .72rem; }
  .goal-progress-copy p { display: block; font-size: .68rem; }
  .daily-goals-heading { margin-top: 12px; padding: 18px; }
}

/* Four-column reflection ledger: benefit, patterns, strategy, time cost. */
.project-head, .project-row {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr) minmax(150px, .85fr) 30px;
  column-gap: 18px;
}
.project-note-cell { display: block; min-width: 0; }
.project-note-cell .project-note { width: 100%; min-height: 64px; }
.project-mobile-label { display: none; }
@media (max-width: 760px) {
  .project-row {
    grid-template-columns: minmax(0, 1fr) minmax(110px, .8fr);
    grid-template-areas: "main cost" "rule rule" "strategy strategy" "delete delete";
  }
  .project-note-cell.rule-cell { grid-area: rule; }
  .project-note-cell.strategy-cell { grid-area: strategy; }
  .project-mobile-label { display: block; color: var(--muted); font-size: .75rem; margin: 6px 0; }
  .project-note-cell .project-note { min-height: 54px; }
}

.project-panel-tools { display: flex; align-items: center; gap: 16px; }
.project-panel-tools .add-project-button { padding: 7px 11px; font-size: .78rem; }
@media (max-width: 760px) {
  .project-panel-title { flex-wrap: wrap; gap: 12px; }
  .project-panel-tools { flex-wrap: wrap; gap: 10px; }
  .project-head { display: none; }
}
