:root{font-family:Microsoft YaHei,PingFang SC,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#1f2523;background:#dde2df;font-synthesis:none;text-rendering:optimizeLegibility;letter-spacing:0;--ink: #1f2523;--muted: #66706c;--line: #dfe4e1;--soft: #f5f7f5;--paper: #ffffff;--green: #28745f;--green-dark: #1d5b4a;--green-soft: #deeee8;--coral: #c95645;--coral-soft: #f7e4df;--yellow: #d8a334;--yellow-soft: #faedce;--blue: #4e6e9c;--blue-soft: #e2e9f3;--danger: #a83e39;--nav-height: 70px}*{box-sizing:border-box}html,body,#root{min-width:0;min-height:100%}html{background:#dde2df}body{min-height:100vh;margin:0;color:var(--ink);background:#dde2df;letter-spacing:0}button,input,textarea{font:inherit;letter-spacing:0}button{color:inherit}button:not(:disabled){cursor:pointer}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid rgba(78,110,156,.34);outline-offset:2px}h1,h2,h3,p{margin:0}.page-frame{min-height:100vh}.mobile-shell{position:relative;width:min(100%,480px);min-height:100vh;margin:0 auto;padding-bottom:calc(var(--nav-height) + 20px + env(safe-area-inset-bottom));overflow:hidden;background:#f7f8f7;box-shadow:0 0 0 1px #1f25230f,0 18px 60px #1f252324}.app-header{display:flex;align-items:flex-end;justify-content:space-between;min-height:118px;gap:16px;padding:max(20px,env(safe-area-inset-top)) 18px 17px;border-bottom:1px solid var(--line);background:#fff}.storage-label{display:inline-flex;align-items:center;min-height:22px;gap:5px;padding:3px 7px;border:1px solid #cbd4cf;border-radius:4px;color:#56615d;font-size:10px;font-weight:800}.app-header p{margin-top:9px;color:var(--muted);font-size:12px;font-weight:700}.app-header h1{margin-top:3px;font-size:28px;line-height:1.15}.icon-button{display:inline-flex;flex:0 0 42px;align-items:center;justify-content:center;width:42px;height:42px;padding:0;border:1px solid #d4dbd7;border-radius:6px;background:#fff}.icon-button:hover{background:#f1f4f2}.icon-button.is-danger{color:var(--danger)}.cycle-strip-wrap{padding:13px 0 15px;overflow:hidden;border-bottom:1px solid var(--line);background:#fff}.cycle-strip-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 18px 10px;color:var(--muted);font-size:11px;font-weight:800}.date-picker-label{position:relative;display:inline-flex;align-items:center;gap:6px}.date-picker-label input{width:108px;min-height:30px;padding:3px 5px;border:1px solid #d5dcd8;border-radius:5px;color:#44504b;background:#fff;font-size:11px}.cycle-strip{display:grid;grid-auto-columns:44px;grid-auto-flow:column;gap:5px;padding:0 18px 4px;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:none}.cycle-strip::-webkit-scrollbar{display:none}.cycle-day{position:relative;display:grid;grid-template-rows:16px 28px 15px;align-items:center;justify-items:center;width:44px;height:65px;padding:0;border:1px solid #dfe5e1;border-radius:6px;color:#53605b;background:#fff}.cycle-day small,.cycle-day span{font-size:9px;font-weight:800}.cycle-day strong{font-size:15px}.cycle-day.phase-premenstrual{border-color:#edc9c0;background:#fff6f4}.cycle-day.phase-period{border-color:#cbd6e5;background:#f2f6fa}.cycle-day:disabled{color:#a4aca8;background:#f5f6f5}.cycle-day.is-selected{border:2px solid var(--ink);color:#fff;background:var(--ink)}.cycle-day i{position:absolute;right:4px;bottom:4px;width:5px;height:5px;border-radius:50%;background:var(--coral)}.cycle-day.is-selected i{background:#f3bd4d}.past-day-banner{display:flex;align-items:center;justify-content:space-between;min-height:42px;gap:12px;padding:8px 18px;border-bottom:1px solid #cbd7e6;color:#405774;background:var(--blue-soft);font-size:11px;font-weight:700}.past-day-banner button{min-height:28px;padding:4px 8px;border:1px solid #9eb0c8;border-radius:5px;color:#405774;background:#fff;font-size:10px;font-weight:800}.today-main,.trends-view main,.settings-view main{padding-bottom:8px}.rhythm-summary{display:grid;grid-template-columns:1fr 74px 74px;align-items:end;gap:10px;padding:18px;border-bottom:1px solid var(--line);background:#fff}.cycle-pill{display:inline-flex;align-items:center;min-height:26px;padding:4px 9px;border-radius:999px;color:#34413c;background:#f1f4f2;font-size:11px;font-weight:800}.cycle-pill>span{width:7px;height:7px;margin-right:6px;border-radius:50%;background:var(--green)}.cycle-pill.phase-premenstrual>span{background:var(--coral)}.cycle-pill.phase-period>span{background:var(--blue)}.phase-summary h2{margin-top:8px;font-size:25px;line-height:1.15}.phase-summary p{margin-top:4px;color:var(--muted);font-size:10px}.summary-metric{display:flex;min-height:66px;flex-direction:column;align-items:center;justify-content:center;border-left:1px solid var(--line)}.summary-metric strong{font-size:22px}.summary-metric span{margin-top:4px;color:var(--muted);font-size:10px;text-align:center}.phase-guidance{display:grid;grid-template-columns:22px 1fr;align-items:start;gap:8px;padding:12px 18px;border-bottom:1px solid #ecd8ac;color:#5f4c27;background:var(--yellow-soft)}.phase-guidance.phase-period{border-bottom-color:#cbd7e6;color:#405774;background:var(--blue-soft)}.phase-guidance.phase-steady{border-bottom-color:#c6dbd2;color:#365c50;background:var(--green-soft)}.phase-guidance svg{margin-top:1px}.phase-guidance p{font-size:11px;line-height:1.55}.period-action-band{display:flex;align-items:center;justify-content:space-between;min-height:48px;gap:12px;margin-top:10px;padding:8px 18px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:#fff}.period-action-band>div{display:inline-flex;align-items:center;gap:8px;font-size:12px;font-weight:700}.period-action-band svg{color:var(--coral)}.period-action-band button{display:inline-flex;align-items:center;justify-content:center;min-width:48px;min-height:30px;padding:5px 9px;border:1px solid #d7b5ae;border-radius:5px;color:var(--coral);background:#fff;font-size:11px;font-weight:800}.period-action-band button:disabled{border-color:#bed5cb;color:var(--green);background:var(--green-soft)}.content-section,.settings-section{margin-top:10px;padding:18px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:#fff}.section-heading{display:grid;grid-template-columns:30px 1fr auto;align-items:center;min-height:32px;gap:8px;margin-bottom:14px}.section-heading>span{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:6px;color:var(--green);background:var(--green-soft)}.section-heading h2{font-size:16px;line-height:1.3}.section-heading small{color:var(--muted);font-size:10px;font-weight:700}.timeline{display:flex;flex-direction:column}.timeline-item{display:grid;grid-template-columns:44px 34px 1fr 25px;align-items:center;min-height:64px;width:100%;gap:7px;padding:5px 0;border:0;border-top:1px solid #edf0ee;text-align:left;background:transparent}.timeline-item:first-child{border-top:0}.timeline-item time{color:var(--muted);font-size:10px;font-weight:800}.timeline-node{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border:1px solid #d9e0dc;border-radius:50%;color:var(--blue);background:#fff}.timeline-copy{display:flex;min-width:0;flex-direction:column;gap:3px}.timeline-copy strong{font-size:13px;line-height:1.35}.timeline-copy small{color:var(--muted);font-size:10px;line-height:1.35}.timeline-check{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border:1px solid #c4cdc8;border-radius:50%}.timeline-item.is-complete .timeline-check{border-color:var(--green);color:#fff;background:var(--green)}.timeline-item.is-complete .timeline-copy strong{color:var(--green)}.timeline-item.is-complete .timeline-node{color:var(--green);background:var(--green-soft)}.symptom-matrix{width:100%}.matrix-header,.symptom-row{display:grid;grid-template-columns:minmax(74px,1fr) 176px;align-items:center;gap:8px}.matrix-header{min-height:24px;color:var(--muted);font-size:9px;font-weight:700}.matrix-header span:first-child{text-align:left}.matrix-header span:not(:first-child){display:inline-block;width:40px;text-align:center}.matrix-header{grid-template-columns:minmax(74px,1fr) repeat(4,40px);gap:4px}.symptom-row{min-height:54px;border-top:1px solid #edf0ee}.symptom-row>span{font-size:12px;font-weight:800}.symptom-row>div{display:grid;grid-template-columns:repeat(4,40px);justify-content:end;gap:4px}.symptom-row button{display:inline-flex;align-items:center;justify-content:center;width:40px;height:38px;padding:0;border:1px solid #d5dcd8;border-radius:5px;color:#5b6561;background:#fff;font-size:11px;font-weight:800}.symptom-row button.is-active{border-color:var(--green);color:#fff;background:var(--green)}.context-nudge{display:grid;grid-template-columns:22px 1fr;align-items:start;gap:8px;margin-top:12px;padding:11px 12px;border-left:3px solid var(--yellow);color:#5f4c27;background:var(--yellow-soft)}.context-nudge svg{margin-top:2px}.context-nudge p{font-size:11px;line-height:1.55}.note-section textarea{display:block;width:100%;min-height:104px;padding:12px;resize:vertical;border:1px solid #d4dbd7;border-radius:6px;color:var(--ink);background:#fff;font-size:13px;line-height:1.6}.note-section textarea::placeholder{color:#98a19d}.save-section{padding:18px 18px 22px;text-align:center}.primary-button{display:inline-flex;align-items:center;justify-content:center;width:100%;min-height:48px;gap:8px;padding:10px 15px;border:1px solid transparent;border-radius:6px;color:#fff;background:var(--green);font-weight:800}.primary-button:not(:disabled):hover{background:var(--green-dark)}.primary-button:disabled{color:#929b97;background:#e5e9e7}.save-section p{margin-top:8px;color:var(--muted);font-size:10px}.trend-summary-band{display:grid;grid-template-columns:repeat(3,1fr);padding:16px 18px;border-bottom:1px solid var(--line);background:#fff}.trend-summary-band .summary-metric:first-child{border-left:0}.chart-section{overflow:hidden}.fourteen-chart{display:grid;grid-template-columns:repeat(14,minmax(18px,1fr));min-height:150px;gap:4px}.chart-column{display:grid;grid-template-rows:20px 100px 20px;align-items:end;min-width:0;text-align:center}.chart-column>span,.chart-column small{color:var(--muted);font-size:8px;font-weight:700}.chart-track{position:relative;height:100px;overflow:hidden;background:#edf1ef}.chart-track i{position:absolute;right:0;bottom:0;left:0;min-height:5px;background:var(--green)}.chart-track i.is-empty{min-height:0;background:transparent}.chart-column:nth-child(4n+2) .chart-track i:not(.is-empty){background:var(--yellow)}.chart-column:nth-child(4n) .chart-track i:not(.is-empty){background:var(--coral)}.empty-state{display:flex;flex-direction:column;align-items:center;padding:18px 16px 4px;color:var(--muted);text-align:center}.empty-state h2{margin-top:9px;color:var(--ink);font-size:15px}.empty-state p{max-width:290px;margin-top:5px;font-size:11px;line-height:1.55}.empty-state button{min-height:34px;margin-top:12px;padding:6px 10px;border:1px solid var(--green);border-radius:5px;color:var(--green);background:#fff;font-size:11px;font-weight:800}.symptom-profile{display:flex;flex-direction:column}.profile-row{display:grid;grid-template-columns:minmax(100px,1fr) minmax(90px,1.4fr) 30px;align-items:center;min-height:46px;gap:10px;border-top:1px solid #edf0ee}.profile-row:first-child{border-top:0}.profile-row>span{font-size:11px;font-weight:700;line-height:1.35}.profile-row>div{height:7px;overflow:hidden;background:#e8ecea}.profile-row i{display:block;height:100%;background:var(--coral)}.profile-row strong{font-size:11px;text-align:right}.comparison-table{border-top:1px solid var(--line)}.comparison-head,.comparison-row{display:grid;grid-template-columns:1.15fr repeat(3,.85fr);align-items:center;min-height:42px;gap:5px;border-bottom:1px solid var(--line);text-align:center}.comparison-head{min-height:34px;color:var(--muted);font-size:9px;font-weight:700;background:#f5f7f5}.comparison-row{font-size:11px}.comparison-row strong{text-align:left}.comparison-note,.comparison-result,.section-empty-copy{margin-top:12px;color:var(--muted);font-size:11px;line-height:1.55}.comparison-result{padding:10px 12px;border-left:3px solid var(--green);color:#365c50;background:var(--green-soft)}.comparison-result.is-higher{border-left-color:var(--coral);color:#6e3f37;background:var(--coral-soft)}.medical-footnote{display:grid;grid-template-columns:20px 1fr;gap:8px;margin:10px 18px 18px;padding:10px 12px;color:#4b5d56;background:#e9eeeb}.medical-footnote p{font-size:10px;line-height:1.5}.settings-fields{display:flex;flex-direction:column;gap:16px}.settings-fields label,.single-field{display:flex;flex-direction:column;gap:7px}.settings-fields label>span,.single-field>span{color:#4f5b56;font-size:11px;font-weight:800}.settings-fields input[type=date],.settings-fields input[type=number],.single-field input{width:100%;min-height:44px;padding:9px 10px;border:1px solid #cfd7d3;border-radius:5px;color:var(--ink);background:#fff}.two-column-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.number-field{position:relative}.number-field input{padding-right:34px!important}.number-field small{position:absolute;top:50%;right:11px;color:var(--muted);transform:translateY(-50%)}.range-field{display:grid;grid-template-columns:1fr 58px;align-items:center;gap:12px}.range-field input{width:100%;accent-color:var(--green)}.range-field strong{font-size:12px;text-align:right}.period-start-list{display:flex;flex-direction:column}.period-start-row{display:flex;align-items:center;justify-content:space-between;min-height:54px;gap:12px;border-top:1px solid #edf0ee}.period-start-row:first-child{border-top:0}.period-start-row>span{display:inline-flex;align-items:center;gap:8px;font-size:11px;font-weight:700}.period-start-row>span svg{color:var(--coral)}.period-start-row .icon-button{flex-basis:36px;width:36px;height:36px}.action-row{display:grid;grid-template-columns:38px 1fr auto;align-items:center;min-height:66px;gap:10px;border-top:1px solid #edf0ee}.action-row:first-of-type{border-top:0}.action-row>span{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:6px;color:var(--blue);background:var(--blue-soft)}.action-row>div{display:flex;min-width:0;flex-direction:column;gap:3px}.action-row strong{font-size:12px;line-height:1.35}.action-row small{color:var(--muted);font-size:9px;line-height:1.45}.action-row>button{min-width:52px;min-height:32px;padding:5px 8px;border:1px solid #b7c9c1;border-radius:5px;color:var(--green);background:#fff;font-size:10px;font-weight:800}.action-row>button:disabled{border-color:#d8dddb;color:#98a19d;background:#f2f4f3}.action-row.is-danger>span{color:var(--danger);background:var(--coral-soft)}.action-row.is-danger>button{border-color:#dfb0aa;color:var(--danger)}.privacy-band,.local-data-note{display:grid;grid-template-columns:25px 1fr;align-items:start;gap:9px;margin:10px 18px 0;padding:12px;border-left:3px solid var(--blue);color:#3f5068;background:var(--blue-soft)}.privacy-band strong{font-size:12px}.privacy-band p,.local-data-note p{margin-top:2px;font-size:10px;line-height:1.55}.version-label{padding:18px 18px 10px;color:#99a19d;font-size:9px;text-align:center}.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.bottom-navigation{position:fixed;z-index:30;right:0;bottom:0;left:0;display:grid;grid-template-columns:repeat(3,1fr);width:100%;max-width:480px;min-height:calc(var(--nav-height) + env(safe-area-inset-bottom));margin:auto;padding:6px 8px env(safe-area-inset-bottom);border-top:1px solid #cfd7d3;background:#fffffff7;box-shadow:0 -5px 18px #1f252314}.bottom-navigation button{display:flex;min-width:0;min-height:56px;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:4px;border:0;border-radius:6px;color:#7b8581;background:transparent}.bottom-navigation button.is-active{color:var(--green);background:var(--green-soft)}.bottom-navigation span{font-size:10px;font-weight:800}.modal-backdrop{position:fixed;z-index:60;top:0;right:0;bottom:0;left:0;display:flex;align-items:flex-end;justify-content:center;padding:0;background:#141a1894}.first-run-sheet,.confirm-dialog{width:min(100%,480px);max-height:92vh;padding:10px 18px max(22px,env(safe-area-inset-bottom));overflow-y:auto;border-radius:8px 8px 0 0;background:#fff;box-shadow:0 -12px 40px #0000002e}.sheet-handle{width:42px;height:4px;margin:0 auto 18px;border-radius:2px;background:#cbd2ce}.first-run-sheet header{display:grid;grid-template-columns:42px 1fr;align-items:center;gap:11px;padding-bottom:18px;border-bottom:1px solid var(--line)}.app-icon{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:7px;color:#fff;background:var(--ink)}.first-run-sheet header p{color:var(--muted);font-size:10px;font-weight:800}.first-run-sheet header h2{margin-top:3px;font-size:21px}.first-run-sheet .settings-fields{padding:18px 0}.first-run-sheet .local-data-note{margin:0 0 14px}.confirm-dialog{max-width:420px;padding-top:18px}.confirm-dialog header{display:grid;grid-template-columns:28px 1fr 42px;align-items:center;gap:9px}.confirm-dialog header>svg{color:var(--danger)}.confirm-dialog h2{font-size:18px}.confirm-dialog>p{margin-top:14px;color:var(--muted);font-size:12px;line-height:1.65}.confirm-dialog>div{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:18px}.confirm-dialog>div button{min-height:44px;border:1px solid #d0d7d3;border-radius:6px;background:#fff;font-weight:800}.confirm-dialog>div .danger-button{border-color:var(--danger);color:#fff;background:var(--danger)}.toast{position:fixed;z-index:80;right:50%;bottom:calc(var(--nav-height) + 14px + env(safe-area-inset-bottom));width:min(calc(100% - 36px),380px);padding:11px 14px;border:1px solid #43504b;border-radius:6px;color:#fff;background:#202825;box-shadow:0 10px 28px #141a183d;font-size:11px;font-weight:750;text-align:center;transform:translate(50%)}@media(max-width:380px){.rhythm-summary{grid-template-columns:1fr 64px 64px}.matrix-header{grid-template-columns:minmax(64px,1fr) repeat(4,36px)}.matrix-header span:not(:first-child){width:36px}.symptom-row{grid-template-columns:minmax(64px,1fr) 156px}.symptom-row>div{grid-template-columns:repeat(4,36px)}.symptom-row button{width:36px}.fourteen-chart{grid-template-columns:repeat(14,minmax(16px,1fr));gap:2px}.chart-column>span,.chart-column small{font-size:7px}.cycle-strip-heading,.cycle-strip{padding-right:12px;padding-left:12px}}@media(min-width:720px){.mobile-shell{min-height:calc(100vh - 48px);margin-top:24px;margin-bottom:24px;border-radius:8px}.bottom-navigation{bottom:24px;border:1px solid #cfd7d3;border-radius:0 0 8px 8px}}@media(prefers-reduced-motion:no-preference){button,.chart-track i,.profile-row i{transition:background-color .16s ease,border-color .16s ease,color .16s ease}}
