:root{--primary: #e91e8c;--primary-light: #ff6bb5;--primary-dark: #c2185b;--secondary: #9c27b0;--phase-period: #e91e8c;--phase-follicular: #4caf50;--phase-ovulation: #9c27b0;--phase-luteal: #3f51b5;--phase-predicted: #f8bbd9;--bg: #fff9fc;--surface: #ffffff;--border: #f3d4e5;--text: #2d1b2e;--text-muted: #7d5a7e;--radius: 12px;--shadow: 0 2px 12px rgba(233, 30, 140, .08)}*{box-sizing:border-box;margin:0;padding:0}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;background:var(--bg);color:var(--text);line-height:1.6}.layout{min-height:100vh;display:flex;flex-direction:column}.header{background:var(--surface);border-bottom:1px solid var(--border);padding:0 2rem;height:64px;display:flex;align-items:center;gap:2rem;position:sticky;top:0;z-index:100;box-shadow:var(--shadow)}.header-brand{display:flex;align-items:center;gap:.5rem}.brand-icon{font-size:1.5rem}.brand-icon-lg{font-size:3rem;display:block;margin-bottom:.5rem}.brand-name{font-size:1.4rem;font-weight:700;color:var(--primary);letter-spacing:-.5px}.nav{display:flex;gap:.25rem;flex:1}.nav-link{padding:.4rem 1rem;border-radius:8px;text-decoration:none;color:var(--text-muted);font-size:.9rem;transition:all .15s}.nav-link:hover{background:var(--bg);color:var(--text)}.nav-link.active{background:#fce4f3;color:var(--primary);font-weight:600}.header-user{display:flex;align-items:center;gap:1rem}.user-name{font-size:.9rem;color:var(--text-muted)}.main-content{flex:1;padding:2rem;max-width:1100px;margin:0 auto;width:100%}.btn-primary{background:var(--primary);color:#fff;border:none;padding:.6rem 1.4rem;border-radius:8px;font-size:.9rem;font-weight:600;cursor:pointer;transition:background .15s;text-decoration:none;display:inline-block}.btn-primary:hover{background:var(--primary-dark)}.btn-full{width:100%;text-align:center;padding:.75rem}.btn-secondary{background:#f3e5f5;color:var(--secondary);border:none;padding:.6rem 1.4rem;border-radius:8px;font-size:.9rem;font-weight:600;cursor:pointer}.btn-outline{background:transparent;color:var(--primary);border:1.5px solid var(--primary);padding:.6rem 1.4rem;border-radius:8px;font-size:.9rem;font-weight:600;cursor:pointer}.btn-text{background:none;border:none;color:var(--text-muted);cursor:pointer;font-size:.9rem;padding:.5rem}.btn-logout{background:none;border:1px solid var(--border);color:var(--text-muted);padding:.35rem .85rem;border-radius:6px;cursor:pointer;font-size:.85rem}.auth-page{min-height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#fce4f3,#f3e5f5);padding:1rem}.auth-card{background:#fff;border-radius:16px;padding:2.5rem;width:100%;max-width:420px;box-shadow:0 8px 32px #e91e8c1f}.auth-header{text-align:center;margin-bottom:2rem}.auth-header h2{font-size:1.5rem;color:var(--text)}.auth-header p{color:var(--text-muted);font-size:.9rem;margin-top:.25rem}.auth-form{display:flex;flex-direction:column;gap:1rem}.auth-footer{text-align:center;margin-top:1.5rem;font-size:.9rem;color:var(--text-muted)}.auth-footer a{color:var(--primary);font-weight:600;text-decoration:none}.form-group{display:flex;flex-direction:column;gap:.4rem}.form-group label{font-size:.85rem;font-weight:600;color:var(--text-muted)}.form-group input,.form-group select,.form-group textarea{border:1.5px solid var(--border);border-radius:8px;padding:.6rem .85rem;font-size:.95rem;color:var(--text);background:#fff;transition:border-color .15s;outline:none;width:100%}.form-group input:focus,.form-group select:focus,.form-group textarea:focus{border-color:var(--primary)}.input-disabled{opacity:.6;cursor:not-allowed}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.field-error{font-size:.8rem;color:#e53935}.error-banner{background:#ffebee;color:#c62828;padding:.75rem 1rem;border-radius:8px;font-size:.9rem}.success-banner{background:#e8f5e9;color:#2e7d32;padding:.75rem 1rem;border-radius:8px;font-size:.9rem}.dashboard-greeting{margin-bottom:2rem}.dashboard-greeting h2{font-size:1.8rem;font-weight:700}.dashboard-greeting p{color:var(--text-muted);text-transform:capitalize}.cards-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:1.25rem}.card{background:#fff;border-radius:var(--radius);padding:1.5rem;box-shadow:var(--shadow);border:1.5px solid var(--border);display:flex;align-items:flex-start;gap:1rem}.card-phase{border-left-width:4px}.card-icon{font-size:1.75rem;flex-shrink:0}.card-content h3{font-size:.8rem;color:var(--text-muted);font-weight:600;text-transform:uppercase;letter-spacing:.5px}.card-value{font-size:1.25rem;font-weight:700;margin-top:.25rem}.card-sub{font-size:.8rem;color:var(--text-muted);margin-top:.15rem}.calendar-page h2{margin-bottom:1.5rem;font-size:1.4rem}.calendar-layout{display:grid;grid-template-columns:auto 1fr;gap:2rem;align-items:start}.calendar-wrapper{display:flex;flex-direction:column;gap:.75rem}.react-calendar{border:1.5px solid var(--border)!important;border-radius:var(--radius)!important;font-family:inherit!important;box-shadow:var(--shadow)}.react-calendar__tile--active,.react-calendar__tile--active:enabled:hover,.react-calendar__tile--active:enabled:focus{background:var(--primary)!important}.tile-period{background:#fce4f3!important;color:var(--primary-dark)!important;font-weight:600}.calendar-legend{display:flex;align-items:center;gap:.5rem;font-size:.85rem;color:var(--text-muted)}.legend-dot{width:12px;height:12px;border-radius:50%}.legend-dot.period{background:#fce4f3;border:1.5px solid var(--primary-light)}.calendar-actions{display:flex;flex-direction:column;gap:1rem;padding:1.5rem;background:#fff;border-radius:var(--radius);border:1.5px solid var(--border);box-shadow:var(--shadow)}.calendar-actions h3{font-size:1rem;color:var(--text)}.active-cycle-info{display:flex;flex-direction:column;gap:.75rem}.active-cycle-info p{font-size:.9rem;color:var(--text-muted)}.confirm-box{background:#fff9fc;border:1.5px solid var(--border);border-radius:8px;padding:1rem}.confirm-box p{font-size:.9rem;margin-bottom:.75rem}.confirm-actions{display:flex;gap:.75rem}.symptom-form{display:flex;flex-direction:column;gap:.75rem;padding-top:.5rem;border-top:1px solid var(--border)}.history-page h2{margin-bottom:1.5rem;font-size:1.4rem}.cycle-list{display:flex;flex-direction:column;gap:1rem}.cycle-card{background:#fff;border:1.5px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}.cycle-card-header{padding:1.25rem 1.5rem;cursor:pointer;display:flex;justify-content:space-between;align-items:center;transition:background .15s}.cycle-card-header:hover{background:var(--bg)}.cycle-card-header h3{font-size:1rem}.cycle-meta{font-size:.85rem;color:var(--text-muted);margin-top:.2rem}.expand-icon{color:var(--text-muted);font-size:.75rem}.symptom-list{padding:1rem 1.5rem 1.5rem;border-top:1px solid var(--border)}.symptom-list h4{font-size:.85rem;color:var(--text-muted);text-transform:uppercase;letter-spacing:.5px;margin-bottom:.75rem}.symptom-item{display:flex;gap:1.25rem;align-items:center;font-size:.875rem;padding:.5rem 0;border-bottom:1px solid var(--bg)}.symptom-date{font-weight:600;color:var(--primary);min-width:40px}.symptom-notes{color:var(--text-muted);font-style:italic}.no-symptoms{padding:1rem 1.5rem;font-size:.875rem;color:var(--text-muted)}.settings-page h2{margin-bottom:1.5rem;font-size:1.4rem}.settings-form{display:flex;flex-direction:column;gap:2rem;max-width:600px}.form-section{display:flex;flex-direction:column;gap:1rem}.form-section h3{font-size:1rem;font-weight:600;color:var(--text);border-bottom:1px solid var(--border);padding-bottom:.5rem}.dash-section{display:flex;flex-direction:column;gap:.75rem;margin-top:1.5rem}.dash-section-header{display:flex;justify-content:space-between;align-items:center}.dash-section-header h3{font-size:1rem;font-weight:700}.dash-link{font-size:.82rem;color:var(--primary);text-decoration:none;font-weight:600}.dash-link:hover{text-decoration:underline}.last-cycle-card{background:#fff;border:1.5px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:1.25rem;display:flex;flex-direction:column;gap:.9rem}.last-cycle-dates{display:flex;align-items:center;gap:1rem}.last-cycle-date-block{display:flex;flex-direction:column;gap:.15rem}.date-label{font-size:.72rem;text-transform:uppercase;letter-spacing:.5px;color:var(--text-muted);font-weight:600}.date-value{font-size:1rem;font-weight:700;color:var(--text)}.last-cycle-arrow{color:var(--text-muted);font-size:1.1rem}.last-cycle-badge-ongoing{background:#fff3e0;color:#e65100;border-radius:20px;padding:.25rem .75rem;font-size:.8rem;font-weight:600;margin-left:.5rem}.last-cycle-stats{display:flex;flex-wrap:wrap;gap:.5rem}.stat-chip{background:var(--bg);border:1px solid var(--border);border-radius:20px;padding:.25rem .75rem;font-size:.8rem;color:var(--text)}.last-cycle-symptoms{display:flex;flex-direction:column;gap:.4rem;border-top:1px solid var(--border);padding-top:.75rem}.symptom-mini-row{display:flex;align-items:center;gap:.5rem}.symptom-mini-date{font-size:.78rem;font-weight:600;color:var(--primary);min-width:36px}.mini-chip{background:#fce4f3;color:var(--primary-dark);border-radius:20px;padding:.15rem .55rem;font-size:.75rem}.cycle-timeline{background:#fff;border:1.5px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:1.25rem;display:flex;gap:0}.timeline-item{flex:1;display:flex;flex-direction:column;align-items:center;position:relative}.timeline-dot{width:12px;height:12px;border-radius:50%;background:var(--primary);border:2px solid white;box-shadow:0 0 0 2px var(--primary-light);flex-shrink:0;z-index:1}.timeline-line{position:absolute;top:6px;left:50%;right:-50%;height:2px;background:var(--border);z-index:0}.timeline-content{margin-top:.6rem;text-align:center}.timeline-date{font-size:.82rem;font-weight:600;text-transform:capitalize;color:var(--text)}.timeline-meta{font-size:.74rem;color:var(--text-muted);margin-top:.1rem}.loading{text-align:center;padding:3rem;color:var(--text-muted)}.text-muted{color:var(--text-muted)}.text-sm{font-size:.85rem}.text-danger{color:#e53935}.empty-state{text-align:center;padding:3rem;background:#fff;border-radius:var(--radius);border:1.5px solid var(--border);color:var(--text-muted);display:flex;flex-direction:column;gap:1rem;align-items:center}.calendar-page-v2{display:flex;flex-direction:column;gap:1.25rem}.cal-outer{display:flex;flex-direction:column;gap:1.5rem}.cal-top-bar{display:flex;align-items:center;justify-content:space-between}.cal-month-nav{display:flex;align-items:center;gap:.6rem}.cal-month-title{font-size:1.3rem;font-weight:700;text-transform:capitalize}.cal-nav-btn{background:#fff;border:1.5px solid var(--border);border-radius:8px;width:36px;height:36px;font-size:1.2rem;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--text-muted);transition:border-color .15s,color .15s}.cal-nav-btn:hover{border-color:var(--primary);color:var(--primary)}.cal-today-btn{background:none;border:1.5px solid var(--primary);color:var(--primary);border-radius:8px;padding:.35rem .9rem;font-size:.85rem;font-weight:600;cursor:pointer}.cal-main{display:grid;grid-template-columns:1fr;gap:1.5rem}.cal-main.with-panel{grid-template-columns:1fr 320px}.month-calendar{background:#fff;border-radius:var(--radius);border:1.5px solid var(--border);box-shadow:var(--shadow);overflow:hidden;padding:1rem}.cal-weekdays{display:grid;grid-template-columns:repeat(7,1fr);margin-bottom:.5rem}.cal-weekday{text-align:center;font-size:.75rem;font-weight:700;color:var(--text-muted);text-transform:uppercase;letter-spacing:.5px;padding:.4rem 0}.cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:3px}.cal-day{position:relative;min-height:56px;border-radius:8px;border:1.5px solid transparent;background:none;cursor:pointer;display:flex;flex-direction:column;align-items:center;padding:4px 2px;transition:background .12s,border-color .12s;font-family:inherit}.cal-day:hover{background:var(--bg);border-color:var(--border)}.cal-day.other-month{opacity:.3}.cal-day.today .cal-day-num{background:var(--primary);color:#fff;border-radius:50%;width:26px;height:26px;display:flex;align-items:center;justify-content:center}.cal-day.selected{border-color:var(--primary);background:#fff0f8}.cal-day-num{font-size:.875rem;font-weight:500;width:26px;height:26px;display:flex;align-items:center;justify-content:center}.cal-day.phase-period{background:#fce4f3}.cal-day.phase-period .cal-day-num{color:var(--phase-period);font-weight:700}.cal-day.phase-follicular{background:#e8f5e9}.cal-day.phase-follicular .cal-day-num{color:#2e7d32}.cal-day.phase-ovulation{background:#f3e5f5}.cal-day.phase-ovulation .cal-day-num{color:var(--phase-ovulation);font-weight:700}.cal-day.phase-luteal{background:#e8eaf6}.cal-day.phase-luteal .cal-day-num{color:var(--phase-luteal)}.cal-day.phase-predicted{background:repeating-linear-gradient(45deg,#fce4f3,#fce4f3 3px,#fff 3px,#fff 8px)}.cal-dots{display:flex;gap:3px;margin-top:2px}.dot{width:6px;height:6px;border-radius:50%;display:inline-block}.dot-symptom{background:#e53935}.dot-diary{background:#1976d2}.cal-legend-row{display:flex;flex-wrap:wrap;gap:.75rem 1.25rem;padding:.75rem 0 0;border-top:1px solid var(--border);margin-top:.75rem}.legend-item{display:flex;align-items:center;gap:.35rem;font-size:.78rem;color:var(--text-muted)}.legend-swatch{width:14px;height:14px;border-radius:3px;border:1px solid rgba(0,0,0,.08);display:inline-block}.legend-swatch.period{background:#fce4f3}.legend-swatch.follicular{background:#e8f5e9}.legend-swatch.ovulation{background:#f3e5f5}.legend-swatch.luteal{background:#e8eaf6}.legend-swatch.predicted{background:repeating-linear-gradient(45deg,#fce4f3,#fce4f3 3px,#fff 3px,#fff 8px)}.day-panel{background:#fff;border-radius:var(--radius);border:1.5px solid var(--border);box-shadow:var(--shadow);display:flex;flex-direction:column;overflow-y:auto;max-height:calc(100vh - 140px)}.day-panel-header{display:flex;justify-content:space-between;align-items:flex-start;padding:1.25rem 1.25rem .75rem;border-bottom:1px solid var(--border)}.day-panel-header h3{font-size:1rem;font-weight:700;text-transform:capitalize}.day-panel-header p{font-size:.8rem;color:var(--text-muted);margin-top:.1rem}.panel-close{background:none;border:none;font-size:1rem;cursor:pointer;color:var(--text-muted);padding:.2rem .4rem;border-radius:4px}.panel-close:hover{background:var(--bg)}.phase-badge{margin:.75rem 1.25rem 0;display:inline-flex;align-items:center;gap:.4rem;font-size:.85rem;font-weight:600;border:1.5px solid;border-radius:20px;padding:.3rem .8rem;width:fit-content}.panel-section{padding:1rem 1.25rem;border-bottom:1px solid var(--border);display:flex;flex-direction:column;gap:.6rem}.panel-section:last-child{border-bottom:none}.panel-diary{flex:1}.section-head{display:flex;justify-content:space-between;align-items:center}.section-head h4{font-size:.8rem;font-weight:700;text-transform:uppercase;letter-spacing:.5px;color:var(--text-muted)}.btn-sm{padding:.35rem .85rem;font-size:.82rem}.btn-text-sm{background:none;border:none;color:var(--primary);font-size:.82rem;cursor:pointer;font-weight:600}.btn-delete{background:none;border:none;color:#e53935;cursor:pointer;font-size:.75rem;padding:.1rem .3rem}.cycle-pill{display:flex;align-items:center;justify-content:space-between;background:var(--bg);border-radius:8px;padding:.5rem .75rem;font-size:.85rem}.symptom-chip-row{display:flex;flex-wrap:wrap;gap:.4rem;align-items:center}.chip{background:var(--bg);border:1px solid var(--border);border-radius:20px;padding:.2rem .6rem;font-size:.78rem;color:var(--text)}.chip-note{font-style:italic;color:var(--text-muted)}.chip-mood{background:#f3e5f5;border-color:#ce93d8;color:var(--secondary)}.chip-select{display:flex;flex-wrap:wrap;gap:.4rem}.chip-option{background:var(--bg);border:1.5px solid var(--border);border-radius:20px;padding:.25rem .65rem;font-size:.78rem;cursor:pointer;font-family:inherit;transition:all .12s}.chip-option.active{background:#fce4f3;border-color:var(--primary);color:var(--primary);font-weight:600}.mini-form{display:flex;flex-direction:column;gap:.6rem;padding-top:.5rem;border-top:1px solid var(--border)}.mini-field{display:flex;flex-direction:column;gap:.3rem}.mini-field label{font-size:.78rem;font-weight:600;color:var(--text-muted)}.mini-field input{border:1.5px solid var(--border);border-radius:6px;padding:.4rem .6rem;font-size:.85rem;outline:none}.mini-field input:focus{border-color:var(--primary)}.mini-actions{display:flex;gap:.5rem;align-items:center}.diary-view{display:flex;flex-direction:column;gap:.5rem}.diary-title{font-weight:600;font-size:.95rem}.diary-content{font-size:.875rem;color:var(--text);white-space:pre-wrap;line-height:1.6}.diary-head-actions{display:flex;gap:.5rem}.diary-form{display:flex;flex-direction:column;gap:.6rem}.diary-input-title{border:none;border-bottom:1.5px solid var(--border);font-size:.95rem;font-weight:600;padding:.4rem 0;outline:none;background:none;font-family:inherit}.diary-input-title:focus{border-bottom-color:var(--primary)}.diary-textarea{border:1.5px solid var(--border);border-radius:8px;padding:.6rem;font-size:.875rem;font-family:inherit;outline:none;resize:vertical;line-height:1.6}.diary-textarea:focus{border-color:var(--primary)}.phases-guide{background:#fff;border-radius:var(--radius);border:1.5px solid var(--border);box-shadow:var(--shadow);padding:1.25rem 1.5rem 1.5rem;display:flex;flex-direction:column;gap:.75rem}.phases-guide-title{font-size:1rem;font-weight:700;color:var(--text)}.phases-guide-sub{font-size:.78rem;color:var(--text-muted);margin-top:-.4rem}.phases-list{display:flex;flex-direction:column;gap:.5rem}.phase-card{border-radius:10px;border:1.5px solid var(--border);overflow:hidden;cursor:pointer;transition:border-color .15s,box-shadow .15s}.phase-card:hover{border-color:var(--phase-color);box-shadow:0 2px 8px #0000000f}.phase-card.expanded{border-color:var(--phase-color)}.phase-card-header{display:flex;align-items:center;gap:.6rem;padding:.75rem 1rem;background:var(--phase-bg);-webkit-user-select:none;user-select:none}.phase-card-icon{font-size:1.2rem;flex-shrink:0}.phase-card-title{flex:1;display:flex;flex-direction:column;gap:.05rem}.phase-card-title strong{font-size:.9rem;color:var(--phase-color);font-weight:700}.phase-card-title span{font-size:.73rem;color:var(--text-muted)}.phase-card-arrow{font-size:.65rem;color:var(--text-muted)}.phase-card-body{padding:.9rem 1rem;border-top:1px solid var(--border);background:#fff;display:flex;flex-direction:column;gap:.65rem}.phase-card-desc{font-size:.83rem;color:var(--text);line-height:1.6}.phase-card-tips{list-style:none;display:flex;flex-direction:column;gap:.3rem}.phase-card-tips li{font-size:.79rem;color:var(--text-muted);padding-left:1rem;position:relative;line-height:1.45}.phase-card-tips li:before{content:"•";position:absolute;left:0;color:var(--phase-color);font-weight:700}.diary-page{display:grid;grid-template-columns:280px 1fr;gap:0;height:calc(100vh - 100px);background:#fff;border-radius:var(--radius);border:1.5px solid var(--border);box-shadow:var(--shadow);overflow:hidden}.diary-sidebar{border-right:1.5px solid var(--border);display:flex;flex-direction:column;overflow:hidden}.diary-month-nav{display:flex;align-items:center;justify-content:space-between;padding:1rem 1rem .75rem;border-bottom:1px solid var(--border)}.diary-month-label{font-size:.9rem;font-weight:600;text-transform:capitalize;color:var(--text)}.diary-new-btn{margin:.75rem;width:auto}.diary-list{list-style:none;overflow-y:auto;flex:1}.diary-list-item{display:flex;align-items:flex-start;gap:.75rem;padding:.9rem 1rem;border-bottom:1px solid var(--border);cursor:pointer;transition:background .12s}.diary-list-item:hover{background:var(--bg)}.diary-list-item.active{background:#fff0f8;border-right:3px solid var(--primary)}.diary-list-date{text-align:center;min-width:36px}.diary-list-day{display:block;font-size:1.3rem;font-weight:700;color:var(--primary);line-height:1}.diary-list-weekday{display:block;font-size:.7rem;color:var(--text-muted);text-transform:uppercase;margin-top:2px}.diary-list-preview{flex:1;min-width:0}.diary-list-title{font-size:.875rem;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.diary-list-snippet{font-size:.78rem;color:var(--text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:.2rem}.diary-editor{display:flex;flex-direction:column;overflow:hidden}.diary-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;gap:1rem;color:var(--text-muted)}.diary-empty-icon{font-size:3rem}.diary-editor-header{display:flex;justify-content:space-between;align-items:center;padding:1.25rem 1.5rem .75rem;border-bottom:1px solid var(--border)}.diary-editor-date{font-size:.85rem;color:var(--text-muted);text-transform:capitalize}.diary-editor-actions{display:flex;gap:.75rem;align-items:center}.diary-title-input{border:none;border-bottom:2px solid var(--border);padding:.75rem 1.5rem;font-size:1.3rem;font-weight:700;font-family:inherit;outline:none;background:none;color:var(--text)}.diary-title-input:focus{border-bottom-color:var(--primary)}.diary-mood-row{display:flex;gap:.5rem;padding:.75rem 1.5rem;border-bottom:1px solid var(--border);flex-wrap:wrap}.mood-btn{background:var(--bg);border:1.5px solid var(--border);border-radius:20px;padding:.3rem .85rem;font-size:.82rem;cursor:pointer;font-family:inherit;transition:all .12s}.mood-btn.active{background:#f3e5f5;border-color:var(--secondary);color:var(--secondary);font-weight:600}.diary-body-input{flex:1;border:none;padding:1.25rem 1.5rem;font-size:1rem;font-family:inherit;line-height:1.8;resize:none;outline:none;color:var(--text);min-height:300px}.diary-body-input::placeholder{color:#ccc}
