:root{color-scheme:dark;--ink:#f8f4f9;--muted:#d2c2d7;--border:#66546e}*{box-sizing:border-box}body{margin:0;background:#181619;color:var(--ink);font:1rem/1.55 system-ui,sans-serif}main{max-width:680px;margin:auto;padding:2rem 1rem 3rem}.logo{display:block;width:110px;max-height:65px;margin:0 0 1.25rem;object-fit:contain}.card{background:#242126;border:1px solid #403746;border-radius:1rem;padding:clamp(1rem,4vw,2rem)}.tag{color:#e8a9dd;font-size:.73rem;letter-spacing:.13em;font-weight:700}h1{font-size:clamp(2.2rem,8vw,3.5rem);line-height:1.03;margin:.55rem 0 1rem}h2{font-size:1.35rem;margin:0 0 .5rem}label{display:grid;gap:.35rem;margin:.85rem 0}input,button{font:inherit;border:1px solid var(--border);border-radius:.55rem;padding:.65rem .85rem;min-height:44px}input{width:100%;background:#19161d;color:var(--ink)}button{background:#252027;color:var(--ink);border-color:#a77eae;cursor:pointer}#submit{background:linear-gradient(110deg,#a65396,#62458e);border:0;color:white;font-weight:650}nav{display:flex;gap:.55rem;flex-wrap:wrap;margin-top:.8rem}button:disabled{opacity:.65}button:focus-visible,input:focus-visible{outline:2px solid #f2b7eb;outline-offset:3px}.panel{margin:.9rem 0;padding:1rem;border:1px solid #4d4054;border-radius:.65rem}.panel p{margin:.2rem 0;color:var(--muted);overflow-wrap:anywhere}li{margin:.55rem 0}#feedback:empty{display:none}[hidden]{display:none!important}

#booking select{font:inherit;padding:.65rem;border:1px solid var(--border);border-radius:.55rem;background:#19161d;color:var(--ink)}
.connected main{max-width:1050px}.connected .card{background:transparent;border:0;padding:0}.connected .panel{background:#242126;padding:clamp(1rem,3vw,1.6rem)}.connected h1{font-size:clamp(2.2rem,6vw,3.5rem)}.service-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:.8rem}.service-card{background:#1c1920;padding:1rem;border:1px solid #4d4054;border-radius:.65rem}.service-card h3{margin:.55rem 0}.badge{display:inline-block;background:#3b2941;color:#f4c3ed;border-radius:.45rem;padding:.2rem .55rem;font-size:.85rem}#lessons,#lesson-history{list-style:none;padding:0}.lesson-row{display:grid;gap:.3rem;border-bottom:1px solid #4d4054;padding:.7rem 0}.lesson-row .badge{justify-self:start}.connected details{margin-top:1.25rem}.connected summary{cursor:pointer}#open-booking{background:linear-gradient(110deg,#a65396,#62458e);font-weight:650}
#student-nav{margin-bottom:1rem}#student-nav [aria-pressed=true],.ev-controls [aria-pressed=true]{background:#593560}.ev-controls{display:flex;gap:.5rem;margin-bottom:.8rem}#evolution meter{display:block;width:100%;height:1.2rem;accent-color:#c484c6}#evolution-content{margin-top:.8rem}#evolution h3{margin:0 0 .6rem}
#student-sidebar{position:fixed;inset:0 auto 0 0;width:240px;padding:1.5rem 1rem;background:#1d1920;border-right:1px solid #403746;overflow:auto}#student-sidebar img{width:100%;max-width:205px}#student-sidebar nav{display:grid;gap:.3rem;margin:1.5rem 0}#student-sidebar nav a,#student-sidebar nav button{display:block;color:var(--ink);text-align:left;text-decoration:none;background:transparent;border:0;border-radius:.55rem;padding:.6rem .8rem;font-size:.93rem}#student-sidebar nav a:hover,#student-sidebar nav button:hover,#student-sidebar nav [aria-current],#student-sidebar nav [aria-pressed=true]{background:#493252}#student-sidebar small,.dashboard-intro p,.dashboard-tile small{color:var(--muted)}.dashboard-brand{display:block;margin-top:2rem;font-size:1.55rem;letter-spacing:.08em}.connected main{margin-left:240px;max-width:none;padding:2rem clamp(1.1rem,4vw,3.2rem)}.connected main>.logo{display:none}.dashboard-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.9rem;margin:1.4rem 0}.dashboard-tile{background:#242126;border:1px solid #403746;border-radius:.8rem;padding:1.15rem;min-height:110px}.dashboard-tile strong{display:block;margin-top:.55rem;font-size:clamp(1rem,1.8vw,1.55rem);line-height:1.2;overflow-wrap:anywhere}.dashboard-columns{display:grid;grid-template-columns:1.4fr 1fr;gap:1rem}.dashboard-columns a{color:#efb9eb}.dashboard-intro h1{margin:.7rem 0}.connected [id]{scroll-margin-top:1rem}@media(max-width:1000px){.dashboard-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:680px){#student-sidebar{position:static;width:auto;border-right:0;border-bottom:1px solid #403746;padding:1rem}#student-sidebar img{width:145px}.dashboard-brand,#student-sidebar small{display:none}#student-sidebar nav{display:flex;flex-wrap:wrap;margin:.55rem 0 0}.connected main{margin-left:0;padding-top:1rem}.dashboard-columns{grid-template-columns:1fr}}

.ev-summary,.ev-bars{display:grid;gap:.8rem}
.ev-summary{grid-template-columns:repeat(auto-fit,minmax(min(100%,165px),1fr))}
.ev-summary .service-card{background:linear-gradient(145deg,#38253e,#201b25);border-color:#61476b}
.ev-summary strong{display:block;font-size:clamp(1.35rem,3vw,2rem);color:#f7caef}
.ev-bars{grid-template-columns:repeat(4,minmax(0,1fr));margin:1rem 0}
.ev-bar{display:grid;grid-template-rows:3em 8rem auto;gap:.4rem;text-align:center;align-items:center;font-size:.85rem;color:var(--muted);overflow-wrap:anywhere}
.ev-bar strong{color:var(--ink)}
.ev-track{height:100%;width:min(75%,4rem);margin:auto;background:#352c3e;border-radius:.55rem;display:flex;align-items:end;overflow:hidden}
.ev-track span{width:100%;background:linear-gradient(0deg,#9855b8,#ed9bdf);border-radius:.5rem .5rem 0 0}
.ev-change{display:inline-block;margin:.7rem 0;color:#f7caef;font-size:1.2rem}
.ev-load{background:#1c1920;border-radius:.75rem;padding:.75rem;margin-top:.5rem}
.ev-line{display:block;width:100%;max-height:15rem}
.ev-gridline{stroke:#4d4054}
.ev-curve{fill:none;stroke:#eea0e2;stroke-width:3;stroke-linejoin:round}
.ev-dot{fill:#f7caef;stroke:#33223b;stroke-width:2}
.ev-values{display:flex;flex-wrap:wrap;justify-content:space-around;gap:.5rem;margin:0;padding:0;list-style:none;text-align:center}
.ev-values span{display:block;color:var(--muted);font-size:.85rem}

#evolution label{max-width:18rem}
#evolution select{font:inherit;min-height:44px;padding:.5rem .7rem;color:var(--ink);background:#1c1920;border:1px solid var(--border);border-radius:.5rem}
.ev-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:.3rem;max-width:34rem;margin:1rem 0;text-align:center;font-size:.85rem}
.ev-day{padding:.5rem 0;background:#302933;border-radius:.35rem;color:var(--muted)}
.ev-day[data-status="Realizado"]{background:#244639;color:#c0f5d5}
.ev-day[data-status="Não realizado"]{background:#55353b;color:#ffced3}
.ev-legend{white-space:pre-wrap;font-size:.85rem}
.ev-featured{background:#302538;border-left:3px solid #e99add;border-radius:.5rem;padding:1rem}
.ev-featured h4{margin:.3rem 0}
.ev-featured span{color:#f0c1e9;font-size:.85rem}
#evolution details details{margin:.6rem 0 0 1rem}

.student-toolbar{display:flex;justify-content:flex-end;align-items:center;gap:.7rem;margin-bottom:.35rem}
.student-toolbar p{margin:0;color:var(--muted);font-size:.8rem;text-align:right}
#refresh-student{background:transparent;border-color:#66546e;color:var(--muted);font-size:.85rem;padding:.35rem .65rem;white-space:nowrap}
#refresh-student:hover{background:#302538;color:var(--ink)}

.student-greeting{display:flex;align-items:center;gap:clamp(.65rem,2vw,1rem)}
#student-greeting-photo,#student-greeting-initials{width:clamp(44px,8vw,72px);height:clamp(44px,8vw,72px);border-radius:50%;flex:none;object-fit:cover}
#student-greeting-initials{display:grid;place-items:center;background:#493252;font-weight:700}

[data-student-view="student-home"] .dashboard-intro{padding:clamp(1rem,4vw,2.5rem);border:1px solid #58445f;border-radius:1.15rem;background:linear-gradient(115deg,#35263e,#231d28 75%)}
[data-student-view="student-home"] .dashboard-intro p{margin-bottom:0}
[data-student-view="student-home"] .dashboard-summary{grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr))}
.dashboard-columns .panel h2{margin-bottom:.7rem}
.dashboard-columns a{display:inline-block;margin-top:.5rem}

.student-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:1rem;margin:1rem 0}
.student-fields label{display:grid;gap:.4rem}
.student-fields dd{margin:.4rem 0 0;font-weight:650}
.week-nav{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin:1rem 0}
.week-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:.5rem;margin-bottom:1rem}
.week-day{min-height:5rem;padding:.6rem;background:#302538;border-radius:.6rem;overflow-wrap:anywhere}
.week-day small{color:#efc8e8}
@media(max-width:850px){.week-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,125px),1fr))}}
.profile-identity{padding:1rem;background:#302538;border-radius:.75rem}
#student-photo-preview{border-radius:50%;object-fit:cover}
.week-grid{display:grid;grid-template-columns:1fr;gap:.8rem}
.week-day{min-height:0;padding:.9rem 1rem}
.week-day h3{margin:0 0 .6rem;font-size:1rem;text-transform:capitalize}
.week-lesson{display:grid;grid-template-columns:4rem minmax(0,1fr) auto;align-items:center;gap:.75rem;padding:.65rem 0;border-top:1px solid #58445f}
.week-empty{padding:1rem;border:1px dashed #66546e;border-radius:.65rem}
@media(max-width:560px){.week-lesson{grid-template-columns:3rem minmax(0,1fr);gap:.4rem}.week-lesson small{grid-column:2;justify-self:start}}

.fd-intake [hidden]{display:none!important}
.fd-intake h2#intake-title{font-size:clamp(1.6rem,4vw,2.35rem);margin:.2rem 0}
.fd-intake .section{border-top:1px solid #4b4050;margin-top:22px;padding-top:18px}
.fd-intake .grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.fd-intake .wide{grid-column:1/-1}
.fd-intake textarea,.fd-intake select,.fd-intake input:not([type=checkbox]){font:inherit;color:inherit;background:#19161d;border:1px solid #66546e;border-radius:9px;padding:9px 12px;width:100%;min-width:0}
.fd-intake textarea{min-height:66px;resize:vertical}
.fd-intake .check,.fd-intake .actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.fd-intake .check input{width:auto;accent-color:#bd83ce}
.fd-intake .primary{background:#e2b8ee;color:#2b1730;font-weight:750}
.fd-intake .row{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:8px 0;padding:10px;border:1px solid #4b4050;border-radius:9px}
.fd-intake .row strong{overflow-wrap:anywhere}
.fd-intake dialog{width:min(550px,calc(100% - 24px));background:#242126;color:inherit;border:1px solid #66546e;border-radius:15px;padding:20px}
.fd-intake dialog::backdrop{background:#100b14bb}
@media(max-width:570px){.fd-intake .grid{grid-template-columns:1fr}}

.fd-intake .parq-section{margin-top:32px}
.fd-intake .parq-question{margin:0 0 14px;border:1px solid #57445f;border-radius:10px;padding:14px 16px}
.fd-intake .parq-question legend{font-size:14px;line-height:1.6;padding:0 6px;max-width:100%}
.fd-intake .parq-question label{display:inline-flex;align-items:center;gap:9px;margin:4px 24px 0 0;min-height:44px;cursor:pointer}
.fd-intake .parq-question input[type=radio]{width:18px;height:18px;padding:0;accent-color:#d49bda}
.fd-intake .parq-advice{padding:15px;border-left:3px solid #e6b46f;background:#372d22;color:#f3d8b6;line-height:1.6}
.fd-intake .parq-note{font-size:13px;color:#c6b7ce}
