:root { --ink:#171b22; --muted:#747b82; --surface:#fff; --canvas:#f4f7fb; --line:#e4eaf1; --green:#12579a; --green-dark:#0c447c; --lime:#f4df9c; --blue:#e7f0fd; --mint:#e5f5ef; --gold:#d7b54a; --shadow:0 12px 34px rgba(22,66,108,.09); }
* { box-sizing:border-box; }
html, body { margin:0; min-height:100%; background:var(--canvas); color:var(--ink); font-family:Roboto,'Segoe UI Variable','Segoe UI',sans-serif; font-optical-sizing:auto; }
body { background:var(--canvas); }
a { color:inherit; text-decoration:none; }
button, input { font:inherit; }
button { cursor:pointer; }
h1,h2,p { margin-top:0; }
h1,h2,h3,.brand { font-family:Roboto,'Segoe UI Variable Display','Segoe UI',sans-serif; }
h1 { margin-bottom:1rem; font-size:clamp(2.45rem,7vw,5.1rem); line-height:.98; letter-spacing:-.055em; }
h2 { letter-spacing:-.035em; }
.app-shell { min-height:100dvh; }
.app-header { position:sticky; z-index:30; top:0; height:72px; padding:0 max(24px,calc((100% - 1180px)/2 + 24px)); display:flex; align-items:center; background:rgba(255,255,255,.96); border-bottom:1px solid var(--line); backdrop-filter:blur(18px); }
.brand { display:flex; align-items:center; gap:14px; font-size:1.12rem; }
.brand-mark { width:44px; height:44px; object-fit:cover; border-radius:14px; }
.brand-copy { display:grid; }.brand-copy strong { font-size:1.28rem; letter-spacing:-.015em; font-weight:650; }
.app-content { max-width:1180px; min-height:calc(100dvh - 72px); margin:auto; padding:42px 24px 110px; }
.bottom-nav { position:fixed; z-index:20; left:50%; bottom:16px; transform:translateX(-50%); display:flex; gap:2px; padding:6px 8px; border:1px solid rgba(222,228,236,.9); background:rgba(255,255,255,.94); box-shadow:0 8px 32px rgba(25,55,85,.14); backdrop-filter:blur(20px); border-radius:28px; }
.bottom-nav a { min-width:96px; min-height:58px; padding:7px 14px 6px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; color:#68717d; border-radius:22px; font-size:.68rem; font-weight:600; letter-spacing:.01em; }
.bottom-nav a.active { color:var(--green); background:#dbeaff; }
.nav-icon { width:32px; height:28px; display:grid; place-items:center; border-radius:16px; }
.nav-icon svg { width:23px; height:23px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.bottom-nav a.active .nav-icon svg { stroke-width:2.2; }
.welcome-grid { min-height:calc(100dvh - 155px); display:grid; place-items:center; padding:28px 0; }
.welcome-copy { max-width:660px; }
.auth-surface { position:relative; width:100%; padding:56px; overflow:hidden; background:linear-gradient(145deg,rgba(255,255,255,.98),rgba(241,247,255,.94)); border:1px solid #dfe8f3; border-radius:36px; box-shadow:0 22px 65px rgba(30,69,108,.12); }
.auth-visual { position:absolute; width:250px; height:250px; right:-34px; top:-42px; display:grid; place-items:center; border-radius:50%; background:linear-gradient(145deg,#e5efff,#f6f9ff); }.auth-visual img { position:relative; z-index:2; width:88px; height:88px; border-radius:26px; box-shadow:0 16px 34px rgba(16,66,125,.2); }.auth-orbit { position:absolute; border:1px solid rgba(18,87,154,.14); border-radius:50%; }.orbit-one { width:170px;height:170px; }.orbit-two { width:225px;height:225px; }.auth-kicker { display:inline-flex; margin-bottom:24px; padding:7px 12px; color:var(--green); background:#e3efff; border-radius:999px; font-size:.7rem; font-weight:750; letter-spacing:.06em; text-transform:uppercase; }.auth-surface h1 { position:relative; max-width:520px; margin-bottom:20px; font-size:clamp(2.7rem,6vw,4.5rem); }.auth-surface .lead { position:relative; max-width:510px; }.auth-benefits { margin:28px 0 6px; display:flex; flex-wrap:wrap; gap:10px; }.auth-benefits span { padding:9px 12px; display:flex; align-items:center; gap:7px; color:#48586a; background:rgba(255,255,255,.75); border:1px solid var(--line); border-radius:13px; font-size:.75rem; font-weight:600; }.auth-benefits svg { width:17px;height:17px;fill:none;stroke:var(--green);stroke-width:2;stroke-linecap:round;stroke-linejoin:round; }
.eyebrow { display:block; margin-bottom:17px; color:var(--green); font-size:.72rem; font-weight:800; text-transform:uppercase; letter-spacing:.14em; }
.lead { max-width:570px; color:var(--muted); font-size:clamp(1.02rem,2vw,1.22rem); line-height:1.65; }
.login-actions { max-width:470px; margin-top:24px; display:grid; gap:11px; }
.button { min-height:48px; border:0; border-radius:14px; display:inline-flex; align-items:center; justify-content:center; gap:12px; padding:12px 20px; font-weight:800; transition:transform .16s,box-shadow .16s,background .16s; }
.button:hover { transform:translateY(-2px); }
.button-primary { color:white; background:var(--green); box-shadow:0 10px 25px rgba(28,107,79,.2); }
.button-primary:hover { background:var(--green-dark); }
.oauth-button { min-height:56px; justify-content:flex-start; padding:11px 14px; border:1px solid var(--line); background:white; color:var(--ink); box-shadow:0 8px 22px rgba(23,35,29,.05); font-weight:650; }
.oauth-button:disabled { cursor:not-allowed; opacity:.58; box-shadow:none; transform:none; }
.soon-chip { margin-left:auto; padding:5px 8px; border-radius:999px; color:var(--muted); background:#edf2ed; font-size:.62rem; text-transform:uppercase; letter-spacing:.08em; }
.provider-mark { width:31px; height:31px; display:grid; place-items:center; border-radius:10px; font-weight:800; }
.yandex .provider-mark { color:#fff; background:#fc3f1d; }
.vk .provider-mark { color:#fff; background:#07f; font-size:.72rem; }
.privacy-note { max-width:470px; margin:17px 0 0; display:flex; align-items:flex-start; gap:9px; color:#7d8792; font-size:.72rem; line-height:1.55; }.privacy-note svg { flex:0 0 auto; width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round; }
.oauth-arrow { width:20px;height:20px;margin-left:auto;fill:none;stroke:var(--green);stroke-width:2;stroke-linecap:round;stroke-linejoin:round; }
.provider-note { max-width:430px; margin:11px 0 0; color:var(--muted); font-size:.7rem; line-height:1.5; }
.schedule-preview { position:relative; padding:28px; border:1px solid rgba(255,255,255,.7); background:rgba(255,255,255,.78); box-shadow:var(--shadow); backdrop-filter:blur(16px); border-radius:32px; transform:rotate(1.2deg); }
.schedule-preview::before { content:''; position:absolute; inset:-14px 22px auto; height:20px; background:var(--lime); border-radius:20px 20px 0 0; z-index:-1; }
.preview-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:23px; }
.preview-head div { display:grid; gap:3px; }.preview-head span { color:var(--muted); font-size:.74rem; }.preview-head strong { font-size:1.2rem; }
.live-chip,.date-chip,.provider-chip { padding:7px 10px; border-radius:999px; background:#edf2ed; color:var(--green)!important; font-size:.7rem; font-weight:800; }
.lesson-card { position:relative; margin-top:11px; padding:18px; display:grid; grid-template-columns:58px 1fr auto; align-items:center; gap:14px; border-radius:19px; overflow:hidden; }
.lesson-card::before { content:''; position:absolute; inset:0 auto 0 0; width:5px; background:var(--green); }.accent-blue { background:var(--blue); }.accent-mint { background:var(--mint); }
.lesson-time { color:var(--ink)!important; font-weight:800; }.lesson-card div { display:grid; gap:5px; }.lesson-card div span { color:var(--muted); font-size:.75rem; }.lesson-status { padding:6px 9px; background:rgba(255,255,255,.65); border-radius:999px; font-size:.62rem!important; font-weight:700; }
.preview-note { margin-top:18px; padding:13px; display:flex; gap:9px; align-items:center; border:1px dashed var(--line); border-radius:14px; color:var(--muted); font-size:.72rem; }.preview-note span { color:var(--green); font-weight:800; }
.state-panel { min-height:65vh; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; }.state-panel h1 { font-size:2rem; margin-top:20px; }.state-panel p { color:var(--muted); }
.spinner { width:36px; height:36px; border:3px solid var(--line); border-top-color:var(--green); border-radius:50%; animation:spin .8s linear infinite; }.state-icon { width:44px;height:44px;display:grid;place-items:center;background:#ffe5df;color:#a02b16;border-radius:50%;font-weight:800; }
@keyframes spin { to { transform:rotate(360deg); } }
.dashboard,.content-page,.onboarding-page { max-width:900px; margin:30px auto; }.dashboard h1,.content-page h1,.onboarding-page h1 { font-size:clamp(2.3rem,6vw,4rem); }
.dashboard-heading { display:flex; justify-content:space-between; align-items:end; gap:20px; }.dashboard-tags { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; }.role-status-chip { padding:7px 10px; border-radius:999px; color:#755d13; background:#f9edc8; font-size:.7rem; font-weight:800; }.onboarding-card { margin:32px 0 48px; padding:28px; display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:22px; color:white; background:var(--green); border-radius:25px; }.onboarding-card .eyebrow { color:var(--lime); margin-bottom:8px; }.onboarding-card h2 { margin-bottom:7px; }.onboarding-card p { margin:0; color:#cce0d6; }.onboarding-card .button { color:var(--green); background:var(--lime); box-shadow:none; }.onboarding-icon { width:50px;height:50px;display:grid;place-items:center;border-radius:16px;background:rgba(255,255,255,.12);font-size:1.5rem; }
.section-heading { display:flex; justify-content:space-between; align-items:center; }.section-heading a,.back-link { color:var(--green); font-size:.78rem; font-weight:800; }.empty-card { min-height:210px; padding:30px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; text-align:center; background:white; border:1px solid var(--line); border-radius:24px; }.empty-card span { color:var(--muted); }.empty-card.large { min-height:380px; }.empty-symbol { font-size:3rem; color:var(--green)!important; }.empty-card .button { margin-top:16px; }
.upcoming-list { display:grid; gap:14px; }.home-lesson { min-height:165px; }.home-lesson .time-rail { justify-content:center; }.home-lesson .type-chip { text-transform:uppercase; }.home-lesson .lesson-body h3 { margin:18px 0 14px; }
.access-gate { max-width:940px; min-height:calc(100dvh - 190px); margin:auto; display:flex; flex-direction:column; justify-content:center; }.access-pending { max-width:820px; align-items:center; text-align:center; }.access-pending h1 { max-width:680px; font-size:clamp(2.4rem,6vw,4.3rem); }.access-pending>p { max-width:590px; color:var(--muted); line-height:1.65; }.access-pending .spinner { margin-bottom:28px; }.access-setup { width:100%; }.setup-shell { position:relative; width:100%; padding:48px; overflow:hidden; background:linear-gradient(145deg,#fff 0%,#f7faff 58%,#edf4ff 100%); border:1px solid #dfe8f3; border-radius:36px; box-shadow:0 22px 64px rgba(28,66,104,.11); }.setup-shell::before,.setup-shell::after { content:''; position:absolute; pointer-events:none; border-radius:50%; }.setup-shell::before { width:280px;height:280px;right:-105px;top:-125px;background:rgba(199,221,252,.55); }.setup-shell::after { width:150px;height:150px;right:62px;top:-95px;border:1px solid rgba(18,87,154,.13); }.setup-heading { position:relative; z-index:1; max-width:680px; }.setup-heading h1 { max-width:640px; margin-bottom:16px; font-size:clamp(2.35rem,5vw,4rem); line-height:1.02; }.setup-heading>p { margin:0; color:var(--muted); font-size:1.02rem; line-height:1.6; }.setup-badge { width:max-content; margin-bottom:20px; padding:8px 12px; display:inline-flex; align-items:center; gap:7px; color:var(--green); background:#e2efff; border-radius:999px; font-size:.7rem; font-weight:800; letter-spacing:.06em; text-transform:uppercase; }.setup-badge svg { width:17px;height:17px;fill:currentColor; }.access-actions { position:relative; z-index:1; width:100%; margin-top:32px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; text-align:left; }.role-card { min-width:0; min-height:178px; padding:24px; display:grid; grid-template-columns:56px minmax(0,1fr) 36px; align-items:center; gap:18px; background:rgba(255,255,255,.9); border:1px solid #dfe7f1; border-radius:26px; box-shadow:0 8px 24px rgba(32,72,111,.06); transition:transform .18s,border-color .18s,box-shadow .18s,background .18s; }.role-card:hover { transform:translateY(-4px); border-color:#b9cde4; background:white; box-shadow:0 16px 32px rgba(32,72,111,.12); }.role-card:focus-visible { outline:3px solid rgba(18,87,154,.22); outline-offset:3px; }.role-icon { width:56px;height:56px;display:grid;place-items:center;border-radius:18px; }.role-icon svg { width:29px;height:29px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round; }.student-icon { background:var(--blue);color:#245f9f; }.teacher-icon { background:var(--mint);color:#18745e; }.role-copy { min-width:0; display:grid; gap:9px; }.role-copy strong { font-size:1.18rem; line-height:1.18; letter-spacing:-.025em; }.role-copy>span { color:var(--muted); font-size:.82rem; line-height:1.5; }.role-arrow { width:36px;height:36px;display:grid;place-items:center;color:var(--green);background:#edf4ff;border-radius:50%;transition:transform .18s,background .18s; }.role-arrow svg { width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round; }.role-card:hover .role-arrow { transform:translateX(2px);background:#dfeeff; }.setup-note { position:relative; z-index:1; margin-top:20px; display:flex; align-items:center; gap:10px; color:#687788; font-size:.74rem; line-height:1.5; }.setup-note svg { flex:0 0 auto;width:20px;height:20px;fill:none;stroke:var(--green);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round; }.access-toast { position:fixed; z-index:40; top:18px; left:50%; width:min(520px,calc(100% - 32px)); transform:translateX(-50%); padding:16px 18px; display:grid; gap:4px; color:#7d2a17; background:#fff1ec; border:1px solid #ffd1c4; border-radius:18px; box-shadow:0 12px 34px rgba(85,37,22,.14); }.access-toast span { font-size:.78rem; line-height:1.45; }
.onboarding-page { max-width:940px; }.onboarding-page .back-link { display:inline-block;margin-bottom:20px; }.setup-route .setup-shell { margin-bottom:30px; }.info-note { margin-top:18px;padding:17px 20px;display:flex;gap:14px;background:#edf2ed;border-radius:15px;font-size:.76rem; }.info-note span { color:var(--muted); }
.week-strip { margin:30px 0; display:grid;grid-template-columns:repeat(6,1fr);gap:8px; }.week-strip button { padding:12px;border:1px solid var(--line);background:white;border-radius:15px;display:grid;gap:7px;color:var(--muted); }.week-strip button.active { background:var(--green);color:white;border-color:var(--green); }.week-strip span { font-size:.7rem; }.profile-card { padding:22px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:16px;background:white;border:1px solid var(--line);border-radius:20px; }.avatar { width:52px;height:52px;display:grid;place-items:center;background:var(--lime);border-radius:16px;font-weight:800;font-size:1.25rem; }.profile-card div:nth-child(2) { display:grid;gap:5px; }.profile-card div span { color:var(--muted);font-size:.78rem; }.settings-card { margin:16px 0;padding:0 20px;background:white;border:1px solid var(--line);border-radius:20px; }.settings-card>a,.settings-card>div { min-height:65px;display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid var(--line);font-size:.82rem; }.settings-card>div:last-child { border:0; }.settings-card strong { color:var(--muted);font-size:.75rem; }.button-danger { color:#a02b16;background:#ffe5df; }
.schedule-page { max-width:820px; margin-top:0; }.calendar-card { padding:30px 34px 26px; background:#fff; border:1px solid #edf1f6; border-radius:30px; box-shadow:var(--shadow); }.calendar-heading { display:grid; grid-template-columns:48px 1fr 48px; align-items:center; text-align:center; }.calendar-heading button { border:0; background:transparent; color:var(--green); font-size:2.6rem; line-height:1; }.calendar-heading h1 { margin:0 0 6px; font-size:1.65rem; letter-spacing:-.025em; }.calendar-heading span { color:var(--green); font-size:.83rem; }.calendar-days { margin-top:26px; display:grid; grid-template-columns:repeat(7,1fr); gap:8px; }.calendar-days button { min-height:85px; display:grid; place-items:center; align-content:center; gap:10px; border:0; border-radius:24px; background:transparent; color:#555e69; }.calendar-days span { font-size:.73rem; font-weight:500; }.calendar-days strong { font-size:1.25rem; }.calendar-days button.active { color:#fff; background:var(--green); box-shadow:0 10px 24px rgba(18,87,154,.24); }.schedule-date-heading { margin:46px 14px 20px; display:flex; align-items:end; justify-content:space-between; }.schedule-date-heading div>span { color:var(--muted); font-size:.88rem; }.schedule-date-heading h2 { margin:4px 0 0; font-size:2rem; font-weight:500; }.week-chip { padding:11px 16px; color:var(--green); background:#e4efff; border-radius:16px; font-size:.8rem; font-weight:800; }.lesson-list { display:grid; gap:16px; }.schedule-lesson { min-height:190px; display:grid; grid-template-columns:150px 1fr; overflow:hidden; background:#fff; border-radius:26px; box-shadow:0 8px 25px rgba(22,66,108,.07); }.time-rail { padding:29px 22px; display:flex; flex-direction:column; gap:12px; color:var(--green); background:#e6f0fc; }.time-rail strong { font-size:1.18rem; line-height:1.45; }.time-rail span { font-size:.78rem; }.lesson-body { padding:27px 30px; }.lesson-meta { display:flex; align-items:center; justify-content:space-between; gap:15px; }.type-chip { padding:8px 13px; color:#76601a; background:#f9edc8; border-radius:12px; font-size:.72rem; font-weight:800; }.room-chip { padding:8px 13px; color:#28705f; background:#e4f4ef; border-radius:12px; font-size:.72rem; font-weight:800; }.lesson-body h3 { max-width:530px; margin:23px 0 18px; font-size:1.45rem; line-height:1.35; letter-spacing:-.025em; }.lesson-body p { margin:0; color:var(--muted); font-size:.88rem; }
.today-link{display:inline!important;padding:0!important;color:var(--green)!important;font-size:.83rem!important}.calendar-days i{width:5px;height:5px;margin-top:-4px;background:currentColor;border-radius:50%}.lesson-button{position:relative;width:100%;padding:0;color:inherit;text-align:left;border:0;transition:transform .16s,box-shadow .16s}.lesson-button:hover{transform:translateY(-2px);box-shadow:0 13px 30px rgba(22,66,108,.12)}.lesson-button:focus-visible{outline:3px solid rgba(18,87,154,.22);outline-offset:3px}.lesson-chevron{position:absolute;right:18px;top:50%;color:#8a97a5;font-size:2rem;transform:translateY(-50%)}.change-chip{width:max-content;margin:16px 0 -8px;padding:7px 10px;display:block;color:#735c09;background:#fff1bd;border-radius:10px;font-size:.7rem;font-weight:800}.is-rescheduled{border:1px solid #e7c85c}.is-rescheduled .time-rail{color:#735c09;background:#fff2c8}.is-cancelled{opacity:.68}.is-cancelled .lesson-body h3{text-decoration:line-through}.is-cancelled .time-rail{color:#912e1a;background:#ffe8e1}.cancelled-chip{color:#912e1a;background:#ffe5df}.lesson-dialog-backdrop{position:fixed;z-index:80;inset:0;padding:24px;display:grid;place-items:center;background:rgba(14,26,39,.48);backdrop-filter:blur(6px)}.lesson-dialog{position:relative;width:min(570px,100%);max-height:calc(100dvh - 48px);padding:34px;overflow-y:auto;background:#fff;border-radius:28px;box-shadow:0 28px 80px rgba(10,30,50,.3)}.dialog-close{position:absolute;right:18px;top:16px;width:38px;height:38px;color:#526170;background:#edf2f7;border:0;border-radius:50%;font-size:1.45rem}.dialog-eyebrow{display:block;margin:0 45px 12px 0;color:var(--green);font-size:.75rem;font-weight:800;text-transform:capitalize}.lesson-dialog h2{margin:0 42px 20px 0;font-size:1.8rem;line-height:1.18}.lesson-details{display:grid;gap:9px;color:#617080;font-size:.84rem}.lesson-details strong{color:#273442}.dialog-change-note{margin-top:20px;padding:14px;color:#735c09;background:#fff3ca;border-radius:14px;font-size:.78rem;font-weight:700}.cancelled-note{color:#912e1a;background:#ffe9e3}.dialog-actions{margin-top:26px;display:flex;flex-wrap:wrap;gap:10px}.reschedule-button{color:#fff;background:#b38a00}.reschedule-form{margin-top:26px;padding-top:22px;border-top:1px solid var(--line)}.reschedule-form>label,.reschedule-form>div>label{display:grid;gap:7px;color:#556574;font-size:.72rem;font-weight:700}.reschedule-form>div:not(.dialog-actions){margin-top:13px;display:grid;grid-template-columns:1fr 1fr;gap:12px}.reschedule-form input{min-height:48px;padding:10px 12px;border:1px solid #b9c4cf;border-radius:12px}.form-error{margin:14px 0 0;color:#9a321c;font-size:.76rem}
.reschedule-form>label+label{margin-top:13px}.reschedule-form select{min-height:48px;padding:10px 12px;color:var(--ink);background:#fff;border:1px solid #b9c4cf;border-radius:12px}
@media(max-width:760px){.lesson-chevron{right:10px}.lesson-button .lesson-body{padding-right:30px}.change-chip{max-width:100%;font-size:.62rem}.lesson-dialog-backdrop{padding:12px;place-items:end center}.lesson-dialog{max-height:88dvh;padding:28px 20px 24px;border-radius:26px 26px 18px 18px}.lesson-dialog h2{font-size:1.45rem}.dialog-actions{display:grid}.dialog-actions .button{width:100%}.reschedule-form>div:not(.dialog-actions){grid-template-columns:1fr}}
#blazor-error-ui { display:none; position:fixed; z-index:100; bottom:90px; left:50%; transform:translateX(-50%); padding:13px 45px 13px 18px; background:#352c28;color:white;border-radius:14px;box-shadow:var(--shadow);font-size:.8rem; } #blazor-error-ui a{color:var(--lime);}.dismiss{position:absolute;right:15px;cursor:pointer;}
.loading-progress { position:absolute;display:block;width:6rem;height:6rem;inset:30vh 0 auto;margin:auto; }.loading-progress circle{fill:none;stroke:#dce2db;stroke-width:.55rem;transform-origin:50% 50%;transform:rotate(-90deg)}.loading-progress circle:last-child{stroke:var(--green);stroke-dasharray:calc(3.141 * var(--blazor-load-percentage,0%) * .8),500%;}.loading-progress-text{position:absolute;inset:calc(30vh + 2.55rem) 0 auto;text-align:center;font-size:.7rem}.loading-progress-text::after{content:var(--blazor-load-percentage-text,'');}
@media(max-width:760px){.app-header{height:64px;padding:0 16px}.brand-mark{width:40px;height:40px;border-radius:12px}.brand-copy strong{font-size:1.08rem}.app-content{padding:30px 16px 110px}.welcome-grid{display:block;min-height:auto}.welcome-copy{padding:30px 0 45px}.welcome-copy h1{font-size:3.05rem}.schedule-preview{padding:20px;transform:none}.lesson-card{grid-template-columns:52px 1fr}.lesson-status{display:none}.bottom-nav{bottom:10px;width:calc(100% - 24px)}.bottom-nav a{flex:1;min-width:0;padding:9px 5px;flex-direction:column;gap:3px;font-size:.62rem}.onboarding-card{grid-template-columns:auto 1fr}.onboarding-card .button{grid-column:1/-1}.role-grid{grid-template-columns:1fr}.role-card{min-height:180px}.dashboard-heading{display:block}.date-chip{display:inline-block;margin-bottom:12px}.week-strip{overflow-x:auto;grid-template-columns:repeat(6,60px)}.info-note{flex-direction:column;gap:4px}.calendar-card{padding:23px 16px 19px;border-radius:27px}.calendar-heading{grid-template-columns:36px 1fr 36px}.calendar-heading h1{font-size:1.38rem}.calendar-heading span{font-size:.75rem}.calendar-days{gap:2px;margin-top:19px}.calendar-days button{min-height:72px;border-radius:21px}.calendar-days span{font-size:.62rem}.calendar-days strong{font-size:1.08rem}.schedule-date-heading{margin:38px 8px 18px}.schedule-date-heading h2{font-size:1.75rem}.schedule-lesson{grid-template-columns:112px 1fr;min-height:180px;border-radius:24px}.time-rail{padding:25px 16px}.time-rail strong{font-size:1rem}.lesson-body{padding:24px 20px}.lesson-body h3{margin:20px 0 15px;font-size:1.15rem}.lesson-body p{font-size:.72rem}.type-chip,.room-chip{padding:7px 9px;font-size:.62rem}}

/* Compact schedule cards. Changed occurrences keep context without competing with active lessons. */
.schedule-lesson{min-height:142px;grid-template-columns:122px 1fr;border-radius:22px}
.time-rail{padding:20px 18px;gap:8px}
.lesson-body{padding:19px 27px 19px 21px}
.lesson-body h3{margin:14px 0 10px;font-size:1.18rem}
.type-chip,.room-chip{padding:6px 9px}
.change-chip{margin:9px 0 -1px;padding:6px 9px}
.is-cancelled,.is-reschedule-placeholder{min-height:94px;grid-template-columns:104px 1fr;opacity:.66;background:#f7f8fa;border:1px solid #e3e7ec;box-shadow:none}
.is-cancelled .time-rail,.is-reschedule-placeholder .time-rail{padding:14px;color:#737d87;background:#edf0f3}
.is-cancelled .lesson-body,.is-reschedule-placeholder .lesson-body{padding:14px 27px 14px 17px}
.is-cancelled .lesson-meta,.is-reschedule-placeholder .lesson-meta{display:none}
.is-cancelled .lesson-body h3,.is-reschedule-placeholder .lesson-body h3{margin:0 0 6px;color:#5f6872;font-size:1rem}
.is-cancelled .lesson-body p,.is-reschedule-placeholder .lesson-body p{color:#8a929b;font-size:.7rem}
.is-cancelled .change-chip,.is-reschedule-placeholder .change-chip,.is-cancelled .cancelled-chip{margin:0 0 6px;color:#69737d;background:#e8ebee}
.is-reschedule-placeholder .lesson-body h3{font-weight:600}
.is-rescheduled-target{border:1px solid #b9d4ee;box-shadow:0 8px 25px rgba(22,66,108,.09)}
.is-rescheduled-target .time-rail{color:#12579a;background:#dcecff}
.is-rescheduled-target .change-chip{color:#12579a;background:#e4efff}
.is-cancelled:hover,.is-reschedule-placeholder:hover{opacity:.82}

@media(max-width:760px){.schedule-lesson{min-height:132px;grid-template-columns:96px 1fr}.time-rail{padding:18px 13px}.lesson-body{padding:17px 25px 17px 16px}.lesson-body h3{margin:12px 0 9px;font-size:1.05rem}.is-cancelled,.is-reschedule-placeholder{min-height:88px;grid-template-columns:88px 1fr}.is-cancelled .time-rail,.is-reschedule-placeholder .time-rail{padding:12px}.is-cancelled .lesson-body,.is-reschedule-placeholder .lesson-body{padding:12px 24px 12px 14px}.is-cancelled .lesson-body h3,.is-reschedule-placeholder .lesson-body h3{font-size:.92rem}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}

.lesson-dialog{scrollbar-gutter:stable;overscroll-behavior:contain}
.material-form{display:grid;gap:14px}
.material-field{position:relative;display:block!important;color:inherit!important;font-size:inherit!important}
.material-field>span{position:absolute;z-index:1;left:13px;top:-7px;padding:0 5px;color:#657486;background:#fff;font-size:.68rem;font-weight:700}
.material-field input,.material-field select,.material-field textarea{width:100%;min-height:56px;padding:14px 13px 10px;color:var(--ink);background:#fff;border:1px solid #9eabb8;border-radius:14px;outline:0;font:inherit;transition:border-color .16s,box-shadow .16s}
.material-field textarea{min-height:92px;padding-top:18px;resize:vertical}
.material-field input:focus,.material-field select:focus,.material-field textarea:focus{border:2px solid var(--green);padding-right:12px;padding-left:12px;box-shadow:0 0 0 3px rgba(18,87,154,.1)}
.material-switch{min-height:44px;display:flex!important;align-items:center;gap:11px!important;color:#465767!important;font-size:.78rem!important}
.material-switch input{width:20px;height:20px;margin:0;accent-color:var(--green)}
.time-fields{margin-top:0!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:12px!important}
.md-outlined-field{position:relative;min-height:60px;display:grid!important;grid-template-columns:28px minmax(0,1fr);align-items:center;gap:10px;color:var(--ink)!important;font-size:inherit!important;background:#fff;border:1px solid #aeb9c6;border-radius:15px;transition:border-color .16s,box-shadow .16s,background .16s}
.md-outlined-field:focus-within{border:2px solid var(--green);box-shadow:0 0 0 3px rgba(18,87,154,.1)}
.md-outlined-field>svg{width:23px;height:23px;margin-left:14px;color:var(--green)}
.md-outlined-field>span{position:absolute;z-index:1;top:-8px;left:49px;padding:0 6px;color:#667483;background:#fff;font-size:.69rem;font-weight:700;line-height:1.4;letter-spacing:.02em}
.md-outlined-field>input{min-width:0;width:100%;height:58px;padding:10px 14px 8px 8px;color:var(--ink);background:transparent;border:0;outline:0;font:inherit;font-size:.88rem;color-scheme:light}
.md-segmented{padding:4px;display:grid;grid-template-columns:1fr 1fr;gap:4px;background:#edf2f7;border-radius:15px}
.md-segmented button{min-height:44px;padding:8px 12px;color:#5d6b78;background:transparent;border:0;border-radius:11px;font:inherit;font-size:.76rem;font-weight:700;transition:color .16s,background .16s,box-shadow .16s}
.md-segmented button.selected{color:var(--green);background:#fff;box-shadow:0 3px 10px rgba(25,61,97,.12)}
.md-segmented button:focus-visible{outline:3px solid rgba(18,87,154,.16);outline-offset:1px}
.material-form>.material-select{z-index:3}
@media(max-width:760px){.lesson-dialog{scrollbar-gutter:auto;scrollbar-width:none}.lesson-dialog::-webkit-scrollbar{display:none}.time-fields{grid-template-columns:1fr 1fr!important}}

/* Material lesson sheet and scalable teacher roster */
.lesson-dialog-backdrop{padding:24px;place-items:center;background:rgba(20,28,38,.56)}
.lesson-dialog{width:min(820px,100%);max-height:min(900px,calc(100dvh - 48px));padding:0;overflow:hidden;display:flex;flex-direction:column;border-radius:28px;background:var(--surface,#fff);box-shadow:0 24px 64px rgba(13,34,54,.28)}
.lesson-dialog-header{flex:none;padding:24px 24px 18px 28px;display:flex;align-items:flex-start;justify-content:space-between;gap:24px;border-bottom:1px solid var(--line)}
.lesson-dialog-header>div{min-width:0}.lesson-dialog-header .dialog-eyebrow{margin:0 0 8px}.lesson-dialog-header h2{margin:0;max-width:650px;font-size:1.65rem}.dialog-close{position:static;flex:none;display:grid;place-items:center;cursor:pointer;transition:background .15s,transform .15s}.dialog-close:hover{background:#e3eaf1}.dialog-close:active{transform:scale(.94)}
.lesson-dialog-content{padding:22px 28px 28px;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.lesson-details{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 24px;padding:16px 18px;border-radius:16px;background:#f6f8fa}.lesson-details span:first-child{font-size:.95rem}
.lesson-management-actions{margin:20px 0 4px;display:flex;gap:10px}.md-button{min-height:44px;padding:0 20px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:22px;font:inherit;font-size:.82rem;font-weight:750;cursor:pointer;transition:background .15s,box-shadow .15s,transform .1s}.md-button:focus-visible{outline:3px solid rgba(18,87,154,.22);outline-offset:2px}.md-button:active{transform:scale(.98)}.md-button-tonal{color:#604b00;background:#f5e7a6}.md-button-tonal:hover{background:#ead582;box-shadow:0 2px 6px rgba(80,62,0,.15)}.md-button-danger{color:#9b2c18;background:#ffdad1}.md-button-danger:hover{background:#ffcabe}.md-button-text{min-height:36px;padding:0 14px;color:var(--green);background:transparent}.md-button-text:hover{background:rgba(18,87,154,.08)}
.md-button-filled{color:#fff;background:var(--green);box-shadow:0 2px 5px rgba(18,87,154,.2)}.md-button-filled:hover{background:#0e4a84;box-shadow:0 4px 9px rgba(18,87,154,.24)}.md-button:disabled{opacity:.52;cursor:not-allowed;box-shadow:none}.student-absence-action{margin-top:20px}.dialog-actions .md-button{min-width:140px}
.student-roster{margin-top:24px;padding-top:22px;border-top:1px solid var(--line)}.student-roster-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.student-roster-heading>div{display:flex;align-items:baseline;gap:9px}.student-roster h3{margin:0;font-size:1.25rem}.student-roster-heading span{color:var(--muted);font-size:.74rem}.roster-summary{padding-top:5px}.roster-state{min-height:150px;margin-top:16px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;color:var(--muted);text-align:center;border:1px dashed #ccd5de;border-radius:18px;background:#fafbfc}.roster-state p{margin:0}.roster-empty-icon{font-size:1.8rem}.roster-error{color:#922c1a;background:#fff8f6;border-color:#efc5bb}
.student-roster-tools{margin-top:16px;display:grid;gap:13px}.roster-search{height:48px;padding:0 16px;display:flex;align-items:center;gap:10px;border:1px solid #aeb9c4;border-radius:14px;background:#fff;transition:border-color .15s,box-shadow .15s}.roster-search:focus-within{border-color:var(--green);box-shadow:0 0 0 3px rgba(18,87,154,.12)}.roster-search>span{color:#647485;font-size:1.4rem}.roster-search input{width:100%;height:100%;padding:0;color:var(--ink);background:transparent;border:0;outline:0;font:inherit;font-size:.82rem}.roster-filters{display:flex;gap:8px;overflow-x:auto;padding:1px 1px 4px;scrollbar-width:none}.roster-filters::-webkit-scrollbar{display:none}.filter-chip{min-height:34px;padding:0 13px;display:inline-flex;align-items:center;gap:7px;white-space:nowrap;color:#425466;background:#fff;border:1px solid #aeb9c4;border-radius:18px;font:inherit;font-size:.72rem;font-weight:700;cursor:pointer}.filter-chip span{min-width:20px;padding:2px 6px;color:#526170;background:#edf1f5;border-radius:10px;font-size:.66rem}.filter-chip.selected{color:#fff;background:var(--green);border-color:var(--green)}.filter-chip.selected span{color:var(--green);background:#fff}
.student-list{height:min(390px,44dvh);margin-top:10px;overflow-y:auto;border:1px solid var(--line);border-radius:18px;background:#fff}.student-row{min-height:72px;padding:10px 14px;display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:12px;border-bottom:1px solid #edf0f3}.student-row:last-child{border-bottom:0}.student-row:hover{background:#f7f9fb}.student-avatar{width:40px;height:40px;display:grid;place-items:center;color:#244a37;background:#dcefe3;border-radius:50%;font-size:.75rem;font-weight:800}.student-identity{min-width:0;display:grid;gap:3px}.student-identity strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.82rem}.student-identity>span{color:var(--muted);font-size:.7rem}.student-identity small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#922c1a;font-size:.68rem}.student-indicators{display:flex;align-items:flex-end;flex-direction:column;gap:5px}.status-pill{padding:4px 8px;color:#687787;background:#eef1f4;border-radius:9px;font-size:.64rem;font-weight:750;white-space:nowrap}.status-pill.is-viewed{color:#27633f;background:#dff3e7}.status-pill.is-absent{color:#9a321c;background:#ffe4dc}.roster-no-results{height:100%;display:grid;place-items:center;color:var(--muted);font-size:.78rem}
@media(max-width:760px){.lesson-dialog-backdrop{padding:0;place-items:end center}.lesson-dialog{width:100%;max-height:94dvh;border-radius:28px 28px 0 0}.lesson-dialog-header{padding:20px 18px 16px 20px}.lesson-dialog-header h2{font-size:1.35rem}.lesson-dialog-content{padding:18px 20px 24px;scrollbar-gutter:auto}.lesson-details{grid-template-columns:1fr}.lesson-management-actions{display:grid;grid-template-columns:1fr 1fr}.md-button{padding:0 14px}.student-roster-heading{display:grid;gap:2px}.roster-summary{padding:0}.student-list{height:min(430px,48dvh);border-right:0;border-left:0;border-radius:0;margin-right:-20px;margin-left:-20px}.student-row{grid-template-columns:40px minmax(0,1fr);padding:11px 20px}.student-indicators{grid-column:2;align-items:flex-start;flex-direction:row;flex-wrap:wrap}.status-pill{font-size:.6rem}}

/* App-like scrolling: bars stay fixed and only the content surface scrolls. */
.native-app-shell{height:100dvh;overflow:hidden;display:flex;flex-direction:column}
.native-app-shell .app-header{flex:0 0 64px}
.native-app-shell .app-content{width:100%;min-height:0;flex:1 1 auto;overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-gutter:stable both-edges;scrollbar-width:thin;scrollbar-color:rgba(80,104,128,.38) transparent}
.native-app-shell .app-content.without-app-bar{min-height:0}
.native-app-shell .app-content::-webkit-scrollbar{width:5px}
.native-app-shell .app-content::-webkit-scrollbar-track{background:transparent}
.native-app-shell .app-content::-webkit-scrollbar-thumb{background:rgba(80,104,128,.38);border-radius:999px}
@media(max-width:760px){.native-app-shell .app-content::-webkit-scrollbar{width:3px}.native-app-shell .app-content{scrollbar-color:rgba(80,104,128,.28) transparent}}
@media(max-width:760px){.welcome-grid{padding:10px 0;place-items:start center}.auth-surface{padding:32px 24px 28px;border-radius:28px}.auth-visual{width:130px;height:130px;right:-28px;top:-28px}.auth-visual img{width:55px;height:55px;border-radius:17px}.orbit-one{width:92px;height:92px}.orbit-two{width:122px;height:122px}.auth-kicker{margin-bottom:54px}.auth-surface h1{font-size:2.65rem;line-height:1.02}.auth-benefits{display:grid;grid-template-columns:1fr 1fr}.auth-benefits span{padding:9px;font-size:.66rem}.oauth-button{min-height:54px}.provider-note,.privacy-note{font-size:.68rem}}
.form-page { max-width:700px; }.selection-card { margin-top:34px;padding:28px;display:grid;gap:18px;background:white;border:1px solid var(--line);border-radius:24px;box-shadow:0 10px 30px rgba(28,66,104,.06); }.selection-card .button { margin-top:4px; }.material-select { position:relative; min-width:0; }.material-select>label { position:absolute;z-index:52;left:52px;top:-7px;padding:0 6px;color:#667483;background:white;font-size:.69rem;font-weight:700;line-height:1.4;letter-spacing:.02em; }.material-select-trigger { position:relative;z-index:42;width:100%;min-height:60px;padding:8px 14px;display:grid;grid-template-columns:30px minmax(0,1fr) 24px;align-items:center;gap:12px;color:var(--ink);text-align:left;background:white;border:1px solid #aeb9c6;border-radius:15px;outline:none;transition:border-color .16s,box-shadow .16s,background .16s; }.material-select-trigger:hover { background:#f9fbfe;border-color:#788a9d; }.material-select.open .material-select-trigger,.material-select-trigger:focus-visible { border:2px solid var(--green);padding:7px 13px;box-shadow:0 0 0 3px rgba(18,87,154,.1); }.material-select-leading { width:30px;height:30px;display:grid;place-items:center;color:var(--green); }.material-select-leading svg { width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round; }.material-select-value { min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.88rem; }.material-select-value.placeholder { color:#77828e; }.material-select-chevron { width:22px;height:22px;fill:none;stroke:#657486;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .18s; }.material-select.open .material-select-chevron { transform:rotate(180deg); }.material-select-scrim { position:fixed;z-index:40;inset:0;padding:0;background:transparent;border:0;cursor:default; }.material-select-menu { position:absolute;z-index:50;top:calc(100% + 7px);left:0;right:0;padding:8px;overflow:hidden;background:white;border:1px solid #dce4ed;border-radius:18px;box-shadow:0 18px 45px rgba(24,55,87,.18); }.material-select-search { min-height:48px;padding:0 11px;display:grid;grid-template-columns:22px minmax(0,1fr) auto;align-items:center;gap:8px;background:#f1f5fa;border-radius:12px; }.material-select-search>svg { width:20px;height:20px;fill:none;stroke:#657486;stroke-width:1.8;stroke-linecap:round; }.material-select-search input { min-width:0;width:100%;height:44px;padding:0;color:var(--ink);background:transparent;border:0;outline:0;font-size:.84rem; }.material-select-search input::placeholder { color:#7b8793; }.material-select-search button { width:28px;height:28px;padding:0;display:grid;place-items:center;color:#5f6d7b;background:transparent;border:0;border-radius:50%;font-size:1.2rem; }.material-select-search button:hover { background:#e1e8f0; }.material-select-options { max-height:min(310px,45dvh);margin-top:6px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin; }.material-select-option { width:100%;min-height:48px;padding:10px 12px;display:grid;grid-template-columns:minmax(0,1fr) 22px;align-items:center;gap:10px;color:#29323c;text-align:left;background:transparent;border:0;border-radius:11px;font-size:.82rem;line-height:1.35; }.material-select-option:hover,.material-select-option:focus-visible { background:#eef4fc;outline:0; }.material-select-option.selected { color:var(--green);background:#e3efff;font-weight:700; }.material-select-option svg { width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round; }.material-select-empty { min-height:72px;padding:18px;display:grid;place-items:center;color:var(--muted);font-size:.8rem; }.success-card { margin-top:34px;padding:28px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:18px;background:var(--mint);border-radius:24px; }.success-card>span { width:48px;height:48px;display:grid;place-items:center;background:white;color:var(--green);border-radius:50%;font-weight:800; }.success-card h2,.success-card p { margin:0; }.success-card p { margin-top:5px;color:var(--muted);font-size:.8rem; }
@media(max-width:760px){.access-gate{min-height:calc(100dvh - 120px);justify-content:flex-start}.access-setup{padding-top:2px}.setup-shell{padding:30px 22px;border-radius:29px}.setup-shell::before{width:180px;height:180px;right:-90px;top:-95px}.setup-shell::after{width:100px;height:100px;right:18px;top:-70px}.setup-heading h1{max-width:500px;margin-bottom:13px;font-size:clamp(2.05rem,10vw,2.8rem);line-height:1.03}.setup-heading>p{font-size:.9rem}.setup-badge{margin-bottom:18px}.access-actions{margin-top:25px;grid-template-columns:minmax(0,1fr);gap:12px}.role-card{min-height:132px;padding:18px;grid-template-columns:50px minmax(0,1fr) 32px;gap:14px;border-radius:22px}.role-icon{width:50px;height:50px;border-radius:16px}.role-icon svg{width:26px;height:26px}.role-copy{gap:7px}.role-copy strong{font-size:1.05rem}.role-copy>span{font-size:.76rem}.role-arrow{width:32px;height:32px}.setup-note{align-items:flex-start;margin-top:17px}.onboarding-page .back-link{margin-bottom:14px}}
@media(max-width:380px){.setup-shell{padding:26px 16px}.role-card{padding:15px 14px;grid-template-columns:46px minmax(0,1fr) 30px;gap:10px}.role-icon{width:46px;height:46px}.role-arrow{width:30px;height:30px}.role-copy>span{font-size:.72rem}}
.setup-footer{position:relative;z-index:1;margin-top:20px;display:flex;align-items:center;justify-content:space-between;gap:18px}.setup-footer .setup-note{min-width:0;margin-top:0}.setup-logout{flex:0 0 auto;min-height:42px;padding:9px 13px;display:inline-flex;align-items:center;justify-content:center;gap:8px;color:#506274;background:rgba(255,255,255,.72);border:1px solid #d7e1ec;border-radius:13px;font-size:.75rem;font-weight:700;transition:background .16s,border-color .16s,color .16s}.setup-logout:hover{color:var(--green);background:white;border-color:#b7cae0}.setup-logout:focus-visible{outline:3px solid rgba(18,87,154,.18);outline-offset:2px}.setup-logout:disabled{cursor:wait;opacity:.6}.setup-logout svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.pending-logout{margin-top:20px}.logout-error{position:relative;z-index:1;margin-top:10px;color:#9a321c;font-size:.72rem;line-height:1.45}.setup-footer+.logout-error{display:block;text-align:right}@media(max-width:560px){.setup-footer{align-items:flex-start;flex-direction:column}.setup-logout{width:100%}.setup-footer+.logout-error{text-align:left}}
.role-onboarding{max-width:760px;margin-top:16px}.role-onboarding .back-link{margin:0 0 14px 6px}.role-form-shell{padding:42px}.role-form-shell .setup-heading h1{max-width:610px;font-size:clamp(2.25rem,5vw,3.45rem)}.role-form-shell .setup-badge svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.role-form-shell .selection-card,.role-form-shell .success-card,.role-form-shell .onboarding-state{position:relative;z-index:1;margin-top:30px}.role-form-shell .selection-card{background:rgba(255,255,255,.92)}.role-form-shell .onboarding-state{min-height:190px}@media(max-width:760px){.role-onboarding{margin-top:0}.role-form-shell{padding:30px 22px}.role-form-shell .setup-heading h1{font-size:clamp(2rem,10vw,2.75rem)}.role-form-shell .selection-card{margin-top:25px;padding:22px 18px;border-radius:21px}.role-form-shell .success-card{grid-template-columns:auto 1fr;padding:22px}.role-form-shell .success-card .button{grid-column:1/-1}}
.app-content:not(.has-bottom-nav){padding-bottom:42px}.app-content:not(.has-bottom-nav) .access-gate{min-height:calc(100dvh - 156px)}@media(max-width:760px){.app-content:not(.has-bottom-nav){padding-bottom:30px}.app-content:not(.has-bottom-nav) .access-gate{min-height:calc(100dvh - 124px)}}
.role-form-shell .material-select-menu{position:relative;top:auto;left:auto;right:auto;width:100%;margin-top:8px}
.app-header{height:64px;padding:0 24px;background:rgba(255,255,255,.96);border-bottom:1px solid #e2e8f0;box-shadow:0 2px 10px rgba(24,55,87,.06)}.app-bar-inner{width:100%;max-width:1180px;margin:auto;display:flex;align-items:center;gap:14px}.app-bar-logo,.app-bar-leading{width:44px;height:44px;flex:0 0 44px;display:grid;place-items:center;border-radius:50%}.app-bar-logo{transition:background .16s}.app-bar-logo:hover{background:#eef4fc}.app-bar-logo .brand-mark{width:40px;height:40px;border-radius:13px}.app-bar-leading{padding:0;color:#344454;background:transparent;border:0;transition:color .16s,background .16s}.app-bar-leading:hover{color:var(--green);background:#e5effc}.app-bar-leading:focus-visible{outline:3px solid rgba(18,87,154,.18);outline-offset:2px}.app-bar-leading svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.app-bar-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#20262e;font-size:1.2rem;font-weight:650;letter-spacing:-.015em}.app-content{min-height:calc(100dvh - 64px)}.app-content:not(.has-bottom-nav) .access-gate{min-height:calc(100dvh - 148px)}.role-onboarding{margin-top:30px}@media(max-width:760px){.app-header{padding:0 12px}.app-bar-inner{gap:10px}.app-bar-logo,.app-bar-leading{width:42px;height:42px;flex-basis:42px}.app-bar-title{font-size:1.08rem}.app-content:not(.has-bottom-nav) .access-gate{min-height:calc(100dvh - 124px)}.role-onboarding{margin-top:0}}
.app-content.without-app-bar{min-height:100dvh}.app-bar-leading:disabled{cursor:wait;opacity:.55}
.auth-welcome{min-height:calc(100dvh - 84px);padding:20px 0}.auth-shell{width:100%;max-width:1040px;padding:18px;display:grid;grid-template-columns:minmax(0,1.12fr) minmax(360px,.88fr);gap:18px;overflow:hidden;background:rgba(255,255,255,.72);border:1px solid rgba(213,224,237,.92);border-radius:38px;box-shadow:0 26px 80px rgba(22,63,105,.14);backdrop-filter:blur(22px)}.auth-hero{position:relative;min-width:0;min-height:560px;padding:42px;overflow:hidden;display:flex;flex-direction:column;color:white;background:linear-gradient(145deg,#073f80 0%,#125ea7 58%,#2878bb 100%);border-radius:29px}.auth-hero::before,.auth-hero::after{content:'';position:absolute;pointer-events:none;border-radius:50%}.auth-hero::before{width:390px;height:390px;right:-205px;top:-175px;background:rgba(126,190,255,.22);border:1px solid rgba(255,255,255,.16)}.auth-hero::after{width:210px;height:210px;right:-50px;bottom:-115px;background:rgba(5,39,83,.18);border:1px solid rgba(255,255,255,.1)}.auth-brand-lockup{position:relative;z-index:1;display:flex;align-items:center;gap:15px}.auth-brand-logo{width:70px;height:70px;object-fit:cover;border-radius:21px;box-shadow:0 16px 32px rgba(1,30,67,.3)}.auth-wordmark{display:grid;gap:4px}.auth-wordmark strong{font-size:1.42rem;font-weight:750;letter-spacing:-.025em}.auth-wordmark span{color:rgba(255,255,255,.68);font-size:.75rem}.auth-hero-copy{position:relative;z-index:1;margin:auto 0}.auth-hero .auth-kicker{margin:0 0 22px;color:#eaf4ff;background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.14);backdrop-filter:blur(10px)}.auth-hero h1{max-width:600px;margin:0;font-size:clamp(3rem,5vw,4.45rem);line-height:.98;color:#fff}.auth-hero h1 span{color:#cae5ff}.auth-hero .lead{max-width:500px;margin:24px 0 0;color:rgba(255,255,255,.76);font-size:1.03rem;line-height:1.65}.auth-hero .auth-benefits{position:relative;z-index:1;margin:26px 0 0}.auth-hero .auth-benefits span{color:rgba(255,255,255,.88);background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.13);backdrop-filter:blur(8px)}.auth-hero .auth-benefits svg{stroke:#d7ebff}.auth-login-panel{min-width:0;padding:44px 34px;display:flex;flex-direction:column;justify-content:center;background:#fff;border:1px solid #e7edf4;border-radius:29px;box-shadow:0 12px 34px rgba(25,62,99,.07)}.auth-login-panel .eyebrow{margin-bottom:14px}.auth-login-panel h2{margin:0;color:#1a222c;font-size:2rem;line-height:1.08;letter-spacing:-.045em}.auth-login-lead{margin:15px 0 0;color:var(--muted);font-size:.88rem;line-height:1.6}.auth-login-panel .login-actions{max-width:none;margin-top:28px}.auth-login-panel .oauth-button{width:100%;min-height:58px;border-radius:17px}.auth-login-panel .provider-note,.auth-login-panel .privacy-note{max-width:none}.auth-login-panel .privacy-note{margin-top:20px;padding-top:18px;border-top:1px solid #edf1f5}
@media(max-width:760px){.auth-welcome{min-height:auto;padding:4px 0 14px}.auth-shell{display:block;padding:10px;border-radius:31px}.auth-hero{min-height:auto;padding:27px 24px 30px;border-radius:23px}.auth-brand-lockup{gap:12px}.auth-brand-logo{width:57px;height:57px;border-radius:18px}.auth-wordmark strong{font-size:1.22rem}.auth-wordmark span{font-size:.68rem}.auth-hero-copy{margin:42px 0 0}.auth-hero .auth-kicker{margin-bottom:18px;padding:7px 10px;font-size:.62rem}.auth-hero h1{font-size:clamp(2.35rem,11vw,3.2rem)}.auth-hero .lead{margin-top:18px;font-size:.9rem;line-height:1.55}.auth-hero .auth-benefits{margin-top:22px;display:grid;grid-template-columns:1fr 1fr}.auth-hero .auth-benefits span{padding:8px;font-size:.62rem}.auth-login-panel{padding:28px 16px 18px;background:transparent;border:0;border-radius:0;box-shadow:none}.auth-login-panel h2{font-size:1.75rem}.auth-login-lead{font-size:.82rem}.auth-login-panel .login-actions{margin-top:22px}.auth-login-panel .provider-note,.auth-login-panel .privacy-note{font-size:.66rem}}
@media(max-width:390px){.auth-hero{padding:24px 18px 26px}.auth-brand-logo{width:52px;height:52px;border-radius:16px}.auth-hero-copy{margin-top:34px}.auth-hero h1{font-size:2.22rem}.auth-hero .auth-benefits{grid-template-columns:1fr}.auth-login-panel{padding-right:10px;padding-left:10px}}
.auth-hero{color:#1c2b39;background:linear-gradient(145deg,#f8fafc 0%,#edf3f8 52%,#e1ebf4 100%)}.auth-hero::before{background:rgba(159,190,218,.2);border-color:rgba(119,158,192,.12)}.auth-hero::after{background:rgba(169,194,216,.18);border-color:rgba(119,158,192,.1)}.auth-brand-logo{box-shadow:0 12px 28px rgba(31,67,101,.16)}.auth-wordmark strong{color:#1c2b39}.auth-wordmark span{color:#70808f}.auth-hero .auth-kicker{color:#426887;background:rgba(255,255,255,.7);border-color:rgba(166,188,207,.34);box-shadow:0 8px 24px rgba(59,91,120,.06)}.auth-hero h1{color:#1b2936}.auth-hero h1 span{color:#4d7393}.auth-hero .lead{color:#647586}.auth-hero .auth-benefits span{color:#506474;background:rgba(255,255,255,.64);border-color:rgba(168,189,207,.38);box-shadow:0 8px 22px rgba(57,88,116,.045)}.auth-hero .auth-benefits svg{stroke:#547896}
.access-pending{width:100%;max-width:700px;align-items:stretch;text-align:left}.pending-shell{padding:18px}.pending-layout{position:relative;z-index:1}.pending-content{min-width:0;padding:34px 32px}.pending-content .setup-badge svg{fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}.pending-content h1{margin:0;max-width:540px;font-size:clamp(2.65rem,5vw,3.6rem);line-height:1.02}.pending-lead{max-width:560px;margin:20px 0 0;color:var(--muted);font-size:.98rem;line-height:1.65}.pending-profile-card{margin-top:30px;padding:18px;display:grid;grid-template-columns:50px minmax(0,1fr) auto;align-items:center;gap:15px;background:rgba(255,255,255,.88);border:1px solid #dfe7f0;border-radius:21px;box-shadow:0 10px 26px rgba(34,70,105,.06)}.pending-profile-card .role-icon{width:50px;height:50px;border-radius:16px}.pending-profile-card .role-icon svg{width:26px;height:26px}.pending-profile-copy{min-width:0;display:grid;gap:5px}.pending-profile-copy>span{color:#6f7c89;font-size:.7rem}.pending-profile-copy strong{overflow:hidden;text-overflow:ellipsis;color:#23303d;font-size:.96rem;white-space:nowrap}.pending-chip{padding:7px 11px 7px 8px;display:inline-flex;align-items:center;gap:8px;color:#7b641a;background:#fbefc9;border-radius:999px;font-size:.66rem;font-weight:800;white-space:nowrap}.pending-card-clock{width:22px;height:22px;fill:none;stroke:#8d6d08;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 2px 4px rgba(123,100,26,.14));animation:pending-clock 1.5s linear infinite;will-change:transform}.pending-note{margin-top:20px;display:flex;align-items:flex-start;gap:10px;color:#667788;font-size:.74rem;line-height:1.55}.pending-note svg{flex:0 0 auto;width:19px;height:19px;fill:none;stroke:#426f96;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}@keyframes pending-clock{to{transform:rotate(360deg)}}
@media(max-width:760px){.access-pending{min-height:auto}.pending-shell{padding:10px}.pending-content{padding:24px 18px 18px}.pending-content .setup-badge{margin-bottom:18px}.pending-content h1{font-size:clamp(2.25rem,10vw,3rem)}.pending-lead{margin-top:16px;font-size:.88rem}.pending-profile-card{margin-top:24px;grid-template-columns:46px minmax(0,1fr) auto;gap:13px;padding:16px}.pending-profile-card .role-icon{width:46px;height:46px}.pending-chip{width:max-content}.pending-note{margin-top:18px}}
@media(prefers-reduced-motion:reduce){.pending-card-clock{animation:none}}
@media(max-width:430px) and (max-height:900px){.app-content.without-app-bar{padding:8px 10px 14px}.auth-welcome{padding:0}.auth-shell{padding:7px;border-radius:25px}.auth-hero{padding:17px 18px 19px;border-radius:19px}.auth-brand-lockup{gap:10px}.auth-brand-logo{width:44px;height:44px;border-radius:14px}.auth-wordmark{gap:1px}.auth-wordmark strong{font-size:1.05rem}.auth-wordmark span{font-size:.6rem}.auth-hero-copy{margin-top:21px}.auth-hero .auth-kicker{margin-bottom:11px;padding:5px 8px;font-size:.56rem}.auth-hero h1{font-size:1.92rem;line-height:1}.auth-hero .lead{margin-top:11px;font-size:.77rem;line-height:1.4}.auth-hero .auth-benefits{margin-top:13px;gap:6px}.auth-hero .auth-benefits span{padding:6px 7px;font-size:.56rem}.auth-hero .auth-benefits svg{width:14px;height:14px}.auth-login-panel{padding:18px 12px 10px}.auth-login-panel .eyebrow{margin-bottom:8px;font-size:.62rem}.auth-login-panel h2{font-size:1.48rem}.auth-login-lead{margin-top:9px;font-size:.74rem;line-height:1.4}.auth-login-panel .login-actions{margin-top:14px;gap:8px}.auth-login-panel .oauth-button{min-height:50px}.auth-login-panel .provider-note{margin-top:7px;line-height:1.35}.auth-login-panel .privacy-note{margin-top:11px;padding-top:10px;line-height:1.35}}

/* Tutor Kit design system — compact academic Material 3 */
:root{
  --color-background:#f5f7fa;--color-surface:#fff;--color-surface-container:#eef2f6;
  --color-primary:#12579a;--color-primary-hover:#0d477f;--color-primary-container:#e2edf9;
  --color-text-primary:#17202a;--color-text-secondary:#617080;--color-outline:#d7dee7;
  --color-success:#247447;--color-success-container:#e4f3e9;
  --color-warning:#8a6200;--color-warning-container:#fff2cc;
  --color-error:#a43b2b;--color-error-container:#fde9e5;
  --radius-sm:9px;--radius-md:14px;--radius-lg:22px;
  --space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-6:24px;--space-8:32px;
  --ink:var(--color-text-primary);--muted:var(--color-text-secondary);--surface:var(--color-surface);
  --canvas:var(--color-background);--line:var(--color-outline);--green:var(--color-primary);
  --green-dark:var(--color-primary-hover);--blue:var(--color-primary-container);
  --mint:var(--color-success-container);--lime:var(--color-warning-container);
  --shadow:0 2px 10px rgba(18,43,68,.06)
}
html,body{color:var(--color-text-primary);background:var(--color-background)}
.app-header{height:56px;padding:0 max(16px,calc((100% - 1120px)/2 + 16px));background:rgba(255,255,255,.97);border-bottom:1px solid var(--color-outline);box-shadow:none;backdrop-filter:blur(8px)}
.native-app-shell .app-header{flex-basis:56px}.app-bar-inner{max-width:1120px;display:grid;grid-template-columns:48px minmax(0,1fr) 48px;gap:var(--space-3)}
.app-bar-logo,.app-bar-leading,.app-bar-profile{width:48px;height:48px;display:grid;place-items:center;border-radius:50%}.app-bar-logo{color:var(--color-primary)}.app-bar-brand-mark{width:40px;height:32px;display:block;object-fit:contain}.app-bar-title{text-align:center;font-size:1.05rem;font-weight:650}.app-bar-profile{position:relative;color:var(--color-text-secondary)}.app-bar-profile:hover{color:var(--color-primary);background:var(--color-primary-container)}.app-bar-profile:focus-visible{outline:3px solid rgba(18,87,154,.18);outline-offset:2px}.app-bar-profile>svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2}.role-indicator{position:absolute;right:1px;top:1px;width:18px;height:18px;display:grid;place-items:center;color:#fff;background:var(--color-primary);border:2px solid #fff;border-radius:50%}.role-indicator svg{width:11px;height:11px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}.student-role-indicator{background:#2f6f9f}
.app-content{padding:24px 16px 92px}.content-page{max-width:1120px}
.bottom-nav{bottom:8px;padding:4px 6px;gap:2px;border:1px solid var(--color-outline);border-radius:18px;background:rgba(255,255,255,.97);box-shadow:0 4px 16px rgba(18,43,68,.12);backdrop-filter:blur(8px)}
.bottom-nav a{min-width:88px;min-height:48px;padding:5px 12px;gap:2px;border-radius:13px;color:var(--color-text-secondary);font-size:.66rem;font-weight:600}
.bottom-nav a.active{color:var(--color-primary);background:var(--color-primary-container)}.nav-icon{width:28px;height:24px;border-radius:10px}.nav-icon svg{width:20px;height:20px}
.button,.md-button{min-height:42px;padding:0 18px;border-radius:var(--radius-sm);font-size:.78rem;font-weight:700;box-shadow:none}
.md-button-filled,.button-primary{color:#fff;background:var(--color-primary)}.md-button-filled:hover,.button-primary:hover{background:var(--color-primary-hover);box-shadow:none}
.md-button-tonal{color:var(--color-primary);background:var(--color-primary-container)}.md-button-tonal:hover{background:#d5e5f6;box-shadow:none}
.md-button-danger,.button-danger{color:var(--color-error);background:var(--color-error-container)}.md-button-danger:hover{background:#f9d9d3}
.md-button-text{color:var(--color-primary);background:transparent}.md-button:focus-visible,.button:focus-visible{outline:2px solid rgba(18,87,154,.35);outline-offset:2px}

/* Schedule */
.schedule-page{max-width:800px;display:flex;flex-direction:column}.schedule-page>.empty-card:last-child{flex:1}.schedule-empty{padding-right:12px;padding-left:12px;background:transparent;border:0;border-radius:0}.calendar-card{padding:18px 20px 16px;border:1px solid var(--color-outline);border-radius:var(--radius-md);box-shadow:none}
.calendar-heading{grid-template-columns:40px 1fr 40px}.calendar-heading button{width:40px;height:40px;border-radius:50%;font-size:1.8rem}.calendar-heading button:hover{background:var(--color-primary-container)}
.calendar-heading h1{margin:0 0 2px;font-size:1.25rem;font-weight:650}.today-link{font-size:.72rem!important;font-weight:600}
.calendar-days{margin-top:14px;gap:4px}.calendar-days button{min-height:58px;gap:4px;border:1px solid transparent;border-radius:var(--radius-sm)}
.calendar-days button:focus-visible{outline:2px solid rgba(18,87,154,.32);outline-offset:1px}
.calendar-support{min-height:38px;margin-top:10px;display:flex;align-items:center;justify-content:space-between;gap:12px}.calendar-week-label{min-height:32px;padding:0 11px;display:inline-flex;align-items:center;color:var(--color-primary);background:var(--color-primary-container);border-radius:16px;font-size:.72rem;font-weight:750}.calendar-today-action{min-height:32px;padding:0 11px;display:inline-flex;align-items:center;gap:7px;color:var(--color-primary);background:transparent;border:1px solid var(--color-outline);border-radius:16px;font:inherit;font-size:.68rem;font-weight:700}.calendar-today-action:hover{background:var(--color-primary-container);border-color:#b8cee4}.calendar-today-action:focus-visible{outline:2px solid rgba(18,87,154,.3);outline-offset:2px}.calendar-today-action svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.calendar-days button:hover{background:var(--color-surface-container)}.calendar-days button.active{color:#fff;background:var(--color-primary);box-shadow:none}
.calendar-days span{font-size:.66rem}.calendar-days strong{font-size:1rem}.calendar-days i{position:absolute;left:50%;bottom:2px;width:4px;height:4px;margin:0;transform:translateX(-50%);box-shadow:0 0 0 2px #fff}
.schedule-date-heading{margin:24px 2px 12px;align-items:center}.schedule-date-heading div>span{font-size:.72rem}.schedule-date-heading h2{margin:2px 0 0;font-size:1.45rem;font-weight:600}
.week-chip{padding:6px 9px;color:var(--color-primary);background:var(--color-primary-container);border-radius:var(--radius-sm);font-size:.66rem;font-weight:700}
.lesson-list{gap:10px}.schedule-page>.lesson-list{margin-top:12px}.schedule-lesson{min-height:116px;grid-template-columns:96px minmax(0,1fr);border:1px solid var(--color-outline);border-radius:var(--radius-md);box-shadow:none;transition:border-color .15s,background .15s}
.lesson-button:hover{transform:none;border-color:#afc3d8;box-shadow:none}.lesson-button:focus-visible{outline:2px solid rgba(18,87,154,.35);outline-offset:2px}
.time-rail{padding:16px 14px;gap:5px;color:var(--color-primary);background:var(--color-primary-container);border-right:1px solid #d3e1f0}
.time-rail strong{font-size:.94rem;line-height:1.35}.time-rail span{font-size:.67rem;color:var(--color-text-secondary)}
.lesson-body{padding:15px 34px 14px 16px}.lesson-meta{justify-content:flex-start;gap:8px}.type-chip,.room-chip{padding:4px 7px;color:var(--color-text-secondary);background:var(--color-surface-container);border-radius:6px;font-size:.63rem;font-weight:700}
.lesson-body h3{margin:10px 0 7px;font-size:1.02rem;font-weight:650;line-height:1.3}.lesson-body p{font-size:.72rem;line-height:1.4}.lesson-chevron{right:13px;color:#9aa7b4;font-size:1.45rem}
.change-chip{margin:8px 0 0;padding:5px 7px;color:var(--color-warning);background:var(--color-warning-container);border-radius:6px;font-size:.64rem}
.lesson-meta .transfer-meta-chip{margin:0;white-space:nowrap;color:var(--color-primary);background:var(--color-primary-container)}
.cancelled-chip{color:var(--color-error);background:var(--color-error-container)}
.is-rescheduled-target{border-color:#adc9e5;box-shadow:none}.is-rescheduled-target .time-rail{color:var(--color-primary);background:var(--color-primary-container)}
.is-cancelled,.is-reschedule-placeholder{min-height:82px;grid-template-columns:88px 1fr;opacity:.72;border:1px solid var(--color-outline);border-radius:var(--radius-md)}
.is-cancelled .time-rail,.is-reschedule-placeholder .time-rail{padding:12px;background:var(--color-surface-container)}
.is-cancelled .lesson-body,.is-reschedule-placeholder .lesson-body{padding:11px 30px 11px 14px}
.empty-card{min-height:180px;border-radius:var(--radius-md);box-shadow:none}

/* Lesson sheets and teacher workspace */
.lesson-dialog-backdrop{padding:20px;background:rgba(18,28,40,.38);backdrop-filter:blur(1px)}
.lesson-dialog{width:min(620px,100%);max-height:calc(100dvh - 40px);border:1px solid var(--color-outline);border-radius:var(--radius-lg);box-shadow:0 16px 48px rgba(12,31,50,.2)}
.lesson-dialog.teacher-workspace{width:min(920px,100%)}
.lesson-dialog-header{padding:18px 20px 14px;display:grid;grid-template-columns:minmax(0,1fr) auto;border-color:var(--color-outline)}.lesson-dialog-header .dialog-eyebrow{margin-bottom:6px;font-size:.68rem}.lesson-dialog-header h2{font-size:1.35rem;font-weight:650;line-height:1.25}.header-change-banner{width:100%;margin:0 0 14px}.lesson-action-chip{min-height:48px!important;padding:0 16px!important;border-radius:24px!important;font-size:.72rem!important}
.dialog-close{width:36px;height:36px;border-radius:50%;background:var(--color-surface-container)}.lesson-dialog-content{padding:16px 20px 20px}
.lesson-details{padding:12px 14px;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 20px;background:var(--color-surface-container);border-radius:var(--radius-sm)}
.lesson-details span{display:grid;gap:2px}.lesson-details small{color:var(--color-text-secondary);font-size:.62rem}.lesson-details strong{font-size:.76rem;font-weight:650}
.dialog-change-note{margin-top:14px;padding:10px 12px;border-radius:var(--radius-sm);font-size:.72rem}.absence-banner{display:grid;gap:3px;color:var(--color-warning);background:var(--color-warning-container)}.absence-banner span{font-weight:500}
.lesson-management-actions{margin:16px 0 2px}.student-roster{margin-top:18px;padding-top:16px}.student-roster h3{font-size:1.05rem}.student-roster-tools{position:sticky;z-index:2;top:-16px;margin:12px -2px 0;padding:10px 2px 8px;background:var(--color-surface)}
.roster-search{height:42px;padding:0 12px;border-color:var(--color-outline);border-radius:var(--radius-sm);background:var(--color-surface-container)}
.roster-search:focus-within{background:#fff;border-color:var(--color-primary);box-shadow:0 0 0 2px rgba(18,87,154,.12)}
.filter-chip{min-height:32px;padding:0 10px;border-color:var(--color-outline);border-radius:var(--radius-sm);font-size:.68rem}.filter-chip span{border-radius:6px}.filter-chip.selected{color:var(--color-primary);background:var(--color-primary-container);border-color:#b8cee4}.filter-chip.selected span{color:var(--color-primary);background:#fff}
.student-list{height:min(430px,48dvh);margin-top:2px;border-color:var(--color-outline);border-radius:var(--radius-sm)}
.student-row{min-height:64px;padding:8px 12px;grid-template-columns:38px minmax(0,1fr) auto;gap:10px}.student-avatar{width:36px;height:36px;color:var(--color-primary);background:var(--color-primary-container);font-size:.68rem}
.student-identity strong{font-size:.78rem;font-weight:650}.student-identity>span{font-size:.66rem}.student-identity small{color:var(--color-warning);font-size:.65rem}
.status-chip{padding:4px 7px;border-radius:6px;font-size:.61rem;font-weight:700;white-space:nowrap}.status-chip.is-neutral{color:var(--color-text-secondary);background:var(--color-surface-container)}.status-chip.is-success{color:var(--color-success);background:var(--color-success-container)}.status-chip.is-warning{color:var(--color-error);background:var(--color-error-container)}
.student-row{min-height:68px}.student-name-line{min-width:0;display:flex;align-items:center;gap:6px}.student-name-line strong{min-width:0}.student-indicators{max-width:none;align-items:center;justify-content:flex-end;flex-direction:row;flex-wrap:nowrap}.read-receipt{flex:none;color:var(--color-primary);font-size:.78rem;font-weight:800}.absence-declaration-slot{position:relative;width:20px;height:20px;flex:none}.absence-reason-toggle{position:absolute;left:50%;top:50%;width:48px;height:48px;padding:0;display:grid;place-items:center;color:var(--color-text-secondary);background:transparent;border:0;border-radius:50%;transform:translate(-50%,-50%);cursor:pointer;opacity:.72;transition:color .15s,background .15s,opacity .15s}.absence-reason-toggle:hover,.absence-reason-toggle:focus-visible{color:var(--color-warning);background:rgba(103,80,0,.07);opacity:1}.absence-reason-toggle:focus-visible{outline:2px solid rgba(18,87,154,.34);outline-offset:-8px}.absence-reason-toggle svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.absence-reason-tooltip{position:absolute;z-index:6;left:50%;top:calc(100% + 9px);width:max-content;max-width:min(260px,72vw);padding:8px 10px;display:grid;gap:2px;color:#fff;background:#31363b;border-radius:6px;box-shadow:0 3px 8px rgba(0,0,0,.22);font-size:.66rem;line-height:1.35;pointer-events:none;opacity:0;visibility:hidden;transform:translate(-50%,-4px);transition:opacity .12s,transform .12s,visibility .12s}.absence-reason-tooltip::before{content:"";position:absolute;left:50%;top:-4px;width:8px;height:8px;background:inherit;transform:translateX(-50%) rotate(45deg)}.absence-reason-tooltip strong{font-size:.64rem;font-weight:700}.absence-reason-tooltip span{color:#e6e9ec}.absence-declaration-slot:hover .absence-reason-tooltip,.absence-declaration-slot:focus-within .absence-reason-tooltip,.absence-reason-tooltip.is-open{opacity:1;visibility:visible;transform:translate(-50%,0)}.attendance-actions{display:flex;gap:6px}.attendance-button{min-width:58px;height:48px;padding:0 9px;border:1px solid var(--color-outline);border-radius:24px;background:var(--color-surface);font:inherit;font-size:.66rem;font-weight:750;cursor:pointer;white-space:nowrap;transition:color .15s,background .15s,border-color .15s}.attendance-button:focus-visible{outline:3px solid rgba(18,87,154,.3);outline-offset:2px}.attendance-button.present.selected{color:var(--color-success);background:var(--color-success-container);border-color:var(--color-success);box-shadow:inset 0 0 0 1px var(--color-success)}.attendance-button.absent.selected{color:var(--color-error);background:var(--color-error-container);border-color:var(--color-error);box-shadow:inset 0 0 0 1px var(--color-error)}.attendance-button:disabled{cursor:wait;opacity:.55}.attendance-button.selected:disabled{cursor:default;opacity:1}
.absence-reason-toggle:hover{background:transparent}.attendance-chip{padding:4px 7px;border-radius:6px;font-size:.61rem;font-weight:750;white-space:nowrap}.attendance-chip.is-present,.attendance-banner.is-present{color:var(--color-success);background:var(--color-success-container)}.attendance-chip.is-absent,.attendance-banner.is-absent{color:var(--color-error);background:var(--color-error-container)}.attendance-banner{display:grid;gap:4px}.attendance-banner span{font-size:.7rem}
.upcoming-days{display:grid;gap:22px}.upcoming-day{display:grid;gap:9px}.upcoming-day-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.upcoming-day-heading h3{margin:0;font-size:.88rem;font-weight:700}.upcoming-day-heading span{color:var(--color-text-secondary);font-size:.66rem}.all-schedule-link{min-height:48px;margin-top:14px;padding:0 14px;display:flex;align-items:center;justify-content:center;gap:7px;color:var(--color-primary);border:1px solid var(--color-outline);border-radius:var(--radius-sm);font-size:.74rem;font-weight:700}.all-schedule-link:hover{background:var(--color-primary-container)}.all-schedule-link:focus-visible{outline:3px solid rgba(18,87,154,.18);outline-offset:2px}.all-schedule-link svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2}.events-page .empty-state-icon{width:34px;height:34px;fill:none;stroke:var(--color-primary);stroke-width:1.7}
.dashboard-heading{display:block}.home-greeting{position:relative;margin-bottom:18px;padding:20px 22px;overflow:hidden;background:linear-gradient(135deg,#e6f1fc 0%,#f4f8fc 74%);border:1px solid #cfdeed;border-radius:var(--radius-lg)}.home-greeting::after{content:"";position:absolute;right:-38px;top:-52px;width:130px;height:130px;background:rgba(18,87,154,.07);border-radius:50%}.home-greeting-kicker{position:relative;z-index:1;display:block;margin-bottom:6px;color:var(--color-primary);font-size:.66rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.dashboard-heading h1{position:relative;z-index:1;margin:0;font-size:clamp(1.75rem,4.6vw,2.55rem);line-height:1.08}.dashboard-date-summary{position:relative;z-index:1;margin-top:12px;display:flex;align-items:center;flex-wrap:wrap;gap:7px;color:var(--color-text-secondary);font-size:.76rem;font-weight:650}.dashboard-date-summary svg{width:17px;height:17px;fill:none;stroke:var(--color-primary);stroke-width:1.9}.dashboard-date-summary i{width:3px;height:3px;background:var(--color-text-secondary);border-radius:50%;opacity:.55}.semester-week-chip{margin-left:3px;padding:5px 8px;color:var(--color-primary);background:#fff;border:1px solid #c9dced;border-radius:999px;font-size:.68rem;font-weight:750}
.auth-brand-logo{object-fit:contain;border-radius:0;box-shadow:none}
.roster-state{min-height:130px;border-radius:var(--radius-sm)}

@media(max-width:760px){
  .schedule-page{min-height:calc(100dvh - 164px)}
  .app-content{padding:16px 12px 76px}.app-header{height:56px;padding:0 4px}.app-bar-inner{grid-template-columns:48px minmax(0,1fr) 48px;gap:4px}.app-bar-brand-mark{width:40px;height:30px}.bottom-nav{bottom:0;width:100%;padding:3px max(8px,env(safe-area-inset-right)) max(3px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));border-width:1px 0 0;border-radius:0;box-shadow:0 -2px 12px rgba(18,43,68,.08)}.bottom-nav a{min-height:48px;padding:4px}
  .calendar-card{padding:14px 10px 12px}.calendar-heading{grid-template-columns:36px 1fr 36px}.calendar-heading button{width:36px;height:36px}.calendar-heading h1{font-size:1.1rem}.calendar-days{margin-top:10px;gap:2px}.calendar-days button{min-height:52px;padding:4px 1px;border-radius:8px}.calendar-days span{font-size:.58rem}.calendar-days strong{font-size:.92rem}
  .schedule-date-heading{margin:18px 2px 10px}.schedule-date-heading h2{font-size:1.25rem}.week-chip{font-size:.59rem}.schedule-lesson{min-height:106px;grid-template-columns:78px 1fr}.time-rail{padding:13px 10px}.time-rail strong{font-size:.82rem}.lesson-body{padding:12px 28px 12px 12px}.lesson-body h3{margin:8px 0 5px;font-size:.94rem}.lesson-body p{font-size:.66rem}.type-chip,.room-chip{padding:3px 6px;font-size:.57rem}
  .is-cancelled,.is-reschedule-placeholder{min-height:76px;grid-template-columns:74px 1fr}.is-cancelled .lesson-body,.is-reschedule-placeholder .lesson-body{padding:9px 27px 9px 11px}.is-cancelled .lesson-body h3,.is-reschedule-placeholder .lesson-body h3{font-size:.82rem}
  .lesson-dialog-backdrop{padding:0;place-items:end center;background:rgba(18,28,40,.34)}.lesson-dialog{width:100%;max-height:88dvh;border-width:1px 0 0;border-radius:20px 20px 0 0}.lesson-dialog.teacher-workspace{height:100dvh;max-height:100dvh;border:0;border-radius:0}.lesson-dialog-header{padding:14px 14px 12px 16px}.lesson-dialog-header h2{font-size:1.14rem}.lesson-dialog-content{padding:14px 16px 18px}.lesson-details{grid-template-columns:1fr 1fr;padding:10px 12px;gap:10px}.lesson-management-actions{grid-template-columns:1fr 1fr}.teacher-workspace .student-roster{display:flex;min-height:0;flex:1;flex-direction:column}.teacher-workspace .lesson-dialog-content{display:flex;min-height:0;flex:1;flex-direction:column}.teacher-workspace .student-list{height:auto;min-height:220px;flex:1;margin-right:-16px;margin-left:-16px;border-right:0;border-left:0;border-radius:0}.student-roster-tools{top:-14px;margin-right:-1px;margin-left:-1px}.student-row{grid-template-columns:36px minmax(0,1fr);padding:9px 16px}.student-indicators{grid-column:2;align-items:flex-start;flex-direction:row;flex-wrap:wrap}
}
@media(min-width:1000px){.schedule-page{max-width:880px}.lesson-dialog.teacher-workspace .lesson-dialog-content{display:grid;grid-template-columns:minmax(260px,.75fr) minmax(480px,1.25fr);gap:0 24px}.teacher-workspace .lesson-details,.teacher-workspace .lesson-management-actions,.teacher-workspace .reschedule-form,.teacher-workspace>.form-error{grid-column:1}.teacher-workspace .student-roster{grid-column:2;grid-row:1/span 8;margin-top:0;padding:0 0 0 24px;border-top:0;border-left:1px solid var(--color-outline)}.teacher-workspace .student-list{height:min(560px,65dvh)}}

/* Refined schedule composition */
.calendar-heading>div{min-width:0;display:flex;align-items:baseline;justify-content:center;gap:10px}
.calendar-heading h1{margin:0}.calendar-heading .today-link{width:auto;height:auto;min-height:0;padding:2px 0!important;white-space:nowrap;font-size:.68rem!important}
.calendar-days button{position:relative;background:transparent!important;border-color:transparent!important}
.calendar-days button.active{color:var(--color-primary);box-shadow:none}
.calendar-days button.active strong{width:34px;height:34px;display:grid;place-items:center;color:#fff;background:var(--color-primary);border-radius:50%}
.calendar-days button.active span{color:var(--color-primary);font-weight:700}.calendar-days button.active i{color:var(--color-primary)}
.calendar-days button:hover:not(.active){background:var(--color-surface-container)!important}
.schedule-lesson{position:relative;grid-template-columns:88px minmax(0,1fr)}
.schedule-lesson::before{content:"";position:absolute;z-index:1;inset:0 auto 0 0;width:3px;background:var(--color-primary)}
.time-rail{padding-left:15px;background:#fff;border-right:1px solid var(--color-outline)}
.time-rail span{color:var(--color-text-secondary)}
.is-rescheduled-target .time-rail,.is-cancelled .time-rail,.is-reschedule-placeholder .time-rail{background:#fff}
.is-rescheduled-target::before{background:var(--color-warning)}.is-cancelled::before{background:var(--color-error)}.is-reschedule-placeholder::before{background:#8b96a3}
.bottom-nav a.active{background:transparent}.bottom-nav a.active .nav-icon{width:42px;color:var(--color-primary);background:var(--color-primary-container)}
.empty-symbol{font-size:2rem}.empty-card{padding:24px}
@media(max-width:760px){
  .calendar-heading>div{gap:8px}.calendar-heading .today-link{font-size:.64rem!important}
  .calendar-days button{min-height:58px}.calendar-days button.active strong{width:32px;height:32px}
  .schedule-lesson{grid-template-columns:74px minmax(0,1fr)}.time-rail{padding-left:12px}
  .bottom-nav a.active .nav-icon{width:40px}
}

/* Progressive lesson actions: one frequent action plus overflow. */
.lesson-management-actions{display:flex;align-items:center;gap:8px}
.lesson-management-actions .md-button{flex:none;width:auto}
@media(max-width:760px){.lesson-management-actions{display:flex;grid-template-columns:none}.lesson-management-actions .md-button{width:auto}}

/* Profile workspace */
.profile-workspace{max-width:980px}.profile-heading{padding:22px 24px;display:grid;grid-template-columns:86px minmax(0,1fr) auto;align-items:center;gap:16px;background:var(--color-surface);border:1px solid var(--color-outline);border-radius:var(--radius-md)}
.profile-avatar{width:56px;height:56px;display:grid;place-items:center;overflow:hidden;color:#fff;background:var(--color-primary);border-radius:16px;font-size:1.35rem;font-weight:700;text-transform:uppercase}.profile-avatar img{width:100%;height:100%;object-fit:cover}.profile-avatar svg{width:30px;height:30px}.profile-heading .eyebrow{margin:0 0 3px;color:var(--color-primary);font-size:.62rem}.profile-heading h1{margin:0;font-size:1.4rem;font-weight:650}.profile-heading p{margin:4px 0 0;color:var(--color-text-secondary);font-size:.75rem}.profile-heading .provider-chip{padding:6px 9px;color:var(--color-text-secondary);background:var(--color-surface-container);border-radius:7px;font-size:.65rem;font-weight:700}
.profile-layout{margin-top:16px;display:grid;grid-template-columns:minmax(0,1.25fr) minmax(280px,.75fr);gap:16px}.profile-editor,.profile-account{min-width:0;padding:22px 24px;background:var(--color-surface);border:1px solid var(--color-outline);border-radius:var(--radius-md)}
.profile-section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.profile-section-heading h2{margin:0;font-size:1.02rem;font-weight:650}.profile-section-heading p{margin:4px 0 0;color:var(--color-text-secondary);font-size:.7rem;line-height:1.45}
.profile-data-list{margin:18px 0 0;display:grid}.profile-data-list>div{min-height:58px;padding:10px 0;display:grid;grid-template-columns:minmax(120px,.7fr) minmax(0,1.3fr);align-items:center;gap:16px;border-top:1px solid var(--color-outline)}.profile-data-list dt{color:var(--color-text-secondary);font-size:.7rem}.profile-data-list dd{margin:0;overflow-wrap:anywhere;font-size:.78rem;font-weight:650}.profile-data-list.compact>div{grid-template-columns:110px minmax(0,1fr)}
.profile-form{margin-top:22px}.profile-form .material-field+.material-field{margin-top:4px}.profile-saved{margin-top:14px;padding:9px 11px;display:flex;align-items:center;gap:7px;color:var(--color-success);background:var(--color-success-container);border-radius:var(--radius-sm);font-size:.7rem;font-weight:650}.profile-saved svg{width:17px;height:17px}.profile-account-actions{margin-top:18px;padding-top:16px;border-top:1px solid var(--color-outline)}.profile-account-actions svg{width:18px;height:18px}
.profile-avatar-stack{display:grid;justify-items:center;gap:3px}.avatar-upload-button,.avatar-reset-button{min-width:56px;min-height:32px;padding:0 7px;display:grid;place-items:center;border:0;border-radius:8px;color:var(--color-primary);background:var(--color-primary-container);font:inherit;font-size:.62rem;font-weight:700;cursor:pointer}.avatar-reset-button{min-height:28px;color:var(--color-text-secondary);background:transparent}.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.timezone-detect{margin-top:4px;min-height:48px}.membership-editor{grid-column:1/-1}.membership-add{margin-top:18px;display:grid;grid-template-columns:minmax(240px,1fr) auto;align-items:end;gap:12px}.membership-add select{min-height:96px}.membership-list{margin-top:16px;display:grid;gap:8px}.membership-row{min-height:64px;padding:8px 10px;display:grid;grid-template-columns:minmax(150px,1fr) auto auto;align-items:center;gap:12px;border:1px solid var(--color-outline);border-radius:var(--radius-sm)}.membership-row>div{display:grid;gap:3px}.membership-row small,.membership-row label span{color:var(--color-text-secondary);font-size:.68rem}.membership-row label{display:grid;gap:3px}.membership-row input{min-height:44px;padding:0 9px;border:1px solid var(--color-outline);border-radius:8px;background:var(--color-surface)}.membership-ended{padding:6px 9px;color:var(--color-text-secondary);background:var(--color-surface-container);border-radius:8px;font-size:.7rem}
@media(max-width:760px){.profile-heading{padding:18px;grid-template-columns:64px minmax(0,1fr);align-items:start;gap:13px}.profile-avatar{width:48px;height:48px;border-radius:13px;font-size:1.1rem}.profile-heading h1{font-size:1.16rem}.profile-heading .provider-chip{grid-column:2;width:max-content}.profile-layout{grid-template-columns:1fr}.profile-editor,.profile-account{padding:18px}.profile-section-heading .md-button{padding:0 12px}.profile-data-list>div,.profile-data-list.compact>div{grid-template-columns:1fr;gap:4px;align-content:center}.membership-add{grid-template-columns:1fr}.membership-row{grid-template-columns:1fr auto}.membership-row>div{grid-column:1/-1}.membership-row .md-button{min-height:48px}}
.avatar-upload-button,.avatar-reset-button{min-width:64px;min-height:48px}.avatar-reset-button{min-height:48px}
.group-multiselect{position:relative;min-width:0}.group-multiselect-trigger{width:100%;min-height:56px;padding:8px 14px;display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;color:var(--color-text);background:var(--color-surface-container);border:1px solid var(--color-outline);border-radius:12px;cursor:pointer}.group-multiselect-trigger>span{display:grid;gap:2px}.group-multiselect-trigger small{color:var(--color-text-secondary);font-size:.66rem}.group-multiselect-trigger strong{font-size:.76rem}.group-multiselect-trigger svg{width:20px;height:20px;color:var(--color-text-secondary)}.group-multiselect-trigger:focus-visible{outline:3px solid rgba(18,87,154,.2);outline-offset:2px}.group-options{position:absolute;z-index:20;top:calc(100% + 6px);left:0;right:0;max-height:260px;padding:6px;overflow:auto;background:var(--color-surface);border:1px solid var(--color-outline);border-radius:12px;box-shadow:0 8px 24px rgba(32,47,61,.14)}.group-option{min-height:48px;padding:0 10px;display:flex;align-items:center;gap:12px;border-radius:9px;cursor:pointer;font-size:.76rem}.group-option:hover{background:var(--color-primary-container)}.group-option input{width:20px;height:20px;accent-color:var(--color-primary)}.group-option-empty{min-height:48px;padding:0 10px;display:flex;align-items:center;color:var(--color-text-secondary);font-size:.72rem}.selected-group-chips{margin-top:8px;display:flex;flex-wrap:wrap;gap:6px}.selected-group-chips button{min-height:36px;padding:0 10px;border:0;border-radius:10px;color:var(--color-primary);background:var(--color-primary-container);font:inherit;font-size:.68rem;font-weight:650;cursor:pointer}.selected-group-chips button span{margin-left:4px}.membership-add-action{display:grid;justify-items:end;gap:4px}.membership-add-action>span{color:var(--color-text-secondary);font-size:.68rem;white-space:nowrap}@media(max-width:760px){.membership-add-action{justify-items:stretch}.membership-add-action>span{text-align:left}.group-options{position:static;margin-top:6px}.selected-group-chips button{min-height:48px}}

/* Unified Material lesson management and role binding */
.profile-heading{grid-template-columns:72px minmax(0,1fr);align-items:center}.profile-heading .profile-avatar{width:72px;height:72px;border-radius:20px}.profile-summary{min-width:0}.profile-name-line{display:flex;align-items:center;gap:8px;min-width:0}.profile-name-line h1{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-name-line .provider-chip{flex:0 0 auto}.profile-heading-actions{margin-top:8px;display:flex;align-items:center;gap:4px;flex-wrap:wrap}.profile-heading-actions .avatar-upload-button,.profile-heading-actions .avatar-reset-button{min-width:auto;min-height:48px;padding:0 10px;color:var(--color-primary);background:transparent;font-size:.68rem}.material-combobox{position:relative}.material-combobox select{padding-right:44px;appearance:none}.material-combobox>svg{position:absolute;right:14px;bottom:17px;width:20px;height:20px;color:var(--color-text-secondary);pointer-events:none}.app-bar-avatar{width:32px;height:32px;display:block;object-fit:cover;border-radius:50%}@media(max-width:760px){.profile-heading{grid-template-columns:64px minmax(0,1fr)}.profile-heading .profile-avatar{width:64px;height:64px}.profile-heading-actions{gap:0}.profile-name-line{gap:6px}.profile-name-line .provider-chip{padding:5px 7px;font-size:.6rem}}
.student-avatar{overflow:hidden}.student-avatar img{width:100%;height:100%;display:block;object-fit:cover}
.membership-delete{width:48px;height:48px;padding:0;display:grid;place-items:center;color:var(--color-error,#b3261e);background:transparent;border:0;border-radius:50%;cursor:pointer}.membership-delete:hover{background:var(--color-error-container,#f9dedc)}.membership-delete:focus-visible{outline:3px solid rgba(179,38,30,.2);outline-offset:2px}.membership-delete:disabled{opacity:.45;cursor:default}.membership-delete svg{width:22px;height:22px}
.profile-avatar-stack .profile-avatar{width:72px;height:72px;border-radius:20px}.profile-avatar-stack .profile-avatar svg{width:36px;height:36px}.profile-avatar-stack .avatar-upload-button,.profile-avatar-stack .avatar-reset-button{min-width:72px;min-height:48px;padding:0;color:var(--color-primary);background:transparent;font-size:.66rem}.profile-avatar-stack .avatar-upload-button:hover,.profile-avatar-stack .avatar-reset-button:hover{text-decoration:underline;background:transparent}.profile-avatar-error{grid-column:1/-1;margin:0;padding:8px 10px;color:var(--color-error);background:var(--color-error-container);border-radius:8px;font-size:.7rem}@media(max-width:760px){.profile-avatar-stack .profile-avatar{width:64px;height:64px}.profile-avatar-stack .avatar-upload-button,.profile-avatar-stack .avatar-reset-button{min-width:64px}}
.profile-account-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.selected-group-chips button{min-height:48px}
.lesson-dialog.teacher-workspace{width:min(1160px,calc(100vw - 48px));max-height:min(860px,calc(100dvh - 48px))}
.dialog-close svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.lesson-management-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.lesson-management-actions .md-button{width:auto;min-height:42px;padding:0 16px}
.lesson-management-actions .md-button svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
@media(min-width:1000px){.lesson-dialog.teacher-workspace .lesson-dialog-content{grid-template-columns:minmax(330px,.78fr) minmax(520px,1.42fr);gap:0 28px}.teacher-workspace .student-roster{padding-left:28px}}

.role-onboarding{max-width:820px}.role-form-shell{padding:32px;border-radius:var(--radius-lg);background:var(--color-surface);border:1px solid var(--color-outline);box-shadow:var(--shadow)}
.role-form-shell::before,.role-form-shell::after{display:none}.role-form-shell .setup-heading{max-width:650px}.role-form-shell .setup-heading h1{margin-bottom:10px;font-size:clamp(1.8rem,4vw,2.5rem);line-height:1.08}.role-form-shell .setup-heading>p{font-size:.86rem}
.role-form-shell .selection-card{margin-top:24px;padding:20px;gap:16px;background:var(--color-surface);border:1px solid var(--color-outline);border-radius:var(--radius-md);box-shadow:none}
.selection-card-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.selection-card-heading h2{margin:0;font-size:1rem;font-weight:650;letter-spacing:-.015em}.selection-card-heading p{margin:4px 0 0;color:var(--color-text-secondary);font-size:.7rem;line-height:1.45}.selection-count{min-width:30px;height:28px;padding:0 8px;display:grid;place-items:center;color:var(--color-primary);background:var(--color-primary-container);border-radius:999px;font-size:.68rem;font-weight:750}
.role-form-shell .material-select-trigger{min-height:56px;border-color:var(--color-outline);border-radius:var(--radius-sm);box-shadow:none}.role-form-shell .material-select.open .material-select-trigger,.role-form-shell .material-select-trigger:focus-visible{border-color:var(--color-primary);box-shadow:0 0 0 3px rgba(18,87,154,.1)}
.role-form-shell .material-select .material-select-menu{position:relative!important;top:auto!important;right:auto!important;left:auto!important;margin-top:8px;padding:6px;border-color:var(--color-outline);border-radius:var(--radius-md);box-shadow:0 10px 28px rgba(18,43,68,.12)}.role-form-shell .material-select-options{max-height:min(320px,42dvh)}.role-form-shell .material-select-option{min-height:46px;border-radius:var(--radius-sm)}
.selection-actions{display:flex;justify-content:flex-end;padding-top:2px}.selection-actions .md-button{min-width:170px}
@media(max-width:760px){.lesson-dialog.teacher-workspace{width:100%;max-height:100dvh}.lesson-management-actions .md-button{width:auto;justify-content:center}.role-form-shell{padding:22px 18px}.role-form-shell .selection-card{padding:18px 14px}.selection-actions .md-button{width:100%}}
@media(max-width:760px){.student-row{grid-template-columns:36px minmax(0,1fr) auto;padding:8px 16px;gap:9px}.student-indicators{grid-column:auto;align-items:center;flex-wrap:nowrap}.attendance-button{min-width:58px;padding:0 8px}}

/* Periodic schedule template editor */
.template-course-list{display:grid;gap:14px;padding-bottom:72px}.template-course{overflow:hidden;background:var(--color-surface);border:1px solid var(--color-outline);border-radius:var(--radius-md)}.template-course>header{min-height:60px;padding:12px 16px;display:flex;align-items:center;border-bottom:1px solid var(--color-outline)}.template-course h2{margin:0;font-size:.92rem;line-height:1.3}.template-rows{display:grid}.template-row{min-height:72px;padding:10px 14px;display:grid;grid-template-columns:76px minmax(0,1fr) auto;align-items:center;gap:12px;color:var(--color-text);border-top:1px solid var(--color-outline)}.template-row:first-child{border-top:0}.template-row-time,.template-row-main{min-width:0;display:grid;gap:4px}.template-row-time strong{color:var(--color-primary);font-size:.72rem}.template-row-time span,.template-row-weeks{color:var(--color-text-secondary);font-size:.66rem}.template-row-main>strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.75rem}.template-row-weeks{max-width:180px;text-align:right}.template-variants{display:flex;flex-wrap:wrap;gap:4px}.template-variants button{min-height:32px;padding:3px 8px;display:flex;align-items:center;gap:3px;color:var(--color-text-secondary);background:var(--color-surface-container);border:0;border-radius:8px;font:inherit;font-size:.65rem;cursor:pointer}.template-variants button:hover{color:var(--color-primary);background:var(--color-primary-container)}.template-variants button:focus-visible{outline:3px solid rgba(18,87,154,.22);outline-offset:1px}.schedule-fab{position:fixed;z-index:15;right:max(24px,calc((100vw - 880px)/2 + 16px));bottom:28px;width:56px;height:56px;display:grid;place-items:center;color:#fff;background:var(--color-primary);border:0;border-radius:18px;box-shadow:0 6px 16px rgba(18,87,154,.3);cursor:pointer}.schedule-fab span{font-size:2rem;font-weight:300;line-height:1}.schedule-fab:hover{filter:brightness(.96)}.schedule-fab:focus-visible{outline:3px solid rgba(18,87,154,.28);outline-offset:3px}
.schedule-entry-editor{width:min(680px,calc(100vw - 32px))}.template-form{display:grid;gap:12px}.template-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.template-time-zone{grid-column:1/-1}.template-form .material-field{display:grid;gap:5px}.template-form .material-field>span,.template-form .material-field>small{color:var(--color-text-secondary);font-size:.68rem}.template-form .material-field input{width:100%;min-height:56px;padding:0 14px;color:var(--color-text);background:var(--color-surface-container);border:1px solid var(--color-outline);border-radius:12px;font:inherit}.template-form .material-field input:focus{border:2px solid var(--color-primary);outline:0}.template-form-actions{display:flex;justify-content:flex-end;gap:8px;padding-top:8px}
@media(max-width:760px){.template-course-list{gap:12px;padding-bottom:82px}.template-course>header{min-height:56px;padding:10px 14px}.template-course h2{font-size:.85rem}.template-row{min-height:68px;padding:9px 12px;grid-template-columns:68px minmax(0,1fr);gap:9px}.template-row-weeks{grid-column:2;max-width:none;text-align:left}.template-variants button{min-height:36px}.schedule-fab{right:18px;bottom:calc(96px + env(safe-area-inset-bottom));border-radius:17px}.schedule-entry-editor{width:100%;height:100dvh;max-height:100dvh;border:0;border-radius:0}.template-form-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px 8px}.template-form-grid>.material-select,.template-time-zone{grid-column:1/-1}.template-form-actions{position:sticky;bottom:0;padding:10px 0 calc(10px + env(safe-area-inset-bottom));background:var(--color-surface)}.template-form-actions .md-button{flex:1;min-height:48px}}

/* Material 3 mobile navigation bar */
@media(max-width:760px){
  .bottom-nav{bottom:0;width:100%;height:calc(80px + env(safe-area-inset-bottom));padding:8px max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));align-items:flex-start;gap:0;border-width:1px 0 0;border-radius:0;background:rgba(255,255,255,.98);box-shadow:0 -2px 12px rgba(18,43,68,.08);backdrop-filter:blur(12px)}
  .bottom-nav a{min-width:0;min-height:64px;padding:3px 8px 5px;flex:1;gap:4px;border-radius:0;color:var(--color-text-secondary);font-size:.75rem;font-weight:600;line-height:16px}
  .nav-icon,.bottom-nav a.active .nav-icon{width:64px;height:32px;border-radius:16px}
  .nav-icon svg{width:25px;height:25px;stroke-width:1.9}
  .bottom-nav a.active{color:var(--color-primary);background:transparent}
  .bottom-nav a.active .nav-icon{color:var(--color-primary);background:var(--color-primary-container)}
  .bottom-nav a.active .nav-icon svg{stroke-width:2.2}
  .app-content.has-bottom-nav{padding-bottom:calc(96px + env(safe-area-inset-bottom))}
  .calendar-support{margin-top:8px}
  .calendar-week-label{font-size:.66rem}
  .schedule-date-heading{display:none}
}

.template-variants button{min-height:48px}
.template-variants{align-items:center;column-gap:10px;row-gap:0}
.template-variants button{padding:0 2px;color:var(--color-text-secondary);background:transparent;border-radius:4px}
.template-variants button:hover{color:var(--color-primary);background:transparent;text-decoration:underline}
.template-row{width:100%;text-align:left;background:transparent;border-right:0;border-bottom:0;border-left:0;font:inherit;cursor:pointer}
.template-row:hover{background:var(--color-primary-container)}
.template-row:focus-visible{outline:3px solid rgba(18,87,154,.22);outline-offset:-3px}
.template-variants>span{min-height:24px;display:inline-flex;align-items:center;color:var(--color-text-secondary);font-size:.65rem}
.schedule-entry-editor .template-form input,.schedule-entry-editor .material-select-trigger{background:#fff}
.template-group-editor{padding-top:4px}.template-group-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.template-group-heading h3{margin:0;font-size:.86rem}.template-group-heading p{margin:3px 0 0;color:var(--color-text-secondary);font-size:.66rem}.template-group-list{margin-top:10px;display:grid;gap:8px}.template-group-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(150px,.7fr) 48px;align-items:center;gap:8px}.template-group-remove{width:48px;height:48px;color:var(--color-error);background:transparent;border:0;border-radius:50%;font-size:1.3rem;cursor:pointer}.template-group-remove:hover{background:var(--color-error-container)}
.template-weeks-editor{display:grid;gap:2px}.template-week-presets{display:flex;flex-wrap:wrap;gap:2px}.template-week-preset{min-width:0;min-height:48px;padding:6px 2px;border:0;background:transparent;color:var(--color-primary);font:inherit;font-size:.7rem;font-weight:700;cursor:pointer}.template-week-preset>span{min-height:30px;padding:0 10px;display:flex;align-items:center;border:1px solid var(--color-outline);border-radius:10px;background:var(--color-surface)}.template-week-preset:hover>span{background:var(--color-primary-container)}.template-week-preset.active>span{border-color:var(--color-primary);background:var(--color-primary-container);color:var(--color-on-primary-container)}.template-week-preset:focus-visible{outline:3px solid rgba(18,87,154,.22);outline-offset:-3px;border-radius:12px}
@media(max-width:760px){.template-row{min-height:58px}.template-row-weeks{margin-top:-5px}.template-variants>span{min-height:20px}.template-group-row{grid-template-columns:minmax(0,1fr) 48px}.template-group-row>.material-field{grid-column:1}.template-group-row>.template-group-remove{grid-column:2;grid-row:1/span 2}.template-group-heading{align-items:flex-start}.template-group-heading .md-button{min-width:96px}}

.template-group-heading .md-button{min-width:auto;min-height:48px;padding:0 4px;color:var(--color-primary);background:transparent;box-shadow:none}
.template-group-heading .md-button:hover{background:transparent;text-decoration:underline}
@media(max-width:760px){.template-group-row{grid-template-columns:minmax(0,1.2fr) minmax(110px,.8fr) 40px;gap:6px}.template-group-row>.material-field{grid-column:auto}.template-group-row>.template-group-remove{grid-column:3;grid-row:1}.template-group-heading .md-button{min-width:auto;padding:0 2px}}
@media(max-width:760px){.template-group-row{position:relative}.template-group-row .material-select.open{z-index:70}.template-group-row .material-select-menu{right:auto;width:min(430px,calc(100vw - 64px));max-width:none}}
