/* Teacher editing and application forms share the Personal Space palette. */
.teacher-profile-editor{--teacher-ink:var(--space-ink,var(--ink,#30232d));--teacher-line:var(--space-line,var(--line,#e5d8e1));color:var(--teacher-ink)}
.teacher-profile-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:24px}.teacher-profile-heading h3{margin:0 0 8px;font-size:24px}.teacher-profile-heading p{margin:0;max-width:520px;line-height:1.6}.teacher-profile-heading button{flex:none}
.teacher-profile-photo{align-items:center;border-bottom:1px solid var(--teacher-line);padding:0 0 24px;margin-bottom:20px}.teacher-profile-photo .space-photo-preview{width:100px;height:100px;border-radius:50%;flex:none}.teacher-profile-photo label{font-weight:700}.teacher-profile-photo input{max-width:100%}.teacher-approved-languages{font-weight:700;line-height:1.5;padding:12px 0}
.teacher-edit-rows{display:grid!important;gap:0!important}.teacher-edit-rows>label{display:grid!important;grid-template-columns:minmax(110px,150px) minmax(0,1fr);gap:18px;align-items:start;padding:18px 0;border-bottom:1px solid var(--teacher-line)}.teacher-edit-rows input,.teacher-edit-rows textarea,.teacher-edit-rows select{margin:0!important;min-width:0;width:100%}.teacher-edit-rows textarea{resize:vertical}
.teacher-profile-group{padding:18px 0;border-bottom:1px solid var(--teacher-line)}.teacher-profile-group summary{font-size:16px;font-weight:700;cursor:pointer}.teacher-profile-group[open]>summary{margin-bottom:18px}.teacher-profile-save{position:sticky;bottom:16px;margin-top:24px;box-shadow:0 8px 25px #0002}
.teacher-profile-preview{box-sizing:border-box;width:min(580px,calc(100vw - 28px));max-height:85dvh;overflow:auto;padding:24px;border:1px solid var(--line,#dfd1dc);border-radius:24px;background:var(--paper,#fffdf9);color:var(--ink,#30232d)}.teacher-profile-preview::backdrop{background:#15101bb3}.teacher-profile-preview>button{display:block;margin-inline-start:auto}.teacher-profile-preview article>img{width:112px;height:112px;border-radius:50%;object-fit:cover;margin:20px 0}.teacher-profile-preview article>p{line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}.teacher-profile-preview h2{margin:12px 0}.teacher-profile-preview strong{display:block}
.teacher-application-flow{margin:16px 0 32px}.teacher-flow-step{position:relative;margin:0 0 0 17px;padding:0 0 24px 32px;border-inline-start:2px solid var(--line,#dfd1dc)}.teacher-flow-step:last-child{border-color:transparent}.teacher-flow-step>h2{margin:0!important}.teacher-flow-step>h2>button{display:flex;align-items:center;gap:16px;margin-inline-start:-51px;border:0!important;background:transparent!important;color:var(--ink,#30232d)!important;padding:0!important;font-size:clamp(21px,3vw,28px)!important;text-align:start;font-weight:600;box-shadow:none!important;cursor:pointer}.teacher-flow-step>h2>button:disabled{opacity:.65;cursor:default}.teacher-step-number{width:34px;height:34px;display:grid;place-items:center;flex:none;border:1px solid var(--line,#dfd1dc);border-radius:50%;background:var(--paper,#fffdf9);font-size:17px}.teacher-flow-step[data-active=true] .teacher-step-number{background:var(--aubergine,#60234f);color:var(--paper,#fffdf9);border-color:var(--aubergine,#60234f)}.teacher-flow-body{padding:24px 0 8px}.teacher-flow-body[hidden]{display:none!important}.teacher-step-actions{display:flex;gap:12px;justify-content:flex-end;margin-top:24px}.teacher-step-actions button{padding:12px 20px!important;border-radius:12px!important}.teacher-application-review{padding:20px;border:1px solid var(--line,#dfd1dc);border-radius:18px;margin-bottom:20px;background:var(--paper,#fffdf9)}.teacher-application-review dl{margin:0;display:grid;grid-template-columns:minmax(100px,1fr) 2fr;gap:16px}.teacher-application-review dt{font-weight:700}.teacher-application-review dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.teacher-final-submit{width:100%;margin-top:16px}.teacher-optional-details{padding:14px 0}.teacher-optional-details>summary{cursor:pointer;font-weight:700}.teacher-optional-details fieldset{margin-top:16px}.teacher-layout>div>section{margin-bottom:20px}
.teacher-profile-editor :is(input,textarea,select,button,a,summary):focus-visible,.teacher-application-flow :is(input,textarea,select,button,a,summary):focus-visible{outline:3px solid var(--orange-text,#ad6f38);outline-offset:3px}.teacher-application-flow input[type=checkbox]{accent-color:var(--aubergine,#60234f)}
@media(max-width:650px){.teacher-profile-heading{flex-direction:column}.teacher-edit-rows>label{grid-template-columns:1fr;gap:9px}.teacher-profile-photo{flex-wrap:wrap}.teacher-flow-step{padding-inline-start:22px;margin-inline-start:16px}.teacher-flow-step>h2>button{margin-inline-start:-41px;font-size:21px!important}.teacher-flow-body{padding-top:20px}.teacher-application-review{padding:15px}.teacher-application-review dl{grid-template-columns:1fr;gap:6px}.teacher-application-review dd{margin-bottom:12px}.teacher-step-actions{flex-wrap:wrap}.teacher-step-actions button{flex:1}.teacher-layout{display:block!important}}
html[data-theme=night] .teacher-profile-preview{background:#241a23;color:#f5edf2;border-color:#70546b}html[data-theme=night] .teacher-profile-preview .space-note{color:#d5c3d0}
