:root{--bronze:#db995a;--slate:#283d3b;--teal:#6f9283;--clay:#784f41;--red:#994636;--bronze-dark:#c98345;--teal-dark:#46685b;--teal-pale:#e4ece7;--red-pale:#f5e8e4;--surface:#fffefa;--surface-soft:#f4f2eb;--canvas:#f7f5ef;--border:#d9ddd5;--border-strong:#b5c1b8;--muted:#60716b;color:var(--slate);background:var(--canvas);font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}body{background:var(--canvas);margin:0}.auth-shell{place-items:center;min-height:100svh;padding:24px;display:grid}.auth-card{border:1px solid var(--border);background:var(--surface);border-radius:20px;width:min(100%,400px);padding:32px;box-shadow:0 16px 40px #283d3b1a}.eyebrow{color:var(--bronze);letter-spacing:.08em;text-transform:uppercase;margin:0 0 8px;font-size:.875rem;font-weight:750}h1{color:var(--slate);margin:0;font-size:1.75rem}.muted{color:var(--muted);margin:8px 0 24px}form{gap:8px;display:grid}label{color:var(--slate);margin-top:8px;font-size:.875rem;font-weight:650}input,textarea{box-sizing:border-box;border:1px solid var(--border-strong);background:var(--surface);width:100%;color:var(--slate);font:inherit;border-radius:10px;padding:11px 12px}input:focus,textarea:focus{border-color:var(--teal);outline:3px solid #6f928338}button{background:var(--bronze);min-height:44px;color:var(--slate);cursor:pointer;font:inherit;border:0;border-radius:10px;margin-top:16px;padding:11px 16px;font-weight:750}button:hover:not(:disabled){background:var(--bronze-dark)}button:disabled{cursor:wait;opacity:.7}.form-error{color:var(--red);margin:12px 0 0;font-size:.875rem}.form-success{color:var(--teal-dark);margin:12px 0 0;font-size:.875rem}.text-button{width:100%;color:var(--clay);background:0 0;margin-top:12px;padding:0}.text-button:hover:not(:disabled){color:var(--red);background:0 0;text-decoration:underline}.app-shell{min-height:100svh;color:var(--slate)}.app-content,.editor-shell{box-sizing:border-box;width:min(100%,720px);margin:auto}.app-content{padding:24px 20px calc(96px + env(safe-area-inset-bottom))}.search-input{border-color:var(--border);border-radius:12px;min-height:48px}.exercise-list{margin:16px 0 0;padding:0;list-style:none}.exercise-list li{border-bottom:1px solid var(--border)}.exercise-list li button{width:100%;min-height:58px;color:var(--slate);text-align:left;background:0 0;border-radius:0;margin:0;padding:14px 2px;font-weight:600}.exercise-list li button:hover{color:var(--clay);background:0 0}.empty-state,.status-message{color:var(--muted);padding:24px 2px}.error-state{color:var(--red)}.error-state button{margin:4px 0 0}.fab{right:max(20px,50vw - 340px);bottom:calc(80px + env(safe-area-inset-bottom));border-radius:50%;place-items:center;width:56px;min-height:56px;padding:0;display:grid;position:fixed;box-shadow:0 8px 20px #283d3b3d}.fab svg{fill:none;stroke:currentColor;stroke-width:2.4px;stroke-linecap:round;width:25px;height:25px}.bottom-nav{z-index:5;box-sizing:border-box;width:min(100%,520px);min-height:72px;padding:7px 14px calc(7px + env(safe-area-inset-bottom));border:1px solid var(--border);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#fffefaf5;border-bottom:0;border-radius:18px 18px 0 0;margin:auto;display:flex;position:fixed;bottom:0;left:0;right:0;box-shadow:0 -6px 20px #283d3b12}.nav-item{min-height:52px;color:var(--muted);background:0 0;border-radius:12px;flex:1;place-items:center;gap:1px;margin:0;padding:5px;font-size:.75rem;font-weight:700;display:grid}.nav-item:hover:not(:disabled),.nav-item.selected{background:var(--teal-pale);color:var(--slate)}.nav-item svg{fill:none;stroke:currentColor;stroke-width:1.8px;stroke-linecap:round;stroke-linejoin:round;width:22px;height:22px}.settings-screen{padding-top:8px}.settings-screen h1{font-size:1.25rem}.sign-out-action{width:100%;color:var(--red);text-align:left;background:0 0;margin-top:28px}.sign-out-action:hover:not(:disabled){background:var(--red-pale)}.editor-shell{padding:24px 20px 48px}.editor-header{justify-content:space-between;align-items:center;gap:16px;margin-bottom:28px;display:flex}.back-button{color:var(--muted);background:0 0;margin:0;padding:8px 0;font-weight:650}.back-button:hover:not(:disabled){color:var(--slate);background:0 0}.save-button{min-height:40px;margin:0}.exercise-editor{max-width:640px}.exercise-editor .editor-name,.exercise-editor .editor-text{box-shadow:none;background:0 0;border:0;border-radius:0;padding:4px 0;display:block}.editor-name{letter-spacing:-.04em;font-size:clamp(2rem,8vw,3rem);font-weight:750}.editor-text{resize:vertical;color:var(--muted);line-height:1.55}.editor-name:focus,.editor-text:focus{outline:2px solid var(--teal);outline-offset:4px}.link-field{align-items:center;gap:12px;margin-top:8px;display:flex}.link-field input{flex:1}.link-field a{color:var(--clay);white-space:nowrap}.editor-section{margin-top:34px}.editor-section h2{color:var(--muted);letter-spacing:.04em;text-transform:uppercase;margin:0 0 12px;font-size:.875rem;font-weight:750}.chips{flex-wrap:wrap;gap:8px;display:flex}.chip{border:1px solid var(--border);background:var(--surface-soft);min-height:40px;color:var(--slate);border-radius:999px;margin:0;padding:8px 13px;font-size:.9rem;font-weight:650}.chip:hover:not(:disabled){background:var(--teal-pale)}.chip.selected,.chip.selected:hover:not(:disabled){border-color:var(--teal);background:var(--teal);color:#fff}.muscle-region+.muscle-region{margin-top:18px}.muscle-region h3{color:var(--muted);margin:0 0 8px;font-size:.9rem;font-weight:650}.stars{gap:4px;display:flex}.star{min-width:44px;min-height:44px;color:var(--border-strong);background:0 0;margin:0;padding:0;font-size:1.8rem;line-height:1}.star:hover:not(:disabled){color:var(--bronze);background:0 0}.star.selected{color:var(--bronze)}.delete-action{color:var(--red);background:0 0;margin-top:48px;padding:8px 0;font-size:.9rem;font-weight:650}.delete-action:hover:not(:disabled){color:var(--red);background:0 0;text-decoration:underline}.dialog-backdrop{z-index:10;background:#283d3b61;place-items:end center;padding:20px;display:grid;position:fixed;inset:0}.discard-dialog{background:var(--surface);border-radius:18px;width:min(100%,420px);padding:24px;box-shadow:0 12px 32px #283d3b33}.discard-dialog h2{margin:0}.discard-dialog p{color:var(--muted)}.discard-dialog div{gap:8px;display:grid}.discard-dialog button{margin:0}.discard-button{background:var(--red);color:#fff}.discard-button:hover:not(:disabled){background:#7e382c}.keep-button{background:var(--surface-soft);color:var(--slate)}.keep-button:hover:not(:disabled){background:var(--teal-pale)}@media (width>=520px){.dialog-backdrop{place-items:center}.discard-dialog div{grid-template-columns:auto auto;justify-content:end}.keep-button{order:-1}}@media (width<=480px){.auth-shell,.app-content,.editor-shell{padding-left:16px;padding-right:16px}.auth-card{padding:24px}.fab{right:16px}}*,:before,:after{-webkit-tap-highlight-color:transparent}button:focus,input:focus,textarea:focus{outline:none}button:focus-visible,input:focus-visible,textarea:focus-visible,a:focus-visible{outline:2px solid var(--teal);outline-offset:3px}.exercise-editor .editor-name:focus,.exercise-editor .editor-text:focus{outline:none}.exercise-editor .editor-name:focus-visible,.exercise-editor .editor-text:focus-visible{outline:2px solid var(--teal);outline-offset:4px}.editor-header{margin-bottom:20px}.back-button{border-radius:50%;place-items:center;width:44px;min-height:44px;padding:0;display:grid}.back-button svg{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;width:24px;height:24px}.autosave-status{min-height:20px;color:var(--muted);margin:0;font-size:.8rem}.autosave-status.error{color:var(--red);align-items:center;gap:8px;display:flex}.autosave-status button{min-height:auto;color:var(--red);background:0 0;margin:0;padding:2px 0;font-size:.8rem;text-decoration:underline}.chip:disabled{cursor:default;opacity:1}.exercise-editor .editor-name,.exercise-editor .editor-text{overflow-wrap:anywhere;white-space:pre-wrap;width:100%;min-height:0;overflow:hidden}.editor-name{line-height:1.13}.editor-text{line-height:1.55}.description-field{margin-top:10px}.link-field{align-items:flex-start}.link-field .editor-text{flex:1;min-width:0}.link-field a{overflow-wrap:anywhere;word-break:break-word;padding-top:5px}.classification-section{margin-top:30px}.section-toggle{width:100%;min-height:48px;color:var(--muted);letter-spacing:.04em;text-align:left;text-transform:uppercase;background:0 0;border-radius:8px;justify-content:space-between;align-items:center;margin:0 0 10px;padding:0;font-size:.875rem;display:flex}.section-toggle:hover:not(:disabled){background:var(--surface-soft);color:var(--slate)}.section-toggle .chevron{fill:none;stroke:currentColor;stroke-width:2px;width:20px;height:20px;transition:transform .16s}.section-toggle .chevron.expanded{transform:rotate(180deg)}.none-selected{color:var(--muted);margin:0;font-size:.9rem;font-style:italic}.delete-action{border:1px solid color-mix(in srgb,var(--red) 45%,transparent);color:var(--red);background:0 0;border-radius:999px;margin:48px auto 0;padding:10px 20px;display:block}.delete-action:hover:not(:disabled){background:var(--red-pale);text-decoration:none}textarea.editor-name,textarea.editor-text{appearance:none;box-shadow:none!important;background:0 0!important;border:0!important;border-radius:0!important;padding:4px 0!important}
