:root{--bg-black: #05070d;--bg-dark: #0b1120;--bg-mid: #101827;--bg-panel: #0f172a;--panel-soft: #111c31;--blue-900: #1e3a8a;--blue-700: #2563eb;--blue-500: #3b82f6;--blue-400: #60a5fa;--text-light: #e5e9f0;--text-dim: #8b96ab;--border: #1e293b;--danger: #ef4444}*{box-sizing:border-box}html,body,#root{margin:0;min-height:100%}body{font-family:Inter,Segoe UI,Tahoma,Arial,sans-serif;background:radial-gradient(circle at top left,#0a1225,#04060c 70%);color:var(--text-light)}a{color:var(--blue-400);text-decoration:none}button,input{font:inherit}.auth-page{min-height:100vh;display:grid;place-items:center;padding:24px}.auth-card{width:100%;max-width:460px;background:#0f172af2;border:1px solid var(--border);border-radius:20px;padding:28px;box-shadow:0 18px 60px #00000059}.auth-brand{display:flex;align-items:center;gap:14px;margin-bottom:24px}.auth-logo,.brand-mark{width:42px;height:42px;border-radius:12px;background:linear-gradient(135deg,var(--blue-700),var(--blue-900));display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700}.auth-brand h1{margin:0 0 4px;font-size:24px}.auth-brand p{margin:0;color:var(--text-dim);font-size:14px}.auth-form{display:grid;gap:10px}.auth-form label{font-size:14px;color:var(--text-dim);margin-top:4px}.auth-form input{width:100%;border:1px solid var(--border);background:#0b1325;color:var(--text-light);border-radius:12px;padding:13px 14px;outline:none}.auth-form input:focus{border-color:var(--blue-500);box-shadow:0 0 0 3px #3b82f61f}.btn-primary{background:linear-gradient(135deg,var(--blue-700),#1d4ed8);color:#fff;border:none;border-radius:12px;padding:12px 18px;cursor:pointer;font-weight:600}.btn-ghost{background:transparent;color:var(--text-light);border:1px solid var(--border);border-radius:12px;padding:12px 18px;cursor:pointer}.auth-btn{margin-top:10px;width:100%}.auth-divider{position:relative;text-align:center;margin:18px 0}.auth-divider:before{content:"";position:absolute;inset:50% 0 auto;border-top:1px solid var(--border)}.auth-divider span{position:relative;background:var(--bg-panel);padding:0 10px;color:var(--text-dim);font-size:13px}.auth-error{background:#ef44441f;border:1px solid rgba(239,68,68,.3);color:#fecaca;border-radius:12px;padding:12px 14px;font-size:14px;margin-top:6px}.auth-foot{margin:18px 0 0;text-align:center;color:var(--text-dim);font-size:14px}.screen-center{min-height:100vh;display:grid;place-items:center}.app-shell{max-width:1100px;margin:0 auto;padding:28px 18px 64px}.app-topbar{display:flex;justify-content:space-between;align-items:center;gap:16px;padding-bottom:22px;border-bottom:1px solid var(--border);margin-bottom:28px}.brand{display:flex;align-items:center;gap:12px}.brand-name{font-size:22px;font-weight:600}.user-box{display:flex;align-items:center;gap:14px}.user-name{font-weight:600;text-align:right}.user-email{font-size:13px;color:var(--text-dim);text-align:right}.app-content-card{background:#0f172af2;border:1px solid var(--border);border-radius:18px;padding:24px}.rehab-root{min-height:100vh;background:linear-gradient(160deg,#0b1120,#111827 55%,#0a0f1c);color:#e5e7eb}.rehab-app{max-width:900px;margin:0 auto;padding:24px 16px 60px}.rehab-header{display:flex;justify-content:space-between;align-items:center;gap:14px;padding-bottom:24px;margin-bottom:32px;border-bottom:1px solid #263449}.rehab-brand{display:flex;align-items:center;gap:10px}.rehab-brand-mark{width:36px;height:36px;display:flex;align-items:center;justify-content:center;border-radius:8px;background:linear-gradient(135deg,#1d4ed8,#3b82f6);color:#fff;font-size:18px;font-weight:700}.rehab-brand-name{font-size:20px;font-weight:600;letter-spacing:.3px}.rehab-user-email{color:#94a3b8;font-size:12px;margin-top:4px}.rehab-header-actions{display:flex;gap:10px;flex-wrap:wrap}.rehab-btn-ghost{background:transparent;border:1px solid #263449;color:#94a3b8;cursor:pointer;border-radius:8px;padding:8px 16px;font-size:13px}.rehab-btn-ghost:hover{border-color:#3b82f6;color:#e5e7eb}.rehab-btn-primary{background:linear-gradient(135deg,#1d4ed8,#3b82f6);color:#fff;cursor:pointer;border:none;border-radius:8px;padding:10px 22px;font-size:14px;font-weight:600;box-shadow:0 4px 14px #3b82f659}.rehab-btn-primary:hover{filter:brightness(1.08)}.rehab-btn-primary:disabled,.rehab-btn-ghost:disabled,.rehab-btn-refresh:disabled{opacity:.55;cursor:default}.rehab-view{animation:rehabFadeIn .25s ease}@keyframes rehabFadeIn{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}.rehab-landing-view{text-align:center;padding:60px 0}.rehab-landing-view h1{font-size:28px;font-weight:700;margin-bottom:10px}.rehab-subtitle{color:#94a3b8;margin-bottom:32px}.rehab-landing-bar{max-width:600px;margin:0 auto;background:#1e293b;border:1px solid #263449;border-radius:12px;padding:6px;display:flex;gap:10px}.rehab-landing-bar input{flex:1;background:transparent;border:none;outline:none;color:#e5e7eb;padding:12px 14px;font-size:15px}.rehab-landing-bar button{background:linear-gradient(135deg,#1d4ed8,#3b82f6);color:#fff;border:none;border-radius:8px;padding:0 24px;font-weight:600;cursor:pointer}.rehab-progress-track{height:4px;overflow:hidden;background:#263449;border-radius:2px;margin-bottom:28px}.rehab-progress-fill{height:100%;background:linear-gradient(90deg,#1d4ed8,#60a5fa);transition:width .3s ease}.rehab-intake-card{background:#1e293b;border:1px solid #263449;border-radius:14px;padding:28px}.rehab-intake-label{color:#94a3b8;text-transform:uppercase;letter-spacing:.08em;font-size:12px;margin:0 0 8px}.rehab-intake-card h2{margin:0 0 22px;font-size:19px;font-weight:600;line-height:1.5}.rehab-options-list{display:flex;flex-direction:column;gap:10px}.rehab-option-btn{text-align:left;background:#0f172a;border:1px solid #263449;color:#e5e7eb;border-radius:10px;padding:13px 16px;font-size:14.5px;cursor:pointer;transition:border-color .15s ease,background .15s ease}.rehab-option-btn:hover{border-color:#3b82f6;background:#132036}.rehab-option-other{color:#94a3b8}.rehab-other-wrap{display:flex;gap:8px;margin-top:14px}.rehab-other-wrap input{flex:1;border:1px solid #263449;background:#0f172a;color:#e5e7eb;border-radius:8px;outline:none;padding:11px 14px}.rehab-other-wrap button{background:linear-gradient(135deg,#1d4ed8,#3b82f6);color:#fff;cursor:pointer;border:none;border-radius:8px;padding:0 18px;font-weight:600}.rehab-generating-view{text-align:center;padding:80px 0}.rehab-spinner{width:40px;height:40px;margin:0 auto 20px;border-radius:50%;border:3px solid #263449;border-top-color:#3b82f6;animation:rehabSpin .8s linear infinite}@keyframes rehabSpin{to{transform:rotate(360deg)}}.rehab-generating-view p{color:#94a3b8}.rehab-program-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin-bottom:24px}.rehab-program-head h2{margin:0;font-size:22px}.rehab-program-meta{color:#94a3b8;flex-basis:100%;margin:4px 0 0;font-size:13px}.rehab-program-actions{display:flex;gap:10px}.rehab-program-list{display:flex;flex-direction:column;gap:14px}.rehab-exercise-card{background:#1e293b;border:1px solid #263449;border-radius:12px;padding:18px 20px}.rehab-exercise-header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.rehab-exercise-header h3{color:#e5e7eb;margin:0;font-size:16px;font-weight:600}.rehab-btn-refresh{background:transparent;border:1px solid #263449;color:#94a3b8;cursor:pointer;border-radius:8px;flex-shrink:0;padding:6px 10px;font-size:12px}.rehab-btn-refresh:hover{border-color:#3b82f6;color:#e5e7eb}.rehab-exercise-dosage{color:#94a3b8;margin:10px 0;font-size:13.5px}.rehab-exercise-dosage strong{color:#e5e7eb}.rehab-exercise-meta{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px}.rehab-badge{border-radius:999px;padding:4px 10px;font-size:11px;font-weight:500;letter-spacing:.02em}.rehab-badge-category{color:#60a5fa;background:#3b82f626;border:1px solid rgba(59,130,246,.3)}.rehab-badge-grade{color:#4ade80;background:#22c55e1f;border:1px solid rgba(34,197,94,.25)}.rehab-badge-study{color:#94a3b8;background:#94a3b81f;border:1px solid #263449}.rehab-exercise-ref{color:#60a5fa;margin-top:8px;font-size:12.5px;display:block;text-decoration:none}.rehab-exercise-ref:hover{text-decoration:underline}.kartos-landing{max-width:860px;margin:0 auto;padding-top:72px}.kartos-badge{display:inline-flex;align-items:center;gap:8px;padding:8px 14px;border-radius:999px;background:#3b82f61f;border:1px solid rgba(59,130,246,.28);color:#93c5fd;font-size:13px;font-weight:600;margin-bottom:20px}.kartos-landing h1{max-width:780px;margin:0 auto 16px;font-size:40px;line-height:1.18;font-weight:800;letter-spacing:-.02em;color:#f8fafc}.kartos-subtitle{max-width:760px;margin:0 auto 22px;color:#9fb0c9;font-size:16px;line-height:1.8}.kartos-meta{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin-bottom:28px}.kartos-chip{padding:8px 14px;border-radius:999px;border:1px solid #263449;background:#0f172ab8;color:#dbeafe;font-size:13px}.kartos-chip-beta{color:#fde68a;border-color:#f59e0b47;background:#f59e0b1a}.kartos-landing-bar{max-width:720px;box-shadow:0 10px 30px #02061747}.arixa-inline-info{max-width:720px;margin:18px auto 0;padding:18px 20px;border-radius:16px;background:#0f172ab8;border:1px solid #263449;box-shadow:0 10px 30px #02061733}.arixa-inline-about{margin:0 0 10px;color:#cbd5e1;font-size:14px;line-height:1.8}.arixa-inline-follow{margin:0;color:#93c5fd;font-size:14px;font-weight:600}@media(max-width:720px){.app-topbar,.user-box{flex-direction:column;align-items:flex-start}.user-name,.user-email{text-align:left}.rehab-header,.rehab-header-actions,.rehab-program-actions,.rehab-exercise-header{flex-direction:column;align-items:flex-start}.kartos-landing{padding-top:40px}.kartos-landing h1{font-size:30px}.kartos-subtitle{font-size:15px;line-height:1.7}}@media(max-width:600px){.rehab-landing-view h1{font-size:22px}.rehab-landing-bar{flex-direction:column}.rehab-landing-bar button{padding:12px}.rehab-other-wrap{flex-direction:column}}.arixa-inline-label{margin:0 0 10px;color:#93c5fd;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.arixa-page-link{display:inline-flex;align-items:center;justify-content:center;margin-top:14px;padding:10px 16px;border-radius:10px;background:linear-gradient(135deg,#1d4ed8,#3b82f6);color:#fff;font-size:14px;font-weight:600;text-decoration:none;box-shadow:0 8px 22px #3b82f640;transition:transform .2s ease,filter .2s ease}.arixa-page-link:hover{filter:brightness(1.08);transform:translateY(-1px)}
