:root{--bg:#fffbf8;--paper:#fff;--ink:#332c36;--sub:#817782;--muted:#afa2aa;--line:#f0e8e9;--rose:#d45d83;--rose-dark:#ae3f65;--soft:#fae7ed;--rose-light:#fff0f4;--purple:#8660a7;--lilac:#f4edfb;--green:#408874;--mint:#e9f5ef;--yellow:#fff2dc;--shadow:0 12px 36px rgba(102,55,82,.055);font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display",Inter,"Helvetica Neue",Arial,sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}body{margin:0;min-height:100dvh;background:linear-gradient(165deg,#fff7f7 0%,#fffdf9 25%,#fffbf8 100%);font-size:14px}button,input,textarea,select{font:inherit}button{cursor:pointer;border:0}button:disabled{opacity:.48;cursor:default}input,textarea,select{outline:none}input:focus,textarea:focus,select:focus{border-color:#d98ead!important;box-shadow:0 0 0 3px #fce6ed}.app{max-width:520px;margin:0 auto;min-height:100dvh;padding:0 22px calc(108px + env(safe-area-inset-bottom));position:relative}.topbar{padding-top:calc(22px + env(safe-area-inset-top));display:flex;align-items:center;justify-content:space-between;margin-bottom:25px}.brand{display:flex;align-items:center;gap:9px;font-size:31px;font-weight:750;letter-spacing:-2px;color:#82415c}.brand-mark{width:31px;height:31px;position:relative;border-radius:50%;background:#f7d6e3;display:inline-flex;align-items:center;justify-content:center;color:#bc577c}.brand-mark svg{width:19px;height:19px}.subbrand{display:block;font-size:11px;color:#9b8793;letter-spacing:1.8px;text-transform:uppercase;font-weight:600}.round-btn{width:43px;height:43px;border-radius:50%;display:grid;place-items:center;color:#866574;background:#fff;box-shadow:var(--shadow);border:1px solid #f8eaed}.round-btn svg{width:19px;height:19px}.eyebrow{color:var(--rose);text-transform:uppercase;letter-spacing:1.7px;font-weight:750;font-size:10px}.page-title{font-size:28px;line-height:1.16;letter-spacing:-1.05px;font-weight:760;margin:8px 0 8px}.subtitle{font-size:13px;line-height:1.55;color:var(--sub);margin:0}.hero{border-radius:29px;background:linear-gradient(145deg,#fae0e9 0%,#fff0ed 80%);padding:22px 24px 24px;margin-top:21px;position:relative;overflow:hidden;box-shadow:var(--shadow)}.hero:before{content:"";position:absolute;right:-84px;top:-83px;width:210px;height:210px;border:38px solid rgba(255,255,255,.24);border-radius:50%}.hero-top{display:flex;justify-content:space-between;align-items:center;position:relative;z-index:1}.hero-hint{font-size:12px;color:#956d80;font-weight:620}.hero-dot{border-radius:40px;background:rgba(255,255,255,.6);padding:7px 10px;font-weight:700;font-size:10px;color:#a44e72}.hero-center{display:flex;align-items:center;gap:19px;margin-top:18px;position:relative;z-index:1}.ring{width:135px;height:135px;border-radius:50%;flex-shrink:0;display:grid;place-items:center;background:conic-gradient(#c65a85 var(--progress),#fbeef2 0);box-shadow:0 7px 20px rgba(194,69,117,.1)}.ring-inner{width:115px;height:115px;background:#fff7f8;border-radius:50%;display:flex;flex-direction:column;justify-content:center;align-items:center}.ring-n{font-size:45px;letter-spacing:-2px;line-height:1;font-weight:800;color:#a64a73}.ring-unit{font-size:11px;margin-top:3px;color:#906c7d;font-weight:600}.hero-data{flex:1;min-width:0}.hero-data h2{font-size:23px;line-height:1.2;letter-spacing:-.7px;margin:6px 0;font-weight:790;color:#663a50}.hero-data p{color:#8f6a7c;line-height:1.45;margin:0;font-size:12px}.hero-bottom{border-top:1px solid #efcad8;padding-top:14px;margin-top:20px;display:flex;justify-content:space-between;gap:12px;color:#75475e;font-size:12px;position:relative;z-index:1}.hero-bottom span{color:#9a7486}.section-head{display:flex;align-items:center;justify-content:space-between;margin:28px 0 13px}.section-head h3{margin:0;font-size:17px;letter-spacing:-.35px}.text-btn{background:transparent;color:var(--rose-dark);font-weight:700;font-size:12px;padding:8px 0}.surface{background:var(--paper);border:1px solid #f6ecee;border-radius:22px;padding:18px;box-shadow:var(--shadow)}.row{display:flex;align-items:center}.space{justify-content:space-between}.muted{color:var(--sub)}.small{font-size:12px}.micro{font-size:11px}.divider{height:1px;background:var(--line);margin:16px 0}.quick-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:20px 0 0}.quick-card{display:flex;gap:10px;align-items:center;text-align:left;border:1px solid #f2e9ea;background:white;border-radius:18px;padding:13px 12px;box-shadow:var(--shadow);color:#4b3a45;font-weight:700;font-size:12px}.quick-card .icon-chip{width:38px;height:38px;flex:none}.icon-chip{width:42px;height:42px;border-radius:14px;background:var(--rose-light);color:var(--rose-dark);display:grid;place-items:center}.icon-chip.lilac{background:var(--lilac);color:var(--purple)}.icon-chip.mint{background:var(--mint);color:var(--green)}.icon-chip svg{width:20px;height:20px}.cal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.cal-month{font-size:17px;letter-spacing:-.4px;font-weight:750}.cal-nav{display:flex;gap:7px}.cal-nav button{display:grid;place-items:center;background:#fff8f9;border:1px solid #f6e9ec;border-radius:12px;height:33px;width:33px;color:#8f6980}.cal-week{display:grid;grid-template-columns:repeat(7,1fr);text-align:center;color:#a29aa3;font-size:10px;font-weight:740;margin-bottom:8px}.cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:5px 2px}.cal-cell{height:43px;background:transparent;display:flex;justify-content:center;align-items:center;flex-direction:column;position:relative;color:#4e4350;border-radius:14px;font-size:13px}.cal-cell.other{color:#d2c9cd}.cal-cell.today:after{content:"";position:absolute;bottom:4px;width:4px;height:4px;background:var(--rose);border-radius:50%}.cal-cell.period{background:#d85f85;color:white;font-weight:700;border-radius:13px}.cal-cell.predicted{background:#f9e1e9;color:#bd4b73;border-radius:13px}.cal-cell.fertile{background:#f0e7fa;color:#7f56a1;border-radius:13px}.cal-cell.ovulation{background:#e0d2f3;color:#774e98;font-weight:700}.cal-cell.selected{outline:2px solid #ac526f;outline-offset:1px}.cal-cell .has-log{width:3px;height:3px;border-radius:50%;position:absolute;bottom:5px;background:#9e7794}.cal-cell.period .has-log{background:white}.legend{display:flex;flex-wrap:wrap;gap:14px;margin-top:18px;color:var(--sub);font-size:10px}.legend span{display:flex;align-items:center;gap:6px}.swatch{width:9px;height:9px;border-radius:3px;display:inline-block;background:var(--rose)}.swatch.pred{background:#f2c9d8}.swatch.fert{background:#c9aee4}.day-panel{margin-top:16px;border-radius:17px;background:#fff9fa;border:1px solid #f8e7ed;padding:14px}.tag{display:inline-flex;align-items:center;gap:5px;padding:7px 10px;background:#f8e8ed;color:#a04768;border-radius:99px;font-size:11px;font-weight:700}.tag.lilac{background:#f1eafb;color:#8258a6}.tag.mint{background:#e7f4ed;color:#488971}.pill-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.pill{border-radius:99px;padding:9px 12px;background:#f9f5f7;color:#7b707d;border:1px solid #f2e7ea;font-weight:620;font-size:12px}.pill.active{background:#bd587d;color:white;border-color:#bd587d}.pill.negative{color:#bb5e73}.primary{border-radius:15px;background:var(--rose);color:white;font-weight:730;min-height:45px;padding:12px 18px;box-shadow:0 7px 14px rgba(196,69,117,.14)}.secondary{border-radius:15px;background:#fff1f5;color:#a94769;font-weight:720;min-height:43px;padding:10px 15px}.tertiary{border-radius:13px;background:#fff;color:#8e6876;border:1px solid #eddee4;padding:10px 13px;font-weight:700}.full{width:100%}.med-mini{display:flex;align-items:center;gap:12px}.med-mini .txt{flex:1;min-width:0}.med-mini .txt strong{display:block;font-size:13px}.med-mini .txt small{display:block;color:var(--sub);font-size:11px;margin-top:5px}.taken{color:#377e68;font-weight:700}.check-btn{width:39px;height:39px;border-radius:50%;border:1.5px solid #eddbe1;background:#fff;display:grid;place-items:center;color:#d2b2c1}.check-btn.done{border-color:#b0dcc8;background:#e6f5ec;color:#448971}.insight-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.metric{padding:17px;border-radius:19px;background:white;border:1px solid #f5e9ed;box-shadow:var(--shadow)}.metric b{font-size:26px;display:block;color:#94526e;margin:8px 0 4px;letter-spacing:-.9px}.metric small{color:var(--sub);font-size:11px}.bar-row{display:flex;align-items:center;gap:9px;margin:12px 0}.bar-name{font-size:12px;width:100px;color:#6e5e6a;flex-shrink:0}.bar-track{flex:1;height:8px;border-radius:99px;background:#f6eef0;overflow:hidden}.bar-fill{height:100%;border-radius:99px;background:#da87a5}.bar-val{min-width:17px;text-align:right;color:#98858e;font-weight:700;font-size:11px}.bottom-nav{position:fixed;z-index:30;left:0;right:0;bottom:0;max-width:520px;margin:0 auto;background:rgba(255,255,255,.97);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border-top:1px solid #f6e9ec;padding:11px 12px calc(8px + env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(5,1fr);gap:2px;box-shadow:0 -7px 28px rgba(96,55,72,.05)}.nav-item{display:flex;flex-direction:column;align-items:center;gap:5px;color:#a89da5;background:none;padding:6px 1px;font-size:10px;font-weight:700}.nav-item svg{width:21px;height:21px}.nav-item.active{color:var(--rose-dark)}.nav-item.active:before{content:"";position:absolute;top:0;width:25px;height:3px;border-radius:0 0 4px 4px;background:var(--rose)}.form-group{margin:16px 0}.form-group label{font-size:12px;font-weight:730;display:block;margin-bottom:8px}.field{width:100%;border-radius:14px;background:#fff;border:1px solid #efe2e7;color:var(--ink);padding:12px 13px;min-height:46px}.textarea{resize:vertical;min-height:92px}.field-help{font-size:11px;color:var(--sub);line-height:1.5;margin-top:6px}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.toggle{appearance:none;width:45px;height:27px;border-radius:30px;background:#e4d8dd;position:relative;transition:background .2s;flex:none}.toggle:after{content:"";display:block;width:21px;height:21px;border-radius:50%;background:white;position:absolute;top:3px;left:3px;transition:transform .2s}.toggle:checked{background:var(--rose)}.toggle:checked:after{transform:translateX(18px)}.settings-line{display:flex;justify-content:space-between;gap:18px;align-items:center;padding:12px 0}.settings-line p{margin:5px 0 0;font-size:11px;line-height:1.5;color:var(--sub)}.empty{padding:30px 16px;text-align:center;color:var(--sub);line-height:1.5}.empty svg{color:#cca3b6;width:35px;height:35px}.empty b{display:block;color:#5a4756;margin:10px 0 6px}.med-card{padding:17px;background:#fff;border:1px solid #f4e7ec;border-radius:19px;margin-bottom:11px;box-shadow:var(--shadow)}.med-detail{font-size:12px;color:#9b8391;margin:6px 0 13px}.status{font-size:11px;font-weight:730;color:#b55b79;background:#fff0f4;padding:7px 9px;border-radius:7px;display:inline-flex}.status.done{color:#3d8b70;background:#eaf7ef}.helper-box{background:#f7f2fb;border-radius:16px;padding:13px 15px;color:#826c90;font-size:11px;line-height:1.55}.warning{background:#fff4e4;color:#8e6940}.actions{display:flex;gap:9px;flex-wrap:wrap}.stack{display:flex;flex-direction:column;gap:11px}.stepper{display:flex;gap:8px;align-items:center;justify-content:space-between}.stepper button{border:1px solid #eee0e5;border-radius:11px;background:#fff9fa;padding:7px 14px;color:#ae5677}.toast{position:fixed;bottom:calc(94px + env(safe-area-inset-bottom));left:50%;transform:translate(-50%,22px);background:#453440;color:white;padding:13px 18px;max-width:90vw;border-radius:13px;font-weight:650;font-size:12px;opacity:0;pointer-events:none;transition:opacity .25s,transform .25s;z-index:100;white-space:nowrap}.toast.show{opacity:1;transform:translate(-50%,0)}.modal-bg{position:fixed;z-index:55;inset:0;background:rgba(47,29,40,.35);display:flex;align-items:flex-end;justify-content:center}.sheet{width:100%;max-width:520px;max-height:91dvh;overflow:auto;background:#fffdfc;padding:23px 24px calc(26px + env(safe-area-inset-bottom));border-radius:26px 26px 0 0;box-shadow:0 -20px 50px #51334427}.sheet-head{display:flex;align-items:center;justify-content:space-between}.sheet h2{margin:0;font-size:21px;letter-spacing:-.6px}.sheet-close{width:33px;height:33px;display:grid;place-items:center;background:#fff0f4;color:#9f5d79;border-radius:50%}.onboard-bg{position:fixed;inset:0;background:linear-gradient(160deg,#fff8fa,#fffdf7);z-index:70;overflow:auto;padding:42px 25px}.onboard{max-width:440px;margin:25px auto}.onboard-art{height:145px;display:grid;place-items:center}.onboard-art .moon{width:118px;height:118px;border-radius:50%;background:#f9d6e2;display:grid;place-items:center;color:#b9567b;box-shadow:0 15px 40px #d5819c33}.moon svg{width:69px;height:69px}.onboard h1{font-size:35px;letter-spacing:-1.4px;line-height:1.1;margin:12px 0}.onboard p{color:#8a7883;line-height:1.55}.onboard .surface{margin:20px 0}.footer-note{font-size:10px;color:#afa0a8;text-align:center;margin:23px 10px 0;line-height:1.55}.screen{animation:enter .2s ease-out}@keyframes enter{from{opacity:.45;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(min-width:560px){.app{box-shadow:0 0 60px #dcaec226;background:#fffbf8}.bottom-nav{border-radius:15px 15px 0 0}}@media(max-width:360px){.app{padding-left:14px;padding-right:14px}.hero{padding:18px}.ring{width:116px;height:116px}.ring-inner{width:99px;height:99px}.ring-n{font-size:39px}.hero-data h2{font-size:19px}.cal-cell{height:39px}}
.push-panel{margin-top:10px;padding:18px}
.push-label{display:flex;align-items:center;gap:9px;color:#9d4e70;font-weight:750;font-size:14px}
.push-panel .form-group{margin:15px 0}
.push-panel .helper-box{margin-top:13px}
.push-message{margin-top:13px}
.past-doses{border-top:1px solid #f1e2e8;margin-top:16px;padding-top:15px}
.past-doses>b{font-size:13px;color:#83546b}
.past-entry{padding:10px 0;border-bottom:1px solid #f8eff3;font-size:12px;gap:9px}
.past-entry button{white-space:nowrap}
.push-advanced{margin:14px 0 17px;border:1px solid #f1e0e8;border-radius:14px;padding:11px 14px;background:#fffafb}
.push-advanced summary{cursor:pointer;font-size:12px;font-weight:750;color:#955676;list-style:revert}
.push-advanced .form-group:last-child{margin-bottom:2px}
/* Lúa 1.2: automated menstrual range is distinct from confirmed days. */
.cal-cell.period-auto{background:#f6b4c7;color:#85364f;font-weight:700;border-radius:13px}
.cal-cell.period-upcoming{background:#fff0f4;color:#a65372;border:1px dashed #d994af;font-weight:700;border-radius:13px}
.cal-cell.period-upcoming .has-log{background:#a65372}
.swatch.auto{background:#f6b4c7}
.swatch.pred{background:#f9e1e9;border:1px dashed #d994af}
.cycle-status{margin-top:12px;padding:14px 15px;display:flex;gap:9px;align-items:center;justify-content:space-between;background:#fff;border:1px solid #f4dce5;border-radius:17px;box-shadow:var(--shadow)}
.cycle-status b{font-size:12px;color:#9e4568}
.cycle-status p{font-size:11px;color:var(--sub);margin:4px 0 0;line-height:1.4}
.cycle-status .text-btn{flex:none;max-width:113px;text-align:right}
@media(max-width:360px){.cycle-status{align-items:flex-start;flex-wrap:wrap}.cycle-status .text-btn{max-width:none}}

/* Lúa 1.3 · more information without a crowded screen */
.cal-cell.period-auto,.cal-cell.period-upcoming{background:#d85f85!important;color:#fff!important;border:0!important;font-weight:700;border-radius:13px}
.swatch.auto{display:none}
.pack-pill{font-size:11px;color:#9f607d;background:#fdf1f5;border-radius:9px;padding:6px 9px;margin:-3px 0 10px;width:fit-content;line-height:1.3}
.med-card button:disabled{opacity:.4;cursor:not-allowed}
.pattern-card{padding:13px 0;border-bottom:1px solid #f3e5ec}.pattern-card:last-child{border:0}.pattern-card b{font-size:13px;color:#a84e71}.pattern-card p{font-size:12px;color:#827480;line-height:1.5;margin:6px 0}
.history-row{padding:12px 0;border-bottom:1px solid #f7eef3;display:flex;align-items:center;justify-content:space-between;gap:12px}.history-row:last-child{border:0}.history-row b{font-size:12px}.history-row .micro{margin-top:5px}
.optional-fields{padding:12px 14px;background:#fff9fc;border:1px solid #f3e7ed;border-radius:15px;margin-top:16px}.optional-fields summary{color:#a05273;font-size:12px;font-weight:750;cursor:pointer}.optional-fields[open] summary{margin-bottom:8px}
.report-tools{margin:20px 0}.report-sheet{background:#fff;border:1px solid #f2e4e9;box-shadow:var(--shadow);border-radius:18px;padding:20px;margin-bottom:20px}.report-header{border-bottom:2px solid #eed7e0;padding-bottom:10px}.report-header h2{font-size:19px;margin:0;color:#874d68}.report-header p,.report-sheet p{font-size:12px;line-height:1.55;color:#695966}.report-sheet h3{margin:24px 0 8px;font-size:14px;color:#755768}.report-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:15px 0}.report-grid div{padding:10px;border-radius:12px;background:#fff7f9}.report-grid span{display:block;font-size:10px;color:#947888}.report-grid b{font-size:13px;color:#8e4e6b;display:block;margin-top:6px}.report-table{border-collapse:collapse;width:100%;font-size:11px}.report-table th,.report-table td{text-align:left;padding:8px 5px;border-bottom:1px solid #eadfe4}.report-table th{color:#805c70}.report-disclaimer{font-style:italic;border-top:1px solid #eadfe4;padding-top:12px;margin-top:25px}.lock-screen .onboard h1{text-align:center}.lock-screen .onboard p{text-align:center}
@media print{body{background:#fff!important;color:#222!important}.topbar,.bottom-nav,.report-tools,.toast,.page-title,.eyebrow,.subtitle{display:none!important}.app{width:100%!important;max-width:100%!important;margin:0!important;box-shadow:none!important;padding:0!important}.screen{animation:none!important}.report-page .report-sheet{box-shadow:none!important;border:0!important;padding:0!important;margin:0!important}.report-page{max-width:100%!important}.report-sheet{break-inside:avoid}.report-table tr{break-inside:avoid}@page{size:A4;margin:17mm}}
