:root{--bg:#f6f8f5;--surface:#fff;--surface2:#f0f4ef;--ink:#18332c;--text:#263e35;--muted:#84928a;--line:#e8eee8;--accent:#527f5f;--dark:#15342b;--lime:#c3e4ac;--warn:#d88e38;--shadow:0 10px 35px rgba(19,54,38,.04)}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font-family:'DM Sans','Noto Sans KR',-apple-system,BlinkMacSystemFont,sans-serif;font-size:14px}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #8ac89f;outline-offset:3px}svg{display:block}h1,h2,h3,p{margin:0}h2{font-size:22px;color:var(--ink);letter-spacing:-.6px}h3{font-size:16px;color:var(--ink)}.muted{color:var(--muted)}.tiny{font-size:11px}.small{font-size:12px}.upper{font-size:10px;font-weight:800;letter-spacing:2px;text-transform:uppercase}.num{font-variant-numeric:tabular-nums;letter-spacing:-1px}.shell{display:grid;grid-template-columns:236px minmax(0,1fr);min-height:100dvh;max-width:1550px;margin:auto}.sidebar{background:var(--surface);border-right:1px solid var(--line);padding:37px 18px 24px;display:flex;flex-direction:column;gap:28px;position:sticky;top:0;height:100dvh}.brand{display:flex;gap:12px;align-items:center;padding:0 14px}.brand-mark{width:42px;height:42px;display:grid;place-items:center;background:var(--dark);color:var(--lime);border-radius:14px}.brand-name{font-size:23px;font-weight:800;letter-spacing:-1px;color:var(--dark);line-height:1}.brand-sub{font-size:10px;color:var(--muted);font-weight:700;letter-spacing:1.7px;margin-top:5px}.side-label{padding:10px 17px;font-weight:800;letter-spacing:2px;color:#9fad9f;font-size:10px}.nav{display:grid;gap:5px}.nav-btn{width:100%;border:0;background:none;color:#7d8f85;display:flex;gap:13px;align-items:center;padding:13px 17px;border-radius:13px;font-weight:700;text-align:left}.nav-btn.active{background:#eaf3e7;color:#315b3e}.nav-btn:hover{background:#f1f5f0}.nav-btn .ico{width:20px;height:20px}.sidebar-bottom{margin-top:auto;padding:15px;border:1px solid var(--line);background:#f7faf5;border-radius:17px}.sidebar-bottom .mode-dot{width:7px;height:7px;background:#f1b35b;border-radius:50%;display:inline-block;margin-right:6px}.sidebar-bottom p{color:var(--muted);font-size:11px;line-height:1.7;margin-top:7px}.side-settings{margin-top:9px}.main{min-width:0;padding:36px clamp(24px,5.1vw,73px) 70px}.main-inner{max-width:1120px;margin:auto}.top{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:33px}.greeting{display:flex;align-items:center;gap:12px}.eyebrow{font-size:11px;letter-spacing:1.5px;color:#849887;font-weight:800;text-transform:uppercase}.page-title{font-size:30px;color:var(--ink);font-weight:800;letter-spacing:-1.3px;margin-top:5px}.top-actions{display:flex;gap:10px;align-items:center}.status-pill{border:1px solid var(--line);background:white;color:#728378;border-radius:100px;padding:9px 14px;display:flex;align-items:center;gap:7px;font-size:11px;font-weight:700;white-space:nowrap}.status-pill .dot{width:7px;height:7px;border-radius:50%;background:#dfaa54}.icon-btn{background:white;border:1px solid var(--line);border-radius:12px;width:38px;height:38px;display:grid;place-items:center;color:#54715d}.ico{width:18px;height:18px;flex-shrink:0}.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.section-note{color:var(--muted);font-size:12px}.section{margin-top:30px}.card{background:var(--surface);border:1px solid var(--line);border-radius:21px;box-shadow:var(--shadow)}.pad{padding:23px}.hero{background:#17372e;color:white;position:relative;overflow:hidden;min-height:240px;border-radius:24px;padding:28px 31px;display:grid;grid-template-columns:1fr 1fr;gap:20px}.hero::before{content:"";position:absolute;width:320px;height:320px;right:-85px;top:-140px;border:1px solid rgba(198,234,169,.19);border-radius:50%;box-shadow:0 0 0 43px rgba(198,234,169,.035),0 0 0 88px rgba(198,234,169,.025)}.hero .eyebrow{color:#a2c4af}.hero h2{color:white;font-size:15px;font-weight:600;margin:12px 0 4px}.hero .weight-big{font-size:58px;font-weight:700;letter-spacing:-3px;line-height:1.2}.hero .weight-big span{font-size:20px;color:#c0d3c5;letter-spacing:0}.hero .subline{color:#b9d1c0;font-size:12px;margin-top:12px}.hero-progress{margin-top:25px;max-width:360px}.progress-caption{display:flex;justify-content:space-between;font-size:11px;color:#b4cbb9;margin-bottom:10px}.progress-track{height:7px;background:rgba(255,255,255,.14);border-radius:20px;overflow:hidden}.progress-fill{height:100%;border-radius:20px;background:#c6e5b3}.hero-side{display:flex;flex-direction:column;justify-content:center;align-items:flex-end;position:relative;z-index:1}.goal-chip{border:1px solid rgba(230,246,225,.18);background:rgba(255,255,255,.06);padding:13px 17px;border-radius:17px;text-align:right;min-width:145px}.goal-chip span{font-size:11px;color:#aac7b3}.goal-chip b{display:block;font-size:26px;color:#e1f3cc;margin-top:5px;letter-spacing:-.8px}.hero-delta{margin-top:13px;color:#d8efc1;font-size:12px}.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:16px}.stat{padding:20px 20px 18px;min-height:120px}.stat-top{display:flex;align-items:center;gap:9px;font-size:11px;font-weight:700;color:#83958a}.stat-icon{width:31px;height:31px;display:grid;place-items:center;background:#eff6ec;border-radius:10px;color:#62816b}.stat-val{font-size:25px;color:#1c3d31;font-weight:800;margin-top:13px;letter-spacing:-1px;white-space:nowrap}.stat-unit{font-size:11px;color:#8a9b90;font-weight:600;letter-spacing:0}.stat-foot{margin-top:5px;color:#9aaca0;font-size:10px}.grid-2{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:18px}.chart-card{min-height:292px}.chart-wrap{height:195px;display:grid;place-items:center;width:100%;margin-top:14px}.chart-svg{width:100%;height:100%;overflow:visible}.chart-labels{display:flex;justify-content:space-between;gap:4px;color:#a8b5ab;font-size:11px;margin-top:3px}.legend{display:flex;gap:14px;align-items:center;flex-wrap:wrap}.legend-item{font-size:11px;color:#8c9e90;display:flex;gap:6px;align-items:center}.legend-circle{width:8px;height:8px;border-radius:100%;background:#537e5d}.legend-circle.pale{background:#b1d6ae}.quick-card{display:flex;flex-direction:column;gap:15px}.quick-card .muted{line-height:1.7;font-size:12px}.action-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.btn{border:0;border-radius:12px;padding:12px 15px;display:inline-flex;gap:8px;align-items:center;justify-content:center;font-size:12px;font-weight:800;min-height:43px}.btn.primary{background:var(--dark);color:white}.btn.primary:hover{background:#285544}.btn.light{background:#edf4ed;color:#3e7250}.btn.light:hover{background:#e1eee1}.btn.outline{background:white;border:1px solid #dae5db;color:#42634b}.btn.danger{background:#fff0eb;color:#a44634}.btn.full{width:100%}.btn .ico{height:16px;width:16px}.mini-advice{padding:13px 14px;background:#f3f8f0;border-radius:14px;color:#597060;font-size:12px;line-height:1.8}.pill{display:inline-block;padding:5px 9px;font-size:10px;border-radius:100px;background:#eef4ed;color:#53765a;font-weight:800}.pill.warn{background:#fff4e7;color:#ac762c}.pill.grey{background:#f2f3f3;color:#87948a}.banner{padding:12px 15px;border:1px solid #e9d8b0;background:#fff9ed;color:#7b673b;border-radius:14px;display:flex;align-items:center;gap:9px;margin-bottom:20px;line-height:1.5;font-size:12px}.banner .ico{width:16px;height:16px}.empty{text-align:center;padding:45px 15px;color:#99a99c}.empty .ico{margin:auto auto 12px;width:28px;height:28px}.empty h3{font-size:14px;margin-bottom:7px}.empty p{font-size:12px;line-height:1.8}.list{display:grid;gap:9px}.list-item{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:14px 15px;border:1px solid var(--line);border-radius:14px;background:white}.item-left{display:flex;gap:10px;align-items:center;min-width:0}.item-icon{width:35px;height:35px;border-radius:11px;background:#edf3ec;display:grid;place-items:center;color:#62856b;flex-shrink:0}.item-title{font-size:12px;font-weight:800;color:#354e3d;overflow-wrap:anywhere}.item-desc{font-size:11px;color:#92a193;margin-top:4px}.item-value{font-size:12px;font-weight:800;color:#284c36;white-space:nowrap}.split-title{display:flex;justify-content:space-between;align-items:center;gap:12px}.tabs-small{display:flex;gap:5px;padding:4px;border-radius:12px;background:#eef3ed;align-items:center}.tabs-small button{border:0;background:transparent;color:#8d9d8d;font-weight:800;font-size:11px;padding:8px 13px;border-radius:9px}.tabs-small button.selected{background:white;color:#315b42;box-shadow:0 2px 9px #2c5c3312}.meal-summary{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:15px}.donut{width:143px;height:143px;position:relative;border-radius:50%;display:grid;place-items:center;margin:8px auto;background:conic-gradient(#689f7c 0 43%,#d6c98e 43% 70%,#a5c7ac 70% 100%)}.donut::before{content:"";position:absolute;inset:17px;border-radius:50%;background:white}.donut-content{position:relative;text-align:center}.donut-content b{display:block;color:#203f2d;font-size:22px;letter-spacing:-1px}.donut-content span{color:#92a494;font-size:10px}.macro-col{display:grid;gap:12px}.macro{display:flex;justify-content:space-between;font-size:11px;color:#718677}.macro b{color:#345742}.macro-bar{height:5px;background:#eff4ef;border-radius:20px;overflow:hidden;margin-top:5px}.macro-bar>i{display:block;height:100%;background:#71a381;border-radius:20px}.macro-bar.carbs>i{background:#d0bf83}.macro-bar.fats>i{background:#a5c5ab}.tile-row{display:flex;gap:8px;flex-wrap:wrap}.chip-btn{background:#f4f7f2;border:1px solid #e8eee5;padding:9px 12px;border-radius:10px;font-size:11px;color:#497051;display:flex;gap:6px;align-items:center;font-weight:700}.chip-btn:hover{background:#e6f0e2}.muted-foot{font-size:11px;color:#a3aca4;line-height:1.8}.two-panels{display:grid;grid-template-columns:1.2fr .8fr;gap:18px}.panel-stack{display:grid;gap:18px;align-content:start}.bar-chart{display:flex;align-items:end;justify-content:space-around;gap:10px;height:170px;padding:15px 4px 0;border-bottom:1px solid #eaf0e9}.bar-col{display:flex;align-items:center;flex-direction:column;justify-content:flex-end;gap:7px;height:100%;flex:1}.bar-fill{width:min(32px,100%);min-height:2px;background:linear-gradient(#a3c5a3,#507d5e);border-radius:8px 8px 0 0}.bar-label{font-size:10px;color:#9cafa0;white-space:nowrap}.bar-num{font-size:9px;color:#8da190}.kv-list{display:grid;gap:8px}.kv{display:flex;align-items:center;justify-content:space-between;padding:11px 0;border-bottom:1px solid #f0f2ee;font-size:12px}.kv:last-child{border-bottom:0}.kv span{color:#91a095}.kv b{color:#35553e}.insight-card{border-radius:20px;background:#f0f6ed;border:1px solid #e0ebdb;padding:23px}.insight-head{display:flex;align-items:center;gap:10px;color:#426b49;font-size:12px;font-weight:800}.insight-card p{color:#526e59;font-size:13px;line-height:1.85;margin-top:13px}.insight-list{display:grid;gap:9px;margin-top:15px}.insight-point{display:flex;gap:10px;font-size:12px;line-height:1.7;color:#586f60}.insight-point .ico{color:#78a37d;flex-shrink:0}.field{display:grid;gap:7px;margin-bottom:14px}.field label{font-size:12px;font-weight:800;color:#48624e}.input{width:100%;padding:12px 13px;background:#fff;border:1px solid #dfe8de;border-radius:11px;font-size:13px;color:#24412f;min-height:44px}.input:focus{border-color:#69967a}.fields-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.field-hint{font-size:10px;color:#91a197;line-height:1.7}.settings-group{padding:23px;margin-bottom:16px}.settings-group h3{margin-bottom:15px}.form-note{font-size:11px;color:#91a196;line-height:1.8}.line{height:1px;background:var(--line);margin:18px 0}.modal-backdrop{position:fixed;inset:0;background:rgba(10,35,23,.48);display:flex;justify-content:center;align-items:center;z-index:100;padding:16px;backdrop-filter:blur(4px)}.modal{width:min(100%,480px);max-height:min(92dvh,780px);overflow:auto;background:white;border-radius:24px;padding:23px;box-shadow:0 30px 80px rgba(18,39,24,.22)}.modal-header{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:19px}.modal-header h2{font-size:20px}.modal-close{background:#f1f5f0;border:0;width:34px;height:34px;border-radius:9px;display:grid;place-items:center}.modal-actions{display:flex;gap:9px;justify-content:flex-end;margin-top:17px}.modal-actions .btn{flex:1}#toast{pointer-events:none;position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#153a2d;color:white;padding:12px 17px;border-radius:12px;z-index:200;font-size:12px;box-shadow:0 12px 40px #193e3040;display:none;max-width:calc(100vw - 32px);text-align:center}#toast.show{display:block}.mobile-short{display:none}.mobile-nav{display:none}.privacy-note{background:#fff8ec;color:#8b724b;border:1px solid #f0e3c9;padding:12px 14px;border-radius:12px;font-size:11px;line-height:1.8}.chart-blank{text-align:center;color:#93a89a;font-size:12px;padding:45px 15px}.photo-preview{width:100%;max-height:150px;object-fit:contain;border-radius:12px;background:#eef4ec}.code-box{font-size:11px;white-space:pre-wrap;overflow-wrap:anywhere;background:#f4f7f4;padding:12px;border-radius:10px;color:#61766a}.busy{opacity:.55;pointer-events:none}.delete-small{border:0;background:#f8efed;color:#ae756a;border-radius:8px;width:30px;height:30px;display:grid;place-items:center;flex-shrink:0}.action-group{display:flex;gap:6px;align-items:center}.spacer{flex:1}.error{color:#ab4e41}.sync-empty{color:#a4a19b}.mode-actions{display:flex;gap:9px;flex-wrap:wrap}.footer-note{font-size:10px;color:#abb7ac;margin-top:28px;line-height:1.8}.logo-in-note{font-size:11px;letter-spacing:1px;font-weight:800}.skeleton{animation:pulse 1.3s infinite alternate}@keyframes pulse{to{opacity:.4}}@media(max-width:1060px){.main{padding:26px 27px 90px}.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stat{min-height:108px}.two-panels{grid-template-columns:1fr 1fr}.hero{min-height:226px}}@media(max-width:750px){.shell{display:block}.sidebar{display:none}.main{padding:23px 17px calc(110px + env(safe-area-inset-bottom))}.main-inner{max-width:540px}.top{margin-bottom:22px;align-items:center}.page-title{font-size:25px}.eyebrow{font-size:10px}.status-pill{padding:8px 10px;font-size:10px}.top-actions{gap:6px}.hero{padding:24px;min-height:219px;grid-template-columns:1fr .65fr;gap:5px;border-radius:20px}.hero .weight-big{font-size:47px}.hero .goal-chip{min-width:unset;padding:11px 13px}.goal-chip b{font-size:21px}.hero-delta{font-size:10px}.stat-grid{gap:10px;margin-top:11px}.stat{padding:14px;min-height:105px;border-radius:17px}.stat-val{font-size:22px;margin-top:10px}.stat-foot{font-size:9px}.grid-2,.two-panels{grid-template-columns:1fr;gap:13px}.pad{padding:19px}.section{margin-top:25px}.card{border-radius:18px}.section-head{margin-bottom:12px}h2{font-size:19px}.mobile-nav{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:30;background:rgba(255,255,255,.95);border-top:1px solid var(--line);padding:10px 13px calc(10px + env(safe-area-inset-bottom));justify-content:space-around;backdrop-filter:blur(20px)}.mobile-nav button{display:flex;flex-direction:column;gap:6px;align-items:center;justify-content:center;border:0;background:transparent;color:#9baa9a;font-size:10px;font-weight:700;min-width:65px;padding:7px 10px;border-radius:12px}.mobile-nav button.active{color:#356044;background:#eff5eb}.mobile-nav button .ico{width:20px;height:20px}.chart-card{min-height:270px}.chart-wrap{height:155px}.meal-summary{grid-template-columns:.8fr 1fr}.donut{height:120px;width:120px}.donut::before{inset:14px}.donut-content b{font-size:19px}.footer-note{margin-top:20px}}@media(max-width:380px){.main{padding-left:12px;padding-right:12px}.hero .weight-big{font-size:42px}.goal-chip b{font-size:19px}.hero{padding:19px}.stat-val{font-size:20px}.status-pill span.long{display:none}.mobile-short{display:inline}.meal-summary{grid-template-columns:1fr}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;scroll-behavior:auto!important}}@media(prefers-color-scheme:dark){body{background:#f6f8f5}} 

/* FIT AI v1.3 — compact clarity and explicit estimated energy balance */
.glance-status{margin-top:14px;background:#f1f7ee;padding:16px 20px}.glance-status p{font-size:12px;line-height:1.65;margin-top:7px;color:#52705b}.balance-section{margin-top:17px}.energy-head{display:flex;gap:20px;align-items:center;justify-content:space-between;margin:14px 0}.energy-label{font-size:11px;color:#8e9e91}.energy-value{font-size:35px;font-weight:800;line-height:1.25;color:#2c5540}.energy-value small{font-size:12px;font-weight:600;color:#839a8a}.energy-value.positive{color:#b16f39}.energy-value.negative{color:#367d55}.energy-value.neutral{color:#93a59a}.energy-status{color:#708a77;font-size:11px;text-align:right}.energy-details{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.energy-details>div{background:#f4f7f3;border-radius:10px;padding:11px;display:grid;gap:5px}.energy-details span{font-size:10px;color:#8a9c8f}.energy-details b{font-size:14px;color:#315740}.health-library{display:grid;grid-template-columns:1fr 1fr;gap:7px}.health-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:11px;border:1px solid #e6eee5;border-radius:11px}.health-row span{display:flex;align-items:center;gap:7px;font-size:11px;color:#768b78}.health-row .ico{width:15px;height:15px}.health-row b{font-size:11px;color:#3b6246}.health-future,.weight-history{border-top:1px solid #e8eee8;margin-top:14px;padding-top:12px}.health-future summary,.weight-history summary{font-size:11px;cursor:pointer;font-weight:750;color:#57775e}.health-future p{margin-top:10px}.future-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.future-tags span{background:#eff3ef;border-radius:7px;padding:6px 9px;font-size:10px;color:#7c8f7c}.weight-list{display:grid;grid-template-columns:1fr 1fr;gap:3px 15px;max-height:240px;overflow:auto;margin-top:11px}.weight-list>div{display:flex;justify-content:space-between;padding:7px;border-bottom:1px solid #edf1ed;font-size:11px}.weight-list span{color:#78907e}.weight-list b{color:#315d41}.photo-choice{display:flex;align-items:center;justify-content:center;gap:7px;border-radius:12px;padding:13px 7px;background:#eff5ef;border:1px solid #dce9dc;color:#3e6a49;font-size:11px;font-weight:800;cursor:pointer}.photo-choice .ico{width:16px;height:16px}.visually-hidden{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden;pointer-events:none}.chart-wrap{height:220px}.chart-card{min-height:300px}@media(max-width:750px){.balance-section{margin-top:12px}.energy-details{grid-template-columns:1fr 1fr}.energy-value{font-size:29px}.energy-status{max-width:116px}.glance-status{padding:14px}.health-library{grid-template-columns:1fr}.chart-wrap{height:190px}}

.health-extra-list{display:grid;gap:7px;margin-top:12px}.health-extra-list h3{font-size:12px}

/* FIT AI v1.4 contextual nutrition */
.photo-context{border:1px solid #dee9df;background:#f6faf6;border-radius:15px;padding:14px;margin:12px 0}.photo-context h3{font-size:15px;color:#254838;margin:0 0 5px}.photo-context .field{margin-bottom:10px}.photo-context textarea{resize:vertical;min-height:76px}.meal-note{margin-top:5px;color:#567362;font-size:12px;line-height:1.4;white-space:pre-wrap;overflow-wrap:anywhere}

/* v1.5: gallery upload + optional free text only */
.photo-description{border:1px solid #dee9df;background:#f6faf6;border-radius:15px;padding:14px;margin:12px 0}.photo-description textarea{resize:vertical;min-height:110px}.gallery-only{width:100%;max-width:none;margin-top:8px}.meal-note{margin-top:5px;color:#567362;font-size:12px;line-height:1.4;white-space:pre-wrap;overflow-wrap:anywhere}
