:root{--bg: #0b0b0c;--surface: #151517;--surface-2: #1e1e21;--border: #2a2a2e;--text: #f6f6f6;--muted: #9b9ba3;--red: #d0161e;--red-strong: #ef2b2b;--red-soft: rgba(208, 22, 30, .15);--ok: #2fbf71;--warn: #f3b03c;--radius: 14px;--radius-sm: 10px;--font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;--display: "Barlow Condensed", "Arial Narrow", sans-serif;--nav-h: 64px;color-scheme:dark}*{box-sizing:border-box}html,body,#root{min-height:100%}body{margin:0;background:var(--bg);color:var(--text);font-family:var(--font);font-size:15px;line-height:1.45;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent}a{color:inherit;text-decoration:none}a:hover{color:var(--red-strong)}h1,h2,h3{margin:0;line-height:1.15}h1{font-family:var(--display);font-weight:700;font-size:2rem;letter-spacing:.01em;text-transform:uppercase}h2{font-family:var(--display);font-weight:700;font-size:1.5rem;text-transform:uppercase;letter-spacing:.01em}h3{font-size:1rem;font-weight:600}p{margin:0}code{background:var(--surface-2);padding:1px 6px;border-radius:6px;font-size:.9em}button{font:inherit;color:inherit;cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}:focus-visible{outline:2px solid var(--red);outline-offset:2px}.muted{color:var(--muted)}.small{font-size:.82rem}.block{display:block}.grow{flex:1;min-width:0}.pre{white-space:pre-line}.capitalize:first-letter{text-transform:uppercase}.stack{display:flex;flex-direction:column;gap:12px}.stack-lg{display:flex;flex-direction:column;gap:24px}.row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.row-between{display:flex;gap:8px;align-items:center;justify-content:space-between}.grid-2,.grid-3{display:grid;gap:12px;grid-template-columns:1fr}@media (min-width: 640px){.grid-2{grid-template-columns:repeat(2,1fr)}.grid-3{grid-template-columns:repeat(3,1fr)}}.inactive{opacity:.55}.danger{color:var(--red-strong)!important}.brand{display:flex;align-items:center;gap:10px;line-height:1}.brand-text{display:flex;flex-direction:column}.brand-logo{width:40px;height:40px;flex-shrink:0}.brand-lg{flex-direction:column;align-items:flex-start;gap:14px}.brand-lg .brand-logo{width:96px;height:96px}.brand-name{font-family:var(--display);font-weight:700;font-size:1.45rem;letter-spacing:.06em}.brand-accent{color:var(--red)}.brand-sub{font-family:var(--display);font-style:italic;font-weight:500;color:var(--muted);font-size:1rem;letter-spacing:.04em;margin-top:2px}.brand-lg .brand-name{font-size:2.4rem}.brand-lg .brand-sub{font-size:1.3rem}.shell{min-height:100vh}.sidebar{display:none}.topbar{position:sticky;top:0;z-index:10;display:flex;align-items:center;justify-content:space-between;padding:calc(env(safe-area-inset-top) + 12px) 16px 12px;background:#0b0b0ceb;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-bottom:1px solid var(--border)}.main{padding:20px 16px calc(var(--nav-h) + 32px + env(safe-area-inset-bottom));max-width:880px;margin:0 auto;min-width:0}.bottom-nav{position:fixed;bottom:0;left:0;right:0;z-index:10;display:flex;height:calc(var(--nav-h) + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);background:#0b0b0cf5;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-top:1px solid var(--border)}.bottom-link{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:.7rem;color:var(--muted)}.bottom-link .nav-icon{font-size:1.25rem;line-height:1}.bottom-link.active{color:var(--text)}.bottom-link.active .nav-icon{color:var(--red)}.staff-badge{font-size:.7rem;text-transform:uppercase;letter-spacing:.08em;color:var(--red-strong);border:1px solid var(--red);border-radius:999px;padding:3px 10px;align-self:flex-start}@media (min-width: 900px){.shell{display:grid;grid-template-columns:240px 1fr}.topbar,.bottom-nav{display:none}.sidebar{display:flex;flex-direction:column;gap:20px;position:sticky;top:0;height:100vh;padding:28px 18px;border-right:1px solid var(--border);background:var(--surface)}.side-nav{display:flex;flex-direction:column;gap:4px}.side-link{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:var(--radius-sm);color:var(--muted);font-weight:500}.side-link:hover{background:var(--surface-2);color:var(--text)}.side-link.active{background:var(--red-soft);color:var(--text)}.side-link.active .nav-icon{color:var(--red)}.nav-icon{width:20px;text-align:center}.sidebar-foot{margin-top:auto;display:flex;flex-direction:column;gap:8px;align-items:flex-start}.main{padding:36px 40px 60px;width:100%}}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:16px}.page-header{display:flex;gap:12px;align-items:flex-end;justify-content:space-between;flex-wrap:wrap;margin-bottom:4px}.page-header p{margin-top:4px}.eyebrow{font-size:.72rem;text-transform:uppercase;letter-spacing:.1em;color:var(--red-strong);font-weight:600}.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:0 18px;border-radius:var(--radius-sm);border:1px solid transparent;font-weight:600;letter-spacing:.01em;transition:background .15s,border-color .15s,transform .05s}.btn:active:not(:disabled){transform:scale(.98)}.btn-primary{background:var(--red);color:#fff}.btn-primary:hover:not(:disabled){background:var(--red-strong);color:#fff}.btn-ghost{background:transparent;border-color:var(--border);color:var(--text)}.btn-ghost:hover:not(:disabled){border-color:var(--muted);color:var(--text)}.btn-sm{min-height:34px;padding:0 12px;font-size:.85rem}.btn-block{width:100%}.icon-btn{background:none;border:1px solid var(--border);border-radius:8px;min-width:34px;height:34px;color:var(--muted)}.icon-btn:hover:not(:disabled){color:var(--text);border-color:var(--muted)}.input{width:100%;min-height:44px;padding:10px 12px;background:var(--bg);color:var(--text);border:1px solid var(--border);border-radius:var(--radius-sm);font:inherit;font-size:16px}.input:focus{outline:none;border-color:var(--red)}textarea.input{resize:vertical}select.input{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%);background-position:calc(100% - 18px) 50%,calc(100% - 13px) 50%;background-size:5px 5px;background-repeat:no-repeat;padding-right:32px}.input-title{font-family:var(--display);font-size:1.6rem;font-weight:700;text-transform:uppercase}.input-label{width:56px;text-align:center;font-family:var(--display);font-size:1.3rem;font-weight:700;color:var(--red-strong)}.field{display:flex;flex-direction:column;gap:6px}.field-label{font-size:.82rem;color:var(--muted);font-weight:500}.field-hint{font-size:.75rem;color:var(--muted)}.form-error{color:var(--red-strong);font-size:.9rem}.check-label{display:flex;gap:10px;align-items:center}.check-label input{width:18px;height:18px;accent-color:var(--red)}.choices{display:grid;gap:8px}@media (min-width: 640px){.choices{grid-template-columns:repeat(2,1fr)}}.choice{display:flex;align-items:center;gap:10px;padding:12px 14px;border:1px solid var(--border);border-radius:var(--radius-sm);cursor:pointer}.choice input{accent-color:var(--red);width:18px;height:18px}.choice.selected{border-color:var(--red);background:var(--red-soft)}.chips{display:flex;gap:8px;flex-wrap:wrap}.chip{border:1px solid var(--border);background:transparent;border-radius:999px;padding:7px 14px;font-size:.85rem;color:var(--muted)}.chip.on{border-color:var(--red);color:var(--text);background:var(--red-soft)}.tags{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.tag{font-size:.72rem;padding:3px 9px;border-radius:999px;background:var(--surface-2);color:var(--muted);white-space:nowrap}.tag-warn{background:#f3b03c24;color:var(--warn)}.tabs{display:flex;gap:4px;overflow-x:auto;border-bottom:1px solid var(--border);scrollbar-width:none}.tab{background:none;border:none;padding:10px 14px;color:var(--muted);font-weight:500;white-space:nowrap;border-bottom:2px solid transparent;margin-bottom:-1px}.tab.active{color:var(--text);border-bottom-color:var(--red)}.list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}.student-row,.ex-row{display:flex;gap:12px;align-items:center;width:100%;text-align:left}.student-row:hover,.ex-row:hover{border-color:var(--muted);color:inherit}.kv{display:grid;gap:0;margin:0}.kv>div{display:grid;grid-template-columns:150px 1fr;gap:12px;padding:10px 0;border-bottom:1px solid var(--border)}.kv>div:last-child{border-bottom:none}.kv dt{color:var(--muted);font-size:.85rem}.kv dd{margin:0}.loading{display:flex;justify-content:center;padding:40px}.loading-full{min-height:100vh;align-items:center}.spinner{width:28px;height:28px;border:3px solid var(--border);border-top-color:var(--red);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.empty{text-align:center;padding:36px 16px;border:1px dashed var(--border);border-radius:var(--radius)}.empty-title{font-weight:600;margin-bottom:4px}.error-box{display:flex;flex-direction:column;gap:8px;align-items:flex-start;border-color:var(--red)}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#000000b3;z-index:50;display:flex;align-items:flex-end;justify-content:center}.modal{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius) var(--radius) 0 0;width:100%;max-width:560px;max-height:92vh;overflow-y:auto;padding:20px 16px calc(20px + env(safe-area-inset-bottom))}.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}@media (min-width: 640px){.modal-backdrop{align-items:center}.modal{border-radius:var(--radius);padding:24px}}.toasts{position:fixed;top:calc(env(safe-area-inset-top) + 12px);left:50%;transform:translate(-50%);z-index:100;display:flex;flex-direction:column;gap:8px;width:min(92vw,420px)}.toast{padding:12px 16px;border-radius:var(--radius-sm);background:var(--surface-2);border:1px solid var(--border);box-shadow:0 8px 30px #00000080;animation:pop .2s ease-out}.toast-error{border-color:var(--red)}@keyframes pop{0%{opacity:0;transform:translateY(-6px)}}.auth-page{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px 16px;background:radial-gradient(ellipse at top,rgba(208,22,30,.18),transparent 60%),var(--bg)}.auth-card{width:100%;max-width:400px;display:flex;flex-direction:column;gap:20px}.auth-links{display:flex;justify-content:space-between;font-size:.9rem;color:var(--muted)}.auth-links a:hover{color:var(--text)}.onboarding{max-width:680px;margin:0 auto;padding:32px 16px 60px;display:flex;flex-direction:column;gap:16px}.public-page{max-width:880px;margin:0 auto;padding:24px 16px 60px;display:flex;flex-direction:column;gap:24px}.hello{font-size:2.6rem}.quote{margin-top:10px;font-style:italic;color:var(--muted);border-left:3px solid var(--red);padding-left:12px}.hero-card{display:flex;flex-direction:column;gap:10px;background:linear-gradient(135deg,rgba(208,22,30,.22),var(--surface) 55%);border-color:#d0161e66}.hero-card h2{font-size:2rem}.stat strong{font-family:var(--display);font-size:1.8rem}.week{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;margin:14px 0 10px}.week-day{display:flex;flex-direction:column;align-items:center;gap:6px;color:var(--muted)}.week-dot{width:100%;max-width:38px;aspect-ratio:1;border-radius:10px;background:var(--surface-2);border:1px solid var(--border)}.week-day.on .week-dot{background:var(--red);border-color:var(--red)}.week-day.today{color:var(--text);font-weight:600}.week-day.today .week-dot{border-color:var(--text)}.notice{border-left:3px solid var(--red);display:flex;flex-direction:column;gap:4px}.day-tabs{display:flex;gap:8px;overflow-x:auto;padding-bottom:4px}.day-tab{flex:0 0 auto;display:flex;flex-direction:column;align-items:center;min-width:72px;padding:10px 14px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-sm);color:var(--muted)}.day-tab.active{border-color:var(--red);background:var(--red-soft);color:var(--text)}.day-letter{font-family:var(--display);font-size:1.6rem;font-weight:700;line-height:1}.day-chip{font-family:var(--display);font-weight:700;font-size:1.3rem;width:40px;height:40px;display:grid;place-items:center;border-radius:10px;background:var(--red-soft);color:var(--red-strong);flex-shrink:0}.ex-summary{display:flex;flex-direction:column;gap:10px}.ex-title{display:flex;gap:12px;align-items:flex-start}.ex-index{font-family:var(--display);font-weight:700;color:var(--red);font-size:1.3rem;min-width:20px}.pills{display:flex;gap:6px;flex-wrap:wrap}.pill{font-size:.8rem;padding:4px 10px;border-radius:999px;background:var(--surface-2);color:var(--muted)}.pill-strong{color:var(--text);font-weight:600}.pill-red{background:var(--red-soft);color:var(--red-strong);font-weight:600}.technique summary{cursor:pointer;color:var(--muted);font-size:.85rem}.technique p{margin-top:6px;font-size:.9rem}.sticky-cta{position:sticky;bottom:calc(var(--nav-h) + 12px + env(safe-area-inset-bottom));box-shadow:0 10px 30px #0009}@media (min-width: 900px){.sticky-cta{bottom:20px}}.progress{height:6px;background:var(--surface-2);border-radius:999px;overflow:hidden}.progress-bar{height:100%;background:var(--red);transition:width .3s}.sets{display:flex;flex-direction:column;gap:6px}.set-row{display:grid;grid-template-columns:44px 1fr 1fr 52px;gap:8px;align-items:center}.set-head{font-size:.72rem;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}.set-head span:first-child,.set-n{text-align:center}.set-n{font-weight:600;color:var(--muted)}.set-input{text-align:center;font-weight:600}.set-row.done .set-input{border-color:#2fbf7180}.check{height:44px;border-radius:var(--radius-sm);border:1px solid var(--border);background:var(--bg);color:var(--muted);font-size:1.1rem;font-weight:700}.check.on{background:var(--ok);border-color:var(--ok);color:#fff}.rest-bar{position:fixed;left:50%;transform:translate(-50%);bottom:calc(var(--nav-h) + 16px + env(safe-area-inset-bottom));z-index:20;display:flex;gap:16px;align-items:center;padding:10px 12px 10px 18px;border-radius:999px;background:var(--text);color:var(--bg);box-shadow:0 10px 30px #0009}.rest-bar strong{font-family:var(--display);font-size:1.4rem}.rest-bar .btn-ghost{color:var(--bg);border-color:#00000040}@media (min-width: 900px){.rest-bar{bottom:24px;left:calc(50% + 120px)}}.feelings{display:grid;grid-template-columns:repeat(5,1fr);gap:6px}.feeling{padding:12px 4px;border-radius:var(--radius-sm);border:1px solid var(--border);background:var(--bg);font-size:.8rem}.feeling.on{border-color:var(--red);background:var(--red-soft)}.session-item{padding:0;overflow:hidden}.session-head{display:flex;gap:12px;align-items:center;width:100%;padding:14px 16px;background:none;border:none;text-align:left}.session-body{padding:12px 16px 16px;display:flex;flex-direction:column;gap:10px;border-top:1px solid var(--border)}.session-ex{display:flex;flex-direction:column;gap:2px}.timeline{list-style:none;margin:0;padding:0 0 0 18px;border-left:2px solid var(--border);display:flex;flex-direction:column;gap:14px}.timeline li{position:relative;display:flex;flex-direction:column;gap:2px}.timeline li:before{content:"";position:absolute;left:-24px;top:6px;width:10px;height:10px;border-radius:50%;background:var(--red)}.re-editor{display:flex;flex-direction:column;gap:10px;padding:14px;border-radius:var(--radius-sm);background:var(--bg);border:1px solid var(--border)}.re-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}@media (min-width: 640px){.re-grid{grid-template-columns:80px 1fr 110px 1fr 1fr}}.picker-list{max-height:55vh;overflow-y:auto}.picker-item{display:flex;flex-direction:column;align-items:flex-start;width:100%;padding:12px;background:var(--bg);border:1px solid var(--border);border-radius:var(--radius-sm);text-align:left}.picker-item:hover{border-color:var(--red)}.list-editor-item{padding:12px;border-radius:var(--radius-sm);border:1px solid var(--border);background:var(--bg);align-items:stretch}.list-editor-item>.btn{align-self:flex-start}.contact-row{display:flex;gap:10px;flex-wrap:wrap}.plan{display:flex;flex-direction:column;gap:6px}.plan-price{font-family:var(--display);font-size:1.8rem;font-weight:700;color:var(--red-strong)}.faq summary{cursor:pointer;font-weight:600}.faq p{margin-top:10px}.confirm-actions{justify-content:flex-end}.level-card{display:flex;flex-direction:column;gap:10px;background:linear-gradient(135deg,rgba(208,22,30,.16),var(--surface) 60%)}.level-number{font-family:var(--display);font-weight:700;font-size:2.6rem;line-height:1;display:flex;align-items:baseline;gap:10px}.level-title{font-size:1.1rem;text-transform:uppercase;letter-spacing:.04em;color:var(--muted)}.level-progress{height:10px}.level-progress .progress-bar{background:linear-gradient(90deg,var(--red),var(--red-strong))}.level-link{display:block}.level-link:hover{color:inherit}.level-link:hover .level-card{border-color:var(--red)}.level-more{color:var(--red-strong);font-weight:600}.level-badge{font-family:var(--display);font-weight:700;font-size:1.4rem;min-width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:var(--red-soft);color:var(--red-strong)}.reward-item{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:var(--radius-sm);background:var(--surface);border:1px solid var(--border)}.reward-item.pending{border-color:#d0161e80}.reward-item.redeemed,.reward-item.locked{opacity:.7}.reward-icon{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:var(--surface-2);flex-shrink:0}.reward-item.pending .reward-icon{background:var(--red);color:#fff}.reward-item.redeemed .reward-icon{color:var(--ok)}.reward-callout{border-color:#d0161e80}.reward-edit{display:grid;gap:8px;padding:12px;border-radius:var(--radius-sm);border:1px solid var(--border);background:var(--bg)}.achievements{list-style:none;margin:0;padding:0;display:grid;gap:8px}@media (min-width: 640px){.achievements{grid-template-columns:repeat(2,1fr)}}.achievement{display:flex;gap:12px;align-items:center;padding:10px 12px;border-radius:var(--radius-sm);border:1px solid var(--border);opacity:.45}.achievement.done{opacity:1;background:var(--surface)}.achievement-icon{font-size:1.3rem;width:28px;text-align:center}.rules{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:8px;color:var(--muted)}.rules strong{color:var(--text)}.xp-pos{color:var(--ok)}.xp-neg{color:var(--red-strong)}.xp-amount{width:110px;flex-shrink:0}.xp-table{width:100%;border-collapse:collapse;font-size:.9rem}.xp-table th,.xp-table td{text-align:left;padding:8px 6px;border-bottom:1px solid var(--border)}.xp-table th{color:var(--muted);font-weight:500;font-size:.8rem}.link-btn{background:none;border:none;padding:0;color:var(--red-strong);font:inherit;cursor:pointer;text-decoration:underline}.habit{display:flex;flex-direction:column;gap:8px}.habit-date{width:auto;max-width:170px;margin-left:auto}.scale{display:grid;grid-template-columns:repeat(5,1fr);gap:6px}.scale .feeling{font-size:.75rem;padding:10px 2px}.num-field{display:inline-flex;align-items:center;gap:8px}.num-field .input{width:90px;padding:7px 12px;border-radius:999px}.num-field.wide .input{width:160px;border-radius:var(--radius-sm)}.habit-cta{display:flex;align-items:center;justify-content:space-between;gap:12px}.habit-cta:hover{color:inherit;border-color:var(--red)}.coach-message{display:flex;flex-direction:column;gap:8px;border-color:#d0161e80}.coach-message .btn{align-self:flex-start}.stat-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}@media (min-width: 640px){.stat-grid{grid-template-columns:repeat(4,1fr)}}.stat-tile{display:flex;flex-direction:column;gap:4px;padding:12px 14px}.stat-tile strong{font-size:1.6rem;font-weight:600}.pr{text-align:right}.text{color:var(--text)}.chart{position:relative;width:100%}.chart svg{display:block;touch-action:pan-y}.chart-grid{stroke:var(--border);stroke-width:1}.chart-axis{fill:var(--muted);font-size:11px;font-family:var(--font)}.chart-value{fill:var(--text);font-size:12px;font-weight:600;font-family:var(--font)}.chart-bar{fill:var(--red)}.chart-bar.hover{fill:var(--red-strong)}.chart-target{stroke:var(--muted);stroke-width:1}.chart-line{fill:none;stroke:var(--red);stroke-width:2;stroke-linejoin:round;stroke-linecap:round}.chart-area{fill:var(--red);opacity:.1}.chart-cross{stroke:var(--muted);stroke-width:1}.chart-dot,.chart-dot-small{fill:var(--red);stroke:var(--surface);stroke-width:2}.chart-tip{position:absolute;transform:translate(-50%,-100%);background:var(--surface-2);border:1px solid var(--border);color:var(--text);font-size:.78rem;padding:6px 10px;border-radius:8px;white-space:nowrap;pointer-events:none;z-index:2}.chart-data{margin-top:6px}.chart-data summary{color:var(--muted);font-size:.8rem;cursor:pointer}.chart-data table{margin-top:8px}.xp-edit .input{padding:6px 10px;max-width:110px}.xp-edit td{vertical-align:middle}
