:root{--brand: #22c873;--on-brand: #0b1220;--bg: #0b1220;--surface: #111a2c;--surface-2: #18233a;--surface-3: #22304c;--line: #26334d;--text: #f4f2ec;--muted: #a9b2c3;--faint: #8590a3;--green: #22c873;--yellow: #ffc53d;--red: #e5484d;--green-bg: color-mix(in srgb, var(--green) 16%, var(--surface));--yellow-bg: color-mix(in srgb, var(--yellow) 16%, var(--surface));--red-bg: color-mix(in srgb, var(--red) 18%, var(--surface));--radius: 20px;--radius-sm: 12px;--font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;--nav-h: 72px;color-scheme:dark;font-family:var(--font);-webkit-font-smoothing:antialiased}*{box-sizing:border-box}html{-webkit-text-size-adjust:100%}body{margin:0;background:var(--bg);color:var(--text);line-height:1.5;font-size:16px}h1,h2,h3{margin:0;line-height:1.15}h2{font-size:1.15rem;font-weight:700}h3{font-size:1rem}p{margin:0}a{color:var(--brand);text-decoration:none}a:hover{text-decoration:underline}code{background:var(--surface-3);padding:.1rem .4rem;border-radius:6px}:focus-visible{outline:2px solid var(--brand);outline-offset:2px}.muted{color:var(--muted)}.small{font-size:.875rem}.error{color:var(--red);font-weight:600}.ok,.ok-line{color:var(--green);font-weight:600}.ok-line{display:flex;align-items:center;gap:8px}.center-text{text-align:center}.ico{flex-shrink:0}.footnote{margin-top:16px}.display{font-size:clamp(1.9rem,6.5vw,2.75rem);font-weight:800;font-stretch:112%;letter-spacing:-.03em;line-height:1.02}.display-sm,.content>h1{font-size:clamp(1.6rem,5vw,2.1rem);font-weight:800;font-stretch:112%;letter-spacing:-.03em;margin-bottom:16px}.page-head .display-sm{margin-bottom:0}.eyebrow{display:inline-flex;align-items:center;gap:8px;font-size:.78rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--brand)}.logo{display:inline-flex;align-items:center;gap:calc(var(--logo-size) * .32);color:var(--text)}.mark-tile{fill:var(--surface-3)}.mark-line{fill:none;stroke:var(--brand);stroke-width:5;stroke-linecap:round;stroke-linejoin:round}.wordmark{display:inline-flex;align-items:flex-end;font-size:calc(var(--logo-size) * .95);font-weight:850;font-stretch:118%;letter-spacing:-.035em;line-height:.85}.wordmark-dot{width:calc(var(--logo-size) * .2);height:calc(var(--logo-size) * .2);border-radius:50%;background:var(--brand);margin:0 0 calc(var(--logo-size) * .1) calc(var(--logo-size) * .06)}.splash{min-height:100vh;display:grid;place-items:center}.shell{min-height:100vh}.topbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:16px;padding:12px max(16px,calc((100vw - 1100px)/2));background:color-mix(in srgb,var(--bg) 88%,transparent);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}.topbar-brand:hover{text-decoration:none}.topbar-end{margin-left:auto;display:flex;align-items:center;gap:12px}.gym-name{display:inline-flex;align-items:center;gap:8px;color:var(--muted);font-size:.875rem}.live-dot{width:8px;height:8px;border-radius:50%;background:var(--faint);display:inline-block}.live-dot.on{background:var(--green);box-shadow:0 0 0 4px color-mix(in srgb,var(--green) 25%,transparent)}.nav{display:flex;gap:4px}.nav-link{display:flex;align-items:center;gap:8px;padding:10px 14px;border-radius:12px;color:var(--muted);font-weight:600;font-size:.95rem}.nav-link:hover{color:var(--text);background:var(--surface-2);text-decoration:none}.nav-link.active{color:var(--text);background:var(--surface-2)}.nav-link.active .ico{color:var(--brand)}.user-menu{position:relative}.avatar{width:40px;height:40px;border-radius:50%;border:0;cursor:pointer;background:var(--surface-3);color:var(--text);font:700 1rem var(--font)}.menu{position:absolute;right:0;top:calc(100% + 8px);min-width:220px;z-index:30;background:var(--surface-2);border:1px solid var(--line);border-radius:16px;padding:8px;box-shadow:0 16px 40px #00000059}.menu-head{display:flex;flex-direction:column;padding:8px 10px 12px;border-bottom:1px solid var(--line);margin-bottom:6px}.menu-item{width:100%;display:flex;align-items:center;gap:10px;padding:10px;border-radius:10px;background:none;border:0;color:var(--text);font:600 .95rem var(--font);cursor:pointer}.menu-item:hover{background:var(--surface-3)}.content{max-width:1100px;margin:0 auto;padding:24px 16px 48px}.page.narrow{max-width:680px;margin:0 auto}.page-head{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;margin-bottom:20px;flex-wrap:wrap}.back-link{display:inline-flex;align-items:center;gap:6px;color:var(--muted);font-weight:600;margin-bottom:12px}@media (max-width: 899px){.topbar{-webkit-backdrop-filter:none;backdrop-filter:none;background:var(--bg)}.nav{position:fixed;left:0;right:0;bottom:0;z-index:20;justify-content:space-around;gap:0;padding:6px 4px calc(6px + env(safe-area-inset-bottom));background:color-mix(in srgb,var(--surface) 94%,transparent);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-top:1px solid var(--line)}.nav-link{flex:1;flex-direction:column;gap:3px;padding:8px 2px;font-size:.72rem;min-height:56px;justify-content:center}.nav-link.active{background:none}.content{padding-bottom:calc(var(--nav-h) + 40px + env(safe-area-inset-bottom))}}@media (max-width: 520px){.gym-name{display:none}}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:20px;margin-bottom:16px}.card>h2{margin-bottom:14px}.card>h2+.muted{margin:-8px 0 14px}.card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:16px}.card-head h2{margin-bottom:2px}.card-link{display:flex;align-items:center;justify-content:space-between;margin:16px -20px -20px;padding:16px 20px;border-top:1px solid var(--line);color:var(--text);font-weight:600;border-radius:0 0 var(--radius) var(--radius)}.card-link:hover{background:var(--surface-2);text-decoration:none}.link-button{width:calc(100% + 40px);background:none;border-left:0;border-right:0;border-bottom:0;font:600 1rem var(--font);cursor:pointer;text-align:left}.panel-grid{display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));align-items:start;margin-bottom:16px}.panel-grid>.card{margin-bottom:0}.people{display:flex;flex-direction:column;align-items:flex-end}.people strong{font-size:2rem;font-weight:800;font-stretch:112%;line-height:1}.skeleton{min-height:260px;background:var(--surface)}.greeting{margin-bottom:16px}.greeting .muted{font-size:.9rem}.greeting .muted:first-letter,.capitalize-first:first-letter{text-transform:uppercase}.greeting-title{font-size:1.35rem;font-weight:700}.hero{position:relative;overflow:hidden;background:var(--surface-2);border:1px solid var(--line);border-radius:28px;padding:28px 24px 24px;margin-bottom:16px;display:flex;flex-direction:column;gap:14px;align-items:flex-start}.hero:after{content:"";position:absolute;right:-24px;top:6px;width:260px;height:130px;pointer-events:none;opacity:.1;background:var(--brand);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 60'%3E%3Cpath d='M0 34 H34 L43 22 L54 50 L66 6 L75 34 H120' fill='none' stroke='black' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 60'%3E%3Cpath d='M0 34 H34 L43 22 L54 50 L66 6 L75 34 H120' fill='none' stroke='black' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat}.hero>*{position:relative;z-index:1}.hero-switch .eyebrow{color:var(--yellow)}.hero-detail{color:var(--muted);font-size:1.05rem;max-width:52ch}.hero-more{width:100%;margin-top:4px}.hero-done{align-items:center;text-align:center;padding-top:40px}.hero-done .stack{width:100%}.done-badge{width:88px;height:88px;border-radius:50%;display:grid;place-items:center;background:var(--green);color:var(--bg)}.done-badge.partial{background:var(--surface-3);color:var(--green);border:3px solid var(--green)}.reasons{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px}.pick-list{list-style:none;margin:12px 0 0;padding:0;display:flex;flex-direction:column;gap:8px}.pick-row{display:flex;align-items:center;gap:12px;padding:14px 16px;border-radius:14px;background:var(--surface);border:1px solid var(--line);color:var(--text)}.pick-row:hover{border-color:var(--brand);text-decoration:none}.pick-name{font-weight:700;flex:1}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 20px;border-radius:14px;border:1px solid var(--brand);background:var(--brand);color:var(--on-brand);font:700 1rem var(--font);cursor:pointer;text-decoration:none;transition:transform .08s ease,filter .15s ease}.btn:hover{filter:brightness(1.08);text-decoration:none}.btn:active{transform:scale(.98)}.btn:disabled{opacity:.45;cursor:not-allowed;transform:none;filter:none}.btn-lg{min-height:56px;padding:0 24px;font-size:1.08rem;border-radius:16px}.btn-block,.stack .btn{width:100%}.btn-ghost,.btn.ghost{background:transparent;color:var(--text);border-color:var(--line)}.btn-ghost:hover,.btn.ghost:hover{background:var(--surface-2);filter:none}.btn-sm,.btn.small{min-height:40px;padding:0 14px;font-size:.9rem;border-radius:12px}.btn.danger,.icon.danger,.icon-btn.danger{color:var(--red)}.stack{display:flex;flex-direction:column;gap:10px;margin-top:8px}.link{background:none;border:0;padding:4px 0;color:var(--brand);font:600 .95rem var(--font);cursor:pointer}.link:disabled{color:var(--faint);cursor:default}.link.small{font-size:.85rem}.icon-btn,.icon{display:inline-grid;place-items:center;width:40px;height:40px;border-radius:12px;background:var(--surface-2);border:1px solid var(--line);color:var(--text);cursor:pointer;font-size:1.1rem}.icon-btn:hover,.icon:hover{border-color:var(--faint);text-decoration:none}.icon-btn:disabled{opacity:.35;cursor:default}label,.field{display:flex;flex-direction:column;gap:6px;font-size:.875rem;font-weight:600;color:var(--muted)}.field.grow{flex:1}label.inline{flex-direction:row;align-items:center;gap:8px}label.check{flex-direction:row;align-items:center;gap:8px;color:var(--text);font-weight:500}input,select{font:500 1rem var(--font);color:var(--text);background:var(--surface-2);border:1px solid var(--line);border-radius:var(--radius-sm);padding:0 14px;min-height:48px;min-width:0;width:100%}input::placeholder{color:var(--faint)}input:focus,select:focus{outline:2px solid var(--brand);outline-offset:-1px;border-color:transparent}input[type=color]{padding:4px}input[type=checkbox]{width:20px;height:20px;min-height:0;accent-color:var(--brand)}label.inline input,input.narrow{width:110px}fieldset{border:1px solid var(--line);border-radius:var(--radius-sm);padding:12px;margin:0}legend{color:var(--muted);padding:0 6px}.checks{display:flex;flex-wrap:wrap;gap:10px 18px}.form-grid{display:grid;gap:14px;grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}.form-grid .span,.form-grid h3{grid-column:1 / -1}.form-actions{display:flex;gap:10px;flex-wrap:wrap}.form-actions .btn-lg{flex:1}.row{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap;margin-top:12px}.row>input,.row>select{flex:1;min-width:160px}.grid{display:grid;gap:16px;grid-template-columns:repeat(auto-fill,minmax(300px,1fr))}.grid>.card{margin-bottom:0}.chip,.pill{display:inline-flex;align-items:center;gap:6px;padding:5px 12px;border-radius:999px;font-size:.82rem;font-weight:700;white-space:nowrap}.chip-neutral{background:var(--surface-3);color:var(--muted)}.chip-green,.pill.green{background:var(--green-bg);color:var(--green)}.chip-yellow,.pill.yellow{background:var(--yellow-bg);color:var(--yellow)}.chip-red,.pill.red{background:var(--red-bg);color:#ff7a7e}.chip-button{border:1px solid var(--line);background:var(--surface-2);color:var(--text);cursor:pointer;font-family:var(--font);min-height:36px}.chip-button:hover{border-color:var(--brand)}h2 .chip,strong .chip{margin-left:8px;vertical-align:middle;font-size:.72rem;padding:3px 9px}.dot{display:inline-block;width:10px;height:10px;border-radius:50%;flex-shrink:0}.dot.green{background:var(--green)}.dot.yellow{background:var(--yellow)}.dot.red{background:var(--red)}.legend{list-style:none;margin:0 0 16px;padding:0;display:flex;flex-wrap:wrap;gap:6px 18px;color:var(--muted);font-size:.875rem}.legend li{display:inline-flex;align-items:center;gap:8px}.zone-rows{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:14px}.zone-row{display:grid;grid-template-columns:minmax(90px,1fr) 2fr auto;align-items:center;gap:12px}.zone-row-name{font-weight:600}.meter{height:10px;border-radius:5px;background:var(--surface-3);overflow:hidden}.meter-fill{display:block;height:100%;border-radius:5px}.meter-fill.green,.unit.green{background:var(--green)}.meter-fill.yellow,.unit.yellow{background:var(--yellow)}.meter-fill.red,.unit.red{background:var(--red)}.zones{display:grid;gap:16px;grid-template-columns:repeat(auto-fill,minmax(300px,1fr))}.zones .card{margin:0}.zone-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:4px}.eq-list{list-style:none;padding:0;margin:0}.eq{padding:14px 0;border-top:1px solid var(--line)}.eq:first-child{border-top:0}.eq-head,.eq-foot{display:flex;justify-content:space-between;align-items:center;gap:8px}.eq-name{font-weight:700}.eq-free{font-weight:700;font-size:.9rem}.eq-free.green{color:var(--green)}.eq-free.yellow{color:var(--yellow)}.eq-free.red{color:#ff7a7e}.units{display:flex;gap:4px;margin:10px 0 6px}.unit{flex:1;height:10px;border-radius:5px;background:var(--surface-3)}.week{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(7,1fr);gap:6px}.week-day{display:flex;flex-direction:column;align-items:center;gap:6px}.week-dot{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;border:2px solid var(--surface-3);color:var(--bg)}.week-day.completed .week-dot{background:var(--green);border-color:var(--green)}.week-day.partial .week-dot{border-color:var(--green);background:linear-gradient(to top,var(--green) 50%,transparent 50%)}.week-day.today .week-dot{box-shadow:0 0 0 3px var(--bg),0 0 0 5px var(--text)}.week-label{font-size:.75rem;font-weight:700;color:var(--faint)}.week-day.today .week-label{color:var(--text)}.streak{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border-radius:999px;background:var(--yellow-bg);color:var(--yellow);font-weight:800}.cal-head,.cal{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}.cal-head{margin-bottom:6px;font-size:.75rem;font-weight:700;color:var(--faint);text-align:center}.cal{list-style:none;margin:0 0 14px;padding:0}.cal-day{aspect-ratio:1;border-radius:10px;display:grid;place-items:center;background:var(--surface-2);color:var(--faint);font-size:.82rem;font-weight:600}.cal-day.pad{background:none}.cal-day.completed{background:var(--green);color:var(--bg);font-weight:800}.cal-day.partial,.cal-swatch.partial{background:repeating-linear-gradient(135deg,color-mix(in srgb,var(--green) 55%,var(--surface)) 0 5px,var(--surface-2) 5px 10px);color:var(--text)}.cal-day.today{box-shadow:inset 0 0 0 2px var(--text)}.cal-swatch{display:inline-block;width:16px;height:16px;border-radius:5px;background:var(--surface-2)}.cal-swatch.completed{background:var(--green)}.stats{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-bottom:16px;width:100%}@media (min-width: 640px){.stats{grid-template-columns:repeat(4,1fr)}}.stats-3,.stats.stats-3{grid-template-columns:repeat(3,1fr)}.stat-tile{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:16px;display:flex;flex-direction:column;gap:6px;text-align:left}.hero .stat-tile{background:var(--surface)}.stat-value{font-size:1.9rem;font-weight:800;font-stretch:112%;letter-spacing:-.02em;line-height:1;font-variant-numeric:tabular-nums}.stat-unit{font-size:.95rem;font-weight:700;color:var(--muted);letter-spacing:0}.stat-label{font-size:.82rem;color:var(--muted);line-height:1.3}.balance{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:16px}.balance-top{display:flex;justify-content:space-between;gap:8px;margin-bottom:8px;align-items:center}.balance-name{font-weight:700;display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap}.balance-name .chip{margin:0;font-size:.72rem;padding:3px 9px}.balance-bar{display:flex;align-items:center;gap:10px}.balance-fill{height:10px;min-width:4px;border-radius:5px;background:var(--brand)}.balance-count{font-size:.85rem;color:var(--muted);white-space:nowrap;font-variant-numeric:tabular-nums}.history{list-style:none;margin:0;padding:0}.history-row{display:flex;align-items:center;gap:12px;padding:12px 0;border-top:1px solid var(--line)}.history-row:first-child{border-top:0;padding-top:0}.history-main{flex:1;display:flex;flex-direction:column;min-width:0}.outcome{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;flex-shrink:0;background:var(--surface-3);color:var(--bg)}.outcome.completed{background:var(--green)}.outcome.partial{background:repeating-linear-gradient(135deg,color-mix(in srgb,var(--green) 55%,var(--surface)) 0 4px,var(--surface-2) 4px 8px)}.choice-list{display:flex;flex-direction:column;gap:10px}.choice{flex-direction:row;align-items:center;gap:14px;padding:14px 16px;border-radius:16px;background:var(--surface-2);border:2px solid transparent;color:var(--text);cursor:pointer;font-weight:500}.choice.selected{border-color:var(--brand)}.choice input{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:22px;height:22px;min-height:0;padding:0;flex-shrink:0;border:2px solid var(--faint);border-radius:50%;background:none}.choice input:checked{border-color:var(--brand);box-shadow:inset 0 0 0 5px var(--surface-2);background:var(--brand)}.choice-main{flex:1;display:flex;flex-direction:column;gap:2px}.choice-main strong{font-size:1.02rem}.session-top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.progress-segments{display:flex;gap:4px;margin-bottom:16px}.progress-segments span{flex:1;height:6px;border-radius:3px;background:var(--surface-3)}.progress-segments .done{background:var(--green)}.progress-segments .now{background:color-mix(in srgb,var(--brand) 55%,var(--surface-3))}.current{padding:24px}.current-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:20px}.current-head .display{margin-bottom:14px}.countdown{position:relative;width:112px;height:112px;flex-shrink:0}.countdown svg{width:100%;height:100%;transform:rotate(-90deg)}.countdown-track{fill:none;stroke:var(--surface-3);stroke-width:10}.countdown-fill{fill:none;stroke:var(--brand);stroke-width:10;stroke-linecap:round}.countdown-text{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center}.countdown-text strong{font-size:1.45rem;font-weight:800;font-variant-numeric:tabular-nums;line-height:1.1}@media (max-width: 460px){.current-head{flex-direction:column-reverse;align-items:center;text-align:center}.current-head .reasons{justify-content:center}}.sets{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}.set{display:inline-flex;align-items:center;gap:4px;padding:8px 12px;border-radius:12px;border:1.5px dashed var(--line);color:var(--faint);font-size:.875rem;font-weight:700}.set.done{border:1.5px solid transparent;background:var(--green-bg);color:var(--green)}.log-form{display:grid;grid-template-columns:1fr 1fr auto;gap:10px;align-items:end;margin-bottom:16px}@media (max-width: 420px){.log-form{grid-template-columns:1fr 1fr}.log-form .btn{grid-column:1 / -1}}.current .btn-block{margin-bottom:10px}.row-toggle{width:100%;display:flex;justify-content:space-between;align-items:center;background:none;border:0;padding:0;color:var(--text);cursor:pointer;font-family:var(--font)}.steps{list-style:none;margin:14px 0 0;padding:0}.steps li{display:flex;justify-content:space-between;gap:8px;padding:10px 0;border-top:1px solid var(--line)}.steps li.done span:first-child{text-decoration:line-through;color:var(--faint)}.steps li.now{color:var(--brand);font-weight:700}.routine-list{display:flex;flex-direction:column}.routine-head{display:flex;justify-content:space-between;gap:12px;margin-bottom:10px}.routine-head h2{margin-bottom:2px}.routine-actions{display:flex;gap:8px}.routine-exercises{color:var(--muted);margin-bottom:16px}.routine-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.routine-foot .muted{display:inline-flex;align-items:center;gap:6px}.routine-foot .btn{margin-left:auto}.ex-edit-list{list-style:none;margin:0 0 16px;padding:0;display:flex;flex-direction:column;gap:10px}.ex-edit{background:var(--surface-2);border-radius:16px;padding:14px}.ex-edit-head{display:flex;align-items:center;gap:10px;margin-bottom:12px}.ex-edit-head strong{flex:1}.ex-edit-num{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:var(--surface-3);font-weight:800;font-size:.85rem}.ex-edit-actions{display:flex;gap:6px}.ex-edit-actions .icon-btn{width:36px;height:36px;background:var(--surface)}.ex-edit-actions .icon-btn:first-child .ico{transform:rotate(90deg)}.ex-edit-fields{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}@media (max-width: 520px){.ex-edit-fields{grid-template-columns:repeat(2,1fr)}}.ex-edit-fields input{background:var(--surface)}.add-row{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap}.manage-list{list-style:none;margin:0;padding:0}.manage-item{display:flex;align-items:center;gap:16px;color:var(--text)}.manage-item:hover{border-color:var(--brand);text-decoration:none}.manage-icon{width:52px;height:52px;border-radius:16px;display:grid;place-items:center;background:var(--surface-3);color:var(--brand);flex-shrink:0}.manage-text{flex:1;display:flex;flex-direction:column;gap:2px}.table-wrap{overflow-x:auto;position:relative}.table{width:100%;border-collapse:collapse}.table th{text-align:left;font-size:.78rem;color:var(--muted);font-weight:700;padding:8px}.table td{padding:8px;border-top:1px solid var(--line);vertical-align:middle}.table td input,.table td select{min-width:80px}.table td.actions{white-space:nowrap;text-align:right}.table td.actions>*+*{margin-left:6px}.chips{list-style:none;padding:0;margin:0 0 8px;display:flex;gap:8px;flex-wrap:wrap}.chips li{display:flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:999px;padding:4px 4px 4px 14px}.chips .icon{width:30px;height:30px;border:0;background:none}.qr{display:flex;flex-direction:column;align-items:flex-start;gap:12px}.qr svg{background:#fff;border-radius:12px}.coverage{display:grid;grid-template-columns:repeat(auto-fill,minmax(76px,1fr));gap:8px;margin-bottom:12px}.coverage input{padding:0 8px}.auth{position:relative;min-height:100vh;display:grid;place-items:center;padding:32px 16px;overflow:hidden}.auth-pulse{position:absolute;left:0;top:50%;width:100%;height:220px;transform:translateY(-50%);pointer-events:none}.auth-pulse-line{fill:none;stroke:var(--brand);stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke;opacity:.16;animation:trace-scroll 4.8s linear infinite}.auth-center{position:relative;z-index:1;width:100%;max-width:420px;display:flex;flex-direction:column;gap:20px}.auth-brand{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center}.auth-card{background:color-mix(in srgb,var(--surface) 92%,transparent);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);border:1px solid var(--line);border-radius:24px;padding:28px 24px;box-shadow:0 24px 60px #0000004d}.auth-form{display:flex;flex-direction:column;gap:16px}.auth-form .display-sm{margin-bottom:4px}.demo{border-top:1px solid var(--line);padding-top:16px;display:flex;flex-direction:column;gap:10px}.demo-list{display:flex;gap:8px;flex-wrap:wrap}@keyframes trace-scroll{0%{transform:translate(0)}to{transform:translate(-1200px)}}@media (prefers-reduced-motion: reduce){.auth-pulse-line{animation:none}}@media print{body{background:#fff}body *{visibility:hidden}.qr,.qr *{visibility:visible}.qr{position:absolute;top:0;right:0;bottom:0;left:0;border:0;align-items:center;justify-content:center;background:#fff;color:#000}.qr .row,.qr p{display:none}}@media (prefers-reduced-motion: reduce){.btn{transition:none}}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}.explain{margin:4px 0 16px}.card-btn{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:0 14px;border-radius:12px;background:var(--surface-2);border:1px solid var(--line);color:var(--text);font-weight:700;font-size:.9rem}.card-btn:hover,.card-btn.active{border-color:var(--brand);text-decoration:none}.card-btn .ico{color:var(--brand)}@media (max-width: 420px){.card-btn span{display:none}.card-btn{width:40px;padding:0;justify-content:center}}.member-card{max-width:380px;margin:0 auto;border-radius:28px;overflow:hidden;background:var(--surface-2);border:1px solid var(--line);box-shadow:0 24px 60px #00000059}.member-card-head{display:flex;justify-content:space-between;align-items:center;padding:18px 20px;border-bottom:1px solid var(--line)}.member-card-brand{display:inline-flex;align-items:center;gap:10px;font-weight:800}.member-card-type{font-size:.72rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--brand)}.member-card-qr{margin:22px auto 0;width:max-content;padding:10px;border-radius:20px;background:#fff}.member-card-qr svg{display:block}.member-card-info{display:flex;flex-direction:column;align-items:center;gap:4px;padding:16px 20px 18px}.member-card-name{font-size:1.4rem;font-weight:800;font-stretch:112%;letter-spacing:-.02em}.member-card-code{font-family:ui-monospace,SF Mono,Menlo,monospace;font-size:1.05rem;letter-spacing:.12em;color:var(--muted)}.member-card-foot{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--line)}.member-card-foot>span{display:flex;flex-direction:column;gap:2px;padding:14px 12px;text-align:center}.member-card-foot>span+span{border-left:1px solid var(--line)}.card-hint{margin:14px auto 20px;max-width:40ch}.toggles{display:flex;flex-direction:column;gap:4px}.toggle-row{flex-direction:row;align-items:center;gap:16px;padding:12px 0;cursor:pointer;color:var(--text);font-weight:500}.toggle-row+.toggle-row{border-top:1px solid var(--line)}.toggle-text{flex:1;display:flex;flex-direction:column;gap:2px}input.toggle{-webkit-appearance:none;-moz-appearance:none;appearance:none;flex-shrink:0;width:52px;height:32px;min-height:0;padding:0;border-radius:999px;cursor:pointer;background:var(--surface-3);border:1px solid var(--line);position:relative}input.toggle:after{content:"";position:absolute;top:3px;left:3px;width:24px;height:24px;border-radius:50%;background:var(--muted);transition:transform .15s ease}input.toggle:checked{background:var(--brand);border-color:var(--brand)}input.toggle:checked:after{transform:translate(20px);background:var(--on-brand)}.toggle:focus-visible{outline:2px solid var(--brand);outline-offset:2px}.segmented{display:flex;gap:4px;padding:4px;border-radius:14px;background:var(--surface-2);border:1px solid var(--line)}.segment{position:relative;flex:1;flex-direction:row;justify-content:center;align-items:center;min-height:44px;border-radius:10px;color:var(--muted);font-weight:700;cursor:pointer;text-align:center;font-size:.9rem}.segment input{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;min-height:0;margin:0;opacity:0;cursor:pointer}.segment.selected{background:var(--surface-3);color:var(--text)}.segment:has(input:focus-visible){outline:2px solid var(--brand)}.segmented-sm{max-width:360px}.segmented-sm .segment{min-height:38px}.tabs-scroll{display:flex;gap:8px;overflow-x:auto;padding-bottom:4px;margin-bottom:12px;scrollbar-width:none}.tabs-scroll::-webkit-scrollbar{display:none}.tab{flex-shrink:0;min-height:42px;padding:0 18px;border-radius:999px;cursor:pointer;background:var(--surface-2);border:1px solid var(--line);color:var(--muted);font:700 .95rem var(--font)}.tab.active{background:var(--text);border-color:var(--text);color:var(--bg)}.standing-main{display:flex;align-items:center;gap:14px}.standing-main>div{flex:1}.standing-pos{font-size:1.8rem;font-weight:850;font-stretch:112%;color:var(--brand);min-width:56px}.standing-value{font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap}.podium{list-style:none;margin:8px 0 16px;padding:0;display:grid;grid-template-columns:repeat(3,1fr);align-items:end;gap:10px}.podium-step{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;min-width:0}.podium-step.p1{order:2}.podium-step.p2{order:1}.podium-step.p3{order:3}.podium-avatar{width:56px;height:56px;border-radius:50%;display:grid;place-items:center;background:var(--surface-3);font-weight:800;font-size:1.3rem;border:3px solid var(--line)}.p1 .podium-avatar{width:68px;height:68px;border-color:var(--yellow);font-size:1.5rem}.p2 .podium-avatar{border-color:#c9d1dc}.p3 .podium-avatar{border-color:#d39a6a}.podium-step.me .podium-avatar{background:var(--brand);color:var(--on-brand)}.podium-name{font-size:.95rem;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.podium-value{font-size:.85rem;font-weight:700;color:var(--muted);font-variant-numeric:tabular-nums}.podium-block{width:100%;display:grid;place-items:start center;padding-top:10px;border-radius:14px 14px 6px 6px;background:var(--surface-2);border:1px solid var(--line);font-size:1.6rem;font-weight:850;color:var(--faint)}.p1 .podium-block{height:110px;color:var(--yellow)}.p2 .podium-block{height:84px}.p3 .podium-block{height:64px}.rank-list{list-style:none;margin:0;padding:0}.rank-row{display:flex;align-items:center;gap:12px;padding:10px 6px;border-top:1px solid var(--line);border-radius:10px}.rank-row:first-child{border-top:0}.rank-row.me{background:var(--green-bg);border-top-color:transparent}.rank-pos{width:28px;text-align:center;font-weight:800;color:var(--faint);font-variant-numeric:tabular-nums}.rank-avatar{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;flex-shrink:0;background:var(--surface-3);font-weight:800}.rank-name{flex:1;font-weight:600;min-width:0}.rank-value{font-weight:800;font-variant-numeric:tabular-nums}.measure-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px;margin-bottom:14px}.measure-tile{background:var(--surface-2);border-radius:16px;padding:14px;display:flex;flex-direction:column;gap:4px}.measure-value{font-size:1.5rem;font-weight:800;font-variant-numeric:tabular-nums;line-height:1.1}.measure-delta{font-size:.8rem;font-weight:700}.measure-delta.good{color:var(--green)}.measure-delta.bad,.measure-delta.neutral{color:var(--muted)}.measure-table td.num{font-variant-numeric:tabular-nums}.measure-table th,.measure-table td:first-child{white-space:nowrap}.measure-form{margin-bottom:10px}.member-list{list-style:none;margin:16px 0 0;padding:0;display:flex;flex-direction:column;gap:8px}.member-row{display:flex;align-items:center;gap:12px;padding:14px 16px;border-radius:16px;background:var(--surface);border:1px solid var(--line);color:var(--text)}.member-row:hover{border-color:var(--brand);text-decoration:none}.member-row-main{flex:1;display:flex;flex-direction:column;min-width:0}.member-head{display:flex;gap:16px;align-items:center}.member-head .display-sm{margin-bottom:4px}.is-kiosk .content{max-width:1280px;padding-bottom:32px}@media (min-width: 521px){.is-kiosk .gym-name{display:inline-flex}}.kiosk-title{font-weight:800;font-size:1.1rem;color:var(--muted)}.kiosk-grid{display:grid;gap:20px;grid-template-columns:1fr}@media (min-width: 900px){.kiosk-grid{grid-template-columns:1.2fr 1fr;align-items:start}}.kiosk-video{position:relative;aspect-ratio:4 / 3;border-radius:24px;overflow:hidden;background:var(--surface);border:1px solid var(--line)}.kiosk-video video{width:100%;height:100%;object-fit:cover;transform:scaleX(-1);display:block}.kiosk-video:not(.on) video{visibility:hidden}.kiosk-frame{position:absolute;top:18%;right:24%;bottom:18%;left:24%;border-radius:24px;pointer-events:none;box-shadow:0 0 0 9999px #0b122073;border:4px solid var(--brand)}.kiosk-video-msg{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;padding:24px;text-align:center;color:var(--muted)}.kiosk-controls{display:flex;gap:10px;align-items:center;margin-top:12px;flex-wrap:wrap}.kiosk-device{flex:1;min-width:200px}.kiosk-manual{display:flex;gap:10px;align-items:flex-end;margin-top:16px}.kiosk-result{min-height:320px;border-radius:28px;padding:32px 24px;margin-bottom:16px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;text-align:center;background:var(--surface-2);border:2px solid var(--line)}.kiosk-result.idle{color:var(--muted)}.kiosk-result.idle .ico{color:var(--brand)}.kiosk-result.entered{border-color:var(--green);background:var(--green-bg)}.kiosk-result.already{border-color:var(--yellow);background:var(--yellow-bg)}.kiosk-result.error{border-color:var(--red);background:var(--red-bg)}.kiosk-result p{font-size:1.1rem}.kiosk-avatar{width:96px;height:96px;border-radius:50%;display:grid;place-items:center;background:var(--green);color:var(--bg);font-size:2.6rem;font-weight:850}.kiosk-avatar.small{width:64px;height:64px;font-size:1.8rem;flex-shrink:0}.already .kiosk-avatar{background:var(--yellow)}.kiosk-badge{width:80px;height:80px;border-radius:50%;display:grid;place-items:center;background:var(--red);color:#fff;font-size:2.6rem;font-weight:850}.kiosk-stats{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 20px;margin-top:6px}.kiosk-stats span{display:inline-flex;align-items:center;gap:6px}.kiosk-recent{list-style:none;margin:0;padding:0}.kiosk-recent li{display:flex;justify-content:space-between;padding:8px 0;border-top:1px solid var(--line)}.kiosk-recent li:first-child{border-top:0}.chip-blue{background:color-mix(in srgb,#7fb2ff 18%,var(--surface));color:#9cc3ff}.tab-count{margin-left:8px;font-size:.78rem;opacity:.75}.filter-tabs{margin-top:14px}.stat-link{color:var(--text)}.stat-link:hover{border-color:var(--brand);text-decoration:none}.membership-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:14px}.membership-head h2{margin-bottom:4px}.membership-line{font-weight:700}.membership-line.expired,.membership-line.none{color:#ff7a7e}.membership-line.expiring{color:var(--yellow)}.freeze-row{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;padding:10px 14px;border-radius:12px;background:color-mix(in srgb,#7fb2ff 12%,var(--surface));font-size:.9rem}.pay-form{border-top:1px solid var(--line);padding-top:16px;display:flex;flex-direction:column;gap:14px;scroll-margin-top:90px}.pay-form h3,.freeze-form h3,.payments-title{font-size:1rem}.plan-choices{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:8px}.plan-choice{position:relative;flex-direction:column;align-items:flex-start;gap:2px;padding:12px 14px;border-radius:14px;cursor:pointer;background:var(--surface-2);border:2px solid transparent;color:var(--text);font-weight:500}.plan-choice.selected{border-color:var(--brand)}.plan-choice input{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;min-height:0;margin:0;opacity:0;cursor:pointer}.plan-choice:has(input:focus-visible){outline:2px solid var(--brand);outline-offset:2px}.plan-price{font-size:1.15rem;font-weight:800;margin-top:4px;font-variant-numeric:tabular-nums}.period-preview{font-size:.92rem}.freeze-wrap{margin-top:12px}.freeze-form{margin-top:16px;border-top:1px solid var(--line);padding-top:16px;display:flex;flex-direction:column;gap:12px}.payments-title{margin:20px 0 8px;padding-top:16px;border-top:1px solid var(--line)}.payments{list-style:none;margin:0 0 10px;padding:0}.payment{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:10px 0;border-top:1px solid var(--line)}.payment:first-child{border-top:0}.payment-main{display:flex;flex-direction:column;gap:2px;min-width:0}.payment.voided .payment-main strong{text-decoration:line-through;color:var(--faint)}.danger-link{color:#ff7a7e}.card-membership{max-width:380px;margin:14px auto 0;display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:center;font-size:.92rem;font-weight:600;text-align:center}.membership-banner{display:flex;flex-direction:column;gap:2px;padding:14px 18px;margin-bottom:16px;border-radius:16px;border:1px solid var(--line);color:var(--text)}.membership-banner:hover{text-decoration:none;filter:brightness(1.08)}.membership-banner.expiring{background:var(--yellow-bg);border-color:color-mix(in srgb,var(--yellow) 40%,transparent)}.membership-banner.expired,.membership-banner.none{background:var(--red-bg);border-color:color-mix(in srgb,var(--red) 40%,transparent)}.membership-banner.frozen{background:color-mix(in srgb,#7fb2ff 14%,var(--surface))}.membership-banner span{color:var(--muted);font-size:.9rem}.kiosk-avatar.blocked{background:var(--red);color:#fff}.kiosk-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin-top:8px}.kiosk-warn{margin-top:6px;padding:8px 14px;border-radius:12px;background:var(--yellow-bg);color:var(--yellow);font-weight:700;font-size:.95rem}.plan-list{list-style:none;margin:0 0 12px;padding:0;display:flex;flex-direction:column;gap:10px}.plan-row{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end;padding:12px;border-radius:14px;background:var(--surface-2)}.plan-row.inactive{opacity:.6}.plan-row .narrow-field{width:130px}.plan-row-actions{display:flex;gap:8px;flex-wrap:wrap}.plan-row .span-all{flex-basis:100%}.plan-new{background:none;border:1px dashed var(--line)}@media (max-width: 520px){.plan-row .narrow-field{width:calc(50% - 5px)}.plan-row .field.grow{flex-basis:100%}}.kiosk-result.error{color:var(--text)}.kiosk-result.error .display{color:#ff7a7e}.trainer-assign{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:10px}.trainer-label{display:inline-flex;align-items:center;gap:6px;font-size:.92rem}.trainer-label .ico{color:var(--brand)}.trainer-select{min-width:220px}.trainer-select select{min-height:40px}.inline-chip{margin-left:8px;font-size:.72rem;padding:2px 8px;vertical-align:middle}.trainer-chip{margin:2px 0 4px;font-size:.75rem;padding:3px 10px}.note-form{display:flex;flex-direction:column;gap:8px;align-items:flex-start;margin-bottom:12px}.note-form .field{width:100%}textarea{font:500 1rem var(--font);color:var(--text);background:var(--surface-2);border:1px solid var(--line);border-radius:var(--radius-sm);padding:12px 14px;width:100%;resize:vertical}textarea:focus{outline:2px solid var(--brand);outline-offset:-1px;border-color:transparent}.notes{list-style:none;margin:0;padding:0}.note{padding:12px 0;border-top:1px solid var(--line);display:flex;flex-direction:column;gap:4px}.note:first-child{border-top:0}.note p{white-space:pre-line}.notice{padding:10px 14px;border-radius:12px;background:var(--yellow-bg);color:var(--yellow);font-weight:600;margin-bottom:14px}.plain-fieldset{border:0;padding:0;margin:0;min-width:0}.plain-fieldset:disabled{opacity:.85}.whose{margin-top:12px}.segment.disabled{opacity:.4;cursor:not-allowed}.segment-price{margin-left:6px;font-weight:600;color:var(--muted)}.card-trainer{text-align:center;margin:10px 0 0;font-size:.95rem}.price-table td,.price-table th{white-space:nowrap}.price-table td.mine{background:var(--green-bg)}.block{display:block}.price-table td.mine .inline-chip{display:table;margin:4px 0 0}.eq-admin-list{list-style:none;margin:0 0 14px;padding:0;display:flex;flex-direction:column;gap:12px}.eq-admin{padding:14px;border-radius:16px;background:var(--surface-2);display:flex;flex-direction:column;gap:12px}.eq-admin-fields{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end}.eq-admin-fields .field.grow{flex:1 1 200px}.eq-admin-fields .narrow-field{width:110px}.eq-admin-fields input,.eq-admin-fields select{background:var(--surface)}.eq-admin-actions{display:flex;gap:8px}.photo-strip{display:flex;gap:8px;flex-wrap:wrap}.photo-thumb{position:relative;width:84px;height:84px;border-radius:12px;overflow:hidden;background:var(--surface)}.photo-thumb.uploading{display:grid;place-items:center;font-size:.75rem;color:var(--muted);border:1px dashed var(--line)}.photo-open{all:unset;cursor:pointer;display:block;width:100%;height:100%}.photo-open:focus-visible{outline:2px solid var(--brand);outline-offset:-2px}.photo-thumb img,.eq-photo img,.find-thumb img{width:100%;height:100%;object-fit:cover;display:block}.photo-remove{position:absolute;top:4px;right:4px;width:26px;height:26px;border-radius:50%;border:0;cursor:pointer;background:#0b1220cc;color:#fff;font-size:1rem;line-height:1}.photo-add{width:84px;height:84px;border-radius:12px;border:1.5px dashed var(--line);cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:var(--muted);font-size:.75rem;font-weight:700;text-align:center}.photo-add:hover,.photo-add:focus-within{border-color:var(--brand);color:var(--brand)}.eq-head{justify-content:flex-start}.eq-head .eq-name{flex:1}.eq-photo{position:relative;width:44px;height:44px;flex-shrink:0;padding:0;border:0;border-radius:10px;overflow:hidden;cursor:pointer;background:var(--surface-2)}.eq-photo:focus-visible{outline:2px solid var(--brand);outline-offset:2px}.eq-photo-count{position:absolute;right:2px;bottom:2px;min-width:18px;height:18px;padding:0 4px;border-radius:9px;background:#0b1220d9;color:#fff;font-size:.68rem;font-weight:800;display:grid;place-items:center}.find-machine{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:12px}.current-head .find-machine{justify-content:inherit}.find-thumb{display:inline-flex;align-items:center;gap:8px;padding:4px 12px 4px 4px;border-radius:12px;cursor:pointer;background:var(--surface-2);border:1px solid var(--line);color:var(--text);font:600 .85rem var(--font)}.find-thumb img{width:40px;height:40px;border-radius:8px}.find-thumb:hover{border-color:var(--brand)}.viewer{width:min(960px,100vw - 24px);max-height:calc(100vh - 24px);padding:0;border:1px solid var(--line);border-radius:20px;background:var(--surface);color:var(--text);overflow:hidden}.viewer::backdrop{background:#050912d1}.viewer-body{display:flex;flex-direction:column}.viewer-head{display:flex;align-items:center;gap:12px;padding:12px 12px 12px 18px;border-bottom:1px solid var(--line)}.viewer-head strong{flex:1}.viewer-img{display:block;width:100%;max-height:calc(100vh - 160px);object-fit:contain;background:#000}.viewer-nav{display:flex;justify-content:center;gap:12px;padding:12px}.day-nav{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.day-nav strong{font-size:1.05rem}.nutrition-today{display:flex;align-items:center;gap:20px;flex-wrap:wrap}.nutrition-side{flex:1;min-width:200px;display:flex;flex-direction:column;gap:12px;align-items:flex-start}.kcal-ring{position:relative;width:132px;height:132px;flex-shrink:0}.kcal-ring svg{width:100%;height:100%;transform:rotate(-90deg)}.kcal-track{fill:none;stroke:var(--surface-3);stroke-width:12}.kcal-fill{fill:none;stroke:var(--brand);stroke-width:12;stroke-linecap:round}.kcal-fill.over{stroke:var(--yellow)}.kcal-ring-text{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.kcal-ring-text strong{font-size:1.7rem;font-weight:850;font-variant-numeric:tabular-nums;line-height:1}.kcal-left{font-weight:700;color:var(--green)}.kcal-left.over{color:var(--yellow)}.macros{list-style:none;margin:0;padding:0;display:flex;gap:18px}.macros li{display:flex;flex-direction:column}.macros strong{font-variant-numeric:tabular-nums}.target-form{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-end}.target-form .field{width:150px}.target-form .span-all{flex-basis:100%}.add-food{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:8px}.add-food .btn-lg{grid-column:1 / -1}.meal-groups{display:flex;flex-direction:column;gap:16px}.meal-group h3{display:flex;justify-content:space-between;margin-bottom:6px}.meal{display:flex;gap:10px;align-items:flex-start;padding:8px 0;border-top:1px solid var(--line)}.meal-items{list-style:none;margin:0;padding:0;flex:1;display:flex;flex-direction:column;gap:4px}.meal-items li{display:flex;justify-content:space-between;gap:10px}.meal .icon-btn{width:34px;height:34px}.week-bars{position:relative;display:grid;grid-template-columns:repeat(7,1fr);gap:8px;height:140px;align-items:end;padding-bottom:22px;margin:8px 0 14px}.week-bar{position:relative;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center}.week-bar-fill{width:100%;max-width:34px;border-radius:6px 6px 3px 3px;background:color-mix(in srgb,var(--brand) 55%,var(--surface-3))}.week-bar.today .week-bar-fill{background:var(--brand)}.week-bar-label{position:absolute;bottom:-22px;font-size:.75rem;font-weight:700;color:var(--faint)}.week-bar.today .week-bar-label{color:var(--text)}.week-target{position:absolute;left:0;right:0;border-top:2px dashed color-mix(in srgb,var(--text) 45%,transparent);z-index:1;pointer-events:none}.sheet{width:min(560px,100vw - 16px);max-height:calc(100vh - 16px);padding:0;border:1px solid var(--line);border-radius:22px;background:var(--surface);color:var(--text);display:flex;flex-direction:column}.sheet[open]{display:flex}.sheet::backdrop{background:#050912bf}.sheet-body{padding:16px 18px;overflow-y:auto;display:flex;flex-direction:column;gap:12px}.sheet-foot{padding:12px 18px 16px;border-top:1px solid var(--line)}.capture{display:flex;flex-direction:column;gap:14px}.working{padding:32px 0;text-align:center;color:var(--muted);font-weight:700}.barcode-video{position:relative;aspect-ratio:4 / 3;border-radius:16px;overflow:hidden;background:var(--surface-2)}.barcode-video video{width:100%;height:100%;object-fit:cover;display:block}.barcode-video:not(.on) video{visibility:hidden}.barcode-guide{position:absolute;left:10%;right:10%;top:38%;height:24%;border:3px solid var(--brand);border-radius:12px;box-shadow:0 0 0 9999px #0b122066}.barcode-msg{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;padding:20px;text-align:center;color:var(--muted)}.product-img{width:96px;height:96px;object-fit:contain;border-radius:12px;background:#fff;align-self:center}.food-items{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}.food-item{padding:12px;border-radius:14px;background:var(--surface-2);display:flex;flex-direction:column;gap:8px}.food-item-head{display:flex;gap:8px;align-items:center}.food-item-head input,.food-item-fields input{background:var(--surface)}.food-item-fields{display:flex;gap:8px;align-items:flex-end;flex-wrap:wrap}.food-item-fields .field{width:110px}.food-item-fields input[readonly]{color:var(--muted)}.food-macros{padding-bottom:12px}.conf{font-weight:700;margin-right:4px}.conf.alta{color:var(--green)}.conf.media{color:var(--yellow)}.conf.baja{color:#ff7a7e}.total-line{font-size:1.05rem}.add-food{grid-template-columns:repeat(3,1fr)}.add-food .btn-ghost{padding:0 8px;font-size:.88rem;line-height:1.15}.portion{display:flex;flex-direction:column;gap:12px}.portion-q{font-size:1.1rem;margin-top:4px}.portion-chips{display:flex;flex-wrap:wrap;gap:8px}.portion-chips .chip-button{min-width:52px;justify-content:center;min-height:40px;font-size:.95rem}.portion-chips .chip-button.selected{border-color:var(--brand);background:var(--green-bg);color:var(--green)}.portion-amount{width:220px}.portion-result{display:flex;flex-direction:column;gap:2px;padding:12px 14px;border-radius:14px;background:var(--surface-2)}.portion-result strong{font-size:1.6rem;font-weight:850;font-variant-numeric:tabular-nums}.section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:8px 0 12px}.train-section{margin-bottom:8px}.train-start{margin-bottom:18px}.session-banner{display:flex;align-items:center;gap:12px;color:var(--text);border-color:color-mix(in srgb,var(--green) 45%,var(--line))}.session-banner:hover{text-decoration:none;border-color:var(--green)}.session-banner-text{flex:1;display:flex;flex-direction:column;min-width:0}.view-switch{margin-bottom:18px;max-width:420px}.view-switch .segment{border:0;background:none;font-family:var(--font)}.view-switch .segment.selected{background:var(--surface-3)}.food-today{display:flex;justify-content:space-between;align-items:center;gap:12px}.food-today h2{margin-bottom:2px}.settings-tabs{margin-bottom:18px}.settings-tabs .tab{display:inline-flex;align-items:center;text-decoration:none}.member-tabs{margin-bottom:16px}.summary-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}.summary-grid .card{margin-bottom:0}.summary-card{display:flex;flex-direction:column;gap:8px;align-items:flex-start}.summary-card h2{margin-bottom:0;font-size:1rem;color:var(--muted)}.summary-card .btn{margin-top:auto}.summary-number{font-size:2rem;font-weight:850;line-height:1;font-variant-numeric:tabular-nums}
