:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#243d3b;background:#f6f8f7;font-size:14px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;border:1px solid #d7e1df;background:white;color:#284944;border-radius:9px;padding:10px 14px;transition:background .15s}button:hover{background:#edf4f1}button:disabled{opacity:.5;cursor:default}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #76bcb0;outline-offset:2px}.primary{background:#227566;color:white;border-color:#227566;font-weight:650}.primary:hover{background:#195e52}.quiet{border:0;background:transparent;padding:8px}header{height:86px;background:#fff;border-bottom:1px solid #dfe7e4;display:flex;align-items:center;justify-content:space-between;padding:0 38px}.brand,.account{display:flex;align-items:center;gap:13px}.brand-icon{display:inline-grid;place-items:center;background:#e0eee7;color:#246a59;width:43px;height:43px;border-radius:14px;font-size:25px;font-weight:700}.brand strong{font-size:22px}.brand small{display:block;color:#7c8e89;font-size:12px;margin-top:3px}.account{font-size:13px}main{max-width:1600px;margin:auto;padding:32px 38px}.page-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:27px}.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.8px;color:#788d86;margin:0 0 10px}h1{font-size:32px;letter-spacing:-1px;margin:0 0 8px;font-weight:650}h2{font-size:19px;margin:0}.muted{color:#788a85}.page-title p{margin-bottom:0}.toolbar,.week-nav,.tools,.filters,.legend{display:flex;align-items:center;gap:10px}.toolbar{justify-content:space-between;margin-bottom:20px}.week-nav h2{min-width:226px;text-align:center;font-size:18px}.week-nav>button:first-child,.week-nav>button:nth-child(3){padding:8px 12px}.filters{border-top:1px solid #e0e7e4;padding-top:18px;gap:20px}.filters label{display:flex;align-items:center;gap:10px;font-size:12px;color:#758880}.filters select{min-width:160px}.sync{margin-left:auto;font-size:12px;color:#4d8876}.legend{padding:17px 0;flex-wrap:wrap;gap:8px}.legend .muted{margin-left:auto;font-size:12px}.pill{display:inline-block;font-size:10px;font-weight:650;line-height:1.4;padding:3px 7px;border-radius:5px;white-space:nowrap}.planned{background:#e5f2e9;color:#367451}.cancelled{background:#fae5e4;color:#ac4149}.moved{background:#fff0d3;color:#966815}.replaced{background:#e3edff;color:#476faf}.supervision{background:#eee6fa;color:#7d55aa}.board-wrap{overflow:auto;border:1px solid #dce5e1;border-radius:14px;background:#fff}.board{display:grid;grid-template-columns:94px repeat(5,minmax(155px,1fr));min-width:980px}.head-cell{padding:17px 12px;background:#f0f5f2;border-right:1px solid #e0e7e3;display:flex;align-items:center;gap:9px;font-size:13px;font-weight:650;position:sticky;top:0;z-index:1}.avatar{border-radius:50%;height:27px;width:27px;display:grid;place-items:center;background:#dceae2;color:#48826c;font-size:11px;flex-shrink:0}.date-cell{padding:18px 10px;background:#fafcfb;border-top:1px solid #e4eae7;font-size:12px;color:#7b8e85}.date-cell strong{display:block;font-size:23px;font-weight:600;color:#435e53;margin-top:7px}.date-cell.today{background:#e7f2ed;color:#227566}.cell{border-top:1px solid #e4eae7;border-left:1px solid #e4eae7;min-height:145px;padding:8px;display:flex;flex-direction:column;gap:7px}.lesson{padding:9px 10px;text-align:left;border-radius:8px;border:1px solid #dce8df;border-left:3px solid #79ab8a;background:#f7fbf8;width:100%;color:#304a3c}.lesson:hover{filter:brightness(.98)}.lesson.cancelled{border-color:#f0d9d8;border-left-color:#d78b8f;background:#fff6f5}.lesson.moved{border-color:#ecdfbe;border-left-color:#d7ac50;background:#fffbf1}.lesson.replaced{border-color:#d7e3f4;border-left-color:#86a8da;background:#f5f8ff}.lesson.supervision{border-color:#e4d8f1;border-left-color:#ac8bca;background:#faf7ff}.card-time{font-size:12px;font-weight:750;display:block;margin-bottom:7px}.card-name{font-weight:650;display:block;margin:7px 0 3px}.card-meta{font-size:11px;color:#75847c;display:block;line-height:1.5}.card-note{font-size:11px;display:block;line-height:1.4;margin-top:7px;color:#70684e;overflow-wrap:anywhere}.empty{border:1px dashed transparent;color:#bdccc4;background:transparent;padding:13px 0;font-size:17px;flex:1;min-height:58px}.empty:hover{border-color:#d6e1db;background:#f7faf8}.footnote{font-size:11px;color:#89988f;margin:16px 0}label{display:block;font-size:12px;font-weight:550;color:#60796f}input,select,textarea{display:block;width:100%;border:1px solid #d5dfd9;border-radius:8px;background:white;padding:10px;color:#2c4539;margin-top:6px}textarea{resize:vertical}.filters select{margin:0;width:auto}.small{font-size:12px;line-height:1.65}dialog{width:min(620px,94vw);padding:27px;border:1px solid #d9e4dd;border-radius:16px;box-shadow:0 24px 100px #18392b25;max-height:90vh;overflow:auto}dialog::backdrop{background:#18392b60;backdrop-filter:blur(3px)}.wide{width:min(900px,95vw)}.dialog-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px;gap:20px}.close{border:0;font-size:25px;padding:0 8px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.full{grid-column:1/-1}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.error,#login-error{color:#b34650;font-size:13px;min-height:16px}.notice{padding:12px;background:#f4efdc;color:#8a731e;border-radius:8px}.audit-entry{border-top:1px solid #e0e8e1;padding:18px 0}.audit-entry time{font-size:12px;color:#7c8a81;display:block;margin-bottom:7px}.audit-entry pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#f5f7f5;padding:12px;border-radius:8px;font:12px/1.7 inherit}.login-screen{min-height:100vh;display:grid;place-items:center;background:radial-gradient(ellipse at 20% 15%,#e0eee5,transparent 60%),#f6f8f7}.login-card{width:min(410px,90vw);padding:34px;background:white;border:1px solid #dce6df;border-radius:20px;box-shadow:0 20px 80px #2844340a}.login-card .brand-icon{margin-bottom:25px}.login-card label{margin-top:20px}.login-card .primary{width:100%;margin-top:24px}.login-card h1{font-size:35px;line-height:1.15}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#224f40;color:#fff;padding:14px 22px;border-radius:10px;z-index:20;max-width:90vw}#password-form label{margin:15px 0}[hidden]{display:none!important}@media(min-width:1250px){.board{grid-template-columns:94px repeat(5,minmax(180px,1fr))}}@media(max-width:800px){header{padding:16px;height:auto;gap:12px;flex-wrap:wrap}main{padding:24px 16px}.page-title{align-items:flex-start;gap:14px}h1{font-size:26px}.toolbar{align-items:flex-start;flex-direction:column}.tools{flex-wrap:wrap}.week-nav{gap:5px;flex-wrap:wrap}.week-nav h2{min-width:185px;font-size:16px}.filters{flex-wrap:wrap;gap:12px}.sync{margin:0}.filters label{flex-wrap:wrap}.form-grid{gap:12px}.brand small{display:none}.account{gap:4px}.page-title .primary{font-size:12px;padding:11px}.legend .muted{margin-left:0;width:100%}}
.privacy-hint{font-size:12px;color:#758880}.lesson.availability{min-height:70px}.lesson.availability.busy{background:#e8edf4;border-color:#d4deea;border-left-color:#8099b8;color:#3a5472}.lesson.availability.free{background:#edf7ef;border-color:#d9e9dc;border-left-color:#82b48e;color:#3c7950}.lesson.availability.unknown,.lesson.needs_cancel,.lesson.needs_move,.lesson.clarify{background:#fff8e9;border-color:#eadbb9;border-left-color:#d3a54a}.lesson.availability.no_data{background:#f2f4f5;border-color:#e1e5e8;border-left-color:#b6c1c8;color:#7d8b95}.pill.needs_cancel,.pill.needs_move,.pill.clarify{background:#fff0d3;color:#966815}.pill.missed,.lesson.missed{background:#edf0f2;color:#7d8993}.manage-busy{font-size:11px;padding:8px;border-style:dashed;background:transparent}.card-warning{font-size:10px;color:#a2752f;display:block;margin-top:7px;line-height:1.5}.busy-entry{display:flex;justify-content:space-between;align-items:center;width:100%;margin-bottom:10px;padding:15px}.busy-entry span{font-size:12px;color:#72827a}#busy-add{margin-top:15px}.head-cell .avatar{display:none}.board-wrap{max-height:72vh}.head-cell{z-index:2}.cell{min-height:165px}
@media(max-width:800px){.board{min-width:560px;grid-template-columns:44px repeat(5,minmax(0,1fr))}.head-cell{padding:14px 6px;font-size:12px;overflow-wrap:anywhere}.date-cell{padding:15px 5px}.cell{padding:5px;gap:6px}.lesson{padding:8px 6px;overflow-wrap:anywhere}.card-time{font-size:11px}.card-name{font-size:12px}.pill{white-space:normal;font-size:9px;padding:3px 4px}.lesson.availability{min-height:70px}.manage-busy{padding:7px 4px;font-size:10px}}
/* Compact workspace: the schedule gets the available screen height. */
#workspace{height:100dvh;display:flex;flex-direction:column}header{height:48px;min-height:48px;padding:6px 20px;gap:12px}.brand-icon{width:30px;height:30px;font-size:19px;border-radius:9px}.brand strong{font-size:18px}.brand small{display:none}.account{gap:8px}main{width:100%;max-width:1800px;flex:1;min-height:0;display:flex;flex-direction:column;padding:12px 20px 8px}.toolbar{gap:10px;margin-bottom:8px;flex-wrap:wrap}.tools,.week-nav{gap:6px}.toolbar button{padding:7px 10px}.week-nav h2{min-width:0;font-size:16px;white-space:nowrap}.filters{border:0;padding:0;gap:12px;flex-wrap:wrap}.filters select{padding:6px 9px;min-width:180px;font-size:12px}.filters label{gap:6px}.detail-toggle input{width:auto;margin:0}.privacy-hint{font-size:11px}.sync{font-size:11px}.legend-help{font-size:11px;color:#60796f;margin-top:6px}.legend-help summary{cursor:pointer;width:fit-content}.legend{padding:8px 0 0}.legend-help p{margin:5px 0}.result-count{font-size:11px;color:#60796f;margin:6px 0}.board-wrap{flex:1;min-height:0;max-height:none;border-radius:9px}.board{grid-template-columns:54px repeat(5,minmax(0,1fr));min-width:560px}.head-cell{font-size:12px;padding:10px 8px;white-space:nowrap;z-index:2}.cell{min-height:0;padding:5px;gap:4px}.date-cell{padding:12px 6px;position:sticky;left:0;z-index:1}.date-cell strong{font-size:20px;margin-top:3px}.head-cell:first-child{left:0;z-index:3}.lesson{padding:6px 7px;display:grid;grid-template-columns:1fr auto;align-items:start;gap:3px 5px;border-radius:6px}.card-time{font-size:11px;margin:0;white-space:nowrap}.card-name{font-size:12px;margin:0;line-height:1.3;grid-column:1/-1}.lesson .pill{font-size:9px;padding:1px 4px;white-space:normal;text-align:right}.card-meta,.card-note{display:none}.card-warning{grid-column:1/-1;margin:0;font-size:10px}.comment-flag{grid-column:1/-1;font-size:10px;color:#7c806c}.show-details .card-meta,.show-details .card-note{display:block;grid-column:1/-1;margin:0}.show-details .comment-flag{display:none}.show-details .lesson{padding:8px}.lesson.availability{min-height:0;grid-template-columns:1fr;padding:5px 7px;gap:2px}.lesson.availability .card-name{font-size:11px}.manage-busy{padding:4px;font-size:10px;margin-top:2px}.empty{padding:2px;min-height:22px;flex:0;font-size:14px}.empty-label{font-size:10px;color:#94a199;padding:5px;line-height:1.4}.footnote{font-size:10px;margin:6px 0 0}.pending{opacity:.35;pointer-events:none}.result-count{flex-shrink:0}
@media(max-width:1000px){.toolbar{gap:6px}.tools{gap:5px}.toolbar button{font-size:11px}.week-nav h2{font-size:14px}.lesson{grid-template-columns:1fr}.lesson .pill{justify-self:start;text-align:left}.privacy-hint{order:4;width:100%}.filters{gap:6px 10px}}
@media(max-width:800px){header{padding:6px 12px;flex-wrap:nowrap}.brand{gap:7px}.brand strong{font-size:16px}.account{font-size:11px;gap:3px}.quiet{font-size:11px;padding:5px}.toolbar{flex-direction:row;align-items:center}.week-nav{flex-wrap:nowrap}.tools{flex-wrap:wrap}main{padding:8px 12px 5px}.filters label{flex-wrap:nowrap}.filters select{min-width:150px}.sync{margin-left:auto}.head-cell{font-size:11px;padding:8px 5px}.card-time{font-size:10px}.lesson{padding:5px}.card-name{font-size:11px}.date-cell{font-size:11px}.footnote{display:none}}
.cancel-party{grid-column:1/-1;font-size:10px;font-weight:600;color:#a14b52}.day-notice{grid-column:2/-1;display:flex;gap:8px;align-items:center;padding:7px 10px;background:#fff8e9;border-top:1px solid #eadbb9;font-size:11px;color:#8a6d31}.filters #cancel-filter{min-width:100px}.privacy-hint{line-height:1.3}
.day-tasks{font-size:10px;padding:5px 7px;background:#f5f2ec;border:1px dashed #d8d2c7;color:#7c715f;border-radius:5px;text-align:left}
.lesson.missed{border-color:#e1e5e8;border-left-color:#b6c1c8}.show-details .card-note{line-height:1.4}
.board:not(.show-details) .lesson.planned .pill,.board:not(.show-details) .comment-flag{display:none}.board:not(.show-details) .has-note .card-name::after{content:' ✎';font-size:10px;color:#887951}.warning-details{display:none;grid-column:1/-1;font-size:10px;color:#a2752f}.show-details .warning-details{display:block}.show-details .card-warning{display:none}.lesson.planned{gap:2px}
.filters #specialist-filter{min-width:130px}.board.single-person{grid-template-columns:64px minmax(0,1fr);min-width:0}.board.single-person .cell{display:flex;flex-direction:column;align-items:stretch}.board.single-person .empty{min-height:35px}.board.single-person .lesson{min-width:0}.board.single-person .date-cell{padding:10px}.board.single-person .head-cell{font-size:13px}.board.single-person .card-time{font-size:12px}.board.single-person .card-name{font-size:13px}@media(max-width:800px){.filters #specialist-filter{min-width:125px}}
.board{grid-template-columns:54px repeat(var(--specialist-count,4),minmax(0,1fr))}.fifth-toggle{display:flex;align-items:center;gap:8px;margin:15px 0 22px}.fifth-toggle input{width:auto;margin:0}

.board-wrap:has(.board.single-person){max-width:420px;width:100%}.board.single-person .empty{min-height:22px}
/* Legend swatches share the actual card classes, including their border and fill. */
.legend-row{position:relative;display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:6px 0;flex-shrink:0;z-index:4}.legend-group,.legend-keys{display:flex;align-items:center;gap:3px}.legend-label{font-size:10px;color:#758880;margin-right:3px}.legend-key{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;padding:0;border:0;background:transparent;border-radius:4px;cursor:help;flex-shrink:0}.legend-key:hover{background:transparent}.legend-chip.lesson,.legend-chip.day-tasks{display:flex;align-items:center;justify-content:center;width:20px;height:20px;min-height:0;padding:0;margin:0;border-radius:4px;font-size:10px;font-weight:700;line-height:1;gap:0;flex-shrink:0}.lesson.needs_cancel,.lesson.needs_move{border-style:dashed}.legend-tooltip{display:none;position:absolute;left:0;top:calc(100% + 4px);width:min(390px,calc(100vw - 32px));padding:9px 12px;border:1px solid #d7e1df;border-radius:7px;background:#fff;box-shadow:0 4px 18px #243d3b20;color:#304a3c;font-size:12px;line-height:1.5;text-align:left;font-weight:400;white-space:normal;z-index:12;pointer-events:none}.legend-key:hover>.legend-tooltip,.legend-key:focus>.legend-tooltip{display:block}.legend-row .result-count{font-size:10px;margin:0 0 0 auto;white-space:nowrap}.info-key{font-size:16px;color:#758880}
/* Distinct colors for each meaning, shared by the legend and real cards. */
.lesson.planned,.pill.planned{background:#edf5ee;color:#345b41;border-color:#d9e7db;border-left-color:#76a582}.lesson.cancelled,.pill.cancelled{background:#fce9eb;color:#933d4b;border-color:#efcbd1;border-left-color:#d66b80}.lesson.missed,.pill.missed{background:#edf0f3;color:#667685;border-color:#d7dfe6;border-left-color:#9baab8}.lesson.moved,.pill.moved{background:#e1f3ee;color:#286658;border-color:#bfe0d6;border-left-color:#48a88d}.lesson.replaced,.pill.replaced{background:#e6edff;color:#425ba2;border-color:#cbd7f4;border-left-color:#7a92d1}.lesson.supervision,.pill.supervision{background:#f0e5fa;color:#79509b;border-color:#decaf0;border-left-color:#af87cc}.lesson.needs_cancel,.pill.needs_cancel{background:#ffe8d6;color:#995b25;border-color:#efd0b4;border-left-color:#d9985b}.lesson.needs_move,.pill.needs_move{background:#f8e7f1;color:#934e78;border-color:#ebcade;border-left-color:#c484ab}.lesson.clarify,.pill.clarify{background:#fff5cc;color:#8e7627;border-color:#e9dda7;border-left-color:#c4ac50}.lesson.availability.busy{background:#e3eef5;color:#3b6079;border-color:#c9dce9;border-left-color:#6c9cbb}.lesson.availability.free{background:#e6f5e0;color:#4f7838;border-color:#cfe5c5;border-left-color:#8ab16e}.lesson.availability.unknown{background:#f8eddf;color:#88643c;border-color:#e5d1b6;border-left-color:#c19b6c}.lesson.availability.no_data{background:#f2f2f2;color:#7c7c7c;border-color:#dfdfdf;border-left-color:#b5b5b5}.day-tasks{background:#eee9e1;color:#786b59;border-color:#d7ccbb}
.legend-key{width:36px}.legend-chip.lesson,.legend-chip.day-tasks{width:34px;font-size:9px;letter-spacing:.15px}.legend-row{gap:6px}.legend-keys{flex-wrap:wrap;gap:3px}.info-key{width:22px}
.legend-row{flex-wrap:nowrap}.legend-keys{flex:1;min-width:0;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin;gap:5px;padding:3px 2px}.legend-key{width:auto;cursor:pointer}.legend-chip.lesson,.legend-chip.day-tasks{width:auto;min-width:34px;padding:0 7px;height:22px;font-size:10px;white-space:nowrap;letter-spacing:0}.legend-key[aria-pressed="true"]{outline:2px solid #227566;outline-offset:1px;border-radius:4px}.legend-tooltip{display:none!important}.info-key{position:relative;flex-shrink:0;width:22px;cursor:help}.info-key .legend-tooltip{left:auto;right:0}.info-key:hover>.legend-tooltip,.info-key:focus>.legend-tooltip{display:block!important}.legend-row .result-count{flex-shrink:0}.legend-key:focus-visible{outline:2px solid #227566}
#lesson-dialog{width:min(960px,96vw)}.lesson-layout{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(210px,.9fr);gap:22px}.day-schedule{min-width:0;align-self:start;background:#f5f8f6;border:1px solid #dce5e1;border-radius:10px;padding:13px}.day-schedule h3{font-size:14px;margin:0 0 10px}.day-schedule p{font-size:12px;line-height:1.45;margin:8px 0}#day-list{max-height:265px;overflow:auto}.day-entry{display:flex;flex-direction:column;gap:3px;padding:8px 0;border-bottom:1px solid #dfe7e4;font-size:12px}.day-entry span{font-size:11px;color:#667c70}.day-inactive{opacity:.65}.day-conflict{color:#a43c4b;background:#fce9eb;border-radius:5px;padding:7px!important}.day-uncertain{color:#8e7627}#day-free{display:flex;flex-wrap:wrap;gap:5px;max-height:115px;overflow:auto}.day-slot{padding:6px 8px;font-size:11px;background:#e6f5e0}#day-retry{font-size:11px;padding:7px}@media(max-width:560px){.lesson-layout{grid-template-columns:1fr}.day-schedule{grid-row:1}#day-list{max-height:120px}}
#duration-hint{display:block;font-size:10px;line-height:1.4;color:#788a85;margin-top:5px}.reference-row{display:grid;grid-template-columns:1fr 90px 30px;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid #e0e7e4}.reference-row input{margin:0}#reference-dialog{width:min(520px,94vw)}
#reference-dialog{width:min(760px,94vw)}.reference-row{grid-template-columns:minmax(100px,1fr) minmax(140px,1.4fr) 105px;gap:14px;padding:14px 0}.reference-row label{font-size:11px}.reference-row input{width:100%;margin-top:5px;font-size:13px}@media(max-width:560px){.reference-row{grid-template-columns:1fr 1fr}.reference-row label:nth-child(2){grid-column:1/-1;grid-row:2}.reference-row label:nth-child(3){grid-column:2;grid-row:1}}

/* Keep the filter bar stable when status reset becomes available. */
.filters #reset-filter{height:30px;padding:6px 8px;font-size:12px;line-height:18px;white-space:nowrap;flex-shrink:0}
.filters #reset-filter[hidden]{display:block!important;visibility:hidden}
#lesson-form>.dialog-actions{position:sticky;bottom:0;background:#fff;padding:10px 0 0;margin-top:10px;border-top:1px solid #edf1ee;z-index:3}
.lesson.lunch:not(.cancelled):not(.missed){background:#f5e5d6;color:#885d34;border-color:#e7ccb2;border-left-color:#c39464}#lunch-type-btn{font-size:12px;padding:7px 10px;white-space:nowrap}#lunch-suggestion{margin-top:12px;border-top:1px solid #dce5e1}#lunch-suggestion:empty{display:none}

/* Current records keep their status fill; the clock adds a green frame. */
.board .lesson.is-current{outline:2px solid #227566;outline-offset:0}
.board .current-label{grid-column:1/-1;display:block;color:#227566;font-size:11px;font-weight:650;line-height:1.3;margin-top:2px;text-align:left}

/* Compact navigation; identity and account stay together at the right edge. */
header.schedule-header{height:44px;min-height:44px;padding:5px 20px;justify-content:flex-start;gap:16px;flex-wrap:nowrap}
.schedule-header .brand{flex-shrink:0;gap:8px}.schedule-header .brand-icon{width:28px;height:28px}
.schedule-header .brand strong{font-size:17px}.schedule-header .week-nav{flex-shrink:0;gap:6px}
.schedule-header .week-nav button,.schedule-header #add-btn{padding:6px 9px;white-space:nowrap}
.schedule-header .week-nav h2{font-size:15px;min-width:0}.schedule-header .account{margin-left:auto;flex-shrink:0;justify-content:flex-end;gap:10px}
#identity{white-space:nowrap;text-align:right}.account-menu{position:relative;flex-shrink:0}
.account-menu summary,.controls-panel>summary{list-style:none;cursor:pointer;border:1px solid #d7e1df;background:#fff;border-radius:7px;padding:6px 9px;font-size:12px;white-space:nowrap}
.account-menu summary::-webkit-details-marker,.controls-panel>summary::-webkit-details-marker{display:none}
.account-menu summary::after,.controls-panel>summary::after{content:' ⌄'}.account-menu[open] summary::after,.controls-panel[open]>summary::after{content:' ⌃'}
.account-menu summary:focus-visible,.controls-panel>summary:focus-visible{outline:3px solid #76bcb0;outline-offset:2px}
.account-menu-content{position:absolute;right:0;top:calc(100% + 7px);min-width:140px;padding:5px;display:flex;flex-direction:column;align-items:stretch;background:#fff;border:1px solid #d7e1df;border-radius:8px;box-shadow:0 5px 18px #243d3b20;z-index:10}
.account-menu-content button{text-align:left;padding:9px 12px}
#workspace>main{padding-top:6px}.schedule-controls{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;column-gap:12px;flex-shrink:0;margin-bottom:4px}
.controls-panel{min-width:0}.controls-panel>summary{width:fit-content}.controls-panel[open]{grid-column:1/-1}
.controls-panel-content{padding:9px 0;border-bottom:1px solid #e0e7e4}.controls-panel .tools{flex-wrap:wrap;gap:6px;margin-bottom:8px}.controls-panel .tools button{padding:6px 9px;font-size:12px}.controls-panel .filters{gap:8px 12px}
.controls-panel[open]+.legend-row{grid-column:1/-1}.schedule-controls .legend-row{min-width:0;margin:0}.schedule-controls .sync{margin:0;white-space:nowrap;flex-shrink:0}.schedule-controls .result-count{margin-left:0}
#active-filters:not(:empty){margin-left:6px;font-size:11px;color:#227566}
@media(max-width:1000px){header.schedule-header{gap:10px;padding-left:12px;padding-right:12px}.schedule-header .brand strong{font-size:15px}.schedule-header .account{font-size:12px;gap:6px}.schedule-header .week-nav h2{font-size:14px}}
@media(max-width:800px){header.schedule-header{height:auto;min-height:44px;flex-wrap:wrap;gap:6px 10px}.schedule-header .brand{order:0}.schedule-header .account{order:1}.schedule-header .week-nav{order:2;flex:1;flex-wrap:nowrap}.schedule-header #add-btn{order:3}.schedule-controls{column-gap:8px}.schedule-controls .sync{font-size:10px;max-width:100px;white-space:normal}.schedule-controls .result-count{font-size:10px}.controls-panel>summary{font-size:11px;padding:6px}.schedule-header .week-nav h2{white-space:normal}.controls-panel .filters label{flex-wrap:wrap}}
@media(max-width:420px){.schedule-controls{grid-template-columns:minmax(0,1fr)}.schedule-controls .legend-row{grid-column:1;}.schedule-header .week-nav{gap:3px}.schedule-header .week-nav button{padding:6px}.schedule-header .account{font-size:11px}}

.client-stats-filters{display:flex;gap:20px;align-items:center;flex-wrap:wrap}.client-stats-filters input[type=checkbox]{width:auto;margin:0}.client-stats-filters .detail-toggle{display:flex;align-items:center;gap:7px}.client-stat-row{border:1px solid #dce5e1;border-radius:8px;margin:10px 0;padding:12px}.client-stat-row.frequent{border-color:#d6a34d;background:#fff9ec}.client-stat-row summary{cursor:pointer}.client-stat-row summary span,.client-stat-row summary small{display:block;margin-top:5px;font-size:12px}.client-stat-event{display:flex;flex-direction:column;gap:5px;font-size:12px;padding:12px 0;border-top:1px solid #dce5e1;margin-top:10px;overflow-wrap:anywhere}.client-stat-event small{color:#788a85}#client-warning p{margin:5px 0}#client-warning button{font-size:12px;padding:6px 9px}

/* Pin the date label inside its own day, below the sticky employee headings. */
.board .date-cell,.board.single-person .date-cell{padding:0;align-self:stretch}
.date-label{position:sticky;top:40px;padding:12px 6px;background:inherit;line-height:1.3}
.board.single-person .date-label{padding:10px}.date-cell.today .date-label{color:#227566}
/* Explicit, removable selections appear only while a filter is active. */
.filter-chips{grid-column:1/-1;display:flex;align-items:center;flex-wrap:wrap;gap:5px;padding-top:5px}
.filter-chip{padding:4px 8px;font-size:11px;line-height:1.4;border-color:#b7d6c8;background:#eaf4ee;color:#285e4e;white-space:normal;text-align:left}
.filter-chip:hover{background:#dceee3}
/* Compact cards: time, then name; status and comment remain distinct. */
.board .lesson .card-time{font-size:12px;font-weight:700;line-height:1.3;font-variant-numeric:tabular-nums}
.board .lesson .card-name{font-size:13px;font-weight:600;line-height:1.35;overflow-wrap:anywhere}
.board .lesson .pill{font-size:10px;line-height:1.3;font-weight:600;padding:1px 4px;max-width:100%}
.board .lesson .cancel-party{font-size:11px;line-height:1.35;font-weight:500}
.board .lesson.availability .card-name{font-size:11px;font-weight:500}
.board .has-note .card-name::after{content:none!important}
.card-comment{display:inline-block;margin-left:5px;color:#88733c;font-size:12px;font-weight:500}
.show-details .card-comment{display:none}
@media(max-width:800px){.date-label{top:34px;padding:10px 5px}.board .lesson .card-time{font-size:11px}.board .lesson .card-name{font-size:12px}}

/* Shared time axis: 48 pixels per hour, identical in every employee column. */
.board.time-grid{grid-template-columns:62px repeat(var(--specialist-count,4),minmax(0,1fr));min-width:620px;align-items:stretch}
.board.time-grid.single-person{grid-template-columns:62px minmax(0,1fr);min-width:0}
.time-grid>.head-cell{height:36px;top:0;z-index:6;background:#f0f5f2;padding:8px}
.time-grid>.day-heading{grid-column:1/-1;position:sticky;top:36px;z-index:4;display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:6px 9px;background:#eef3f0;border-top:1px solid #d5e0da;border-bottom:1px solid #d5e0da;font-size:12px;min-height:29px}
.time-grid>.day-heading.today{background:#dcefe3;color:#227566}.timeline-notice{font-size:11px;color:#8a6d31}
.time-ruler,.timeline-cell{height:calc(var(--day-minutes)*.6px);position:relative;background-image:repeating-linear-gradient(to bottom,#a8bcb0 0,#a8bcb0 2px,transparent 2px,transparent 36px),repeating-linear-gradient(to bottom,transparent 0,transparent 17px,#edf1ee 17px,#edf1ee 18px,transparent 18px,transparent 36px)}
.time-ruler{position:sticky;left:0;z-index:2;background-color:#fafcfb;border-right:1px solid #dce5e0}.time-label{position:absolute;left:6px;transform:translateY(-50%);font-size:10px;color:#71857c;font-variant-numeric:tabular-nums;background:#fafcfb;padding:1px 2px}.time-label.start{transform:none}.time-label.end{transform:translateY(-100%)}
.timeline-cell{border-right:1px solid #e0e7e3;min-width:0;background-color:#fff}
.time-grid .time-event{position:absolute;margin:0!important;min-height:0!important;box-sizing:border-box;border-radius:5px;padding:3px 5px!important;display:flex!important;flex-direction:column;justify-content:flex-start;gap:1px;overflow:hidden;z-index:1;text-align:left}
.time-grid .time-event .card-time{font-size:11px;line-height:13px;margin:0;flex-shrink:0}.time-grid .time-event .card-name{font-size:12px;line-height:14px;margin:0;flex-shrink:0}.time-grid .time-event .pill{align-self:flex-start;font-size:9px;line-height:11px;flex-shrink:0}
.time-grid .time-event .cancel-party{font-size:10px;line-height:12px}.time-grid .time-event.availability{background-image:repeating-linear-gradient(to bottom,transparent 0,transparent 35px,#ffffff50 35px,#ffffff50 36px)}
.time-grid .time-event.availability.free{border-style:dashed;background-color:#f0f8ec;color:#547b42;border-color:#bed9af}.time-grid .time-event.availability .card-name{font-size:11px}
.time-grid .time-event.short-event{padding:1px 4px!important}.time-grid .short-event .card-time,.time-grid .short-event .pill,.time-grid .short-event .card-meta,.time-grid .short-event .card-note,.time-grid .short-event .cancel-party,.time-grid .short-event .card-warning,.time-grid .short-event .current-label{display:none!important}.time-grid .short-event .card-name{font-size:10px;line-height:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%}
.time-grid .time-event .current-label{font-size:9px;line-height:11px;margin:0}.time-grid.show-details .time-event{overflow:auto}.time-grid .time-event .card-warning{font-size:9px;line-height:11px}
.untimed-row{grid-column:1/-1;display:grid;grid-template-columns:62px repeat(var(--specialist-count,4),minmax(0,1fr));border-bottom:1px solid #dce5e0;background:#fffcf5}.untimed-label{font-size:9px;color:#8a7852;padding:8px 4px}.untimed-cell{padding:4px;display:flex;flex-direction:column;gap:3px;border-left:1px solid #e0e7e3;min-width:0}.untimed-cell .lesson{padding:4px 6px}.untimed-cell .day-tasks{padding:5px}
.after-hours{position:absolute;bottom:0;left:0;right:0;background:repeating-linear-gradient(135deg,#f5f6f5 0,#f5f6f5 5px,#fafbfa 5px,#fafbfa 10px);color:#98a29c;pointer-events:none}.after-hours span{position:absolute;right:6px;bottom:3px;font-size:9px}.timeline-add{position:absolute;right:5px;bottom:3px;padding:1px 5px;font-size:13px;background:#ffffffc9;z-index:3;color:#7e9a89}
@media(max-width:800px){.time-grid .time-event{padding:3px!important}.time-grid .time-event .card-time{font-size:10px}.time-grid .time-event .card-name{font-size:11px}.time-grid>.head-cell{height:34px}.time-grid>.day-heading{top:34px}}

.timeline-cell::after{content:'';position:absolute;inset:0;z-index:2;pointer-events:none;background:repeating-linear-gradient(to bottom,#466a5552 0,#466a5552 2px,transparent 2px,transparent 36px)}
@media(max-width:800px){.time-grid .multi-lane .card-time{font-size:9px;letter-spacing:-.4px;white-space:normal}.time-grid .multi-lane .card-name{font-size:10px}.time-grid .multi-lane .cancel-party{font-size:9px}}

#image-preview{display:block;width:100%;height:auto;border:1px solid #dce5e1;border-radius:6px}#image-dialog .dialog-actions{position:sticky;bottom:0;background:#fff;padding:10px 0;z-index:1}#image-dialog{max-height:90vh}#image-description{overflow-wrap:anywhere}

/* Focused workspace: day first, secondary actions live in menus. */
header.schedule-header{height:52px;min-height:52px;padding:8px 20px;background:#fff;gap:14px}
.schedule-header .brand strong{font-size:19px}.schedule-header .brand small{display:none}.schedule-header .account{margin-left:auto;gap:8px}.schedule-header #identity{font-size:12px;color:#71857b}.schedule-header .account-menu summary{border-color:transparent;background:transparent;padding:7px 9px;font-size:12px}.schedule-header #management-menu summary{border-color:#dde5df;background:#fafcfb}.account-menu-content{min-width:205px}.account-menu-content button{border:0;border-radius:5px;background:white;font-size:12px;padding:10px 12px}.account-menu-content button:hover{background:#eff5f1}
#workspace>main{padding:12px 20px 12px}.schedule-controls{display:flex;flex-direction:column;align-items:stretch;gap:10px;margin-bottom:9px}
.workspace-toolbar,.view-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.workspace-toolbar{justify-content:space-between}.date-nav,.main-actions,.period-switch{display:flex;align-items:center;gap:5px}.date-nav button,.main-actions>button{padding:7px 10px;white-space:nowrap}.date-nav input{margin:0;width:148px;padding:7px 9px;font-size:13px;height:34px}.main-actions{margin-left:auto}.main-actions .account-menu summary{padding:8px 12px;font-size:12px}.period-switch{border:1px solid #dce5df;border-radius:8px;background:#f1f4f2;padding:2px;gap:2px}.period-switch button{padding:6px 12px;border:0;background:transparent;border-radius:6px;font-size:12px}.period-switch button[aria-pressed=true]{background:#fff;box-shadow:0 1px 4px #294d3b15;color:#246b53;font-weight:650}
.view-toolbar{gap:8px}.view-toolbar>select{width:auto;min-width:144px;max-width:220px;font-size:12px;height:34px;padding:7px 10px;margin:0}.view-toolbar>#status-filter{margin-left:auto;min-width:164px}.extra-filters{position:relative}.extra-filters>summary{cursor:pointer;list-style:none;padding:8px;font-size:12px;color:#6d8177}.extra-filters>summary::-webkit-details-marker{display:none}.extra-filters-content{position:absolute;right:0;top:calc(100% + 5px);width:280px;background:#fff;z-index:15;border:1px solid #dce5df;border-radius:10px;box-shadow:0 8px 28px #254f3920;padding:14px;display:flex;flex-direction:column;gap:12px}.extra-filters .detail-toggle{display:flex;align-items:center;gap:8px}.extra-filters .detail-toggle input{width:auto;margin:0}.extra-filters select{font-size:12px}.extra-filters #reset-filter[hidden]{display:none!important}.extra-filters .filter-chips{padding:0}
.schedule-meta{display:flex;align-items:center;gap:12px;min-height:23px;color:#7b8c82}.schedule-meta h2{font-size:13px;font-weight:600;letter-spacing:0;margin:0;color:#526b5e;text-transform:capitalize}.schedule-meta #count{font-size:11px;margin-left:auto;white-space:nowrap}.schedule-meta #sync{font-size:10px;margin-left:0}.schedule-meta #legend-btn{font-size:11px;padding:3px;color:#7a8c81;white-space:nowrap}.board-wrap{border-radius:10px;background:#fff}.board-wrap:has(.board.single-person){width:100%;max-width:640px}.board-wrap:has(.child-agenda){max-width:860px;width:100%}
.time-grid>.day-heading{display:none}.time-grid .time-event.planned{background:#f6faf7}.time-grid .time-event.availability.free{background:transparent;border-color:transparent;border-left:1px dashed #dbe6dd;color:#8b9c90;border-radius:0}.time-grid .time-event.availability.free:hover{background:#f6faf5}.time-grid .availability.free .card-time{font-size:10px;font-weight:400;color:#8b9c90}.time-grid .availability.free .card-name{font-size:10px;color:#8b9c90}.board .availability.free.is-current{outline:none}.availability.free .current-label{display:none!important}.time-grid .time-event.availability.no_data{background:#f8f9f8;border:0;border-radius:0;color:#a1aba4}.time-grid .availability.no_data .card-time{display:none}.time-grid .availability.no_data .card-name{font-size:11px;color:#a1aba4;padding-top:5px}.time-grid .availability.unknown{background:#fffdf6;border-style:dotted;border-color:#e8dfc6}.after-hours{background:#fbfcfb}.after-hours span{color:#b1bab4}.time-grid .timeline-add{opacity:.5}.time-grid .timeline-add:hover{opacity:1}.untimed-row{background:#fffdfa}.untimed-cell .lesson{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;font-size:10px;gap:3px 7px;border:0;background:transparent}.untimed-cell .lesson .card-time{font-size:9px;font-weight:400;color:#938b75}.untimed-cell .lesson .card-name{font-size:10px}.untimed-cell .day-tasks{background:transparent;border:0;padding:3px;font-size:10px;color:#8d8573}.untimed-label{color:#aaa18c}
.board.week-overview{display:grid;grid-template-columns:84px repeat(var(--specialist-count,4),minmax(0,1fr));min-width:620px;align-items:stretch;background:#fff}.board.week-overview.single-person{grid-template-columns:84px minmax(0,1fr);min-width:0}.week-overview>.head-cell{height:34px;padding:8px;background:#f2f6f3}.overview-date{border:0;border-radius:0;border-top:1px solid #e0e7e2;border-right:1px solid #e0e7e2;background:#fafcfb;font-size:11px;padding:12px 8px;text-align:left;line-height:1.5;align-self:stretch;white-space:normal;color:#718779}.overview-date.today{background:#edf6ef;color:#246b53;font-weight:650}.overview-cell{padding:7px;border-top:1px solid #e0e7e2;border-right:1px solid #e8ede9;min-width:0;display:flex;flex-direction:column;gap:5px;min-height:56px}.week-overview .lesson{display:flex;flex-direction:column;gap:2px;padding:6px 7px!important;border-radius:5px;min-height:0}.week-overview .lesson .card-time{font-size:10px;line-height:1.3;order:0}.week-overview .lesson .card-name{font-size:12px;line-height:1.35;order:1}.week-overview .lesson .pill{font-size:9px;align-self:flex-start;order:2}.week-overview .lesson .card-meta,.week-overview .lesson .card-note,.week-overview .lesson .warning-details{display:none}.week-overview.show-details .lesson .card-meta,.week-overview.show-details .lesson .card-note,.week-overview.show-details .lesson .warning-details{display:block;order:3}.overview-slot{display:block;width:100%;padding:4px 2px;font-size:10px;text-align:left;line-height:1.5;border:0;background:transparent;border-radius:0;color:#8b9c90}.overview-slot.busy{background:#edf3f6;color:#688094;padding:6px}.overview-slot.no_data{color:#a7b1aa}.overview-slot.unknown{color:#aa9867}.overview-slot .current-label{display:none}.overview-notice{font-size:10px;color:#9b8859}
.board.child-agenda{display:block;min-width:0;padding:18px 22px}.agenda-title{font-size:19px;color:#345849;margin:0 0 18px}.agenda-day{padding:12px 0;border-top:1px solid #edf1ed}.agenda-day h3{font-size:12px;font-weight:600;color:#819187;margin:0 0 9px;text-transform:capitalize}.agenda-day .lesson{display:grid;grid-template-columns:130px 1fr auto;align-items:center;padding:11px 13px!important;margin-top:6px;gap:5px 14px}.agenda-day .lesson .card-name,.agenda-day .lesson .card-meta,.agenda-day .lesson .card-note,.agenda-day .lesson .card-warning,.agenda-day .lesson .warning-details{display:none}.agenda-day .lesson .card-time{grid-column:1;font-size:13px;margin:0;grid-row:1}.agenda-day .lesson .card-specialist{grid-column:2;grid-row:1;font-size:13px;font-weight:550}.agenda-day .lesson .pill{grid-column:3;grid-row:1;justify-self:end;font-size:10px;white-space:normal}.agenda-day .lesson .current-label{grid-column:2;grid-row:2}.agenda-empty{font-size:11px;color:#a8b2ab;margin:0}.image-period-label{display:flex;align-items:center;gap:12px;margin:8px 0 15px}.image-period-label select{width:auto;margin:0;font-size:12px}.board .lesson.planned .pill{display:none}.card-comment{font-size:10px;color:#a79b73}
#legend-dialog{width:min(650px,94vw)}#legend-dialog .legend-keys{display:grid;grid-template-columns:1fr 1fr;overflow:visible;gap:8px;padding:0;margin:15px 0}#legend-dialog .legend-key{width:100%;justify-content:flex-start}#legend-dialog .legend-chip{width:100%;height:32px;font-size:12px;justify-content:flex-start;padding:6px 10px;border-radius:6px}#legend-dialog .legend-key[aria-pressed=true]{outline-offset:2px}
@media(max-width:800px){header.schedule-header{flex-wrap:nowrap;padding:7px 12px;height:49px;min-height:49px}.schedule-header .brand strong{font-size:17px}.schedule-header #identity{display:none}.schedule-header .account{gap:2px}.schedule-header .account-menu summary{font-size:11px;padding:6px 7px}#workspace>main{padding:10px 12px 8px}.schedule-controls{gap:8px}.workspace-toolbar{gap:8px}.date-nav{gap:3px}.date-nav input{width:135px;font-size:12px}.date-nav button{padding:7px 8px;font-size:12px}.main-actions{margin-left:0}.main-actions>button{font-size:12px}.main-actions .account-menu summary{font-size:12px}.period-switch button{padding:6px 9px}.view-toolbar{gap:6px}.view-toolbar>select{min-width:132px;max-width:180px;font-size:12px}.view-toolbar>#status-filter{min-width:140px}.schedule-meta{gap:7px}.schedule-meta h2{font-size:12px}.schedule-meta #sync{display:none}.schedule-meta #legend-btn{font-size:10px}.week-overview .overview-cell{padding:5px}.board.child-agenda{padding:13px}.agenda-day .lesson{grid-template-columns:100px 1fr;gap:5px 10px}.agenda-day .lesson .pill{grid-row:2;grid-column:2;justify-self:start}.agenda-day .lesson .current-label{grid-row:3}.agenda-day .lesson .card-time{font-size:12px}.agenda-day .lesson .card-specialist{font-size:12px}}
@media(max-width:480px){.schedule-header .brand-icon{display:none}.workspace-toolbar{justify-content:flex-start}.period-switch{margin-left:auto}.main-actions{width:100%;justify-content:flex-end}.view-toolbar>#status-filter{margin-left:0;flex:1}.schedule-meta #count{font-size:10px}.schedule-meta #legend-btn{font-size:9px}#legend-dialog .legend-keys{grid-template-columns:1fr}}

.schedule-meta h2,.agenda-day h3{text-transform:none}.agenda-day h3::first-letter,.schedule-meta h2::first-letter{text-transform:uppercase}
.week-overview .overview-date{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:5px}.overview-date::after{content:'Открыть день';font-size:9px;color:#a0afa5}
.week-overview .lesson{display:grid;grid-template-columns:65px minmax(0,1fr);gap:2px 4px;padding:5px!important}.week-overview .lesson .card-time{grid-column:1;grid-row:1;font-size:9px;line-height:14px;white-space:nowrap}.week-overview .lesson .card-name{grid-column:2;grid-row:1;font-size:11px;line-height:14px}.week-overview .lesson .pill{grid-column:1/-1;grid-row:2}.week-overview .lesson .card-warning{grid-column:1/-1;grid-row:3}.week-overview.show-details .lesson .card-note,.week-overview.show-details .lesson .card-meta,.week-overview.show-details .lesson .warning-details{grid-column:1/-1;grid-row:auto}
@media(max-width:900px){.week-overview .lesson{grid-template-columns:1fr;gap:2px}.week-overview .lesson .card-time{grid-column:1;grid-row:1;font-size:10px}.week-overview .lesson .card-name{grid-column:1;grid-row:2;font-size:11px}.week-overview .lesson .pill{grid-column:1;grid-row:3}.week-overview .lesson .card-warning{grid-row:4}}

/* Weekly team view uses the same aligned clock grid as the daily view. */
.time-grid.timeline-week>.day-heading{display:flex}
.time-grid .time-event.compact-event{display:grid!important;grid-template-columns:auto minmax(0,1fr);grid-template-rows:13px auto;gap:1px 5px;padding:2px 4px!important}.time-grid .compact-event .card-time{grid-column:1;grid-row:1;font-size:10px}.time-grid .compact-event .card-name{grid-column:2;grid-row:1;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.time-grid .compact-event .pill{grid-column:1/-1;grid-row:2;justify-self:start;padding:0 3px}.time-grid .compact-event .card-meta,.time-grid .compact-event .card-note,.time-grid .compact-event .card-warning,.time-grid .compact-event .current-label{display:none!important}

/* Keep the controls close together and give the schedule more height. */
.schedule-controls{gap:5px;margin-bottom:6px}.workspace-toolbar{justify-content:flex-start;gap:7px}.workspace-toolbar .view-toolbar{flex:1;gap:6px;flex-wrap:nowrap}.workspace-toolbar .view-toolbar>select{width:auto;min-width:125px;max-width:175px;margin:0;padding:6px 8px;font-size:12px}.workspace-toolbar .view-toolbar>#status-filter{margin-left:0}.workspace-toolbar .main-actions{margin-left:auto;flex-shrink:0}.workspace-toolbar .extra-filters>summary{padding:6px}.schedule-meta{min-height:19px;gap:8px}.schedule-meta h2{font-size:12px}.schedule-meta #count{font-size:10px}.schedule-meta #legend-btn{font-size:10px}.date-nav button,.main-actions>button{padding:6px 9px}.date-nav input{height:31px;padding:6px 8px;width:137px}.period-switch button{padding:5px 9px}.main-actions .account-menu summary{padding:7px 9px}
@media(max-width:1100px){.workspace-toolbar .view-toolbar{order:3;flex-basis:100%;flex-grow:1}.workspace-toolbar .view-toolbar>#status-filter{margin-left:0}.workspace-toolbar .main-actions{width:auto;margin-left:auto}.workspace-toolbar .view-toolbar>select{min-width:125px;max-width:190px}.schedule-controls{gap:4px}#workspace>main{padding-top:6px}.workspace-toolbar{gap:5px}}
@media(max-width:480px){.workspace-toolbar .view-toolbar{flex-wrap:wrap}.workspace-toolbar .main-actions{width:100%}.workspace-toolbar .view-toolbar>select{max-width:100%;min-width:110px}.workspace-toolbar .view-toolbar>#status-filter{flex:1}.schedule-meta{flex-wrap:wrap}}

.board-wrap:has(.specialist-agenda){max-width:740px}.specialist-agenda .agenda-day .lesson{grid-template-columns:120px minmax(0,1fr) auto;gap:5px 12px}.specialist-agenda .agenda-day .lesson .card-name{display:block;grid-column:2;grid-row:1;font-size:13px;margin:0}.specialist-agenda .agenda-day .lesson .pill{grid-column:3;grid-row:1}.specialist-agenda .agenda-day .lesson .current-label{grid-column:2;grid-row:2}.specialist-agenda .agenda-day .lesson.availability{min-height:0}.specialist-agenda .agenda-day .day-tasks{margin-top:6px;font-size:12px}.specialist-agenda .agenda-day .lesson .card-time{white-space:nowrap}@media(max-width:600px){.specialist-agenda .agenda-day .lesson{grid-template-columns:95px minmax(0,1fr);gap:4px 8px}.specialist-agenda .agenda-day .lesson .pill{grid-column:2;grid-row:2}.specialist-agenda .agenda-day .lesson .current-label{grid-row:3}}

.danger{color:#a63346;border-color:#e6b5bc;background:#fff5f6}.danger:hover{background:#fce3e7}.dialog-actions #delete-btn{margin-right:auto}.deleted-entry{padding:14px 0;border-bottom:1px solid #e0e7e3}.deleted-entry .small{margin:5px 0 9px}
