:root{--background:#fff;--surface-dim:#f3f3f6;--ink:#29262f;--muted:#77727f;--line:#e7e5eb;--rose:#80536f;--rose-light:#f5eff4;--lavender-light:#f1eff6;--focus:#735184}*{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{min-height:100dvh;margin:0}#root{min-height:100dvh}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:23px;font-weight:750}h2{letter-spacing:-.04em;font-size:19px}h3{font-size:17px}p{line-height:1.65}.app-shell{max-width:520px;min-height:100dvh;padding:calc(12px + env(safe-area-inset-top)) 16px calc(96px + env(safe-area-inset-bottom));margin:auto}.app-header{justify-content:space-between;align-items:center;margin-bottom:8px;display:flex}.brand{align-items:center;gap:9px;display:flex}.brand p{color:var(--muted);margin-top:1px;font-size:11px}.brand-mark{display:none}.private-tag,.count-tag{border:1px solid var(--line);color:var(--muted);border-radius:30px;padding:6px 11px;font-size:11px}.tabs{display:flex}.bottom-nav{z-index:5;width:min(100%,520px);padding:8px 12px calc(8px + env(safe-area-inset-bottom));border-top:1px solid var(--line);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);background:#ffffffed;gap:8px;position:fixed;bottom:0;left:50%;transform:translate(-50%)}.tabs button{min-width:0;color:var(--muted);background:0 0;border:0;flex:1;padding:8px 6px;font-size:12px}.tabs .nav-add{background:var(--rose);color:#fff;border-radius:13px;font-weight:650}.nav-backup{color:var(--rose);margin-top:-4px;font-size:10px;font-weight:500;line-height:1.2;display:block}.tabs button[aria-current=page]{color:var(--rose);font-weight:700}.intro-row,.section-heading,.month-header{justify-content:space-between;align-items:center;gap:8px;display:flex}.intro-row{min-height:34px}.intro-row .eyebrow{color:var(--ink);letter-spacing:-.02em;font-size:14px}.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:8px;margin-top:14px;display:grid}.prediction-card{border:1px solid var(--line);border-radius:15px;min-height:100px;padding:12px}.prediction-card.period{box-shadow:inset 3px 0 var(--rose);background:#fff}.prediction-card.ovulation{background:#fff;box-shadow:inset 3px 0 #9784b0}.prediction-card p{color:var(--ink);font-size:11px}.prediction-card strong{letter-spacing:-.05em;padding:9px 0;font-size:20px;font-weight:650;display:block}.prediction-card span{color:var(--muted);font-size:10px}.prediction-note{color:var(--muted);margin:8px 3px 18px;font-size:11px}.card{border:1px solid var(--line);background:#fff;border-radius:18px}.calendar{padding:10px 8px 11px}.month-header{margin:0 1px 8px}.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:44px;padding:5px 0 3px;font-size:13px;display:flex}.day.outside{color:var(--muted)}.day.selected{background:var(--surface-dim);color:var(--ink);box-shadow:inset 0 0 0 1px var(--line)}.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:8px 5px 0;padding-top:8px;font-size:10px;display:flex}.legend span{align-items:center;gap:5px;display:flex}.day-details{padding:18px 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}.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:#d6d2dd;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);border:1px solid var(--line);background:#fff;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}
