/* TeacherWidget V552.0 — one organizer, optional schemas and true board-ribbon collapse. */
@font-face{font-family:TWAssistant;src:url('vendor/excalidraw/fonts/assistant/assistant-regular.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:TWAssistant;src:url('vendor/excalidraw/fonts/assistant/assistant-semibold.woff2') format('woff2');font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:TWAssistant;src:url('vendor/excalidraw/fonts/assistant/assistant-bold.woff2') format('woff2');font-weight:700;font-style:normal;font-display:swap}
:root{
 --tw-950:#0f1622;--tw-900:#141c29;--tw-850:#1a2230;--tw-800:#222c3c;--tw-700:#2e3a4d;
 --tw-500:#64708a;--tw-300:#b3bccd;--tw-bg:#f4f6f9;--tw-surface:#fff;--tw-surface-2:#f9fafc;
 --tw-line:#e4e8ef;--tw-line-strong:#d3dae6;--tw-text:#16202e;--tw-muted:#64708a;
 --tw-accent:#2d4a8a;--tw-accent-2:#3a5da6;--tw-accent-soft:#ebf0fa;--tw-danger:#c0392b;
 --tw-r1:6px;--tw-r2:9px;--tw-r3:12px;--tw-shadow:0 12px 34px rgba(21,29,27,.11);
 --tw-board-rail-current:184px;font-family:TWAssistant,system-ui,sans-serif
}
*{box-sizing:border-box}html,body,button,input,select,textarea{font-family:TWAssistant,system-ui,sans-serif}body{margin:0;background:var(--tw-bg);color:var(--tw-text)}button{touch-action:manipulation}button,input,select,textarea{font:inherit}
html,body{max-width:100%;overflow-x:hidden}
/* V622.39: alter Schnellzugriff-Trigger war unter der modernen Kopfleiste sichtbar,
   wenn der Header horizontal verschoben wurde. Tastaturkuerzel bleibt erhalten. */
#twPaletteBtnV586{display:none!important}
#twAppQuickMenuButton{display:none!important}
.tw-board-ribbon-toggle{display:none!important}
body.tw-board-open .tw-board-ribbon-toggle{display:grid!important}
#twBoard49HeaderBar.tw-ui-board-ribbon-collapsed{display:none!important}
.tw-ui-board-action-strip,#twUiBoardActionStrip{display:none!important}

/* ---------- workspace ---------- */
.tw-pb-root{background:var(--tw-bg)}.tw-workspace-host{position:fixed;inset:58px 0 0;z-index:900000;background:var(--tw-bg);overflow:auto}.tw-workspace{min-height:100%;max-width:1500px;margin:0 auto}.tw-workspace-head{display:flex;align-items:flex-end;gap:16px;padding:22px 26px 13px;border-bottom:1px solid var(--tw-line);background:rgba(245,247,246,.97);position:sticky;top:0;z-index:20}.tw-workspace-title{font-size:25px;font-weight:700;letter-spacing:-.025em}.tw-workspace-subtitle{font-size:13px;color:var(--tw-muted);margin-top:3px}.tw-workspace-head-actions{margin-left:auto}.tw-workspace-content{padding:18px 26px 36px}
.tw-btn{height:38px;border-radius:7px;border:1px solid transparent;padding:0 13px;font-weight:600;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:7px}.tw-btn-primary{background:var(--tw-accent);color:#fff}.tw-btn-primary:hover{background:var(--tw-accent-2)}.tw-btn-secondary{background:#fff;border-color:var(--tw-line);color:var(--tw-text)}.tw-btn-secondary:hover{background:#f0f4f3}.tw-btn-quiet{background:transparent;color:var(--tw-muted)}.tw-btn-full{width:100%;margin-top:10px}.tw-iconbtn{width:38px;height:38px;border:1px solid var(--tw-line);background:#fff;border-radius:7px;display:grid;place-items:center;font-size:21px;cursor:pointer}.tw-iconbtn svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.tw-iconbtn-small{width:30px;height:30px;font-size:18px}.tw-iconbtn-add{background:var(--tw-accent);border-color:var(--tw-accent);color:#fff;font-size:24px}.tw-field{height:40px;border:1px solid var(--tw-line);background:#fff;color:var(--tw-text);border-radius:7px;padding:0 10px;min-width:0;outline:none}.tw-field:focus{border-color:#67bbb5;box-shadow:0 0 0 3px rgba(45,74,138,.10)}textarea.tw-field{height:auto;padding:10px}.tw-empty-state{border:1px dashed #cbd5d2;background:#f9fafc;border-radius:8px;padding:24px;text-align:center;color:var(--tw-muted);display:grid;gap:5px}.tw-empty-state b{color:var(--tw-text)}
body.tw-section-plan .tw-workspace-head,body.tw-section-boards .tw-workspace-head,body.tw-section-calendar .tw-workspace-head{display:none!important}body.tw-section-plan .tw-workspace-content,body.tw-section-boards .tw-workspace-content,body.tw-section-calendar .tw-workspace-content{padding-top:18px}

/* ---------- planning: Fach -> Ordner -> Stunde ---------- */
.tw-plan-layout{display:grid;grid-template-columns:222px minmax(0,1fr);min-height:650px;border:1px solid var(--tw-line);background:#fff;border-radius:10px;overflow:hidden}
.tw-plan-subjects{border-right:1px solid var(--tw-line);background:#fbfcfc;min-width:0}.tw-plan-subjects>div:first-child{padding:16px 14px 8px;font-size:11px;font-weight:700;color:var(--tw-muted);text-transform:uppercase;letter-spacing:.09em}.tw-plan-subject-list{display:grid}.tw-plan-subject-row{height:54px;border:0;border-left:3px solid transparent;background:transparent;display:grid;grid-template-columns:31px minmax(0,1fr) auto;align-items:center;gap:9px;padding:0 12px;text-align:left;color:var(--tw-text);cursor:pointer}.tw-plan-subject-row:hover{background:#f0f5f4}.tw-plan-subject-row.is-active,.tw-plan-subject-row[aria-current=true]{background:var(--tw-accent-soft);border-left-color:var(--tw-accent);color:#23396b}.tw-plan-subject-row img{width:30px;height:30px;border-radius:6px;object-fit:cover}.tw-plan-subject-row>span:not(.tw-plan-subject-count){font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tw-plan-subject-count{font-size:11px;color:var(--tw-muted);font-variant-numeric:tabular-nums}.tw-plan-subject-row.is-active .tw-plan-subject-count{color:#0a7770}.tw-plan-extra-subjects{display:grid}.tw-plan-subject-glyph{width:30px;height:30px;border-radius:6px;background:#eaeef6;color:#56615e;display:grid;place-items:center;font-size:10px;font-weight:700}.tw-plan-subject-row.is-active .tw-plan-subject-glyph{background:#cfe8e5;color:#086e67}
.tw-plan-recent{margin:12px 12px 0;padding-top:12px;border-top:1px solid var(--tw-line)}.tw-plan-recent-title{font-size:10.5px;font-weight:700;letter-spacing:.075em;text-transform:uppercase;color:var(--tw-muted);margin:0 4px 6px}.tw-plan-recent-row{width:100%;border:0;background:transparent;display:grid;grid-template-columns:22px minmax(0,1fr);gap:8px;text-align:left;padding:8px 4px;border-radius:6px;cursor:pointer}.tw-plan-recent-row:hover{background:#f0f4f3}.tw-plan-recent-icon{width:15px;height:19px;border:1.4px solid #7c8985;border-radius:2px;margin-top:2px}.tw-plan-recent-row span:last-child{display:grid;min-width:0}.tw-plan-recent-row b{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tw-plan-recent-row small{font-size:10px;color:var(--tw-muted);margin-top:2px}.tw-plan-recent-empty{font-size:11px;color:var(--tw-muted);padding:5px}.tw-plan-subject-tools{padding:10px 12px 14px;display:grid;gap:2px}.tw-linkbtn{border:0;background:transparent;color:var(--tw-accent);padding:7px 4px;text-align:left;font-weight:600;cursor:pointer;font-size:12px}
.tw-plan-detail{min-width:0;display:block}.tw-plan-subject-head{height:64px;padding:0 17px;border-bottom:1px solid var(--tw-line);display:flex;align-items:center}.tw-plan-subject-kicker{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--tw-accent);font-weight:700}.tw-plan-subject-summary{display:flex;align-items:baseline;gap:9px}.tw-plan-subject-summary b{font-size:19px}.tw-plan-subject-summary span{font-size:12px;color:var(--tw-muted)}
.tw-plan-columns{display:grid;grid-template-columns:244px minmax(0,1fr);min-height:585px}.tw-plan-folder-pane{border-right:1px solid var(--tw-line);background:#fcfdfd;padding:12px}.tw-plan-pane-head{height:34px;display:flex;align-items:center;justify-content:space-between;color:var(--tw-muted);font-size:12px;padding:0 4px 8px}.tw-plan-folder-nav{display:grid;gap:2px}.tw-plan-folder-row{display:flex;align-items:center;position:relative;padding-left:calc(var(--tw-depth,0)*10px)}.tw-plan-folder-open{height:46px;flex:1;min-width:0;border:0;background:transparent;border-radius:7px;display:flex;align-items:center;gap:9px;padding:0 9px;text-align:left;cursor:pointer}.tw-plan-folder-row:hover .tw-plan-folder-open{background:#f0f4f3}.tw-plan-folder-row.is-active .tw-plan-folder-open{background:var(--tw-accent-soft);color:#23396b}.tw-plan-folder-icon{width:19px;height:15px;border-radius:3px;background:#bac8c5;position:relative;flex:none}.tw-plan-folder-icon:before{content:"";position:absolute;left:1px;top:-4px;width:9px;height:5px;background:inherit;border-radius:3px 3px 0 0}.tw-plan-folder-row:nth-child(4n+2) .tw-plan-folder-icon{background:#d9c17b}.tw-plan-folder-row:nth-child(4n+3) .tw-plan-folder-icon{background:#b7a9dc}.tw-plan-folder-row:nth-child(4n+4) .tw-plan-folder-icon{background:#dba9ad}.tw-plan-folder-row.is-active .tw-plan-folder-icon{background:var(--tw-accent)}.tw-plan-folder-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:600}.tw-plan-folder-count{margin-left:auto;color:var(--tw-muted);font-size:11px}.tw-plan-folder-actions{display:none!important}.tw-plan-folder-more{position:relative;flex:none}.tw-plan-folder-more>summary{list-style:none;width:32px;height:34px;display:grid;place-items:center;border-radius:6px;color:var(--tw-muted);cursor:pointer;font-weight:700}.tw-plan-folder-more>summary::-webkit-details-marker{display:none}.tw-plan-folder-more[open]>summary{background:#eef3f2;color:var(--tw-text)}.tw-plan-folder-more>div{position:absolute;right:0;top:36px;z-index:80;width:184px;background:#fff;border:1px solid var(--tw-line);border-radius:7px;padding:4px;box-shadow:var(--tw-shadow)}.tw-plan-folder-more button{width:100%;border:0;background:transparent;padding:9px 10px;border-radius:5px;text-align:left;color:var(--tw-text);font-weight:600;cursor:pointer}.tw-plan-folder-more button:hover{background:#f0f4f3}.tw-plan-folder-more button.is-danger{color:var(--tw-danger);border-top:1px solid var(--tw-line);border-radius:0 0 5px 5px;margin-top:3px}
.tw-plan-lessons-pane{padding:0 14px 14px;min-width:0}.tw-plan-lessons-head{height:58px;display:flex;align-items:center;border-bottom:1px solid var(--tw-line)}.tw-plan-lessons-head>div{display:grid}.tw-plan-lessons-head b{font-size:18px}.tw-plan-lessons-head span{font-size:11px;color:var(--tw-muted)}.tw-plan-tabs{height:44px;display:flex;align-items:end;border-bottom:1px solid var(--tw-line);margin-bottom:7px}.tw-plan-tabs button{height:42px;border:0;background:transparent;padding:0 12px;color:var(--tw-muted);font-weight:600;position:relative}.tw-plan-tabs button.is-active{color:var(--tw-text)}.tw-plan-tabs button.is-active:after{content:"";position:absolute;height:3px;left:8px;right:8px;bottom:-1px;background:var(--tw-accent);border-radius:3px 3px 0 0}.tw-plan-tabs span{color:var(--tw-accent)}.tw-plan-list-toolbar{display:flex;align-items:center;height:30px;color:var(--tw-muted);font-size:11px;margin-bottom:6px}.tw-plan-list-toolbar .tw-btn{display:none}.tw-plan-lesson-list{display:grid;gap:7px}.tw-plan-featured{border:1px solid #79bdb7;border-left:4px solid var(--tw-accent);border-radius:9px;background:#fff;overflow:visible}.tw-plan-featured-head{display:grid;grid-template-columns:30px minmax(0,1fr) 34px;gap:10px;align-items:start;padding:13px 12px;border-bottom:1px solid var(--tw-line)}.tw-plan-featured-copy{display:grid;min-width:0}.tw-plan-featured-copy>b{font-size:16px;line-height:1.18}.tw-plan-featured-copy>small{font-size:11px;color:var(--tw-muted);margin-top:5px}.tw-plan-featured-phases,.tw-plan-featured-notes{padding:11px 12px;border-bottom:1px solid var(--tw-line)}.tw-plan-featured-sectionhead{display:flex;justify-content:space-between;gap:8px;font-size:12px;margin-bottom:8px}.tw-plan-featured-sectionhead>span{color:var(--tw-muted)}.tw-plan-timeline{display:grid;gap:0}.tw-plan-timeline-item{display:grid;grid-template-columns:62px minmax(0,1fr);gap:9px;position:relative;padding:5px 0}.tw-plan-timeline-item:before{content:"";position:absolute;left:3px;top:0;bottom:0;width:1px;background:#d9e2df}.tw-plan-timeline-item:first-child:before{top:50%}.tw-plan-timeline-item:last-child:before{bottom:50%}.tw-plan-timeline-item:after{content:"";position:absolute;left:0;top:50%;width:7px;height:7px;border-radius:50%;background:#7d8985;transform:translateY(-50%)}.tw-plan-timechip{margin-left:12px;align-self:start;width:max-content;max-width:50px;padding:4px 6px;border-radius:6px;background:#eaf4f2;color:#0a756e;font-size:10px;font-variant-numeric:tabular-nums}.tw-plan-timeline-item>span:last-child{display:grid}.tw-plan-timeline-item b{font-size:12px}.tw-plan-timeline-item small{font-size:10.5px;color:var(--tw-muted);margin-top:2px}.tw-plan-featured-notes p{margin:0;color:#4d5754;font-size:11px;line-height:1.45;white-space:pre-wrap}.tw-plan-featured-foot{padding:9px 12px;display:flex;gap:7px;justify-content:flex-end}.tw-plan-featured-foot .tw-btn{height:34px;font-size:11px}.tw-plan-lesson-row{display:flex;align-items:center;border:1px solid var(--tw-line);border-radius:8px;background:#fff;min-height:60px}.tw-plan-lesson-row:hover{border-color:#b8c9c5}.tw-plan-lesson-main{flex:1;min-width:0;border:0;background:transparent;display:flex;align-items:center;gap:10px;padding:9px 10px;text-align:left;cursor:pointer}.tw-plan-docicon{width:25px;height:31px;border:1.5px solid var(--tw-accent);border-radius:4px;position:relative;flex:none}.tw-plan-docicon:before,.tw-plan-docicon:after{content:"";position:absolute;left:5px;right:5px;height:1.5px;background:var(--tw-accent)}.tw-plan-docicon:before{top:10px}.tw-plan-docicon:after{top:16px}.tw-plan-lesson-copy{display:grid;min-width:0}.tw-plan-lesson-copy b{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tw-plan-lesson-copy small{font-size:10.5px;color:var(--tw-muted);margin-top:2px}.tw-plan-lesson-actions{display:flex;align-items:center;padding-right:6px}.tw-row-more{position:relative}.tw-row-more summary{list-style:none;width:32px;height:32px;border-radius:6px;display:grid;place-items:center;color:var(--tw-muted);cursor:pointer}.tw-row-more summary::-webkit-details-marker{display:none}.tw-row-more[open] summary{background:#eef3f2}.tw-row-more>div{position:absolute;right:0;top:35px;min-width:145px;background:#fff;border:1px solid var(--tw-line);border-radius:7px;box-shadow:var(--tw-shadow);padding:4px;z-index:90}.tw-row-more>div button{display:block;width:100%;border:0;background:transparent;padding:8px 9px;text-align:left;border-radius:5px}.tw-row-more>div button:hover{background:#f1f5f4}.tw-plan-create{display:grid;grid-template-columns:minmax(140px,1fr) 170px auto;gap:7px;margin-top:10px;padding-top:10px;border-top:1px solid var(--tw-line)}.tw-plan-create input,.tw-plan-create select{height:38px;border:1px solid var(--tw-line);border-radius:7px;background:#fff;padding:0 9px;min-width:0}.tw-plan-create .tw-btn{height:38px}

/* ---------- lesson editor ---------- */
.tw-plan-editor{max-width:1120px;margin:0 auto}.tw-plan-editor-head{display:flex;align-items:center;gap:13px;padding:8px 0 16px;border-bottom:1px solid var(--tw-line)}.tw-plan-editor-heading{display:flex;gap:11px;align-items:center}.tw-plan-editor-docicon{width:40px;height:46px;border:1.5px solid var(--tw-accent);border-radius:6px;display:grid;place-items:center;color:var(--tw-accent)}.tw-plan-editor-docicon svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7}.tw-plan-editor-subject{font-size:10.5px;text-transform:uppercase;letter-spacing:.08em;color:var(--tw-accent);font-weight:700}.tw-plan-editor-title{font-size:21px;font-weight:700}.tw-plan-editor-actions{margin-left:auto;display:flex;align-items:center;gap:9px}.tw-plan-save-state{font-size:12px;color:var(--tw-accent)}.tw-plan-editor-meta{display:grid;grid-template-columns:2fr 1fr 1fr;gap:9px;padding:14px 0}.tw-plan-editor-meta label,.tw-plan-editor-notes label{display:grid;gap:5px;font-size:11px;color:var(--tw-muted);font-weight:600}.tw-plan-editor-meta input,.tw-plan-editor-notes textarea{border:1px solid var(--tw-line);border-radius:7px;padding:9px;background:#fff;color:var(--tw-text)}.tw-plan-editor-section{background:#fff;border:1px solid var(--tw-line);border-radius:9px;margin-bottom:11px;overflow:hidden}.tw-plan-editor-sectionhead{padding:12px 14px;border-bottom:1px solid var(--tw-line)}.tw-plan-editor-sectionhead div{display:grid}.tw-plan-editor-sectionhead b{font-size:15px}.tw-plan-editor-sectionhead span{font-size:11px;color:var(--tw-muted)}.tw-plan-phase-table-wrap{overflow:auto}.tw-plan-phase-table{width:100%;border-collapse:collapse}.tw-plan-phase-table th{background:#f6f8f7;color:var(--tw-muted);font-size:11px;text-align:left;padding:8px}.tw-plan-phase-table td{padding:6px!important;vertical-align:top!important;border-bottom:1px solid #e8eceb!important}.tw-plan-phase-field{width:100%;min-width:0;border:1px solid var(--tw-line);border-radius:6px;padding:7px;font-size:13px;background:#fff;color:var(--tw-text);outline:none}.tw-plan-phase-field:focus{border-color:#67bbb5;box-shadow:0 0 0 2px rgba(45,74,138,.09)}.tw-plan-phase-name{font-weight:700}.tw-plan-phase-time{text-align:center;font-variant-numeric:tabular-nums}.tw-plan-phase-note{min-height:45px;height:45px;resize:none;line-height:1.35}.tw-plan-editor-notes{padding:12px 14px}.tw-plan-editor-footer{display:flex;justify-content:flex-end;gap:7px;padding:3px 0 28px}

/* ---------- calendar: Etar-like, but TeacherWidget ---------- */
.tw-calendar-view{max-width:1120px;margin:0 auto}.tw-calendar-topline{display:flex;align-items:center;gap:14px;margin-bottom:12px}.tw-calendar-titlegroup{display:flex;align-items:center;gap:11px}.tw-calendar-glyph{width:44px;height:44px;border-radius:9px;background:var(--tw-accent);color:#fff;display:grid;place-items:center}.tw-calendar-glyph svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.7}.tw-calendar-date-title{font-size:26px;font-weight:700;letter-spacing:-.025em}.tw-calendar-view-label{font-size:12px;color:var(--tw-muted)}.tw-calendar-date-nav{margin-left:auto;display:flex;gap:7px;align-items:center}.tw-calendar-switcher{height:44px;border:1px solid var(--tw-line);background:#fff;border-radius:8px;display:grid;grid-template-columns:repeat(3,1fr);padding:3px;margin-bottom:10px}.tw-calendar-switcher button{border:0;background:transparent;border-radius:6px;font-weight:600;color:#4f5956;cursor:pointer}.tw-calendar-switcher button.is-active,.tw-calendar-switcher button[aria-pressed=true]{background:var(--tw-accent-soft);color:#23396b;box-shadow:inset 0 0 0 1px #b9c8e6}
.tw-calendar-tools{display:flex;gap:7px;align-items:center;margin-bottom:9px}.tw-calendar-tools>.tw-btn{height:38px}.tw-calendar-options{position:relative;margin-left:auto}.tw-calendar-options>summary{list-style:none}.tw-calendar-options>summary::-webkit-details-marker{display:none}.tw-calendar-options-menu{position:absolute;right:0;top:43px;width:190px;background:#fff;border:1px solid var(--tw-line);border-radius:7px;padding:4px;box-shadow:var(--tw-shadow);z-index:80}.tw-calendar-options-menu button{width:100%;border:0;background:transparent;text-align:left;padding:9px;border-radius:5px;color:var(--tw-text);font-weight:600}.tw-calendar-options-menu button:hover{background:#f0f4f3}.tw-calendar-exports{display:flex;gap:7px;margin-bottom:9px}.tw-calendar-exports .tw-btn{height:36px;font-size:12px}
.tw-calendar-categories{border:1px solid var(--tw-line);background:#fff;border-radius:8px;padding:9px 11px;margin-bottom:10px;display:flex;align-items:center;gap:10px}.tw-calendar-categories>span{font-size:11px;color:var(--tw-muted);font-weight:700}.tw-pb-category-filter{display:flex;flex-wrap:wrap;gap:6px}.tw-pb-category-filter label,.tw-pb-category-filter button{border:1px solid var(--tw-line)!important;background:#fff!important;border-radius:999px!important;padding:5px 9px!important;font-size:11px!important;font-weight:600!important;min-height:30px!important}
.tw-calendar-month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));background:#fff;border:1px solid var(--tw-line);border-radius:9px;overflow:hidden}.tw-calendar-month-grid>.tw-calendar-weekday{height:34px;display:grid;place-items:center;background:#f4f6f5!important;color:#59635f!important;font-size:11px;font-weight:700;border:0!important;border-bottom:1px solid var(--tw-line)!important;border-radius:0!important;box-shadow:none!important}.tw-calendar-day{min-height:110px;border:0!important;border-right:1px solid var(--tw-line)!important;border-bottom:1px solid var(--tw-line)!important;border-radius:0!important;background:#fff!important;padding:6px!important;text-align:left;cursor:pointer;overflow:hidden;position:relative;box-shadow:none!important}.tw-calendar-day:nth-child(7n){border-right:0!important}.tw-calendar-day:hover{background:#fafcfc!important}.tw-calendar-day.is-outside{background:#fafbfb!important;color:#b7bfbd}.tw-calendar-day.is-today .tw-calendar-daynum{background:var(--tw-accent);color:#fff}.tw-calendar-daynum{width:25px;height:25px;border-radius:50%;display:grid;place-items:center;font-weight:700;font-size:12px}.tw-calendar-events{display:grid;gap:2px;margin-top:3px;min-width:0}.tw-month-event{width:100%;min-width:0;height:20px;border:1px solid color-mix(in srgb,var(--tw-event-color) 35%,#e4e8ef);border-radius:4px;background:color-mix(in srgb,var(--tw-event-color) 11%,#fff)!important;color:#27302d!important;padding:0 4px;display:flex;align-items:center;gap:4px;text-align:left;cursor:pointer;overflow:hidden}.tw-month-event-dot{width:6px;height:6px;border-radius:50%;background:var(--tw-event-color);flex:none}.tw-month-event-title{font-size:9.5px;font-weight:600;line-height:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}.tw-calendar-more{display:block;font-size:9.5px;color:var(--tw-muted);padding-left:2px}.tw-pb-week-timeline-scroll{border:1px solid var(--tw-line);background:#fff;border-radius:9px;overflow:auto;max-height:calc(100vh - 260px)}

/* Day calendar stays feature-complete, but visually belongs to the same system. */
.tw-day-workspace{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(330px,.85fr);gap:10px;align-items:start}.tw-day-timeline-panel,.tw-day-card{background:#fff;border:1px solid var(--tw-line);border-radius:9px}.tw-day-timeline-panel{overflow:hidden}.tw-section-heading{padding:12px 13px;border-bottom:1px solid var(--tw-line)}.tw-section-heading>div{display:grid}.tw-section-heading b{font-size:15px}.tw-section-heading span{font-size:11px;color:var(--tw-muted);margin-top:2px}.tw-day-side{display:grid;gap:9px}.tw-day-card{padding:0 11px 11px}.tw-day-card .tw-section-heading{margin:0 -11px 10px}.tw-day-appointment-primary{display:grid;grid-template-columns:78px 78px minmax(0,1fr) 40px;gap:6px}.tw-day-appointment-secondary{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:6px}.tw-day-options{display:flex;flex-wrap:wrap;gap:9px 14px;align-items:center;padding:9px 0;font-size:12px;color:var(--tw-muted)}.tw-day-options label{display:flex;align-items:center;gap:6px}.tw-day-add-row{display:grid;grid-template-columns:1fr 40px;gap:6px}.tw-day-event-list,.tw-day-todo-list{display:grid;gap:6px}.tw-day-notes{width:100%;min-height:110px;resize:vertical}.tw-day-card-actions{display:flex;justify-content:flex-end;margin-top:7px}.tw-todo-row{display:flex;align-items:center;gap:8px;border:1px solid var(--tw-line);border-radius:7px;padding:8px}.tw-todo-check{width:18px;height:18px;accent-color:var(--tw-accent)}.tw-todo-text{flex:1;font-weight:600}.tw-todo-text.is-done{color:#929b98;text-decoration:line-through}.tw-todo-delete{width:30px;height:30px;border:0;border-radius:6px;background:#fff0ef;color:var(--tw-danger);font-size:18px;cursor:pointer}

/* ---------- board: focus mode{display:flex!important}body.tw-board-open #twBoard49Modal{inset:58px 0 0!important}#twBoard49ShowToolbarBtn{display:none!important}
#twBoard49Modal{background:var(--tw-900)!important}.tw49-tool-toggle{display:none!important}
#twBoard49HeaderBar{min-height:50px!important;background:linear-gradient(180deg,#1a2230,#141c29)!important;border:0!important;border-bottom:1px solid #0d100f!important;box-shadow:none!important;padding:6px 10px!important;color:#eaeef6!important;overflow:visible!important}.tw-ui-header-left{display:flex!important;align-items:center!important;gap:10px!important;min-width:0!important;overflow:hidden!important}.tw-ui-brand{display:flex!important;align-items:center!important;gap:10px!important;white-space:nowrap!important}.tw-ui-brand-word{font-size:17px!important;font-weight:700!important;color:#f3f6f5!important;letter-spacing:-.025em}.tw-ui-brand-word>span{color:#31b8ae}.tw-ui-brand-mode{font-size:12px;color:#c4cdca;padding-left:10px;border-left:1px solid #48504e}.tw-ui-title-stack{min-width:0}.tw-ui-board-title{font-size:12px!important;color:#eaeef6!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tw-ui-board-subtitle{font-size:9.5px!important;color:#8f9a97!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tw-ui-page-pill,.tw-ui-header-divider,.tw-ui-header-date,#twBoard49JsStatusModal{display:none!important}#twBoard49CloudSyncBadge{font-size:9px!important;background:#2a3446!important;color:#bac4c1!important;border:1px solid #35403d!important;border-radius:6px!important;padding:4px 6px!important}.tw-ui-header-actions{display:flex!important;gap:5px!important;align-items:center!important;overflow:visible!important;flex-wrap:nowrap!important}#twBoard49UndoBtn,#twBoard49RedoBtn,#twBoard49ExportBtn,#twBoard49FullscreenBtn,#twBoard49FullscreenExitBtn,#twBoard49PresentModeBtn,#twBoard49RefreshCloudBtn,#twBoard49HistoryBtn,#twBoard49ResetStorageBtn,#twBoard49StartCheckBtn{display:none!important}#twBoard49SaveBtn,#twBoard49PdfExportBtn,#twBoard49ShareQrBtn,.tw-board-more>summary{height:36px!important;min-height:36px!important;border-radius:7px!important;padding:0 10px!important;display:inline-flex!important;align-items:center!important;gap:6px!important;font:600 11.5px TWAssistant,system-ui,sans-serif!important;box-shadow:none!important;white-space:nowrap!important}#twBoard49SaveBtn{background:#2d4a8a!important;border:1px solid #3d6fb5!important;color:#fff!important}#twBoard49PdfExportBtn,#twBoard49ShareQrBtn,.tw-board-more>summary{background:#252d2b!important;border:1px solid #3b4643!important;color:#eaeef6!important}#twBoard49CloseBtn{width:36px!important;height:36px!important;min-height:36px!important;padding:0!important;border:0!important;border-radius:7px!important;background:transparent!important;color:#dbe1df!important;font-size:22px!important}.tw-board-head-icon{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}.tw-board-more{position:relative;flex:none}.tw-board-more>summary{list-style:none;cursor:pointer}.tw-board-more>summary::-webkit-details-marker{display:none}.tw-board-moremenu{position:absolute;right:0;top:42px;width:246px;padding:5px;background:#16202e;border:1px solid #3b4542;border-radius:8px;box-shadow:0 18px 42px rgba(0,0,0,.38);z-index:2147483600}.tw-board-moremenu button{width:100%;border:0;background:transparent;color:#eaeef6;border-radius:5px;padding:9px 10px;text-align:left;display:grid;gap:2px;cursor:pointer}.tw-board-moremenu button:hover{background:#303936}.tw-board-moremenu button span{font-weight:650}.tw-board-moremenu button small{font-size:10.5px;color:#9aa5a2}.tw-board-moremenu button.is-danger{color:#ffaaa4;border-top:1px solid #39423f;margin-top:3px;border-radius:0 0 5px 5px}
#twBoard49ToolbarStageRow{display:flex!important;align-items:stretch!important;min-height:0!important;background:var(--tw-900)!important}#twBoard49Toolbar.tw-ui-rail-mode{position:relative!important;left:auto!important;top:auto!important;bottom:auto!important;z-index:auto!important;flex:0 0 var(--tw-board-rail-current)!important;width:var(--tw-board-rail-current)!important;max-width:var(--tw-board-rail-current)!important;border:0!important;border-right:1px solid #0d100f!important;border-radius:0!important;background:var(--tw-850)!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;padding:7px 6px!important;overflow-y:auto!important;overflow-x:hidden!important;scrollbar-width:none!important}#twBoard49Toolbar.tw-ui-rail-mode::-webkit-scrollbar{display:none}#twBoard49Toolbar.tw-ui-rail-collapsed{--tw-board-rail-current:64px!important;flex-basis:64px!important;width:64px!important;max-width:64px!important}
#twBoard49BubbleStrip{display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;align-items:stretch!important;gap:2px!important;margin:0!important;width:100%!important;min-height:100%!important;padding:0!important}.tw-ui-rail-section{font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.085em;color:#58beb6;padding:11px 7px 4px}.tw-ui-rail-toggle,#twBoard49BubbleStrip .tw-ui-rail-item{width:100%!important;min-height:42px!important;height:42px!important;margin:0!important;border:1px solid transparent!important;border-radius:6px!important;background:transparent!important;color:#cbd3d1!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:9px!important;padding:0 9px!important;text-align:left!important;cursor:pointer!important;box-shadow:none!important}.tw-ui-rail-toggle{position:sticky!important;z-index:30!important;background:#232b28!important;border-color:#37413e!important;color:#eaeef6!important;font-weight:700!important}.tw-ui-rail-toggle:first-child{top:0!important;margin-bottom:2px!important}.tw-ui-rail-toggle:last-child{bottom:0!important;margin-top:7px!important;box-shadow:0 -8px 16px rgba(18,22,21,.78)!important}.tw-ui-rail-icon{width:22px;display:grid;place-items:center;flex:none}.tw-ui-rail-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}.tw-ui-rail-label{display:block!important;font-size:11px!important;font-weight:650!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.tw-ui-rail-item:hover,.tw-ui-primary-active,.tw-ui-primary-tool[aria-pressed=true]{background:#2b3532!important;color:#fff!important}.tw-ui-primary-active,.tw-ui-primary-tool[aria-pressed=true]{box-shadow:inset -3px 0 0 #2fc0b5!important;background:#23413e!important}.tw-ui-team-status{margin-left:auto;width:7px;height:7px;border-radius:50%}#twBoard49BubbleStrip button[data-bubble=pens]{display:none!important}#twUiRailHideBtn,#twUiRailHideBtnBottom{display:none!important}
#twBoard49Toolbar.tw-ui-rail-collapsed .tw-ui-rail-section,#twBoard49Toolbar.tw-ui-rail-collapsed .tw-ui-rail-label{display:none!important}#twBoard49Toolbar.tw-ui-rail-collapsed .tw-ui-rail-toggle,#twBoard49Toolbar.tw-ui-rail-collapsed #twBoard49BubbleStrip .tw-ui-rail-item{justify-content:center!important;padding:0!important;gap:0!important}#twBoard49Toolbar.tw-ui-rail-collapsed .tw-ui-rail-toggle span{display:none!important}
#twBoard49StageWrap{flex:1 1 auto!important;min-width:0!important;padding:10px!important;background:var(--tw-900)!important;overflow:auto!important}#twBoard49Stage{border-radius:4px!important;box-shadow:0 3px 16px rgba(0,0,0,.36)!important}
#twBoard49PenFloatMenu{left:calc(var(--tw-board-rail-current) + (100vw - var(--tw-board-rail-current))/2)!important;transform:translateX(-50%)!important;width:min(720px,calc(100vw - var(--tw-board-rail-current) - 18px))!important;max-width:none!important;bottom:10px!important;border-radius:9px!important;padding:7px 9px!important;background:rgba(27,32,30,.96)!important;border:1px solid #39423f!important;box-shadow:0 8px 24px rgba(0,0,0,.28)!important}.tw-pen-tool-label{font-size:10px;font-weight:700;color:#dbe1df}
/* Floating tool cards share the adaptive action-card skin in menu-chrome.css. */

/* ---------- board overview: compact library, not accordion dashboard ---------- */
.tw-board-overview{max-width:1180px;margin:0 auto;padding:2px 0 28px}.tw-board-overview-head{display:flex;align-items:flex-end;gap:16px;margin-bottom:14px}.tw-board-overview-title>span{display:block;font-size:10px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:var(--tw-accent);margin-bottom:2px}.tw-board-overview-title h1{font-size:26px;line-height:1.05;margin:0;letter-spacing:-.025em}.tw-board-overview-title p{margin:5px 0 0;color:var(--tw-muted);font-size:12px}.tw-ui-board-overview-actions{margin-left:auto;display:flex;align-items:center;gap:7px;min-width:min(560px,52vw)}.tw-board-overview-search{height:40px;flex:1;display:flex;align-items:center;gap:7px;border:1px solid var(--tw-line);background:#fff;border-radius:7px;padding:0 10px}.tw-board-overview-search svg{width:17px;height:17px;fill:none;stroke:#75807d;stroke-width:1.8}.tw-board-overview-search input{min-width:0;flex:1;border:0!important;outline:0;background:transparent;font-size:12px;color:var(--tw-text);padding:0!important}.tw-board-overview button{border-radius:7px!important}
.tw-board-section-head{display:flex;align-items:center;justify-content:space-between;margin:16px 0 8px}.tw-board-section-head>div{display:grid}.tw-board-section-head b{font-size:15px}.tw-board-section-head span{font-size:10.5px;color:var(--tw-muted);margin-top:1px}.tw-board-recent-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.tw-board-recent-card{min-width:0;border:1px solid var(--tw-line)!important;background:#fff!important;padding:0!important;overflow:hidden;text-align:left;display:grid;grid-template-rows:88px auto;cursor:pointer}.tw-board-recent-card:hover{border-color:#b7c9c5!important}.tw-board-recent-thumb{position:relative;display:block;background:#f9faf9;border-bottom:1px solid var(--tw-line);overflow:hidden}.tw-board-recent-thumb:before{content:"";position:absolute;inset:0;background:repeating-linear-gradient(#dfe5e3 0 1px,transparent 1px 17px);opacity:.62}.tw-board-recent-thumb i{position:absolute;left:13px;top:14px;width:3px;height:42px;background:var(--tw-accent);opacity:.55}.tw-board-recent-thumb b{position:absolute;left:23px;top:15px;right:12px;color:#45504d;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tw-board-recent-thumb em{position:absolute;left:23px;right:26px;height:4px;border-radius:2px;background:#87918e;opacity:.24}.tw-board-recent-thumb em:nth-of-type(1){top:37px}.tw-board-recent-thumb em:nth-of-type(2){top:52px;right:55px}.tw-board-recent-copy{padding:8px 9px;display:grid;min-width:0}.tw-board-recent-copy>b{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tw-board-recent-copy>small{font-size:9.5px;color:var(--tw-muted);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tw-board-structure-head{margin-top:20px}.tw-ui-board-folder{border-top:1px solid var(--tw-line);background:#fff}.tw-ui-board-folder:last-child{border-bottom:1px solid var(--tw-line)}.tw-ui-board-folder-head{min-height:48px;display:flex;align-items:center;gap:8px;padding:0 8px;cursor:pointer}.tw-ui-board-folder-head:hover{background:#f7faf9}.tw-ui-board-folder-title-wrap,.tw-ui-board-subfolder-title-wrap{display:flex;align-items:center;gap:8px;min-width:0;flex:1}.tw-ui-board-folder-arrow{font-size:18px;color:#7b8582;width:13px;text-align:center;transition:transform .12s}.tw-ui-board-folder-head[aria-expanded=true] .tw-ui-board-folder-arrow,.tw-ui-board-subfolder-head[aria-expanded=true] .tw-ui-board-folder-arrow{transform:rotate(90deg)}.tw-ui-board-folder-icon,.tw-ui-board-subfolder-icon{width:20px;height:15px;border-radius:3px;background:#aebdb9;position:relative;flex:none}.tw-ui-board-folder-icon:before,.tw-ui-board-subfolder-icon:before{content:"";position:absolute;left:1px;top:-4px;width:9px;height:5px;border-radius:3px 3px 0 0;background:inherit}.tw-ui-board-folder-title{font-size:13px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tw-ui-board-folder-count,.tw-ui-board-subfolder-count{font-size:10px;color:var(--tw-muted);background:#eaeef6;border-radius:999px;padding:2px 6px}.tw-ui-board-folder-add{height:31px!important;border:1px solid #cce2df!important;background:#eff8f7!important;color:#08726b!important;padding:0 9px!important;font-size:10px!important;font-weight:700!important;cursor:pointer}.tw-ui-board-folder-body{padding:0 0 4px 26px}.tw-ui-board-subfolder{border-left:1px solid #e4e9e7;margin-left:6px}.tw-ui-board-subfolder-head{min-height:39px;display:flex;align-items:center;padding:0 7px;gap:6px;cursor:pointer}.tw-ui-board-subfolder-head:hover{background:#fafcfc}.tw-ui-board-subfolder-title{font-size:11.5px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tw-ui-board-subfolder-body{display:grid;gap:4px!important;padding:2px 7px 7px 21px!important}.tw-ui-board-folder-empty{padding:10px;border:1px dashed #ccd6d3;border-radius:6px;color:var(--tw-muted);font-size:10px;line-height:1.4;background:#f9fafc}.tw-ui-board-row{display:flex;align-items:center;gap:8px;min-height:54px;border:1px solid var(--tw-line);background:#fff;border-radius:7px;padding:7px 7px 7px 10px}.tw-ui-board-row:hover{border-color:#b9cbc7}.tw-ui-board-row-info{min-width:0;flex:1;display:grid}.tw-ui-board-row-title{font-size:12px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tw-ui-board-row-subtitle{font-size:9.5px;color:var(--tw-muted);margin-top:2px}.tw-board-sync{width:max-content;display:inline-flex;align-items:center;gap:4px;font-size:8.5px;color:#7b8582;margin-top:2px}.tw-board-sync i{width:5px;height:5px;border-radius:50%;background:#6e9c73}.tw-board-sync.is-syncing i{background:#ba8b3b}.tw-board-sync.is-local i{background:#8b9692}.tw-ui-board-row-actions{display:flex;align-items:center;gap:4px}.tw-board-row-open{height:31px;border:0;background:var(--tw-accent);color:#fff;padding:0 10px;font-size:10px;font-weight:700;cursor:pointer}.tw-board-row-menu{position:relative}.tw-board-row-menu>summary{list-style:none;width:31px;height:31px;display:grid;place-items:center;border:1px solid var(--tw-line);border-radius:6px;color:#66716e;cursor:pointer}.tw-board-row-menu>summary::-webkit-details-marker{display:none}.tw-board-row-menu>div{position:absolute;right:0;top:34px;min-width:190px;background:#fff;border:1px solid var(--tw-line);border-radius:7px;padding:4px;box-shadow:var(--tw-shadow);z-index:120}.tw-board-row-menu button{width:100%;border:0;background:transparent;padding:8px 9px;text-align:left;font-size:10.5px;color:var(--tw-text);cursor:pointer}.tw-board-row-menu button:hover{background:#f1f5f4}.tw-board-row-menu button.is-danger{color:var(--tw-danger)}.tw-board-row-menu button.is-strong{font-weight:700}

@media(max-width:980px){.tw-workspace-host{inset:56px 0 0}.tw-workspace-content{padding:14px 16px 28px}
 .tw-plan-layout{grid-template-columns:190px minmax(0,1fr)}.tw-plan-columns{grid-template-columns:210px minmax(0,1fr)}.tw-plan-recent{display:none}.tw-plan-create{grid-template-columns:minmax(120px,1fr) 140px auto}
 .tw-day-workspace{grid-template-columns:1fr}.tw-pb-week-timeline-scroll{max-height:calc(100vh - 245px)}
}

@media(max-width:620px){
 :root{--tw-board-rail-current:124px}
 .tw-workspace-content{padding:8px 0 24px}body.tw-section-plan .tw-workspace-content,body.tw-section-calendar .tw-workspace-content{padding-top:8px}

 /* Mobile Planung: dieselbe Fach -> Ordner -> Stunde-Hierarchie wie im freigegebenen Entwurf, wirklich dreispaltig statt Karten/Streifen. */
 .tw-plan-layout{display:grid;grid-template-columns:102px minmax(0,1fr);min-height:calc(100vh - 64px);border:0;border-radius:0;background:#fff;overflow:hidden}.tw-plan-subjects{min-height:0;border:0;border-right:1px solid var(--tw-line);background:#fbfcfc;padding:0}.tw-plan-subjects>div:first-child{display:block;padding:10px 7px 6px;font-size:8.5px}.tw-plan-subject-tools,.tw-plan-recent{display:none}.tw-plan-subject-list{display:grid;gap:0;overflow:visible;padding:0}.tw-plan-subject-row{height:46px;min-width:0;max-width:none;width:100%;grid-template-columns:22px minmax(0,1fr);border-left:3px solid transparent;border-bottom:0;border-radius:0;padding:0 6px;gap:5px}.tw-plan-subject-row.is-active,.tw-plan-subject-row[aria-current=true]{border-left-color:var(--tw-accent);border-bottom:0}.tw-plan-subject-row img{width:22px;height:22px;border-radius:5px}.tw-plan-subject-glyph{width:22px;height:22px;font-size:8px}.tw-plan-subject-row>span:not(.tw-plan-subject-count){display:block!important;font-size:9px;line-height:1.05;white-space:normal;overflow:hidden;max-height:22px}.tw-plan-subject-count{display:none}.tw-plan-detail{min-width:0;background:#fff}.tw-plan-subject-head{height:43px;padding:0 7px}.tw-plan-subject-kicker{display:none}.tw-plan-subject-summary{gap:4px;min-width:0}.tw-plan-subject-summary b{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tw-plan-subject-summary span{display:none}.tw-plan-columns{display:grid;grid-template-columns:104px minmax(0,1fr);min-height:calc(100vh - 107px)!important}.tw-plan-folder-pane{min-width:0;border:0;border-right:1px solid var(--tw-line);padding:6px 5px;background:#fcfdfd}.tw-plan-pane-head{height:28px;padding:0 1px 4px;font-size:9px}.tw-plan-pane-head .tw-iconbtn{width:27px;height:27px;font-size:17px}.tw-plan-folder-nav{display:grid;gap:2px;overflow:visible;padding:0}.tw-plan-folder-row{padding-left:calc(min(var(--tw-depth,0),2)*4px);min-width:0}.tw-plan-folder-open{height:39px;min-width:0;max-width:none;width:100%;border:0;background:transparent;padding:0 5px;gap:5px}.tw-plan-folder-row.is-active .tw-plan-folder-open{background:var(--tw-accent-soft)}.tw-plan-folder-icon{width:15px;height:12px}.tw-plan-folder-name{font-size:9px;line-height:1.05}.tw-plan-folder-count{display:none}.tw-plan-folder-more>summary{width:23px;height:30px;font-size:11px}.tw-plan-folder-more>div{position:fixed;right:8px;top:105px;width:184px;z-index:2147482000}.tw-plan-lessons-pane{min-width:0;padding:0 6px 10px}.tw-plan-lessons-head{height:43px}.tw-plan-lessons-head b{font-size:13px}.tw-plan-lessons-head span{font-size:8.5px}.tw-plan-tabs{height:35px;margin-bottom:4px}.tw-plan-tabs button{height:34px;padding:0 5px;font-size:9px}.tw-plan-list-toolbar{height:22px;font-size:8.5px;margin-bottom:4px}.tw-plan-featured{border-radius:7px;border-left-width:3px}.tw-plan-featured-head{grid-template-columns:23px minmax(0,1fr) 25px;gap:5px;padding:8px 6px}.tw-plan-docicon{width:20px;height:25px}.tw-plan-featured-copy>b{font-size:11px;line-height:1.12}.tw-plan-featured-copy>small{font-size:8px;margin-top:3px}.tw-plan-featured-phases,.tw-plan-featured-notes{padding:7px 6px}.tw-plan-featured-sectionhead{font-size:9px;margin-bottom:4px}.tw-plan-timeline-item{grid-template-columns:43px minmax(0,1fr);gap:4px;padding:3px 0}.tw-plan-timechip{margin-left:9px;max-width:34px;padding:3px 3px;font-size:7.5px}.tw-plan-timeline-item b{font-size:9px}.tw-plan-timeline-item small{font-size:7.5px;line-height:1.18}.tw-plan-featured-notes p{font-size:8px}.tw-plan-featured-foot{padding:6px;gap:4px}.tw-plan-featured-foot .tw-btn{height:29px;padding:0 6px;font-size:8px}.tw-plan-lesson-row{min-height:45px;border-radius:6px}.tw-plan-lesson-main{gap:5px;padding:6px 5px}.tw-plan-lesson-copy b{font-size:9.5px}.tw-plan-lesson-copy small{font-size:7.5px}.tw-plan-lesson-actions{padding-right:2px}.tw-row-more summary{width:26px;height:28px}.tw-plan-create{grid-template-columns:minmax(0,1fr) 31px;gap:4px;margin-top:6px;padding-top:6px}.tw-plan-create input,.tw-plan-create select{height:32px;padding:0 5px;font-size:9px}.tw-plan-create select{grid-column:1/-1;grid-row:2}.tw-plan-create .tw-btn{grid-column:2;grid-row:1;width:31px;height:32px;font-size:0;padding:0}.tw-plan-create .tw-btn:after{content:"+";font-size:18px}

 /* Calendar mobile: compact controls and readable horizontal event chips. */
 .tw-calendar-view{padding:0 8px}.tw-calendar-topline{padding-top:3px;margin-bottom:8px}.tw-calendar-glyph{display:none}.tw-calendar-date-title{font-size:22px}.tw-calendar-view-label{display:block;font-size:10px}.tw-calendar-date-nav{gap:4px}.tw-calendar-date-nav .tw-iconbtn{width:34px;height:34px}.tw-calendar-date-nav .tw-btn{height:34px;padding:0 9px;font-size:11px}.tw-calendar-switcher{height:40px;margin-bottom:8px}.tw-calendar-switcher button{font-size:12px}.tw-calendar-tools{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 36px;gap:5px;margin-bottom:7px}.tw-calendar-tools>.tw-btn{height:36px;padding:0 7px;font-size:10.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tw-calendar-options{margin-left:0}.tw-calendar-options>summary{width:36px;height:36px}.tw-calendar-options-menu{position:fixed;right:8px;top:104px}.tw-calendar-exports{gap:5px;overflow-x:auto;scrollbar-width:none;margin-bottom:7px}.tw-calendar-exports::-webkit-scrollbar{display:none}.tw-calendar-exports .tw-btn{height:34px;flex:0 0 auto;font-size:10.5px;padding:0 9px}.tw-calendar-categories{border-left:0;border-right:0;border-radius:0;padding:7px 2px;display:block}.tw-calendar-categories>span{display:block;margin:0 4px 5px}.tw-pb-category-filter{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;padding:0 3px 2px}.tw-pb-category-filter::-webkit-scrollbar{display:none}.tw-pb-category-filter label,.tw-pb-category-filter button{flex:0 0 auto!important;padding:4px 7px!important;font-size:9.5px!important;min-height:28px!important}.tw-calendar-month-grid{border-left:0;border-right:0;border-radius:0}.tw-calendar-month-grid>.tw-calendar-weekday{height:30px;font-size:9.5px}.tw-calendar-day{min-height:72px!important;padding:3px!important}.tw-calendar-daynum{width:21px;height:21px;font-size:10px}.tw-calendar-events{gap:2px;margin-top:2px}.tw-month-event{height:17px;padding:0 2px;gap:2px}.tw-month-event-dot{width:5px;height:5px}.tw-month-event-title{font-size:7.7px}.tw-calendar-more{font-size:7.5px}.tw-day-appointment-primary{grid-template-columns:66px 66px minmax(0,1fr) 38px}.tw-day-appointment-secondary{grid-template-columns:1fr}.tw-day-card{border-radius:7px}.tw-plan-editor{padding:0 9px}.tw-plan-editor-head{align-items:flex-start}.tw-plan-editor-actions .tw-btn{font-size:0;width:36px;padding:0}.tw-plan-editor-actions .tw-btn:after{content:"‹";font-size:21px}.tw-plan-editor-meta{grid-template-columns:1fr 1fr}.tw-plan-editor-meta label:first-child{grid-column:1/-1}.tw-plan-phase-table{min-width:700px}

 /* Board overview mobile: search first, recent boards horizontally, hierarchy compact. */
 .tw-board-overview{padding:0 8px 20px}.tw-board-overview-head{display:grid;gap:8px;margin-bottom:10px}.tw-board-overview-title h1{font-size:21px}.tw-board-overview-title p{font-size:10px}.tw-ui-board-overview-actions{margin:0;min-width:0;display:grid;grid-template-columns:minmax(0,1fr) auto 34px;gap:5px}.tw-board-overview-search{height:36px;padding:0 7px}.tw-board-overview-search input{font-size:10px}.tw-ui-board-overview-actions .tw-btn{height:36px;padding:0 8px;font-size:10px}.tw-ui-board-overview-actions .tw-iconbtn{width:34px;height:36px}.tw-board-section-head{margin:12px 0 6px}.tw-board-recent-grid{display:flex;overflow-x:auto;gap:6px;scrollbar-width:none}.tw-board-recent-grid::-webkit-scrollbar{display:none}.tw-board-recent-card{flex:0 0 152px;grid-template-rows:70px auto}.tw-board-recent-copy{padding:6px 7px}.tw-ui-board-folder-head{min-height:44px;padding:0 4px}.tw-ui-board-folder-body{padding-left:10px}.tw-ui-board-subfolder{margin-left:2px}.tw-ui-board-subfolder-body{padding-left:10px!important;padding-right:3px!important}.tw-ui-board-row{min-height:49px;padding:5px}.tw-ui-board-row-title{font-size:10.5px}.tw-ui-board-row-subtitle{font-size:8.5px}.tw-board-row-open{height:29px;padding:0 7px;font-size:9px}.tw-board-row-menu>summary{width:29px;height:29px}.tw-ui-board-folder-add{height:29px!important;padding:0 6px!important;font-size:9px!important}.tw-board-row-menu>div{position:fixed;right:8px;top:106px;width:190px;z-index:2147482000}

 /* Board on phone: rail consumes layout width instead of covering the canvas. */
 #twBoard49HeaderBar{min-height:48px!important;padding:5px 6px!important}.tw-ui-header-left{gap:6px!important;max-width:104px!important;flex:0 1 104px!important}.tw-ui-brand-word{display:none!important}.tw-ui-brand-mode{font-size:12px!important;border:0;padding:0!important;color:#eaeef6!important;font-weight:700!important}.tw-ui-title-stack,#twBoard49CloudSyncBadge{display:none!important}.tw-ui-header-actions{margin-left:auto!important;gap:3px!important;min-width:0!important}.tw-board-head-label{display:inline!important;font-size:9px!important}.tw-board-more>summary span{display:inline!important}#twBoard49SaveBtn,#twBoard49PdfExportBtn,#twBoard49ShareQrBtn,.tw-board-more>summary{height:34px!important;min-height:34px!important;padding:0 7px!important;gap:4px!important}.tw-board-head-icon{width:15px;height:15px}#twBoard49CloseBtn{width:32px!important;height:34px!important;min-height:34px!important}.tw-board-moremenu{position:fixed;right:6px;top:47px;width:min(250px,calc(100vw - 12px))}
 #twBoard49Toolbar.tw-ui-rail-mode{--tw-board-rail-current:124px!important;flex-basis:124px!important;width:124px!important;max-width:124px!important;padding:6px 4px!important}#twBoard49Toolbar.tw-ui-rail-collapsed{--tw-board-rail-current:64px!important;flex-basis:64px!important;width:64px!important;max-width:64px!important}.tw-ui-rail-section{padding:9px 7px 3px;font-size:8.5px}.tw-ui-rail-toggle,#twBoard49BubbleStrip .tw-ui-rail-item{min-height:40px!important;height:40px!important;padding:0 5px!important;gap:5px!important}.tw-ui-rail-label{font-size:9.5px!important}.tw-ui-rail-icon{width:20px}.tw-ui-rail-icon svg{width:19px;height:19px}#twBoard49StageWrap{padding:6px!important}#twBoard49PenFloatMenu{bottom:7px!important;width:calc(100vw - var(--tw-board-rail-current) - 12px)!important;padding:5px 6px!important;gap:5px!important}
}

@media(max-width:390px){
 :root{--tw-board-rail-current:112px}
 #twBoard49Toolbar.tw-ui-rail-mode{--tw-board-rail-current:112px!important;flex-basis:112px!important;width:112px!important;max-width:112px!important}.tw-plan-subject-row{min-width:0}.tw-calendar-tools>.tw-btn{font-size:9.5px}.tw-month-event-title{font-size:7px}
 .tw-ui-header-left{max-width:58px!important;flex-basis:58px!important}.tw-board-head-label{display:none!important}.tw-board-more>summary span{display:none!important}#twBoard49SaveBtn,#twBoard49PdfExportBtn,#twBoard49ShareQrBtn,.tw-board-more>summary{width:34px!important;padding:0!important;justify-content:center!important}
}
/* V621.2 KERNFIX Einklappen am PC: Die breite Leiste fuer grosse Bildschirme
   (ab 1400 px) stand SPAETER in der Datei als die eingeklappte Fassung und
   hatte dieselbe Spezifitaet, beide mit !important. Bei Gleichstand gewinnt
   die spaetere Regel - die eingeklappte Leiste wurde sofort wieder auf 192 px
   gezogen. Die Klasse wurde korrekt gesetzt, sie wirkte nur nie. Unter
   1400 px (iPad) griff die Regel nicht, deshalb trat es nur am Rechner auf.
   :not(.tw-ui-rail-collapsed) nimmt die eingeklappte Leiste aus. */
@media(min-width:1400px){.tw-workspace{max-width:1660px}.tw-plan-layout{grid-template-columns:240px minmax(0,1fr)}.tw-plan-columns{grid-template-columns:275px minmax(0,1fr)}#twBoard49Toolbar.tw-ui-rail-mode:not(.tw-ui-rail-collapsed){--tw-board-rail-current:192px!important;flex-basis:192px!important;width:192px!important;max-width:192px!important}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* V545 board workflow: the product bar stays available while teaching. */
body.tw-board-open .tw-ui-brand{display:none!important}
body.tw-board-open .tw-ui-header-left{flex:1 1 auto!important;max-width:none!important}
body.tw-board-open .tw-ui-title-stack{display:grid!important;min-width:0!important}
body.tw-board-open .tw-ui-board-title{font-size:12px!important}
body.tw-board-open #twBoard49HeaderBar{min-height:44px!important;padding-top:4px!important;padding-bottom:4px!important}

/* One dark material language for rail + quick pen controls. No white/glass island. */
#twBoard49PenFloatMenu.tw-ui-quickbar{background:#1a2230!important;background-color:#1a2230!important;background-image:none!important;color:#eaeef6!important;border:1px solid #39423f!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
#twBoard49PenFloatMenu.tw-ui-quickbar .tw-ui-quick-group{background:transparent!important;background-color:transparent!important;border-color:#2e3a4d!important;box-shadow:none!important}
#twBoard49PenFloatMenu.tw-ui-quickbar .tw-ui-quick-label{color:#899592!important}
#twBoard49PenFloatMenu.tw-ui-quickbar button{background:#222c3c!important;background-color:#222c3c!important;color:#e6ecea!important;border:1px solid #3a4542!important;box-shadow:none!important}
#twBoard49PenFloatMenu.tw-ui-quickbar button:hover,#twBoard49PenFloatMenu.tw-ui-quickbar button:focus-visible{background:#2e3a4d!important;color:#fff!important}
#twBoard49PenFloatMenu.tw-ui-quickbar input[type=range]{accent-color:#3a5da6!important}
#twBoard49PenFloatMenu.tw-ui-quickbar #twBoard49PenFloatSizeText{color:#ccd5e4!important}

@media(max-width:620px){
 body.tw-board-open #twBoard49Modal{inset:56px 0 0!important}
 body.tw-board-open .tw-ui-title-stack{display:grid!important}
 body.tw-board-open .tw-ui-header-left{max-width:120px!important;flex:0 1 120px!important}
 body.tw-board-open .tw-ui-board-subtitle{display:none!important}
}
@media(max-width:390px){body.tw-board-open .tw-ui-header-left{max-width:72px!important;flex-basis:72px!important}.tw-ui-board-title{font-size:10px!important}}


/* ---------- V546: unified planning (Fach -> Ordner -> Tafeln/Stunden) ---------- */
.tw-plan-content{display:grid;gap:12px}.tw-plan-content-section{min-width:0}.tw-plan-content-sectionhead{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin:3px 0 7px;padding:0 2px;color:var(--tw-muted)}.tw-plan-content-sectionhead b{font-size:11px;color:var(--tw-text)}.tw-plan-content-sectionhead span{font-size:9.5px}.tw-plan-board-list{display:grid;gap:7px}.tw-plan-board-row{min-height:58px;border:1px solid var(--tw-line);border-radius:8px;background:#fff;display:flex;align-items:center}.tw-plan-board-row:hover{border-color:#b8c9c5}.tw-plan-board-main{flex:1;min-width:0;border:0;background:transparent;display:flex;align-items:center;gap:10px;padding:9px 10px;text-align:left;cursor:pointer}.tw-plan-board-icon{width:28px;height:22px;border:1.5px solid var(--tw-accent);border-radius:4px;position:relative;flex:none}.tw-plan-board-icon:after{content:"";position:absolute;left:5px;right:5px;bottom:5px;height:1.5px;background:var(--tw-accent);box-shadow:0 -5px 0 var(--tw-accent)}.tw-plan-board-copy{display:grid;min-width:0}.tw-plan-board-copy b{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tw-plan-board-copy small{font-size:10.5px;color:var(--tw-muted);margin-top:2px}.tw-plan-loading{font-size:11px;color:var(--tw-muted);padding:8px}.tw-plan-board-empty .tw-btn{justify-self:center;margin-top:7px}.tw-plan-status{display:inline-flex;padding:1px 5px;border-radius:999px;font-size:.92em;font-weight:600}.tw-plan-status.is-planned{background:#e1f1ef;color:#08736c}.tw-plan-status.is-simple{background:#f0f3f2;color:#6c7774}.tw-plan-schema-empty{border:1px dashed #b9c8c5;border-radius:9px;background:#fbfdfc;padding:18px;display:flex;align-items:center;justify-content:space-between;gap:18px;margin:14px 0}.tw-plan-schema-empty>div{display:grid;gap:4px}.tw-plan-schema-empty b{font-size:14px}.tw-plan-schema-empty span{font-size:11.5px;color:var(--tw-muted);max-width:68ch}.tw-btn-danger{background:#fff;border-color:#e2c5c2;color:var(--tw-danger)}.tw-plan-editor-footer .tw-btn-danger{margin-right:auto}
/* Old modern-ui subject-card rules are intentionally overridden here. Subject images remain supported as small identity thumbnails, never large cards. */
#twPBSubjectView{padding:0!important}#twPBSubjectView .tw-plan-subject-row,#twPBSubjectView button[onclick*="twPBOpenSubject"]{width:100%!important;height:54px!important;min-width:0!important;max-width:none!important;padding:0 12px!important;border:0!important;border-left:3px solid transparent!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;display:grid!important;grid-template-columns:30px minmax(0,1fr) auto!important;align-items:center!important;gap:9px!important;text-align:left!important}#twPBSubjectView .tw-plan-subject-row.is-active,#twPBSubjectView button[onclick*="twPBOpenSubject"].is-active{background:var(--tw-accent-soft)!important;border-left-color:var(--tw-accent)!important}#twPBSubjectView .tw-plan-subject-row img,#twPBSubjectView button[onclick*="twPBOpenSubject"] img{width:28px!important;height:28px!important;min-width:28px!important;max-width:28px!important;min-height:28px!important;max-height:28px!important;border-radius:6px!important;object-fit:cover!important;box-shadow:none!important}#twPBSubjectView button[onclick*="twPBOpenSubject"] span{font-size:12px!important;color:inherit!important}

/* ---------- V546: board action bar — neutral, collapsible, consistent ---------- */
#twBoard49HeaderBar{background:#141c29!important;border-color:#303936!important;box-shadow:none!important;color:#edf2f0!important}.tw-ui-board-action-strip{display:none!important}.tw-ui-board-action-strip::-webkit-scrollbar{display:none}.tw-ui-board-action-strip.is-collapsed{display:none!important}.tw-ui-board-secondary-action{height:32px!important;min-height:32px!important;border:1px solid #3a4542!important;background:#222c3c!important;color:#e3e9e7!important;border-radius:6px!important;padding:0 9px!important;font-size:10.5px!important;font-weight:600!important;box-shadow:none!important;white-space:nowrap!important}.tw-ui-board-secondary-action:hover{background:#2e3a4d!important;color:#fff!important}.tw-ui-board-action-toggle{display:none!important}.tw-ui-board-action-toggle svg{width:17px;height:17px}.tw-ui-menu-only-action{display:none!important}.tw-ui-header-actions>#twBoard49SaveBtn{background:var(--tw-accent)!important;color:#fff!important;border:1px solid var(--tw-accent)!important}.tw-ui-header-actions>#twBoard49PdfExportBtn,.tw-ui-header-actions>#twBoard49ShareQrBtn,.tw-ui-header-actions>.tw-board-more>summary{background:#222c3c!important;color:#e7ecea!important;border:1px solid #39423f!important;box-shadow:none!important}.tw-ui-header-actions>#twBoard49CloseBtn{background:#222c3c!important;color:#e7ecea!important;border:1px solid #39423f!important;border-radius:6px!important}
/* Rail toggle stays fully readable; marker icon is now visually distinct from pen. */
.tw-ui-rail-toggle,.tw-board-collapse-top{white-space:nowrap!important;overflow:visible!important;text-overflow:clip!important;justify-content:flex-start!important}.tw-ui-rail-collapsed .tw-ui-rail-toggle span,.tw-ui-rail-collapsed .tw-board-collapse-top span{display:none!important}.tw-ui-rail-mode:not(.tw-ui-rail-collapsed) .tw-ui-rail-toggle span,.tw-ui-rail-mode:not(.tw-ui-rail-collapsed) .tw-board-collapse-top span{display:inline!important}

@media(max-width:620px){
 :root{--tw-board-rail-current:132px}
 #twPBSubjectView .tw-plan-subject-row,#twPBSubjectView button[onclick*="twPBOpenSubject"]{height:46px!important;padding:0 6px!important;grid-template-columns:24px minmax(0,1fr)!important;gap:6px!important}#twPBSubjectView .tw-plan-subject-row img,#twPBSubjectView button[onclick*="twPBOpenSubject"] img{width:22px!important;height:22px!important;min-width:22px!important;max-width:22px!important;min-height:22px!important;max-height:22px!important;border-radius:5px!important}#twPBSubjectView button[onclick*="twPBOpenSubject"] span{font-size:9px!important;line-height:1.08!important}.tw-plan-content{gap:8px}.tw-plan-content-sectionhead{margin-top:1px}.tw-plan-board-row{min-height:45px}.tw-plan-board-main{gap:5px;padding:6px 5px}.tw-plan-board-icon{width:20px;height:17px}.tw-plan-board-copy b{font-size:9.5px}.tw-plan-board-copy small{font-size:7.5px}.tw-plan-schema-empty{padding:10px;display:grid;gap:8px}.tw-plan-schema-empty b{font-size:11px}.tw-plan-schema-empty span{font-size:8.5px}.tw-plan-tabs button{padding:0 4px!important}.tw-ui-board-action-strip{min-height:38px;padding:3px 5px}.tw-ui-board-secondary-action{height:30px!important;min-height:30px!important;padding:0 7px!important;font-size:9px!important}
 #twBoard49Toolbar.tw-ui-rail-mode{--tw-board-rail-current:132px!important;flex-basis:132px!important;width:132px!important;max-width:132px!important}
 .tw-ui-rail-toggle,#twBoard49BubbleStrip .tw-ui-rail-item{padding-left:7px!important;padding-right:5px!important}.tw-ui-rail-label{font-size:9px!important}
}
@media(max-width:390px){:root{--tw-board-rail-current:124px}#twBoard49Toolbar.tw-ui-rail-mode{--tw-board-rail-current:124px!important;flex-basis:124px!important;width:124px!important;max-width:124px!important}}

/* ---------- V555: eine echte Fachzeile für ALLE Bereiche ---------- */
.tw-plan-layout{grid-template-columns:270px minmax(0,1fr)}
.tw-plan-subjects{overflow:visible!important}
#twPBSubjectView .tw-plan-subject-list{display:block!important;width:100%!important;min-width:0!important;overflow:visible!important}
#twPBExtraSubjectGrid{display:none!important}

/* Eine Zeile = normaler Vollbreiten-Button. Zaehler und Kontextmenü sind
   davon entkoppelt. Kein width:0, kein verschachteltes Flex/Grid. */
#twPBSubjectView .tw-plan-subject-shell{
  position:relative!important;
  display:block!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  margin:0!important;
  padding:0!important;
  overflow:visible!important;
  border:0!important;
  background:transparent!important;
  box-sizing:border-box!important;
}
#twPBSubjectView .tw-plan-subject-shell[hidden]{display:none!important}
#twPBSubjectView .tw-plan-subject-shell>.tw-plan-subject-row{
  position:relative!important;
  display:block!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  min-height:52px!important;
  height:auto!important;
  box-sizing:border-box!important;
  margin:0!important;
  padding:9px 84px 9px 14px!important;
  border:0!important;
  border-left:3px solid transparent!important;
  border-radius:0!important;
  background:transparent!important;
  color:var(--tw-text)!important;
  text-align:left!important;
  cursor:pointer!important;
  overflow:visible!important;
}
#twPBSubjectView .tw-plan-subject-shell>.tw-plan-subject-row:hover{background:#f0f5f4!important}
#twPBSubjectView .tw-plan-subject-shell>.tw-plan-subject-row.is-active,
#twPBSubjectView .tw-plan-subject-shell>.tw-plan-subject-row[aria-current=true]{background:var(--tw-accent-soft)!important;border-left-color:var(--tw-accent)!important;color:#23396b!important}
#twPBSubjectView .tw-plan-subject-shell>.tw-plan-subject-row img,
#twPBSubjectView .tw-plan-subject-glyph{display:none!important}
#twPBSubjectView .tw-plan-subject-shell>.tw-plan-subject-row>span[data-subject-label]{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  font-size:12px!important;
  font-weight:650!important;
  line-height:1.3!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
  hyphens:auto!important;
  overflow:visible!important;
  text-overflow:clip!important;
}
#twPBSubjectView .tw-plan-subject-shell>.tw-plan-subject-row>.tw-plan-subject-count{
  position:absolute!important;
  right:45px!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  display:grid!important;
  place-items:center!important;
  width:27px!important;
  min-width:27px!important;
  height:27px!important;
  margin:0!important;
  padding:0!important;
  border-radius:999px!important;
  background:#eef3f2!important;
  color:#66716e!important;
  font-size:11px!important;
  font-weight:700!important;
  font-variant-numeric:tabular-nums!important;
  line-height:1!important;
}
#twPBSubjectView .tw-plan-subject-shell>.tw-plan-subject-row.is-active>.tw-plan-subject-count{background:#d5ebe8!important;color:#08726b!important}
#twPBSubjectView .tw-plan-subject-more{
  position:absolute!important;
  right:6px!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  display:block!important;
  width:32px!important;
  min-width:32px!important;
  max-width:32px!important;
  height:34px!important;
  margin:0!important;
  padding:0!important;
  z-index:30!important;
  overflow:visible!important;
}
#twPBSubjectView .tw-plan-subject-more>summary{
  list-style:none!important;
  width:32px!important;
  height:34px!important;
  border:1px solid transparent!important;
  border-radius:6px!important;
  display:grid!important;
  place-items:center!important;
  color:#66726f!important;
  cursor:pointer!important;
  font-weight:800!important;
  line-height:1!important;
  user-select:none!important;
}
#twPBSubjectView .tw-plan-subject-more>summary::-webkit-details-marker{display:none!important}
#twPBSubjectView .tw-plan-subject-more>summary::marker{content:""}
#twPBSubjectView .tw-plan-subject-more[open]{z-index:200!important}
#twPBSubjectView .tw-plan-subject-more[open]>summary,
#twPBSubjectView .tw-plan-subject-more>summary:hover{background:#e8efed!important;border-color:#d9e2e0!important;color:#1a2230!important}
#twPBSubjectView .tw-plan-subject-more>div{
  position:absolute!important;
  right:0!important;
  left:auto!important;
  top:40px!important;
  width:176px!important;
  padding:4px!important;
  background:#fff!important;
  border:1px solid var(--tw-line)!important;
  border-radius:7px!important;
  box-shadow:0 14px 34px rgba(19,31,28,.18)!important;
  z-index:2147482000!important;
}
#twPBSubjectView .tw-plan-subject-more button{width:100%!important;min-height:36px!important;border:0!important;background:transparent!important;border-radius:5px!important;text-align:left!important;padding:7px 9px!important;font-size:11px!important;color:var(--tw-text)!important;cursor:pointer!important}
#twPBSubjectView .tw-plan-subject-more button:hover{background:#f0f4f3!important}
#twPBSubjectView .tw-plan-subject-more button.is-danger{color:var(--tw-danger)!important}
#twPBSubjectView .tw-plan-subject-group-title{
  display:block!important;
  width:100%!important;
  box-sizing:border-box!important;
  margin:2px 0 0!important;
  padding:14px 14px 6px!important;
  border-top:1px solid #eaeef6!important;
  color:#7a8582!important;
  font-size:9.5px!important;
  font-weight:750!important;
  line-height:1.2!important;
  letter-spacing:.075em!important;
  text-transform:uppercase!important;
  white-space:normal!important;
}
@media(max-width:980px){
  .tw-plan-layout{grid-template-columns:228px minmax(0,1fr)}
  #twPBSubjectView .tw-plan-subject-shell>.tw-plan-subject-row{min-height:50px!important;padding:8px 78px 8px 11px!important}
  #twPBSubjectView .tw-plan-subject-shell>.tw-plan-subject-row>.tw-plan-subject-count{right:42px!important}
}
@media(max-width:620px){
  .tw-plan-layout{grid-template-columns:150px minmax(0,1fr)!important}
  #twPBSubjectView .tw-plan-subject-shell>.tw-plan-subject-row{min-height:46px!important;padding:7px 36px 7px 8px!important}
  #twPBSubjectView .tw-plan-subject-shell>.tw-plan-subject-row>span[data-subject-label]{font-size:10px!important;line-height:1.22!important}
  #twPBSubjectView .tw-plan-subject-shell>.tw-plan-subject-row>.tw-plan-subject-count{display:none!important}
  #twPBSubjectView .tw-plan-subject-more{right:3px!important;width:28px!important;min-width:28px!important;max-width:28px!important;height:30px!important}
  #twPBSubjectView .tw-plan-subject-more>summary{width:28px!important;height:30px!important;font-size:10px!important}
  #twPBSubjectView .tw-plan-subject-more>div{position:fixed!important;left:auto!important;right:8px!important;top:104px!important;width:176px!important}
  #twPBSubjectView .tw-plan-subject-group-title{padding:10px 8px 4px!important;font-size:7.5px!important;letter-spacing:.05em!important}
}

/* Einheitliche neutrale Tafel-Aktionsfamilie. */
.tw-ui-header-actions>#twBoard49SaveBtn,.tw-ui-header-actions>#twBoard49PdfExportBtn,.tw-ui-header-actions>#twBoard49ShareQrBtn,.tw-ui-header-actions>.tw-board-more>summary,.tw-ui-header-actions>#twBoard49CloseBtn{background:#222c3c!important;color:#eaeef6!important;border:1px solid #3a4542!important;box-shadow:none!important}
.tw-ui-header-actions>#twBoard49SaveBtn{border-color:#426a65!important}
.tw-ui-header-actions>#twBoard49SaveBtn .tw-board-head-icon{stroke:#43c1b7!important}
.tw-ui-header-actions>#twBoard49PdfExportBtn .tw-board-head-icon,.tw-ui-header-actions>#twBoard49ShareQrBtn .tw-board-head-icon{stroke:#d7dfdc!important}
.tw-ui-header-actions>#twBoard49SaveBtn:hover,.tw-ui-header-actions>#twBoard49PdfExportBtn:hover,.tw-ui-header-actions>#twBoard49ShareQrBtn:hover,.tw-ui-header-actions>.tw-board-more>summary:hover,.tw-ui-header-actions>#twBoard49CloseBtn:hover{background:#303936!important;border-color:#4a5753!important;color:#fff!important}

/* ---------- V557: drei unabhaengige Scrollspalten in Planung ---------- */
/* Der Planungs-Workspace selbst bleibt stehen. Scrollen findet ausschliesslich
   in Faecher, Ordner und Inhalt statt. Kalender/Tafel werden nicht beeinflusst. */
body:is(.tw-section-plan,.tw-section-boards).tw-planning-columns-active .tw-workspace-host{
  overflow:hidden!important;
}
body:is(.tw-section-plan,.tw-section-boards).tw-planning-columns-active .tw-workspace{
  height:100%!important;
  min-height:0!important;
}
body:is(.tw-section-plan,.tw-section-boards).tw-planning-columns-active .tw-workspace-content{
  height:100%!important;
  min-height:0!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
}
body:is(.tw-section-plan,.tw-section-boards).tw-planning-columns-active #twPBPlanningView.tw-plan-layout{
  height:100%!important;
  min-height:0!important;
  max-height:100%!important;
  overflow:hidden!important;
}
body:is(.tw-section-plan,.tw-section-boards).tw-planning-columns-active #twPBSubjectView.tw-plan-subjects{
  height:100%!important;
  min-height:0!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain!important;
  -webkit-overflow-scrolling:touch!important;
  scrollbar-gutter:stable;
}
body:is(.tw-section-plan,.tw-section-boards).tw-planning-columns-active #twPBSubjectView.tw-plan-subjects>div:first-child{
  position:sticky!important;
  top:0!important;
  z-index:20!important;
  background:#fbfcfc!important;
}
body:is(.tw-section-plan,.tw-section-boards).tw-planning-columns-active #twPBLessonListView.tw-plan-detail{
  height:100%!important;
  min-height:0!important;
  overflow:hidden!important;
  grid-template-rows:auto minmax(0,1fr)!important;
}
body:is(.tw-section-plan,.tw-section-boards).tw-planning-columns-active #twPBSubjectHero.tw-plan-subject-head{
  min-height:64px!important;
  height:auto!important;
}
body:is(.tw-section-plan,.tw-section-boards).tw-planning-columns-active #twPBSubjectHero .tw-plan-subject-summary{
  display:flex!important;
  align-items:baseline!important;
  gap:9px!important;
  min-width:0!important;
}
body:is(.tw-section-plan,.tw-section-boards).tw-planning-columns-active #twPBSubjectHero .tw-plan-subject-summary b{
  color:var(--tw-text)!important;
}
body:is(.tw-section-plan,.tw-section-boards).tw-planning-columns-active #twPBSubjectHero .tw-plan-subject-kicker{
  display:none!important;
}
body:is(.tw-section-plan,.tw-section-boards).tw-planning-columns-active .tw-plan-columns{
  height:100%!important;
  min-height:0!important;
  max-height:100%!important;
  overflow:hidden!important;
}
body:is(.tw-section-plan,.tw-section-boards).tw-planning-columns-active .tw-plan-folder-pane{
  height:100%!important;
  min-height:0!important;
  box-sizing:border-box!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain!important;
  -webkit-overflow-scrolling:touch!important;
  scrollbar-gutter:stable;
}
body:is(.tw-section-plan,.tw-section-boards).tw-planning-columns-active .tw-plan-folder-pane .tw-plan-pane-head{
  position:sticky!important;
  top:0!important;
  z-index:18!important;
  background:#fcfdfd!important;
}
body:is(.tw-section-plan,.tw-section-boards).tw-planning-columns-active .tw-plan-lessons-pane{
  height:100%!important;
  min-height:0!important;
  box-sizing:border-box!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain!important;
  -webkit-overflow-scrolling:touch!important;
  scrollbar-gutter:stable;
}

@media(max-width:620px){
  body:is(.tw-section-plan,.tw-section-boards).tw-planning-columns-active #twPBSubjectHero.tw-plan-subject-head{
    min-height:43px!important;
  }
}

/* ===== V559: mobile header, direct board navigation, personalized chrome ===== */
:root{
  --tw-v559-chrome-solid:#1a2230;
  --tw-v559-chrome-bg:rgba(29,35,33,1);
  --tw-v559-chrome-alpha:1;
}
#twBoard49HeaderBar{
  background:var(--tw-v559-chrome-bg)!important;
  background-image:none!important;
  backdrop-filter:blur(16px)!important;
  -webkit-backdrop-filter:blur(16px)!important;
}
#twBoard49Toolbar.tw-ui-rail-mode{
  background:var(--tw-v559-chrome-bg)!important;
  background-image:none!important;
  backdrop-filter:blur(16px)!important;
  -webkit-backdrop-filter:blur(16px)!important;
}
#twBoard49PenFloatMenu.tw-ui-quickbar{
  background:var(--tw-v559-chrome-bg)!important;
  background-color:var(--tw-v559-chrome-bg)!important;
  background-image:none!important;
  backdrop-filter:blur(16px)!important;
  -webkit-backdrop-filter:blur(16px)!important;
}
/* V622.119: Die Breitenvariable nur an der Leiste und der Stiftleiste umstellen.
   Am body vererbte sie sich in das gesamte Dokument (auch die verborgen
   gemountete Planung) und erzwang beim Ausblenden/Einblenden eine
   Stilneuberechnung aller Elemente - auf Tablets mehrere Sekunden. */
body.tw-board-rail-hidden-v559 #twBoard49Toolbar{display:none!important;--tw-board-rail-current:0px!important}
body.tw-board-rail-hidden-v559 #twBoard49PenFloatMenu{
  --tw-board-rail-current:0px!important;
  left:50%!important;
  width:min(720px,calc(100vw - 18px))!important;
}

#twBoard49ToolbarReopenBtnV559{
  display:none;position:absolute;left:6px;top:50%;transform:translateY(-50%);z-index:2147482500;
  width:36px;height:58px;border:1px solid rgba(255,255,255,.22);border-left:0;border-radius:0 9px 9px 0;
  background:var(--tw-v559-chrome-bg);color:#eaeef6;place-items:center;font-size:27px;font-weight:500;cursor:pointer;
  box-shadow:0 5px 18px rgba(0,0,0,.22);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)
}
.tw-board-hide-entire-v559{
  width:30px;height:30px;flex:none;border:0;border-radius:6px;background:transparent;color:#aab4b1;
  display:grid;place-items:center;cursor:pointer;font-size:15px
}
.tw-board-hide-entire-v559:hover{background:rgba(255,255,255,.08);color:#fff}

/* V559: one compact sync indicator; never render both raw text + pseudo label. */
#twBoard49CloudSyncBadge{font-size:0!important;line-height:0!important;overflow:hidden!important;flex:none!important}
#twBoard49CloudSyncBadge::after{line-height:1!important}
@media(max-width:760px){
  #twBoard49CloudSyncBadge{
    display:inline-flex!important;width:30px!important;min-width:30px!important;max-width:30px!important;height:30px!important;
    padding:0!important;border-radius:7px!important;justify-content:center!important;
  }
  #twBoard49CloudSyncBadge::before{left:50%!important;transform:translateX(-50%)!important}
  #twBoard49CloudSyncBadge::after{display:none!important}
  #twBoard49HeaderBar .tw-ui-header-left{max-width:96px!important;flex:0 1 96px!important}
}
@media(max-width:820px){
}
@media(max-width:500px){
  #twAppPersonalizeV559{width:32px!important;height:32px!important}
  #twAppSearchBtn{display:none!important}
}

/* V559 personalization dialog */
.tw-chrome-customize-v559[hidden]{display:none!important}
.tw-chrome-customize-v559{
  position:fixed;inset:0;z-index:2147483646;display:grid;place-items:center;padding:16px;background:rgba(8,11,10,.48);
  backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)
}
.tw-chrome-customize-card-v559{
  width:min(390px,calc(100vw - 24px));background:#f7f9f8;color:#17201e;border:1px solid #d8dfdd;border-radius:14px;
  box-shadow:0 22px 70px rgba(0,0,0,.38);padding:16px;display:grid;gap:15px
}
.tw-chrome-customize-head-v559{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.tw-chrome-customize-head-v559>div{display:grid;gap:3px}.tw-chrome-customize-head-v559 b{font-size:17px}.tw-chrome-customize-head-v559 small{color:#64706d;font-size:11px}
.tw-chrome-customize-head-v559 button{width:32px;height:32px;border:0;background:#e8edeb;border-radius:7px;font-size:22px;cursor:pointer}
.tw-chrome-field-v559{display:grid;gap:8px;font-weight:700;font-size:12px}.tw-chrome-field-v559>span{display:flex;justify-content:space-between;gap:10px}
.tw-chrome-field-v559 input[type=color]{width:100%;height:44px;border:1px solid #ccd5d2;border-radius:8px;padding:3px;background:#fff}
.tw-chrome-field-v559 input[type=range]{width:100%}
.tw-chrome-preview-v559{height:48px;border-radius:9px;background:var(--tw-v559-preview,var(--tw-v559-chrome-bg));border:1px solid rgba(0,0,0,.16);display:grid;place-items:center;color:#fff;font-weight:700;text-shadow:0 1px 3px rgba(0,0,0,.65)}
.tw-chrome-actions-v559{display:flex;justify-content:flex-end;gap:8px}.tw-chrome-actions-v559 button{height:38px;padding:0 13px;border-radius:7px;border:1px solid #ccd5d2;background:#fff;font-weight:700;cursor:pointer}.tw-chrome-actions-v559 #twChromeSaveV559{background:#166f69;border-color:#166f69;color:#fff}

/* ===== V560: truly transparent/adaptive chrome + reliable controls ===== */
:root{
  --tw-v560-chrome-fg:#f5f8f7;
  --tw-v560-chrome-muted:rgba(245,248,247,.72);
  --tw-v560-chrome-border:rgba(255,255,255,.22);
  --tw-v560-control-bg:rgba(255,255,255,.10);
  --tw-v560-control-border:rgba(255,255,255,.22);
  --tw-v560-control-hover:rgba(255,255,255,.16);
  --tw-v560-chrome-shadow:rgba(0,0,0,.28);
}
#twBoard49HeaderBar,
#twBoard49ToolbarStageRow,
#twBoard49StageWrap,
#twBoard49Toolbar.tw-ui-rail-mode,
#twBoard49PenFloatMenu.tw-ui-quickbar{
  background:var(--tw-v559-chrome-bg)!important;
  background-color:var(--tw-v559-chrome-bg)!important;
  background-image:none!important;
  color:var(--tw-v560-chrome-fg)!important;
}
#twBoard49HeaderBar{border-color:var(--tw-v560-chrome-border)!important;box-shadow:none!important}
#twBoard49Toolbar.tw-ui-rail-mode{border:0!important;border-right:1px solid var(--tw-v560-chrome-border)!important;box-shadow:none!important}
#twBoard49PenFloatMenu.tw-ui-quickbar{border-color:var(--tw-v560-chrome-border)!important;box-shadow:0 8px 24px var(--tw-v560-chrome-shadow)!important}
#twBoard49StageWrap{box-shadow:none!important}

/* No dark fallback can shine through when the user explicitly chooses 0 %. */
body.tw-chrome-transparent-v560 #twBoard49Modal,
body.tw-chrome-transparent-v560 #twBoard49ToolbarStageRow,
body.tw-chrome-transparent-v560 #twBoard49StageWrap,
body.tw-chrome-transparent-v560 #twBoard49HeaderBar,
body.tw-chrome-transparent-v560 #twBoard49Toolbar.tw-ui-rail-mode,
body.tw-chrome-transparent-v560 #twBoard49PenFloatMenu.tw-ui-quickbar{
  background:transparent!important;background-color:transparent!important;background-image:none!important;
  border-color:transparent!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
}
body.tw-chrome-transparent-v560 #twBoard49ToolbarStageRow{border:0!important}
body.tw-chrome-transparent-v560 #twBoard49StageWrap{outline:0!important}

/* Board ribbon: compact status only, never a text chip that can overlap Save/PDF. */
#twBoard49CloudSyncBadge{
  position:relative!important;display:inline-grid!important;place-items:center!important;
  width:28px!important;min-width:28px!important;max-width:28px!important;height:28px!important;
  padding:0!important;margin:0!important;border:1px solid var(--tw-v560-control-border)!important;
  border-radius:7px!important;background:var(--tw-v560-control-bg)!important;color:var(--tw-v560-chrome-fg)!important;
  overflow:hidden!important;flex:0 0 28px!important;
}
#twBoard49CloudSyncBadge::after{display:none!important;content:none!important}
#twBoard49CloudSyncBadge::before{left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important;margin:0!important}
.tw-ui-brand-word,.tw-ui-brand-mode,.tw-ui-board-title{color:var(--tw-v560-chrome-fg)!important}.tw-ui-board-subtitle{color:var(--tw-v560-chrome-muted)!important}
.tw-ui-header-actions>#twBoard49SaveBtn,.tw-ui-header-actions>#twBoard49PdfExportBtn,.tw-ui-header-actions>#twBoard49ShareQrBtn,.tw-ui-header-actions>.tw-board-more>summary,.tw-ui-header-actions>#twBoard49CloseBtn{
  background:var(--tw-v560-control-bg)!important;color:var(--tw-v560-chrome-fg)!important;border-color:var(--tw-v560-control-border)!important;
}
.tw-ui-header-actions>#twBoard49SaveBtn:hover,.tw-ui-header-actions>#twBoard49PdfExportBtn:hover,.tw-ui-header-actions>#twBoard49ShareQrBtn:hover,.tw-ui-header-actions>.tw-board-more>summary:hover,.tw-ui-header-actions>#twBoard49CloseBtn:hover{background:var(--tw-v560-control-hover)!important;color:var(--tw-v560-chrome-fg)!important}

/* Left rail uses the same adaptive palette. */
#twBoard49Toolbar.tw-ui-rail-mode .tw-ui-rail-toggle,
#twBoard49Toolbar.tw-ui-rail-mode .tw-ui-rail-hide,
#twBoard49Toolbar.tw-ui-rail-mode #twBoard49BubbleStrip .tw-ui-rail-item{
  color:var(--tw-v560-chrome-fg)!important;border-color:transparent!important;background:transparent!important;
}
#twBoard49Toolbar.tw-ui-rail-mode .tw-ui-rail-toggle,
#twBoard49Toolbar.tw-ui-rail-mode .tw-ui-rail-hide-v560{background:var(--tw-v560-control-bg)!important;border-color:var(--tw-v560-control-border)!important}
#twBoard49Toolbar.tw-ui-rail-mode .tw-ui-rail-item:is(:hover,:active),
#twBoard49Toolbar.tw-ui-rail-mode .tw-ui-rail-toggle:is(:hover,:active),
#twBoard49Toolbar.tw-ui-rail-mode .tw-ui-rail-hide-v560:is(:hover,:active){background:var(--tw-v560-control-hover)!important;color:var(--tw-v560-chrome-fg)!important}
#twBoard49Toolbar.tw-ui-rail-mode .tw-ui-rail-section{color:var(--tw-v560-chrome-muted)!important}
.tw-ui-rail-hide-v560{margin:2px 0 5px!important;font-weight:750!important}
#twBoard49Toolbar.tw-ui-rail-collapsed .tw-ui-rail-hide-v560 .tw-ui-rail-label{display:none!important}

/* Quick pen bar: no fixed black controls after personalization. */
#twBoard49PenFloatMenu.tw-ui-quickbar .tw-ui-quick-group{background:transparent!important;border-color:var(--tw-v560-chrome-border)!important;box-shadow:none!important}
#twBoard49PenFloatMenu.tw-ui-quickbar .tw-ui-quick-label,#twBoard49PenFloatMenu.tw-ui-quickbar #twBoard49PenFloatSizeText{color:var(--tw-v560-chrome-muted)!important}
#twBoard49PenFloatMenu.tw-ui-quickbar button{
  background:var(--tw-v560-control-bg)!important;background-color:var(--tw-v560-control-bg)!important;
  color:var(--tw-v560-chrome-fg)!important;border-color:var(--tw-v560-control-border)!important;box-shadow:none!important;
}
#twBoard49PenFloatMenu.tw-ui-quickbar button:hover,#twBoard49PenFloatMenu.tw-ui-quickbar button:focus-visible{background:var(--tw-v560-control-hover)!important;color:var(--tw-v560-chrome-fg)!important}

/* Reopen handle follows the chosen palette and disappears into the edge at 0 %. */
#twBoard49ToolbarReopenBtnV559{background:var(--tw-v559-chrome-bg)!important;color:var(--tw-v560-chrome-fg)!important;border-color:var(--tw-v560-chrome-border)!important;box-shadow:0 5px 18px var(--tw-v560-chrome-shadow)!important}
body.tw-chrome-transparent-v560 #twBoard49ToolbarReopenBtnV559{background:rgba(255,255,255,.72)!important;color:#18201e!important;border-color:rgba(24,32,30,.18)!important;box-shadow:none!important}

/* Preview itself demonstrates the actual adaptive text color. */
.tw-chrome-preview-v559{color:var(--tw-v560-preview-fg,var(--tw-v560-chrome-fg))!important;text-shadow:none!important}
body.tw-board-open #twBoard49Modal,
body.tw-board-open-v562 #twBoard49Modal{
  inset:59px 0 0!important;
}
#twBoard49HeaderBar{
  margin:0!important;top:0!important;left:0!important;right:0!important;
  flex:0 0 auto!important;overflow:visible!important;
  border-top:0!important;
}
/* In board mode no planner/header text is allowed to collide with action buttons. */
body.tw-board-open #twBoard49HeaderBar .tw-ui-header-left,
body.tw-board-open-v562 #twBoard49HeaderBar .tw-ui-header-left{
  display:none!important;
}
body.tw-board-open #twBoard49HeaderBar .tw-ui-header-actions,
body.tw-board-open-v562 #twBoard49HeaderBar .tw-ui-header-actions{
  width:100%!important;max-width:100%!important;min-width:0!important;
  margin:0!important;justify-content:flex-start!important;
  overflow-x:auto!important;overflow-y:hidden!important;
  scrollbar-width:none!important;-webkit-overflow-scrolling:touch!important;
}
body.tw-board-open #twBoard49HeaderBar .tw-ui-header-actions::-webkit-scrollbar,
body.tw-board-open-v562 #twBoard49HeaderBar .tw-ui-header-actions::-webkit-scrollbar{display:none!important}
#twBoard49CloudSyncBadge{display:none!important}

/* Every visible board-header control uses the same visual treatment as Teilen. */
#twBoard49HeaderBar .tw-ui-header-actions>button,
#twBoard49HeaderBar .tw-ui-header-actions>details>summary{
  height:36px!important;min-height:36px!important;min-width:36px!important;
  padding:0 11px!important;border-radius:8px!important;
  background:var(--tw-v560-control-bg)!important;
  background-color:var(--tw-v560-control-bg)!important;
  background-image:none!important;
  color:var(--tw-v560-chrome-fg)!important;
  border:1px solid var(--tw-v560-control-border)!important;
  box-shadow:none!important;opacity:1!important;
  font-weight:700!important;
}
#twBoard49HeaderBar .tw-ui-header-actions>button:hover,
#twBoard49HeaderBar .tw-ui-header-actions>details>summary:hover{
  background:var(--tw-v560-control-hover)!important;
  background-color:var(--tw-v560-control-hover)!important;
  color:var(--tw-v560-chrome-fg)!important;
  border-color:var(--tw-v560-control-border)!important;
}
#twBoard49HeaderBar .tw-ui-header-actions button *,
#twBoard49HeaderBar .tw-ui-header-actions summary *{color:inherit!important}
#twBoard49HeaderBar .tw-ui-header-actions svg{stroke:currentColor!important;color:inherit!important}

/* At full transparency the rail floats OVER the board instead of exposing planner UI. */
body.tw-chrome-transparent-v560 #twBoard49ToolbarStageRow{position:relative!important}
body.tw-chrome-transparent-v560 #twBoard49Toolbar.tw-ui-rail-mode{
  position:absolute!important;left:0!important;top:0!important;bottom:0!important;
  z-index:40!important;margin:0!important;
  background:transparent!important;background-color:transparent!important;
  border:0!important;box-shadow:none!important;
}
body.tw-chrome-transparent-v560 #twBoard49StageWrap{
  flex:1 1 100%!important;width:100%!important;margin-left:0!important;
  background:transparent!important;background-color:transparent!important;
}
body.tw-chrome-transparent-v560.tw-board-rail-hidden-v560 #twBoard49Toolbar,
body.tw-chrome-transparent-v560.tw-board-rail-hidden-v559 #twBoard49Toolbar{display:none!important}

/* No legacy black hairlines after choosing a custom/transparent chrome. */
#twBoard49ToolbarStageRow,#twBoard49Toolbar,#twBoard49StageWrap,#twBoard49HeaderBar{
  outline:0!important;
}
body.tw-chrome-transparent-v560 #twBoard49ToolbarStageRow,
body.tw-chrome-transparent-v560 #twBoard49Toolbar,
body.tw-chrome-transparent-v560 #twBoard49StageWrap,
body.tw-chrome-transparent-v560 #twBoard49HeaderBar{
  border-color:transparent!important;box-shadow:none!important;
}

/* The full-hide action is always reachable at the top of the expanded rail. */
#twBoard49Toolbar.tw-ui-rail-mode .tw-ui-rail-hide-v560{
  display:flex!important;visibility:visible!important;opacity:1!important;
  position:relative!important;z-index:50!important;
}
@media(max-width:700px){
  #twBoard49HeaderBar .tw-ui-header-actions>button,
  #twBoard49HeaderBar .tw-ui-header-actions>details>summary{
    height:34px!important;min-height:34px!important;padding:0 9px!important;
  }
}

/* ===== V563: collision-free, content-sized pen quickbar ===== */
#twBoard49PenFloatMenu.tw-ui-quickbar{
  transform:none!important;
  box-sizing:border-box!important;
  min-width:0!important;
  scrollbar-width:none!important;
  -webkit-overflow-scrolling:touch!important;
}
#twBoard49PenFloatMenu.tw-ui-quickbar::-webkit-scrollbar{display:none!important}
#twBoard49PenFloatMenu.tw-ui-quickbar .tw-ui-quick-group{flex:0 0 auto!important}
#twBoard49PenFloatMenu.tw-ui-quickbar .tw-ui-quick-size{min-width:0!important;width:auto!important}
@media(max-width:700px){
  #twBoard49PenFloatMenu.tw-ui-quickbar .tw-ui-quick-size{min-width:0!important;width:auto!important}
}

/* ===== V569: unnötigen Leerraum neben Strichstärke entfernen ===== */
#twBoard49PenFloatMenu.tw-ui-quickbar:not(.tw-ui-quickbar-vertical) .tw-ui-quick-size{
  min-width:0!important;
  width:auto!important;
  flex:0 0 auto!important;
  padding-left:10px!important;
  padding-right:10px!important;
}
#twBoard49PenFloatMenu.tw-ui-quickbar:not(.tw-ui-quickbar-vertical) #twBoard49PenFloatSize{
  width:105px!important;
  flex:0 0 105px!important;
}
#twBoard49PenFloatMenu.tw-ui-quickbar:not(.tw-ui-quickbar-vertical) #twBoard49PenFloatSizeText{
  min-width:28px!important;
  width:auto!important;
  flex:0 0 auto!important;
}

/* V571.1: Die Breite klappt bereits in beiden Ansichten korrekt ein. Steht die
   Werkzeugleiste aber in der kompletten Ansicht (.tw-ui-toolbar-full), blieben
   Kopfzeile und Werkzeugabschnitte im 64px schmalen Kasten stehen. Im
   eingeklappten Zustand zählt nur noch die Icon-Leiste. */
#twBoard49Toolbar.tw-ui-toolbar-full.tw-ui-rail-collapsed{width:64px!important;min-width:64px!important;max-width:64px!important;flex-basis:64px!important;padding:7px 6px!important;overflow-x:hidden!important}
#twBoard49Toolbar.tw-ui-toolbar-full.tw-ui-rail-collapsed>*:not(#twBoard49BubbleStrip){display:none!important}

/* V571.2: Notizfeld zum Tag sitzt jetzt im Zeitleisten-Panel. */
.tw-day-notes-block{border-top:1px solid var(--tw-line);padding:0 13px 13px}
.tw-day-notes-block .tw-section-heading{margin:0 -13px 10px;border-bottom:1px solid var(--tw-line)}
.tw-day-notes-block .tw-day-notes{min-height:120px}

/* V571.3: Tagesnotizen wahlweise tippen oder mit dem Stift schreiben. */
.tw-day-notes-modes{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:0 0 8px}
.tw-day-notes-mode{height:32px;padding:0 11px;border:1px solid var(--tw-line);border-radius:7px;background:#fff;color:var(--tw-text);font-size:11.5px;font-weight:650;cursor:pointer}
.tw-day-notes-mode.is-active{background:var(--tw-accent-soft);border-color:#bfdfdc;color:var(--tw-accent)}
.tw-day-notes-tools{display:inline-flex;gap:5px;margin-left:auto}
.tw-day-ink-tool{height:32px;padding:0 9px;border:1px solid var(--tw-line);border-radius:7px;background:#fff;color:var(--tw-text);font-size:11px;cursor:pointer}
.tw-day-ink-tool.is-active{background:var(--tw-accent-soft);border-color:#bfdfdc;color:var(--tw-accent)}
.tw-day-ink-wrap{border:1px solid var(--tw-line);border-radius:8px;background:#fff;overflow:hidden}
.tw-day-ink-canvas{display:block;width:100%;height:auto;aspect-ratio:2/1;touch-action:none;cursor:crosshair}
/* V622.3: gleiches Bildformat auf allen Geraeten; Punkt am Knopf, wenn Handschrift vorhanden ist */
.tw-day-notes-mode.has-ink::after{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:currentColor;margin-left:6px;vertical-align:middle;opacity:.8}

/* V571.6: Tagesansicht - Notizen und To-dos rechts, Termine als Popup. */
.tw-day-timeline-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.tw-day-addappt{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 12px;border:0;border-radius:8px;background:var(--tw-accent);color:#fff;font-size:12px;font-weight:700;cursor:pointer;flex:none}
.tw-day-addappt span[aria-hidden]{font-size:18px;line-height:1}
.tw-day-addappt:hover{filter:brightness(1.06)}
.tw-day-dialog{position:fixed;inset:0;z-index:2147483000;display:flex;align-items:center;justify-content:center;padding:18px}
.tw-day-dialog[hidden]{display:none}
.tw-day-dialog-backdrop{position:absolute;inset:0;background:rgba(18,22,21,.5)}
.tw-day-dialog-card{position:relative;width:min(720px,100%);max-height:calc(100vh - 36px);display:flex;flex-direction:column;background:#fff;border:1px solid var(--tw-line);border-radius:12px;box-shadow:0 22px 56px rgba(0,0,0,.32);overflow:hidden}
.tw-day-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:13px 14px;border-bottom:1px solid var(--tw-line)}
.tw-day-dialog-head>div{display:grid}
.tw-day-dialog-head b{font-size:15px}
.tw-day-dialog-head span{font-size:11px;color:var(--tw-muted);margin-top:2px}
.tw-day-dialog-close{width:34px;height:34px;border:0;border-radius:7px;background:transparent;color:#66716e;font-size:24px;line-height:1;cursor:pointer;flex:none}
.tw-day-dialog-close:hover{background:#f1f5f4}
.tw-day-dialog-body{padding:13px 14px 16px;overflow:auto}
.tw-day-appointments-inner{display:block}
body.tw-day-dialog-open{overflow:hidden}
@media(max-width:620px){.tw-day-dialog{padding:0}.tw-day-dialog-card{width:100%;max-height:100vh;border-radius:0;border:0}.tw-day-addappt-label{display:none}.tw-day-addappt{padding:0 10px}}

/* V571.7: In der Schreibfläche darf der Stift nichts markieren oder auswählen. */
.tw-day-ink-wrap,.tw-day-ink-canvas{user-select:none!important;-webkit-user-select:none!important;-ms-user-select:none!important;-webkit-touch-callout:none!important}
.tw-day-ink-canvas{touch-action:none!important;-webkit-user-drag:none}

/* V571.7: App-Menüband als Schwebeknopf, Tafel-Kopfzeile ausblendbar. */
.tw-floatmenu-btn{position:fixed;z-index:2147483200;width:56px;height:56px;border:0;border-radius:50%;background:var(--tw-accent);color:#fff;box-shadow:0 8px 22px rgba(0,0,0,.28);display:grid;place-items:center;cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none}
.tw-floatmenu-btn.is-dragging{cursor:grabbing;transform:scale(1.05)}
.tw-floatmenu-btn svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.tw-floatmenu-panel{position:fixed;z-index:2147483210;min-width:230px;max-width:min(300px,calc(100vw - 16px));max-height:min(60vh,420px);overflow:auto;padding:6px;background:#fff;border:1px solid var(--tw-line);border-radius:10px;box-shadow:0 18px 44px rgba(0,0,0,.26)}
.tw-floatmenu-panel[hidden]{display:none}
.tw-floatmenu-item{display:block;width:100%;border:0;background:transparent;color:var(--tw-text);border-radius:7px;padding:10px 11px;text-align:left;font-size:12.5px;font-weight:600;cursor:pointer}
.tw-floatmenu-item:hover{background:#f1f5f4}
.tw-floatmenu-item.is-toggle{color:var(--tw-accent);font-weight:700}
.tw-floatmenu-sep{height:1px;background:var(--tw-line);margin:5px 4px}
body.tw-appshell-floating .tw-workspace-host{inset:0!important}
body.tw-appshell-floating.tw-board-open #twBoard49Modal{inset:0!important}
/* Tafel-Kopfzeile */
.tw-boardheader-hide{width:30px;height:30px;min-height:30px;border:0;border-radius:7px;background:transparent;color:#dbe1df;display:grid;place-items:center;cursor:pointer;flex:none}
.tw-boardheader-hide:hover{background:rgba(255,255,255,.1)}
.tw-boardheader-hide svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
body.tw-boardheader-hidden #twBoard49HeaderBar{display:none!important}
.tw-boardheader-show{position:fixed;top:6px;left:50%;transform:translateX(-50%);z-index:2147483100;width:44px;height:26px;border:1px solid #3b4643;border-radius:0 0 8px 8px;background:#232b28;color:#eaeef6;display:grid;place-items:center;cursor:pointer}
.tw-boardheader-show[hidden]{display:none}
.tw-boardheader-show svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* ===== V572: Deckkraft-Regler unter der Strichstärke ===== */
#twBoard49PenFloatMenu.tw-ui-quickbar .tw-ui-quick-size .tw-ui-quick-slider-row{display:flex!important;align-items:center!important;gap:4px!important;min-width:0!important}
#twBoard49PenFloatMenu.tw-ui-quickbar .tw-ui-quick-slider-row.is-disabled{opacity:.42!important}
#twBoard49PenFloatMenu.tw-ui-quickbar #twBoard49PenFloatOpacity{accent-color:#3a5da6!important;touch-action:none!important;margin:0!important}
#twBoard49PenFloatMenu.tw-ui-quickbar #twBoard49PenFloatOpacityText{font-size:10px!important;font-weight:900!important;white-space:nowrap!important}
#twBoard49PenFloatMenu.tw-ui-quickbar #twBoard49PenFloatSizeText,#twBoard49PenFloatMenu.tw-ui-quickbar #twBoard49PenFloatOpacityText{color:var(--tw-v560-chrome-muted,#ccd5e4)!important}
#twBoard49PenFloatMenu.tw-ui-quickbar .tw-ui-quick-label .tw-ui-lbl-short{display:none}
#twBoard49PenFloatMenu.tw-ui-quickbar.tw-ui-quickbar-vertical .tw-ui-quick-label .tw-ui-lbl-long{display:none}
#twBoard49PenFloatMenu.tw-ui-quickbar.tw-ui-quickbar-vertical .tw-ui-quick-label .tw-ui-lbl-short{display:inline}

/* waagerecht: zwei Zeilen übereinander */
#twBoard49PenFloatMenu.tw-ui-quickbar:not(.tw-ui-quickbar-vertical) .tw-ui-quick-size{flex-direction:column!important;align-items:stretch!important;justify-content:center!important;gap:0!important}
#twBoard49PenFloatMenu.tw-ui-quickbar:not(.tw-ui-quickbar-vertical) .tw-ui-quick-slider-row{height:17px!important;min-height:0!important;overflow:visible!important}
#twBoard49PenFloatMenu.tw-ui-quickbar:not(.tw-ui-quickbar-vertical) #twBoard49PenFloatSize,
#twBoard49PenFloatMenu.tw-ui-quickbar:not(.tw-ui-quickbar-vertical) #twBoard49PenFloatOpacity{width:105px!important;flex:0 0 105px!important;height:17px!important;min-height:0!important;margin:0!important;padding:0!important}
#twBoard49PenFloatMenu.tw-ui-quickbar:not(.tw-ui-quickbar-vertical) #twBoard49PenFloatSizeText,
#twBoard49PenFloatMenu.tw-ui-quickbar:not(.tw-ui-quickbar-vertical) #twBoard49PenFloatOpacityText{min-width:32px!important;width:32px!important;flex:0 0 32px!important;text-align:right!important;line-height:17px!important}

/* senkrecht: beide Regler nebeneinander, Wert jeweils darunter */
#twBoard49PenFloatMenu.tw-ui-quickbar.tw-ui-quickbar-vertical .tw-ui-quick-size{grid-template-columns:repeat(2,34px)!important;justify-items:center!important;min-height:0!important}
#twBoard49PenFloatMenu.tw-ui-quickbar.tw-ui-quickbar-vertical .tw-ui-quick-slider-row{flex-direction:column!important;position:relative!important;width:34px!important;gap:2px!important}
#twBoard49PenFloatMenu.tw-ui-quickbar.tw-ui-quickbar-vertical #twBoard49PenFloatSize,
#twBoard49PenFloatMenu.tw-ui-quickbar.tw-ui-quickbar-vertical #twBoard49PenFloatOpacity{width:80px!important;height:20px!important;transform:rotate(-90deg)!important;margin:30px -23px!important;flex:0 0 auto!important}
#twBoard49PenFloatMenu.tw-ui-quickbar.tw-ui-quickbar-vertical #twBoard49PenFloatSizeText,
#twBoard49PenFloatMenu.tw-ui-quickbar.tw-ui-quickbar-vertical #twBoard49PenFloatOpacityText{min-width:0!important;font-size:9px!important;text-align:center!important}

/* V574: Stärke-/Deckkraft-Gruppe so hoch wie die Knopfgruppen, damit die
   Stiftleiste nicht höher wird als vor V572. */
#twBoard49PenFloatMenu.tw-ui-quickbar:not(.tw-ui-quickbar-vertical) .tw-ui-quick-size{padding-bottom:0!important}

/* ===== V575: Stunde = Tafel + optionale Planung ===== */
.tw-plan-tabs[hidden],#twPBPlanningBoardsSection[hidden]{display:none!important}
#twPBPlanningLessonsSection{display:block!important}
#twAppNavLessonPlanV575{display:none!important}
body.tw-board-open #twAppNavLessonPlanV575{display:flex!important;position:relative}
body.tw-board-open #twAppNavLessonPlanV575::before{content:"";position:absolute;left:-1px;top:14px;bottom:14px;width:1px;background:rgba(255,255,255,.16)}
.tw-plan-lesson-actions{display:flex;align-items:center;gap:6px}
.tw-plan-row-planbtn-v575{padding:6px 10px!important;font-size:12px!important;white-space:nowrap}
.tw-plan-editor-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}

/* ===== V578: Lehrerplaner - eine Woche, Stunden als Zeilen ===== */
.tw-pb-teacher-scroll-v578{overflow:auto;background:#fff;border:1px solid var(--tw-line,#e4e8ef);border-radius:18px;padding:10px;margin-top:12px}
.tw-pb-teacher-grid-v578{display:grid;grid-template-columns:78px repeat(var(--tw-teacher-days-v578,5),minmax(150px,1fr));gap:6px;min-width:760px}
.tw-pb-teacher-corner-v578,.tw-pb-teacher-time-v578,.tw-pb-teacher-dayhead-v578{display:flex;flex-direction:column;justify-content:center;gap:2px;padding:8px;border-radius:10px;background:#eef1f6;color:#16202e}
.tw-pb-teacher-corner-v578 b,.tw-pb-teacher-time-v578 b,.tw-pb-teacher-dayhead-v578 b{font-size:14px;font-weight:900}
.tw-pb-teacher-corner-v578 small,.tw-pb-teacher-time-v578 small,.tw-pb-teacher-dayhead-v578 small{font-size:11px;color:#64708a}
.tw-pb-teacher-time-v578{cursor:pointer;align-items:center;text-align:center}
.tw-pb-teacher-dayhead-v578{align-items:center;text-align:center;background:#ebf0fa}
.tw-pb-teacher-dayhead-v578.is-today{background:#2d4a8a;color:#fff}
.tw-pb-teacher-dayhead-v578.is-today small{color:#ccd8ee}
.tw-pb-teacher-cell-v578{display:flex;align-items:stretch;gap:7px;min-height:64px;padding:7px 8px;text-align:left;border:1px solid #e4e8ef;border-radius:10px;background:#fff;cursor:pointer;font:inherit;color:#101826;width:100%}
.tw-pb-teacher-cell-v578:hover{border-color:#2d4a8a}
.tw-pb-teacher-cell-v578.is-today{background:#fbfdfc}
.tw-pb-teacher-cell-v578.is-filled{background:#ffffff}
.tw-pb-teacher-subject-v578{flex:0 0 6px;border-radius:4px;background:#64708a}
.tw-pb-teacher-cellcopy-v578{display:flex;flex-direction:column;gap:3px;min-width:0}
.tw-pb-teacher-cellcopy-v578 b{font-size:14px;font-weight:800;line-height:1.2;overflow-wrap:anywhere}
.tw-pb-teacher-cellcopy-v578 small{font-size:11.5px;color:#64708a}
.tw-pb-teacher-add-v578{display:flex;align-items:center;justify-content:center;width:100%;color:#aab4c6;font-size:20px;font-weight:700}
.tw-pb-teacher-loose-v578{display:flex;flex-direction:column;gap:5px}
.tw-pb-teacher-note-v578{display:flex}
.tw-pb-teacher-note-v578 textarea{width:100%;min-height:72px;border:1px solid #e4e8ef;border-radius:10px;padding:7px;font:inherit;font-size:13px;background:#ffffff;resize:vertical}
.tw-pb-teacher-dialog-back-v578{position:fixed;inset:0;background:rgba(20,16,12,.45);display:flex;align-items:center;justify-content:center;z-index:1000001;padding:16px}
.tw-pb-teacher-dialog-v578{background:#ffffff;border-radius:18px;padding:18px;width:min(460px,100%);max-height:88vh;overflow:auto;box-shadow:0 18px 44px rgba(0,0,0,.3)}
.tw-pb-teacher-dialog-v578 h3{margin:0 0 12px;font-size:16px;color:#101826}
.tw-pb-teacher-hint-v578{margin:0 0 10px;font-size:12.5px;color:#64708a}
.tw-pb-teacher-form-v578{display:grid;gap:10px}
.tw-pb-teacher-form-v578 label{display:grid;gap:4px;font-size:12.5px;font-weight:800;color:#64708a}
.tw-pb-teacher-form-v578 input,.tw-pb-teacher-form-v578 select{border:1px solid #d3dae6;border-radius:10px;padding:9px;font-size:15px;background:#fff;color:#101826}
.tw-pb-teacher-times-v578{display:grid;gap:7px;margin-bottom:10px}
.tw-pb-teacher-timerow-v578{display:grid;grid-template-columns:64px 1fr 1fr 34px;gap:6px;align-items:center}
.tw-pb-teacher-timerow-v578 input{border:1px solid #d3dae6;border-radius:9px;padding:7px;font-size:14px;background:#fff;min-width:0}
.tw-pb-teacher-actions-v578{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.tw-pb-teacher-actions-v578 .is-danger{color:#a33}
@media (max-width:760px){.tw-pb-teacher-grid-v578{min-width:640px;grid-template-columns:60px repeat(var(--tw-teacher-days-v578,5),minmax(120px,1fr))}}
/* V578: vierter Umschalter "Planer" */
.tw-calendar-switcher{grid-template-columns:repeat(4,1fr)!important}

/* ===== V580: Stundenplan-Vorlage und Stunden verschieben ===== */
.tw-pb-teacher-cell-v578.is-draggable-v580{touch-action:none;cursor:grab}
.tw-pb-teacher-cell-v578.is-dragging-v580{opacity:.35}
.tw-pb-teacher-cell-v578.is-droptarget-v580{border-color:#2d4a8a;box-shadow:inset 0 0 0 2px #2d4a8a;background:#eef2fa}
.tw-pb-teacher-cellcopy-v578.is-template-v580 b{font-weight:700;color:#7e8aa1}
.tw-pb-teacher-cellcopy-v578.is-template-v580 small{color:#94a0b5}
.tw-pb-teacher-cell-v578.has-template-v580{background:repeating-linear-gradient(135deg,#fff,#fff 7px,#f9fafc 7px,#f9fafc 14px)}
.tw-pb-teacher-grid-v578.is-templatemode-v580 .tw-pb-teacher-cell-v578{border-style:dashed;border-color:#b3bccd}
.tw-pb-teacher-ghost-v580{position:fixed;transform:translate(-50%,-50%);z-index:1000002;pointer-events:none;display:flex;gap:7px;min-height:56px;padding:7px 8px;border-radius:10px;background:#ffffff;border:1px solid #2d4a8a;box-shadow:0 10px 26px rgba(0,0,0,.25)}
#twPBTeacherTemplateBtnV580.is-active{background:#2d4a8a;color:#fff}

/* V580.1: Bemerkungsfeld der Stundenplanung über die gesamte Breite */
.tw-plan-editor-notes label{display:grid!important;gap:5px}
#twPBEditRemarks{width:100%!important;box-sizing:border-box!important;min-height:130px;resize:vertical;font:inherit;font-size:15px;line-height:1.45}

/* ===== V581: Start und Ende einer Phase in einem Kästchen ===== */
.tw-plan-phase-table col.time{width:170px}
.tw-plan-phase-table col.duration{width:110px}
.tw-plan-phase-timebox-v581{display:flex;align-items:center;gap:4px;border:1px solid var(--tw-line,#e4e8ef);border-radius:7px;background:#fff;padding:4px 8px}
.tw-plan-phase-timebox-v581 input{border:0!important;background:transparent!important;padding:3px 0!important;font:inherit;font-size:15px;width:58px;min-width:0;text-align:center;color:var(--tw-text,#101826)}
.tw-plan-phase-timebox-v581 input:focus{outline:none;box-shadow:none}
.tw-plan-phase-end-v581{color:#64708a!important;pointer-events:none}
.tw-plan-phase-dash-v581{color:#94a0b5;font-weight:700}
.tw-plan-phase-dur-v581{text-align:center}
body.tw-ui-v511 .tw-plan-phase-timebox-v581 input:not([type="range"]):not([type="color"]){border:0!important;border-radius:0!important;background:transparent!important;padding:3px 0!important;box-shadow:none!important}

/* V621.2 FIX Ueberlagerte Beschriftung am Leistenende ("Team" und
   "Einklappen" uebereinander). Die beiden Einklappen-Knoepfe kleben per
   position:sticky oben bzw. unten an der Leiste und schieben sich beim
   Scrollen UEBER die Eintraege. Dafuer brauchen sie eine deckende Flaeche -
   sie hatten aber keine: "#twBoard49Toolbar #twBoard49BubbleStrip > button"
   in modern-ui.css setzt jeden Knopf der Leiste auf transparent, mit zwei
   Kennungen und !important. Die dunkle Flaeche weiter oben in dieser Datei
   kam dagegen nie an. Diese Regel fuehrt beide Kennungen plus eine Klasse
   und gewinnt damit. Farbe = Leistenfarbe, damit der Knopf wie ein Teil der
   Leiste aussieht, nicht wie ein aufgesetzter Kasten. */
#twBoard49Toolbar #twBoard49BubbleStrip > .tw-ui-rail-toggle{
  background:var(--tw-x-ink-800)!important;
}
#twBoard49Toolbar #twBoard49BubbleStrip > .tw-ui-rail-toggle:hover{
  background:var(--tw-x-ink-700)!important;
}
/* Die Knoepfe haben runde Ecken und etwas Abstand - an den Raendern lugten
   die darunter gescrollten Eintraege noch hervor. Ein deckender Schatten in
   Leistenfarbe schliesst die Luecke nach aussen und blendet nach innen weich
   aus, damit der Uebergang nicht wie eine harte Kante wirkt. */
#twBoard49Toolbar #twBoard49BubbleStrip > .tw-ui-rail-toggle:last-child{
  box-shadow:0 6px 0 6px var(--tw-x-ink-800),0 -14px 14px -2px var(--tw-x-ink-800)!important;
}
#twBoard49Toolbar #twBoard49BubbleStrip > .tw-ui-rail-toggle:first-child{
  box-shadow:0 -6px 0 6px var(--tw-x-ink-800),0 14px 14px -2px var(--tw-x-ink-800)!important;
}

/* V622.26: Mehrere Stunden in demselben Lehrerplaner-Zeitfenster bleiben
   vollständig sichtbar und einzeln bedienbar. */
.tw-pb-teacher-cell-v578.is-multi-v62226{display:flex;flex-direction:column;gap:6px;padding:6px;align-items:stretch;cursor:default}
.tw-pb-teacher-entry-v62226{display:flex;align-items:stretch;gap:7px;width:100%;min-height:48px;padding:6px 7px;text-align:left;border:1px solid #e4e8ef;border-radius:8px;background:#fff;color:#101826;font:inherit;cursor:pointer}
.tw-pb-teacher-entry-v62226:hover{border-color:#2d4a8a}
.tw-pb-teacher-entry-v62226.is-draggable-v580{touch-action:none;cursor:grab}
.tw-pb-teacher-entry-v62226.is-dragging-v580{opacity:.35}


/* V622.67: Touch-Stabilitaet. Die Stiftleiste darf auf iPad/Android/Touch-PC
   nicht vom WebKit/Chromium-Backdrop der Tafel abhaengen. */
html.tw-touch-stable-ui-v62266 #twBoard49PenFloatMenu.tw-ui-quickbar{
  background:#1a2230!important;background-color:#1a2230!important;background-image:none!important;
  color:#eaeef6!important;border-color:#39423f!important;
  backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
  box-shadow:0 8px 24px rgba(0,0,0,.28)!important;
}
html.tw-touch-stable-ui-v62266 #twBoard49PenFloatMenu.tw-ui-quickbar .tw-ui-quick-group{background:transparent!important;}
html.tw-touch-stable-ui-v62266 #twBoard49PenFloatMenu.tw-ui-quickbar .tw-ui-quick-label{color:#899592!important;}
html.tw-touch-stable-ui-v62266 #twBoard49PenFloatMenu.tw-ui-quickbar button{background:#222c3c!important;color:#e6ecea!important;border-color:#3a4542!important;}
#twBoard49HeaderBar,.tw-ui-header-actions{overflow:visible!important}
.tw-board-moremenu{max-width:calc(100vw - 16px);max-height:calc(100dvh - 72px);overflow-y:auto;overscroll-behavior:contain}
/* V622.110: independent health button, centered in either bar orientation.
   Fixed equal axes keep the status circle round under generic button styles. */
#twBoard49PenFloatMenu button#twPenHealthDotV62304{
  align-self:center!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
  flex:0 0 32px!important;width:32px!important;min-width:32px!important;max-width:32px!important;
  height:32px!important;min-height:32px!important;max-height:32px!important;
  padding:0!important;margin:0 4px!important;box-sizing:border-box!important;line-height:0!important;
}
#twBoard49PenFloatMenu button#twPenHealthDotV62304>span{
  display:block!important;flex:0 0 12px!important;
  width:12px!important;min-width:12px!important;max-width:12px!important;
  height:12px!important;min-height:12px!important;max-height:12px!important;
  aspect-ratio:1!important;border-radius:50%!important;transform:none!important;
}

/* V622.128: Datum/Beginn/Ende beim Anlegen einer Stunde, Beginn/Ende in der
   Planung, Fach und Ordner im Termin-Dialog. */
.tw-plan-create>#twPBNewLessonDate{flex:0 1 150px;min-width:120px}
.tw-plan-create>#twPBNewLessonStart,.tw-plan-create>#twPBNewLessonEnd{flex:0 1 108px;min-width:92px}
@media (min-width:981px){.tw-plan-editor-meta{grid-template-columns:2fr 1fr 1fr 118px 118px}.tw-plan-editor-meta label:first-child{grid-column:auto}}
.tw-pb-extra-subject-bar{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;align-items:end;margin:0 0 8px}
.tw-pb-extra-subject-bar label{display:grid;gap:4px;font-size:11px;font-weight:850;color:#64708a}
.tw-pb-extra-subject-bar select{width:100%;min-height:38px;border:1px solid #d3dae6;border-radius:11px;padding:8px 10px;background:#fff;color:#201913;font-size:13px;box-sizing:border-box}
.tw-pb-extra-subject-bar select:disabled{opacity:.55}
html[data-theme="dark"] .tw-pb-extra-subject-bar label{color:#a1afce}
html[data-theme="dark"] .tw-pb-extra-subject-bar select{border:1px solid var(--tw-x-line);background:var(--tw-x-surface);color:var(--tw-x-text)}

/* V622.130: Titel in "Weiterarbeiten / zuletzt geöffnet" immer linksbündig,
   auch wenn globale Button-Regeln zentrieren. */
#twPBBoardOverviewList .tw-board-recent-card,.tw-board-recent-card{text-align:left!important;justify-items:stretch!important;align-content:start!important}
.tw-board-recent-card .tw-board-recent-copy{display:grid!important;justify-items:start!important;text-align:left!important;width:100%;box-sizing:border-box}
.tw-board-recent-card .tw-board-recent-copy>b,.tw-board-recent-card .tw-board-recent-copy>small{justify-self:stretch!important;text-align:left!important;width:100%}
.tw-board-recent-card .tw-board-recent-thumb b{text-align:left!important}
.tw-plan-recent-row,.tw-plan-recent-row span:last-child{text-align:left!important;justify-items:start!important}
.tw-plan-recent-row b,.tw-plan-recent-row small{justify-self:stretch!important;text-align:left!important}

/* V622.131: "Zuletzt geöffnet" (Planung) linksbündig – auch wenn das
   Schaltflächen-System (tw-x-btn) bereits zugewiesen wurde. */
#twPBSubjectView .tw-plan-recent-row,#twPBSubjectView .tw-plan-recent-row.tw-x-btn{display:grid!important;grid-template-columns:22px minmax(0,1fr)!important;justify-content:stretch!important;justify-items:start!important;align-items:center!important;text-align:left!important;width:100%!important}
#twPBSubjectView .tw-plan-recent-row>span:last-child{display:grid!important;justify-items:start!important;text-align:left!important;min-width:0;width:100%}
#twPBSubjectView .tw-plan-recent-row b,#twPBSubjectView .tw-plan-recent-row small{text-align:left!important;justify-self:start!important;max-width:100%}
.tw-pb-extra-subject-bar{grid-template-columns:minmax(0,1fr)}
.tw-pb-extra-subject-bar label[hidden]{display:none!important}
