@font-face{font-family:Onest;src:url('/Onest.ttf') format('truetype');font-weight:100 900;font-display:swap}
:root{--bg:#edf2f1;--paper:#fff;--ink:#233c34;--muted:#5e7167;--accent:#436b54;--selected:#dcebcf;--border:#dce6df;--soft:#f4f7f4;--danger:#9a4434;--radius:24px;font-family:Onest,system-ui,sans-serif;font-synthesis:none;color:var(--ink);background:var(--bg);font-size:16px;line-height:1.6}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit;color:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}a{color:var(--accent)}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #759b60;outline-offset:4px}h1,h2,h3,p{margin:0}h1,h2,h3{font-weight:550;line-height:1.2}h1{font-size:clamp(2rem,4vw,3.5rem);letter-spacing:-.055em}h2{font-size:1.5rem;letter-spacing:-.04em}h3{font-size:1.1rem;letter-spacing:-.02em}p+p{margin-top:1rem}label{display:grid;gap:8px;font-size:.9rem}input,textarea,select{width:100%;border:1px solid #b9cbbf;background:#fff;border-radius:12px;padding:12px 14px;outline-offset:2px}textarea{resize:vertical;line-height:1.55}input[type=checkbox]{width:20px;height:20px;accent-color:var(--accent);flex:none;margin:3px 0 0}button{border:0}button.primary,.primary{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--accent);color:white;border-radius:12px;padding:13px 20px;text-decoration:none;font-size:.95rem;font-weight:500}button.secondary{padding:12px 18px;border-radius:12px;background:var(--soft);border:1px solid var(--border);font-size:.9rem}.quiet{background:none;color:var(--muted);padding:8px 0;font-size:.9rem;text-decoration:underline;text-underline-offset:4px}.eyebrow{font-size:.8rem;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}.muted{color:var(--muted)}.small{font-size:.85rem;line-height:1.55}.stack{display:grid;gap:20px}.actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center}.pill{display:inline-flex;padding:5px 11px;border-radius:30px;background:var(--selected);font-size:.8rem;white-space:nowrap}.brand{display:flex;gap:12px;align-items:center;font-size:1.05rem;font-weight:550}.brand img{width:40px;height:40px}.boot{padding:8vw}.auth-page{min-height:100svh;padding:32px clamp(20px,5vw,80px);display:grid;grid-template-rows:auto 1fr auto;gap:40px}.auth-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:clamp(40px,7vw,120px);align-items:center;max-width:1160px;margin:0 auto;width:100%}.intro{display:grid;gap:24px;max-width:540px}.intro h1{max-width:9ch}.intro>p{max-width:42ch;color:var(--muted)}.intro-steps{display:grid;gap:16px;margin-top:8px}.intro-step{display:flex;align-items:flex-start;gap:16px}.step-icon{display:grid;place-items:center;width:38px;height:38px;border:1px solid #c0d1c3;border-radius:50%;flex:none;color:var(--accent)}.intro-step strong{display:block;font-weight:500}.intro-step p{font-size:.9rem;color:var(--muted)}.auth-card{padding:32px;border:1px solid var(--border);border-radius:var(--radius);background:var(--paper);display:grid;gap:24px}.auth-card form{display:grid;gap:18px}.auth-card .primary{width:100%}.consent{display:flex;align-items:flex-start;gap:12px;color:var(--muted);font-size:.8rem}.auth-footer{font-size:.8rem;color:var(--muted);display:flex;justify-content:space-between;gap:24px}.error{color:var(--danger);font-size:.9rem;line-height:1.5}.status{color:var(--muted);font-size:.9rem}.notice{padding:14px 18px;border:1px solid #d5bc7a;border-radius:12px;background:#fcf8e9;color:#675126;font-size:.9rem}.shell{min-height:100svh;display:grid;grid-template-columns:88px minmax(0,1fr)}.rail{position:sticky;top:0;height:100dvh;display:flex;flex-direction:column;align-items:center;gap:20px;background:#f7f9f8;border-right:1px solid var(--border);padding:24px 12px}.rail .brand img{width:46px;height:46px}.rail nav{display:grid;gap:10px;margin-top:16px;width:100%}.nav{width:100%;display:grid;justify-items:center;gap:2px;padding:10px 3px;border-radius:14px;background:none;color:var(--muted);font-size:.75rem}.nav svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.6}.nav[aria-current=page]{background:var(--selected);color:var(--ink)}.rail-bottom{margin-top:auto}.avatar{width:42px;height:42px;display:grid;place-items:center;background:var(--selected);border-radius:50%;font-size:1.1rem}.workspace{min-width:0;padding:28px 40px 40px}.topbar{display:flex;justify-content:space-between;align-items:center;gap:16px;max-width:1400px;margin:0 auto 32px}.topbar p{font-size:.9rem;color:var(--muted)}.page{max-width:1400px;margin:auto}.page-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:28px}.page-head h1{font-size:2.3rem}.page-head p{margin-top:10px;color:var(--muted)}.dashboard{display:grid;grid-template-columns:minmax(0,1fr) 350px;gap:28px}.map{position:relative;min-height:480px;display:grid;place-items:center;background:radial-gradient(ellipse at center,#fff9,transparent 70%);overflow:hidden}.map-inner{position:relative;width:460px;height:430px;max-width:100%}.connections{position:absolute;inset:0;width:100%;height:100%;fill:none;stroke:#b6c8ba;stroke-width:1.5}.node{position:absolute;display:grid;place-items:center;gap:8px;text-align:center}.hero-node{left:50%;top:48%;transform:translate(-50%,-50%);width:154px;height:154px;border-radius:50%;background:var(--selected);border:1px solid #abc598;outline:1px solid #c9d6c7;outline-offset:10px}.hero-node strong{font-size:1.8rem;font-weight:450;letter-spacing:-.05em;max-width:135px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hero-node span{font-size:.8rem;color:var(--accent)}.hero-node div{display:grid;gap:4px}.branch{top:14px;left:50%;transform:translateX(-50%);gap:8px;max-width:190px}.branch-circle{width:70px;height:70px;border-radius:50%;display:grid;place-items:center;background:#fff;border:1px solid #b9cdbb;font-size:1.6rem}.node-label{font-size:.9rem;line-height:1.3;background:var(--bg);padding:0 8px}.skill-branch{top:auto;bottom:8px;left:50%;transform:translateX(-50%);max-width:250px}.skill-circle{border:1px solid var(--accent);background:white;width:48px;height:48px;border-radius:50%;display:grid;place-items:center;color:var(--accent)}.map-empty{position:absolute;bottom:4px;left:0;right:0;text-align:center;color:var(--muted);font-size:.85rem}.map-caption{display:flex;align-items:center;gap:10px;font-size:.85rem;color:var(--muted);padding:16px 0;border-top:1px solid var(--border)}.map-caption i{width:8px;height:8px;border-radius:50%;background:var(--accent)}.card{padding:26px;border-radius:var(--radius);border:1px solid var(--border);background:#fff;display:grid;gap:18px;align-content:start}.focus-card{min-height:340px}.focus-card h2{font-size:1.4rem}.focus-card .wizard{width:64px;height:64px}.metric-row{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--border);padding-top:20px;gap:20px}.metric strong{display:block;font-size:1.7rem;font-weight:450;line-height:1.3}.metric span{display:block;color:var(--muted);font-size:.8rem}.progress-track{height:5px;border-radius:20px;background:var(--soft);overflow:hidden;display:flex}.progress-track span{height:5px;background:var(--accent);flex:1}.progress-track i{height:5px;background:var(--soft);flex:1}.help-card{margin-top:24px;padding:22px 26px;display:flex;justify-content:space-between;gap:24px;border:1px solid var(--border);border-radius:20px}.help-card p{color:var(--muted);font-size:.85rem}.chat-page{max-width:1080px;display:grid;grid-template-columns:minmax(0,640px) minmax(260px,1fr);gap:28px}.chat-main{min-width:0;display:flex;flex-direction:column;gap:20px}.chat-title{display:flex;align-items:center;gap:12px}.chat-title img{width:44px;height:44px}.chat-title h1{font-size:1.4rem;letter-spacing:-.035em}.chat-title p{font-size:.8rem;color:var(--muted)}.messages{display:flex;flex-direction:column;gap:20px;padding:8px 0;min-height:200px}.message{display:grid;gap:8px;max-width:100%}.message-label{font-size:.75rem;color:var(--muted)}.message-body{white-space:pre-wrap;overflow-wrap:anywhere;font-size:1rem;line-height:1.75;max-width:65ch}.message.user{align-self:flex-end;max-width:90%;padding:16px 20px;border-radius:20px 20px 4px 20px;background:#e0e9e1}.message.assistant{padding-right:16px}.replies{display:flex;gap:8px;flex-wrap:wrap}.reply{background:#fff;border:1px solid #c2d2c5;border-radius:18px;padding:8px 13px;font-size:.85rem;text-align:left}.composer-wrap{position:sticky;bottom:0;background:linear-gradient(transparent,var(--bg) 18px);padding:20px 0 4px}.composer{display:grid;gap:10px;border:1px solid #b9cbbf;border-radius:20px;background:#fff;padding:14px}.composer textarea{border:0;padding:2px;min-height:70px;max-height:200px;resize:none}.composer textarea:focus{outline:0}.composer-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px}.composer-bottom span{font-size:.75rem;color:var(--muted)}.composer .primary{padding:9px 16px;font-size:.85rem}.chat-aside{align-self:start;position:sticky;top:28px;font-size:.9rem}.proposal-list{display:grid;gap:16px}.proposal-list dt{font-size:.75rem;color:var(--muted);margin-bottom:4px}.proposal-list dd{margin:0;overflow-wrap:anywhere}.preparing{display:flex;gap:10px;align-items:center;color:var(--accent);font-size:.9rem}.spinner{height:16px;width:16px;border:2px solid #bbccb9;border-top-color:var(--accent);border-radius:50%;animation:turn 1s linear infinite}@keyframes turn{to{transform:rotate(360deg)}}.course-page{max-width:1000px}.course-grid{display:grid;grid-template-columns:240px minmax(0,1fr);gap:28px}.lessons-nav{align-self:start;display:grid;gap:8px}.lesson-tab{background:none;border:1px solid transparent;padding:14px;text-align:left;border-radius:14px;display:flex;gap:12px;line-height:1.4;font-size:.9rem}.lesson-tab[aria-current=step]{background:#fff;border-color:var(--border)}.lesson-tab small{color:var(--muted);display:block;margin-top:4px}.lesson-number{width:28px;height:28px;border:1px solid #b9cbbf;border-radius:50%;display:grid;place-items:center;flex:none;font-size:.8rem}.lesson-tab.done .lesson-number{background:var(--selected);border-color:var(--selected)}.lesson-content{padding:32px;display:grid;gap:26px}.lesson-content section{display:grid;gap:12px}.prose{white-space:pre-wrap;line-height:1.85;overflow-wrap:anywhere;max-width:65ch}.practice{padding:22px;border:1px solid #c4d4b9;border-radius:16px;background:#f5f9f1;display:grid;gap:12px}.practice h3{font-size:1rem}.practice p{white-space:pre-wrap;font-size:.95rem}.check-box{padding-top:22px;border-top:1px solid var(--border);display:grid;gap:14px}.check-box form{display:grid;gap:14px}.check-box textarea{min-height:100px}.course-intro{margin-bottom:24px}.course-banner{padding:22px 26px;border:1px solid #becfb5;background:#f5f9f1;border-radius:20px;display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}.course-banner p{font-size:.9rem;color:var(--muted)}.review{margin-top:24px}.review form{display:grid;gap:16px}.profile-page{max-width:700px}.profile-page h1{font-size:2.2rem}.profile-page .card{margin-top:24px}.global-message{max-width:1400px;margin:0 auto 20px}.global-message:empty{display:none}.toast{position:fixed;right:24px;bottom:24px;padding:14px 20px;background:var(--ink);color:white;border-radius:14px;max-width:min(90vw,500px);z-index:9;font-size:.9rem}.toast:empty{display:none}details summary{cursor:pointer;color:var(--accent);font-size:.9rem}details p{padding-top:12px;color:var(--muted);font-size:.85rem}.empty-state{max-width:600px;margin:60px auto;text-align:center;display:grid;justify-items:center;gap:20px}.empty-state img{width:80px;height:80px}[hidden]{display:none!important}
@media(min-width:1600px){.workspace{padding-left:70px;padding-right:70px}.map{min-height:540px}}
@media(max-width:1100px){.workspace{padding:24px}.dashboard{grid-template-columns:minmax(0,1fr) 310px;gap:20px}.chat-page{grid-template-columns:minmax(0,1fr) 280px;gap:20px}.card{padding:22px}.map-inner{width:360px}.course-grid{grid-template-columns:200px minmax(0,1fr)}}
@media(max-width:760px){.auth-page{padding:20px;gap:28px}.auth-grid{grid-template-columns:1fr;gap:28px;max-width:480px}.intro{gap:16px}.intro h1{font-size:2.7rem;max-width:11ch}.intro-steps{display:none}.auth-card{padding:24px}.auth-footer{display:block}.auth-footer span{display:block;margin-top:4px}.shell{display:block}.rail{z-index:5;position:fixed;top:auto;bottom:0;left:0;right:0;width:100%;height:auto;flex-direction:row;border:0;border-top:1px solid var(--border);padding:8px 12px max(8px,env(safe-area-inset-bottom));background:#f7f9f8}.rail>.brand,.rail-bottom{display:none}.rail nav{display:flex;margin:0;gap:6px}.nav{padding:7px;font-size:.7rem;gap:3px}.nav svg{width:21px;height:21px}.workspace{padding:20px 20px 110px}.topbar{margin-bottom:28px;gap:10px}.topbar .brand{font-size:1rem}.topbar .brand img{width:34px;height:34px}.topbar p{font-size:.75rem}.page-head{margin-bottom:20px}.page-head h1{font-size:1.9rem}.page-head p{font-size:.9rem}.dashboard{grid-template-columns:1fr;gap:20px}.map{min-height:350px;order:2}.map-inner{height:340px;width:360px}.hero-node{width:130px;height:130px}.hero-node strong{font-size:1.5rem;max-width:110px}.branch-circle{width:56px;height:56px;font-size:1.3rem}.branch{top:0}.skill-branch{top:auto;bottom:0}.hero-node{top:48%}.focus-card{min-height:auto}.focus-card .wizard{display:none}.help-card{flex-direction:column;gap:12px;margin-top:20px}.chat-page{display:flex;flex-direction:column;gap:20px}.chat-main{gap:16px}.chat-aside{position:static;order:2}.messages{min-height:150px;gap:18px}.composer-wrap{bottom:70px;padding-bottom:8px}.composer{padding:12px}.composer-bottom span{font-size:.7rem}.message-body{font-size:1rem}.message.user{padding:14px 16px}.course-grid{grid-template-columns:1fr;gap:18px}.lessons-nav{display:flex;overflow:auto;padding-bottom:6px}.lesson-tab{min-width:180px;flex:0 0 180px;padding:12px}.lesson-content{padding:22px;gap:24px}.course-banner{padding:20px;display:grid;gap:16px}.course-banner .actions{gap:10px}.practice{padding:18px}.metric-row{gap:16px}.toast{bottom:100px;right:20px;left:20px}.chat-title h1{font-size:1.3rem}.profile-page h1{font-size:1.9rem}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;scroll-behavior:auto!important}}
.rail>.brand span{display:none}.step-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6}
@media(max-width:760px){.dashboard>div{order:2}.dashboard>.focus-card{order:1}.map{min-height:320px}.focus-card{gap:16px}}
