:root{color-scheme:light;--bg:#fbf7f4;--surface:#fff;--ink:#382e32;--muted:#8c7f83;--line:#f0e7e5;--rose:#c86f83;--rose-dark:#a95368;--rose-soft:#f8e8ec;--sage:#748b78;--sage-soft:#edf2ec;--shadow:0 12px 32px rgba(78,45,54,.07);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Noto Sans Myanmar",sans-serif}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:84px}body{margin:0;background:var(--bg);color:var(--ink);font-size:15px;line-height:1.55;-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:inherit;text-decoration:none}.app-shell{max-width:760px;margin:0 auto;min-height:100dvh;padding:0 18px 100px}.topbar{height:66px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:5;background:rgba(251,247,244,.94);backdrop-filter:blur(16px)}.brand{display:inline-flex;align-items:center;gap:10px;font-weight:750;font-size:19px;letter-spacing:-.04em}.brand-mark{display:grid;place-items:center;width:34px;height:34px;border-radius:12px;background:var(--rose-soft);color:var(--rose-dark);font-family:Georgia,serif;font-size:25px;font-style:italic}.status-pill{display:inline-flex;align-items:center;gap:7px;font-size:11px;color:var(--muted);background:#fff;border:1px solid var(--line);padding:7px 10px;border-radius:99px}.status-dot{width:7px;height:7px;background:#c9a46a;border-radius:50%}.status-pill.online .status-dot{background:#72a17c}.status-pill.error .status-dot{background:#c86f83}.welcome-row{display:flex;justify-content:space-between;align-items:center;padding:27px 2px 20px}.eyebrow{margin:0 0 5px;color:var(--rose-dark);font-size:10px;font-weight:800;letter-spacing:.13em}.welcome-row h1{margin:0;font-size:clamp(25px,6vw,32px);letter-spacing:-.045em;line-height:1.3}.muted{margin:6px 0 0;color:var(--muted);font-size:13px}.hero-flower{display:grid;place-items:center;width:66px;height:66px;border-radius:24px;background:#f3e3e7;color:var(--rose);font-size:42px;transform:rotate(-8deg)}.cycle-card{background:linear-gradient(140deg,#b96379,#cc7b8c 62%,#d997a1);color:#fff;border-radius:26px;padding:23px 21px 20px;box-shadow:0 14px 32px rgba(177,92,115,.18);position:relative;overflow:hidden}.cycle-card:after{content:"";position:absolute;width:180px;height:180px;border:1px solid rgba(255,255,255,.14);border-radius:50%;right:-80px;top:-80px;box-shadow:0 0 0 24px rgba(255,255,255,.04),0 0 0 48px rgba(255,255,255,.03);pointer-events:none}.cycle-card-top,.section-heading,.modal-title-row{display:flex;align-items:center;justify-content:space-between;gap:14px}.card-overline{font-size:10px;letter-spacing:.16em;opacity:.8;margin:0 0 5px;font-weight:700}.cycle-card h2{font-size:18px;margin:0;letter-spacing:-.02em}.cycle-icon{width:42px;height:42px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.35);border-radius:15px;font-size:24px}.cycle-summary{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:24px 0 15px}.summary-item{background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.13);border-radius:16px;padding:13px}.summary-label{display:block;font-size:11px;opacity:.82;margin-bottom:5px}.summary-item strong{font-size:16px;font-weight:750;overflow-wrap:anywhere}.cycle-hint{font-size:12px;opacity:.92;margin:0 0 16px}.button{border:0;border-radius:14px;min-height:45px;padding:11px 16px;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-weight:700;font-size:13px;transition:transform .12s,opacity .12s}.button:active{transform:scale(.985)}.button:disabled{opacity:.55;cursor:wait}.button-primary{background:var(--rose);color:#fff}.cycle-card .button-light{background:rgba(255,255,255,.94);color:var(--rose-dark);position:relative;z-index:1}.button-small{min-height:38px;padding:9px 12px;font-size:12px;white-space:nowrap}.button-full{width:100%}.button-outline{background:#fff;border:1px solid var(--line);color:var(--ink)}.section-block{margin-top:28px}.section-heading{margin-bottom:13px}.section-heading h2{margin:0;font-size:19px;letter-spacing:-.035em}.heading-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:13px;background:var(--sage-soft);color:var(--sage);font-size:25px}.prediction-card,.period-list,.profile-panel{background:var(--surface);border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow)}.prediction-card{padding:16px}.prediction-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.prediction-item{border-radius:16px;padding:13px;background:#faf4f5;min-width:0}.prediction-item:nth-child(2){background:#f2f4ed}.prediction-item:nth-child(3){background:#f6f1e8}.prediction-item:nth-child(4){background:#f2eef8}.prediction-label{font-size:11px;color:var(--muted);display:block;margin-bottom:5px}.prediction-date{font-size:15px;font-weight:750;overflow-wrap:anywhere}.prediction-foot{margin:12px 2px 0;color:var(--muted);font-size:11px}.disclaimer{color:var(--muted);font-size:11px;line-height:1.7;margin:10px 3px 0}.empty-state{text-align:center;padding:22px 12px;color:var(--muted);font-size:13px}.empty-state p{margin:8px 0 0}.empty-icon{display:grid;place-items:center;width:42px;height:42px;margin:auto;background:var(--rose-soft);color:var(--rose-dark);border-radius:15px;font-size:24px}.period-list{overflow:hidden}.period-item{display:flex;align-items:flex-start;gap:12px;padding:15px;border-bottom:1px solid var(--line)}.period-item:last-child{border-bottom:0}.period-date-icon{flex:none;display:flex;flex-direction:column;align-items:center;justify-content:center;width:48px;height:52px;border-radius:15px;background:var(--rose-soft);color:var(--rose-dark);font-size:11px;line-height:1.2}.period-date-icon strong{font-size:19px}.period-info{flex:1;min-width:0}.period-info strong{display:block;font-size:13px}.period-info p{margin:3px 0 0;color:var(--muted);font-size:12px;overflow-wrap:anywhere}.period-actions{display:flex;gap:5px}.mini-button{border:1px solid var(--line);background:#fff;color:var(--muted);border-radius:10px;min-width:34px;min-height:34px}.profile-panel{padding:17px}.settings-row{display:flex;justify-content:space-between;align-items:center;padding:13px 0;border-bottom:1px solid var(--line)}.settings-row strong{font-size:13px}.settings-row .muted{margin-top:2px}.settings-row>span{font-size:20px;color:var(--rose)}.profile-panel .button{margin-top:15px}.text-button{display:block;border:0;background:none;color:var(--muted);font-size:12px;margin:13px auto 0;padding:8px}.bottom-nav{position:fixed;z-index:10;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,760px);padding:9px 14px calc(9px + env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(4,1fr);background:rgba(255,255,255,.95);backdrop-filter:blur(18px);border-top:1px solid var(--line)}.nav-item{display:flex;flex-direction:column;align-items:center;gap:2px;border:0;background:transparent;color:#9d9094;padding:5px;border-radius:13px}.nav-item span{font-size:21px;line-height:1.2}.nav-item small{font-size:10px}.nav-item.active{color:var(--rose-dark);background:#fbf0f2}.modal{position:fixed;inset:0;z-index:30;display:flex;align-items:flex-end;justify-content:center}.modal-backdrop{position:absolute;inset:0;background:rgba(39,26,31,.42);backdrop-filter:blur(3px)}.modal-sheet{position:relative;z-index:1;background:#fff;width:min(100%,560px);max-height:min(88dvh,760px);overflow:auto;border-radius:25px 25px 0 0;padding:12px 20px calc(23px + env(safe-area-inset-bottom));box-shadow:0 -16px 50px rgba(30,20,24,.15);animation:sheet-in .2s ease-out}.sheet-handle{width:42px;height:4px;background:#e9dfe1;border-radius:9px;margin:0 auto 19px}.modal-title-row{margin-bottom:20px}.modal-title-row h2{margin:0;font-size:21px}.icon-button{width:35px;height:35px;border:0;border-radius:12px;background:#f8f2f3;color:var(--muted);font-size:24px}.modal-sheet label{display:block;font-size:12px;font-weight:700;margin:14px 0;color:#67575d}.modal-sheet input,.modal-sheet select,.modal-sheet textarea{display:block;width:100%;margin-top:7px;border:1px solid #e9dfe1;background:#fff;border-radius:13px;padding:12px 13px;min-height:45px;color:var(--ink);outline:none;font-size:14px}.modal-sheet textarea{resize:vertical}.modal-sheet input:focus,.modal-sheet select:focus,.modal-sheet textarea:focus{border-color:#d28b9a;box-shadow:0 0 0 3px rgba(200,111,131,.1)}.field-hint{color:var(--muted);font-size:11px;margin:8px 0 14px}.form-error{background:#fff0f1;color:#a53d50;padding:10px 12px;border-radius:12px;font-size:12px}.toast{position:fixed;z-index:50;left:50%;bottom:calc(88px + env(safe-area-inset-bottom));transform:translateX(-50%);width:max-content;max-width:calc(100% - 32px);background:#3f3539;color:#fff;padding:12px 16px;border-radius:14px;font-size:12px;box-shadow:var(--shadow)}.notice{padding:70px 10px 40px;text-align:center}.notice-icon{margin:0 auto 18px;display:grid;place-items:center;width:68px;height:68px;border-radius:24px;background:var(--rose-soft);color:var(--rose);font-size:39px}.notice h1{font-size:25px;margin:0}.notice p{max-width:350px;margin:10px auto 20px;color:var(--muted);font-size:13px}.loading-view{text-align:center;padding:85px 10px;color:var(--muted);font-size:13px}.loader{width:30px;height:30px;margin:0 auto 14px;border:3px solid #f0dce1;border-top-color:var(--rose);border-radius:50%;animation:spin .8s linear infinite}.hidden{display:none!important}@keyframes spin{to{transform:rotate(360deg)}}@keyframes sheet-in{from{transform:translateY(18px);opacity:.6}to{transform:translateY(0);opacity:1}}@media(min-width:600px){.app-shell{padding-left:26px;padding-right:26px}.welcome-row{padding-top:34px}.cycle-card{padding:26px}.section-block{margin-top:32px}.modal{align-items:center;padding:18px}.modal-sheet{border-radius:25px;max-height:90dvh}.sheet-handle{display:none}.bottom-nav{bottom:14px;border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow);padding-bottom:9px}.toast{bottom:100px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}