@font-face{font-family:Geist;font-style:normal;font-weight:100 900;font-display:swap;src:url(../media/fef07dbb0973bf53-s.3p2_lha1f2xer.woff2)format("woff2");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Geist;font-style:normal;font-weight:100 900;font-display:swap;src:url(../media/8a480f0b521d4e75-s.1qq4vpdcun5oj.woff2)format("woff2");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Geist;font-style:normal;font-weight:100 900;font-display:swap;src:url(../media/53b9e256198e5412-s.390ncx5urfkfu.woff2)format("woff2");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Geist;font-style:normal;font-weight:100 900;font-display:swap;src:url(../media/7178b3e590c64307-s.21jp631_3pja2.woff2)format("woff2");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Geist;font-style:normal;font-weight:100 900;font-display:swap;src:url(../media/caa3a2e1cccd8315-s.p.0wgildi0cnwt9.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Geist Fallback;src:local(Arial);ascent-override:95.94%;descent-override:28.16%;line-gap-override:0.0%;size-adjust:104.76%}.geist_a71539c9-module__T19VSG__className{font-family:Geist,Geist Fallback;font-style:normal}.geist_a71539c9-module__T19VSG__variable{--font-geist-sans:"Geist", "Geist Fallback"}
@font-face{font-family:Geist Mono;font-style:normal;font-weight:100 900;font-display:swap;src:url(../media/5ce348bf30bf5439-s.31988l_ccedte.woff2)format("woff2");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Geist Mono;font-style:normal;font-weight:100 900;font-display:swap;src:url(../media/4fa387ec64143e14-s.2tuy5pz7dlieh.woff2)format("woff2");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Geist Mono;font-style:normal;font-weight:100 900;font-display:swap;src:url(../media/6306c77e7c8268e4-s.2dbetqa9o8jxf.woff2)format("woff2");unicode-range:U+2000-2001,U+2004-2008,U+200A,U+23B8-23BD,U+2500-259F}@font-face{font-family:Geist Mono;font-style:normal;font-weight:100 900;font-display:swap;src:url(../media/7d817b4c03b0c5f1-s.1uyisp29ctx0d.woff2)format("woff2");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Geist Mono;font-style:normal;font-weight:100 900;font-display:swap;src:url(../media/bbc41e54d2fcbd21-s.1rgnod-3esatf.woff2)format("woff2");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Geist Mono;font-style:normal;font-weight:100 900;font-display:swap;src:url(../media/797e433ab948586e-s.p.0r6juujl39pe6.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Geist Mono Fallback;src:local(Arial);ascent-override:74.67%;descent-override:21.92%;line-gap-override:0.0%;size-adjust:134.59%}.geist_mono_8d43a2aa-module__8Li5zG__className{font-family:Geist Mono,Geist Mono Fallback;font-style:normal}.geist_mono_8d43a2aa-module__8Li5zG__variable{--font-geist-mono:"Geist Mono", "Geist Mono Fallback"}
:root{--font-sans:var(--font-geist-sans), "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", sans-serif;--canvas:#f6f8fc;--surface:#fff;--surface-soft:#f0f4f8;--ink:#172033;--muted:#526071;--subtle:#6b7787;--line:#d9e1ea;--line-strong:#bdc8d5;--primary:#2563eb;--primary-soft:#e8f0ff;--wallet:#4f46e5;--wallet-soft:#eeedff;--diet:#0f766e;--diet-soft:#e6f5f3;--friends:#c2410c;--friends-soft:#fff1e8;--success:#15803d;--success-soft:#e9f7ee;--warning:#b45309;--warning-soft:#fff4e4;--danger:#b42318;--danger-soft:#fff0ef;--shadow-sm:0 1px 2px #1720330d, 0 8px 24px #1720330d;--shadow-lg:0 24px 64px #17203329}*{box-sizing:border-box}html{background:var(--canvas);--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}body{background:radial-gradient(circle at 88% -10%, #2563eb12, transparent 28rem), var(--canvas);color:var(--ink);font-family:var(--font-sans);-webkit-font-smoothing:antialiased;min-width:320px;min-height:100vh;margin:0;font-size:16px}main,section,article,header,footer,div,dl{min-width:0}a{color:inherit;text-decoration:none}button,input,select,textarea{color:inherit;font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.58}:focus-visible{outline-offset:3px;outline:3px solid #2563eb52}::selection{color:#102044;background:#cddfff}.page-wrap{width:100%;max-width:1280px;margin:0 auto;padding:42px 44px 72px}.page-header{justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:28px;display:flex}.page-header h1{letter-spacing:-.045em;margin:7px 0 10px;font-size:clamp(34px,4vw,48px);font-weight:780;line-height:1.08}.eyebrow{color:var(--subtle);letter-spacing:.1em;text-transform:uppercase;margin:0;font-size:13px;font-weight:760}.muted{color:var(--muted);margin:0;font-size:15px;line-height:1.65}.header-actions,.form-actions{flex:none;align-items:center;gap:10px;display:flex}.button{background:var(--surface);border:1px solid var(--line-strong);border-radius:11px;justify-content:center;align-items:center;gap:8px;min-height:46px;padding:0 17px;font-size:14px;font-weight:720;transition:border-color .18s,box-shadow .18s,transform .18s;display:inline-flex}.button:hover{border-color:#8ca0b5;transform:translateY(-1px);box-shadow:0 5px 14px #17203314}.button.primary{background:var(--primary);border-color:var(--primary);color:#fff}.button.primary:hover{background:#1d4ed8;border-color:#1d4ed8}.button.wide{width:100%}.button:disabled{box-shadow:none;transform:none}.section-heading{justify-content:space-between;align-items:flex-start;gap:16px;display:flex}.section-heading h2,.workspace-heading h2,.record-modal h2{letter-spacing:-.035em;margin:4px 0 0;font-size:24px;font-weight:770}.section-heading>span{color:var(--muted);font-size:14px;font-weight:650}.notice,.form-error{color:#174ea6;border:1px solid #a9c3f5;border-radius:11px;margin:0;padding:12px 15px;font-size:14px;line-height:1.5}.notice{background:#edf4ff}.form-error{background:var(--danger-soft);color:var(--danger);border-color:#f1b8b3}.empty,.chart-empty{color:var(--muted);text-align:center;font-size:14px;line-height:1.6}.empty.compact{margin:20px 0}.empty-state{text-align:center;flex-direction:column;align-items:center;padding:44px 24px;display:flex}.empty-state>i{background:var(--surface-soft);border-radius:15px;justify-content:center;align-items:center;width:52px;height:52px;font-size:18px;font-style:normal;font-weight:800;display:flex}.empty-state h3{margin:15px 0 6px;font-size:18px}.empty-state p{color:var(--muted);margin:0 0 18px;font-size:14px}.loading-state{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:28px;display:grid}.loading-state>span{background:linear-gradient(90deg,#edf1f5,#f7f9fb,#edf1f5);border-radius:11px;height:68px;animation:1.1s ease-in-out infinite alternate loading-pulse}.loading-state>span:nth-child(2){animation-delay:.15s}.loading-state>span:nth-child(3){animation-delay:.3s}.loading-state p{color:var(--muted);text-align:center;grid-column:1/-1;margin:4px 0 0;font-size:14px}.modal-backdrop{z-index:100;background:#0f172a8a;justify-content:center;align-items:center;padding:22px;display:flex;position:fixed;inset:0}.record-modal{background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow-lg);border-radius:18px;width:100%;max-width:720px;max-height:calc(100vh - 44px);padding:26px;overflow:auto}.record-modal.small{max-width:620px}.record-modal>header{border-bottom:1px solid var(--line);justify-content:space-between;align-items:flex-start;margin-bottom:20px;padding-bottom:17px;display:flex}.record-modal>header>button,.calendar-mobile-detail>header>button{background:var(--surface-soft);color:var(--muted);border:0;border-radius:9px;justify-content:center;align-items:center;width:40px;height:40px;font-size:22px;display:flex}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;display:grid}.field{color:#435165;flex-direction:column;gap:7px;font-size:13px;font-weight:680;display:flex}.field input,.field select,.field textarea,.nested-row input,.meal-editor input,.activity-editor input,.history-heading input{border:1px solid var(--line-strong);background:#fff;border-radius:10px;width:100%;min-height:46px;padding:10px 12px}.field textarea{resize:vertical;min-height:92px}.field input:focus,.field select:focus,.field textarea:focus,.nested-row input:focus,.meal-editor input:focus,.activity-editor input:focus,.history-heading input:focus{border-color:var(--primary);outline:0;box-shadow:0 0 0 3px #2563eb1f}.span-2{grid-column:span 2}.kind-picker,.filter-tabs{scrollbar-width:none;gap:6px;display:flex;overflow-x:auto}.kind-picker{background:var(--surface-soft);border-radius:12px;margin-bottom:20px;padding:5px}.kind-picker button,.filter-tabs button{color:var(--muted);white-space:nowrap;background:0 0;border:0;border-radius:9px;min-height:42px;padding:0 13px;font-size:14px;font-weight:700}.kind-picker button.active,.filter-tabs button.active{background:var(--surface);color:var(--ink);box-shadow:0 1px 4px #1720331a}.form-actions{border-top:1px solid var(--line);justify-content:flex-end;margin-top:22px;padding-top:18px}.nested-editor{background:var(--surface-soft);border-radius:12px;padding:15px}.nested-editor>div:first-child{justify-content:space-between;align-items:center;margin-bottom:10px;display:flex}.nested-editor>div:first-child button,.nested-row button{border:1px solid var(--line);background:#fff;border-radius:8px;min-height:38px;padding:0 11px}.nested-row{grid-template-columns:1fr 1fr auto;align-items:center;gap:8px;margin-top:8px;display:grid}.nested-row.participant{grid-template-columns:1fr 1fr auto auto}.nested-row label{align-items:center;gap:7px;font-size:14px;display:flex}.nested-row label input{width:auto;min-height:auto}.row-actions{justify-content:flex-end;align-items:center;gap:5px;display:flex}.row-actions button,.danger-link{background:0 0;border:0;border-radius:7px;min-height:38px;padding:0 9px;font-size:13px;font-weight:680}.row-actions button:hover{background:var(--surface-soft)}.danger-link{color:var(--danger)}.danger-link:hover{background:var(--danger-soft)}.error-card{background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow-sm);border-radius:18px;flex-direction:column;align-items:flex-start;max-width:580px;margin:12vh auto 0;padding:36px;display:flex}.error-card h1{letter-spacing:-.04em;margin:10px 0 12px;font-size:36px}.error-card p:not(.eyebrow){color:var(--muted);line-height:1.7}@keyframes loading-pulse{0%{opacity:.55}to{opacity:1}}@media (max-width:760px){body{padding-bottom:72px;font-size:16px}.page-wrap{max-width:100%;padding:24px 16px 40px;overflow:clip}.page-header{flex-direction:column;align-items:flex-start;gap:18px;margin-bottom:22px}.page-header h1{font-size:34px}.header-actions{width:100%}.header-actions .button{flex:1}.form-grid{grid-template-columns:1fr}.span-2{grid-column:span 1}.modal-backdrop{align-items:flex-end;padding:0}.record-modal{max-height:92vh;padding:22px 16px calc(22px + env(safe-area-inset-bottom));border-radius:20px 20px 0 0}.nested-row,.nested-row.participant{grid-template-columns:1fr}input,select,textarea{font-size:16px}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition:none!important}}
.shell{min-height:100vh}.sidebar{color:#fff;z-index:30;background:#172033;flex-direction:column;width:232px;height:100vh;padding:26px 18px 20px;display:flex;position:fixed;top:0;left:0}.brand{align-items:center;gap:12px;margin:0 8px 42px;display:flex}.brand-mark{background:var(--primary);color:#fff;border-radius:12px;flex:none;justify-content:center;align-items:center;width:42px;height:42px;font-size:20px;font-weight:820;display:inline-flex}.brand-mark.large{width:54px;height:54px;font-size:25px}.brand>span:last-child{flex-direction:column;gap:3px;display:flex}.brand b{letter-spacing:.08em;font-size:15px}.brand small,.sidebar-account small{color:#aeb9c9;font-size:13px}.side-nav{flex-direction:column;gap:7px;display:flex}.side-nav a{color:#c3ccda;border-radius:12px;align-items:center;gap:12px;min-height:50px;padding:7px 12px;font-size:15px;font-weight:690;display:flex}.side-nav a:hover{color:#fff;background:#ffffff12}.side-nav a.active{color:#172033;background:#fff}.side-nav i,.mobile-nav i{background:#ffffff17;border-radius:9px;flex:none;justify-content:center;align-items:center;width:34px;height:34px;display:flex}.side-nav a.active i{background:var(--primary-soft);color:var(--primary)}.sidebar-account{border-top:1px solid #ffffff21;grid-template-columns:auto 1fr;gap:10px;margin-top:auto;padding:18px 7px 0;display:grid}.sidebar-account>div{flex-direction:column;gap:2px;display:flex}.sidebar-account b{font-size:14px}.sidebar-account button{color:#c3ccda;background:0 0;border:0;grid-column:2;justify-self:start;align-items:center;gap:7px;min-height:32px;padding:0;font-size:13px;display:flex}.status-dot{color:var(--success);background:#dff7e7;border-radius:9px;justify-content:center;align-items:center;width:30px;height:30px;display:flex}.shell-content{min-width:0;min-height:100vh;margin-left:232px}.mobile-nav{display:none}.dashboard-header{margin-bottom:20px}.dashboard-header h1{font-size:clamp(36px,4vw,46px)}.quick-actions{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px;display:grid}.quick-actions>a{background:var(--surface);border:1px solid var(--line);border-radius:14px;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;min-height:82px;padding:15px;transition:border-color .18s,box-shadow .18s,transform .18s;display:grid}.quick-actions>a:hover{box-shadow:var(--shadow-sm);border-color:#9eb1c6;transform:translateY(-1px)}.quick-actions i{background:var(--primary-soft);color:var(--primary);border-radius:11px;justify-content:center;align-items:center;width:42px;height:42px;display:flex}.quick-actions span{flex-direction:column;gap:4px;display:flex}.quick-actions b{font-size:15px}.quick-actions small{color:var(--muted);font-size:13px}.hero-metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px;display:grid}.metric-card{background:var(--surface);border:1px solid var(--line);border-radius:15px;flex-direction:column;min-height:150px;padding:18px;display:flex}.metric-top{align-items:center;gap:9px;display:flex}.metric-top i{background:var(--surface-soft);border-radius:9px;justify-content:center;align-items:center;width:34px;height:34px;display:flex}.wallet-accent .metric-top i{background:var(--wallet-soft);color:var(--wallet)}.receivable-accent .metric-top i{background:var(--primary-soft);color:var(--primary)}.diet-accent .metric-top i{background:var(--diet-soft);color:var(--diet)}.protein-accent .metric-top i{background:var(--success-soft);color:var(--success)}.metric-card span{color:#435165;font-size:14px;font-weight:700}.metric-card strong{letter-spacing:-.035em;overflow-wrap:anywhere;margin:auto 0 7px;font-size:clamp(24px,2.2vw,31px);font-weight:790}.metric-card small{color:var(--muted);font-size:13px;line-height:1.45}.dashboard-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:16px;display:grid}.feature-card,.recent-panel{background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow-sm);border-radius:16px}.feature-card{gap:18px;min-height:255px;padding:25px;display:grid;position:relative;overflow:hidden}.wallet-feature{border-top:3px solid var(--wallet)}.diet-feature{border-top:3px solid var(--diet)}.friends-feature{border-top:3px solid var(--friends)}.feature-card h2{letter-spacing:-.04em;align-items:baseline;gap:9px;margin:6px 0 8px;font-size:31px;display:flex}.feature-card h2 span{color:var(--muted);letter-spacing:0;font-size:14px;font-weight:650}.feature-card p:not(.eyebrow){color:var(--muted);margin:0;font-size:14px}.feature-card dl{grid-template-columns:repeat(2,1fr);gap:10px;margin:0;display:grid}.feature-card dl div{background:var(--surface-soft);border-radius:10px;padding:12px}.feature-card dt{color:var(--muted);font-size:13px}.feature-card dd{margin:7px 0 0;font-size:20px;font-weight:780}.feature-card>a{color:var(--primary);font-size:14px;font-weight:750}.recent-panel{padding:24px 27px}.recent-list{margin-top:12px;display:grid}.recent-list>div{border-top:1px solid var(--line);grid-template-columns:74px 1fr;align-items:center;gap:12px;padding:13px 0;display:grid}.recent-list i{background:var(--surface-soft);color:var(--muted);text-align:center;border-radius:7px;padding:6px 8px;font-size:13px;font-style:normal;font-weight:760}.recent-list span{flex-direction:column;gap:4px;display:flex}.recent-list b{font-size:14px}.recent-list small{color:var(--muted);font-size:13px}@media (max-width:1020px){.page-wrap{padding:34px 28px 64px}.hero-metrics,.quick-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-grid{grid-template-columns:1fr}}@media (max-width:760px){.sidebar{display:none}.shell-content{margin-left:0}.mobile-nav{color:#fff;padding:7px max(8px, env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));z-index:80;background:#172033f7;grid-template-columns:repeat(4,minmax(0,1fr));display:grid;position:fixed;bottom:0;left:0;right:0}.mobile-nav a{color:#aeb9c9;flex-direction:column;align-items:center;gap:3px;min-height:52px;font-size:13px;font-weight:680;display:flex}.mobile-nav a.active{color:#fff}.mobile-nav a.active i{background:var(--primary)}.mobile-nav i{width:34px;height:30px}.quick-actions{grid-template-columns:1fr}.quick-actions>a{min-height:74px}.hero-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.metric-card{min-height:145px;padding:15px}.metric-card strong{font-size:22px}.dashboard-grid{grid-template-columns:1fr}}
.wallet-page{gap:16px;min-width:0;display:grid}.wallet-page .page-header{margin-bottom:2px}.wallet-month-summary,.wallet-category-analysis,.wallet-calendar-panel,.wallet-month-comparison,.wallet-overview,.record-panel,.wallet-settlements{background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow-sm);border-radius:16px;min-width:0}.wallet-category-analysis{padding:22px 24px 18px;overflow:hidden}.category-analysis-heading{justify-content:space-between;align-items:flex-end;gap:20px;display:flex}.category-analysis-heading h2{letter-spacing:-.035em;margin:4px 0 7px;font-size:26px}.category-analysis-heading p:last-child,.category-analysis-help{color:var(--muted);margin:0;font-size:13px}.category-payer-filter{background:var(--surface-soft);border-radius:10px;gap:3px;padding:4px;display:flex}.category-payer-filter button{color:var(--muted);background:0 0;border:0;border-radius:7px;min-height:38px;padding:0 12px;font-size:13px;font-weight:700}.category-payer-filter button.active{color:#332a9b;background:#fff;box-shadow:0 1px 3px #17203314}.category-spend-list{border-top:1px solid var(--line);margin-top:18px}.category-spend-list>article{border-bottom:1px solid var(--line)}.category-spend-row{text-align:left;background:0 0;border:0;grid-template-columns:minmax(120px,.7fr) minmax(160px,1.5fr) minmax(100px,auto) 20px;align-items:center;gap:14px;width:100%;min-height:74px;padding:12px 4px;display:grid}.category-spend-row:hover{background:#fafbfe}.category-spend-label{flex-direction:column;gap:4px;display:flex}.category-spend-label b{font-size:15px}.category-spend-label small{color:var(--muted);font-size:13px}.category-spend-bar{background:#eceef3;border-radius:99px;height:10px;overflow:hidden}.category-spend-bar i{background:linear-gradient(90deg, #7770e8, var(--wallet));border-radius:inherit;min-width:3px;height:100%;display:block}.category-spend-row>strong{text-align:right;font-size:16px}.category-spend-row>svg{color:var(--muted);transition:transform .18s}.category-spend-row[aria-expanded=true]>svg{transform:rotate(180deg)}.category-entry-list{background:var(--surface-soft);border-radius:11px;gap:2px;margin:0 0 13px;padding:7px;display:grid}.category-entry-list>button{text-align:left;background:0 0;border:0;border-radius:8px;justify-content:space-between;align-items:center;gap:14px;min-height:55px;padding:9px 11px;display:flex}.category-entry-list>button:hover{background:#fff}.category-entry-list span{flex-direction:column;gap:4px;display:flex}.category-entry-list b,.category-entry-list strong{font-size:14px}.category-entry-list small{color:var(--muted);font-size:13px}.category-analysis-help{padding-top:13px;line-height:1.55}.wallet-month-summary{grid-template-columns:minmax(230px,1.1fr) minmax(340px,1.55fr) minmax(190px,.85fr);gap:12px;padding:14px;display:grid}.wallet-balance-card,.next-payment-card{border-radius:13px;flex-direction:column;justify-content:center;min-height:150px;padding:20px;display:flex}.wallet-balance-card{border:1px solid #d7d4ff;border-top:4px solid var(--wallet);background:linear-gradient(145deg,#eeedff,#f7f7ff)}.wallet-balance-card span,.next-payment-card span{color:var(--muted);font-size:14px;font-weight:690}.wallet-balance-card strong{color:#29217b;letter-spacing:-.045em;overflow-wrap:anywhere;margin:13px 0 5px;font-size:clamp(29px,3vw,39px);font-weight:800}.wallet-balance-card small,.next-payment-card small{color:var(--muted);font-size:13px}.wallet-month-summary>dl{grid-template-columns:repeat(2,minmax(0,1fr));margin:0;display:grid}.wallet-month-summary>dl div{flex-direction:column;justify-content:center;gap:7px;padding:15px 18px;display:flex}.wallet-month-summary>dl div:nth-child(odd){border-right:1px solid var(--line)}.wallet-month-summary>dl div:nth-child(-n+2){border-bottom:1px solid var(--line)}.wallet-month-summary dt{color:var(--muted);font-size:13px}.wallet-month-summary dd{color:var(--ink);overflow-wrap:anywhere;margin:0;font-size:20px;font-weight:780}.wallet-month-summary dd.positive{color:var(--success)}.wallet-month-summary dd.coral-text{color:var(--primary)}.next-payment-card{background:var(--surface-soft);border:1px solid var(--line)}.next-payment-card b{margin-top:14px;font-size:16px}.next-payment-card strong{margin:6px 0;font-size:21px}.wallet-calendar-panel{padding:24px}.wallet-section-heading,.workspace-heading{justify-content:space-between;align-items:flex-end;gap:18px;display:flex}.wallet-section-heading h2,.workspace-heading h2{letter-spacing:-.035em;margin:4px 0 0;font-size:26px;font-weight:780}.calendar-controls{background:var(--surface-soft);border-radius:10px;gap:3px;padding:4px;display:flex}.calendar-controls button{background:0 0;border:0;border-radius:7px;justify-content:center;align-items:center;min-width:40px;min-height:38px;font-size:14px;font-weight:700;display:flex}.calendar-controls button:nth-child(2){background:#fff;padding:0 13px;box-shadow:0 1px 3px #17203314}.wallet-calendar-scroll{min-width:0;max-width:100%;overflow:hidden}.wallet-calendar-grid{grid-template-columns:repeat(7,minmax(0,1fr));width:100%;min-width:0;margin-top:19px;display:grid}.calendar-weekday{color:var(--muted);text-align:center;padding:7px 4px 11px;font-size:13px}.calendar-weekday:first-child{color:var(--danger)}.calendar-cell{border:0;border-left:1px solid var(--line);border-top:1px solid var(--line);color:var(--ink);text-align:left;background:#fff;grid-template-rows:auto 1fr auto;gap:5px;min-height:91px;padding:9px;display:grid}.calendar-cell:nth-child(7n+7){border-right:1px solid var(--line)}.calendar-cell.blank{background:#f8fafc}.calendar-cell:not(.blank):hover{background:#f7f9ff}.calendar-cell.today{box-shadow:inset 0 0 0 2px var(--wallet);z-index:1;position:relative}.calendar-cell[aria-expanded=true]{background:var(--wallet-soft)}.calendar-cell>span{font-size:14px;font-weight:770}.calendar-chip-list{flex-wrap:wrap;align-content:flex-start;align-items:center;gap:4px;display:flex}.calendar-chip-list small{color:var(--muted);font-size:11px;font-weight:700}.calendar-cell>strong{justify-self:end;font-size:13px}.calendar-chip{background:var(--surface-soft);color:var(--muted);text-overflow:ellipsis;white-space:nowrap;border:1px solid #0000;border-radius:99px;max-width:100%;padding:2px 6px;font-size:10px;font-style:normal;font-weight:720;line-height:1.4;display:inline-block;overflow:hidden}.calendar-chip.tone-expense{color:#ad3f3f;background:#fff1f1;border-color:#ffd8d8}.calendar-chip.tone-income{background:var(--success-soft);color:var(--success)}.calendar-chip.tone-settlement{background:var(--wallet-soft);color:#332a9b}.calendar-chip.tone-loan{background:var(--warning-soft);color:var(--warning)}.calendar-chip.tone-debt{background:var(--primary-soft);color:var(--primary)}.calendar-help{color:var(--muted);margin:13px 0 0;font-size:13px;line-height:1.55}.calendar-mobile-detail{display:none}.wallet-month-comparison,.wallet-overview,.wallet-settlements{overflow:hidden}.disclosure-toggle{text-align:left;background:0 0;border:0;justify-content:space-between;align-items:center;gap:16px;width:100%;min-height:104px;padding:19px 24px;display:flex}.disclosure-toggle>span{flex-direction:column;gap:4px;display:flex}.disclosure-toggle>span>b{letter-spacing:-.03em;font-size:22px}.disclosure-toggle small{color:var(--muted);font-size:14px}.disclosure-toggle>svg{color:var(--muted);flex:none;transition:transform .18s}.disclosure-toggle[aria-expanded=true]>svg{transform:rotate(180deg)}.disclosure-toggle:hover{background:#fafbfe}.disclosure-content{border-top:1px solid var(--line);padding:22px 24px 24px}.comparison-legend{justify-content:flex-end;gap:18px;display:flex}.comparison-legend span{align-items:center;gap:7px;font-size:13px;display:flex}.comparison-legend span:before{background:var(--success);content:"";border-radius:3px;width:9px;height:9px}.comparison-legend span:last-child:before{background:var(--danger)}.comparison-cards{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:17px 0;display:grid}.comparison-cards article{background:var(--surface-soft);border-radius:11px;flex-direction:column;gap:8px;min-height:116px;padding:15px;display:flex}.comparison-cards span,.comparison-cards small{color:var(--muted);font-size:13px}.comparison-cards strong{overflow-wrap:anywhere;margin-top:auto;font-size:18px}.wallet-flow-chart{width:100%;overflow:hidden}.wallet-flow-chart svg{width:100%;height:auto;display:block}.chart-grid-line line{stroke:#d9e1ea;stroke-dasharray:4 5}.chart-grid-line text{fill:var(--muted);text-anchor:end;font-size:13px}.chart-income{fill:var(--success)}.chart-spend{fill:var(--danger)}.chart-x-label{fill:var(--muted);text-anchor:middle;font-size:13px}.wallet-overview-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;display:grid}.wallet-overview-grid>article{border:1px solid var(--line);border-radius:13px;min-height:184px;padding:17px}.overview-title{align-items:center;gap:11px;display:flex}.overview-title>i{background:var(--wallet-soft);color:var(--wallet);border-radius:9px;flex:none;justify-content:center;align-items:center;width:38px;height:38px;display:flex}.overview-title span{flex-direction:column;gap:3px;display:flex}.overview-title small,.wallet-overview-grid>article>p{color:var(--muted);font-size:13px}.wallet-overview-grid>article>strong{flex-direction:column;gap:5px;margin-top:22px;font-size:22px;display:flex}.wallet-overview-grid>article>strong small{color:var(--muted);font-size:13px}.overview-mini-list{gap:8px;margin-top:18px;display:grid}.overview-mini-list span{justify-content:space-between;font-size:14px;display:flex}.overview-mini-list em{color:var(--primary);font-style:normal;font-weight:740}.record-panel{overflow:hidden}.filter-tabs{border-bottom:1px solid var(--line);padding:12px 16px}.filter-tabs button.active{background:var(--wallet);color:#fff}.filter-tabs b{background:#17203312;border-radius:99px;margin-left:7px;padding:3px 7px;font-size:13px}.filter-tabs button.active b{background:#ffffff2e}.workspace-heading{padding:20px 22px 12px}.payer-filter,.settlement-filter{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.payer-filter{border-bottom:1px solid var(--line);padding:4px 22px 15px}.payer-filter span{color:var(--muted);margin-right:3px;font-size:13px}.payer-filter button,.settlement-filter button{background:var(--surface-soft);color:var(--muted);border:1px solid #0000;border-radius:8px;min-height:38px;padding:0 11px;font-size:13px;font-weight:690}.payer-filter button.active,.settlement-filter button.active{background:var(--wallet-soft);color:#332a9b;border-color:#c7c3ff}.wallet-workspace>.notice{margin:12px 22px 0}.wallet-list{padding:0 22px 18px}.wallet-pagination{border-top:1px solid var(--line);justify-content:space-between;align-items:center;gap:16px;min-height:68px;padding:11px 22px;display:flex}.wallet-pagination>span{color:var(--muted);font-size:13px}.wallet-pagination nav{gap:5px;display:flex}.wallet-pagination button{background:var(--surface-soft);color:var(--muted);border:1px solid #0000;border-radius:8px;justify-content:center;align-items:center;min-width:38px;height:38px;padding:0 8px;font-size:13px;font-weight:720;display:flex}.wallet-pagination button:hover:not(:disabled){color:#332a9b;border-color:#c7c3ff}.wallet-pagination button[aria-current=page]{background:var(--wallet);color:#fff}.wallet-pagination button:disabled{cursor:not-allowed;opacity:.45}.wallet-row{border-bottom:1px solid var(--line);grid-template-columns:88px minmax(0,1fr) auto auto;align-items:center;gap:12px 16px;min-height:84px;padding:14px 2px;display:grid}.record-kind{background:var(--surface-soft);color:var(--muted);text-align:center;border-radius:8px;padding:8px;font-size:13px;font-weight:720}.kind-income .record-kind{background:var(--success-soft);color:var(--success)}.kind-loan .record-kind{background:var(--warning-soft);color:var(--warning)}.kind-debt .record-kind{background:var(--primary-soft);color:var(--primary)}.record-main h3{margin:0 0 5px;font-size:15px}.record-main p{color:var(--muted);margin:0;font-size:13px;line-height:1.5}.row-amount{text-align:right;font-size:17px;font-weight:780}.kind-income .row-amount{color:var(--success)}.wallet-row progress{accent-color:var(--wallet);grid-column:2/4;width:100%;height:7px}.settlement-action-row{justify-content:space-between;align-items:center;gap:18px;display:flex}.settlement-action-row p{color:var(--muted);margin:0;font-size:14px}.settlement-summary{background:var(--wallet-soft);color:#332a9b;border-radius:11px;justify-content:space-between;align-items:center;margin:17px 0 11px;padding:14px 16px;display:flex}.settlement-summary span{font-size:14px}.settlement-filter{margin:11px 0}.settlement-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.settlement-cards>article{border:1px solid var(--line);border-radius:13px;padding:17px}.settlement-cards article>header{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.settlement-cards h3{margin:5px 0 0;font-size:17px}.settlement-cards header span{color:var(--muted);font-size:13px}.settlement-cards progress{accent-color:var(--wallet);width:100%;margin:18px 0 14px}.settlement-cards dl{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0;display:grid}.settlement-cards dl div{background:var(--surface-soft);border-radius:8px;padding:10px}.settlement-cards dt{color:var(--muted);font-size:13px}.settlement-cards dd{margin:5px 0 0;font-size:14px;font-weight:740}.calendar-popover{border:1px solid var(--line-strong);box-shadow:var(--shadow-lg);z-index:90;background:#fff;border-radius:14px;width:min(350px,100vw - 24px);position:fixed}.calendar-popover.placement-top{transform:translate(-50%,-100%)}.calendar-popover.placement-bottom{transform:translate(-50%)}.calendar-popover:after{content:"";background:#fff;width:12px;height:12px;position:absolute;left:calc(50% - 6px);transform:rotate(45deg)}.calendar-popover.placement-top:after{border-bottom:1px solid var(--line-strong);border-right:1px solid var(--line-strong);bottom:-7px}.calendar-popover.placement-bottom:after{border-left:1px solid var(--line-strong);border-top:1px solid var(--line-strong);top:-7px}.calendar-popover>header,.calendar-mobile-detail>header{border-bottom:1px solid var(--line);justify-content:space-between;align-items:flex-start;padding:16px;display:flex}.calendar-popover h2,.calendar-mobile-detail h3{margin:4px 0 0;font-size:18px}.calendar-popover>header>button{background:var(--surface-soft);color:var(--muted);border:0;border-radius:8px;justify-content:center;align-items:center;width:36px;height:36px;font-size:20px;display:flex}.calendar-detail-list{gap:7px;max-height:270px;padding:11px;display:grid;overflow:auto}.calendar-detail-list>button{background:var(--surface-soft);text-align:left;border:0;border-radius:9px;justify-content:space-between;align-items:center;gap:10px;min-height:54px;padding:11px;display:flex}.calendar-detail-list>button:hover{background:var(--wallet-soft)}.calendar-detail-list span{flex-direction:column;gap:3px;font-size:14px;display:flex}.calendar-detail-list span b{color:var(--muted);font-size:13px}.calendar-popover>footer{border-top:1px solid var(--line);padding:11px}.calendar-popover>footer .button{width:100%}@media (max-width:1200px){.wallet-month-summary{grid-template-columns:1fr 1.4fr}.next-payment-card{grid-column:1/-1;min-height:110px}.comparison-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.wallet-overview-grid{grid-template-columns:1fr}}@media (max-width:760px){.wallet-page{gap:12px;width:100%;max-width:100%;overflow:clip}.wallet-page .page-header .button{width:100%}.wallet-month-summary{grid-template-columns:minmax(0,1fr);width:100%;padding:10px}.wallet-category-analysis{padding:17px 13px 14px}.category-analysis-heading{flex-direction:column;align-items:stretch;gap:13px}.category-analysis-heading h2{font-size:22px}.category-payer-filter{align-self:stretch}.category-payer-filter button{flex:1}.category-spend-list{margin-top:14px}.category-spend-row{grid-template-columns:minmax(0,1fr) auto 18px;gap:6px 10px;min-height:72px}.category-spend-bar{grid-area:2/1/auto/4;height:7px}.category-spend-row>strong{font-size:15px}.category-entry-list>button{align-items:flex-start}.category-entry-list strong{flex:none}.wallet-balance-card{min-height:132px}.wallet-balance-card strong{font-size:29px}.wallet-month-summary>dl{grid-template-columns:repeat(2,minmax(0,1fr))}.wallet-month-summary>dl div{padding:14px 10px}.wallet-month-summary dd{font-size:17px}.next-payment-card{grid-column:auto;min-height:104px}.wallet-calendar-panel{padding:17px 12px;overflow:hidden}.wallet-section-heading,.workspace-heading{flex-direction:column;align-items:flex-start}.calendar-controls{justify-content:space-between;align-self:stretch}.wallet-calendar-grid{margin-top:13px}.calendar-weekday{padding:6px 1px 8px;font-size:13px}.calendar-cell{align-content:space-between;gap:3px;min-height:57px;padding:6px 4px}.calendar-cell>span{font-size:13px}.calendar-chip-list{gap:2px}.calendar-chip-list small{font-size:9px}.calendar-cell>strong{display:none}.calendar-chip{padding:1px 4px;font-size:9px}.calendar-popover{display:none}.calendar-mobile-detail{background:#fafbff;border:1px solid #d7d4ff;border-radius:12px;margin-top:14px;padding:0 0 11px;display:block}.calendar-mobile-detail>header{padding:13px}.calendar-mobile-detail>.button{width:calc(100% - 22px);margin:0 11px}.disclosure-toggle{min-height:96px;padding:17px}.disclosure-toggle>span>b{font-size:20px}.disclosure-content{padding:17px 13px}.comparison-cards,.settlement-cards{grid-template-columns:1fr}.wallet-flow-chart{overflow:hidden}.wallet-flow-chart svg{min-width:0}.filter-tabs{flex-wrap:wrap;padding:10px;overflow:visible}.filter-tabs button{flex:calc(33.333% - 6px);padding-inline:8px}.workspace-heading{padding:17px 14px 11px}.workspace-heading>.button{width:100%}.payer-filter{padding:4px 14px 13px}.wallet-workspace>.notice{margin:11px 14px 0}.wallet-list{padding:0 14px 14px}.wallet-pagination{flex-direction:column;align-items:stretch;padding:13px 14px 15px}.wallet-pagination nav{justify-content:center}.wallet-pagination button{flex:1;max-width:44px}.wallet-row{grid-template-columns:75px minmax(0,1fr) auto;gap:9px 10px;padding:14px 0}.row-amount{font-size:15px}.wallet-row .row-actions,.wallet-row progress{grid-column:2/4}.settlement-action-row{flex-direction:column;align-items:stretch}.settlement-action-row .button{width:100%}}
.restored-diet{gap:16px;min-width:0;display:grid}.restored-diet .page-header{margin-bottom:0}.diet-view-tabs{z-index:20;background:#e9eef4;border-radius:12px;grid-template-columns:repeat(3,minmax(0,1fr));align-items:center;gap:4px;width:min(360px,100%);padding:4px;display:grid}.diet-view-tabs button{color:var(--muted);background:0 0;border:0;border-radius:9px;min-height:42px;padding:0 13px;font-size:14px;font-weight:720}.diet-view-tabs button.active{background:var(--surface);color:var(--diet);box-shadow:0 1px 4px #1720331f}.diet-today-view{gap:14px;display:grid}.diet-profile-line,.energy-equation-card,.editor-card,.routine-card,.diet-progress-view,.diet-history-view,.daily-note-card{background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow-sm);border-radius:16px}.diet-profile-line{justify-content:space-between;align-items:center;padding:20px 23px;display:flex}.diet-profile-line h2{letter-spacing:-.035em;margin:4px 0 0;font-size:24px}.diet-profile-line>p{color:var(--muted);margin:0;font-size:14px}.diet-metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;display:grid}.diet-metrics article{background:var(--surface);border:1px solid var(--line);border-radius:14px;flex-direction:column;gap:7px;min-height:145px;padding:17px;display:flex}.diet-metrics article:before{background:var(--line-strong);content:"";border-radius:99px;width:32px;height:4px}.diet-metrics .calorie-metric:before{background:var(--warning)}.diet-metrics .burned-metric:before{background:var(--primary)}.diet-metrics .energy-metric:before{background:var(--ink)}.diet-metrics .protein-metric:before{background:var(--diet)}.diet-metrics span{color:#435165;font-size:14px;font-weight:700}.diet-metrics article>div{align-items:baseline;gap:5px;margin-top:auto;display:flex}.diet-metrics strong{letter-spacing:-.035em;font-size:27px;font-weight:790}.diet-metrics small,.diet-metrics p{color:var(--muted);font-size:13px}.diet-metrics p{margin:0}.diet-metrics progress{accent-color:var(--diet);border:0;width:100%;height:6px;margin-top:2px}.energy-equation-card{overflow:hidden}.energy-equation-card>summary{cursor:pointer;justify-content:space-between;align-items:center;min-height:96px;padding:18px 22px;list-style:none;display:flex}.energy-equation-card>summary::-webkit-details-marker{display:none}.energy-equation-card>summary>span:first-child{flex-direction:column;gap:4px;display:flex}.energy-equation-card>summary>span:first-child>b{font-size:22px}.energy-equation-card>summary>span:first-child>small{color:var(--muted);font-size:14px}.energy-total-preview{align-items:baseline;gap:5px;display:flex}.energy-total-preview>b{font-size:22px}.energy-total-preview>small{color:var(--muted);font-size:13px}.energy-total-preview>svg{color:var(--muted);margin-left:8px;transition:transform .18s}.energy-equation-card[open] .energy-total-preview>svg{transform:rotate(180deg)}.energy-equation-content{border-top:1px solid var(--line);padding:20px 22px}.energy-equation-formula{grid-template-columns:1fr auto 1fr auto 1fr auto 1.12fr;align-items:center;gap:9px;display:grid}.energy-equation-formula article{background:var(--surface-soft);border-radius:11px;flex-direction:column;min-height:112px;padding:14px;display:flex}.energy-equation-formula article.total{background:var(--diet);color:#fff}.energy-equation-formula span,.energy-equation-formula small{color:var(--muted);font-size:13px}.energy-equation-formula article.total span,.energy-equation-formula article.total small{color:#d8f6f2}.energy-equation-formula strong{margin:auto 0 5px;font-size:22px}.energy-equation-formula>i{color:var(--muted);font-size:18px;font-style:normal;font-weight:760}.energy-equation-content>p,.routine-intro{color:var(--muted);margin:14px 0 0;font-size:13px;line-height:1.6}.diet-today-grid,.diet-editor-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;display:grid}.editor-card,.daily-note-card{padding:20px}.diet-record-list{margin-top:12px;display:grid}.activity-records,.history-running-grid{gap:12px;margin-top:14px;display:grid}.running-card{background:radial-gradient(circle at 100% 0,#279a8e29,#0000 42%),linear-gradient(145deg,#f7fffd 0%,#f7fafc 72%);border:1px solid #b8ddd8;border-radius:15px;padding:17px;overflow:hidden;box-shadow:0 10px 28px #0f605714}.running-card>header,.running-card-title,.running-card-title>span:last-child{align-items:center;display:flex}.running-card>header{justify-content:space-between;gap:12px}.running-card-title{gap:10px;min-width:0}.running-icon{background:var(--diet);color:#fff;border-radius:10px;flex:0 0 38px;justify-content:center;align-items:center;height:38px;display:flex}.running-card-title>span:last-child{flex-direction:column;align-items:flex-start;gap:3px;min-width:0}.running-card-title small{color:var(--muted);font-size:12px}.running-card-title b{font-size:15px}.running-estimated{color:#8a6112;background:#fff7dd;border-radius:99px;padding:6px 9px;font-size:12px;font-weight:700}.running-hero{grid-template-columns:1fr 1px 1fr;align-items:stretch;gap:16px;margin:20px 0 15px;display:grid}.running-hero>div{align-items:baseline;gap:5px;display:flex}.running-hero strong{color:#0a4f49;letter-spacing:-.055em;font-size:clamp(27px,3vw,38px);font-weight:810}.running-hero span{color:#3f6e69;font-size:13px;font-weight:720}.running-hero>i{background:#cce5e2;width:1px}.running-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:0;display:grid}.running-metrics>div{background:#ffffffc2;border:1px solid #bddad6bf;border-radius:9px;min-width:0;padding:9px 10px}.running-metrics dt{color:var(--muted);font-size:11px}.running-metrics dd{color:#244c48;margin:4px 0 0;font-size:13px;font-weight:750}.running-splits{border-top:1px solid #cce5e2;margin-top:13px;padding-top:11px}.running-splits>summary,.running-editor-details>summary{color:#17685f;cursor:pointer;justify-content:space-between;align-items:center;font-size:13px;font-weight:730;list-style:none;display:flex}.running-splits>summary::-webkit-details-marker{display:none}.running-editor-details>summary::-webkit-details-marker{display:none}.running-splits[open]>summary svg,.running-editor-details[open]>summary svg{transform:rotate(180deg)}.running-split-table{margin-top:10px;display:grid}.running-split-table>div{grid-template-columns:.75fr 1fr .75fr .7fr;gap:8px;padding:8px 3px;font-size:12px;display:grid}.running-split-table>div+div{border-top:1px solid #dbe8e6}.running-split-table>div:first-child{color:var(--muted);font-size:11px;font-weight:670}.running-split-table strong{color:#0a5b52}.diet-record-list>div{border-top:1px solid var(--line);justify-content:space-between;align-items:center;gap:14px;min-height:64px;padding:12px 2px;display:flex}.diet-record-list span{flex-direction:column;gap:4px;display:flex}.diet-record-list b{font-size:14px}.diet-record-list small{color:var(--muted);font-size:13px}.diet-record-list strong{text-align:right;font-size:14px}.routine-card{padding:22px}.routine-tabs{grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;margin:20px 0;display:grid}.routine-tabs button{background:var(--surface-soft);border:1px solid #0000;border-radius:10px;flex-direction:column;gap:3px;min-height:60px;padding:9px;display:flex}.routine-tabs button.active{background:var(--diet);color:#fff}.routine-tabs b{font-size:16px}.routine-tabs span{font-size:13px}.exercise-browser{grid-template-columns:minmax(220px,.72fr) minmax(0,1.5fr);gap:16px;display:grid}.exercise-menu{align-content:start;gap:6px;display:grid}.exercise-menu button{background:var(--surface-soft);text-align:left;border:1px solid #0000;border-radius:10px;grid-template-columns:30px 1fr;align-items:center;gap:3px 10px;min-height:66px;padding:10px;display:grid}.exercise-menu button.active{background:var(--diet-soft);color:#09564f;border-color:#a6d9d3}.exercise-menu button>span{color:var(--diet);grid-row:1/3;font-size:13px;font-weight:780}.exercise-menu button small{color:var(--muted);font-size:13px}.exercise-detail{border:1px solid var(--line);background:#f8fafc;border-radius:13px;padding:19px}.exercise-detail>header{justify-content:space-between;align-items:flex-start;gap:14px;display:flex}.exercise-detail h3{letter-spacing:-.03em;margin:4px 0 0;font-size:22px}.exercise-detail>header>span{background:var(--diet-soft);color:#09564f;border-radius:99px;padding:8px 11px;font-size:13px;font-weight:710}.muscle-map{justify-content:center;gap:20px;max-width:520px;margin:18px auto 10px;display:flex}.muscle-figure{text-align:center;width:46%;max-width:190px;margin:0}.muscle-figure svg{width:100%;max-width:160px;height:300px;margin:auto;display:block}.body-outline{fill:#e7ecf2;stroke:#8492a4;stroke-width:1.3px}.body-guide{fill:none;opacity:.45;stroke:#9eabba;stroke-width:.8px}.muscle-zone{fill:#dce3eb;stroke:#7d8998;stroke-width:.85px}.muscle-zone.primary{fill:var(--primary);stroke:#1648b5}.muscle-zone.secondary{fill:#93c5fd;stroke:#3b82f6}.muscle-figure figcaption{color:var(--muted);font-size:13px;font-weight:680}.muscle-legend{flex-wrap:wrap;justify-content:center;gap:13px;margin:4px 0 17px;display:flex}.muscle-legend span{color:var(--muted);align-items:center;gap:6px;font-size:13px;display:flex}.muscle-legend i{background:#dce3eb;border:1px solid #7d8998;border-radius:3px;width:10px;height:10px}.muscle-legend i.primary{background:var(--primary);border-color:#1648b5}.muscle-legend i.secondary{background:#93c5fd;border-color:#3b82f6}.exercise-detail dl{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0;display:grid}.exercise-detail dl div{border:1px solid var(--line);background:#fff;border-radius:9px;padding:11px}.exercise-detail dt{color:var(--muted);font-size:13px}.exercise-detail dd{margin:5px 0 0;font-size:14px;font-weight:720;line-height:1.45}.exercise-detail ul{color:#435165;padding-left:20px;font-size:14px;line-height:1.8}.exercise-detail>p{color:var(--muted);font-size:13px}.diet-progress-view,.diet-history-view{padding:23px}.progress-intro h2,.history-heading h2{letter-spacing:-.035em;margin:5px 0 6px;font-size:27px}.progress-intro>p:last-child{color:var(--muted);margin:0;font-size:14px}.restored-progress{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:18px;display:grid}.running-progress-panel{box-shadow:var(--shadow-sm);background:linear-gradient(145deg,#f4fffd 0%,#fff 58%);border:1px solid #b8ddd8;border-radius:16px;margin-top:18px;padding:20px}.running-progress-heading{justify-content:space-between;align-items:flex-start;gap:14px;display:flex}.running-progress-heading h2{margin:4px 0 5px;font-size:24px}.running-progress-heading p:last-child{color:var(--muted);margin:0;font-size:13px}.running-progress-heading>strong{color:#09564f;letter-spacing:-.04em;font-size:24px}.running-progress-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:17px;display:grid}.running-progress-stats>div{background:#fff;border:1px solid #d4e6e3;border-radius:10px;flex-direction:column;gap:6px;min-height:76px;padding:11px;display:flex}.running-progress-stats span{color:var(--muted);font-size:12px}.running-progress-stats strong{font-size:15px}.running-progress-stats small{color:var(--muted);font-size:11px}.running-progress-stats .positive{color:#087a61}.running-progress-stats .negative{color:var(--danger)}.running-chart-card{border:1px solid var(--line);background:#fff;border-radius:12px;margin-top:10px;padding:15px 15px 5px}.running-chart-card>div:first-child{justify-content:space-between;align-items:center;display:flex}.running-chart-card>div:first-child b{font-size:14px}.running-chart-card>div:first-child span{color:var(--muted);font-size:12px}.recent-runs{margin-top:20px}.recent-run-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px;display:grid}.running-card.compact:last-child:nth-child(odd){grid-column:1/-1}.secondary-progress{grid-template-columns:repeat(2,minmax(0,1fr))}.progress-card{border:1px solid var(--line);border-radius:13px;min-height:380px;padding:18px}.progress-card header{justify-content:space-between;align-items:flex-start;gap:10px;display:flex}.progress-card h2{margin:4px 0 0;font-size:21px}.progress-card header>strong{font-size:18px;font-weight:780}.trend-current{margin-top:15px;font-size:23px;font-weight:780;display:block}.trend-line-chart{margin-top:13px}.trend-line-chart svg{width:100%;height:auto;display:block;overflow:visible}.trend-grid line{stroke:var(--line);stroke-dasharray:4 4}.trend-grid text{fill:var(--muted);text-anchor:end;font-size:8px}.trend-line{fill:none;stroke:var(--diet);stroke-linecap:round;stroke-linejoin:round;stroke-width:3px}.trend-point{fill:#fff;stroke:var(--diet);stroke-width:3px}.trend-value{fill:var(--ink);text-anchor:middle;font-size:9px;font-weight:700}.trend-date{fill:var(--muted);text-anchor:middle;font-size:9px}.trend-line-chart>p{color:var(--muted);text-align:center;margin:-2px 0 7px;font-size:13px}.chart-empty{justify-content:center;align-items:center;min-height:190px;display:flex}.progress-card dl{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:13px 0 0;display:grid}.progress-card dl div{background:var(--surface-soft);border-radius:8px;padding:10px}.progress-card dt{color:var(--muted);font-size:13px}.progress-card dd{margin:5px 0 0;font-size:14px;font-weight:740}.strength-selector{gap:4px;display:flex}.strength-selector button{background:var(--surface-soft);color:var(--muted);border:0;border-radius:7px;min-height:36px;padding:0 9px;font-size:13px;font-weight:690}.strength-selector button.active{background:var(--diet);color:#fff}.history-heading{justify-content:space-between;align-items:flex-end;gap:18px;display:flex}.history-heading label{color:var(--muted);flex-direction:column;gap:6px;font-size:13px;display:flex}.history-layout{grid-template-columns:170px minmax(0,1fr);gap:18px;margin-top:20px;display:grid}.history-layout>aside{align-content:start;gap:6px;display:grid}.history-layout>aside>div{justify-content:space-between;padding:6px 4px 9px;font-size:13px;display:flex}.history-layout>aside button{background:var(--surface-soft);border:1px solid #0000;border-radius:9px;justify-content:space-between;align-items:center;gap:10px;min-height:46px;padding:9px 10px;display:flex}.history-layout>aside button.active{background:var(--diet-soft);color:#09564f;border-color:#a6d9d3}.history-layout>aside button small{color:var(--muted);font-size:13px}.daily-sheet{border-left:1px solid var(--line);min-width:0;padding-left:18px}.daily-sheet>header{justify-content:space-between;align-items:flex-start;display:flex}.daily-sheet>header h2{margin:4px 0 0;font-size:24px}.daily-sheet>header>span{background:var(--diet-soft);color:#09564f;border-radius:99px;padding:7px 10px;font-size:13px;font-weight:730}.history-summary{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:16px 0;display:grid}.history-summary>div{background:var(--surface-soft);border-radius:9px;flex-direction:column;gap:6px;padding:11px;display:flex}.history-summary span{color:var(--muted);font-size:13px}.history-summary strong{font-size:14px}.add-row-button{background:var(--diet-soft);color:#09564f;border:1px solid #b8e0dc;border-radius:9px;align-items:center;gap:5px;min-height:38px;padding:0 11px;font-size:13px;font-weight:700;display:inline-flex}.editor-rows{gap:10px;margin-top:14px;display:grid}.meal-editor,.activity-editor{border:1px solid var(--line);background:#f8fafc;border-radius:11px;padding:12px}.meal-editor{grid-template-columns:minmax(150px,1fr) 116px 106px;align-items:end;gap:9px;display:grid}.meal-editor label,.activity-main label,.activity-details label{color:var(--muted);flex-direction:column;gap:5px;font-size:13px;font-weight:660;display:flex}.editor-name-field{min-width:0}.unit-input{border:1px solid var(--line-strong);background:#fff;border-radius:10px;align-items:center;min-height:46px;display:flex;overflow:hidden}.unit-input:focus-within{border-color:var(--primary);box-shadow:0 0 0 3px #2563eb1f}.unit-input input{min-width:0;min-height:44px;padding-right:4px;box-shadow:none!important;border:0!important;outline:0!important}.unit-input>span{color:var(--muted);flex:none;padding-right:9px;font-size:13px}.editor-row-actions{grid-column:1/-1;justify-content:space-between;align-items:center;display:flex}.check-field{color:var(--muted);flex-direction:row!important;align-items:center!important;gap:7px!important;font-size:13px!important;display:flex!important}.check-field input{width:auto;min-height:auto}.item-delete-button{background:var(--danger-soft);color:var(--danger);border:1px solid #f2c0bc;border-radius:8px;min-height:38px;padding:0 11px;font-size:13px;font-weight:690}.activity-main{grid-template-columns:.85fr 1.15fr 128px;gap:9px;display:grid}.activity-details{background:var(--surface-soft);border-radius:9px;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:9px;padding:9px;display:grid}.activity-editor>.editor-row-actions{margin-top:9px}.history-running-preview{background:#f8fffd;border:1px solid #c6e3df;border-radius:13px;margin:0 0 14px;padding:15px}.running-editor-details{background:#eef8f6;border:1px solid #c9e1de;border-radius:9px;margin-top:9px;padding:11px}.running-editor-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:11px;display:grid}.running-editor-grid label{color:var(--muted);flex-direction:column;gap:5px;font-size:12px;font-weight:660;display:flex}.running-editor-details>p{color:var(--muted);margin:10px 0 0;font-size:12px}.daily-note-card{grid-template-columns:145px 1fr;align-items:end;gap:14px;margin-top:14px;display:grid}.history-actions{justify-content:space-between;align-items:center;margin-top:17px;display:flex}@media (max-width:1080px){.diet-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.restored-progress{grid-template-columns:1fr}.running-progress-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.progress-card{min-height:320px}.diet-editor-grid{grid-template-columns:1fr}}@media (max-width:760px){.restored-diet{gap:12px;width:100%;max-width:100%;overflow:clip}.diet-view-tabs{width:100%;position:sticky;top:8px}.diet-view-tabs button{font-size:14px}.diet-profile-line{flex-direction:column;align-items:flex-start;gap:10px;padding:17px}.running-card{padding:14px}.running-card-title small{white-space:normal}.running-hero{gap:11px}.running-hero strong{font-size:26px}.running-progress-panel{padding:15px 12px}.running-progress-heading{flex-direction:column}.running-progress-heading>strong{font-size:21px}.recent-run-grid,.secondary-progress{grid-template-columns:1fr}.running-card.compact:last-child:nth-child(odd){grid-column:auto}.running-editor-grid{grid-template-columns:1fr}.diet-profile-line h2{font-size:22px}.diet-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.diet-metrics article{min-height:142px;padding:14px}.diet-metrics strong{font-size:23px}.energy-equation-card>summary{align-items:flex-start;gap:12px;padding:16px}.energy-equation-card>summary>span:first-child>b{font-size:19px}.energy-total-preview>b{font-size:18px}.energy-equation-content{padding:16px}.energy-equation-formula{grid-template-columns:1fr}.energy-equation-formula>i{text-align:center;line-height:1}.energy-equation-formula article{min-height:90px}.diet-today-grid{grid-template-columns:1fr}.editor-card,.routine-card,.diet-progress-view,.diet-history-view{padding:16px 13px}.routine-tabs{scrollbar-width:none;display:flex;overflow-x:auto}.routine-tabs button{flex:0 0 96px}.exercise-browser,.history-layout{grid-template-columns:1fr}.exercise-menu{scrollbar-width:none;display:flex;overflow-x:auto}.exercise-menu button{flex:0 0 210px}.exercise-detail>header{flex-direction:column}.muscle-map{gap:5px}.muscle-figure{width:50%}.muscle-figure svg{height:255px}.exercise-detail dl{grid-template-columns:1fr}.progress-intro h2,.history-heading h2{font-size:24px}.history-heading{flex-direction:column;align-items:flex-start}.history-heading label{width:100%}.history-layout>aside{scrollbar-width:none;display:flex;overflow-x:auto}.history-layout>aside>div{display:none}.history-layout>aside button{flex:none}.daily-sheet{border-left:0;border-top:1px solid var(--line);padding-top:17px;padding-left:0}.history-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.meal-editor,.activity-main,.activity-details{grid-template-columns:1fr}.editor-name-field{grid-column:auto}.daily-note-card{grid-template-columns:1fr;padding:16px 13px}.history-actions{flex-direction:column-reverse;align-items:stretch;gap:8px}.history-actions .button,.history-actions .danger-link{width:100%}}.diet-compact-header{align-items:center;margin-bottom:2px}.diet-compact-header h1{margin:5px 0 7px;font-size:clamp(30px,4vw,40px)}.today-routine-card,.nutrition-overview,.weekly-progress-panel{background:var(--surface);border:1px solid var(--line);border-radius:20px;overflow:hidden}.today-routine-card{box-shadow:0 18px 48px #0f766e14}.routine-hero{color:#fff;background:linear-gradient(135deg,#0b625c,#11877d);justify-content:space-between;align-items:center;gap:24px;padding:25px 27px;display:flex}.routine-hero>div:first-child>p{color:#ffffffbd;margin:10px 0 3px;font-size:13px;font-weight:680}.routine-hero h2{letter-spacing:-.045em;margin:0 0 5px;font-size:clamp(29px,4vw,40px)}.routine-hero>div:first-child>span:last-child{color:#ffffffc7;font-size:14px}.routine-kind{background:#ffffff29;border:1px solid #ffffff3d;border-radius:99px;padding:6px 10px;font-size:12px;font-weight:760;display:inline-flex}.weekly-completion{background:#ffffff1f;border:1px solid #ffffff2e;border-radius:16px;min-width:145px;padding:15px;display:grid}.weekly-completion strong{letter-spacing:-.04em;font-size:28px}.weekly-completion strong small,.weekly-completion>span{color:#ffffffb3;font-size:13px}.weekly-completion progress{accent-color:#a7f3d0;width:100%;height:5px;margin-top:10px}.routine-week-strip{background:#f7faf9;border-bottom:1px solid #d9e9e6;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;padding:10px 14px;display:grid}.routine-week-strip button{background:0 0;border:1px solid #0000;border-radius:12px;gap:2px;min-height:58px;padding:7px 4px;display:grid;position:relative}.routine-week-strip button:hover{background:#edf6f4}.routine-week-strip button.active{color:#075f57;background:#dff3ef;border-color:#abd8d2}.routine-week-strip button span{color:var(--muted);font-size:12px}.routine-week-strip button b{font-size:13px}.routine-week-strip button i{background:0 0;border-radius:50%;justify-self:center;width:5px;height:5px}.routine-week-strip button.completed i{background:var(--diet)}.routine-workspace{grid-template-columns:minmax(310px,.82fr) minmax(0,1.35fr);gap:0;display:grid}.routine-checklist{border-right:1px solid var(--line);padding:19px}.routine-list-heading{justify-content:space-between;align-items:center;margin:0 3px 12px;display:flex}.routine-list-heading b{font-size:16px}.routine-list-heading span{color:var(--diet);font-size:13px;font-weight:720}.routine-exercise-row{border:1px solid #0000;border-radius:12px;grid-template-columns:34px 1fr;align-items:center;gap:8px;margin-top:6px;padding:5px;display:grid}.routine-exercise-row:hover{background:#f5f8f8}.routine-exercise-row.selected{background:var(--diet-soft);border-color:#b6dfda}.routine-exercise-row.checked:not(.selected){background:#f4faf8}.routine-check{background:#fff;border:1.5px solid #aab7c2;border-radius:9px;justify-content:center;align-items:center;width:30px;height:30px;font-size:17px;font-weight:800;display:flex}.routine-exercise-row.checked .routine-check{background:var(--diet);border-color:var(--diet);color:#fff}.routine-check:disabled{cursor:default}.routine-exercise-select{text-align:left;background:0 0;border:0;grid-template-columns:27px 1fr;gap:3px 10px;padding:7px 5px;display:grid}.routine-exercise-select>span{color:var(--diet);grid-row:1/3;padding-top:3px;font-size:11px;font-weight:800}.routine-exercise-select b{font-size:14px}.routine-exercise-select small{color:var(--muted);font-size:12px}.routine-exercise-row.checked .routine-exercise-select b{-webkit-text-decoration:line-through #82aaa5;text-decoration:line-through #82aaa5}.routine-view-note,.exercise-note{color:var(--muted);margin:13px 4px 0;font-size:12px;line-height:1.55}.routine-exercise-detail{background:#fbfdfd;padding:24px 26px}.routine-exercise-detail>header{justify-content:space-between;align-items:flex-start;gap:15px;display:flex}.routine-exercise-detail>header span{color:var(--diet);font-size:12px;font-weight:750}.routine-exercise-detail h3{letter-spacing:-.035em;margin:5px 0 0;font-size:25px}.routine-exercise-detail>header strong{background:var(--diet-soft);color:#075f57;border-radius:99px;padding:8px 11px;font-size:13px}.exercise-priority-info{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:17px;display:grid}.exercise-priority-info>div{border:1px solid var(--line);background:#fff;border-radius:10px;gap:5px;padding:11px 12px;display:grid}.exercise-priority-info span{color:var(--muted);font-size:11px}.exercise-priority-info b{font-size:13px}.exercise-cues{counter-reset:cue;gap:7px;margin:17px 0;padding:0;list-style:none;display:grid}.exercise-cues li{color:#40505d;grid-template-columns:22px 1fr;align-items:center;gap:9px;font-size:13px;display:grid}.exercise-cues li:before{color:#43635f;content:counter(cue);counter-increment:cue;background:#e6efee;border-radius:50%;justify-content:center;align-items:center;height:22px;font-size:10px;font-weight:760;display:flex}.muscle-map-disclosure{background:#f3f7f7;border-radius:14px;padding:13px 15px}.muscle-map-disclosure>summary{cursor:pointer;justify-content:space-between;align-items:center;font-size:13px;font-weight:740;list-style:none;display:flex}.muscle-map-disclosure>summary::-webkit-details-marker{display:none}.muscle-map-disclosure>summary span{color:var(--muted);font-size:11px;font-weight:600}.routine-exercise-detail .muscle-map{gap:10px;max-width:420px;margin:12px auto 3px}.routine-exercise-detail .muscle-figure{width:48%;max-width:170px}.routine-exercise-detail .muscle-figure svg{max-width:170px;height:295px}.anatomy-base{fill:#e9eff1;stroke:#84959b;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.2px}.anatomy-contour{fill:none;opacity:.5;stroke:#91a0a5;stroke-width:1px}.anatomy-zones .muscle-zone{fill:#dce5e7;stroke:#829398;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.05px}.anatomy-zones .muscle-zone.primary{fill:#0f766e;stroke:#075b55;stroke-width:1.6px}.anatomy-zones .muscle-zone.secondary{fill:#83d3c8;stroke:#2d9b8f;stroke-width:1.35px}.routine-exercise-detail .muscle-legend{margin:5px 0 2px}.routine-exercise-detail .muscle-legend i.primary{background:#0f766e;border-color:#075b55}.routine-exercise-detail .muscle-legend i.secondary{background:#83d3c8;border-color:#2d9b8f}.routine-rest-state{align-items:center;gap:18px;padding:34px 28px;display:flex}.routine-rest-state>span{background:#fff3d6;border-radius:16px;justify-content:center;align-items:center;width:54px;height:54px;font-size:24px;display:flex}.routine-rest-state b{font-size:19px}.routine-rest-state p{color:var(--muted);margin:5px 0 0;font-size:14px}.today-activity-log,.today-food-card{box-shadow:none}.nutrition-overview{padding:22px}.nutrition-overview>header{justify-content:space-between;align-items:center;display:flex}.nutrition-overview h2{letter-spacing:-.035em;margin:4px 0 0;font-size:24px}.nutrition-overview>header button{background:var(--diet-soft);color:#075f57;border:0;border-radius:10px;min-height:39px;padding:0 13px;font-size:13px;font-weight:720}.nutrition-priority-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:18px;display:grid}.nutrition-priority-grid article{background:#f7faf9;border-radius:14px;padding:17px}.nutrition-priority-grid article>span{color:#42535f;font-size:13px;font-weight:720}.nutrition-priority-grid article>div{align-items:baseline;gap:5px;margin:10px 0 8px;display:flex}.nutrition-priority-grid strong{letter-spacing:-.045em;font-size:31px}.nutrition-priority-grid small,.nutrition-priority-grid p{color:var(--muted);font-size:12px}.nutrition-priority-grid p{margin:7px 0 0}.nutrition-priority-grid progress{accent-color:var(--diet);width:100%;height:6px}.nutrition-secondary{border-top:1px solid var(--line);grid-template-columns:repeat(3,1fr);margin:18px 0 0;padding-top:15px;display:grid}.nutrition-secondary>div{gap:4px;padding:0 14px;display:grid}.nutrition-secondary>div+div{border-left:1px solid var(--line)}.nutrition-secondary dt{color:var(--muted);font-size:12px}.nutrition-secondary dd{margin:0;font-size:14px;font-weight:740}.weekly-progress-panel{margin-top:18px;padding:20px}.weekly-progress-panel>header{justify-content:space-between;align-items:center;display:flex}.weekly-progress-panel header span{color:var(--diet);font-size:12px;font-weight:760}.weekly-progress-panel h3{margin:4px 0;font-size:25px}.weekly-progress-panel header p{color:var(--muted);margin:0;font-size:13px}.weekly-progress-panel header>strong{color:var(--diet);letter-spacing:-.04em;font-size:36px}.weekly-progress-panel header>strong small{font-size:17px}.weekly-progress-panel>progress{accent-color:var(--diet);width:100%;height:8px;margin:18px 0 14px}.weekly-session-grid{grid-template-columns:repeat(7,1fr);gap:7px;display:grid}.weekly-session-grid>div{background:#f1f4f5;border-radius:10px;gap:3px;min-height:64px;padding:9px;display:grid;position:relative}.weekly-session-grid span{color:var(--muted);font-size:11px}.weekly-session-grid b{font-size:13px}.weekly-session-grid i{color:var(--diet);font-size:15px;font-style:normal;position:absolute;top:8px;right:8px}.weekly-session-grid .completed{background:var(--diet-soft);color:#075f57}.weekly-session-grid .rest{opacity:.72}.history-editor-section>summary{cursor:pointer;justify-content:space-between;align-items:center;list-style:none;display:flex}.history-editor-section>summary::-webkit-details-marker{display:none}.history-editor-section>summary p{color:var(--muted);margin:0;font-size:12px;font-weight:700}.history-editor-section>summary h2{margin:4px 0 0;font-size:22px}.history-editor-section>summary>span{color:var(--muted);align-items:center;gap:7px;font-size:13px;display:flex}.history-editor-section[open]>summary svg{transform:rotate(180deg)}.history-add-button{margin-top:17px}@media (max-width:900px){.routine-workspace{grid-template-columns:minmax(270px,.9fr) minmax(0,1.1fr)}.routine-exercise-detail{padding:21px}}@media (max-width:760px){.diet-compact-header{align-items:flex-start}.diet-compact-header .header-actions{width:100%}.diet-compact-header .header-actions .button{flex:1}.routine-hero{align-items:flex-start;padding:20px 17px}.routine-hero h2{font-size:30px}.weekly-completion{min-width:112px;padding:12px}.weekly-completion strong{font-size:24px}.routine-week-strip{gap:2px;padding:8px 6px}.routine-week-strip button{min-height:54px;padding-inline:1px}.routine-week-strip button b{font-size:11px}.routine-workspace{grid-template-columns:1fr}.routine-checklist{border-bottom:1px solid var(--line);border-right:0;padding:14px 11px}.routine-exercise-detail{padding:19px 15px}.routine-exercise-detail>header{flex-direction:column}.exercise-priority-info{grid-template-columns:1fr}.routine-exercise-detail .muscle-figure svg{height:250px}.routine-exercise-detail .muscle-map{gap:2px}.nutrition-overview{padding:17px 14px}.nutrition-overview>header{align-items:flex-start;gap:12px}.nutrition-overview h2{font-size:21px}.nutrition-priority-grid,.nutrition-secondary{grid-template-columns:1fr}.nutrition-secondary>div{justify-content:space-between;align-items:center;padding:9px 2px;display:flex}.nutrition-secondary>div+div{border-left:0;border-top:1px solid var(--line)}.weekly-session-grid{gap:3px}.weekly-session-grid>div{min-height:55px;padding:7px 4px}.weekly-session-grid b{font-size:10px}.weekly-session-grid i{top:4px;right:4px}}
.friends-page{max-width:1440px}.friends-header{margin-bottom:18px}.friends-notice{margin-bottom:14px}.friends-summary{flex-wrap:wrap;gap:9px;margin-bottom:14px;display:flex}.friends-summary span{background:var(--surface);border:1px solid var(--line);color:var(--muted);border-radius:999px;padding:8px 13px;font-size:13px}.friends-summary b{color:var(--ink);margin-right:4px}.network-workspace{grid-template-columns:minmax(0,1fr) 320px;gap:14px;min-height:660px;display:grid}.network-canvas,.network-panel{background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow-sm);border-radius:18px}.network-canvas{background:radial-gradient(circle at center, #2563eb14, transparent 22rem), linear-gradient(#17203308 1px, transparent 1px), linear-gradient(90deg, #17203308 1px, transparent 1px), var(--surface);background-size:auto,32px 32px,32px 32px,auto;min-height:660px;position:relative;overflow:hidden}.network-graph{touch-action:none;width:100%;height:100%;min-height:660px;display:block;position:absolute;inset:0}.network-toolbar{z-index:5;flex-wrap:wrap;gap:7px;display:flex;position:absolute;top:16px;left:16px}.network-toolbar input,.network-toolbar select,.network-toolbar button{border:1px solid var(--line);background:#fffffff0;border-radius:9px;height:38px;padding:0 11px;font-size:13px;box-shadow:0 4px 14px #17203312}.network-toolbar input{width:150px}.network-toolbar button{color:var(--muted);font-weight:700}.network-view-toggle{border:1px solid var(--line);background:#fffffff0;border-radius:9px;align-items:center;padding:2px;display:flex;box-shadow:0 4px 14px #17203312}.network-toolbar .network-view-toggle button{box-shadow:none;background:0 0;border:0;height:32px;padding:0 10px}.network-toolbar .network-view-toggle button.active{color:#fff;background:#172033}.network-loading{color:var(--muted);z-index:4;margin:0;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.relationship-line{opacity:.28;stroke:#64748b}.relationship-line.focused{opacity:.78}.relationship-line.relationship-hidden{opacity:0;pointer-events:none}.relationship-line.type-friend{stroke:#2563eb}.relationship-line.type-colleague{stroke:#7c3aed;stroke-dasharray:7 4}.relationship-line.type-family{stroke:#ea580c}.relationship-line.type-acquaintance{stroke:#64748b;stroke-dasharray:3 5}.relationship-line.type-other{stroke:#0f766e;stroke-dasharray:8 5}.graph-node{cursor:grab;outline:none}.graph-node:active{cursor:grabbing}.graph-self-node circle,.friend-graph-node .node-surface{filter:drop-shadow(0 7px 10px #1720332e)}.graph-self-node circle{stroke:#dbeafe;stroke-width:4px;fill:#172033}.friend-graph-node .node-surface{fill:#fff;stroke:#e2e8f0;stroke-width:1px}.friend-graph-node .node-group-ring{pointer-events:none;stroke-linecap:round;stroke-width:6px}.friend-graph-node .node-selection-ring{fill:none;pointer-events:none;stroke:#172033;stroke-width:2px;opacity:0;transition:opacity .18s}.friend-graph-node:hover .node-selection-ring,.friend-graph-node:focus-visible .node-selection-ring,.friend-graph-node.selected .node-selection-ring{opacity:1}.friend-graph-node.search-dimmed{opacity:.16}.friend-graph-node.relation-dimmed{opacity:.2}.group-marker{pointer-events:none}.group-marker rect{fill-opacity:.1;stroke:currentColor;stroke-opacity:.25}.group-marker text{fill:#435165;font-family:var(--font-sans);pointer-events:none;font-size:11px;font-weight:760}.node-name,.node-group{font-family:var(--font-sans);pointer-events:none}.node-name{fill:#172033;font-size:13px;font-weight:780}.node-group{fill:#fff;letter-spacing:.04em;opacity:.76;font-size:8px}.graph-self-node .node-name{fill:#fff;font-size:17px}.network-empty-copy{text-align:center;z-index:4;flex-direction:column;gap:7px;width:min(420px,100% - 40px);display:flex;position:absolute;bottom:62px;left:50%;transform:translate(-50%)}.network-empty-copy b{font-size:16px}.network-empty-copy span{color:var(--muted);font-size:13px;line-height:1.5}.network-empty-copy .button{align-self:center;margin-top:7px}.network-legend{z-index:5;flex-wrap:wrap;align-items:center;gap:6px 12px;max-width:calc(100% - 32px);display:flex;position:absolute;bottom:15px;left:16px}.network-legend span{color:var(--muted);background:#ffffffe6;border-radius:999px;align-items:center;gap:6px;padding:5px 8px;font-size:11px;display:flex}.network-legend i{border-radius:50%;width:8px;height:8px}.network-view-hint{color:#fff;z-index:5;background:#172033db;border-radius:999px;margin:0;padding:7px 11px;font-size:11px;position:absolute;top:64px;left:16px}.network-panel{flex-direction:column;align-self:stretch;max-height:660px;padding:27px;display:flex;overflow:auto}.network-panel-icon{background:var(--primary-soft);color:var(--primary);border-radius:13px;justify-content:center;align-items:center;width:48px;height:48px;margin-bottom:27px;display:flex}.network-panel h2{letter-spacing:-.04em;margin:8px 0 12px;font-size:25px;line-height:1.28}.network-panel>p:not(.eyebrow){color:var(--muted);margin:0 0 24px;font-size:14px;line-height:1.7}.network-panel>.button{margin-top:auto}.group-cluster-note{background:var(--surface-soft);border-radius:12px;align-items:center;gap:12px;margin-bottom:24px;padding:13px;display:flex}.group-cluster-note>i{background:var(--primary);border:6px solid #bfd3ff;border-radius:50%;width:24px;height:24px}.group-cluster-note span{flex-direction:column;gap:3px;display:flex}.group-cluster-note b{font-size:13px}.group-cluster-note small{color:var(--muted);font-size:12px}.friend-profile-top{align-items:center;gap:13px;display:flex}.friend-avatar{color:#fff;border:4px solid #fff;border-radius:50%;flex:none;justify-content:center;align-items:center;width:56px;height:56px;font-size:20px;font-weight:780;display:flex;box-shadow:0 5px 14px #1720332b}.friend-profile-top h2{margin:3px 0 0}.friend-group-chips{flex-wrap:wrap;gap:6px;margin:17px 0 4px;display:flex}.friend-group-chip{background:var(--primary-soft);color:var(--primary);border-radius:999px;padding:6px 10px;font-size:12px;font-weight:720}.friend-details{gap:0;margin:14px 0 18px;display:grid}.friend-details div{border-top:1px solid var(--line);padding:12px 0}.friend-details dt{color:var(--subtle);margin-bottom:5px;font-size:11px;font-weight:700}.friend-details dd{overflow-wrap:anywhere;margin:0;font-size:13px;line-height:1.55}.friend-connections{border-top:1px solid var(--line);padding-top:16px}.friend-connections h3{margin:0 0 7px;font-size:14px}.connection-row{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:8px;padding:10px 0;display:flex}.connection-row>span:first-child{flex-direction:column;gap:3px;display:flex}.connection-row b{font-size:13px}.connection-row small{color:var(--muted);font-size:11px}.connection-actions{gap:4px;display:flex}.connection-actions button{color:var(--primary);background:0 0;border:0;padding:5px 3px;font-size:11px}.network-panel-actions{grid-template-columns:1fr 1fr;gap:8px;margin-top:auto;padding-top:20px;display:grid}.danger-button{color:var(--danger)}.friend-modal{max-width:680px}.friend-modal.compact-modal{max-width:600px}.modal-heading{border-bottom:1px solid var(--line);justify-content:space-between;align-items:flex-start;margin-bottom:20px;padding-bottom:17px;display:flex}.modal-heading h2{margin:4px 0 0}.modal-heading>button{background:var(--surface-soft);color:var(--muted);border:0;border-radius:9px;justify-content:center;align-items:center;width:40px;height:40px;font-size:22px;display:flex}.friend-form{gap:15px;display:grid}.friend-group-editor{color:#435165;gap:7px;font-size:13px;font-weight:680;display:grid}.friend-group-picker{grid-template-columns:minmax(0,1fr) auto;gap:8px;display:grid}.friend-group-picker .button{min-width:92px}.friend-group-selection{flex-wrap:wrap;gap:7px;display:flex}.friend-group-selection>span{background:var(--primary-soft);color:var(--primary);border-radius:999px;align-items:center;gap:5px;padding:6px 7px 6px 10px;font-size:12px;display:inline-flex}.friend-group-selection button{color:inherit;background:#2563eb1f;border:0;border-radius:50%;justify-content:center;align-items:center;width:20px;height:20px;padding:0;font-size:14px;line-height:1;display:inline-flex}.friend-group-empty{color:var(--subtle);font-size:11px;font-weight:500}.friend-form label{color:#435165;flex-direction:column;gap:7px;font-size:13px;font-weight:680;display:flex}.friend-form input:not([type=range]),.friend-form select,.friend-form textarea{border:1px solid var(--line-strong);background:#fff;border-radius:10px;width:100%;min-height:46px;padding:10px 12px}.friend-form textarea{resize:vertical}.friend-form input[type=range]{accent-color:var(--primary);width:100%;height:34px}.friend-form input:focus,.friend-form select:focus,.friend-form textarea:focus{border-color:var(--primary);outline:0;box-shadow:0 0 0 3px #2563eb1f}.two-columns{grid-template-columns:repeat(2,minmax(0,1fr))}.friend-form .form-actions{border-top:1px solid var(--line);justify-content:flex-end;margin-top:5px;padding-top:18px}.sr-only{clip:rect(0, 0, 0, 0);clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}@media (max-width:1080px){.network-workspace{grid-template-columns:1fr}.network-panel{min-height:250px;max-height:none}}@media (max-width:760px){.friends-page{padding-bottom:100px}.friends-header{align-items:flex-start}.friends-header .button{padding:0 11px}.network-canvas,.network-graph{min-height:520px}.network-toolbar{grid-template-columns:1fr 1fr;display:grid;top:10px;left:10px;right:10px}.network-toolbar label:first-child{grid-column:span 2}.network-toolbar label:nth-child(2){grid-area:2/1}.network-toolbar>button:last-child{grid-area:2/2}.network-view-toggle{grid-area:3/span 2}.network-toolbar input,.network-toolbar select,.network-toolbar button{width:100%}.network-legend{bottom:9px;left:9px}.network-view-hint{top:130px;left:10px}.network-panel{padding:22px}.friend-group-picker{grid-template-columns:1fr}.friend-group-picker .button{width:100%}.two-columns{grid-template-columns:1fr}}
.login-page{grid-template-columns:minmax(0,1.05fr) minmax(420px,.95fr);min-height:100vh;display:grid}.login-copy{color:#fff;background:radial-gradient(circle at 75% 20%,#ffffff2e,#0000 20rem),linear-gradient(145deg,#1d4ed8,#4338ca);flex-direction:column;justify-content:center;padding:clamp(48px,8vw,116px);display:flex;position:relative;overflow:hidden}.login-kicker{letter-spacing:.14em;font-size:13px;font-weight:760}.login-copy h1{letter-spacing:-.06em;margin:22px 0;font-size:clamp(46px,6vw,76px);line-height:1.05}.login-copy h1 em{font-style:normal}.login-copy>p{color:#dbe7ff;margin:0;font-size:16px;line-height:1.8}.login-orbit{border:1px solid #ffffff47;border-radius:999px;width:420px;height:280px;position:absolute;bottom:-92px;right:-72px}.login-orbit:after{border-radius:inherit;content:"";border:1px solid #ffffff2b;position:absolute;inset:42px}.login-orbit span,.login-orbit b{color:#1e3a8a;z-index:1;background:#fff;border-radius:999px;padding:8px 14px;font-size:13px;position:absolute}.login-orbit span:first-child{top:72px;left:18px}.login-orbit span:last-child{top:38px;right:28px}.login-orbit b{bottom:84px;left:156px}.login-panel{background:var(--surface);flex-direction:column;justify-content:center;align-items:center;padding:clamp(36px,7vw,92px);display:flex}.login-panel>div,.login-form,.login-foot{width:100%;max-width:430px}.login-panel h2{letter-spacing:-.045em;margin:22px 0 9px;font-size:clamp(28px,3vw,38px)}.login-panel .brand-mark{margin-bottom:28px}.login-form{border-top:1px solid var(--line);gap:17px;margin-top:31px;padding-top:28px;display:grid}.password-field{position:relative}.password-field input{padding-right:52px}.password-field button{color:var(--muted);background:0 0;border:0;justify-content:center;align-items:center;width:40px;height:40px;display:flex;position:absolute;top:3px;right:4px}.login-foot{color:var(--subtle);margin-top:25px;font-size:13px}@media (max-width:760px){.login-page{grid-template-columns:1fr}.login-copy{display:none}.login-panel{min-height:100vh;padding:34px 22px}}

