:root{--bg:#0a0b12;--surface:#14151f;--surface2:#1b1c29;--purple:#ac5aff;--purple2:#7335dc;--ink:#f8f6ff;--muted:#a2a0b3;--line:#2c2b3a;--green:#56d7ad;--orange:#ffac75;--red:#fa8299;color-scheme:dark;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);min-height:100vh}button,input,select,textarea{font:inherit}button{cursor:pointer;border:0}button:disabled{opacity:.45;cursor:not-allowed}a{color:#c79dff;text-decoration:none}h1,h2,h3,h4,p{margin-top:0}h1,h2,h3{letter-spacing:-.7px}label{display:block;font-size:12px;font-weight:700;margin:0 0 7px;color:#c6c2d8}input,textarea,select{width:100%;min-width:0;min-height:43px;padding:12px 13px;background:#0e0f18;border:1px solid #363347;border-radius:11px;color:var(--ink);outline:none}input:focus,textarea:focus,select:focus{border-color:#a260ff;box-shadow:0 0 0 3px #a260ff25}input[type=date]{color-scheme:dark}input::placeholder,textarea::placeholder{color:#6f6d80}textarea{resize:vertical}input[type=checkbox]{width:auto;min-height:auto}.secondary{color:var(--muted)}.fine{font-size:11px;color:#8e8b9f;line-height:1.65}.tiny{font-size:10px;color:#858197}.eyebrow{font-size:10px;letter-spacing:2px;color:#ba88ff;font-weight:800}.brand{display:flex;align-items:center;gap:10px;font-size:23px;font-weight:800;letter-spacing:-1.2px;white-space:nowrap}.vmark{font-size:32px;font-weight:1000;background:linear-gradient(145deg,#bc7eff 20%,#773dec 85%);background-clip:text;-webkit-background-clip:text;color:transparent;line-height:1}.primary{display:inline-flex;align-items:center;justify-content:space-between;gap:13px;background:linear-gradient(110deg,#8546f4,#c250fb);padding:14px 20px;border-radius:12px;color:white;font-weight:800;box-shadow:0 10px 26px #9542e624;min-height:45px}.primary:hover{filter:brightness(1.1)}.outline,.subtle{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:#272136;border:1px solid #51416e;border-radius:11px;color:#e9daff;min-height:39px;padding:10px 13px;font-size:12px;font-weight:700}.outline:hover,.subtle:hover{background:#362748}.danger{color:#ffb2c1;border-color:#644250;background:#2a1921}.full{width:100%}.small{min-height:32px;padding:7px 10px;font-size:11px;border-radius:9px}.text-action{background:transparent;color:#b98aff;padding:7px;font-size:12px;font-weight:700}.badge{display:inline-flex;align-items:center;gap:4px;border-radius:30px;padding:5px 9px;background:#37234f;color:#cba1ff;font-size:10px;font-weight:800}.badge.green{background:#173d37;color:#75e8c2}.badge.orange{background:#4c3125;color:#ffc09c}.badge.red{background:#4d2536;color:#ffb2bf}.pill{padding:5px 10px;border-radius:40px;background:#292137;color:#d4adff;font-size:10px;font-weight:800;display:inline-flex}
[hidden]{display:none!important}
/* Authentication */
.auth-screen{min-height:100vh;display:grid;grid-template-columns:1.05fr .95fr;background:radial-gradient(ellipse at 82% 20%,#321744 0,transparent 45%),#090a12}.auth-hero{padding:42px max(35px,8%);position:relative;overflow:hidden;background:linear-gradient(180deg,#10111a,#171024 80%);display:flex;flex-direction:column;justify-content:space-between;min-height:100vh}.auth-hero:after{content:'';pointer-events:none;position:absolute;right:-15%;bottom:-12%;width:90%;aspect-ratio:1;background:url('/static/assets/hero-gym.webp') center/cover;border-radius:50%;opacity:.32;box-shadow:0 0 130px 90px #642ec133;mask-image:linear-gradient(0deg,black 5%,transparent 95%)}.auth-copy{position:relative;z-index:2;margin-bottom:80px;max-width:470px}.auth-copy h1{font-size:clamp(50px,6vw,86px);line-height:1.02;letter-spacing:-5px;margin:18px 0}.auth-copy h1 em{font-style:normal;color:#b05bff}.auth-copy p{color:#c9c0da;font-size:16px;line-height:1.75}.auth-tags{display:flex;flex-wrap:wrap;gap:12px;margin-top:25px}.auth-tags span{background:#221834;border:1px solid #513361;padding:11px;border-radius:30px;font-size:11px;color:#d7b4ff}.auth-side{position:relative;display:flex;justify-content:center;align-items:center;padding:24px}.auth-card{max-width:410px;width:100%;padding:20px}.auth-card h2{font-size:34px;margin:13px 0 5px}.auth-card .secondary{line-height:1.5;font-size:13px}.auth-tabs{display:flex;background:#171622;border:1px solid var(--line);padding:4px;gap:5px;border-radius:12px;margin:26px 0 22px}.auth-tabs button{background:transparent;color:#9993ae;flex:1;padding:11px 5px;border-radius:9px;font-weight:750;font-size:12px}.auth-tabs button.on{background:#392155;color:white}.auth-card form>label{margin-top:16px}.auth-card form .primary{margin-top:24px}.auth-card .fine{margin:22px 0 8px}.owner-link{font-size:11px;color:#9e83c1}.auth-mobile-brand{display:none}
/* main layout */
#appShell{display:flex;min-height:100vh}.sidebar{width:224px;flex:0 0 224px;background:#0f1018;border-right:1px solid #25232f;position:sticky;top:0;height:100vh;padding:26px 14px;display:flex;flex-direction:column;gap:23px}.sidebar .brand{padding:2px 12px}.sidebar-label{font-size:9px;color:#66667b;letter-spacing:1.5px;font-weight:850;padding:12px 13px 0}.sidebar nav{display:flex;flex-direction:column;gap:5px}.sidebar nav button{display:flex;gap:12px;text-align:left;align-items:center;color:#b1adbd;background:transparent;padding:12px;border-radius:11px;font-weight:650;font-size:13px}.sidebar nav button .ico{width:22px;text-align:center;font-size:18px}.sidebar nav button.active{color:white;background:linear-gradient(105deg,#4e278d,#35205b)}.sidebar nav button:hover{background:#282033}.side-bottom{margin-top:auto;padding:10px;display:grid;gap:17px}.app-area{flex:1;min-width:0}.topbar{height:72px;padding:0 31px;display:flex;justify-content:space-between;align-items:center;background:#101119;border-bottom:1px solid #24232e;position:sticky;top:0;z-index:20}.breadcrumb{font-size:13px;color:#a19bac;font-weight:600}.top-actions{display:flex;align-items:center;gap:14px}.membership{border-radius:20px;padding:7px 11px;background:#272139;color:#cda8ff;font-weight:800;font-size:10px}.avatar{width:35px;height:35px;border-radius:50%;background:linear-gradient(130deg,#a95aff,#542db5);font-weight:900;color:white}.mobile-brand{display:none}.main-content{max-width:1250px;padding:32px;margin:auto}.bottom-nav{display:none}
/* components */
.page-title{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:24px;flex-wrap:wrap}.page-title h1{font-size:31px;margin:5px 0}.page-title p{font-size:13px;color:var(--muted);margin:0}.page-tools{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.date-field{width:152px;min-height:37px;padding:8px 10px;font-size:11px}.grid2{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(265px,1fr);gap:17px}.grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.grid4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.cards2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.panel,.stat-card{background:linear-gradient(145deg,#171821,#11121b);border:1px solid #292936;border-radius:16px;padding:21px;min-width:0}.panel h2{font-size:16px;margin:0 0 14px}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:15px}.panel-head h2{margin:0}.stat-card .stat-value{font-size:29px;letter-spacing:-1px;font-weight:850;margin:10px 0 2px}.stat-card .stat-label{font-size:11px;color:#ada8ba;font-weight:650}.stat-card .stat-note{color:#807c91;font-size:10px;margin-top:9px}.stat-icon{font-size:20px;color:#b788ff}.stat-value.green{color:#6cdebb}.stat-value.purple{color:#b96eff}.stat-value.orange{color:#ffb585}.hero-banner{position:relative;display:flex;align-items:center;justify-content:space-between;gap:25px;min-height:195px;overflow:hidden;padding:28px;border-radius:17px;border:1px solid #393047;background:linear-gradient(90deg,#17131ef7 0%,#1e1725d1 48%,#17121a33 75%),url('/static/assets/hero-gym.webp') 75% 45%/cover;margin-bottom:14px}.hero-banner h2{font-size:29px;max-width:360px;margin:8px 0}.hero-banner p{font-size:12px;color:#ddd1e6;max-width:360px;line-height:1.55;margin-bottom:0}.hero-banner .primary{flex-shrink:0}.feature{background:#181923;border:1px solid #292937;border-radius:15px;padding:17px;display:flex;gap:13px;min-height:121px;cursor:pointer;text-align:left;color:var(--ink)}.feature:hover{border-color:#8246cf;transform:translateY(-1px)}.feature-icon{width:44px;height:44px;flex:0 0 44px;display:grid;place-items:center;border-radius:13px;font-size:23px;background:linear-gradient(145deg,#6a30b7,#48236b)}.feature-icon.blue{background:linear-gradient(145deg,#345ac1,#252e70)}.feature-icon.brown{background:linear-gradient(145deg,#916d55,#50392e)}.feature-icon.purple{background:linear-gradient(145deg,#7545ac,#45246b)}.feature strong{display:block;font-size:14px;margin-bottom:6px}.feature small{font-size:11px;color:#a8a2b6;line-height:1.5;display:block}.summary-donut{width:164px;height:164px;flex:0 0 164px;border-radius:50%;display:grid;place-items:center;position:relative}.summary-donut:after{content:'';position:absolute;inset:15px;background:#14151e;border-radius:50%}.donut-content{z-index:1;text-align:center;font-size:25px;font-weight:850;letter-spacing:-1px}.donut-content small{display:block;font-size:11px;color:#aba6ba;font-weight:500;letter-spacing:0}.macro-stack{display:flex;flex-direction:column;gap:14px;flex:1}.macro-row{display:flex;justify-content:space-between;align-items:center;gap:8px;color:#dedbe7;font-size:11px;margin-bottom:7px}.macro-track{height:6px;border-radius:9px;background:#2e2b3b;overflow:hidden}.macro-fill{height:100%;border-radius:8px}.macro-zone{display:flex;align-items:center;gap:20px}.row-item{display:flex;align-items:center;gap:12px;min-width:0;background:#1c1b27;border:1px solid #2e2a3b;border-radius:12px;padding:12px;margin-bottom:8px}.row-icon{background:#37264f;color:#d6b5ff;display:grid;place-items:center;border-radius:10px;font-size:19px;width:39px;height:39px;flex:0 0 39px}.row-main{flex:1;min-width:0}.row-main b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px}.row-main span{display:block;margin-top:5px;color:#a5a1b5;font-size:10px}.row-right{font-size:12px;font-weight:800;text-align:right;white-space:nowrap}.xbtn{background:transparent;color:#b3a2ca;font-size:19px;padding:4px 7px}.xbtn:hover{color:#ff929e}.empty{color:#9690a9;font-size:12px;padding:25px 5px;text-align:center;line-height:1.8}.section-space{margin-top:16px}.chart{height:153px;display:flex;justify-content:space-around;gap:9px;align-items:end;padding-bottom:19px;border-bottom:1px solid #303040}.bar-wrap{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;flex:1;gap:4px}.bar{background:linear-gradient(0deg,#7132c8,#bf64ff);border-radius:5px 5px 0 0;width:min(80%,32px);min-height:3px}.bar-day{font-size:10px;color:#aaa4b8;position:relative;top:18px}.routine-card{background:#171722;border:1px solid #302b3d;border-radius:16px;padding:18px;min-height:197px;display:flex;flex-direction:column;gap:10px}.routine-icon{font-size:27px}.routine-card h3{font-size:16px;margin:0}.routine-card p{font-size:11px;color:#aaa3b8;line-height:1.55;margin:0;flex:1}.routine-card .details{display:flex;gap:6px;flex-wrap:wrap}.plan-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.plan-card{background:#171721;border:1px solid #383047;border-radius:16px;padding:20px;min-height:228px;display:flex;flex-direction:column}.plan-card.popular{border:2px solid #b267ff;background:linear-gradient(160deg,#281832,#171620)}.plan-card h3{margin:0 0 12px}.plan-price{font-size:27px;font-weight:850}.plan-price small{font-size:11px;font-weight:500;color:#a6a0b4}.plan-card ul{margin:14px 0 24px;padding-left:15px;color:#c6c0d2;font-size:11px;line-height:2}.plan-card .primary,.plan-card .outline{margin-top:auto}.pro-hero{text-align:center;background:radial-gradient(circle at 50% 0,#55226e 0,transparent 45%);padding:27px 10px 15px}.crown{color:#b866ff;font-size:54px}.pro-hero h1{font-size:31px;margin:14px 0 8px}.pro-hero h1 span{color:#bb69fc}.pro-hero p{color:#bdb6cb;font-size:13px}.pro-benefits{margin:24px auto;max-width:525px}.pro-benefits div{padding:9px 0;color:#e5dbe9;font-size:13px}.pro-benefits b{color:#c678ff;margin-right:9px}.owner-table-wrap{overflow:auto;max-width:100%}.owner-table{width:100%;border-collapse:collapse;min-width:620px;white-space:nowrap}.owner-table th,.owner-table td{padding:11px 10px;text-align:left;font-size:11px;border-bottom:1px solid #2b2938}.owner-table th{color:#aaa5b8}.owner-table td{color:#e5dfea}.owner-table .outline,.owner-table .subtle{padding:6px 8px;min-height:30px}.actions{display:flex;gap:5px;flex-wrap:wrap}.kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.inputs2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.form-stack{display:grid;gap:14px}.field{min-width:0}.hint{background:#2b2134;border:1px solid #554069;padding:12px;border-radius:12px;color:#d6c7e8;font-size:11px;line-height:1.65}.hint.warning{border-color:#694c36;background:#35261e;color:#ffd1aa}.scan-upload{width:100%;background:linear-gradient(145deg,#20152d,#16141f);border:1px dashed #874fc8;border-radius:16px;min-height:205px;padding:26px;color:white;text-align:center}.scan-upload strong{display:block;font-size:18px;margin:12px}.scan-upload p{color:#aca0bb;font-size:12px;max-width:250px;margin:0 auto}.big-icon{font-size:43px}.quick-preset{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}.quick-preset button{background:#282034;border:1px solid #49365f;color:#e2ccf8;padding:8px 10px;border-radius:40px;font-size:11px}.weight-line{width:100%;height:170px}.weight-line polyline{fill:none;stroke:#a755ff;stroke-width:3}.weight-line circle{fill:#d3a0ff}.modal-shade{position:fixed;inset:0;background:#05040acb;z-index:80;display:grid;place-items:center;padding:12px}.modal{width:min(500px,100%);max-height:calc(100dvh - 28px);overflow:auto;background:#191824;border:1px solid #514063;border-radius:19px;padding:22px;box-shadow:0 24px 80px #000c}.modal-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:17px}.modal-head h2{margin:0;font-size:20px}.icon-button{background:#30283d;color:#f1e6fa;width:34px;height:34px;display:grid;place-items:center;border-radius:10px}.toast{position:fixed;bottom:22px;right:22px;background:#2a2140;border:1px solid #7944a9;color:#f7eaff;padding:13px 18px;border-radius:12px;max-width:calc(100vw - 24px);box-shadow:0 7px 40px #0008;opacity:0;pointer-events:none;transition:.18s;z-index:90;font-size:12px}.toast.on{opacity:1}.toast.error{background:#482630;border-color:#a7546a}.separator{height:1px;background:var(--line);margin:17px 0}
@media(max-width:1110px){.grid4,.kpi-grid{grid-template-columns:repeat(2,1fr)}.grid3{grid-template-columns:repeat(2,1fr)}}
@media(max-width:850px){.sidebar{display:none}.mobile-brand{display:flex;font-size:19px}.mobile-brand .vmark{font-size:27px}.breadcrumb{display:none}.topbar{height:64px;padding:0 17px}.bottom-nav{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:40;height:calc(68px + env(safe-area-inset-bottom));padding:5px 5px calc(4px + env(safe-area-inset-bottom));border-top:1px solid #2b2636;background:#101018ed;backdrop-filter:blur(20px);justify-content:space-around}.bottom-nav button{display:grid;justify-items:center;gap:3px;min-width:55px;padding:7px 4px;border-radius:10px;background:transparent;color:#9992a8;font-size:10px}.bottom-nav button span{font-size:21px}.bottom-nav button.active{color:#bc74ff}.main-content{padding:23px 15px 100px}.auth-screen{grid-template-columns:1fr}.auth-hero{display:none}.auth-mobile-brand{display:flex;position:absolute;top:35px;left:30px}.auth-side{min-height:100vh;padding:70px 18px}.auth-card{padding:15px}}
@media(max-width:590px){.page-title h1{font-size:27px}.page-title{align-items:flex-start}.grid2{grid-template-columns:1fr}.grid3{grid-template-columns:1fr 1fr}.grid4,.kpi-grid{grid-template-columns:repeat(2,1fr)}.main-content{padding:20px 14px 93px}.panel{padding:16px}.hero-banner{min-height:175px;padding:20px;align-items:flex-start;flex-direction:column;justify-content:center;gap:10px;background-position:64% 50%}.hero-banner h2{font-size:24px;max-width:240px}.hero-banner .primary{font-size:11px;padding:9px 12px;min-height:35px}.macro-zone{flex-direction:column;align-items:center}.macro-stack{width:100%}.cards2{gap:9px}.feature{padding:12px;min-height:115px;gap:9px}.feature-icon{width:39px;height:39px;flex-basis:39px;font-size:20px}.feature strong{font-size:12px}.feature small{font-size:10px}.stat-card{padding:15px}.stat-card .stat-value{font-size:25px}.plan-cards{grid-template-columns:1fr;gap:11px}.pro-hero h1{font-size:28px}.inputs2{grid-template-columns:1fr}.routine-card{padding:13px}.routine-card h3{font-size:13px}.routine-card p{font-size:10px}.owner-table{min-width:660px}.top-actions{gap:7px}}
@media(max-width:360px){.grid3{grid-template-columns:1fr}.feature{min-height:108px}.brand{font-size:18px}}

/* Touch-friendly membership entry on mobile and desktop. */
#membershipBadge{cursor:pointer;line-height:1.25;font-family:inherit}#membershipBadge:hover{filter:brightness(1.2)}

/* Visible return link for accidental Admin Login visits, including narrow phones. */
.return-member{display:inline-flex;align-items:center;gap:8px;margin:0 0 24px;min-height:43px;padding:10px 15px;color:#e4c9ff;background:#21162d;border:1px solid #68448d;border-radius:12px;font-size:13px;font-weight:750;max-width:100%;}
.return-member:hover,.return-member:focus-visible{background:#42265c;color:white;outline:2px solid #9563c5;outline-offset:2px;}
.return-member[hidden]{display:none!important}

/* Track Yourself V1.5 brand lockup (phone-first) */
.brand{min-width:0;letter-spacing:-.5px}
.brand-text{display:flex;flex-direction:column;min-width:0;font-size:18px;line-height:1.17;font-weight:850;white-space:nowrap;letter-spacing:-.55px}
.brand-text small{font-size:7.4px;letter-spacing:1.12px;color:#b38bcf;font-weight:700;line-height:1.6}
.vmark{flex-shrink:0}
.sidebar .brand{padding-left:8px}
.mobile-brand .brand-text,.auth-mobile-brand .brand-text{font-size:16px}
.mobile-brand .brand-text small,.auth-mobile-brand .brand-text small{font-size:6px;letter-spacing:.75px}
@media(max-width:360px){.mobile-brand .brand-text{font-size:14px}.mobile-brand .brand-text small{font-size:5.6px}}
