:root{--background:#fbf8f3;--surface-dim:#f1ece6;--ink:#443d39;--muted:#79716c;--line:#eee7df;--rose:#a34f60;--rose-light:#f8e8e9;--lavender-light:#eee9f5;--focus:#64528c}*{box-sizing:border-box}[hidden]{display:none!important}html{background:var(--background);min-width:320px;color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:16px}body{margin:0}button,input,select,textarea{font:inherit}button{border:1px solid var(--line);min-height:44px;color:var(--ink);cursor:pointer;touch-action:manipulation;background:#fff;border-radius:13px;padding:10px 16px}button:disabled{cursor:default;opacity:.5}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--focus);outline-offset:3px}button:not(:disabled):active{filter:brightness(.95)}h1,h2,h3,p{margin:0}h1{letter-spacing:-.05em;font-size:27px;font-weight:750}h2{letter-spacing:-.04em;font-size:19px}h3{font-size:17px}p{line-height:1.65}.app-shell{max-width:520px;padding:calc(24px + env(safe-area-inset-top)) 20px calc(32px + env(safe-area-inset-bottom));margin:auto}.app-header{justify-content:space-between;align-items:center;margin-bottom:26px;display:flex}.brand{align-items:center;gap:11px;display:flex}.brand p{letter-spacing:.08em;color:var(--muted);margin-top:3px;font-size:11px}.brand-mark{background:var(--rose-light);color:var(--rose);border-radius:50% 50% 44% 44%;place-items:center;width:44px;height:44px;font-size:50px;line-height:1;display:grid}.private-tag,.count-tag{border:1px solid var(--line);color:var(--muted);border-radius:30px;padding:6px 11px;font-size:11px}.tabs{background:var(--surface-dim);border-radius:16px;gap:4px;margin-bottom:24px;padding:4px;display:flex}.tabs button{color:var(--muted);background:0 0;border:0;flex:1}.tabs button[aria-current=page]{color:var(--ink);background:#fff;font-weight:650;box-shadow:0 2px 8px #52433408}.intro-row,.section-heading,.month-header{justify-content:space-between;align-items:center;gap:8px;display:flex}.eyebrow{letter-spacing:.16em;color:var(--muted);font-size:10px;font-weight:650}.text-button{color:var(--muted);background:0 0;border:0;padding:10px 6px;font-size:13px}.prediction-grid{grid-template-columns:1fr 1fr;gap:10px;display:grid}.prediction-card{border-radius:19px;min-height:124px;padding:18px 14px}.prediction-card.period{background:var(--rose-light)}.prediction-card.ovulation{background:var(--lavender-light)}.prediction-card p{color:var(--ink);font-size:11px}.prediction-card strong{letter-spacing:-.05em;padding:9px 0;font-size:23px;font-weight:650;display:block}.prediction-card span{color:var(--muted);font-size:10px}.prediction-note{color:var(--muted);margin:12px 3px 22px;font-size:11px}.card{border:1px solid var(--line);background:#fff;border-radius:22px}.calendar{padding:14px 9px 16px}.month-header{margin:0 1px 14px}.month-header h2{font-size:16px}.icon-button{background:0 0;border:0;padding:5px 12px;font-size:25px}.weekdays,.month-grid{grid-template-columns:repeat(7,minmax(0,1fr));display:grid}.weekdays{color:var(--muted);text-align:center;margin-bottom:6px;font-size:11px}.weekdays span:first-child{color:var(--rose)}.day{background:0 0;border:0;border-radius:14px;flex-direction:column;justify-content:center;align-items:center;gap:7px;min-width:0;min-height:53px;padding:5px 0 3px;font-size:13px;display:flex}.day.outside{color:#9b9693}.day.selected{background:var(--surface-dim);color:var(--ink);box-shadow:inset 0 0 0 1px #d5c6c0}.day[aria-current=date] .day-number{text-underline-offset:4px;font-weight:800;text-decoration:underline}.dots{justify-content:center;align-items:center;gap:3px;height:7px;display:flex}.dot{background:var(--rose);border-radius:50%;flex:0 0 5px;width:5px;height:5px;display:inline-block}.dot.period_start,.dot.period_end{background:#d76570}.dot.spotting{background:#9b6847}.dot.intercourse{background:#55a38a}.dot.ovulation_test{background:#687b9e}.dot.predicted{background:#f8dfe7}.dot.predicted.period.center{background:#df9bad}.dot.predicted.ovulation{background:#eee5f8}.dot.predicted.ovulation.center{background:#b7a0d4}.overflow-dot{font-size:8px}.legend{border-top:1px solid var(--line);color:var(--muted);flex-wrap:wrap;justify-content:center;gap:8px 13px;margin:12px 7px 0;padding-top:13px;font-size:10px;display:flex}.legend span{align-items:center;gap:5px;display:flex}.day-details{padding:25px 3px 0}.section-heading h2{margin-top:6px}.empty-note{align-items:center;gap:13px;padding:26px 4px;display:flex}.empty-note>span{background:var(--surface-dim);width:38px;height:38px;color:var(--rose);border-radius:50%;place-items:center;display:grid}.empty-note p{font-size:13px}.empty-note small{color:var(--muted);font-size:11px}.event-list{margin:13px 0;padding:0;list-style:none}.event-list li+li{margin-top:8px}.event-list button{border-color:var(--line);text-align:left;align-items:center;gap:12px;width:100%;padding:15px;display:flex}.event-list strong{font-size:13px;font-weight:600}.event-list small{color:var(--muted);white-space:pre-wrap;overflow-wrap:anywhere;margin-top:6px;font-size:12px;display:block}.event-chevron{color:var(--muted);margin-left:auto}.calendar-footer{border-top:1px solid var(--line);justify-content:space-between;align-items:center;gap:8px;padding-top:12px;display:flex}.backup-link{text-align:left;font-size:11px}.add-button{color:#fff;background:var(--rose);border:0;border-radius:22px;min-width:100px;font-size:14px;box-shadow:0 4px 16px #b15f6e22}.add-button>span{vertical-align:-1px;font-size:20px}.padded{padding:23px 20px}.padded h2{margin:4px 0 15px}.padded p{margin-bottom:15px;font-size:13px}.settings-stack{gap:18px;display:grid}.settings-stack .caption,.caption{color:var(--muted);overflow-wrap:anywhere;font-size:11px}.full{width:100%}.primary{background:var(--rose);border-color:var(--rose);color:#fff;font-weight:600}.backup-status{background:var(--surface-dim);border-radius:8px;padding:6px 10px;font-weight:600;display:inline-block}.backup-status.needs-backup{background:var(--rose-light);color:#9c4354}.backup-flow{border-top:1px solid var(--line);margin-top:19px;padding-top:19px}.backup-flow h3{margin-bottom:13px}.backup-flow ol{padding-left:20px;font-size:13px;line-height:1.8}.backup-flow button+p{margin-top:14px}.button-row{gap:8px;margin-top:12px;display:flex}.button-row>button{flex:1}.danger{color:#ad354a}.destructive{background:var(--rose-light);border-radius:14px;margin-top:16px;padding:15px}.destructive h3{margin-bottom:12px;font-size:15px}.destructive>button{font-size:13px}.stat-line{justify-content:space-between;gap:8px;display:flex}.privacy-note{text-align:center;color:var(--muted);padding:4px 0 16px;font-size:11px}.notice,.error{border-radius:12px;margin:12px 0;padding:14px;font-size:13px}.error{color:#9a2c40;background:#fff0f0}.notice{color:#385e48;background:#edf4ef}.offline-note{color:var(--muted);margin:-8px 0 18px;font-size:12px}.sheet{width:min(100%,520px);max-height:90dvh;padding:10px 24px calc(24px + env(safe-area-inset-bottom));color:var(--ink);background:var(--background);overscroll-behavior:contain;border:0;border-radius:26px 26px 0 0;margin:auto auto 0;overflow-y:auto}.sheet::backdrop{background:#43353255}.sheet-handle{background:#d9d0cb;border-radius:4px;width:34px;height:4px;margin:0 auto 8px}.sheet .section-heading{margin-bottom:20px}.editor-date{margin-bottom:20px;font-size:16px;font-weight:600}.editor-records{border-bottom:1px solid var(--line);margin-bottom:22px;padding-bottom:8px}.editor-records .section-heading{margin-bottom:0}.editor-records h3{font-size:13px}.editor-records .event-list button[aria-pressed=true]{border-color:var(--rose);background:var(--rose-light)}fieldset{border:0;min-width:0;margin:0;padding:0}label{margin-bottom:18px;font-size:13px;font-weight:600;display:block}input,select,textarea{width:100%;min-width:0;color:var(--ink);background:#fff;border:1px solid #ded5ce;border-radius:12px;min-height:46px;margin-top:8px;padding:13px 12px;font-size:16px;display:block}textarea{resize:vertical}.muted{color:var(--muted);font-size:11px;font-weight:400}@media (width<=350px){.app-shell{padding-left:12px;padding-right:12px}.calendar{width:calc(100% + 24px);margin-left:-12px;margin-right:-12px;padding-left:5px;padding-right:5px}.day{min-height:44px}.prediction-card{padding-left:10px;padding-right:10px}.prediction-card p{font-size:10px}.padded{padding:18px 15px}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}.photo-input{border:1px solid var(--line);border-radius:14px;margin:0 0 22px;padding:14px}.photo-input label{margin-bottom:10px}.photo-input .caption{margin:8px 0}.photo-input button{padding:9px 8px;font-size:12px}.photo-input button[aria-pressed=true]{border-color:var(--rose);background:var(--rose-light)}.test-photo{touch-action:none;border-radius:8px;width:100%;height:auto;margin:12px 0;display:block}.photo-input summary{cursor:pointer;min-height:44px;padding:12px 0;font-size:13px}.region-inputs{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;display:grid}.region-inputs label{font-size:11px}.region-inputs input{padding:8px 3px}.photo-ratio{margin-top:14px;font-weight:600}
