.ui-icon{flex:0 0 auto;display:block}.ui-select{position:relative;min-width:0;max-width:100%;font-size:16px}.ui-select .ui-select-trigger{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-width:160px;min-height:48px;padding:10px 12px 10px 14px;border:1px solid #c6d2dd;border-radius:10px;background:#fff;color:#15202b;font:inherit;font-size:16px;font-weight:500;line-height:1.35;text-align:left;white-space:nowrap;cursor:pointer;box-shadow:inset 0 1px 1px #15202b08}.ui-select .ui-select-trigger:hover:not(:disabled){background:#f8fbfe;border-color:#9fbfd7}.ui-select .ui-select-trigger:focus-visible{outline:3px solid #4fb0ea;outline-offset:2px}.ui-select .ui-select-trigger:disabled{opacity:.55;cursor:not-allowed;background:#f2f5f8}.ui-select .ui-select-trigger[aria-invalid=true]{border-color:#c8414f;box-shadow:0 0 0 1px #c8414f33}.ui-select-open .ui-select-trigger{border-color:#2fa2dd}.ui-select-value{overflow:hidden;text-overflow:ellipsis;min-width:0}.ui-select-placeholder{color:#74818d}.ui-select-chevron{color:#5d6b78;transition:transform .12s}.ui-select-open .ui-select-chevron{transform:rotate(180deg)}.ui-select input.ui-select-proxy{position:absolute;left:12px;bottom:0;width:1px;height:1px;min-width:0;min-height:0;opacity:0;pointer-events:none;border:0;padding:0;margin:0}.ui-select-error{display:block;margin-top:6px;font-size:14px;color:#a12f3f}.ui-select-list{position:absolute;z-index:60;left:0;top:calc(100% + 6px);min-width:100%;max-width:min(460px,calc(100vw - 24px));max-height:320px;overflow:auto;margin:0;padding:6px;list-style:none;background:#fff;border:1px solid #d3dce4;border-radius:12px;box-shadow:0 14px 36px #15202b26;outline:none}.ui-select-list.ui-select-up{top:auto;bottom:calc(100% + 6px)}.ui-select-option{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:9px 12px;border-radius:8px;color:#34424f;font-size:16px;line-height:1.35;cursor:pointer;-webkit-user-select:none;user-select:none}.ui-select-option.ui-select-active{background:#e8f3fc;color:#0f5f97}.ui-select-option[aria-selected=true]{font-weight:650}.ui-select-option[aria-disabled=true]{color:#a3aeb8;cursor:not-allowed}.ui-select-check{color:#1570b0}.ui-select-field>span{font-weight:600}@media(max-width:650px){.ui-select .ui-select-trigger{min-width:0}}.portal-shell .management-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:16px}.portal-shell .management-actions button[type=submit]{margin-top:0}.portal-shell .management-card-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:6px 16px;font-size:15px}.portal-shell .management-card-actions>a:not(.management-room-link){display:inline-flex;align-items:center;min-height:44px;font-weight:600}.portal-shell .management-room-link{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:8px 16px;border:1px solid var(--tint-line,#c9e2f4);border-radius:10px;background:var(--tint,#e8f3fc);color:var(--accent-ink,#0f5f97);font-size:15px;font-weight:650}.portal-shell .management-room-link:hover{background:#d8ecf9;border-color:#9fcbe9;text-decoration:none}.portal-shell .management-panel{scroll-margin-top:24px}.portal-shell .management-lesson-form{margin-top:20px}.portal-shell .management-subjects{display:flex;flex-direction:row;flex-wrap:wrap;gap:8px 12px;padding:14px 16px;border:1px solid var(--line,#dce4eb);border-radius:12px}.portal-shell .management-subjects legend{padding:0 6px;color:var(--ink-2,#34424f);font-size:15px;font-weight:600}.portal-shell .management-subjects label{display:inline-flex;align-items:center;gap:10px;min-height:44px;padding:0 14px 0 10px;border:1px solid var(--line-soft,#e9eef3);border-radius:10px;background:#fafcfd;font-size:16px;cursor:pointer}.portal-shell .management-subjects label:has(input:checked){border-color:var(--tint-line,#c9e2f4);background:var(--tint,#e8f3fc);color:var(--accent-ink,#0f5f97)}.portal-shell .management-subjects input{width:20px;height:20px;margin:0;accent-color:var(--accent,#1570b0)}.portal-shell .management-danger{color:#a12f3f;border-color:#e6bcc3}.portal-shell .management-danger:hover:not(:disabled){background:#fff3f4;border-color:#d899a3}.portal-shell .portal-status-cancelled{background:#eef1f4;color:#5a6672}.portal-shell .portal-identity{font-weight:600;color:var(--ink-2,#34424f);overflow-wrap:anywhere;min-width:0}.portal-shell .management-dialog{width:100%;max-width:min(560px,calc(100vw - 32px));max-height:calc(100dvh - 40px);overflow:auto;padding:28px;border:1px solid var(--line,#dce4eb);border-radius:16px;background:#fff;color:var(--ink,#15202b);box-shadow:0 20px 70px #15202b38}.portal-shell .management-dialog:not([open]){display:none}.portal-shell .management-dialog::backdrop{background:#15202b66}.portal-shell .portal-calendar-lesson .management-card-actions{justify-content:flex-start;gap:6px;font-size:14px}.portal-shell .portal-calendar-lesson .management-room-link,.portal-shell .portal-calendar-lesson button{min-height:36px;padding:4px 10px;font-size:14px}@media(max-width:760px){.portal-shell .management-card-actions{justify-content:flex-start}.portal-shell .management-actions{gap:8px}.portal-shell .management-actions button{max-width:100%}.portal-shell .management-dialog{padding:20px}.portal-shell .portal-calendar-lesson :is(.management-room-link,button){min-height:44px}}.portal-main.portal-main-wide:has(>.schedule){max-width:1280px;padding-bottom:20px}.schedule{--gutter:52px;--col-min:112px;--chrome:325px;--line:#e1e7ed;--half:#eff2f5;--blue:#2fa2dd;--blue-ink:#1570b0;--today:#2fa2dd0f;display:flex;flex-direction:column;gap:10px;min-width:0;max-width:100%;font-size:16px;color:#1d2a36}.schedule .management-lessons>.portal-toolbar{margin:0}.schedule .management-lessons>.portal-toolbar>button{min-height:40px;height:40px;padding:0 16px;font-size:14px}.schedule-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-width:0}.schedule-weeknav{display:inline-flex;align-items:center;gap:2px;box-sizing:border-box;height:40px;min-height:0;padding:0 2px;border:1px solid #dde4ea;border-radius:10px;background:#fff}.schedule .schedule-weeknav button{display:grid;place-items:center;box-sizing:border-box;width:34px;min-width:0;height:34px;min-height:0;padding:0;border:0;border-radius:8px;background:transparent;color:#2c3a47;box-shadow:none;cursor:pointer}.schedule .schedule-weeknav button:hover{background:#eef5fb}.schedule-prev{transform:rotate(90deg)}.schedule-next{transform:rotate(-90deg)}.schedule-range{min-width:104px;text-align:center;font-size:15px;font-variant-numeric:tabular-nums;white-space:nowrap}.schedule button.schedule-today{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;height:40px;min-height:0;padding:0 14px;border:1px solid #dde4ea;border-radius:10px;background:#fff;color:#1d2a36;font:inherit;font-size:14px;font-weight:600;box-shadow:none;cursor:pointer}.schedule button.schedule-today:hover{background:#eef5fb}.schedule .schedule-weeknav button:focus-visible,.schedule button.schedule-today:focus-visible{outline:3px solid #4fb0ea;outline-offset:2px}.schedule-filter{width:280px;max-width:100%}.schedule .schedule-filter .ui-select-trigger{box-sizing:border-box;height:40px;min-height:0;padding:0 10px 0 12px;border-color:#dde4ea;border-radius:10px;font-size:14px}.schedule .schedule-filter.ui-select-open .ui-select-trigger{border-color:#2fa2dd}.schedule p.schedule-date{display:flex;align-items:center;gap:8px;margin:0;font-size:14px;font-weight:600;line-height:20px;color:#2c3a47}.schedule-date .ui-icon{color:#5d6b78}.schedule p.schedule-notice{margin:0;padding:8px 12px;border-radius:10px;background:#fff6e0;color:#6b4d00;font-size:14px}.schedule p.schedule-summary{margin:0;font-size:13px;line-height:18px}@media(min-width:1280px){.schedule:has(>.schedule-manage>.management-lessons>.portal-toolbar){--chrome:275px;display:grid;grid-template-columns:minmax(0,1fr);align-content:start}.schedule:has(>.schedule-manage>.management-lessons>.portal-toolbar)>.schedule-manage{grid-row:1;grid-column:1;min-width:0}.schedule:has(>.schedule-manage>.management-lessons>.portal-toolbar)>.schedule-toolbar{grid-row:1;grid-column:1;align-self:start;justify-self:start;max-width:calc(100% - 260px)}.schedule .management-lessons>.portal-toolbar{justify-content:flex-end;min-height:40px}.schedule .management-lessons>.portal-toolbar~*{margin-top:12px}}.schedule-panel{display:flex;flex-direction:column;min-width:0;max-width:100%;overflow:hidden;border-radius:12px;background:#fff;box-shadow:0 2px 10px #0000002e}.schedule-head-wrap{flex:none;overflow:hidden;scrollbar-gutter:stable;border-bottom:1px solid #d7dfe6;background:#fff}.schedule-head,.schedule-grid{display:grid;grid-template-columns:var(--gutter) repeat(7,minmax(var(--col-min),1fr));min-width:calc(var(--gutter) + 7 * var(--col-min))}.schedule-head{height:40px}.schedule-week-no{display:flex;align-items:center;justify-content:center;font-size:12px;color:#6b7885;white-space:nowrap}.schedule-day-head{display:flex;align-items:center;justify-content:center;gap:5px;border-left:1px solid var(--line);font-size:14px;color:#4a5866;white-space:nowrap}.schedule-day-head strong{font-size:14px;font-weight:650;color:#22303c}.schedule-day-head.is-today{background:#e6f3fb;color:var(--blue-ink)}.schedule-day-head.is-today strong{color:var(--blue-ink)}.schedule-day-full{display:none}.schedule-scroll{position:relative;flex:none;height:clamp(360px,calc(100dvh - var(--chrome)),1200px);overflow:auto;scrollbar-gutter:stable;overscroll-behavior:contain}.schedule-grid{position:relative;height:1440px}.schedule-gutter{position:relative}.schedule-hour{position:absolute;right:8px;transform:translateY(-50%);font-size:12px;line-height:1;color:#5f6c78;font-variant-numeric:tabular-nums;white-space:nowrap}.schedule-hour.is-first{transform:translateY(4px)}.schedule-hour.is-last{transform:translateY(calc(-100% - 4px))}.schedule-col{position:relative;min-width:0;border-left:1px solid var(--line);background-image:repeating-linear-gradient(to bottom,var(--line) 0 1px,transparent 1px 30px,var(--half) 30px 31px,transparent 31px 60px)}.schedule-col.is-today{background-color:var(--today)}.schedule button.schedule-slot{position:absolute;left:0;right:0;z-index:1;display:block;box-sizing:border-box;width:auto;min-width:0;height:15px;min-height:0;max-height:15px;margin:0;padding:0;border:0;border-radius:0;outline:0;background:transparent;box-shadow:none;font-size:0;line-height:0;cursor:pointer;appearance:none}.schedule button.schedule-slot:hover{border:0;background:#2fa2dd1c;box-shadow:none}.schedule button.schedule-slot:focus-visible{outline:2px solid var(--blue);outline-offset:-2px;background:#2fa2dd1f}.schedule button.schedule-slot.is-past{cursor:default}.schedule button.schedule-slot.is-past:hover{background:transparent}.schedule-drag{position:absolute;left:2px;right:2px;z-index:2;border:1px dashed var(--blue);border-radius:6px;background:#2fa2dd29;pointer-events:none}.schedule button.schedule-avail{position:absolute;left:0;right:0;z-index:3;display:flex;align-items:flex-start;justify-content:flex-start;box-sizing:border-box;width:auto;min-width:0;min-height:0;margin:0;padding:3px 6px;border:0;border-left:3px solid #47b98c;border-radius:0;background:#ddf3e8;color:#226c4c;font:inherit;font-size:12px;font-weight:500;line-height:1.25;text-align:left;box-shadow:none;cursor:pointer;overflow:hidden}.schedule button.schedule-avail:hover{background:#cdeedd}.schedule button.schedule-avail.is-past{border-left-color:#a9b8af;background:#eaf1ec;color:#5f6f66}.schedule button.schedule-avail:focus-visible{outline:2px solid #2b9a6f;outline-offset:-2px}.schedule button.schedule-lesson{--lesson-bg:#e7f3fc;--lesson-hover:#d8ecfa;--lesson-edge:var(--blue);--lesson-ink:#17324a;--lesson-meta:#3a5a76;container:lesson-card/inline-size;position:absolute;z-index:4;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:0;box-sizing:border-box;min-width:0;min-height:0;margin:0;padding:3px 6px 2px;border:0;border-left:3px solid var(--lesson-edge);border-radius:6px;background:var(--lesson-bg);color:var(--lesson-ink);font:inherit;font-size:11px;font-weight:500;line-height:1.25;text-align:left;white-space:normal;cursor:pointer;overflow:hidden;box-shadow:0 1px 3px #15202b24;transition:none}.schedule button.schedule-lesson>*{display:block;flex:none;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.schedule button.schedule-lesson>.schedule-lesson-top{display:flex;align-items:center;gap:4px;overflow:visible}.schedule button.schedule-lesson strong{font-size:13px;font-weight:600;line-height:1.25}.schedule-lesson-time{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-variant-numeric:tabular-nums;color:var(--lesson-meta)}.schedule-lesson-who{color:var(--lesson-meta)}.schedule-lesson-state{display:inline-flex;align-items:center;flex:none;gap:3px;margin-left:auto;color:var(--lesson-meta);font-weight:650}.schedule-lesson-state .ui-icon,.schedule-lesson-state svg{flex:none;stroke-width:2.6}.schedule-lesson-state-text{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}@container lesson-card (min-width:190px){.schedule-lesson-state-text{position:static;width:auto;height:auto;overflow:visible;clip-path:none}}.schedule button.schedule-lesson:hover:not(:disabled){background:var(--lesson-hover);border-left-color:var(--lesson-edge)}.schedule button.schedule-lesson:focus-visible{outline:3px solid #4fb0ea;outline-offset:1px}.schedule button.schedule-lesson-scheduled.is-past{--lesson-bg:#eef3f7;--lesson-hover:#e3eaf0;--lesson-edge:#7f98ad;--lesson-ink:#22394d;--lesson-meta:#45596b}.schedule button.schedule-lesson-conducted{--lesson-bg:#e3f5ec;--lesson-hover:#d3efe1;--lesson-edge:#2e9e6e;--lesson-ink:#12392a;--lesson-meta:#255c43}.schedule button.schedule-lesson-absent{--lesson-bg:#fdeee6;--lesson-hover:#fbe1d4;--lesson-edge:#d0652e;--lesson-ink:#5a210a;--lesson-meta:#8a3a14;outline:1px dashed #d0652e;outline-offset:-1px}.schedule button.schedule-lesson-cancelled{--lesson-bg:#f3f4f6;--lesson-hover:#e9ecef;--lesson-edge:#9aa4ae;--lesson-ink:#2c3640;--lesson-meta:#4f5a65;box-shadow:none}.schedule-lesson-cancelled strong,.schedule-lesson-cancelled .schedule-lesson-time{text-decoration:line-through}.schedule button.schedule-lesson.is-short{flex-direction:row;align-items:center;gap:5px;padding-top:0;padding-bottom:0}.schedule button.schedule-lesson.is-short>*{flex:0 1 auto}.schedule button.schedule-lesson.is-short>.schedule-lesson-top{flex:none}.schedule button.schedule-lesson.is-short .schedule-lesson-state{margin-left:0}.schedule button.schedule-lesson.is-short .schedule-lesson-who{display:none}.schedule-now{position:absolute;left:0;right:0;z-index:5;height:2px;margin-top:-1px;pointer-events:none}.schedule-now-label{position:absolute;left:0;top:-9px;width:calc(var(--gutter) - 6px);padding-right:4px;background:#fff;font-size:12px;font-weight:650;line-height:18px;text-align:right;color:var(--blue-ink);font-variant-numeric:tabular-nums}.schedule-now-line{position:absolute;left:var(--gutter);right:0;top:0;border-top:1px dashed var(--blue)}.schedule-now-today{position:absolute;top:0;width:calc((100% - var(--gutter)) / 7);height:2px;background:var(--blue-ink)}.schedule-now-today:before{content:"";position:absolute;left:-5px;top:-4px;width:10px;height:10px;border-radius:50%;background:var(--blue-ink)}.schedule-gutter-now{display:none;position:absolute;right:4px;z-index:1;margin-top:-9px;padding:0 2px 0 4px;background:#fff;font-size:12px;font-weight:650;line-height:18px;color:var(--blue-ink);font-variant-numeric:tabular-nums}.schedule-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}.schedule .schedule-days button{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;box-sizing:border-box;min-width:0;min-height:56px;margin:0;padding:3px 0 9px;border:1px solid #dde4ea;border-radius:12px;background:#fff;color:#4a5866;font:inherit;font-size:13px;font-weight:500;line-height:1.15;box-shadow:none;cursor:pointer;transition:none}.schedule .schedule-days button strong{font-size:17px;font-weight:650;color:#22303c}.schedule .schedule-days button.is-today{border-color:#9fcbe9;color:var(--blue-ink)}.schedule .schedule-days button.is-today strong{color:var(--blue-ink)}.schedule .schedule-days button.has-lessons:after{content:"";position:absolute;bottom:6px;left:50%;width:5px;height:5px;margin-left:-2.5px;border-radius:50%;background:var(--blue)}.schedule .schedule-days button:hover:not(:disabled):not([aria-pressed=true]){border-color:#9fcbe9;background:#eef5fb}.schedule .schedule-days button[aria-pressed=true]:not(:disabled){border-color:var(--blue-ink);background:var(--blue-ink);color:#fff}.schedule .schedule-days button[aria-pressed=true]:not(:disabled) strong{color:#fff}.schedule .schedule-days button[aria-pressed=true].has-lessons:after{background:#fff}.schedule .schedule-days button:focus-visible{outline:3px solid #4fb0ea;outline-offset:2px}.schedule-pop{position:fixed;z-index:80;display:flex;flex-direction:column;gap:14px;box-sizing:border-box;padding:18px;border-radius:14px;background:#fff;color:#1d2a36;font-size:16px;box-shadow:0 4px 15px #00000040}.schedule-pop:focus{outline:none}.schedule-pop h2{margin:0;font-size:20px;line-height:1.25;overflow-wrap:anywhere}.schedule-pop-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.schedule-pop-sub,.schedule-pop-time{margin:0;color:#4f5d6a}.schedule-pop-time{font-size:18px;font-weight:600;color:#1d2a36;font-variant-numeric:tabular-nums}.schedule-pop-times{display:grid;grid-template-columns:1fr 1fr;gap:10px}.schedule-pop-field{display:flex;flex-direction:column;gap:6px;min-width:0}.schedule-pop-field>span{font-size:15px;color:#4f5d6a}.schedule-pop-field .ui-select-trigger{min-width:0}.schedule-pop-field .ui-select-list{max-height:260px}.schedule-seg{display:flex;gap:4px;padding:4px;border-radius:12px;background:#eef2f6}.schedule .schedule-seg button{display:flex;align-items:center;justify-content:center;flex:1;min-width:0;min-height:44px;padding:0 10px;border:0;border-radius:9px;background:transparent;color:#3d4a57;font:inherit;font-weight:500;box-shadow:none;cursor:pointer}.schedule .schedule-seg button:hover:not(:disabled){background:#fff9}.schedule .schedule-seg button[aria-pressed=true]{background:#fff;color:var(--blue-ink);font-weight:650;box-shadow:0 1px 3px #15202b26}.schedule .schedule-seg button:disabled{cursor:not-allowed;opacity:.6}.schedule .schedule-seg button:focus-visible{outline:3px solid #4fb0ea;outline-offset:1px}.schedule-pop-details{display:flex;flex-direction:column;gap:8px;margin:0}.schedule-pop-details div{display:flex;justify-content:space-between;gap:14px}.schedule-pop-details dt{color:#5d6b78}.schedule-pop-details dd{margin:0;text-align:right;overflow-wrap:anywhere}.schedule-pop-id{font-size:14px;color:#5d6b78}.schedule-pop-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.schedule button.schedule-confirm{display:inline-flex;align-items:center;justify-content:center;flex:1 1 auto;min-height:48px;padding:0 18px;border:0;border-radius:12px;background:var(--blue);color:#fff;font:inherit;font-weight:650;box-shadow:none;cursor:pointer}.schedule button.schedule-confirm:hover:not(:disabled){background:#1f8fca}.schedule button.schedule-confirm:disabled{opacity:.55;cursor:not-allowed}.schedule button.schedule-confirm-danger{background:#c8414f}.schedule button.schedule-confirm-danger:hover:not(:disabled){background:#b23542}.schedule button.schedule-secondary{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 16px;border:1px solid #d3dce4;border-radius:12px;background:#fff;color:#33414e;font:inherit;font-weight:500;box-shadow:none;cursor:pointer}.schedule button.schedule-secondary:hover{background:#f4f7fa}.schedule button.schedule-danger{border-color:#e9c6cb;color:#a12f3f}.schedule button.schedule-confirm:focus-visible,.schedule button.schedule-secondary:focus-visible{outline:3px solid #4fb0ea;outline-offset:2px}.schedule-pop-past{margin:0;padding:10px 12px;border-radius:10px;background:#f1f3f5;color:#55616d;font-weight:600}.schedule-pop-error{margin:0;padding:10px 12px;border-radius:10px;background:#fdecee;color:#8d2433;font-size:15px}.schedule-pop-status{margin:0;color:#4f5d6a}@media(max-width:700px){.schedule{--gutter:54px;--col-min:96px}.schedule-filter{width:100%}.schedule-scroll{height:clamp(360px,calc(100dvh - 260px),900px)}}@media(max-width:640px){.schedule-head,.schedule-grid{grid-template-columns:var(--gutter) repeat(7,minmax(0,1fr));width:calc(700% - 6 * var(--gutter));min-width:0}.schedule-head-wrap{scrollbar-gutter:auto}.schedule-scroll{scrollbar-width:none;scroll-snap-type:x mandatory;scroll-padding-left:var(--gutter)}.schedule-scroll::-webkit-scrollbar{display:none}.schedule-col{scroll-snap-align:start;scroll-snap-stop:always}.schedule-gutter{position:sticky;left:0;z-index:6;background:#fff}.schedule-week-no{position:sticky;left:0;z-index:1;background:#fff;font-size:13px}.schedule-day-head{justify-content:flex-start;padding:0 12px;font-size:16px;font-weight:600;color:#22303c}.schedule-day-head>:not(.schedule-day-full){display:none}.schedule-day-full{display:block;overflow:hidden;text-overflow:ellipsis}.schedule-day-full:first-letter{text-transform:uppercase}.schedule-now-label{display:none}.schedule-gutter-now{display:block}.schedule button.schedule-lesson{padding:3px 10px 2px;border-left-width:4px;font-size:12px}.schedule button.schedule-lesson strong{font-size:15px;line-height:1.2}.schedule button.schedule-lesson>*{white-space:normal;overflow-wrap:anywhere;text-overflow:clip}.schedule button.schedule-lesson>.schedule-lesson-top{flex-wrap:wrap;column-gap:8px;row-gap:0}.schedule-lesson-time,.schedule-lesson-who,.schedule-lesson-state{font-size:12px;line-height:1.25}.schedule-lesson-time{white-space:nowrap}}.chat-root{--chat-accent: #1570b0;--chat-ink: #15202b;--chat-muted: #566370;display:grid;grid-template-columns:minmax(260px,32%) minmax(0,1fr);height:min(780px,calc(100dvh - 170px));min-height:480px;width:100%;overflow:hidden;background:#fff;border:1px solid #dce4eb;border-radius:16px;color:var(--chat-ink);box-sizing:border-box;box-shadow:0 1px 2px #15202b0a,0 4px 16px #15202b06}.chat-contacts{min-width:0;display:flex;flex-direction:column;border-right:1px solid #e6ecf1;background:#f9fbfc;overflow:hidden}.chat-contacts-head{padding:24px 22px 14px}.chat-root .chat-title{margin:0;font-size:20px;line-height:1.3;font-weight:650;overflow-wrap:anywhere}.chat-subtitle{display:block;margin:4px 0 0;color:var(--chat-muted);font-size:15px;line-height:1.45}.chat-search-label{display:block;margin:0 16px 14px}.chat-root .chat-search{width:100%;min-width:0;min-height:48px;box-sizing:border-box;border:1px solid #c6d2dd;border-radius:10px;background:#fff;color:var(--chat-ink);font:inherit;font-size:16px;padding:11px 14px}.chat-search:focus-visible,.chat-input:focus-visible,.chat-root button:focus-visible{outline:3px solid #4fb0ea;outline-offset:2px}.chat-contact-list{overflow-y:auto;padding:0 10px 12px}.chat-root .chat-contact{display:flex;align-items:center;justify-content:flex-start;gap:14px;width:100%;min-width:0;min-height:68px;padding:12px;border:0;border-radius:12px;text-align:left;color:inherit;background:transparent;cursor:pointer;font:inherit;font-weight:400}.chat-root .chat-contact:hover{background:#eef5fa}.chat-root .chat-contact-active{background:#e5f2fc;box-shadow:inset 3px 0 #2fa2dd}.chat-avatar{display:grid;place-items:center;flex-shrink:0;height:44px;width:44px;border-radius:50%;background:linear-gradient(135deg,#e3f2fc,#e3f6ec);color:#0f5f97;font-size:18px;font-weight:700}.chat-contact-copy{display:block;min-width:0;flex:1}.chat-contact-name{display:block;font-size:16px;font-weight:600;line-height:1.4;overflow-wrap:anywhere}.chat-preview{display:block;margin-top:2px;color:var(--chat-muted);font-size:14px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.chat-thread{display:flex;flex-direction:column;min-height:0;min-width:0;overflow:hidden}.chat-thread-head{display:flex;gap:14px;align-items:center;border-bottom:1px solid #e6ecf1;padding:14px 24px;min-height:72px;flex-shrink:0}.chat-back{display:none}.chat-messages{flex:1;min-height:0;min-width:0;overflow-y:auto;overflow-x:hidden;overflow-anchor:none;padding:24px;display:flex;flex-direction:column;gap:14px;background:#f5f8fa}.chat-message{align-self:flex-start;flex-shrink:0;max-width:min(78%,640px);min-width:120px;padding:12px 16px 10px;background:#fff;border:1px solid #e1e8ee;border-radius:16px 16px 16px 6px;box-shadow:0 1px 2px #15202b08;box-sizing:border-box}.chat-message-own{align-self:flex-end;background:#e5f2fc;border-color:#c9e2f4;border-radius:16px 16px 6px}.chat-message-author{color:#0f5f97;font-size:14px;font-weight:650;overflow-wrap:anywhere}.chat-message-role{font-weight:400;color:var(--chat-muted)}.chat-message-text{white-space:pre-wrap;overflow-wrap:anywhere;margin:6px 0;font-size:16px;line-height:1.55}.chat-message-time{display:block;color:#6a7783;text-align:right;font-size:13px;font-variant-numeric:tabular-nums}.chat-root .chat-older{align-self:center;flex-shrink:0;min-height:40px;background:#fff;color:#0f5f97;border:1px solid #c9e2f4;border-radius:999px;padding:8px 18px;font:inherit;font-size:15px;font-weight:600;cursor:pointer}.chat-composer{padding:16px 24px 18px;border-top:1px solid #e6ecf1;flex-shrink:0;min-width:0}.chat-root .chat-input{display:block;box-sizing:border-box;width:100%;min-width:0;min-height:84px;max-height:180px;resize:vertical;border:1px solid #c6d2dd;border-radius:12px;background:#fff;color:var(--chat-ink);padding:12px 14px;font:inherit;font-size:16px;line-height:1.5}.chat-composer-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px}.chat-limit{color:var(--chat-muted);font-size:14px}.chat-root .chat-send{min-height:44px;background:var(--chat-accent);color:#fff;border:none;border-radius:10px;padding:10px 22px;font:inherit;font-size:16px;font-weight:650;cursor:pointer}.chat-root .chat-send:hover:not(:disabled){background:#0f5d94}.chat-root button:disabled{opacity:.5;cursor:default}.chat-hint{color:var(--chat-muted);margin:10px 16px;font-size:15px}.chat-error{color:#8f2633;background:#fff5f5;border:1px solid #efc6ca;border-radius:10px;padding:10px 14px;margin:8px 12px;font-size:15px;line-height:1.45;overflow-wrap:anywhere;flex-shrink:0}.chat-retry-copy{color:#7a4d58;font-size:14px;margin:8px 0;overflow-wrap:anywhere;max-height:64px;overflow:auto;white-space:pre-wrap}.chat-empty{margin:auto;padding:32px;text-align:center;color:var(--chat-muted);font-size:16px}.chat-empty p{margin:10px 0;font-size:15px}.chat-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:700px){.chat-root{display:flex;height:calc(100dvh - 170px);min-height:470px;border-radius:14px}.chat-contacts{display:none;width:100%;border-right:0}.chat-thread{width:100%}.chat-show-contacts .chat-contacts{display:flex}.chat-show-contacts .chat-thread{display:none}.chat-root .chat-back{display:block;flex-shrink:0;min-height:44px;border:1px solid #c9e2f4;border-radius:10px;background:#fff;padding:8px 12px;color:#0f5f97;font:inherit;font-size:15px;cursor:pointer}.chat-thread-head{padding:12px;gap:10px;min-height:0}.chat-thread-head .chat-title{font-size:18px}.chat-thread-head .chat-subtitle{font-size:14px}.chat-messages{padding:14px 12px}.chat-message{max-width:92%}.chat-composer{padding:12px}.chat-root .chat-send{padding:10px 16px}}.portal-shell{--ink:#15202b;--ink-2:#34424f;--muted:#566370;--faint:#7a8793;--line:#dce4eb;--line-soft:#e9eef3;--canvas:#f2f5f8;--surface:#fff;--tint:#e8f3fc;--tint-line:#c9e2f4;--accent:#1570b0;--accent-hover:#0f5d94;--accent-ink:#0f5f97;--mint:#2fa877;--focus:#4fb0ea;--radius:14px;--shadow-card:0 4px 15px rgba(0,0,0,.25);display:flex;min-height:100dvh;background:var(--canvas);color:var(--ink);font:16px/1.55 Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;max-width:100%;overflow-wrap:anywhere}.portal-shell *{box-sizing:border-box}.portal-shell a{color:var(--accent-ink);text-decoration:none;text-underline-offset:3px}.portal-shell a:hover{text-decoration:underline}.portal-shell :is(button,input,select,textarea){font:inherit}.portal-shell button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:9px 18px;border:1px solid #cbd6e0;border-radius:10px;background:var(--surface);color:var(--ink-2);font-size:15px;line-height:1.35;font-weight:600;white-space:normal;cursor:pointer;transition:background-color .12s,border-color .12s,box-shadow .12s}.portal-shell button:hover:not(:disabled){background:#f1f8fd;border-color:#9fcbe9}.portal-shell button:disabled{opacity:.5;cursor:not-allowed}.portal-shell .portal-primary{background:var(--accent);border-color:var(--accent);color:#fff;box-shadow:0 1px 2px #0f5d9433}.portal-shell .portal-primary:hover:not(:disabled){background:var(--accent-hover);border-color:var(--accent-hover)}.portal-shell :is(a,button,input,select,textarea):focus-visible{outline:3px solid var(--focus);outline-offset:3px}.portal-skip{position:fixed;top:8px;left:8px;transform:translateY(-160%);background:#fff;z-index:100;padding:10px 14px;border:2px solid var(--accent);border-radius:8px}.portal-skip:focus{transform:translateY(0)}.portal-rail{position:relative;align-self:stretch;width:272px;flex:0 0 272px;background:var(--surface);border-right:1px solid var(--line)}.portal-rail-inner{position:sticky;top:0;max-height:100dvh;overflow-y:auto;padding:28px 18px;display:flex;flex-direction:column;gap:28px}.portal-shell .portal-brand{display:inline-flex;align-self:flex-start;padding:6px 10px;border-radius:10px}.portal-shell .portal-brand:hover{background:var(--canvas);text-decoration:none}.portal-wordmark{display:block;width:150px;height:auto}.portal-nav{display:flex;flex-direction:column;gap:4px}.portal-shell .portal-nav a{position:relative;display:flex;align-items:center;gap:14px;min-height:48px;padding:10px 14px;border-radius:12px;color:var(--ink-2);font-size:16px;font-weight:500;line-height:1.3;min-width:0}.portal-shell .portal-nav a>span{min-width:0}.portal-shell .portal-nav a .ui-icon{width:22px;height:22px;color:#64727f}.portal-shell .portal-nav a:hover{background:var(--canvas);color:var(--ink);text-decoration:none}.portal-shell .portal-nav a[aria-current=page]{background:var(--tint);color:var(--accent-ink);font-weight:650}.portal-shell .portal-nav a[aria-current=page]:before{content:"";position:absolute;left:-18px;top:10px;bottom:10px;width:4px;border-radius:0 4px 4px 0;background:#2fa2dd}.portal-shell .portal-nav a:is(:hover,[aria-current=page]) .ui-icon{color:var(--accent)}.portal-body{flex:1;min-width:0}.portal-main{max-width:1280px;margin:0 auto;padding:28px 48px 64px;min-width:0}.portal-main.portal-main-wide{max-width:1680px}.portal-demo{display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center;padding:12px 16px;margin-bottom:8px;background:#fff8e6;border:1px solid #efdeae;color:#664f1c;border-radius:10px;font-size:14px}.portal-demo strong{color:#4b3a10}.portal-demo a{margin-left:auto}.portal-shell .portal-page-heading{display:flex;align-items:center;gap:14px;margin:4px 0 8px;min-height:52px;min-width:0}.portal-shell h1{margin:0;font-size:32px;font-weight:700;line-height:1.2;letter-spacing:-.6px;color:var(--ink)}.portal-shell h2{margin:0 0 16px;font-size:21px;font-weight:650;line-height:1.3;letter-spacing:-.2px}.portal-shell h3{margin:0;font-size:18px;font-weight:650;line-height:1.35}.portal-shell p{margin:0 0 14px}.portal-shell .portal-profile{flex:0 0 auto;display:grid;place-items:center;width:48px;height:48px;margin-left:auto;border-radius:50%;background:var(--tint);border:1px solid var(--tint-line);color:var(--accent-ink);font-weight:700;font-size:18px;text-decoration:none}.portal-shell .portal-profile .ui-icon{width:24px;height:24px}.portal-shell .portal-profile:hover{background:#d8ecf9;text-decoration:none}.portal-shell .portal-profile[aria-current=page]{box-shadow:0 0 0 2px #fff,0 0 0 4px #7cc3ec}.portal-shell .portal-signout{flex:0 0 auto;min-height:48px;padding:8px 16px;color:var(--ink-2)}.portal-shell .portal-signout .ui-icon{color:var(--muted)}.portal-lede{color:var(--muted);font-size:17px;margin:0 0 24px}.portal-muted{color:var(--muted);font-size:15px}.portal-empty{padding:20px 0;margin:0;color:var(--muted);font-size:16px}.portal-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:24px 28px;margin-bottom:24px;min-width:0;box-shadow:var(--shadow-card)}.portal-section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px 16px;flex-wrap:wrap;margin-bottom:16px}.portal-section-heading :is(h2,h3){margin:0}.portal-shell .portal-section-link{display:inline-flex;align-items:center;min-height:44px;padding:0 4px;font-size:15px;font-weight:600}.portal-dash{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:24px;align-items:start}.portal-dash-main{min-width:0}.portal-dash-side{position:sticky;top:24px;min-width:0}.portal-summary{padding:22px 24px 10px}.portal-summary h2{font-size:18px;margin-bottom:6px}.portal-stats{margin:0;display:flex;flex-direction:column}.portal-stat{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 0;border-top:1px solid var(--line-soft)}.portal-stat:first-child{border-top:0}.portal-stat dt{display:flex;align-items:center;gap:12px;min-width:0;color:var(--ink-2);font-size:15px}.portal-stat dt .ui-icon{color:#4f9fd3}.portal-stat dd{flex:none;margin:0}.portal-stat strong{font-size:22px;line-height:1.2;font-weight:700;color:var(--ink);font-variant-numeric:tabular-nums;white-space:nowrap;overflow-wrap:normal}.portal-start{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:28px 36px;padding:32px;background:#f3f9fe;border-color:#cfe5f4}.portal-start-lead h2{font-size:26px;letter-spacing:-.4px;margin-bottom:12px}.portal-start-lead p{color:var(--ink-2);font-size:17px;line-height:1.6;margin-bottom:24px}.portal-shell .portal-cta{display:inline-flex;align-items:center;gap:12px;min-height:52px;padding:12px 24px 12px 20px;border-radius:12px;background:var(--accent);color:#fff;font-size:17px;font-weight:650;box-shadow:0 2px 6px #0f5d9440}.portal-shell .portal-cta:hover{background:var(--accent-hover);text-decoration:none}.portal-start-steps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:18px;counter-reset:step}.portal-start-steps li{display:flex;gap:16px;align-items:flex-start}.portal-start-steps strong{display:block;font-size:17px;margin-bottom:2px}.portal-start-steps li>div>span{display:block;color:var(--muted);font-size:15px;line-height:1.5}.portal-start-icon{display:grid;place-items:center;flex:0 0 46px;height:46px;border-radius:12px;background:#fff;border:1px solid var(--tint-line);color:var(--accent)}.portal-empty-row{display:flex;align-items:center;gap:14px;padding:14px 16px;border:1px dashed #cfdae4;border-radius:12px;background:#fafcfd;color:var(--muted)}.portal-empty-row .ui-icon{color:#8fb9d6}.portal-empty-row p{margin:0;font-size:16px}.portal-day-group+.portal-day-group{margin-top:22px}.portal-shell .portal-day-label{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 10px;margin:0;padding:0 0 8px;border-bottom:1px solid var(--line-soft);font-size:16px;font-weight:700;line-height:1.4;color:var(--ink)}.portal-day-label small{font-size:14px;font-weight:500;color:var(--muted)}.portal-lesson-list{list-style:none;margin:0;padding:0}.portal-lesson-list>li{display:grid;grid-template-columns:96px minmax(0,1fr) auto;align-items:center;gap:10px 20px;padding:14px 0;border-top:1px solid var(--line-soft)}.portal-lesson-list>li:first-child{border-top:0}.portal-day-group:last-child .portal-lesson-list>li:last-child{padding-bottom:0}.portal-lesson-time{display:flex;flex-direction:column;justify-content:center;align-self:stretch;padding:8px 12px;border-radius:12px;background:var(--canvas)}.portal-lesson-time time{color:var(--ink);font-size:22px;line-height:1.2;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}.portal-lesson-time small{font-size:14px;line-height:1.3;color:var(--muted);white-space:nowrap}.portal-lesson-scheduled .portal-lesson-time{background:var(--tint)}.portal-lesson-scheduled .portal-lesson-time time{color:var(--accent-ink)}.portal-lesson-person{display:flex;flex-direction:column;gap:4px;min-width:0}.portal-lesson-person>strong{font-size:18px;font-weight:650;line-height:1.3}.portal-lesson-who{display:inline-flex;align-items:center;gap:8px;min-width:0;font-size:16px;color:var(--muted)}.portal-lesson-who .ui-icon{flex:none;color:var(--muted)}.portal-lesson-side{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px 10px;min-width:0}.portal-lesson-side .portal-status{align-self:center}.portal-menu{position:relative;flex:none}.portal-shell .portal-menu-button{width:44px;min-width:44px;padding:0;border-color:transparent;background:transparent;color:var(--ink-2)}.portal-shell .portal-menu-button:hover:not(:disabled),.portal-shell .portal-menu-button[aria-expanded=true]{background:var(--canvas);border-color:var(--line)}.portal-menu-dots{display:block;width:4px;height:4px;border-radius:50%;background:currentColor;box-shadow:-7px 0 currentColor,7px 0 currentColor}.portal-menu-list{position:absolute;top:calc(100% + 6px);right:0;z-index:30;min-width:220px;padding:6px;border:1px solid var(--line);border-radius:12px;background:var(--surface);box-shadow:0 8px 24px #15202b2e}.portal-shell .portal-menu-list a{display:flex;align-items:center;min-height:44px;padding:8px 12px;border-radius:8px;color:var(--ink);font-size:15px;font-weight:600;white-space:nowrap}.portal-shell .portal-menu-list a:is(:hover,:focus){background:var(--tint);color:var(--accent-ink);text-decoration:none}.portal-shell .portal-menu-list a:focus-visible{outline-offset:-3px}.portal-status{display:inline-flex;align-items:center;gap:6px;align-self:flex-start;padding:4px 12px;border-radius:999px;max-width:100%;font-size:14px;font-weight:600;line-height:1.5;white-space:normal;background:#eef2f5;color:#45535f}.portal-status:before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor;flex:0 0 7px}.portal-status-scheduled{background:#e5f2fc;color:#11609a}.portal-status-conducted{background:#e4f5ec;color:#25704f}.portal-status-absent{background:#fdf0e8;color:#9a5427}.portal-toolbar{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px;margin:0 0 20px}.portal-toolbar>.ui-select-field{min-width:220px}.portal-week-controls{display:flex;gap:8px;align-items:center;margin-right:auto}.portal-week-controls button{min-width:48px}.portal-field{display:flex;flex-direction:column;align-items:stretch;gap:8px;min-width:0;max-width:100%;font-size:15px;color:var(--ink-2)}.portal-field>span{font-weight:600}.portal-field>small{color:var(--muted);font-size:14px}.portal-field :is(input,select,textarea){width:100%;min-width:0;max-width:100%;min-height:48px;padding:11px 14px;border:1px solid #c6d2dd;border-radius:10px;background:#fff;color:var(--ink);font-size:16px;box-shadow:inset 0 1px 1px #15202b08}.portal-field :is(input,select,textarea):hover{border-color:#9fbfd7}.portal-field :is(input,select,textarea):focus-visible{border-color:var(--accent);outline:3px solid #4fb0ea66;outline-offset:0}.portal-field textarea{resize:vertical;line-height:1.6}.portal-search{max-width:480px;margin-bottom:24px}.portal-shell .portal-range{font-size:20px;margin:0 0 14px}.portal-form{max-width:820px}.portal-form fieldset{border:0;margin:0;padding:0;min-width:0;display:flex;flex-direction:column;gap:20px}.portal-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.portal-form button[type=submit]{align-self:flex-start;margin-top:4px}.portal-form :is(.portal-error,.portal-success){margin-top:16px}.portal-error{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:16px 0;padding:14px 18px;border:1px solid #efc6ca;border-left:4px solid #c8414f;background:#fff5f5;color:#8f2633;border-radius:10px;font-size:16px}.portal-error>span{flex:1;min-width:160px}.portal-error button{min-height:40px;font-size:14px}.portal-success{padding:12px 16px;border:1px solid #cfe9db;border-left:4px solid var(--mint);background:#effaf4;color:#1f6146;border-radius:10px;font-size:16px}.portal-calendar-wrap{max-width:100%;overflow-x:auto;margin-bottom:20px;border:1px solid var(--line);border-radius:var(--radius);background:#fff;box-shadow:0 1px 2px #15202b0a}.portal-calendar{display:grid;grid-template-columns:repeat(7,minmax(150px,1fr));min-width:1050px;align-items:stretch}.portal-day{min-width:0;min-height:300px;border-right:1px solid var(--line-soft);padding:0 10px 12px}.portal-day:last-child{border-right:0}.portal-day>header{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin:0 -10px 12px;padding:14px 14px 12px;border-bottom:1px solid var(--line-soft);color:var(--muted);font-size:15px}.portal-day>header strong{font-weight:650;color:var(--ink-2);font-size:16px}.portal-day .portal-muted{font-size:14px;color:var(--faint);padding:0 4px}.portal-day-today{background:#f6fbfe}.portal-day-today>header{background:var(--tint);color:var(--accent-ink);box-shadow:inset 0 3px #2fa2dd}.portal-day-today>header strong{color:var(--accent-ink)}.portal-calendar-lesson{display:flex;flex-direction:column;gap:6px;margin-bottom:10px;padding:12px;border:1px solid var(--tint-line);border-left:4px solid #2FA2DD;border-radius:10px;background:#f3f9fe;font-size:15px;line-height:1.4}.portal-calendar-lesson>strong{color:var(--ink);font-size:15px;font-variant-numeric:tabular-nums}.portal-calendar-lesson>span{font-weight:600}.portal-calendar-lesson .portal-status{font-size:13px;padding:2px 10px}.portal-table-wrap{max-width:100%;overflow-x:auto}.portal-table{width:100%;border-collapse:collapse;text-align:left;font-size:16px}.portal-table th{padding:12px 16px;border-bottom:1px solid var(--line);color:var(--muted);font-size:14px;font-weight:600}.portal-table td{padding:16px;border-bottom:1px solid var(--line-soft);color:var(--ink-2);overflow-wrap:anywhere}.portal-table tr:last-child td{border-bottom:0}.portal-table tbody tr:hover{background:#f8fbfd}.portal-table td:first-child{width:24%;font-weight:600}.portal-table td small{display:block;margin-top:2px;color:var(--muted);font-size:14px;font-weight:400}.portal-filters{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px 16px;margin:0 0 24px}.portal-filters .portal-search{flex:1 1 300px;margin:0}.portal-filters>.ui-select-field{flex:0 1 240px;min-width:200px}.portal-students td{vertical-align:top}.portal-cell-main{display:block;white-space:nowrap}.portal-homework{font-weight:600;color:var(--ink)}.portal-table td small.portal-mark{font-weight:600}.portal-table td small.portal-mark-conducted{color:#25704f}.portal-table td small.portal-mark-absent{color:#9a5427}.portal-record-list{list-style:none;margin:0;padding:0}.portal-record-list>li{border-top:1px solid var(--line-soft);padding:20px 0}.portal-record-list .portal-section-heading{margin-bottom:6px}.portal-record-list .portal-plain{color:var(--ink-2);font-size:16px}.portal-plain{white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;line-height:1.65}.portal-shell .portal-back{display:inline-flex;align-items:center;min-height:44px;margin:0 0 12px;font-size:16px;font-weight:600}.portal-student-summary{display:flex;align-items:center;gap:22px}.portal-student-summary h1{font-size:28px}.portal-student-summary p{margin:4px 0;color:var(--muted);font-size:17px}.portal-avatar{display:grid;place-items:center;flex:0 0 72px;width:72px;height:72px;border-radius:20px;background:var(--tint);border:1px solid var(--tint-line);color:var(--accent-ink);font-size:30px;font-weight:700}.portal-profile-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 32px;margin:0}.portal-profile-details dt{margin-bottom:6px;color:var(--muted);font-size:14px;font-weight:600}.portal-profile-details dd{margin:0;color:var(--ink);font-size:16px}.invite-fresh{margin:0 0 14px;padding:18px;border:1px solid #bfe3cf;border-radius:12px;background:#f1faf5}.invite-once{font-size:16px;color:#1f4a3a}.invite-code-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.invite-code{max-width:100%;padding:10px 14px;border:1px solid #c6d2dd;border-radius:10px;background:#fff;color:var(--ink);font:600 20px/1.3 ui-monospace,Cascadia Mono,Consolas,monospace;letter-spacing:.06em;-webkit-user-select:all;user-select:all;overflow-wrap:anywhere}.invite-code:focus-visible{outline:3px solid var(--focus);outline-offset:2px}.invite-fresh :is(.portal-success,.portal-error){margin:12px 0 0}.invite-panel>.portal-error{margin-top:12px}@media(max-width:1180px){.portal-dash{grid-template-columns:1fr}.portal-dash-side{position:static;order:-1}.portal-summary{padding:16px 20px}.portal-summary h2{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.portal-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.portal-stat{border-top:0;padding:4px 0;flex-direction:column;align-items:flex-start;gap:2px}.portal-stat dt{font-size:14px;gap:8px}.portal-dash-side .portal-card{margin-bottom:20px}.portal-start{grid-template-columns:1fr}}@media(max-width:1100px){.portal-rail{width:236px;flex-basis:236px}.portal-rail-inner{padding:24px 14px}.portal-shell .portal-nav a[aria-current=page]:before{left:-14px}.portal-main{padding:24px 28px 48px}}@media(max-width:760px){.portal-shell{display:block}.portal-rail{position:static;width:100%;border-right:0;border-bottom:1px solid var(--line)}.portal-rail-inner{position:static;max-height:none;overflow:visible;padding:12px 14px 8px;gap:10px}.portal-wordmark{width:120px}.portal-nav{flex-direction:row;flex-wrap:nowrap;gap:4px;overflow-x:auto;max-width:100%;padding-bottom:6px}.portal-shell .portal-nav a{flex:0 0 auto;gap:8px;min-height:44px;padding:8px 12px;font-size:16px;white-space:nowrap}.portal-shell .portal-nav a[aria-current=page]:before{display:none}.portal-main{padding:14px 14px 32px}.portal-shell .portal-page-heading{margin:4px 0 8px}.portal-shell h1{font-size:25px}.portal-shell h2{font-size:19px}.portal-lede{font-size:16px;margin-bottom:16px}.portal-card{padding:18px 16px;margin-bottom:16px}.portal-shell .portal-profile{width:44px;height:44px}.portal-shell .portal-signout{min-height:44px;padding:6px 12px}.portal-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.portal-start{padding:20px 16px;gap:22px}.portal-start-lead h2{font-size:22px}.portal-shell .portal-cta{width:100%;justify-content:center}.portal-lesson-list>li{grid-template-columns:80px minmax(0,1fr);gap:10px 14px}.portal-lesson-time{padding:6px 10px}.portal-lesson-time time{font-size:20px}.portal-lesson-person>strong{font-size:17px}.portal-lesson-side{grid-column:1/-1;justify-content:flex-start}.portal-lesson-side .portal-menu{margin-left:auto}.portal-filters>.ui-select-field{flex:1 1 180px;min-width:0}.portal-students,.portal-students tbody{display:block}.portal-students thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.portal-students tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px;padding:14px 0;border-bottom:1px solid var(--line-soft)}.portal-students tbody tr:last-child{border-bottom:0}.portal-shell .portal-students td{display:block;width:auto;padding:0;border:0;font-size:15px}.portal-students td:first-child{grid-column:1/-1;font-size:16px}.portal-students td:not(:first-child):before{content:attr(data-label);display:block;margin-bottom:2px;color:var(--muted);font-size:14px;font-weight:600}.portal-cell-main{white-space:normal}.portal-form-grid,.portal-profile-details{grid-template-columns:1fr}.portal-toolbar{gap:10px}.portal-toolbar>.portal-field{flex:1 1 140px}.portal-toolbar>.ui-select-field{min-width:0;flex:1 1 180px}.portal-week-controls{width:100%}.portal-table th,.portal-table td{padding:12px 8px;font-size:15px}.portal-student-summary{gap:14px}.portal-avatar{flex-basis:52px;width:52px;height:52px;border-radius:15px;font-size:22px}.portal-error{padding:12px 14px}.portal-error>span{min-width:0;flex-basis:100%}.invite-code{font-size:17px}}.auth-page{--ink:#15202b;--ink-2:#34424f;--muted:#566370;--line:#d6e0e8;--accent:#1570b0;--accent-hover:#0f5d94;--focus:#4fb0ea;min-height:100dvh;display:flex;align-items:center;justify-content:center;padding:clamp(24px,7vh,80px) 24px;background:#f2f5f8;color:var(--ink);font:16px/1.55 Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.auth-page *{box-sizing:border-box}.auth-page button{font:inherit;cursor:pointer}.auth-page :is(button,input):focus-visible{outline:3px solid var(--focus);outline-offset:2px}.auth-panel{display:grid;grid-template-columns:300px minmax(0,1fr);width:min(880px,100%);min-height:500px;background:#fff;border:1px solid #dbe4ec;border-radius:22px;overflow:hidden;box-shadow:0 2px 4px #15202b0a,0 24px 60px #15202b14}.auth-aside{position:relative;display:flex;flex-direction:column;gap:18px;padding:44px 36px;background:#eef7fd;border-right:1px solid #e1eaf1}.auth-wordmark{display:block;width:196px;max-width:100%;height:auto}.auth-aside-note{margin:0;color:var(--ink-2);font-size:16px;line-height:1.6}.auth-mark{display:block;width:88px;height:auto;margin-top:auto}.auth-content{display:flex;flex-direction:column;justify-content:center;padding:48px 56px;min-width:0}.auth-page h1{margin:0;font-size:34px;line-height:1.2;font-weight:700;letter-spacing:-.6px}.auth-lead{margin:10px 0 28px;color:var(--muted);font-size:17px}.auth-roles{display:flex;flex-direction:column;gap:14px}.auth-role{display:flex;align-items:center;gap:18px;width:100%;min-height:96px;padding:18px 20px;border:1px solid var(--line);border-radius:16px;background:#fff;color:var(--ink);text-align:left;transition:border-color .12s,background-color .12s,box-shadow .12s}.auth-role:hover{border-color:#7fc0ea;background:#f5fbff;box-shadow:0 4px 14px #1570b014}.auth-role-glyph{display:grid;place-items:center;flex:0 0 56px;height:56px;border-radius:14px;background:#e6f3fc;color:var(--accent)}.auth-role-glyph-pupil{background:#e5f6ee;color:#238a5f}.auth-role-text{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}.auth-role strong{font-size:21px;font-weight:700;line-height:1.25}.auth-role-text>span{font-size:16px;color:var(--muted)}.auth-role-go{color:#8a98a5;transform:rotate(-90deg);transition:transform .12s,color .12s}.auth-role:hover .auth-role-go{color:var(--accent);transform:rotate(-90deg) translateY(2px)}.auth-back{display:inline-flex;align-items:center;gap:8px;align-self:flex-start;margin:0 0 16px -10px;padding:8px 12px 8px 8px;min-height:44px;border:0;border-radius:10px;background:transparent;color:var(--accent);font-weight:600;font-size:16px}.auth-back:hover{background:#eaf5fc}.auth-back:disabled{opacity:.5;cursor:default}.auth-content>section{display:flex;flex-direction:column}.auth-form fieldset{border:0;margin:0;padding:0;min-width:0;display:flex;flex-direction:column;gap:18px}.auth-field{display:flex;flex-direction:column;gap:8px;min-width:0;font-size:15px;font-weight:600;color:var(--ink-2)}.auth-field input{width:100%;min-width:0;min-height:52px;padding:12px 14px;border:1px solid #c3d0db;border-radius:12px;background:#fff;color:var(--ink);font:inherit;font-size:17px;font-weight:400;box-shadow:inset 0 1px 1px #15202b08}.auth-field input:hover{border-color:#9fbfd7}.auth-field input[aria-invalid=true]{border-color:#c2414f}.auth-secret{display:flex;gap:8px;min-width:0}.auth-secret input{flex:1 1 auto}.auth-reveal{flex:0 0 auto;min-height:52px;padding:0 16px;border:1px solid #c3d0db;border-radius:12px;background:#fff;color:var(--accent);font-size:15px;font-weight:600}.auth-reveal:hover{background:#eaf5fc}.auth-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.auth-error{margin:0;padding:12px 14px;border:1px solid #efc6ca;border-left:4px solid #c8414f;border-radius:10px;background:#fff5f5;color:#8f2633;font-size:15px}.auth-submit{min-height:52px;border:1px solid var(--accent);border-radius:12px;background:var(--accent);color:#fff;font-weight:650;font-size:17px;box-shadow:0 2px 6px #0f5d9433}.auth-submit:hover:not(:disabled){background:var(--accent-hover)}.auth-submit:disabled{opacity:.5;cursor:default;box-shadow:none}.auth-panel.auth-fallback{display:flex;flex-direction:column;align-items:flex-start;gap:14px;width:min(640px,100%);min-height:0;padding:44px 48px}.auth-fallback .auth-wordmark{margin-bottom:10px}.auth-fallback p{margin:0;color:var(--muted)}.auth-fallback [role=alert]{color:#8f2633;overflow-wrap:anywhere}.auth-fallback button{min-height:48px;padding:0 20px;border:1px solid var(--accent);border-radius:12px;background:var(--accent);color:#fff;font-weight:650}@media(max-width:760px){.auth-page{align-items:flex-start;padding:16px 12px 24px}.auth-panel{grid-template-columns:minmax(0,1fr);min-height:0;border-radius:18px}.auth-aside{flex-direction:row;align-items:center;justify-content:space-between;padding:20px 20px 18px;border-right:0;border-bottom:1px solid #e1eaf1}.auth-wordmark{width:150px}.auth-aside-note{display:none}.auth-mark{width:44px;margin:0}.auth-content{padding:24px 20px 28px}.auth-panel.auth-fallback{padding:24px 20px}.auth-page h1{font-size:28px}.auth-lead{font-size:16px;margin-bottom:20px}.auth-role{min-height:84px;padding:14px 16px;gap:14px}.auth-role-glyph{flex-basis:48px;height:48px}.auth-role strong{font-size:19px}}*{box-sizing:border-box}body{margin:0;background:#f4f7fa;color:#1c2733;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}button,a{font:inherit}button,.button-link{border:1px solid #d9e1e8;background:#fff;border-radius:8px;padding:6px 11px;font-size:12px;font-weight:550;color:#2f3b47;cursor:pointer;text-decoration:none;white-space:nowrap}button:hover,.button-link:hover{background:#eef6fc;border-color:#a9cfe8}button:disabled{opacity:.4;cursor:default}button[aria-pressed=true]{background:#e6f2fb;color:#136aa6;border-color:#a9cfe8}button:focus-visible,a:focus-visible{outline:3px solid #5bb4ea;outline-offset:2px}.primary{background:#1673b3;color:#fff;border-color:#1673b3}.primary:hover{background:#125f94}.site-boot{max-width:600px;margin:15vh auto;padding:24px}.school-app{--ink:#15202b;--ink-2:#34424f;--muted:#566370;--line:#dce4eb;--line-soft:#e9eef3;--tint:#e8f3fc;--tint-line:#c9e2f4;--accent-ink:#0f5f97;--focus:#4fb0ea;display:flex;flex-direction:column;height:100dvh;overflow:hidden;padding:6px 10px 2px;gap:6px;min-width:0;color:var(--ink)}.board-bar{display:flex;align-items:center;gap:10px;min-height:40px;flex:0 0 auto;min-width:0}.board-home{display:inline-flex;align-items:center;gap:5px;min-height:36px;padding:0 10px 0 7px;border-radius:9px;color:var(--accent-ink);font-size:14px;font-weight:600;text-decoration:none;flex:0 0 auto}.board-home:hover{background:var(--tint)}.board-title{font-size:15px;line-height:1.25;margin:0;letter-spacing:-.2px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;flex:0 1 auto}.board-bar-spacer{flex:1}.board-avatar{flex:0 0 auto;display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:var(--tint);border:1px solid var(--tint-line);color:var(--accent-ink);font-weight:700;font-size:14px;text-decoration:none}.board-avatar:hover{background:#d9ecf8;border-color:#9fcbe9}.connection{display:flex;gap:6px;align-items:center;flex:0 0 auto;padding-left:10px;border-left:1px solid var(--line);color:var(--muted);font-size:13px;line-height:1.3;white-space:nowrap}.connection i{width:8px;height:8px;border-radius:50%;background:#d8b566;flex:0 0 8px}.connection i.online{background:#2fa877}.connection-sep{color:#8d99a5}.connection[data-tone=pending] .save-status{color:var(--ink-2)}.connection[data-tone=error] .save-status{color:#b3261e;font-weight:650}.connection[data-tone=conflict] .save-status{color:#8a5300;font-weight:650}.board-band{position:relative;z-index:20;gap:12px;min-height:48px;padding:5px 6px 5px 4px;background:#fff;border:1px solid var(--line);border-radius:12px}.band-lead{display:flex;align-items:center;gap:8px;flex:0 1 auto;min-width:0}.band-scroll{display:flex;align-items:center;gap:12px;flex:1 1 0;min-width:0}.band-tools{display:flex;justify-content:flex-start;justify-content:safe center;flex:1 1 0;min-width:0;overflow-x:auto;overflow-y:hidden;scroll-padding-inline:32px;scrollbar-width:none;overscroll-behavior-x:contain}.band-tools::-webkit-scrollbar{display:none}.band-actions,.band-end{display:flex;align-items:center;gap:6px;flex:0 0 auto}.band-actions>:is(button,.button-link),.file-menu-trigger{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:36px;padding:0 12px;border-radius:9px;border-color:#cbd6e0;font-size:14px;font-weight:600;color:var(--ink-2)}.band-actions>:is(button:not(:disabled),.button-link):hover,.file-menu-trigger:hover{background:#f1f8fd;border-color:#9fcbe9}.school-app .board-frame .excalidraw .ToolIcon__lock{display:none!important}.school-app .board-frame .school-lock-host{display:contents}.school-app .board-frame .excalidraw .school-pupil-lock{flex:0 0 auto}.school-app .board-frame .excalidraw .school-pupil-lock[aria-pressed=true] .ToolIcon__icon{background:#fdf3e1;color:#7a4a00;box-shadow:inset 0 0 0 1px #ecd3a4}.band-actions>.band-retry{background:#fff1f0;border-color:#efc2bd;color:#a12a22}.band-actions>.band-retry:hover{background:#ffe5e2;border-color:#e3a39c}.paper-color{flex:0 0 auto;width:36px;height:36px;padding:3px;border:1px solid #cbd6e0;border-radius:9px;background:#fff;cursor:pointer}.paper-color:disabled{opacity:.4;cursor:default}.file-menu{position:relative;flex:0 0 auto}.file-menu-trigger .ui-icon{color:var(--muted);transition:transform .15s}.file-menu-trigger[aria-expanded=true]{background:var(--tint);border-color:var(--tint-line);color:var(--accent-ink)}.file-menu-trigger[aria-expanded=true] .ui-icon{transform:rotate(180deg)}.file-menu-list{position:absolute;top:calc(100% + 8px);right:0;z-index:30;min-width:224px;padding:6px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 32px #15202b29,0 2px 6px #15202b14}.file-menu-group{margin-top:6px;padding-top:6px;border-top:1px solid var(--line-soft)}.file-menu-list [role=menuitem]{display:flex;align-items:center;width:100%;min-height:38px;padding:0 12px;border:0;border-radius:8px;background:transparent;color:var(--ink);font-size:14px;font-weight:500;text-align:left}.file-menu-list [role=menuitem]:not(:disabled):is(:hover,:focus){background:var(--tint);color:var(--accent-ink)}.file-menu-list [role=menuitem]:focus-visible{outline:2px solid var(--focus);outline-offset:-2px}.school-properties{flex:0 0 auto;display:flex;flex-wrap:nowrap;align-items:center;min-height:36px}.school-properties>[role=group]{display:flex;align-items:center;gap:2px;flex:0 0 auto;padding:0 10px;border-left:1px solid var(--line-soft);transition:opacity .12s}.school-properties>[role=group]:first-of-type{padding-left:0;border-left:0}.school-properties>[role=group]:last-of-type{padding-right:0}@media(hover:hover){.school-properties>[data-cut]:not(:focus-within){opacity:0;pointer-events:none}}.school-properties-edge{position:sticky;z-index:1;flex:0 0 0;width:0;align-self:stretch}.school-properties-edge.before{left:0}.school-properties-edge.after{right:0}.school-properties-edge>span{position:absolute;top:0;bottom:0;width:32px;display:grid;place-items:center;color:var(--muted);cursor:pointer;opacity:0;pointer-events:none;transition:opacity .12s}.school-properties-edge.before>span{left:0;justify-items:start;background:linear-gradient(90deg,#fff 55%,#fff0)}.school-properties-edge.after>span{right:0;justify-items:end;background:linear-gradient(270deg,#fff 55%,#fff0)}.school-properties[data-before] .before>span,.school-properties[data-after] .after>span{opacity:1;pointer-events:auto}.school-properties-edge .ui-icon{box-sizing:content-box;padding:3px;border-radius:7px}.school-properties-edge.before .ui-icon{transform:rotate(90deg)}.school-properties-edge.after .ui-icon{transform:rotate(-90deg)}.school-properties-edge>span:hover .ui-icon{background:var(--tint);color:var(--accent-ink)}.school-properties-label{font-size:12px;color:var(--muted);margin-right:4px;white-space:nowrap}.school-properties button{display:inline-flex;align-items:center;justify-content:center;gap:4px;min-width:34px;min-height:36px;padding:0 8px;border-radius:8px;border-color:transparent;background:transparent;color:var(--ink-2);font-size:13px;font-weight:600;font-variant-numeric:tabular-nums}.school-properties button:not(:disabled):hover{background:#f1f8fd;border-color:var(--tint-line)}.school-properties button[aria-pressed=true]{background:var(--tint);border-color:#9fcbe9;color:var(--accent-ink)}.school-properties button:focus-visible{outline-offset:-3px}.school-properties kbd{font:inherit;font-size:11px;line-height:16px;color:var(--muted);padding:0 4px;border:1px solid var(--line);border-radius:4px}.school-properties button[aria-pressed=true] kbd{color:var(--accent-ink);border-color:var(--tint-line)}.school-properties[aria-disabled=true]{opacity:.65}@property --fade-start{syntax:"<length>";inherits:false;initial-value:0px}@property --fade-end{syntax:"<length>";inherits:false;initial-value:0px}@keyframes band-fade{0%{--fade-start:0px;--fade-end:28px}12%{--fade-start:28px}88%{--fade-end:28px}to{--fade-start:28px;--fade-end:0px}}.board-stage{position:relative;flex:1 1 auto;min-height:0;display:flex}.board-frame{flex:1;min-height:0;min-width:0;border:1px solid var(--line);border-radius:12px;overflow:hidden;position:relative;background:#fff}.board-frame>.excalidraw{background:transparent!important}.paper-surface{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.board-footer{flex:0 0 auto;display:flex;align-items:center;gap:6px;min-height:16px;padding:0 6px;font-size:11px;line-height:16px;color:var(--muted);white-space:nowrap;overflow:hidden}.board-footer strong{color:var(--ink-2);font-weight:650}.notice{flex:0 0 auto;display:flex;align-items:center;gap:10px;border:1px solid #e4d9bc;border-radius:10px;padding:6px 12px;background:#fffaeb;font-size:13px}.notice p{margin:3px 0 0;color:#7a6845}.notice.error{background:#fff1f0;border-color:#f0d2d0;color:#a14e49}.notice button{margin-left:auto}.notice.locked{background:#eef6fc;border-color:#cfe4f3;color:#1e4e73}.boot-panel{margin:auto;display:flex;flex-direction:column;align-items:center;gap:14px;font-size:14px;color:#5f6c79}.boot-panel p{max-width:70ch;overflow-wrap:anywhere}.spinner{width:24px;height:24px;border:2px solid #dbe8f2;border-top-color:#239de3;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(1turn)}}@media(max-width:1180px){.board-band{flex-wrap:wrap;row-gap:4px}.band-scroll{display:contents}.band-lead{order:1}.band-actions{order:2;margin-left:auto}.band-end{order:3}.band-tools{order:4;flex:1 1 100%;justify-content:flex-start}}@media(max-width:900px){.band-lead{flex:1 1 0}.band-scroll{display:flex;order:3;flex:1 1 100%;gap:10px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;overscroll-behavior-x:contain}.band-scroll::-webkit-scrollbar{display:none}.band-actions{order:-1;margin-left:0}.band-end{order:2}.band-tools{order:0;flex:0 0 auto;overflow:visible}.school-properties-edge{display:none}@supports (animation-timeline:scroll()){.band-scroll{-webkit-mask-image:linear-gradient(90deg,#0000,#000 var(--fade-start),#000 calc(100% - var(--fade-end)),#0000);mask-image:linear-gradient(90deg,#0000,#000 var(--fade-start),#000 calc(100% - var(--fade-end)),#0000);animation:band-fade linear both;animation-timeline:scroll(self inline)}}}@media(max-width:650px){.school-app{padding:4px 6px 2px;gap:4px}.board-band{column-gap:6px;padding:4px;border-radius:10px}.board-home{width:44px;min-height:44px;padding:0;justify-content:center}.board-home span,.connection-text,.connection-sep{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.board-title{font-size:14px}.connection{padding-left:8px}.band-actions>:is(button,.button-link),.file-menu-trigger,.school-properties button{min-height:44px}.school-properties button{min-width:40px}.paper-color,.board-avatar{width:44px;height:44px}.board-frame{border-radius:8px}.notice{flex-wrap:wrap}}
