@font-face{font-family:Journal Serif;src:local("Georgia");font-display:swap}
:root{--paper:#F5F3EB;--ink:#233E35;--forest:#234D3C;--muted:#5F6C62;--card:#FFFEF9;--border:#D9DDD0;--soft:#E9EDE1;--citron:#DCE99B;--peach:#F5E5D9;--terracotta:#9B4C35;--danger:#9F392D;--serif:"Journal Serif",Georgia,"Times New Roman",serif;--sans:"Avenir Next",Avenir,"Segoe UI",sans-serif;color:var(--ink);background:var(--paper);font:15px/1.5 var(--sans);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,label,input{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button{color:inherit}button:disabled{cursor:default;opacity:.5}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--terracotta);outline-offset:4px}button,input{touch-action:manipulation}button{border:0}svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}[hidden]{display:none!important}.app-shell{max-width:1232px;margin:0 auto;padding:0 48px}.app-header{height:108px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border);gap:28px}.brand{display:flex;align-items:center;gap:11px;text-decoration:none;font-family:var(--serif);font-size:36px;letter-spacing:-1.8px}.brand img{border-radius:11px}.brand-dot{color:var(--terracotta)}.navigation{display:flex;padding:5px;background:#EAECE2;border-radius:40px;gap:4px}.nav-item{min-height:42px;background:transparent;border-radius:24px;padding:10px 20px;display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600;color:var(--muted)}.nav-item.active{background:var(--forest);color:var(--card)}.nav-item:hover:not(.active){background:#DDE2D5}.header-note{font-family:var(--serif);font-style:italic;color:var(--muted);font-size:16px}.view{animation:arrive .3s ease-out}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:44px 0 32px}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:700;margin:0 0 9px;text-transform:uppercase;color:var(--muted)}h1,h2,h3,p{margin-top:0}h1{font:normal clamp(36px,4.3vw,54px)/1.12 var(--serif);letter-spacing:-1.9px;margin-bottom:8px}h2{font:normal 26px/1.25 var(--serif);letter-spacing:-.5px;margin:0}h3{font-size:15px;font-weight:600;margin:0 0 3px}.subtitle{color:var(--muted);margin-bottom:0;font-size:15px}.button{border:1px solid transparent;border-radius:14px;min-height:48px;padding:11px 21px;display:inline-flex;align-items:center;justify-content:center;gap:14px;font-size:13px;font-weight:600;text-decoration:none;white-space:nowrap}.primary{background:var(--forest);color:var(--card)}.primary:hover{background:#183C2D}.button span{font-size:21px;font-weight:400;line-height:1}.button .button-label{font-size:inherit;font-weight:inherit;line-height:inherit}.secondary{background:var(--card);border-color:var(--border)}.secondary:hover{background:var(--soft)}.text-button{background:transparent;padding:9px 0;font-size:12px;font-weight:600;min-height:44px}.text-button:hover{text-decoration:underline}.icon-button{display:inline-grid;place-items:center;width:38px;min-height:44px;background:transparent;font-size:27px;border-radius:12px}.icon-button:hover{background:var(--soft)}.card{background:var(--card);border:1px solid var(--border);border-radius:22px}.journal-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(300px,1fr);gap:24px;align-items:start}.calendar-card{padding:26px 26px 20px}.calendar-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:23px}.calendar-heading h2{font-size:26px}.month-actions{display:flex;align-items:center;gap:2px}.month-actions .text-button{margin-right:8px;font-size:11px}.weekdays,.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.weekdays{padding-bottom:13px;color:var(--muted);font-size:10px;font-weight:600;text-align:center;letter-spacing:.4px}.calendar-grid{row-gap:6px}.day{background:transparent;position:relative;min-width:0;height:61px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border:1px solid transparent;border-radius:13px;font-size:14px;isolation:isolate}.day:hover{background:var(--soft)}.day.outside{color:#92998E}.day.period{background:var(--peach);color:#7D3F2D;border-radius:0}.day.period-start{border-radius:13px 0 0 13px}.day.period-end{border-radius:0 13px 13px 0}.day.period-start.period-end{border-radius:13px}.day.selected{background:var(--forest);color:var(--card);border-radius:13px}.day.today:not(.selected) .day-number{box-shadow:0 2px 0 var(--forest);font-weight:700}.day-indicators{height:10px;display:flex;align-items:center;justify-content:center;gap:4px;font-size:12px}.flow-dot{width:4px;height:4px;background:var(--terracotta);border-radius:50%;display:block}.selected .flow-dot{background:var(--citron)}.sex-dot{color:var(--forest);line-height:10px}.selected .sex-dot{color:var(--citron)}.calendar-legend{display:flex;justify-content:center;gap:24px;padding-top:21px;margin-top:17px;border-top:1px solid var(--border);font-size:10px;color:var(--muted)}.calendar-legend>span{display:flex;align-items:center;gap:7px}.calendar-legend i{display:inline-block;font-style:normal}.legend-period{width:10px;height:10px;border-radius:3px;background:var(--peach);border:1px solid #D7AA93}.legend-flow{width:5px;height:5px;border-radius:50%;background:var(--terracotta)}.legend-sex{font-size:16px;line-height:10px;color:var(--forest)}.cycle-strip{display:flex;align-items:center;gap:15px;padding:21px 23px;background:var(--soft);border:1px solid #DFE3D6;border-radius:18px;margin-top:18px}.strip-icon{font-size:30px;font-weight:300;width:32px}.cycle-strip .eyebrow{font-size:9px;margin-bottom:3px}.cycle-strip p:last-child{margin-bottom:0;font-size:13px}.day-card{padding:26px 25px;scroll-margin-top:20px}.day-card-top{display:flex;align-items:start;justify-content:space-between;min-height:24px;gap:8px}.save-state{font-size:10px;color:var(--forest)}.day-card h2{font-size:31px;letter-spacing:-.7px;margin:3px 0 6px}.day-period{color:var(--muted);font-size:12px;margin-bottom:25px;min-height:18px}.day-period button{color:var(--terracotta);padding:0;background:transparent;text-decoration:underline;font-size:12px}.choice-field{border:0;padding:0;margin:0 0 27px;min-width:0}.choice-field legend{font-size:13px;font-weight:600;margin-bottom:13px}.flow-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.flow-choice,.sex-choice{position:relative;cursor:pointer;min-width:0}.flow-choice input,.sex-choice input{position:absolute;opacity:0;width:1px;height:1px}.flow-choice>span{min-height:72px;border:1px solid var(--border);border-radius:13px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;font-size:10px}.flow-choice input:checked+span{background:var(--soft);border-color:var(--forest);box-shadow:inset 0 0 0 .5px var(--forest)}.flow-choice input:focus-visible+span,.sex-choice input:focus-visible+span{outline:3px solid var(--terracotta);outline-offset:3px}.flow-choice:hover>span{background:var(--soft)}.drop-icon{width:15px;height:20px;stroke:var(--terracotta);fill:none;stroke-width:1.4}.drop-icon.filled{fill:var(--terracotta)}.drop-row{display:flex;gap:2px;height:21px;align-items:center}.drop-row.spotting .drop-icon{width:9px;height:13px}.drop-row.medium .drop-icon,.drop-row.heavy .drop-icon{width:12px}.drop-row.none{font-size:23px;font-weight:300;color:var(--muted);line-height:21px}.drop-row.unlogged{font-size:19px;color:var(--muted)}.sex-options{display:grid;grid-template-columns:1fr .8fr 1.3fr;gap:7px}.sex-choice>span{display:flex;align-items:center;justify-content:center;gap:7px;border:1px solid var(--border);border-radius:11px;min-height:44px;font-size:11px;white-space:nowrap}.sex-choice>span>span[aria-hidden="true"]{font-size:22px;line-height:1}.sex-choice input:checked+span{background:var(--soft);border-color:var(--forest)}.sex-field{margin-bottom:24px}.day-actions{display:flex;align-items:center;gap:17px;padding-top:20px;border-top:1px solid var(--border)}.day-actions .primary{flex:1}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:31px 0 15px}.section-heading h2{font-size:24px}.section-heading>.text-button{flex-shrink:0;white-space:nowrap}.recent-periods{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.period-preview{width:100%;display:flex;flex-direction:column;text-align:left;gap:14px;padding:19px 22px;background:var(--card);border:1px solid var(--border);border-radius:17px}.period-preview:hover{border-color:var(--forest)}.period-preview-top{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:10px}.period-preview .period-range{font-family:var(--serif);font-size:23px;letter-spacing:-.4px}.mini-dot{height:8px;width:8px;display:inline-block;background:var(--peach);border:1px solid #D7AA93;border-radius:50%;margin-right:5px}.empty-periods{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:20px;border:1px dashed #BEC7B7;border-radius:17px;padding:23px}.empty-periods p{margin:0;font-family:var(--serif);font-size:20px}.history-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:24px}.stat-card{padding:23px;border-radius:18px;background:var(--soft)}.stat-card p{margin-bottom:10px;font-size:12px;color:var(--muted)}.stat-value{font-size:38px;font-family:var(--serif);letter-spacing:-1px}.stat-value small{font-size:14px;letter-spacing:0;margin-left:5px;font-family:var(--sans);color:var(--muted)}.history-card{padding:12px 26px 22px}.history-card .section-heading{margin-top:16px}.history-row{width:100%;background:transparent;border-top:1px solid var(--border);padding:21px 0;display:flex;align-items:center;gap:20px;text-align:left}.history-row:hover{background:var(--soft)}.history-month{font-size:11px;color:var(--muted);min-width:64px;text-transform:uppercase;letter-spacing:1px}.history-range{font-size:22px;font-family:var(--serif)}.history-duration{margin-left:auto;color:var(--muted);font-size:12px}.muted{color:var(--muted);font-size:12px}.settings-card{max-width:760px;padding:30px}.settings-card>h2{margin-bottom:10px}.settings-row{padding:23px 0;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;gap:20px}.settings-row:last-child{border-bottom:0;padding-bottom:0}.settings-row p{color:var(--muted);font-size:12px;margin:0}.settings-row select{min-height:48px;max-width:100%;padding:10px 35px 10px 14px;background:var(--card);color:var(--ink);border:1px solid var(--border);border-radius:12px}.pill{background:var(--soft);padding:5px 13px;font-size:11px;border-radius:20px}.file-button{cursor:pointer;position:relative;overflow:hidden}.file-button input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}.file-button:focus-within{outline:3px solid var(--terracotta);outline-offset:3px}.danger{color:var(--danger)}.app-version{font-family:var(--serif);font-size:24px;margin:30px 0}.app-version span{font-family:var(--sans);font-size:11px;color:var(--muted);margin-left:10px}.app-footer{display:flex;align-items:center;justify-content:space-between;margin-top:40px;padding:22px 0 27px;border-top:1px solid var(--border);font-size:11px;color:var(--muted)}dialog{color:var(--ink);background:var(--card);border:1px solid var(--border);border-radius:23px;padding:29px;width:min(440px,calc(100% - 32px));max-height:90dvh;overflow-y:auto;box-shadow:0 20px 100px #16362726}dialog::backdrop{background:#1E352D66;backdrop-filter:blur(3px)}dialog h2{font-size:34px;margin:4px 0 25px}.dialog-heading{display:flex;align-items:center;justify-content:space-between}.dialog-heading .eyebrow{margin:0}.dialog-heading .icon-button{margin-right:-8px}.date-field{display:flex;flex-direction:column;gap:8px;font-size:13px;font-weight:600;margin:18px 0}.date-field input{background:var(--paper);border:1px solid var(--border);color:var(--ink);border-radius:12px;padding:12px;min-height:48px;width:100%;min-width:0}.check-field{display:flex;align-items:center;gap:9px;font-size:13px;margin-top:20px;min-height:36px}.check-field input{accent-color:var(--forest);width:18px;height:18px}.form-error{font-size:12px;color:var(--danger);min-height:18px}.dialog-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:25px}.dialog-actions .danger{margin-right:auto}.toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);background:var(--forest);color:var(--card);padding:13px 22px;border-radius:13px;box-shadow:0 8px 35px #16362722;z-index:5;font-size:13px;max-width:calc(100% - 32px);width:max-content}.toast.error{background:var(--danger)}.skip-link{position:fixed;left:20px;top:-100px;z-index:10;background:var(--forest);color:white;padding:12px}.skip-link:focus{top:10px}.unsaved-dot{color:var(--terracotta)}
@keyframes arrive{from{opacity:.4;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:1400px){.app-shell{padding:0 48px}.page-heading{margin-top:52px}}
@media(max-width:960px){.app-shell{padding:0 28px}.header-note{display:none}.journal-layout{grid-template-columns:minmax(0,1.3fr) minmax(290px,1fr);gap:18px}.calendar-card{padding:24px 17px 18px}.day-card{padding:25px 21px}.day{height:57px}.recent-periods{gap:12px}.period-preview{padding:18px}.period-preview .period-range{font-size:21px}}
@media(max-width:720px){.app-shell{padding:0 20px}.app-header{height:auto;min-height:118px;flex-wrap:wrap;padding:18px 0 14px;gap:14px}.brand{font-size:31px;gap:8px}.brand img{width:29px;height:29px;border-radius:9px}.navigation{padding:4px;gap:0;width:100%;justify-content:space-between;order:2}.nav-item{padding:9px 16px;font-size:12px;min-height:38px;flex:1;justify-content:center}.nav-item svg{display:none}.page-heading{margin:31px 0 25px;align-items:start;flex-wrap:wrap}.page-heading>div{flex:1 1 170px}.page-heading .eyebrow{font-size:9px;letter-spacing:1.4px}h1{font-size:38px}.subtitle{font-size:13px}.page-heading>.button{padding:9px 13px;gap:5px;font-size:11px;min-height:43px;margin-top:0}.page-heading>.button>span:not(.button-label){font-size:18px}.journal-layout{grid-template-columns:1fr;gap:20px}.calendar-card{padding:23px 19px 18px}.calendar-heading{margin-bottom:18px}.calendar-heading h2{font-size:25px}.day{height:57px}.calendar-grid{row-gap:5px}.cycle-strip{padding:17px 20px;margin-top:14px}.day-card{padding:24px}.day-card h2{font-size:31px}.day-period{margin-bottom:21px}.flow-options{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.flow-choice>span{min-height:69px;font-size:11px;gap:8px}.drop-row.heavy{gap:0}.drop-row.heavy .drop-icon{width:10px}.choice-field{margin-bottom:23px}.sex-options{grid-template-columns:1fr 1fr 1fr}.sex-choice>span{font-size:12px;min-height:46px}.day-actions{gap:22px}.day-actions .primary{flex:initial;min-width:200px}.section-heading{margin-top:27px}.recent-periods{grid-template-columns:1fr}.period-preview{display:grid;grid-template-columns:1fr auto;gap:4px 15px;padding:17px 20px}.period-preview-top{grid-column:1;grid-row:2;justify-content:flex-start}.period-preview .period-range{grid-column:1;grid-row:1;font-size:24px}.period-preview>.muted{grid-column:2;grid-row:1/3;align-self:center;font-size:12px}.empty-periods{padding:19px}.empty-periods p{font-size:18px}.history-stats{gap:8px}.stat-card{padding:17px 12px}.stat-card p{font-size:10px;min-height:30px;margin-bottom:4px}.stat-value{font-size:31px}.stat-value small{font-size:10px;margin-left:3px}.history-card{padding:10px 19px}.history-row{gap:10px}.history-month{min-width:42px;font-size:10px}.history-range{font-size:20px}.history-duration{font-size:11px}.settings-card{padding:23px 20px}.settings-row{gap:12px}.settings-row .button{font-size:11px;padding:9px 12px;gap:7px}.settings-row p{font-size:11px;max-width:170px}.settings-row h3{font-size:13px}.app-footer{margin-top:30px;padding-bottom:calc(22px + env(safe-area-inset-bottom))}.toast{bottom:calc(20px + env(safe-area-inset-bottom))}}
@media(max-width:380px){.app-shell{padding:0 14px}.nav-item{padding:9px 6px;font-size:10px}.brand{font-size:28px}.page-heading h1{font-size:32px}.page-heading>.button{padding:9px 10px}.day-card{padding:21px 17px}.calendar-card{padding-left:12px;padding-right:12px}.day{height:51px}.flow-options{grid-template-columns:repeat(3,minmax(0,1fr))}.day-actions .primary{min-width:180px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;scroll-behavior:auto!important}}
