:root{
  --bg:#09090d;--surface:rgba(20,20,27,.78);--solid:#15151d;--soft:#1d1d27;
  --border:rgba(255,255,255,.085);--text:#f7f5fb;--muted:#aaa5b5;--faint:#74707d;
  --rose:#ff6f91;--rose2:#e94f7a;--violet:#9f7aea;--orange:#ff9d72;
  --success:#64d7a2;--danger:#ff6b74;--shadow:0 28px 80px rgba(0,0,0,.42);--sidebar:248px
}
:root[data-theme="light"]{
  --bg:#f5f3f7;--surface:rgba(255,255,255,.8);--solid:#fff;--soft:#efebf1;
  --border:rgba(50,35,60,.09);--text:#211c24;--muted:#746b79;--faint:#a49ca8;
  --shadow:0 24px 65px rgba(64,44,70,.12)
}
*{box-sizing:border-box}html{color-scheme:dark}html[data-theme="light"]{color-scheme:light}
body{margin:0;min-width:320px;min-height:100vh;overflow-x:hidden;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased}
button,input,textarea{font:inherit}button{color:inherit}button,label{-webkit-tap-highlight-color:transparent}
button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid rgba(255,111,145,.22);outline-offset:2px}
svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ambient{position:fixed;border-radius:50%;filter:blur(90px);pointer-events:none;opacity:.2}
.a1{width:520px;height:520px;right:-180px;top:-230px;background:var(--rose)}
.a2{width:480px;height:480px;left:18%;bottom:-300px;background:var(--violet)}
.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);padding:24px 18px 20px;display:flex;flex-direction:column;background:rgba(10,10,15,.72);border-right:1px solid var(--border);backdrop-filter:blur(30px);z-index:50}
[data-theme="light"] .sidebar{background:rgba(255,255,255,.72)}
.brand-row{display:flex;align-items:center;justify-content:space-between;padding:0 8px 25px}
.brand{display:flex;align-items:center;gap:11px;border:0;background:none;padding:0;cursor:pointer;text-align:left}
.brand-icon{width:39px;height:39px;border-radius:13px;display:grid;place-items:center;color:#fff;background:linear-gradient(145deg,#ff8aa7,#e7517d);box-shadow:0 12px 28px rgba(230,78,120,.28)}
.brand-icon svg{width:19px;fill:currentColor;stroke:none}.brand>span:last-child{display:flex;flex-direction:column}.brand strong{font-size:16px}.brand small{font-size:11px;color:var(--muted);margin-top:1px}
nav{display:flex;flex-direction:column;gap:7px}.nav-item,.settings-link{min-height:46px;padding:0 13px;display:flex;align-items:center;gap:12px;border:0;border-radius:14px;background:transparent;color:var(--muted);cursor:pointer;font-weight:700;transition:.18s}
.nav-item:hover,.settings-link:hover{background:var(--soft);color:var(--text)}.nav-item.active{color:var(--text);background:linear-gradient(90deg,rgba(255,111,145,.17),rgba(159,122,234,.1));box-shadow:inset 0 0 0 1px rgba(255,111,145,.14)}
.nav-item.active svg{color:var(--rose)}.nav-item svg,.settings-link svg{width:18px}
.sidebar-ai{margin-top:28px;padding:17px;border:1px solid var(--border);border-radius:18px;background:linear-gradient(145deg,rgba(255,111,145,.11),rgba(159,122,234,.05)),var(--surface)}
.spark{width:34px;height:34px;display:grid;place-items:center;border-radius:11px;color:var(--rose);background:rgba(255,111,145,.13);margin-bottom:13px}.spark svg{fill:currentColor;stroke:none}
.sidebar-ai strong{font-size:13px}.sidebar-ai p{margin:7px 0 13px;color:var(--muted);font-size:11px;line-height:1.55}.sidebar-ai span{display:flex;align-items:center;gap:7px;color:var(--faint);font-size:10px}.sidebar-ai i{width:7px;height:7px;border-radius:50%;background:var(--success)}
.settings-link{margin-top:auto;width:100%}
main{margin-left:var(--sidebar);padding:28px 34px 70px;max-width:1520px}.topbar{min-height:66px;display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.topbar-left{display:flex;align-items:center;gap:12px}
.eyebrow,.section-label{display:block;color:var(--rose);font-size:10px;font-weight:850;letter-spacing:.15em}.eyebrow{margin-bottom:5px}
h1,h2,h3,p{margin-top:0}h1{margin-bottom:0;font-size:clamp(28px,3vw,39px);letter-spacing:-1.4px}h2{letter-spacing:-.8px}h3{letter-spacing:-.4px}
.icon-btn{width:43px;height:43px;border:1px solid var(--border);border-radius:13px;display:grid;place-items:center;background:var(--surface);color:var(--muted);cursor:pointer;backdrop-filter:blur(18px)}
.icon-btn:hover{color:var(--text);background:var(--soft)}.theme-button .sun{display:none}[data-theme="dark"] .theme-button .moon{display:none}[data-theme="dark"] .theme-button .sun{display:block}
.view{display:none}.view.active{display:block}.dashboard-grid{display:grid;grid-template-columns:minmax(420px,1.08fr) minmax(340px,.92fr);gap:18px}
.hero-card,.glass{border:1px solid var(--border);background:var(--surface);backdrop-filter:blur(30px);box-shadow:var(--shadow)}
.hero-card{min-height:630px;padding:27px;border-radius:30px;display:flex;flex-direction:column;overflow:hidden;position:relative}
.hero-card:before{content:"";position:absolute;width:330px;height:330px;border-radius:50%;left:50%;top:42%;transform:translate(-50%,-50%);background:radial-gradient(circle,rgba(255,111,145,.16),transparent 68%);filter:blur(10px)}
.hero-head{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;position:relative;z-index:2}.hero-head h2{margin:7px 0 0;font-size:22px}
.status-pill,.learning-pill,.subtle-pill{padding:7px 10px;border:1px solid var(--border);border-radius:999px;background:var(--soft);color:var(--muted);font-size:10px;font-weight:800}
.status-pill.active{color:#ffd7e1;background:rgba(255,111,145,.12);border-color:rgba(255,111,145,.2)}
.orb-zone{height:355px;position:relative;display:grid;place-items:center}.orbit{position:absolute;border:1px solid rgba(255,255,255,.07);border-radius:50%}.orbit-one{width:290px;height:290px}.orbit-two{width:235px;height:235px}
[data-theme="light"] .orbit{border-color:rgba(60,30,70,.07)}
.cycle-orb{width:205px;height:205px;border-radius:50%;position:relative;display:grid;place-items:center;background:radial-gradient(circle at 34% 25%,#ffb7c8 0,#ff7597 26%,#dc4772 64%,#922a5c 100%);box-shadow:0 30px 80px rgba(226,72,115,.28),inset 0 2px 15px rgba(255,255,255,.35);z-index:2;transition:.35s}
.cycle-orb.active{animation:breathe 4s ease-in-out infinite;background:radial-gradient(circle at 34% 25%,#ffc4d1 0,#ff789a 26%,#d43b69 67%,#7c214f 100%)}
@keyframes breathe{50%{transform:scale(1.025);box-shadow:0 34px 95px rgba(226,72,115,.37),inset 0 2px 15px rgba(255,255,255,.35)}}
.orb-shine{position:absolute;inset:9px;border-radius:50%;background:linear-gradient(150deg,rgba(255,255,255,.18),transparent 42%)}.orb-copy{position:relative;text-align:center;color:#fff}.orb-copy span{display:block;font-size:10px;font-weight:850;letter-spacing:.14em;opacity:.74}.orb-copy strong{display:block;font-size:52px;line-height:1;margin:11px 0 8px;letter-spacing:-2px}.orb-copy small{font-size:11px;opacity:.78}
.period-button{min-height:66px;width:100%;padding:10px 16px;border:0;border-radius:18px;display:flex;align-items:center;justify-content:center;gap:13px;background:linear-gradient(135deg,var(--rose),var(--rose2));color:#fff;cursor:pointer;box-shadow:0 15px 35px rgba(226,72,115,.25);position:relative;z-index:2;transition:.18s}
.period-button:hover{transform:translateY(-2px);filter:saturate(1.08)}.period-button.stop{background:linear-gradient(135deg,#252530,#191922);box-shadow:inset 0 0 0 1px rgba(255,111,145,.28)}
.period-button-icon{width:36px;height:36px;border-radius:12px;display:grid;place-items:center;background:rgba(255,255,255,.15)}.period-button-icon svg{fill:currentColor;stroke:none}
.period-button>span:last-child{display:flex;flex-direction:column;text-align:left}.period-button strong{font-size:14px}.period-button small{font-size:10px;opacity:.72;margin-top:3px}.simple-link{align-self:center;margin-top:15px;border:0;background:none;color:var(--muted);font-size:11px;font-weight:750;cursor:pointer}.simple-link:hover{color:var(--text)}
.dashboard-side{display:grid;grid-template-rows:1fr auto auto;gap:14px}.glass{border-radius:22px}.forecast-card{padding:23px}.card-title-row{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.card-title-row h3{margin:6px 0 0;font-size:19px}
.learning-pill{display:flex;align-items:center;gap:6px}.learning-pill i{width:6px;height:6px;border-radius:50%;background:var(--success)}
.forecast-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:27px 0 24px}.forecast-grid>div{padding:15px;border-radius:15px;background:var(--soft);border:1px solid var(--border)}.forecast-grid span,.stat span,.mini-stat span{display:block;color:var(--muted);font-size:10px}.forecast-grid strong{display:block;margin-top:8px;font-size:15px}
.confidence>div:first-child{display:flex;justify-content:space-between;color:var(--muted);font-size:10px}.confidence-track{height:7px;margin-top:10px;border-radius:999px;background:var(--soft);overflow:hidden}.confidence-track span{display:block;width:8%;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--violet),var(--rose));transition:.4s}
.forecast-card>p{margin:20px 0 0;color:var(--muted);font-size:11px;line-height:1.65}.stats-card{display:grid;grid-template-columns:repeat(3,1fr);padding:20px}.stat{padding:0 14px;border-right:1px solid var(--border)}.stat:last-child{border-right:0}.stat strong{display:inline-block;margin:9px 4px 0 0;font-size:25px}.stat small{color:var(--faint);font-size:10px}
.guide-preview{min-height:92px;padding:16px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:13px;border:1px solid rgba(255,111,145,.17);border-radius:20px;background:linear-gradient(110deg,rgba(255,111,145,.14),rgba(159,122,234,.08));cursor:pointer}.guide-icon{width:39px;height:39px;border-radius:13px;display:grid;place-items:center;color:var(--rose);background:rgba(255,111,145,.13)}.guide-icon svg{fill:currentColor;stroke:none}.guide-preview span{font-size:11px;font-weight:800}.guide-preview p{margin:5px 0 0;color:var(--muted);font-size:10px;line-height:1.45}.guide-preview .arrow{color:var(--muted);width:17px}
.timeline-section{margin-top:18px;padding:25px;border:1px solid var(--border);border-radius:24px;background:var(--surface);backdrop-filter:blur(25px)}.section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.section-head h2{margin:6px 0 0;font-size:21px}.text-button{border:0;background:none;color:var(--muted);font-size:11px;font-weight:800;cursor:pointer}.text-button:hover{color:var(--text)}
.timeline{margin-top:20px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.timeline-item{padding:15px;border:1px solid var(--border);border-radius:16px;background:var(--soft);cursor:pointer}.timeline-item-head{display:flex;justify-content:space-between;align-items:center}.timeline-item strong{font-size:13px}.timeline-item p{margin:8px 0 0;color:var(--muted);font-size:10px}.period-dot{width:8px;height:8px;border-radius:50%;background:var(--rose);box-shadow:0 0 0 5px rgba(255,111,145,.08)}
.empty-state{display:none;padding:52px 20px;text-align:center}.empty-state.show{display:block}.empty-mark{width:42px;height:42px;margin:0 auto 15px;border-radius:50%;background:radial-gradient(circle at 34% 25%,#ffb1c4,#dc4772)}.empty-state h3{margin-bottom:7px}.empty-state p{max-width:470px;margin:0 auto;color:var(--muted);font-size:11px;line-height:1.6}
.page-section-head{margin-bottom:18px}.compact-primary,.primary-button,.secondary-button,.danger-button{border:0;border-radius:13px;min-height:43px;padding:0 16px;font-weight:800;cursor:pointer}.compact-primary,.primary-button{background:linear-gradient(135deg,var(--rose),var(--rose2));color:#fff;box-shadow:0 10px 24px rgba(226,72,115,.2)}.compact-primary{display:flex;align-items:center;gap:8px}.compact-primary svg{width:16px}.secondary-button{background:var(--soft);color:var(--text)}.danger-button{background:rgba(255,107,116,.12);color:var(--danger)}
.history-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:16px}.history-card{padding:12px 20px}.history-row{min-height:80px;padding:13px 3px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:14px;border-bottom:1px solid var(--border);cursor:pointer}.history-row:last-child{border-bottom:0}.history-date{width:47px;height:47px;border-radius:15px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:linear-gradient(145deg,rgba(255,111,145,.17),rgba(159,122,234,.08));border:1px solid rgba(255,111,145,.14)}.history-date strong{font-size:17px}.history-date span{font-size:8px;color:var(--muted);text-transform:uppercase}.history-copy strong{font-size:13px}.history-copy p{margin:6px 0 0;color:var(--muted);font-size:10px}.history-duration{color:var(--muted);font-size:11px;font-weight:800}.history-summary{padding:22px}.mini-stat{padding:17px 0;border-bottom:1px solid var(--border)}.mini-stat strong{display:block;margin-top:7px;font-size:20px}.history-summary>p{margin:18px 0 0;color:var(--muted);font-size:10px;line-height:1.6}
.insights-layout{display:grid;grid-template-columns:1.25fr .75fr;gap:16px}.chart-card,.insight-card{padding:24px}.chart-area{height:340px;position:relative;margin-top:25px;border-bottom:1px solid var(--border)}.grid-lines{position:absolute;inset:0;background:repeating-linear-gradient(to bottom,transparent 0,transparent calc(25% - 1px),var(--border) 25%)}.bar-chart{position:absolute;inset:20px 10px 0;display:flex;align-items:flex-end;gap:13px}.bar-wrap{height:100%;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:9px}.bar{width:min(45px,75%);min-height:5px;border-radius:9px 9px 3px 3px;background:linear-gradient(to top,var(--violet),var(--rose));position:relative;transition:.4s}.bar span{position:absolute;top:-20px;left:50%;transform:translateX(-50%);font-size:9px;color:var(--muted)}.bar-wrap small{font-size:8px;color:var(--faint)}
.insight-card h2{margin:12px 0;font-size:24px}.insight-card>p{color:var(--muted);font-size:12px;line-height:1.7}.insight-points{margin-top:23px;display:flex;flex-direction:column;gap:9px}.insight-point{padding:13px;border-radius:14px;background:var(--soft);border:1px solid var(--border)}.insight-point strong{display:block;font-size:11px}.insight-point span{display:block;margin-top:5px;color:var(--muted);font-size:10px;line-height:1.5}
.guide-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:16px}.guide-main{padding:26px}.guide-header{display:flex;align-items:center;gap:14px}.guide-header h2{margin:6px 0 0}.guide-avatar{width:48px;height:48px;border-radius:17px;display:grid;place-items:center;background:linear-gradient(145deg,rgba(255,111,145,.2),rgba(159,122,234,.13));border:1px solid rgba(255,111,145,.15)}.guide-avatar div{width:25px;height:25px;border-radius:50%;background:radial-gradient(circle at 34% 25%,#ffbed0,#e34d79)}
.guide-message{margin:23px 0;padding:19px;border-radius:18px;background:linear-gradient(110deg,rgba(255,111,145,.12),rgba(159,122,234,.06));color:var(--muted);font-size:12px;line-height:1.72}.guide-message strong{color:var(--text)}
.guide-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin-bottom:20px}.guide-card{padding:16px;border:1px solid var(--border);border-radius:16px;background:var(--soft)}.guide-card strong{font-size:12px}.guide-card p{margin:7px 0 0;color:var(--muted);font-size:10px;line-height:1.55}.guide-card.warning{border-color:rgba(255,107,116,.25);background:rgba(255,107,116,.07)}.guide-card.warning strong{color:#ff9fa5}
.guide-side{display:flex;flex-direction:column;gap:13px}.menopause-card{padding:22px}.menopause-card strong{display:block;margin-top:12px;font-size:18px}.menopause-card p{margin:10px 0 0;color:var(--muted);font-size:10px;line-height:1.65}.safety-card{padding:19px;border-radius:18px;border:1px solid rgba(255,157,114,.18);background:rgba(255,157,114,.08)}.safety-card span{color:var(--orange);font-size:10px;font-weight:850;letter-spacing:.13em}.safety-card p{margin:9px 0 0;color:var(--muted);font-size:10px;line-height:1.65}
.modal{width:min(560px,calc(100vw - 26px));max-height:calc(100vh - 30px);padding:0;border:1px solid var(--border);border-radius:24px;background:var(--solid);color:var(--text);box-shadow:0 32px 100px rgba(0,0,0,.52)}.small-modal{width:min(470px,calc(100vw - 26px))}.modal::backdrop{background:rgba(5,5,9,.62);backdrop-filter:blur(8px)}.modal form{padding:25px}.modal-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:21px}.modal-head h2{margin:6px 0 0}.modal-head .icon-btn{margin-top:-6px;margin-right:-6px}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.field{display:flex;flex-direction:column;gap:8px;margin-top:15px}.field>span{color:var(--muted);font-size:11px;font-weight:750}.field input,.field textarea{width:100%;border:1px solid var(--border);border-radius:13px;background:var(--soft);color:var(--text);padding:12px 13px;outline:0}.field input:focus,.field textarea:focus{border-color:var(--rose);box-shadow:0 0 0 4px rgba(255,111,145,.09)}.field textarea{resize:vertical}.form-help{margin:12px 0 0;color:var(--faint);font-size:10px}.modal-actions{display:grid;grid-template-columns:auto 1fr auto auto;gap:9px;align-items:center;margin-top:24px}
.choice-row{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}.choice-row button,.symptom-grid button{min-height:40px;border:1px solid var(--border);border-radius:12px;background:var(--soft);color:var(--muted);cursor:pointer;font-size:10px;font-weight:800}.choice-row button.active,.symptom-grid button.active{border-color:var(--rose);background:rgba(255,111,145,.11);color:var(--rose)}
.symptom-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.switch-row{position:relative;display:flex;align-items:center;gap:14px;margin-top:17px;cursor:pointer}.switch-row div{display:flex;flex-direction:column;gap:4px;flex:1}.switch-row strong{font-size:12px}.switch-row span{color:var(--muted);font-size:10px}.switch-row input{position:absolute;opacity:0}.switch-row i{width:44px;height:25px;padding:3px;border-radius:999px;background:var(--soft);transition:.2s}.switch-row i:after{content:"";display:block;width:19px;height:19px;border-radius:50%;background:#fff;box-shadow:0 2px 6px rgba(0,0,0,.18);transition:.2s}.switch-row input:checked+i{background:var(--rose)}.switch-row input:checked+i:after{transform:translateX(19px)}
.settings-block{margin-top:24px;padding-top:18px;border-top:1px solid var(--border)}.settings-actions{display:flex;gap:9px;margin-top:11px}.settings-block>p{margin:10px 0 0;color:var(--faint);font-size:10px}.file-label{display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.file-label input{display:none}.hidden{display:none!important}
.toast-region{position:fixed;right:22px;bottom:22px;z-index:110;display:flex;flex-direction:column;align-items:flex-end;gap:8px}.toast{min-width:240px;max-width:360px;padding:13px 15px;border-radius:14px;background:var(--text);color:var(--solid);box-shadow:var(--shadow);font-size:11px;font-weight:750;animation:toast .2s}.toast button{float:right;border:0;background:none;color:inherit;cursor:pointer;opacity:.7}@keyframes toast{from{opacity:0;transform:translateY(8px)}}
.overlay{position:fixed;inset:0;background:rgba(5,5,9,.55);backdrop-filter:blur(3px);opacity:0;pointer-events:none;z-index:40}.overlay.show{opacity:1;pointer-events:auto}.mobile-only{display:none}
@media(max-width:980px){.sidebar{transform:translateX(-105%);transition:.25s;z-index:80}.sidebar.open{transform:translateX(0)}main{margin-left:0;padding:20px 20px 55px}.mobile-only{display:grid}.dashboard-grid{grid-template-columns:1fr}.hero-card{min-height:600px}.history-layout,.guide-layout{grid-template-columns:1fr}.insights-layout{grid-template-columns:1fr}}
@media(max-width:650px){main{padding:15px 12px 45px}.dashboard-grid{gap:12px}.hero-card{padding:20px;min-height:555px}.orb-zone{height:305px}.cycle-orb{width:180px;height:180px}.orbit-one{width:250px;height:250px}.orbit-two{width:215px;height:215px}.orb-copy strong{font-size:45px}.forecast-grid{grid-template-columns:1fr}.stats-card{padding:17px 8px}.stat{padding:0 8px}.timeline{grid-template-columns:1fr}.timeline-section{padding:20px}.form-grid{grid-template-columns:1fr}.choice-row{grid-template-columns:1fr 1fr}.symptom-grid{grid-template-columns:1fr 1fr}.guide-cards{grid-template-columns:1fr}.modal-actions{grid-template-columns:1fr 1fr}.modal-actions>span{display:none}.modal-actions .danger-button{grid-column:1/-1}.settings-actions{flex-direction:column}.chart-area{height:280px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important}}
