#launchScreen{position:fixed;inset:0;background:#eee8df;z-index:100;display:flex;align-items:center;justify-content:center;flex-direction:column;color:#43493e}#launchScreen img{border-radius:24px;object-fit:contain}#launchScreen p{font:1.4rem Georgia,serif;margin:22px 0 8px}#launchScreen small{letter-spacing:.16em}#launchScreen[hidden]{display:none}#connectionStatus,#updateNotice{padding:14px 20px;background:#ede7dc;color:#465546;border-bottom:1px solid #d7d1c4}#updateNotice button{margin-left:12px}.pwa-links{display:flex;gap:16px;flex-wrap:wrap;margin:18px 0}.pwa-links a{color:#465546}.main{padding-top:max(30px,env(safe-area-inset-top))}dialog{max-width:520px;width:calc(100% - 32px);padding:24px;border:1px solid #d7d1c4;border-radius:20px;color:#363b33;background:#fffdfa}dialog::backdrop{background:#363b3380}.account-form input{max-width:100%}@media(max-width:760px){.main{padding-top:max(22px,env(safe-area-inset-top))}}

.account-card p,.account-card strong{overflow-wrap:anywhere}.account-switch>*{max-width:100%}

.password-field{position:relative;width:100%;margin:6px 0 14px}.password-field input.input{height:48px;min-height:48px;resize:none;padding-right:54px;font-size:16px}.password-field .password-toggle{position:absolute;right:2px;top:2px;margin:0;width:44px;height:44px;min-height:44px;border:0;border-radius:11px;background:transparent;color:#465546;display:flex;align-items:center;justify-content:center;cursor:pointer;touch-action:manipulation}.password-toggle:hover{background:#edf0e7}.password-toggle:focus-visible{outline:2px solid #465546;outline-offset:1px}.password-toggle svg{pointer-events:none}

.practice-guide{width:100%;max-width:620px}.practice-guide label{display:block;margin:15px 0 6px;font-weight:700}.practice-guide select{width:100%;padding:12px;border:1px solid #d9d5c9;border-radius:12px;background:#fffdfa;color:#363b33;font:inherit;min-height:46px}.practice-guide .guide-option{display:flex;gap:10px;align-items:center;font-weight:400;min-height:44px}.guide-option input{width:20px;height:20px;accent-color:#465546}.guide-small{font-size:.87rem;line-height:1.5}.guide-circle{width:100px;height:100px;border-radius:50%;border:2px solid #74836c;background:#e9eee5;margin:35px auto;transition:transform .15s linear}.guide-phase{font:1.3rem Georgia,serif;line-height:1.4;color:#465546}.guide-step{line-height:1.65}.guide-step:focus-visible{outline:2px solid #74836c;outline-offset:5px}.guide-time{font-variant-numeric:tabular-nums;color:#626b5a;min-height:24px}.guide-actions{display:flex;gap:10px;flex-wrap:wrap;margin:20px 0}.guide-actions button{min-height:44px}.guide-safety{font-size:.9rem;line-height:1.55;border-top:1px solid #d9d5c9;padding-top:16px}@media(prefers-reduced-motion:reduce){.guide-circle{transition:none}}
.full-checkin summary{cursor:pointer;display:flex;flex-direction:column;gap:8px;min-height:44px}.full-checkin summary:focus-visible{outline:2px solid #74836c;outline-offset:5px}.full-checkin[open]{border-color:#74836c}.exact-time{display:block;font-weight:400;font-size:.76rem;color:#72766c;overflow-wrap:anywhere;margin-top:5px}.checkin-detail-body h3{margin-top:26px}.answer-row{padding:13px 0;border-bottom:1px solid #e5dfd3}.answer-row dt{font-weight:700;line-height:1.5}.answer-row dd{margin:7px 0 0;line-height:1.6;overflow-wrap:anywhere}.saved-answer{white-space:pre-wrap}.answer-row ul{margin:0;padding-left:22px}.practice-record{border-left:2px solid #74836c;padding-left:16px;margin:22px 0}.practice-record h4{font:1.15rem Georgia,serif;margin:0}.history-actions{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}.calmness-pair{padding:15px 0;border-bottom:1px solid #e5dfd3}.rating-row{display:grid;grid-template-columns:115px 1fr;align-items:center;gap:12px;margin:10px 0;font-size:.9rem}.rating-track{height:12px;background:#eeece5;border-radius:8px;overflow:hidden}.rating-track i{display:block;height:100%;background:#a5ad99;border-radius:8px}.rating-track.after i{background:#4d604c}.trend-table-wrap{overflow-x:auto}.trend-table{width:100%;border-collapse:collapse;font-size:.88rem}.trend-table th,.trend-table td{padding:10px;border-bottom:1px solid #e5dfd3;text-align:left}.tracking-form select{width:100%;padding:12px;border-radius:12px;border:1px solid #d9d5c9;background:#fffdfa;font:inherit;color:#363b33;min-height:44px}.tracking-form label{display:block;font-weight:700;margin:18px 0 8px}.tracking-form small{line-height:1.5;display:block}.baseline-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.regulation-trends .card{margin-top:18px}@media(max-width:390px){.rating-row{grid-template-columns:95px 1fr}.trend-table th,.trend-table td{padding:8px 6px}}
.history-hide{display:none}.full-checkin[open]>summary .history-hide{display:inline}.full-checkin[open]>summary .history-show{display:none}.full-checkin summary .history-show,.full-checkin summary .history-hide{font-weight:600;color:#465546;font-size:.88rem}.nav-short{display:none}.nav-label,.nav-full{font-size:inherit!important}@media(max-width:760px){.bottom{grid-template-columns:repeat(6,minmax(0,1fr))}.bottom .nav-label{font-size:.58rem!important;line-height:1.25}.bottom .nav-full{display:none}.bottom .nav-short{display:inline;font-size:inherit!important}.main{padding-bottom:calc(120px + env(safe-area-inset-bottom))}}

#journalArea label{display:block;margin:18px 0 8px}#journalArea select{width:100%;min-height:44px;font-size:16px}#journalBody{min-height:240px}#journalArea article{margin:16px 0}#journalArea time{font-size:.85rem;color:#666c60}#journalArea article p{white-space:pre-wrap;overflow-wrap:anywhere}#journalArea textarea{font-size:16px}

.journey-stats{margin:22px 0}.journey-stats .stat span{font-size:.9rem;color:#626b5a}.journey-stats .stat b{font:2rem Georgia,serif;color:#465546;margin-top:10px}.journey-empty{padding:14px 0}.journey-empty h3{font-size:1.15rem;margin-bottom:8px}.journey-empty p{margin:0;color:#626b5a}.journey-info{margin-top:25px;font-size:.85rem}.journey-info a{color:#626b5a;text-underline-offset:3px}

.unified-journey section{margin:2.5rem 0}.journey-more,.journey-measure{margin:1rem 0;padding:1rem 0;border-bottom:1px solid var(--line,#dedbd2)}.journey-more>summary,.journey-measure>summary{cursor:pointer;min-height:44px;display:flex;align-items:center}.unified-journey .rating-row{flex-wrap:wrap}.unified-journey .rating-track{min-width:100px}.unified-journey summary{overflow-wrap:anywhere}

.journey-line{display:block;width:100%;height:auto;touch-action:pan-y}.journey-line text{font:12px Arial,sans-serif;fill:#465546}.chart-grid{stroke:#dedbd2;stroke-width:1}.chart-line{fill:none;stroke:#74836c;stroke-width:2}.chart-point{fill:#74836c}.chart-point.is-selected{fill:#364c38;stroke:#f7f1e7;stroke-width:2}.chart-selection{display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-height:48px}.chart-picker{display:block;margin:12px 0}.chart-point-picker{display:block;width:100%;max-width:100%;font:16px Arial,sans-serif;min-height:44px;padding:8px;color:#363b33;background:#fffdfa;border:1px solid #dedbd2;border-radius:8px}.journey-plot{width:100%;min-width:0}

@media(max-width:760px){.bottom{grid-template-columns:repeat(5,minmax(0,1fr))}.bottom:has([data-nav=journal]){grid-template-columns:repeat(6,minmax(0,1fr))}}

/* Private journal uses the existing calm palette and responsive shell. */
.journal-space{max-width:760px}.journal-space label{display:block;margin:20px 0 8px}.journal-space select{width:100%;min-height:46px;background:var(--paper,#fff);color:inherit;border:1px solid #c3cebf;border-radius:10px;padding:12px;font:inherit}.journal-space fieldset{border:0;padding:0;min-width:0;margin-top:18px}.journal-space textarea{min-height:260px;line-height:1.7;resize:vertical}.journal-space time{font-size:.9rem;color:var(--muted,#617060)}.journal-space details{margin:18px 0}.journal-space summary{cursor:pointer}.journal-date{margin-top:32px;font-size:1.25rem}.journal-excerpt{overflow-wrap:anywhere;white-space:pre-wrap}.journal-space .card h3{overflow-wrap:anywhere}.journal-space button{min-height:44px}.journal-space [role=alert]{color:#7c3434}@media(max-width:600px){.journal-space textarea{min-height:220px}.journal-space .primary{width:100%}}

.phone-install-guide[hidden]{display:none}.phone-install-guide{margin-top:24px;padding:20px;border:1px solid #d8ddcf;border-radius:14px;background:#faf9f3}.install-guide-heading{display:flex;align-items:center;gap:12px}.install-guide-heading img{border-radius:50%;flex:none}.install-guide-heading h4{margin:0;font-size:1.25rem}.install-steps{list-style:none;counter-reset:install-step;padding:0;margin:22px 0}.install-steps li{counter-increment:install-step;display:flex;gap:16px;align-items:flex-start;margin:20px 0;line-height:1.6}.install-steps strong:before{content:counter(install-step) '. '}.install-step-icon{color:#53674c;background:#e8eddf;border-radius:12px;padding:12px;flex:none}.install-step-icon svg{width:26px;height:26px;display:block}.install-steps p{margin:5px 0 0}.safety-choice{margin:24px 0;padding:18px;border:1px solid #dddccf;border-radius:12px}.safety-choice summary,.safety-resources summary{cursor:pointer;min-height:44px;display:flex;align-items:center}.safety-answers{display:flex;flex-direction:column;gap:12px;margin-top:20px}.safety-answers button{text-align:left;min-height:48px;white-space:normal}.safety-resources{margin-top:30px}.safety-resources .inline-link{min-height:44px}@media(max-width:480px){.phone-install-guide{padding:14px}.install-steps li{gap:10px}.install-step-icon{padding:9px}.install-guide-heading h4{font-size:1.1rem}#installControl>.primary{width:100%;white-space:normal}}

.home-hero{padding:clamp(22px,4vw,36px);margin-bottom:24px}.home-hero h1{font-size:clamp(2rem,6vw,2.8rem);margin-bottom:12px}.home-hero p{margin-bottom:0}.home-hero .actions{margin-top:20px;gap:10px}.topline{margin-bottom:24px}.topline #accountButton{margin-left:auto}@media(max-width:760px){.topline{margin-bottom:18px}.home-hero{padding:24px 20px;margin-bottom:20px}.home-hero .actions{flex-direction:column;align-items:stretch}.home-hero .actions button{width:100%;white-space:normal}}
