/* 온길: soft paper, small stickers, clear records. */
:root{color:#4c4148;background:#fcf9f5;--line:#ebe3e5;--muted:#8b7c86;--accent:#80659d;--period:#d47784;--ovulation:#729b84}
body{background:#fcf9f5}.app-header{height:94px}.wordmark{color:#6d537f;letter-spacing:-1.6px;gap:12px}.brand-flower{width:37px;height:37px;flex-shrink:0;transform:rotate(-9deg)}.wordmark span{color:#927f8b}.account{border-color:#e8dde6;border-radius:18px;background:#fffdfa;color:#73647d}.icon-button{color:#8b739d}.main-nav{gap:12px;padding:6px 0 14px;border-bottom:1px dashed #dfd4dd}.main-nav button{padding:11px 20px;border:0;border-radius:24px;color:#8c7e87;display:flex;align-items:center;gap:7px;font-weight:500}.main-nav button.active{background:#ede3f3;color:#73568d}.nav-icon{width:18px;height:18px;opacity:.85}.page-title{padding:29px 0 23px}h1{color:#56435f;font-weight:750;letter-spacing:-1px}h2{color:#604f68}.primary{background:#84669f;border-radius:18px;box-shadow:0 3px 0 #6c508520;padding:12px 22px}.secondary{border-radius:14px;border-color:#e4d9e4;background:#fffdfb}.month-controls #today{border:0;background:#eee6f2;color:#806091;border-radius:12px;height:31px;width:46px}.month-controls button{color:#9a83a8}.cycle-strip{border:0;background:none;gap:13px;margin-bottom:26px}.cycle-strip button{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-height:94px;padding:20px 23px;border-radius:20px;background:#fce9e3;border:1px solid #f3ddd7}.cycle-strip button+button{border:1px solid #e4e8da;background:#eef2e6}.cycle-strip button:last-child{background:#efe8f6;border-color:#e6dded}.cycle-strip span{font-size:12px;color:#8a6c73}.cycle-strip strong{font-size:17px;color:#714f60;margin:0}.cycle-strip button:nth-child(2) strong{color:#58705d}.cycle-strip button:last-child strong{color:#735d88}.cycle-strip button:after{position:absolute;right:21px;top:25px;font-size:29px;opacity:.5;line-height:1;content:'♡';color:#c27b86;transform:rotate(12deg)}.cycle-strip button:nth-child(2):after{content:'✿';color:#8da780}.cycle-strip button:last-child:after{content:'✧';color:#a58cb7}.calendar-layout{gap:24px;align-items:start;grid-template-columns:minmax(0,1fr) 315px}.calendar-box{padding:20px 22px 0;background:#fffefd;border:1px solid #eee6e9;border-radius:25px;box-shadow:0 5px 20px #735b7010}.weekdays span{font-size:12px;color:#9c8e98;padding:5px 0 16px}.weekdays span:first-child{color:#cc8990}.weekdays span:last-child{color:#8c9ebc}.day{border-color:#f1ebef;height:104px;gap:7px}.day .number{font-size:14px;width:29px;height:29px;color:#65565f}.day.selected{background:#f5eef8;border-radius:13px}.day.selected .number{background:#9072aa;color:white}.day.today .number{box-shadow:inset 0 0 0 1.5px #b9a1c9}.day:hover{background:#fbf5f7;border-radius:13px}.day.outside .number{color:#d8ccd3}.day.period-day:after{bottom:7px;height:6px;border-radius:5px;background:#f2c1b8;left:2px;right:2px}.day.ovulation-day .number{outline-color:#b2ccac;background:#edf5e8}.day.estimated .number{outline-color:#91af90}.day-icons{gap:5px}.day-icons span{width:23px;height:23px;background:#f4eaf6;border:1px solid #ffffff;border-radius:7px;transform:rotate(-5deg);box-shadow:0 1px 2px #735b7020}.day-icons span:nth-child(even){transform:rotate(5deg)}.day-icons svg{width:19px;height:19px}.day-icons .visit{background:#fbe7de}.day-icons .medicine{background:#fff2cd}.day-icons .injection{background:#ede6fa}.day-icons .ovulation{background:#e7f0de}.day-icons .period{background:#fbe2e7}.day-label{color:#70866e}.calendar-key{border-top:1px dashed #e7dce6;color:#8c7d87;padding:18px 0}.calendar-key button{color:#927c9c}.period-dot{background:#e5a599}.ovulation-dot{background:#a2bd94}.daily{border:1px solid #eee4e9;border-radius:24px;padding:25px 22px;background:#fffdfb;position:relative}.daily:before{content:'';position:absolute;width:55px;height:15px;border-radius:3px;background:#e3d3eabf;top:-8px;left:calc(50% - 27px);transform:rotate(-4deg)}.daily-header{gap:8px}.daily-header span{color:#9a8795}.filters{gap:4px}.filters button{border-radius:12px;padding:7px 8px;color:#927f8c}.filters button.active{background:#efe4f4;color:#7a5b90}.empty{color:#a08d99;padding:25px 0 32px}.empty:before{content:'✿';display:block;color:#d7bdd3;font-size:27px;margin-bottom:9px}.entry{border-color:#f0e8ed}.entry-icon{width:36px;height:36px;border-radius:12px;background:#fbe8e0;color:#b07f74;transform:rotate(-5deg);border:2px solid white;box-shadow:0 1px 4px #6a4a6020}.entry-icon svg{width:25px;height:25px}.entry-title{color:#655067}.entry-meta{color:#968391}.entry-status{border-radius:9px;background:#f5edf8;color:#8c719f;border-color:#e9ddec}.entry-status.done{background:#f0f4ec;color:#819478;border-color:#e0e8d9}.entry-actions button{color:#9e829c}.quick-add{gap:6px}.quick-add button{border-radius:13px;background:#faf2ec;border-color:#f1e3d9;color:#a07c70}.quick-add button:nth-child(2){background:#fcf5df;border-color:#efe6c9;color:#998352}.quick-add button:nth-child(3){background:#f2eafa;border-color:#e9dff2;color:#9274a6}.recent-header h3{color:#8d788e}.recent-chip{border-color:#eee5e9;color:#79677a}.med-card{border-radius:18px;background:#fffdfb;border-color:#e9dfe8;padding:20px}.med-card:hover{background:#f5edf8}.med-card>span{color:#b699c2}.settings-section{background:#fffdfb;border:1px solid #eee3eb;border-radius:22px;padding:25px}.settings-grid{gap:20px;max-width:none}.settings-section label{color:#88748a}.settings-section>h2{color:#725a81}.settings-section .helper,.helper,.section-note{color:#927f8e}.check-row input{accent-color:#9678aa}input:not([type=checkbox]):not([type=radio]),select,textarea{border-color:#e5dce5;border-radius:12px;color:#69546d;background:#fffefa}input:focus,select:focus,textarea:focus{border-color:#b49ac5!important;box-shadow:0 0 0 3px #eadff280}.history-date{color:#937894;border-bottom-style:dashed}.search-row{margin-bottom:15px}dialog{border-radius:25px;background:#fffcf9;border-color:#ecdeea;color:#67516d;box-shadow:0 20px 80px #50355030}dialog::backdrop{background:#51405855;backdrop-filter:blur(3px)}.dialog-heading h2{color:#725a81}.type-picker span{border-radius:12px;border-color:#eadfe9;color:#947f91;background:white}.type-picker input:checked+span{background:#eee2f4;border-color:#bba0cc;color:#7d5a96}.suggestions,#triggerDateBox{border-radius:15px;background:#f4edf6}.social{border-radius:14px}.notice{border-radius:14px;background:#f1e8f5;color:#80638f}footer{border-top-style:dashed;color:#a38d9d;padding-bottom:28px}#toast{background:#795e89;border-radius:18px}
@media(max-width:950px){.cycle-strip button{padding:18px;min-height:95px}.cycle-strip button:after{right:13px;top:16px;font-size:23px}.cycle-strip strong{font-size:15px}.calendar-layout{grid-template-columns:minmax(0,1fr) 280px;gap:18px}.calendar-box{padding:18px 14px 0}.daily{padding:23px 17px}.day{height:96px}}
@media(max-width:700px){.app-header{height:78px;padding:0 20px}.brand-flower{width:31px;height:31px}.wordmark{gap:8px}.wordmark span{font-size:10px;margin-left:2px}.main-nav{justify-content:space-between;gap:4px;padding-bottom:14px}.main-nav button{font-size:11px;gap:5px;padding:10px 11px}.nav-icon{width:16px;height:16px}main{padding:0 14px}.page-title{padding:23px 3px 20px}.page-title>div{gap:9px}h1{font-size:22px}.primary{padding:11px 15px;border-radius:15px}.cycle-strip{gap:8px;margin-bottom:19px}.cycle-strip button{padding:16px 12px;gap:11px;min-height:92px;border-radius:17px}.cycle-strip span{font-size:10px;position:relative;z-index:1}.cycle-strip strong{font-size:12px;max-width:100%;position:relative;z-index:1}.cycle-strip button:after{font-size:22px;right:10px;top:40px;opacity:.22}.calendar-layout{grid-template-columns:1fr;gap:26px}.calendar-box{border-radius:22px;padding:17px 10px 0}.day{height:76px;gap:5px;padding:8px 1px 6px}.day .number{font-size:13px;width:27px;height:27px}.day-icons{gap:1px}.day-icons span{width:18px;height:18px;border-radius:5px}.day-icons svg{width:15px;height:15px}.day-label{font-size:8px}.day.period-day:after{height:4px;bottom:3px}.calendar-key{gap:10px;font-size:9px;padding:15px 1px}.calendar-key button{font-size:10px}.daily{padding:22px 20px;border-radius:22px}.daily-header h2{font-size:19px}.filters button{font-size:11px;padding:8px 11px}.quick-add button{font-size:11px}.entry-meta{font-size:11px}.settings-section{padding:23px 19px}.settings-grid{gap:20px}.med-card{padding:17px 13px}footer{gap:10px;font-size:9px;flex-wrap:wrap}footer button{font-size:9px}dialog{padding:24px 20px}.type-picker span{padding:9px 8px}.account{padding:8px 12px}}
@media(prefers-reduced-motion:no-preference){button{transition:background .16s ease,box-shadow .16s ease}.brand-flower:hover{transform:rotate(12deg);transition:transform .3s ease}}
/* Phone ergonomics: touch targets, safe areas and keyboard-friendly forms. */
html{-webkit-text-size-adjust:100%;scroll-padding-bottom:24px}.entry-main,.settings-section,.med-card>div{min-width:0}.med-card strong,.recent-chip,.account-info{overflow-wrap:anywhere}.form-row{grid-template-columns:repeat(2,minmax(0,1fr))}dialog{overscroll-behavior:contain;scroll-padding:24px}button{touch-action:manipulation}
@media(max-width:850px){.calendar-layout{grid-template-columns:1fr}.daily{max-width:none}.settings-grid{grid-template-columns:1fr}}
@media(max-width:700px){
 main{padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right))}.app-header{padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right))}
 .main-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px}.main-nav button{justify-content:center;min-height:44px;padding:8px 4px;white-space:nowrap}.nav-icon{flex-shrink:0}
 .account,.icon-button,.primary,.secondary,.social,.filters button,.quick-add button,.recent-chip,.entry-actions button,.entry-status{min-height:44px}.icon-button{min-width:44px}.account-actions{gap:0}.account{font-size:12px}.wordmark span{display:none}
 .page-title{flex-wrap:wrap;gap:12px;padding:20px 2px}.page-title>div{min-width:0;flex:1;flex-wrap:wrap;gap:7px 10px}.month-controls button{min-width:36px;min-height:44px}.month-controls #today{min-height:44px;width:43px;margin:0 2px}.page-title .primary{min-width:72px}h1{font-size:22px;white-space:nowrap}
 .cycle-strip button{padding:14px 10px;min-height:92px}.cycle-strip span{white-space:normal;line-height:1.5}.cycle-strip strong{white-space:normal;line-height:1.4;overflow-wrap:anywhere}.cycle-strip{gap:6px}
 .calendar-box{padding:16px 7px 0}.day{height:82px}.day-icons{flex-wrap:nowrap;max-width:100%;height:20px;flex-shrink:0}.day-icons:has(span:nth-child(3)) span:nth-child(n+2){display:none}.day-icons:has(span:nth-child(3)):after{content:'+';color:#8c719b;font-size:12px;width:13px;line-height:18px}.day-label{max-width:100%;overflow:hidden;text-overflow:ellipsis}.calendar-key{flex-wrap:wrap;gap:8px}.calendar-key button{min-height:44px;padding:8px 4px}.calendar-key{padding:5px 1px}
 .daily{padding:22px 16px}.daily-header{flex-wrap:wrap}.filters{gap:4px}.filters button{padding:8px 12px;font-size:12px}.entry-title{font-size:15px;min-height:44px;display:flex;align-items:center}.entry-status{padding:8px;font-size:11px}.entry-heading{gap:6px}.entry-meta,.entry-actions button,.recent-chip span{font-size:12px}.entry-actions{gap:14px;margin-top:4px}.entry-actions button{padding:8px 3px}.entry-icon{margin-top:4px}.quick-add button{font-size:13px}.empty,.section-note,.helper{font-size:12px}.med-card strong{font-size:14px;line-height:1.5}.med-card small{font-size:11px;line-height:1.5}.catalog-heading{flex-wrap:wrap}.catalog-heading input{max-width:none;flex:1;min-width:130px}.settings-section{padding:22px 16px}.setting-action{gap:12px;flex-wrap:wrap}
 input:not([type=checkbox]):not([type=radio]),select,textarea{font-size:16px;min-height:48px;padding:12px 10px}input[type=date],input[type=time]{max-width:100%;appearance:none;-webkit-appearance:none}label{font-size:13px}.form-row{gap:10px}.check-row{min-height:44px;line-height:1.6}.check-row input{width:20px;height:20px;flex-shrink:0}.type-picker{gap:7px}.type-picker span{display:flex;align-items:center;justify-content:center;min-height:44px;padding:9px 12px;font-size:12px}
 dialog{width:calc(100% - 16px);max-width:500px;max-height:calc(100dvh - 16px);padding:20px 16px max(20px,env(safe-area-inset-bottom));border-radius:22px;margin:auto}.dialog-heading{margin-bottom:18px}.dialog-heading h2{font-size:19px}.dialog-actions{position:sticky;bottom:calc(-1 * max(20px,env(safe-area-inset-bottom)));background:#fffcf9;border-top:1px solid #eee3eb;padding:12px 0 max(12px,env(safe-area-inset-bottom));margin-top:18px;z-index:1}.dialog-actions button{min-width:60px}.suggestions{padding:12px}footer{padding-bottom:max(24px,env(safe-area-inset-bottom));align-items:center}footer a,footer button{min-height:44px;display:inline-flex;align-items:center}#toast{bottom:max(18px,env(safe-area-inset-bottom))}
}
@media(max-width:374px){.page-title>div{flex-basis:calc(100% - 88px)}.month-controls{flex-basis:100%}.main-nav button{flex-direction:column;gap:4px;font-size:11px;min-height:56px}.med-grid{grid-template-columns:1fr}.form-row{grid-template-columns:1fr}.day{height:82px}.cycle-strip strong{font-size:12px}.cycle-strip span{font-size:10px}}
@media(max-height:500px) and (max-width:950px){dialog{max-height:calc(100dvh - 12px);padding-top:14px}.dialog-heading{margin-bottom:12px}}
