:root{--bg:#fbf7f8;--card:#fff;--ink:#372735;--muted:#7b6c77;--accent:#ad3b60;--rose:#f7e6ec;--line:#edE3e8;--on-accent:#fff;--hero-start:#ad3b60;--hero-end:#96334f;--shadow:0 7px 25px #50304408;color-scheme:light;font-family:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink)}[hidden]{display:none!important}button,input,select,textarea{font:inherit}button{cursor:pointer;touch-action:manipulation}button:disabled{cursor:default;opacity:.6}button,input,select,textarea{outline-offset:4px}button:focus-visible,a:focus-visible{outline:3px solid #d895ae}a{color:inherit}h1,h2,h3,p{margin-top:0}h1{font-size:27px;line-height:1.2;letter-spacing:-.9px;margin-bottom:0}h2{font-size:18px;letter-spacing:-.35px;margin-bottom:14px}h3{font-size:15px;margin-bottom:8px}p{line-height:1.55}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}button{border:0}.app-shell{max-width:520px;margin:auto;padding:0 20px calc(110px + env(safe-area-inset-bottom))}.app-header{display:flex;justify-content:space-between;align-items:center;padding:calc(18px + env(safe-area-inset-top)) 0 25px;gap:14px}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;font-weight:750;font-size:17px;letter-spacing:-.4px}.brand img{border-radius:11px}.brand small{display:block;font-size:11px;font-weight:500;letter-spacing:0;color:var(--muted);margin-top:2px}.icon-button{display:grid;place-items:center;flex-shrink:0;width:44px;height:44px;background:#fff;border:1px solid var(--line);color:var(--ink);border-radius:14px;font-size:25px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:8px 0 24px}.eyebrow{font-size:9px;font-weight:800;letter-spacing:1.5px;color:var(--accent);margin:0 0 9px;display:block}.primary,.secondary,.danger{min-height:47px;border-radius:14px;padding:12px 17px;font-size:14px;font-weight:700;line-height:1.4}.primary{background:var(--accent);color:var(--on-accent);box-shadow:0 4px 10px #ad3b6014}.secondary{background:#f6eff2;color:var(--ink);border:1px solid var(--line)}.danger{background:#fff0f0;color:#9b2847;border:1px solid #e7c1cb}.compact{min-height:42px;padding:10px 13px;font-size:12px;white-space:nowrap}.text-button{min-height:40px;padding:7px 0;background:transparent;color:var(--accent);font-size:12px;font-weight:700}.cycle-hero{border-radius:25px;background:linear-gradient(125deg,var(--hero-start),var(--hero-end));padding:27px 23px;display:flex;align-items:center;gap:21px;color:white;box-shadow:0 12px 22px #ad3b6015;margin-bottom:16px}.cycle-orbit{width:106px;height:106px;border:2px solid #ffffff40;border-top-color:#ffe5ec;border-right-color:#ffe5ec;border-radius:50%;flex-shrink:0;display:flex;justify-content:center;align-items:center;flex-direction:column;background:#ffffff08}.cycle-orbit>span{font-size:37px;letter-spacing:-1px;font-weight:750}.cycle-orbit small{font-size:11px;color:#ffe2ec}.hero-copy{min-width:0}.hero-copy .eyebrow{color:#ffe2ec;letter-spacing:1.4px;font-size:8px}.hero-copy h2{font-size:21px;line-height:1.25;margin-bottom:8px}.hero-copy p:last-child{font-size:12px;color:#ffe8ee;margin-bottom:0}.summary-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:18px}.mini-card{background:white;padding:19px 17px;border-radius:20px;border:1px solid var(--line);box-shadow:var(--shadow);min-width:0}.mini-card .eyebrow{font-size:8px;letter-spacing:1px;color:var(--muted)}.mini-card strong{display:block;font-size:23px;font-weight:750;margin:7px 0;letter-spacing:-.7px}.mini-card small{font-size:10px;line-height:1.5;color:var(--muted);display:block}.card{background:var(--card);border:1px solid var(--line);box-shadow:var(--shadow);padding:22px;border-radius:22px;margin-bottom:18px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}.section-heading h2{margin:0}.pill{padding:5px 9px;border-radius:20px;background:var(--rose);color:var(--accent);font-size:9px;font-weight:750;white-space:nowrap}.muted{color:var(--muted);font-size:14px}.small{font-size:11px;color:var(--muted);line-height:1.6;margin-bottom:0}.soft-note{text-align:center;font-size:11px;line-height:1.7;color:var(--muted);padding:8px 16px}.empty-state{text-align:center;color:var(--muted);padding:25px 12px;font-size:13px;line-height:1.6}.journal-row{display:flex;align-items:center;justify-content:space-between;gap:13px;padding:13px 0;border-bottom:1px solid var(--line)}.journal-row:last-child{border-bottom:0}.journal-row strong{display:block;font-size:13px}.journal-row p{margin:4px 0 0;font-size:11px;color:var(--muted)}.journal-row .date-mark{display:grid;place-items:center;flex-shrink:0;width:40px;height:44px;border-radius:12px;background:var(--rose);color:var(--accent);font-size:17px;font-weight:750}.journal-row .row-copy{flex:1}.bottom-nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(520px,100%);display:grid;grid-template-columns:repeat(4,1fr);padding:10px 12px calc(10px + env(safe-area-inset-bottom));background:#fffffff5;backdrop-filter:blur(15px);border-top:1px solid var(--line);z-index:20}.bottom-nav button{background:transparent;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:48px;color:var(--muted);border-radius:13px;font-size:10px;font-weight:600}.bottom-nav button[aria-current]{color:var(--accent);background:#fcf0f4}.bottom-nav svg{width:21px;height:21px}.welcome-card{text-align:center;padding:28px 18px;background:white;border:1px solid var(--line);border-radius:25px}.welcome-card h1{font-size:36px;margin-bottom:18px}.welcome-card>p{font-size:14px;color:var(--muted)}.welcome-card img{display:block;margin:23px auto;border-radius:30px}.welcome-card .primary{width:100%;margin-bottom:12px}.notice{background:var(--rose);padding:12px 14px;border-radius:12px;font-size:12px;line-height:1.6;color:#81435a;margin-bottom:16px}.calendar-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.calendar-heading h2{margin:0;font-size:18px}.calendar-heading .icon-button{border:0;background:var(--rose);color:var(--accent);width:36px;height:36px;border-radius:11px}.calendar-card{padding:19px}.calendar-card>#calendar-today{display:block;margin:3px auto 14px}.weekdays,.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}.weekdays{margin-bottom:8px}.weekdays span{text-align:center;font-size:10px;color:var(--muted);font-weight:650}.calendar-day{width:100%;aspect-ratio:1;min-width:0;border-radius:11px;background:#fcf8fa;color:var(--ink);font-size:12px;padding:0;position:relative}.calendar-day.logged{background:var(--accent);color:var(--on-accent);font-weight:700}.calendar-day.predicted:not(.logged){border:1.5px dashed var(--accent);background:var(--rose);color:var(--accent)}.calendar-day.today{box-shadow:inset 0 0 0 2px #573d50}.calendar-day.empty{background:transparent}.legend{display:flex;gap:13px;flex-wrap:wrap;font-size:9px;color:var(--muted);margin:19px 0 15px}.legend i{display:inline-block;vertical-align:middle;width:8px;height:8px;margin-right:4px;border-radius:50%}.logged-dot{background:var(--accent)}.estimate-dot{border:1px dashed var(--accent);background:var(--rose)}.today-dot{border:1.5px solid #573d50}.filter-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.export-actions{display:flex;gap:10px;margin-top:17px}.export-actions>button{flex:1;min-width:0;font-size:12px}.filter-card{padding:18px}.filter-card .small{margin-top:13px}.history-card{padding:21px}.history-top{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.history-top h2{font-size:17px;margin-bottom:5px}.history-top p{font-size:11px;color:var(--muted);margin-bottom:13px}.history-tags{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:13px}.tag{font-size:10px;padding:5px 8px;border-radius:8px;background:#f7eff3;color:#805269}.history-note{font-size:12px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;padding:11px 13px;background:#fcf8fa;border-radius:10px;margin:0 0 12px}.history-actions{display:flex;gap:23px;justify-content:flex-end;border-top:1px solid var(--line);padding-top:4px}.history-actions .text-button{font-size:11px}.history-actions .delete-button{color:#a8465b}.chart-svg{width:100%;height:auto;display:block;stroke:none;fill:var(--accent);overflow:visible}.trend-values{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;padding-top:8px}.trend-values span{font-size:10px;color:var(--muted)}.symptom-row{display:grid;grid-template-columns:110px 1fr 25px;align-items:center;gap:10px;margin-top:15px;font-size:11px}.symptom-bar{height:7px;border-radius:7px;background:#f5edf1;overflow:hidden}.symptom-bar>span{display:block;height:100%;background:#c66a89;border-radius:7px}.symptom-row strong{text-align:right;font-size:11px}
.sheet,.question{border:1px solid var(--line);border-radius:25px;background:white;color:var(--ink);padding:0;width:min(480px,calc(100% - 28px));max-height:calc(100dvh - 30px);box-shadow:0 25px 90px #44213135}.sheet::backdrop,.question::backdrop{background:#38233070;backdrop-filter:blur(4px)}body:has(dialog[open]){overflow:hidden}.sheet-header{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px 21px;background:#fff;border-bottom:1px solid var(--line)}.sheet-header h2{margin:0;font-size:18px}.sheet-header .icon-button{width:34px;height:34px;font-size:23px;background:#faf5f7;border:0;border-radius:10px}.sheet-content{padding:22px}.sheet-content>p.muted{margin-bottom:22px}.entry-sheet .sheet-header{display:grid;grid-template-columns:60px 1fr 60px}.entry-sheet .sheet-header h2{text-align:center;font-size:17px}label{display:block;font-size:12px;font-weight:650;color:var(--ink);margin-bottom:17px}input:not([type=checkbox]):not([type=radio]),select,textarea{display:block;width:100%;min-width:0;min-height:47px;margin-top:8px;padding:12px;border:1px solid #e6dbe2;border-radius:12px;background:#fff;font-size:16px;color:var(--ink);box-shadow:none}input:focus,textarea:focus,select:focus{outline:2px solid #dca3b7;outline-offset:1px}textarea{resize:vertical}.optional{font-size:10px;font-weight:450;color:var(--muted);margin-left:3px}.check-row{display:flex;align-items:center;gap:10px;font-size:12px;line-height:1.6}.check-row input{width:18px;height:18px;flex-shrink:0;accent-color:var(--accent);margin:0}.check-row+.small{margin-top:-8px;margin-bottom:20px}.sheet form>.primary,.sheet form>.secondary{width:100%}.symptoms{border:0;margin:3px 0 24px;padding:0}.symptoms legend{font-size:12px;font-weight:650;margin-bottom:12px}.symptom-chips{display:flex;gap:8px;flex-wrap:wrap}.symptom-chips label{margin:0;cursor:pointer}.symptom-chips input{position:absolute;opacity:0;pointer-events:none}.symptom-chips span{display:block;padding:10px 13px;font-size:11px;border:1px solid var(--line);border-radius:20px;background:#fff}.symptom-chips input:checked+span{background:var(--rose);border-color:#d590a7;color:#9a3154}.symptom-chips input:focus-visible+span{outline:3px solid #d895ae;outline-offset:2px}.form-message{font-size:12px;line-height:1.6;color:#8e3452;overflow-wrap:anywhere;margin:13px 0 0}.form-message:empty{display:none}.account-identity{display:flex;gap:13px;align-items:center;margin-bottom:23px}.account-identity strong{font-size:17px;overflow-wrap:anywhere}.account-identity p{margin:4px 0 0;overflow-wrap:anywhere}.avatar{width:46px;height:46px;display:grid;place-items:center;background:var(--rose);color:var(--accent);border-radius:15px;font-weight:750}.settings-group{border:1px solid var(--line);border-radius:15px;padding:15px;margin-bottom:13px}.settings-group summary{font-size:13px;font-weight:700;cursor:pointer;min-height:22px}.settings-group[open] summary{margin-bottom:20px}.settings-group .small{margin:0 0 15px}.settings-buttons{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:20px 0}.settings-buttons .secondary{font-size:11px}.danger-zone{margin-top:25px}.danger-zone summary{color:#9e3152}.version-line{text-align:center;margin:23px 0 0}.question{padding:26px}.question h2{font-size:21px}.question .primary{width:100%}#toast{position:fixed;bottom:calc(93px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 32px);background:#493344;color:white;padding:13px 18px;border-radius:13px;z-index:50;font-size:12px;text-align:center;box-shadow:0 10px 30px #50304420}#print-sheet{display:none}
@media(max-width:380px){.app-shell{padding-left:16px;padding-right:16px}.page-heading{gap:7px}h1{font-size:23px}.compact{font-size:11px;padding:9px 10px}.cycle-hero{padding:23px 17px;gap:15px}.cycle-orbit{width:89px;height:89px}.hero-copy h2{font-size:19px}.card{padding:18px}.mini-card{padding:16px 13px}.mini-card strong{font-size:20px}.pill{font-size:8px;padding:5px 7px}.symptom-row{grid-template-columns:98px 1fr 20px}}
@media(max-width:600px){.entry-sheet{width:100%;max-width:none;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0}.entry-sheet .sheet-header{padding-top:calc(14px + env(safe-area-inset-top))}.entry-sheet .sheet-content{padding-bottom:calc(25px + env(safe-area-inset-bottom))}.sheet-content{padding:21px}.entry-sheet .filter-grid{gap:10px}.account-sheet{max-height:calc(100dvh - 20px)}}
@media(prefers-reduced-motion:no-preference){.view{animation:enter .18s ease-out}@keyframes enter{from{opacity:.55;transform:translateY(4px)}to{opacity:1;transform:none}}}
@media print{body>*{display:none!important}body:has(dialog[open]){overflow:visible}body>#print-sheet{display:block!important;background:#fff;color:#111;font:12px/1.6 Arial}#print-sheet h1{font-size:25px;margin-bottom:15px}#print-sheet article{break-inside:avoid;border-top:1px solid #ccc;padding:15px 0}#print-sheet h2{font-size:16px}#print-sheet p{margin:5px 0;white-space:pre-wrap}#print-sheet .print-meta{color:#555;font-size:11px}@page{margin:18mm}}

#privacyBar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:8px 16px;background:#edf5f2;color:#164c46;font:13px system-ui}#privacyBar button{font-size:13px;padding:8px;min-height:36px}#privatePanel{position:fixed;inset:0;z-index:12000;background:#f7faf9;overflow:auto;padding:24px 16px}#privatePanel[hidden]{display:none}.private-sheet{max-width:520px;margin:30px auto;padding:24px;background:white;color:#183c35;border:1px solid #dbe6e1;border-radius:18px;font:16px/1.5 system-ui}.private-sheet label{display:block;margin:12px 0}.private-sheet input:not([type=checkbox]):not([type=radio]){display:block;width:100%;box-sizing:border-box;padding:12px;border:1px solid #b8c9c1;border-radius:8px}.private-sheet button{padding:12px;margin:5px;border-radius:8px;border:1px solid #b8c9c1}#privateLog{white-space:pre-wrap;overflow-wrap:anywhere}#privateSettingsDialog{max-width:580px;width:calc(100% - 24px);max-height:90dvh;overflow:auto}.maps-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}

#privacyBar{flex-wrap:wrap}#syncStatus{font-size:.8rem;flex-basis:100%}#syncConflictDialog pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:14rem;overflow:auto}#syncConflictDialog section{border-top:1px solid #ddd;padding:1rem 0}

/* Consistent phone controls and compact profile menu. */
.profile-menu{position:absolute;right:16px;top:76px;z-index:30;width:min(300px,calc(100vw - 32px));padding:12px;background:#fff;border:1px solid #eed6df;border-radius:20px;box-shadow:0 12px 40px #42233226;}
.profile-menu[hidden]{display:none}.profile-menu button{width:100%;min-height:44px;margin:4px 0;line-height:1.25}.profile-menu #privacyBar{display:flex;flex-direction:column;border:0;padding:0;background:transparent;margin:8px 0}.profile-menu #privacyBar[hidden]{display:none}.profile-menu #syncStatus{font-size:12px;color:#735765}
#privatePanel:not([hidden]){max-width:620px;margin:20px auto;border-radius:20px;background:#fff;padding:20px}#privatePanel input[type=checkbox],#privateSettingsDialog input[type=checkbox]{width:20px;height:20px;margin-right:8px;vertical-align:middle}
#privateSettingsDialog{border:0;border-radius:22px;max-width:430px;width:calc(100% - 32px);padding:20px;max-height:calc(100dvh - 32px);overflow:auto}#privateSettingsDialog button{width:100%;min-height:44px;margin:6px 0}#privateSettingsDialog input:not([type=checkbox]):not([type=radio]){max-width:100%}
button,input,select{box-sizing:border-box}.device-trust label{margin-top:14px}.device-trust .check-row{align-items:flex-start}.device-trust input[type=checkbox]{flex:0 0 20px}#install-app{display:none}

/* All palette choices also work with Evening dark and Match my device. */
html{background:var(--bg);color:var(--ink)}.icon-button,.mini-card,.welcome-card,.sheet,.question,.sheet-header,.symptom-chips span{background:var(--card)}.secondary,.bottom-nav button[aria-current],.sheet-header .icon-button,.tag,.symptom-bar{background:var(--rose)}.secondary,.tag{color:var(--ink)}.bottom-nav{background:var(--card)}.notice{color:var(--ink)}.calendar-day,.history-note{background:var(--bg)}.calendar-day.today{box-shadow:inset 0 0 0 2px var(--ink)}.today-dot{border-color:var(--ink)}.symptom-bar>span{background:var(--accent)}input:not([type=checkbox]):not([type=radio]),select,textarea{background:var(--card);border-color:var(--line)}input:focus,textarea:focus,select:focus{outline-color:var(--accent)}.symptom-chips input:checked+span{border-color:var(--accent);color:var(--accent)}button:focus-visible,a:focus-visible,.symptom-chips input:focus-visible+span{outline-color:var(--accent)}.cycle-orbit small,.hero-copy .eyebrow,.hero-copy p:last-child{color:#ffffffeb}.cycle-orbit{border-top-color:#fff;border-right-color:#fff}.form-message{color:var(--accent)}.profile-menu{background:var(--card);border-color:var(--line);max-height:calc(100dvh - 100px);overflow:auto}.profile-menu #syncStatus{color:var(--muted)}#privatePanel,#privatePanel:not([hidden]){background:var(--bg)}.private-sheet,#privateSettingsDialog,#syncConflictDialog{background:var(--card);color:var(--ink);border-color:var(--line)}.private-sheet input:not([type=checkbox]):not([type=radio]){background:var(--card);border-color:var(--line);color:var(--ink)}#privacyBar{color:var(--ink);background:var(--rose)}#toast{background:var(--ink);color:var(--card)}:root[data-theme=dark] .danger{background:#4b2530;color:#ffc0cd;border-color:#874251}:root[data-theme=dark] .history-actions .delete-button,:root[data-theme=dark] .danger-zone summary{color:#ffb5c7}:root[data-theme=dark] #pwaInstallBanner,:root[data-theme=dark] #pwaInstallDialog{background:var(--card);color:var(--ink);border-color:var(--line)}#pwaInstallBanner button:not(.pwa-later):not(.pwa-dismiss),#pwaInstallDialog button{background:var(--accent);color:var(--on-accent)}#pwaInstallBanner .pwa-later{color:var(--accent);border-color:var(--line)}:root[data-theme=dark] #pwaInstallBanner p,:root[data-theme=dark] #pwaInstallBanner .pwa-dismiss{color:var(--muted)}
/* Account settings is an obvious button, with consistent menu actions. */
.profile-menu #menuAccount{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:50px;padding:14px 16px;margin-bottom:12px;text-align:left;border-radius:14px;font-size:14px;font-weight:750}.profile-menu #menuAccount svg{width:20px;height:20px;flex-shrink:0}.profile-menu button:not(.primary):not(.danger){padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:var(--rose);color:var(--ink);font-size:13px;font-weight:650}.account-sheet details.settings-group>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 14px;border:1px solid var(--line);border-radius:12px;background:var(--rose);min-height:46px;list-style:none}.account-sheet details.settings-group>summary::-webkit-details-marker{display:none}.account-sheet details.settings-group>summary:after{content:'⌄';font-size:18px;color:var(--accent)}.account-sheet details.settings-group[open]>summary:after{content:'⌃'}
.appearance-settings h3{font-size:16px;margin:0 0 17px}.appearance-settings>label{margin-bottom:20px}.palette-options{padding:0;margin:0 0 17px;border:0;min-width:0}.palette-options legend{font-size:12px;font-weight:650;margin-bottom:12px}.palette-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.palette-choice{position:relative;display:block;margin:0;cursor:pointer;min-width:0}.palette-choice input[type=radio]{position:absolute;width:1px;height:1px;min-height:0;margin:0;padding:0;opacity:0;pointer-events:none}.palette-tile{display:flex;align-items:center;flex-direction:column;justify-content:center;gap:9px;position:relative;min-height:82px;padding:12px 5px;border:1px solid var(--line);border-radius:13px;background:var(--card);font-size:11px;text-align:center}.palette-dot{width:27px;height:27px;border-radius:50%;background:var(--swatch);box-shadow:inset 0 0 0 1px #0001}.palette-choice input:checked+.palette-tile{border:2px solid var(--accent);padding:11px 4px;background:var(--rose);color:var(--ink)}.palette-choice input:checked+.palette-tile:after{content:'✓';position:absolute;top:4px;right:7px;color:var(--accent);font-size:12px;font-weight:800}.palette-choice input:focus-visible+.palette-tile{outline:3px solid var(--accent);outline-offset:3px}.appearance-settings .small{margin-bottom:0}
@media(max-width:350px){.palette-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.palette-tile{min-height:76px}}
:root #pwaInstallDialog button{background:var(--accent);color:var(--on-accent)}:root #pwaInstallBanner .pwa-later{color:var(--accent);border-color:var(--line)}

/* v1.1.3: a quiet personal journal with readable mobile controls. */
:root{--paper:var(--card)}body{overflow-wrap:break-word}.app-shell{max-width:920px}.page-heading{padding-top:10px;margin-bottom:24px}.page-heading h1{font-size:clamp(28px,5vw,38px);letter-spacing:-1px}.cycle-hero{border-radius:28px;padding:28px;box-shadow:0 16px 40px color-mix(in srgb,var(--accent) 16%,transparent)}.card{border-radius:22px;border:1px solid var(--line);box-shadow:var(--shadow)}.mini-card{border-radius:20px}.journal-row{padding:16px 0}.date-mark{border-radius:14px}.bottom-nav{border-radius:22px 22px 0 0}
dialog.sheet,.question,#privateSettingsDialog,#syncConflictDialog,.device-welcome{box-sizing:border-box;border:1px solid var(--line);border-radius:24px;background:var(--card);color:var(--ink);max-width:calc(100% - 24px);max-height:calc(100dvh - 24px);overflow:auto;padding:0}dialog::backdrop{background:#31233188;backdrop-filter:blur(5px)}.sheet-header{position:sticky;top:0;background:var(--card);z-index:1;border-bottom:1px solid var(--line)}.sheet-content{padding:24px}.account-sheet{width:min(600px,calc(100% - 24px))}.settings-group{padding:18px;border-radius:18px;margin-bottom:14px}.settings-group summary{font-size:16px;line-height:1.4}.settings-group[open] summary{margin-bottom:20px}.settings-group label{font-size:14px}.settings-group .small{font-size:13px;line-height:1.65}.settings-buttons .secondary{font-size:14px;min-height:48px}.check-row input{flex:0 0 20px;width:20px;height:20px;min-height:0}.fine{font-size:13px;color:var(--muted);line-height:1.6}.wide{width:100%;margin-top:10px}.settings-group form{margin-top:12px}.settings-group input,.settings-group select,.settings-group textarea,.sheet-content input,.sheet-content select,.sheet-content textarea{font-size:16px;min-width:0}.settings-group input[type=checkbox],.sheet-content input[type=checkbox]{min-height:0}.private-sheet{padding:24px}.private-sheet button{min-height:48px;border-radius:12px;margin:6px 4px 6px 0;max-width:100%;white-space:normal}.private-sheet pre{white-space:pre-wrap;overflow-wrap:anywhere}.private-sheet h2{font-size:23px}#syncConflictItems section{padding:18px 0;border-bottom:1px solid var(--line)}#syncConflictItems button{display:block;width:100%;margin:10px 0}.question{padding:24px}.export-actions{display:flex;gap:12px;flex-wrap:wrap}.export-actions button{flex:1 1 140px}.settings-group:has(#cycleVersionSettings:empty){display:none}.device-name-card input{font-size:16px}.device-welcome{padding:24px}.device-welcome-actions{display:flex;gap:10px;flex-wrap:wrap}.device-welcome-actions button{flex:1 1 140px;min-height:48px}.device-welcome input{font-size:16px}.device-welcome-description{line-height:1.6}#cycleTestBuildBanner{padding:12px 16px;border:1px solid var(--line);border-radius:14px;font-size:13px;background:var(--rose)}
@media(max-width:600px){.app-shell{padding-left:18px;padding-right:18px}.cycle-hero{padding:24px 20px;gap:16px}.account-sheet{height:auto;width:calc(100% - 24px);margin:auto;border-radius:24px}.sheet-content{padding:22px 18px}.entry-sheet{width:100%;max-width:100%;height:100dvh;max-height:100dvh;border-radius:0}.settings-buttons{grid-template-columns:1fr 1fr}.bottom-nav button{font-size:12px}.filter-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}

.cycle-sync-strip{max-width:884px;margin:16px auto 0;padding:12px 16px;border:1px solid var(--line);border-radius:14px;background:var(--card);font-size:13px;color:var(--muted)}.cycle-sync-strip p{margin:0}@media(max-width:600px){.cycle-sync-strip{margin:12px 18px 0}}

/* Consistent Cycle unlock and recovery actions. */
#privatePanel:not([hidden]){inset:0;max-width:none;margin:0;border:0;border-radius:0;padding:calc(20px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom));background:var(--bg);box-sizing:border-box}#privatePanel .private-sheet{box-sizing:border-box;width:min(100%,520px);margin:24px auto;padding:26px;border-radius:24px;box-shadow:0 12px 40px #4933440c}#privatePanel h2{font-size:24px;letter-spacing:-.5px;margin-top:0}#privatePanel p{color:var(--muted);line-height:1.65}#privatePanel label{font-size:14px;line-height:1.5}#privatePanel input[type=checkbox]{accent-color:var(--accent)}#privatePanel .private-sheet button,#privateSettingsDialog .private-sheet button{box-sizing:border-box;background:var(--card);color:var(--ink);border:1px solid var(--line);font:inherit;font-weight:650;min-height:48px;padding:12px 18px;border-radius:14px}#privateUnlockContent form button:not([type=button]),#privateRestore button:not([type=button]),#privateBackup{background:var(--accent)!important;color:var(--on-accent)!important;border-color:var(--accent)!important;width:100%;margin:8px 0}#privateSignOut{width:100%;margin:12px 0 0!important;color:var(--muted)!important}#resetOfflinePin{background:var(--rose)!important;color:var(--accent)!important;border-color:var(--line)!important;margin:12px 0 0!important}#privatePanel button:focus-visible,#privateSettingsDialog button:focus-visible{outline:3px solid var(--accent);outline-offset:3px}#cycleSyncSummary{overflow-wrap:anywhere;line-height:1.6}

/* Cycle v1.1.5: calm spacing, legible controls, and a consistent mobile shell. */
body{font-size:15px;line-height:1.6;background:var(--bg)}
.app-shell{max-width:640px;padding:0 24px calc(116px + env(safe-area-inset-bottom))}
.app-header{padding:calc(24px + env(safe-area-inset-top)) 0 26px;border-bottom:1px solid var(--line);margin-bottom:24px}
.brand{gap:12px;font-size:18px;letter-spacing:-.45px}.brand img{width:42px;height:42px;border-radius:14px}.brand small{font-size:11px;letter-spacing:.1px;margin-top:3px}
h1{font-size:clamp(27px,6vw,34px);font-weight:650;letter-spacing:-1.1px;line-height:1.2}h2{font-weight:650}h3{font-weight:650}
.eyebrow{font-size:10px;letter-spacing:1.6px;font-weight:700}.page-heading{margin:22px 0}.page-heading .compact{min-height:46px;white-space:normal}
.primary,.secondary,.danger{min-height:48px;font-size:14px;font-weight:650;border-radius:14px}.secondary{background:var(--rose)}.primary{box-shadow:0 5px 16px color-mix(in srgb,var(--accent) 15%,transparent)}
.cycle-hero{position:relative;isolation:isolate;overflow:hidden;border-radius:28px;padding:30px 26px;gap:24px;margin-bottom:18px;min-height:190px;box-shadow:0 12px 28px color-mix(in srgb,var(--accent) 13%,transparent)}
.cycle-hero:after{content:'';position:absolute;width:210px;height:210px;border:1px solid #ffffff1c;border-radius:50%;right:-75px;top:-80px;z-index:-1}.cycle-orbit{width:118px;height:118px;box-shadow:inset 0 0 0 7px #ffffff06;border-width:2px}.cycle-orbit>span{font-size:42px;font-weight:650}.cycle-orbit small{font-size:12px}.hero-copy h2{font-size:24px;line-height:1.25}.hero-copy p:last-child{font-size:13px;line-height:1.7}.hero-copy .eyebrow{font-size:9px}
.summary-grid{gap:16px;margin-bottom:20px}.mini-card{padding:23px 21px;border-radius:22px;background:var(--card)}.mini-card strong{font-size:26px;font-weight:650;letter-spacing:-.8px;line-height:1.35}.mini-card small{font-size:12px;line-height:1.6}.mini-card .eyebrow{font-size:9px;line-height:1.5}
.card{padding:25px;border-radius:24px;margin-bottom:20px}.section-heading{gap:14px;margin-bottom:18px}.section-heading h2{font-size:19px;line-height:1.4}.pill{font-size:10px;white-space:normal;text-align:center;padding:6px 10px}.muted{font-size:14px;line-height:1.75}.small{font-size:12px;line-height:1.75}.soft-note{font-size:12px;padding:12px 18px}.journal-row{padding:18px 0;gap:16px}.journal-row strong{font-size:14px}.journal-row p{font-size:12px;line-height:1.6}.journal-row .date-mark{width:46px;height:50px;border-radius:15px;font-size:20px}.journal-row button{min-width:44px;min-height:44px}
.bottom-nav{width:min(640px,100%);padding:12px 18px calc(12px + env(safe-area-inset-bottom));border-radius:24px 24px 0 0;border:1px solid var(--line);border-bottom:0;box-shadow:0 -8px 30px #3a203707}.bottom-nav button{gap:6px;min-height:52px;font-size:11px}.bottom-nav button[aria-current]{background:var(--rose);border-radius:15px}.bottom-nav svg{width:22px;height:22px}
.welcome-card{padding:36px 28px;border-radius:28px;text-align:left;position:relative;overflow:hidden}.welcome-card h1{font-size:clamp(36px,8vw,46px);line-height:1.13;font-weight:600;margin:0 0 20px}.welcome-card>p{font-size:15px;line-height:1.8;max-width:400px}.welcome-card img{margin:25px 0 30px;width:100px;height:100px;border-radius:28px;box-shadow:0 8px 26px #5b213b12}.welcome-card .primary{margin-bottom:16px;min-height:52px}.welcome-card .small{font-size:12px;margin-bottom:0}.welcome-card .small a{font-weight:650;color:var(--accent);text-underline-offset:3px}
.calendar-card{padding:24px}.weekdays{margin-bottom:12px}.weekdays span{font-size:11px}.calendar-grid{gap:7px}.calendar-day{font-size:14px;border-radius:12px;min-height:40px}.calendar-heading .icon-button{width:40px;height:40px}.calendar-card>#calendar-today{margin:8px auto 18px}
.sheet-header{padding:20px 24px;gap:16px}.sheet-header h2{line-height:1.35;margin:0;font-size:21px}.sheet-content{padding:26px 24px}.sheet-content label{font-size:14px;line-height:1.6}.sheet-content input:not([type=checkbox]):not([type=radio]),.sheet-content select,.sheet-content textarea{min-height:48px;padding:12px 14px;border-radius:12px;background:var(--card);color:var(--ink);border-color:var(--line)}.sheet-content form{display:grid;gap:16px}.sheet-content form>label{margin-bottom:0}.sheet-content .check-row{align-items:flex-start;gap:12px}.sheet-content .check-row input{margin-top:3px}.filter-grid{gap:16px}.settings-group{padding:21px;margin-bottom:16px;border-radius:20px}.settings-group summary{font-size:15px;font-weight:650}.settings-buttons{gap:12px}.settings-buttons button{white-space:normal}.profile-menu{border-radius:22px;box-shadow:0 14px 42px #34203216}.profile-menu>a.secondary{display:block;text-decoration:none;margin:6px 0;padding:12px 16px}
.app-access-notice a{display:inline-flex;min-height:44px;align-items:center;border-radius:12px;padding:10px 15px;background:var(--accent);color:var(--on-accent);font-weight:650;text-decoration:none}.cycle-update-banner .cycle-update-actions{gap:12px}.cycle-update-banner .cycle-update-actions button{min-height:48px}.cycle-sync-strip{font-size:12px;margin:0 0 20px;border-radius:12px}
@media(min-width:850px){.app-shell{padding-top:8px}.welcome-card{margin:35px 0}.app-header{margin-bottom:32px}}
@media(max-width:480px){.app-shell{padding-left:20px;padding-right:20px}.app-header{margin-bottom:20px}.brand{font-size:17px}.page-heading{align-items:flex-start;gap:12px}.page-heading .eyebrow{font-size:9px}.page-heading h1{font-size:28px}.page-heading .compact{font-size:12px;padding:11px 12px;flex-shrink:0}.cycle-hero{padding:25px 21px;gap:18px;min-height:170px}.cycle-orbit{width:101px;height:101px}.cycle-orbit>span{font-size:37px}.hero-copy h2{font-size:21px}.hero-copy p:last-child{font-size:12px}.summary-grid{gap:12px}.mini-card{padding:20px 16px}.mini-card strong{font-size:24px}.card{padding:22px}.calendar-card{padding:18px}.calendar-grid{gap:4px}.calendar-day{min-height:35px}.welcome-card{padding:30px 24px}.sheet-header{padding:18px 20px}.sheet-content{padding:24px 20px}.settings-group{padding:18px}.sheet-content .filter-grid{gap:12px}.bottom-nav{padding-left:14px;padding-right:14px}}
@media(max-width:360px){.app-shell{padding-left:16px;padding-right:16px}.brand small{font-size:10px}.page-heading h1{font-size:25px}.cycle-hero{padding:22px 17px;gap:14px}.cycle-orbit{width:88px;height:88px}.hero-copy h2{font-size:19px}.calendar-day{min-height:30px}.mini-card strong{font-size:21px}.settings-buttons{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important}}

/* PIN and recovery controls keep consistent size and clear separation. */
.cycle-recovery-dialog button,.cycle-pin-dialog button{box-sizing:border-box;width:100%;min-height:48px;border-radius:13px;padding:12px 16px;font-family:inherit;font-size:16px;line-height:1.3;white-space:normal}
.cycle-recovery-dialog button{display:block;margin-top:14px}.cycle-recovery-dialog .recovery-cancel{margin-top:16px}.cycle-pin-dialog .pin-actions{gap:14px!important}

/* Keep all modal close controls within the device safe area. */
#account-dialog{max-height:calc(100dvh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px) - 24px);margin:auto;width:min(480px,calc(100% - 28px));overflow:auto}#account-dialog .sheet-header{position:sticky;top:0;z-index:2;background:var(--paper,#fff);padding:18px 20px}#account-dialog .sheet-header .icon-button{width:44px;height:44px;flex:0 0 44px}#account-dialog .sheet-content{padding-bottom:calc(22px + env(safe-area-inset-bottom,0px))}@media(max-width:600px){#account-dialog{max-height:calc(100dvh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px) - 24px)}.entry-sheet .sheet-header{padding-top:max(18px,env(safe-area-inset-top,0px))}.sheet-header [data-close]{min-width:44px;min-height:44px}}

/* v1.1.9 sign-in branding: scoped to signed-out account view. */
#account-dialog:has(#login-view:not([hidden])){--ink:#163e39;--muted:#667b73;--accent:#164c46;--on-accent:#fff;--line:#d8e2d9;--card:#fffdfa;background:#f6f5ef;color:var(--ink);width:min(490px,calc(100% - 24px));border-radius:26px}
#account-dialog:has(#login-view:not([hidden]))>.sheet-header{background:#f6f5ef;border-bottom:0;padding:12px 16px 0;min-height:56px;justify-content:flex-end}
#account-dialog:has(#login-view:not([hidden]))>.sheet-header h2{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#account-dialog:has(#login-view:not([hidden]))>.sheet-header .icon-button{background:#e7eee5;color:var(--ink);border:0}
#account-dialog:has(#login-view:not([hidden]))>.sheet-content{padding:0 26px calc(24px + env(safe-area-inset-bottom,0px))}
#login-view.cycle-signin{text-align:center;color:var(--ink)}
#login-view .signin-brand{margin:0 0 23px}#login-view .signin-icon{display:block;width:104px;height:104px;border-radius:28px;margin:0 auto 15px;box-shadow:0 6px 18px #163e3914}
#login-view h1{font:700 clamp(34px,8vw,43px)/1.12 Georgia,serif;letter-spacing:-1.2px;margin:0 0 8px}#login-view .signin-tagline{font-size:15px;font-style:italic;line-height:1.5;margin:0;color:var(--ink)}
#login-view .signin-card{background:var(--card);border:1px solid #bdcec3;border-radius:23px;padding:24px 22px 20px;text-align:left;box-shadow:0 8px 25px #163e3905}#login-view .signin-card h2{font:700 28px/1.2 Georgia,serif;text-align:center;margin:0 0 22px;color:var(--ink)}
#login-view label{font-size:14px;font-weight:650;margin:0;line-height:1.5}#login-view input:not([type=checkbox]):not([type=radio]){font-size:16px;width:100%;min-height:49px;margin-top:6px;background:var(--card);color:var(--ink);border:1px solid #bdcec3}
#login-view .signin-password{display:block;position:relative}#login-view .signin-password input{padding-right:50px}#login-view #cycleShowPassword{position:absolute;right:2px;top:9px;width:44px;height:44px;display:grid;place-items:center;padding:0;background:transparent;color:var(--ink);border-radius:10px}
#login-view .signin-remember{font-weight:400;font-size:13px;align-items:center;line-height:1.5;gap:10px}#login-view .signin-remember input{margin:0;accent-color:var(--accent);flex:0 0 20px;width:20px;height:20px}#login-view .signin-device-note{margin:-9px 0 0;font-size:11px;color:var(--muted)}
#login-view .signin-submit{width:100%;min-height:51px;font-size:16px;background:var(--accent);color:var(--on-accent)}#login-message:empty{display:none}#login-message{margin:0;overflow-wrap:anywhere}#login-view .signin-access{text-align:center;font-size:13px;margin:18px 0 0;color:var(--muted)}#login-view a{color:var(--accent);text-underline-offset:3px}
#login-view .signin-endorsement{display:flex;align-items:center;justify-content:center;gap:9px;margin:20px 0 6px;font:18px/1.2 Georgia,serif}#login-view .signin-endorsement img{width:40px;height:40px;object-fit:contain;background:#fff;border-radius:9px;padding:3px}#login-view .signin-footer{font-size:13px;font-style:italic;color:var(--muted);margin:0}#login-view :is(button,a,input):focus-visible{outline:3px solid #d59b4f;outline-offset:3px}
@media(max-width:360px){#account-dialog:has(#login-view:not([hidden]))>.sheet-content{padding-left:18px;padding-right:18px}#login-view .signin-card{padding:22px 16px}#login-view h1{font-size:32px}}
@media(max-height:760px){#login-view .signin-icon{width:76px;height:76px;border-radius:21px;margin-bottom:10px}#login-view .signin-brand{margin-bottom:18px}#login-view h1{font-size:34px}#login-view .signin-card{padding-top:20px}#login-view .signin-card h2{margin-bottom:18px}#login-view .signin-endorsement{margin-top:16px}}

/* Native storage/update sheets fit content and preserve Cycle's colors. */
.cycle-apk-dialog,.sheet-dialog{box-sizing:border-box;width:min(460px,calc(100% - 32px));height:auto;min-height:0;max-height:calc(100dvh - 48px);margin:auto;overflow:auto;border:1px solid var(--line);border-radius:24px;padding:24px;background:var(--card,#fff);color:var(--ink)}
.cycle-apk-dialog::backdrop,.sheet-dialog::backdrop{background:#23152b88;backdrop-filter:blur(4px)}
.sheet-dialog>.sheet{width:auto;height:auto;min-height:0;padding:0;box-shadow:none;border:0;background:transparent}
.sheet-dialog button{margin-top:12px;min-height:46px;white-space:normal}
.cycle-apk-actions,.sheet-dialog .row{display:flex;flex-wrap:wrap;gap:12px;margin-top:20px}.cycle-apk-actions>button,.sheet-dialog .row>button{flex:1 1 140px;min-height:46px}
.account-group{margin:18px 0;padding:16px;border:1px solid var(--line);border-radius:16px}.account-group summary{cursor:pointer;font-weight:650}.account-group summary small{display:block;font-weight:400;margin-top:5px}.account-group-body{padding-top:14px}.account-group .wide{width:100%;margin-top:12px}

/* Storage choices are selection controls, not full-width text fields. */
#cycleStorageForm fieldset{border:0;padding:0;margin:0 0 18px;min-width:0}
#cycleStorageForm legend{font-size:14px;font-weight:650;margin-bottom:12px}
#cycleStorageForm label.check{display:flex;align-items:flex-start;gap:12px;margin:12px 0 8px;padding:14px;border:1px solid var(--line);border-radius:14px;background:var(--card);font-weight:650;line-height:1.5}
#cycleStorageForm input[type=radio],#cycleStorageForm input[type=checkbox]{appearance:auto;display:inline-block;flex:0 0 20px;width:20px;max-width:20px;height:20px;min-width:20px;min-height:20px;padding:0;margin:2px 0 0;border-radius:initial;accent-color:var(--accent)}
#cycleStorageForm fieldset>p{font-size:13px;line-height:1.6;margin:0 0 16px;padding-left:46px}
#user-settings>.account-group>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none;padding:14px;border:1px solid var(--line);border-radius:14px;background:var(--rose);cursor:pointer}
#user-settings>.account-group>summary::-webkit-details-marker{display:none}
#user-settings>.account-group>summary::after{content:'⌄';flex:0 0 auto;color:var(--accent);font-size:20px}
#user-settings>.account-group[open]>summary::after{transform:rotate(180deg)}
#fingerprintSettings .row{display:flex;flex-wrap:wrap;gap:12px}#fingerprintSettings .row>button{flex:1 1 150px;min-width:0;margin:0;white-space:normal}

/* Storage chooser: compact, centered and scrollable on small screens. */
#cycleStorageChooser {
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  width: min(460px, calc(100% - 32px));
  height: fit-content !important;
  min-height: 0 !important;
  max-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 32px);
  margin: auto;
  padding: 24px;
  overflow: auto;
  overscroll-behavior: contain;
}
#cycleStorageChooser > .sheet {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: visible;
}
#cycleStorageChooser > .sheet > * {
  flex: 0 0 auto;
  min-width: 0;
  margin: 0;
}
#cycleStorageChooser h2 { font-size: 21px; line-height: 1.3; }
#cycleStorageChooser p { line-height: 1.55; }
#cycleStorageChooser .wide {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}
#cycleStorageChooser a.wide { text-decoration: none; }
@media (max-width: 360px) {
  #cycleStorageChooser { padding: 20px; }
}
