:root{--navy: #003092;--navy-900: #0e1630;--gold: #feb21a;--ink: #0f1a2b;--muted: #6b7893;--bg: #f4f6fb;--card: #ffffff;--line: #e9edf5;--ok: #16a34a;--warn: #f59e0b;--bad: #dc2626}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif}:root{--appbar-pad-top: env(safe-area-inset-top, 0px)}.appbar{position:fixed;top:0;left:0;right:0;z-index:100;display:flex;align-items:center;justify-content:space-between;padding:calc(12px + env(safe-area-inset-top,0px)) 16px 12px;background:var(--navy);color:#fff}.app-main,.app-screen,.page-body{padding-bottom:calc(var(--bottom-nav-h, 5px) + 5px + env(safe-area-inset-bottom,0px))}.appbar .brand{display:flex;align-items:center;gap:10px;font-weight:700;font-size:22px;letter-spacing:.2px}.brand img{width:68px;height:68px;border-radius:8px;display:block}.appbar .actions{display:flex;align-items:center;gap:8px}.icon-btn{display:inline-grid;place-items:center;width:40px;height:40px;border-radius:12px;background:#ffffff1a;color:#fff;border:1px solid rgba(255,255,255,.2);cursor:pointer}.container{padding:16px;max-width:980px;margin:0 auto}.card{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:16px;box-shadow:var(--shadow)}.hero{color:#fff;border-radius:24px;padding:18px;display:flex;gap:12px;align-items:center}.hero .avatar{width:110px;height:110px;border-radius:999px;border:3px solid rgba(255,255,255,.85);overflow:hidden;flex:0 0 auto}.hero .avatar img{width:100%;height:100%;object-fit:cover}.hero h2{margin:0 0 4px;font-size:22px;color:#0a0a0a}.hero p{margin:0;color:#052158}.section{margin-top:16px}.comp{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-radius:16px;margin:12px 0;border:1px solid var(--line);background:#0f1424;color:#e9f0ff}.comp .badge{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:#1f2b4d;border:1px solid rgba(255,255,255,.08)}.comp .title{font-weight:700}.comp .note{font-size:12px;color:#a9b6d9}.comp .tag{font-weight:700;padding:6px 10px;border-radius:999px;border:1px solid rgba(255,255,255,.15)}.tag.good{background:#092810;border-color:#124d24;color:#7ce389}.tag.fair{background:#2c2307;border-color:#6d4e0d;color:#facc6b}.tag.poor{background:#2b1211;border-color:#6e2623;color:#feb1b1}.tag.none{background:#20263a;color:#c6d0ea;border-color:#39425e}.modal-backdrop{position:fixed;inset:0;background:#0609148c;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);display:grid;place-items:center;z-index:60}.modal{color:#e8eeff;border-radius:16px;width:min(92vw,520px);padding:18px;border:1px solid #283257;box-shadow:0 30px 80px #00000073}.modal h3{margin:0 0 12px;font-size:20px}.modal .row{display:flex;gap:10px;justify-content:flex-end;margin-top:16px}.btn{padding:10px 14px;border-radius:12px;border:1px solid var(--line);background:#fff;color:var(--ink);cursor:pointer}.btn.primary{background:var(--navy);border-color:#0c2f90;color:#fff}.btn.ghost{background:transparent;color:#e8eeff;border-color:#38446b}.login-wrap{min-height:var(--app-height, 100vh);display:grid;place-items:center;background:url(https://img.freepik.com/premium-photo/black-dumbbell-against-dark-background_1192423-4254.jpg) center/cover no-repeat}.login-card{width:min(92vw,430px);background:#000000c7;border:1px solid rgba(255,255,255,.22);border-radius:24px;padding:24px 20px;color:#fff;-webkit-backdrop-filter:blur(14px) saturate(160%);backdrop-filter:blur(14px) saturate(160%);box-shadow:0 8px 28px #00000073,inset 0 0 0 1px #ffffff1f}.login-card:before{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:linear-gradient(145deg,#ffffff1f,#ffffff0a,#ffffff05);opacity:.5}.field{display:flex;flex-direction:column;gap:6px;margin:12px 0}.field input{width:100%;padding:12px 14px;border-radius:12px;border:1px solid rgba(255,255,255,.25);color:#0b145e;outline:none}.login-btn{width:95%;padding:12px 14px;border-radius:12px;border:0;background:#0d45c6;color:#fff;font-weight:700;margin-top:8px}.subtle{display:block;width:95%;margin-top:10px;padding:10px;border-radius:12px;border:1px solid rgba(255,255,255,.25);background:#ffffff0f;color:#d6def8}.info-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px;background:#0f1424;color:#e9f0ff;border:1px solid #263154;border-left:6px solid var(--gold);border-radius:16px;padding:12px 14px;margin-top:12px}.info-item{display:flex;flex-direction:column;gap:4px}.info-item .k{font-size:12px;color:#9fb0dc;letter-spacing:.2px}.info-item .v{font-weight:700}.pills{display:flex;flex-wrap:wrap;gap:8px}.pill{background:#142044;color:#cfe0ff;border:1px solid #2c3a6a;padding:8px 10px;border-radius:999px;font-weight:700;font-size:13px}.comp .badge{width:44px;height:44px;border-radius:12px;background:#fff;border:1px solid #e5e7eb;display:grid;place-items:center;flex:0 0 44px;overflow:hidden}.comp .badge img{width:26px;height:26px;display:block}:root{--bottom-nav-h: 72px}.bottom-nav{position:fixed;left:0;right:0;bottom:0;height:calc(var(--bottom-nav-h) + env(safe-area-inset-bottom,0px));padding-bottom:env(safe-area-inset-bottom,0px);background:#003092;border-top:1px solid var(--line);z-index:50;display:flex}.bottom-nav>a{flex:1 1 0;display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:6px 0;color:#fff;text-decoration:none;font-size:12px}.bottom-nav>a svg{width:20px;height:20px}.bottom-nav .active{color:#feb21a;font-weight:800}.bottom-nav .active svg path{stroke:#feb21a}.comp{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px;border-radius:16px;border-left:6px solid var(--navy);background:#f7f9ff;margin:10px 0;box-shadow:var(--shadow)}.comp .left{display:flex;align-items:center;gap:12px}.comp .badge{width:44px;height:44px;border-radius:12px;background:#fff;border:1px solid #e5e7eb;display:grid;place-items:center;flex:0 0 44px;color:#0f1a2b}.comp .meta .title{font-weight:800;font-size:15px;color:#0f1a2b}.comp .meta .sub{font-size:12px;color:#6a7891;margin-top:2px}.tag{padding:6px 10px;border-radius:999px;font-weight:800;font-size:12px}.tag.good{background:#ecfdf5;color:#047857}.tag.fair{background:#fff7ed;color:#c2410c}.tag.poor{background:#fef2f2;color:#b91c1c}.tag.verygood{background:#eef2ff;color:#4338ca}.chip.ghost{border:1px solid #cbd5e1;color:#334155;background:#fff;border-radius:999px;font-size:12px;padding:6px 10px;margin-right:8px}@media(max-width:480px){.info-row{grid-template-columns:1fr 1fr}.comp{padding:12px}}.analysis-page .filters{display:grid;grid-template-columns:1fr;gap:12px;margin-bottom:14px}@media(min-width:520px){.analysis-page .filters{grid-template-columns:1fr auto auto;align-items:end}}.analysis-page .section-title{font-size:16px;font-weight:700;color:#0f1a2b;margin:6px 0 8px}.analysis-page .chipset{display:flex;flex-wrap:wrap;gap:8px}.analysis-page .chip{border-radius:999px;padding:8px 12px;border:1px solid #e2e7f3;background:#fff;color:#0f1a2b;font-size:13px;line-height:1;cursor:pointer;transition:background .15s ease,border-color .15s ease,color .15s ease}.analysis-page .chip:hover{background:#f6f8fc}.analysis-page .chip--selected{background:var(--m3-seed, #003092);border-color:var(--m3-seed, #003092);color:#fff}.analysis-page .dates{display:grid;grid-template-columns:1fr 1fr;gap:8px}.analysis-page .field{display:flex;flex-direction:column;gap:6px}.analysis-page .field__label{font-size:12px;color:#57627a}.analysis-page .field__control{border:1px solid #e3e8f4;background:#fff;color:#0f1a2b;border-radius:12px;padding:10px 12px;font-size:14px}.analysis-page .help{margin-top:-4px;font-size:12px;color:#a94442}.analysis-page .charts{display:grid;grid-template-columns:1fr;gap:12px}@media(min-width:720px){.analysis-page .charts{grid-template-columns:1fr 1fr}}.analysis-page .chart-card{background:#fff;border:1px solid #e0e6f0;border-radius:18px;box-shadow:0 8px 20px #07143d14;overflow:hidden}.analysis-page .chart-head{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border-bottom:1px solid #ecf0f7;background:linear-gradient(180deg,#f8faff,#f2f6ff)}.analysis-page .chart-title{font-size:14px;font-weight:700;color:#0f1a2b}.analysis-page .chart-sub{font-size:12px;color:#6a7891}.analysis-page .chart-body{padding:10px 12px 14px}.analysis-page .chart{width:100%;height:240px}.analysis-page .empty{background:#fff;border:1px dashed #d7deee;border-radius:16px;padding:18px;color:#6a7891;text-align:center;font-size:14px}.analysis-page .spacer-bottom{height:10px}.modal{max-width:520px;width:92%;background:#fff;border-radius:16px;border:1px solid #e6eaf5;box-shadow:0 16px 40px #07143d29;padding:14px}.modal .modal-title{font-size:16px;font-weight:700;color:#0f1a2b;margin:0 0 6px}.modal .modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:10px}.card input[type=date],.card select,.diet-form input[type=date],.diet-form select,.goals-form input[type=date],.goals-form select{width:100%;max-width:100%;box-sizing:border-box;-webkit-appearance:none;appearance:none}.analysis-page .filters-bar{background:#f6f8fd;border:1px solid #e6eaf5;border-radius:16px;padding:12px;margin:8px 0 16px;box-shadow:0 6px 14px #07143d0f}.analysis-page .filters{display:grid;grid-template-columns:1fr auto;gap:12px}.analysis-page .dates{display:grid;grid-template-columns:repeat(2,minmax(140px,1fr));gap:10px}@media(max-width:720px){.analysis-page .filters{grid-template-columns:1fr}.analysis-page .dates{grid-template-columns:1fr 1fr}}.analysis-page .help{margin-top:8px;color:#b45309;background:#fff7ed;border:1px solid #fde68a;padding:8px 10px;border-radius:12px;font-size:13px}.analysis-page .charts{display:grid;gap:14px}.analysis-page .chart-card{background:#fff;border:1px solid #e6eaf5;border-radius:16px;box-shadow:0 10px 22px #07143d14;overflow:hidden}.analysis-page .chart-head{padding:12px 14px 4px}.analysis-page .chart-title{font-weight:700;color:#0f1a2b}.analysis-page .chart-sub{color:#6a7891;font-size:13px;margin-top:2px}.analysis-page .chart-body{padding:8px 8px 14px}.analysis-page .chart{width:100%;height:auto;display:block}.analysis-page .empty{text-align:center;color:#6a7891;padding:18px 10px}.msel{display:flex;flex-direction:column;gap:6px}.msel__label{font-size:13px;color:#57627a}.msel__control{width:100%;display:inline-flex;align-items:center;justify-content:space-between;gap:8px;background:#fff;color:#0f1a2b;border:1px solid #d9e0f2;border-radius:12px;padding:10px 12px;cursor:pointer}.msel__control.open{outline:2px solid #c8d4fa;box-shadow:0 0 0 2px #0030920f inset}.msel__placeholder{color:#8a94ab}.msel__placeholder.has{color:#0f1a2b;font-weight:600}.msel__menu{position:absolute;z-index:60;margin-top:8px;background:#fff;border:1px solid #e6eaf5;border-radius:14px;min-width:min(520px,92vw);max-width:92vw;box-shadow:0 20px 40px #0f1a2b2e;padding:10px}.msel__actions{display:flex;justify-content:flex-end;padding:4px 4px 8px}.msel__options{display:grid;grid-template-columns:repeat(2,minmax(180px,1fr));gap:8px}@media(max-width:560px){.msel__options{grid-template-columns:1fr}}.msel__option{display:flex;align-items:center;gap:10px;background:#f9fbff;border:1px solid #e6eaf5;padding:8px 10px;border-radius:10px;cursor:pointer;-webkit-user-select:none;user-select:none}.msel__option.on{background:#eef4ff;border-color:#c8d4fa}.msel__option input{accent-color:#003092}.msel__badges{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.msel__badge{display:inline-flex;align-items:center;gap:6px;background:#eef4ff;color:#003092;border:1px solid #c8d4fa;border-radius:999px;padding:6px 10px;font-size:12px;cursor:pointer}.msel{position:relative}@media(max-width:360px){.analysis-page .chart{height:210px}}body .analysis-page .filters-bar{background:#fff;border:1px solid #e6eaf5;border-radius:16px;padding:12px;box-shadow:0 8px 20px #07143d0f}.overview-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:14px;margin-top:10px}.overview-tile{position:relative;padding:12px 14px;border:1px solid #e6eaf5;border-left:6px solid var(--navy);border-radius:16px;background:#fff;box-shadow:0 6px 16px #07143d14;display:flex;flex-direction:column;justify-content:space-between;height:120px}.tile-head{display:flex;justify-content:space-between;align-items:center}.tile-title{font-weight:700;font-size:14px;color:#0f1a2b}.tile-value{font-weight:800;font-size:16px;color:var(--navy)}.tile-value .unit{font-weight:500;font-size:12px;color:#6a7891}.tile-chart{flex:1;margin-top:4px}.tile-trend{position:absolute;top:8px;right:10px;font-size:14px;font-weight:700}.diet-strip{display:grid;grid-template-columns:1fr 2fr auto;gap:12px;align-items:center}.diet-strip .big{font-size:22px;font-weight:800;color:#003092}.diet-strip .ai-suggest .small{font-size:12px;color:#57627a}.fab{width:44px;height:44px;border-radius:12px;border:1px solid #dfe6f6;background:#003092;color:#fff;font-size:22px;line-height:1;display:grid;place-items:center;cursor:pointer}.tabs{display:flex;gap:8px;margin:8px 0 12px}.tab{border:1px solid #e2e7f3;background:#fff;color:#0f1a2b;padding:8px 12px;border-radius:999px;font-weight:700;cursor:pointer}.tab.on{background:#003092;color:#fff;border-color:#003092}.diet-list .diet-card{background:#fff;border:1px solid #e6eaf5;border-radius:16px;padding:12px;box-shadow:0 8px 20px #07143d0f;margin-bottom:10px}.diet-card__title{font-weight:800}.diet-card__kcal{color:#003092}.diet-card__items{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:8px}.diet-card__items li{display:flex;justify-content:space-between}.diet-card__items .name{font-weight:600}.diet-card__items .meta{color:#6a7891;display:flex;gap:8px}.diet-form .row{display:flex;gap:8px}.diet-field span{font-size:12px;color:#57627a}.diet-results{display:grid;gap:8px;max-height:220px;overflow:auto}.diet-result{border:1px solid #e6eaf5;background:#fff;border-radius:12px;padding:10px;text-align:left;cursor:pointer}.diet-result .r-title{font-weight:700}.diet-result .r-sub{font-size:12px;color:#6a7891}.diet-tabs{display:flex;gap:8px;margin:6px 0}.diet-tab{border:1px solid #e2e7f3;border-radius:999px;padding:6px 10px;background:#fff}.diet-items{display:grid;gap:8px;margin-top:6px}.diet-item{border:1px solid #e6eaf5;border-radius:12px;padding:8px;display:grid;gap:6px}.diet-item input{width:92px;padding:8px 10px;border-radius:10px;border:1px solid #d9e0f2}.diet-kcal{font-weight:800;color:#003092;margin-top:6px}.btn{padding:10px 14px;border-radius:12px;border:1px solid #dfe6f6;background:#fff;cursor:pointer}.btn-ghost{background:#fff;border:1px dashed #cbd5e1;padding:8px 10px;border-radius:10px;cursor:pointer;color:#334155}.muted{color:#6a7891;font-size:12px}.modal-title{font-weight:800;font-size:18px;color:#0f1a2b;margin-bottom:16px}.diet-form{display:grid;gap:14px;padding:8px 12px 12px;max-width:520px;width:100%;margin:0 auto;box-sizing:border-box;max-height:calc(100vh - 140px);overflow-y:auto;-webkit-overflow-scrolling:touch}.diet-field{display:grid;gap:6px;min-width:0}.diet-field span{font-size:13px;font-weight:600;color:#334155}.diet-field input,.diet-field select{padding:10px 12px;border:1px solid #d7deee;border-radius:10px;font-size:14px;width:100%;max-width:100%;box-sizing:border-box;background:#fff;transition:border .2s ease,box-shadow .2s ease}.diet-field input:focus,.diet-field select:focus{outline:none;border-color:#003092;box-shadow:0 0 0 2px #00309226}.diet-tabs{display:flex;justify-content:flex-start;gap:10px;flex-wrap:wrap}.diet-tab{border:1px solid #d7deee;border-radius:20px;background:#fff;color:#003092;padding:6px 14px;font-weight:600;cursor:pointer;transition:all .25s ease;max-width:100%;box-sizing:border-box}.diet-tab.on{background:#003092;color:#fff;border-color:#003092}.diet-results{display:grid;gap:10px;max-height:220px;overflow-y:auto;margin-top:4px}.diet-result{text-align:left;padding:10px 12px;border:1px solid #e3e7f1;border-radius:12px;cursor:pointer;transition:all .2s ease}.diet-result:hover{background:#f6f9ff;border-color:#003092}.diet-result .r-title{font-weight:700;font-size:14px;color:#0f1a2b}.diet-result .r-sub{font-size:12px;color:#64748b}.diet-items{display:grid;gap:10px}.diet-item{border:1px solid #e6eaf5;background:#fff;border-radius:10px;padding:8px 10px;display:flex;justify-content:space-between;align-items:center;box-sizing:border-box}.diet-item .name{font-weight:600;color:#0f1a2b}.diet-item .controls{display:flex;gap:8px;align-items:center}.diet-item .controls input{width:70px;padding:6px 8px;border:1px solid #d7deee;border-radius:8px;text-align:center;box-sizing:border-box}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:10px}.btn{padding:10px 16px;border-radius:10px;font-weight:600;border:1px solid #cfd6ea;cursor:pointer;transition:all .2s ease;box-sizing:border-box}.btn:hover{background:#f2f5fc}.btn.primary:hover{background:#002471}.diet-kcal{font-size:16px;font-weight:800;color:#003092;text-align:right;margin-top:4px}.diet-content{flex:1;display:flex;flex-direction:column;justify-content:center}.diet-card__head{display:flex;justify-content:space-between;align-items:center}.diet-card__title{font-weight:700;color:#0f1a2b;font-size:15px}.diet-card__kcal{color:#003092;font-weight:800}.diet-card__items{list-style:none;margin:6px 0 0;padding:0;display:grid;gap:4px}.diet-card__items li{display:flex;justify-content:space-between;font-size:13px}.diet-card__items .name{font-weight:500}.diet-card__items .meta{color:#6a7891;display:flex;gap:6px;font-size:10px}.page-body .diet-inner-page{max-width:none!important;width:100%!important;margin:0!important;padding-left:12px!important;padding-right:12px!important}.goaltab{position:relative;border:1px solid #e2e7f3;background:#fff;color:#0f1a2b;border-radius:12px;padding:10px 12px;font-weight:800;text-align:center;cursor:pointer}.goaltab.on{background:#da1a1a;color:#fff;border-color:#da1a1a}.goaltab .badge{position:absolute;right:10px;top:-8px;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:#e11d48;color:#fff;font-size:12px;font-weight:800;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 10px #e11d4840}.goal-text{font-size:15px;line-height:1.45;color:#0f1a2b;background:#fbfcff;border:1px dashed #e5eaf6;padding:10px 12px;border-radius:10px}.goal-meta.one-row{display:grid;grid-template-columns:repeat(3,minmax(120px,1fr));gap:12px;margin-top:8px}.goal-meta .k{display:block;font-size:12px;color:#6a7891}.goal-meta .v{font-weight:800}.goals-form .row{display:flex;flex-wrap:wrap;gap:10px}.goals-form .row .field{flex:1 1 calc(50% - 5px);min-width:220px}.goals-form .field label{font-size:12px;color:#003092;display:flex;justify-content:space-between}.guided-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.guided-head .switch{display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:600;color:#6b7280}.guided-head .switch input{margin:0}.goals-form .wc{font-weight:800;color:#6a7891}.goals-form .wc.over{color:#b91c1c}.goals-form textarea{resize:vertical;min-height:96px}.date-black{color:#000}.form-hint.bad{color:#b91c1c;font-size:12px}.btn{padding:10px 14px;border-radius:12px;border:1px solid #cfd6ea;background:#fff;cursor:pointer}.btn.primary{background:#003092;color:#fff;border-color:#003092}.btn.primary:disabled{opacity:.55;cursor:not-allowed}.empty{color:#6a7891;text-align:center;padding:16px 8px}@media(max-width:640px){.goals-form .row{grid-template-columns:1fr}.goal-meta.one-row{grid-template-columns:1fr 1fr 1fr}}.switch input{accent-color:#003092}.goaltabs{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:8px 0 12px}.goaltab{position:relative;display:flex;justify-content:center;align-items:center;gap:8px;padding:10px 12px;border:1px solid #e2e7f3;border-radius:12px;background:#fff;font-weight:700;cursor:pointer}.goaltab .badge{min-width:22px;height:22px;padding:0 6px;border-radius:999px;display:inline-flex;justify-content:center;align-items:center;background:#ef4444;color:#fff;font-size:12px;font-weight:800}.modal-body-scroll{max-height:min(720px,calc(100dvh - 140px));overflow:auto;padding-bottom:12px}.date-black{color:#0f1a2b}.guided{border:1px dashed #e5eaf6;border-radius:12px;padding:10px 12px;background:#fbfcff}.guided-head{display:flex;justify-content:space-between;align-items:center;font-weight:800;color:#0f1a2b;margin-bottom:8px}.guided-grid{display:grid;gap:10px;grid-template-columns:1fr 1fr}@media(max-width:640px){.guided-grid{grid-template-columns:1fr}}.goal-meta.one-row{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:8px}@media(max-width:600px){.goal-meta.one-row{grid-template-columns:1fr 1fr}}.modal-actions.stick-bottom{position:sticky;bottom:0;background:#fff;padding-top:8px}.guided-grid input,.guided-grid textarea,.guided-grid select{pointer-events:auto!important;-webkit-user-select:text!important;user-select:text!important}.modal-interactive,.modal-interactive *{pointer-events:auto!important}.modal-body-scroll{max-height:min(68vh,640px);overflow:auto;-webkit-overflow-scrolling:touch;pointer-events:auto!important}.modal-interactive{position:relative}.modal-interactive input,.modal-interactive select,.modal-interactive textarea,.modal-interactive button{-webkit-user-select:text!important;user-select:text!important}.modal-interactive input:focus,.modal-interactive select:focus,.modal-interactive textarea:focus{outline:none;border-color:#003092;box-shadow:0 0 0 2px #00309226}.goaltab{display:flex;align-items:center;justify-content:center;gap:8px;border:1px solid #e2e7f3;background:#fff;color:#0f1a2b;padding:10px 12px;border-radius:999px;font-weight:700;cursor:pointer}.badge{min-width:20px;padding:2px 8px;border-radius:999px;background:#eef4ff;color:#003092;font-weight:800;font-size:12px}.goaltab.on .badge{background:#fff;color:#003092}.goals-list{display:grid;gap:12px}.goal-meta.one-row{display:flex;gap:8px;align-items:stretch}.goal-meta.one-row .v{font-weight:800;font-size:clamp(12px,3.4vw,16px)}.goal-actions{display:flex;justify-content:flex-end;margin-top:8px}.goal-preview{background:#f8fafc;border:1px dashed #d6dbea;border-radius:10px;padding:10px;color:#334155}.goals-form .row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.goals-form .field{display:grid;gap:6px}.goals-form label{font-size:12px;color:#57627a}.goals-form input,.goals-form select,.goals-form textarea{padding:10px 12px;border:1px solid #d7deee;border-radius:10px;font-size:14px;background:#fff}.date-black{color:#111}.guided{background:#f7f9ff;border:1px solid #e1e7fb;border-radius:14px;padding:10px}.guided-head{display:flex;align-items:center;justify-content:space-between;font-weight:700;margin-bottom:8px}.guided-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.switch{display:flex;align-items:center;gap:8px}@media(max-width:680px){.goals-form .row,.guided-grid{grid-template-columns:1fr}}.typeTabs{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:8px 0}.typeTab{border:1px solid #e2e7f3;background:#fff;color:#0f1a2b;padding:10px 12px;border-radius:999px;font-weight:700;cursor:pointer;text-align:center}.goal-meta.one-row{display:flex;gap:8px}.goal-meta.one-row>div{flex:1 1 0;background:#fff;border:1px solid var(--line);border-radius:12px;padding:8px 10px}.goal-meta.one-row .k{display:block;font-size:clamp(10px,2.4vw,12px);color:#6a7891}.goal-meta.one-row .v{font-weight:800;font-size:clamp(12px,3.2vw,16px)}.reflect-block{border-left:4px solid #0b7;background:#f5fffb;padding:8px 10px;border-radius:8px;margin-bottom:8px}.reflect-h{font-weight:800;font-size:13px;color:#065f46;margin-bottom:4px}.reflect-b{color:#0f1a2b;font-size:13px;line-height:1.45}.coach-b{color:#334155;font-size:13px;line-height:1.45}.typeTabs{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin:8px 0}.typeTab{border:1px solid #e2e7f3;background:#fff;color:#0f1a2b;padding:10px 12px;border-radius:999px;font-weight:700;font-size:14px;text-align:center;cursor:pointer;line-height:1}.goaltabs{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:8px 0 12px}.goaltab{border:1px solid #e2e7f3;background:#f7f4f4;border-radius:999px;padding:10px 12px;font-weight:700;display:flex;align-items:center;justify-content:center;gap:8px}.goaltab .badge{background:#01010d;border:1px solid #121c35;padding:2px 8px;border-radius:999px;font-size:12px}.goal-meta.one-row>div{flex:1 1 0;background:#fff;border:1px solid var(--line);border-radius:12px;padding:8px 10px;min-width:0}.goal-meta.one-row .k{display:block;font-size:clamp(10px,2.6vw,12px);color:#6a7891}.goal-meta.one-row .v{font-weight:800;font-size:clamp(12px,3.3vw,16px)}.student-note{margin-top:10px;border-left:4px solid #2563eb;background:#f8fbff;padding:8px 10px;border-radius:8px}.student-note .sn-head{font-weight:800;font-size:13px;color:#0f1a2b;margin-bottom:4px}.student-note .sn-body{color:#1f2a44;font-size:13px;line-height:1.45}.modal-body-scroll{max-height:calc(100vh - 220px);overflow:auto;padding-right:2px}input[type=date].date-black{color:#000}@media(max-width:640px){.typeTabs{gap:8px}.typeTab{padding:8px 10px;font-size:12px}.goaltab{padding:8px 10px}.goaltab .badge{font-size:11px;padding:2px 6px;background:red;border:red}.pill{padding:4px 8px;font-size:11px}}@media(max-width:400px){.typeTab{padding:6px 8px;font-size:11px}.goaltab{padding:6px 8px}.pill{padding:3px 7px;font-size:10px}}.fab-fixed{position:fixed;right:16px;bottom:120px;width:48px;height:48px;border-radius:24px;border:1px solid #dfe6f6;background:#003092;color:#fff;font-size:24px;display:grid;place-items:center;cursor:pointer;z-index:50}.student-note{margin-top:10px;border-left:3px solid #2563eb;background:#f8fbff;padding:8px 10px;border-radius:6px}.student-note .sn-head{font-weight:800;color:#0f1a2b;margin-bottom:4px;font-size:13px}.student-note .sn-body{color:#334155;font-size:13px;line-height:1.4}.goal-meta.one-row{display:flex;gap:8px;margin-top:8px}.goal-meta.one-row>div{flex:1;min-width:0}.goal-meta.one-row .k{display:block;font-size:12px;color:#6a7891}.goal-meta.one-row .v{font-weight:800;font-size:14px;word-break:break-word}.typeTabs{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin:8px 0 10px}.typeTab{padding:8px 10px;border:1px solid #e2e7f3;background:#fff;color:#0f1a2b;border-radius:999px;font-weight:700;cursor:pointer;text-align:center;font-size:13px}.typeTab.on{background:#003092;color:#fff;border-color:#003092}.goaltabs{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:6px 0 12px}.goaltab{display:grid;grid-auto-flow:column;place-content:center;gap:8px;padding:10px 12px;border:1px solid #e2e7f3;background:#fff;color:#0f1a2b;border-radius:999px;font-weight:700;cursor:pointer}.goaltab.on{background:#003092;color:#fff;border-color:#003092}.goaltab .badge{display:inline-grid;place-items:center;min-width:22px;padding:0 6px;height:22px;border-radius:999px;background:#eef4ff;color:#003092;font-size:12px;font-weight:800}.goaltab.on .badge{background:#002a78;color:#fff}.goal-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:12px;box-shadow:var(--shadow)}.goal-head{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:8px}.pill{border:1px solid #e2e7f3;background:#f7f9ff;color:#0f1a2b;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:700}.pill.type.skill{border-left:6px solid var(--navy)}.pill.type.fitness{border-left:6px solid #2563eb}.pill.type.diet{border-left:6px solid #9c27b0}.pill.type.habit{border-left:6px solid #fb8c00}.pill.status.ok{color:#047857;background:#ecfdf5;border-color:#bbf7d0}.pill.status.warn{color:#b45309;background:#fff7ed;border-color:#fde68a}.pill.status.bad{color:#b91c1c;background:#fef2f2;border-color:#fecaca}.goal-text{font-size:14px;color:#0f1a2b}.coach{margin-top:10px;border-top:1px dashed #e3e8f4;padding-top:8px}.coach-h{font-weight:800;font-size:13px;color:#0f1a2b;margin-bottom:4px}.coach-b{color:#334155;font-size:13px}@media(max-width:520px){.typeTab,.goaltab{font-size:12px;padding:8px 10px}.goaltab .badge{min-width:20px;height:20px;font-size:11px}.goal-meta.one-row .v{font-size:13px}}.panther-spinner{display:inline-block;width:80px;height:80px;background:url(https://tbspanthers.british-school.org/wp-content/uploads/2025/10/panthers-running.gif) center/contain no-repeat;vertical-align:middle}.date-badge{width:62px;min-width:62px;border-radius:10px;overflow:hidden;text-align:center;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;flex-shrink:0;border:1px solid #e6eaf5;height:fit-content}.date-badge .month{background:#003092;color:#fff;font-weight:600;font-size:13px;line-height:1;padding:8px 0;width:100%;letter-spacing:1px;text-transform:uppercase}.date-badge .day{background:#fff;color:#0f1a2b;font-size:24px;font-weight:800;line-height:1.1;padding:10px 0 14px;width:100%}.date-badge.fixed{align-self:flex-start}.meal-minihead{font-size:10px;color:#6b7280;margin:6px 0 4px}.meal-minihead em{font-style:italic}.diet-items-compact{list-style:none;padding:0;margin:0}.diet-items-compact li{padding:8px 0;border-bottom:1px solid #eef1f6}.diet-items-compact li:last-child{border-bottom:none}.diet-items-compact .food-name{font-weight:400;font-size:10px;color:#0e1630}.diet-items-compact .food-meta{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:#6b7280}.diet-items-compact .food-meta .kcal b{font-weight:700}.nutri-box{display:flex;flex-direction:column;align-items:center;justify-content:center}.donut-wrap{display:flex;align-items:center;gap:10px}.donut-base{fill:none;stroke:#edf1f7}.donut-center{font-size:12px;fill:#0e1630}.donut-legend{display:flex;flex-direction:column;gap:4px}.legend-row{display:flex;align-items:center;gap:8px;font-size:12px;color:#0e1630}.legend-row .swatch{width:10px;height:10px;border-radius:2px;display:inline-block}.donut-seg{fill:none}.donut-seg.seg-0{stroke:#3b82f6}.donut-seg.seg-1{stroke:#10b981}.donut-seg.seg-2{stroke:#f59e0b}.donut-seg.seg-3{stroke:#8b5cf6}.donut-seg.seg-4{stroke:#ef4444}.donut-seg.seg-5{stroke:#6b7280}.donut-seg.seg-6{stroke:#0ea5e9}.legend-row .swatch.seg-0{background:#3b82f6}.legend-row .swatch.seg-1{background:#10b981}.legend-row .swatch.seg-2{background:#f59e0b}.legend-row .swatch.seg-3{background:#8b5cf6}.legend-row .swatch.seg-4{background:#ef4444}.legend-row .swatch.seg-5{background:#6b7280}.legend-row .swatch.seg-6{background:#0ea5e9}.donut-empty{font-size:12px;color:#6b7280}.panther-spinner{display:inline-block;width:80px;height:80px;background:url(https://tbspanthers.british-school.org/wp-content/uploads/2025/10/panthers-running.gif) center/contain no-repeat;vertical-align:middle}.panther-spinner.white{filter:brightness(0) invert(1) contrast(200%)}.modal .btn.ghost,.modal .btn-outline{background:#fff!important;color:#003092!important;border:1px solid #003092!important}.modal .icon-btn,.modal .icon-btn:focus{background:#fff!important}.modal .icon-btn svg path,.modal .icon-btn svg line,.modal .icon-btn svg polyline{stroke:#003092!important}.modal .btn.primary{background:#003092!important;color:#fff!important;border-color:#003092!important}.goals-page .tab-btn,.goals-page .filter-tab{transition:background .25s,color .25s}.goals-page .tab-btn.active,.goals-page .filter-tab.active,.goals-page .tab-btn:focus,.goals-page .filter-tab:focus{background:#003092!important;color:#fff!important;border-color:#003092!important}.goals-page .tab-btn:hover,.goals-page .filter-tab:hover{background:#003092cc!important;color:#fff!important}.login-card{width:min(92vw,430px);background:#000000e0;border:1px solid rgba(255,255,255,.22);border-radius:24px;padding:22px 18px;color:#fff;box-shadow:0 20px 48px #00000073;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}.login-card h1{margin:10px 0 16px;font-size:26px;text-align:center}.modal-backdrop{position:fixed;inset:0;background:#0000008c;display:flex;align-items:center;justify-content:center;z-index:999}.modal-card{width:min(92vw,520px);background:#fff;border-radius:20px;overflow:hidden;box-shadow:0 25px 60px #00000040;animation:slideUp .25s ease-out}@keyframes slideUp{0%{transform:translateY(12px);opacity:0}to{transform:translateY(0);opacity:1}}.modal-head{padding:18px 20px;border-bottom:1px solid #e6e9f2;font-size:20px;font-weight:700;color:#0e1630;display:flex;justify-content:space-between;align-items:center}.close-x{background:none;border:none;font-size:22px;cursor:pointer;color:#001c55}.modal-body{padding:20px;display:flex;flex-direction:column;gap:18px}.field label{font-size:14px;font-weight:600;margin-bottom:6px;color:#7c8087;display:block}.field input{width:95%;background:#f7f9fd;border:1px solid #d4daea;border-radius:10px;padding:10px 12px;font-size:15px;transition:.2s}.field input:focus{border-color:#003092;outline:none;background:#fff;box-shadow:0 0 0 3px #0030922e}.field.inline-2{display:grid;grid-template-columns:1fr 1fr;gap:16px}.hint{font-size:13px;color:#6b7280;margin-top:-6px}.status-msg{font-size:14px;margin-top:6px}.status-msg.ok{color:#0b7a34}.status-msg.err{color:#b71c1c}.modal-actions{padding:16px 20px;background:#f8fafc;border-top:1px solid #e6e9f2;display:flex;justify-content:flex-end;gap:12px}.btn{font-size:15px;padding:9px 16px;border-radius:10px;cursor:pointer;border:1px solid #d1d6e6;background:#fff;color:#003092;transition:.15s}.btn:hover{background:#e9eef9}.btn.primary{background:#003092;border-color:#003092;color:#fff}.btn.primary:hover{background:#001e62}.btn.primary:disabled{opacity:.6;cursor:not-allowed}.dashboard-page,.goals-page,.container.with-sticky-nav{background:var(--bg);min-height:var(--app-height, 100vh)}.page-body.diet-inner-page .container.with-sticky-nav{padding-top:25px!important;padding-bottom:calc(var(--bottom-nav-h, 64px) + 5px + env(safe-area-inset-bottom,0px))!important}.analysis-page{background:var(--bg);min-height:var(--app-height, 100vh);max-width:960px;margin:0 auto;padding:0 1px 5px;display:flex;flex-direction:column;gap:16px}.analysis-page .filters-bar{background:#fff;border-radius:18px;padding:12px 14px 14px;box-shadow:0 8px 22px #0f172a0f}.analysis-page .filters{display:flex;flex-direction:column;gap:12px}.analysis-page .filters .dates{display:flex;gap:12px;width:100%}@media(max-width:480px){.analysis-page .filters .dates{flex-direction:column}}.analysis-page .help{margin-top:6px;font-size:12px;color:#b45309}.chart-card{background:#f6f7ff;border-radius:18px;padding:12px 16px 16px;margin-top:4px;box-shadow:0 10px 24px #0f172a0a}.chart-head{margin-bottom:8px}.chart-title{font-weight:600;font-size:15px;color:#0f172a}.chart-body{margin-top:4px}.charts{display:flex;flex-direction:column;gap:16px}.empty{display:flex;align-items:center;justify-content:center;text-align:center;padding:28px 12px;color:#6b7280;border-radius:16px;border:1px dashed #d6deec;background:#f9fafb}.chart-tooltip{background:#fff;border:1px solid #e6eaf5;border-radius:10px;padding:8px 10px;box-shadow:0 10px 24px #07143d14}.chart-tooltip__title{font-weight:700;margin-bottom:2px;font-size:13px}.chart-tooltip__body{font-size:12px;color:#57627a}.spacer-bottom{height:12px}.filters-bar{padding:16px 16px 0}.filters{display:flex;flex-direction:column;gap:16px}.msel{width:100%}.dates{display:flex;gap:12px}.dates .field{flex:1}@media(max-width:640px){.filters-bar{padding:12px 12px 0}.dates{flex-direction:column;gap:8px}}.ps-field{display:flex;flex-direction:column;gap:6px;margin-bottom:12px;position:relative}.ps-field--full{width:100%}.ps-field--disabled{opacity:.55;pointer-events:none}.ps-label{font-size:14px;font-weight:600;color:#4b5563}.ps-control{width:100%;display:flex;align-items:center;justify-content:space-between;padding:10px 14px;border-radius:999px;border:1px solid #e5e7f3;background:#fff;box-shadow:0 4px 14px #0f172a0a;font-size:14px;color:#111827;cursor:pointer;text-align:left}.ps-control--open{border-color:#003092;box-shadow:0 6px 22px #0030922e}.ps-value{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ps-value--placeholder{color:#9ca3af}.ps-chevron{margin-left:8px;display:inline-flex}.ps-menu{position:absolute;left:0;right:0;top:100%;margin-top:6px;background:#fff;border-radius:16px;border:1px solid #e5e7f3;box-shadow:0 14px 30px #0f172a24;z-index:40;max-height:260px;overflow-y:auto}.ps-option{width:100%;padding:9px 14px;border:0;background:#fff;text-align:left;font-size:14px;color:#111827;cursor:pointer}.ps-option:hover{background:#f3f4ff}.ps-option--active{background:#003092;color:#fff}.coach-body{font-size:13px;line-height:1.5;font-style:italic;color:#2b2b2b;white-space:pre-wrap}.coach-toggle{display:inline-block;margin-left:6px;font-size:12px;font-style:normal;border:0;background:transparent;color:#003092;font-weight:600;cursor:pointer;text-decoration:underline}.analysis-page.container,.page-body .analysis-page,.analysis-page .container{max-width:none!important;width:100%!important;margin:0!important;padding-left:6px!important;padding-right:6px!important}.diet-inner-page.container,.page-body .diet-inner-page,.diet-inner-page .container{max-width:none!important;width:100%!important}.page-body{padding-top:calc(88px + env(safe-area-inset-top,0px))}.coach-like-block{border-left:4px solid #003092;background:#f7f9ff;padding:10px 12px;border-radius:8px}.coach-like__title{font-weight:800;color:#0f1a2b;margin-bottom:6px;font-size:13px}.coach-like__text{color:#334155;font-size:13px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.coach-like__text.expanded{-webkit-line-clamp:unset;display:block}.report-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.report-title{font-weight:800;font-size:16px;color:#0f1a2b}.report-badge{border:1px solid #e5eaf6;padding:4px 10px;border-radius:999px;font-size:12px;font-weight:700}.report-badge.ready{background:#ecfdf5;color:#047857;border-color:#bbf7d0}.report-badge.wait{background:#fff7ed;color:#b45309;border-color:#fde68a}.report-body{margin-top:8px;color:#0f1a2b;line-height:1.5;white-space:pre-wrap}.report-empty{margin-top:8px;color:#6a7891}.report-actions{display:flex;justify-content:flex-end;margin-top:10px}
