:root{--bg:#f8f6f2;--card:#fff;--ink:#2c3732;--muted:#707971;--green:#426b50;--mint:#e4eedf;--line:#e9ece5;--peach:#f6e4d4;--lav:#eee8f8;--blue:#e5eff7;--radius:24px}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:'Noto Sans KR',-apple-system,BlinkMacSystemFont,sans-serif;font-size:14px;line-height:1.6;-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}a{color:var(--green)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #89a8d2;outline-offset:3px}h1,h2,h3,p{margin:0}h1{font-size:28px;letter-spacing:-1px;font-weight:800}h2{font-size:19px;letter-spacing:-.5px}h3{font-size:15px}small,.small{font-size:12px}.muted{color:var(--muted)}.boot{text-align:center;padding:20vh 24px}.brandmark{display:grid;place-items:center;width:44px;height:44px;border-radius:16px;background:#dce9d8;color:#3a6645;font-weight:800;font-size:25px;margin:auto}.app-shell{max-width:1180px;margin:0 auto;display:grid;grid-template-columns:206px minmax(0,1fr);min-height:100vh}.sidebar{padding:40px 22px 28px;border-right:1px solid var(--line);position:sticky;top:0;height:100vh;display:flex;flex-direction:column;gap:34px}.brand{display:flex;align-items:center;gap:12px}.brand .brandmark{margin:0;width:39px;height:39px;border-radius:14px;font-size:22px}.brand strong{font-size:23px;letter-spacing:-1px}.brand span{display:block;font-size:10px;letter-spacing:1px;color:var(--muted)}.side-nav{display:grid;gap:9px}.nav-btn{border:0;background:transparent;display:flex;align-items:center;gap:14px;color:#758075;text-align:left;min-height:50px;padding:0 16px;border-radius:16px;font-weight:600}.nav-btn.active{background:#e4ecdf;color:#35573f}.nav-btn svg{width:21px;height:21px}.side-note{margin-top:auto;background:#efede6;padding:18px;border-radius:19px;font-size:12px;color:#697466;line-height:1.8}.main{padding:35px 38px 65px;min-width:0}.topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:28px}.eyebrow{font-size:11px;font-weight:700;letter-spacing:1.5px;color:#82917e}.topbar-title{display:flex;gap:11px;align-items:center}.topbar .logo-mobile{display:none}.sync-btn{border:1px solid var(--line);background:#fff;border-radius:20px;padding:8px 13px;font-size:11px;display:flex;gap:6px;align-items:center;color:#64755f;max-width:230px}.dot{width:6px;height:6px;background:#739268;border-radius:50%;display:inline-block;flex-shrink:0}.date-row{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:8px 0 24px}.date-control{display:flex;align-items:center;gap:6px;background:#fff;border:1px solid var(--line);padding:4px;border-radius:15px}.date-control input{border:0;background:transparent;font-size:13px;width:132px;min-height:36px;color:var(--ink);padding:0 3px}.icon-btn{border:0;background:transparent;display:grid;place-items:center;width:38px;height:38px;border-radius:12px;color:var(--ink)}.icon-btn:hover{background:#f1f3ee}.icon-btn svg{width:18px;height:18px}.badge{display:inline-flex;align-items:center;gap:5px;border-radius:20px;padding:4px 10px;background:#edf1e8;color:#5b7054;font-size:11px;font-weight:600}.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:23px;min-width:0}.stack{display:grid;gap:18px}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:16px}.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.row{display:flex;align-items:center;gap:10px}.between{justify-content:space-between}.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.section-head .muted{font-size:12px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;border:1px solid var(--line);border-radius:13px;padding:10px 15px;background:#fff;color:var(--ink);font-size:13px;font-weight:600;text-decoration:none}.btn:hover{background:#f2f5ef}.btn.primary,.primary{background:var(--green);border-color:var(--green);color:white}.btn.soft{background:#eaf0e4;border:0;color:#46623f}.btn.danger{color:#a44242;background:#fff3ef;border-color:#f5ddd5}.btn svg{width:16px;height:16px}.text-btn{border:0;background:none;color:#6f8166;font-size:12px;min-height:40px;padding:4px;font-weight:600}.hero{background:#e9efdf;border-color:#dfe7d5;position:relative;overflow:hidden}.hero-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.hero h2{font-size:14px;font-weight:600;color:#607157}.hero-main{font-size:57px;letter-spacing:-2.5px;font-weight:700;line-height:1.25;margin:13px 0 8px;font-variant-numeric:tabular-nums}.hero-main span{font-size:17px;letter-spacing:0;font-weight:500;margin-left:7px;color:#69785f}.hero-formula{display:flex;align-items:center;gap:13px;font-size:12px;color:#64755c}.hero-formula strong{font-size:17px;color:#374e35}.hero-leaf{width:104px;height:113px;margin-top:7px;flex-shrink:0}.hero-footer{margin-top:25px;padding-top:16px;border-top:1px solid #d3dfc9;display:flex;justify-content:space-between;align-items:center;gap:10px}.hero-footer strong{font-size:16px}.macro-row{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-top:6px}.macro .label{font-size:12px;color:#6a736d}.macro .amount{margin-top:7px;font-size:19px;font-weight:700}.macro .amount small{font-size:11px;font-weight:400;color:#899087}.progress{height:6px;background:#f0f0eb;border-radius:12px;overflow:hidden;margin:9px 0 6px}.progress i{display:block;height:100%;background:#a9bf96;border-radius:12px}.macro:nth-child(2) .progress i{background:#e5b69d}.macro:nth-child(3) .progress i{background:#b2a2d1}.macro .percent{font-size:10px;color:#858d80}.day-grid{display:grid;grid-template-columns:1.24fr 1fr;gap:18px}.meal-summary{display:flex;align-items:center;gap:13px;padding:14px 0;border-top:1px solid #f0f1eb}.meal-summary:first-of-type{border-top:0}.tile-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:14px;background:#f6eadc;font-size:21px;flex-shrink:0}.tile-icon svg{width:22px;height:22px}.meal-summary:nth-child(3) .tile-icon{background:#e8f0e3}.meal-summary:nth-child(4) .tile-icon{background:#ebe8f4}.meal-summary:nth-child(5) .tile-icon{background:#f7e6e4}.meal-summary .info{flex:1;min-width:0}.meal-summary h3{font-size:13px}.meal-summary p{font-size:11px;color:#8b9289;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:220px}.plus{width:31px;height:31px;min-width:31px;border:1px solid #e5e9df;background:white;border-radius:50%;font-size:19px;color:#718568}.water-card{background:#eef4f9;border-color:#e2ebf1}.water-card .section-head{margin-bottom:10px}.water-amount{font-size:28px;font-weight:700;letter-spacing:-1px}.water-amount small{font-size:12px;color:#7d8c95;font-weight:400;letter-spacing:0}.water-card .progress{background:#dce8f0;height:8px}.water-card .progress i{background:#90b7d1}.water-actions{display:flex;gap:7px;margin-top:13px}.water-actions .btn{flex:1;padding:7px 8px;min-height:37px;font-size:11px;background:rgba(255,255,255,.7);border:1px solid #dfeaf2}.supp-row{display:flex;gap:11px;align-items:center;padding:10px 0;border-top:1px solid #f0f0eb}.supp-row input{appearance:none;width:23px;height:23px;border:1.5px solid #dce2d6;border-radius:8px;flex-shrink:0;margin:0}.supp-row input:checked{background:#739468;border-color:#739468}.supp-row input:checked:after{content:'✓';display:block;color:white;font-size:15px;text-align:center}.supp-row label{flex:1;font-size:12px}.supp-row small{font-size:10px;color:#8b9385}.empty{padding:22px 10px;text-align:center;color:#87917f;font-size:12px}.empty svg{width:30px;height:30px;margin-bottom:10px}.notice{background:#f0eee6;color:#756f5b;border-radius:14px;padding:12px 15px;font-size:12px}.notice a{font-weight:700}.welcome{background:#f4ede2;border:1px solid #ebe2d2;display:flex;align-items:center;gap:18px;justify-content:space-between;padding:18px 20px;border-radius:20px}.welcome p{font-size:12px;color:#817865;margin-top:3px}.welcome .btn{white-space:nowrap}.bottom-nav{display:none}.input,input:not([type='checkbox']):not([type='date']),select,textarea{border:1px solid #dfe5da;border-radius:12px;min-height:45px;width:100%;padding:10px 12px;background:#fff;color:#344130;max-width:100%}input[type=date],input[type=datetime-local]{border:1px solid #dfe5da;border-radius:12px;padding:10px;min-height:44px;width:100%;color:#344130;background:#fff}.date-control input[type=date]{border:0;padding:0;min-height:36px;width:132px}label.field{display:grid;gap:7px;font-size:12px;font-weight:600;color:#616e5a;margin-bottom:13px}textarea{resize:vertical;min-height:80px}.field small{font-weight:400}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}.full{grid-column:1/-1}.chips{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0}.chip{border:1px solid var(--line);border-radius:20px;background:#fff;color:#69755f;font-size:12px;padding:8px 13px;min-height:38px}.chip.active{background:#e4eddd;color:#3b623f;border-color:#d8e4cf}.modal-overlay{position:fixed;inset:0;z-index:50;background:#25362469;display:flex;align-items:center;justify-content:center;padding:24px;backdrop-filter:blur(5px)}.modal{background:var(--bg);border-radius:27px;width:100%;max-width:520px;max-height:90dvh;display:flex;flex-direction:column;box-shadow:0 20px 70px #26352430}.modal-header{padding:20px 23px 15px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line)}.modal-content{padding:21px 23px;overflow:auto;overscroll-behavior:contain;scroll-padding-bottom:100px}.modal-content form>.btn:last-child{width:100%;margin-top:18px}.modal-content .card{padding:15px}.modal-content h3{margin-bottom:9px}.modal-content .grid2{gap:12px}.modal-content .muted{font-size:12px}.modal-content hr{border:0;border-top:1px solid var(--line);margin:18px 0}.modal-content ul{padding-left:20px}.modal-content details{margin:14px 0}.modal-content summary{cursor:pointer;padding:8px 0;color:#61745a}.record{display:flex;align-items:center;gap:12px;padding:15px 0;border-top:1px solid var(--line)}.record .info{flex:1}.record .info p{font-size:12px;color:var(--muted)}.record .actions{display:flex;gap:4px}.settings-row{display:flex;align-items:center;justify-content:space-between;padding:15px 0;border-top:1px solid var(--line);gap:14px}.settings-row:first-of-type{border-top:0}.settings-row p{font-size:12px;color:var(--muted)}.settings-row .btn{flex-shrink:0}.hint{font-size:11px;color:#8a9281;margin-top:12px}#toast{position:fixed;z-index:100;bottom:32px;left:50%;transform:translateX(-50%);background:#304333;color:white;padding:12px 18px;border-radius:15px;max-width:calc(100% - 32px);width:max-content;font-size:12px;box-shadow:0 6px 30px #25372430;display:none}#toast.visible{display:flex;align-items:center;gap:15px}#toast button{background:none;border:0;color:#d3e9b7;font-weight:700;padding:4px}svg{display:inline-block;vertical-align:middle;max-width:100%}canvas{max-width:100%}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:12px}th,td{padding:10px 8px;text-align:left;border-bottom:1px solid var(--line)}.error{color:#a23f36;background:#fff1ed;border-radius:12px;padding:12px;font-size:12px}.warning{color:#8c6434;font-size:12px}.fast-card{background:#f1edf7;border-color:#e8e2f0}.metric{font-size:30px;font-weight:700}.details-list{display:grid;gap:12px}.day-dots{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}.day-dot{border:0;background:#f2f4ed;border-radius:10px;min-height:38px;font-size:11px}.day-dot.has{background:#dfead4;color:#3c633c}.day-dot.active{outline:2px solid #749168}.footer-note{text-align:center;font-size:10px;color:#9ba18f;padding:24px 0 0;letter-spacing:1px}
@media(max-width:1000px){.app-shell{grid-template-columns:172px minmax(0,1fr)}.main{padding:28px 24px 50px}.sidebar{padding:32px 15px}.day-grid{grid-template-columns:1fr}.hero-main{font-size:52px}}
@media(max-width:680px){body{font-size:13px}.app-shell{display:block}.sidebar{display:none}.main{padding:calc(19px + env(safe-area-inset-top)) 18px calc(100px + env(safe-area-inset-bottom));max-width:540px;margin:auto}.topbar{margin-bottom:22px}.topbar .logo-mobile{display:block}.topbar .eyebrow{font-size:10px;letter-spacing:.3px}.topbar-title h1{font-size:21px}.topbar-title .brandmark{width:34px;height:34px;font-size:20px;border-radius:12px}.sync-btn{max-width:180px;font-size:9px;padding:7px 9px}.date-row{margin-bottom:19px}.date-row h1{font-size:24px}.date-row>div>p{font-size:11px}.card{padding:20px;border-radius:22px}.hero-main{font-size:53px}.hero-leaf{width:80px;height:99px}.hero-footer{margin-top:20px;font-size:11px}.hero-footer strong{font-size:15px}.hero-formula{gap:9px;font-size:11px}.hero-formula strong{font-size:16px}.stack{gap:15px}.grid2{gap:12px}.macro-row{gap:17px}.macro .amount{font-size:17px}.macro .amount small{display:block;font-size:10px}.macro .label{font-size:11px}.day-grid{gap:15px}.bottom-nav{position:fixed;bottom:0;left:0;right:0;z-index:30;display:flex;justify-content:space-around;border-top:1px solid #e9ece2;padding:9px 8px calc(9px + env(safe-area-inset-bottom));background:#fffefbf2;backdrop-filter:blur(15px)}.bottom-nav .nav-btn{display:flex;flex-direction:column;gap:3px;padding:2px 14px;min-height:48px;font-size:10px;border-radius:12px;min-width:54px}.bottom-nav .nav-btn.active{background:none;color:#436c3e}.bottom-nav .nav-btn.active svg{stroke-width:2.5}.bottom-nav .nav-btn svg{width:22px;height:22px}.welcome{gap:10px;padding:16px}.welcome .btn{font-size:11px;padding:8px 12px}.welcome p{font-size:10px}.modal-overlay{align-items:flex-end;padding:0}.modal{border-radius:25px 25px 0 0;max-height:92dvh;padding-bottom:env(safe-area-inset-bottom)}.modal-header{padding:18px 20px 12px}.modal-content{padding:19px 20px 24px}.modal-content input,.modal-content select,.modal-content textarea{font-size:16px}.modal-content .btn{min-height:46px}#toast{bottom:calc(90px + env(safe-area-inset-bottom))}.settings-row{gap:10px}.settings-row .btn{font-size:11px;padding:8px 11px}.hero .badge{font-size:9px;padding:4px 8px}.grid3{gap:8px}.grid3 .card{padding:13px}.date-control input[type=date]{width:126px;font-size:12px}.section-head h2{font-size:17px}}
@media(prefers-reduced-motion:no-preference){.card{animation:appear .25s ease-out}@keyframes appear{from{opacity:.6;transform:translateY(4px)}to{opacity:1;transform:none}}}
/* Inline icons keep their intended size even before a network/font load. */
.text-btn svg,.section-head h2>svg,.side-note>svg{width:18px;height:18px}.text-btn svg{width:13px;height:13px}.section-head h2>svg{margin-right:4px}.section-head{min-width:0}.section-head>div{min-width:0}
