.tp-planner {
  --tp-ink:#102c50;--tp-muted:#4b6678;--tp-teal:#086a72;--tp-deep:#005663;
  --tp-line:#c8e0e7;--tp-pale:#e8f5f8;--tp-warm:#fff1cc;
  display:block; width:100%; min-width:0; color:var(--tp-ink);
  font-family:var(--desk-heading,Nunito,'Trebuchet MS',sans-serif); font-size:1rem;
}
.tp-planner *, .tp-planner *::before, .tp-planner *::after {box-sizing:border-box}
.tp-planner [hidden] {display:none!important}
.tp-planner :is(h2,h3,h4,p) {margin:0;line-height:1.35;color:inherit}
.tp-planner button,.tp-planner input,.tp-planner select,.tp-planner textarea {font:inherit;letter-spacing:normal}
.tp-planner :is(button,summary,a,input,select,textarea):focus-visible {outline:3px solid #3179d7;outline-offset:2px}
.tp-planner .tp-icon {display:inline-block;width:1.1rem;height:1.1rem;flex:none;vertical-align:middle}
.tp-planner .tp-btn,.tp-planner .tp-arrow {
  display:inline-flex;align-items:center;justify-content:center;gap:.42rem;min-height:2.45rem;
  border:1px solid #96bdc9;border-radius:.65rem;background:#fff;color:var(--tp-deep);
  font-size:.91rem;font-weight:800;line-height:1.18;padding:.52rem .85rem;cursor:pointer;box-shadow:none;text-align:center;
}
.tp-planner button:disabled {opacity:.55;cursor:default}
.tp-planner .tp-btn:hover:enabled,.tp-planner .tp-arrow:hover:enabled {background:#eaf6fa;border-color:#4c9aa9}
.tp-planner .tp-btn.tp-primary,.tp-planner .tp-btn.tp-selected {color:#fff;background:var(--tp-teal);border-color:var(--tp-teal)}
.tp-planner .tp-btn.tp-primary:hover,.tp-planner .tp-btn.tp-selected:hover {background:var(--tp-deep)}
.tp-planner .tp-text {min-height:2.25rem;padding:.35rem .4rem;border-color:transparent;background:transparent;text-align:left}
.tp-planner .tp-arrow {width:2.35rem;height:2.35rem;min-height:2.35rem;padding:.35rem;flex:none;background:transparent;border-color:transparent}
.tp-planner .tp-danger {color:white;background:#95384b;border-color:#95384b}
.tp-planner .tp-remove {color:#993c48}
.tp-planner .tp-head,.tp-planner .tp-toolbar,.tp-planner .tp-section-title,.tp-planner .tp-dialog-head,.tp-planner .tp-dialog-foot,.tp-planner .tp-calendar-foot,.tp-planner .tp-month-head,.tp-planner .tp-record,.tp-planner .tp-foot {display:flex;align-items:center;justify-content:space-between;gap:.75rem}
.tp-planner .tp-head {margin:0 0 1.05rem;align-items:flex-start}
.tp-planner .tp-head h2 {font-size:clamp(1.6rem,2.55vw,2.4rem);font-weight:900;letter-spacing:-.045em}
.tp-planner .tp-head p {display:flex;gap:.42rem;align-items:center;color:var(--tp-muted);font-size:.96rem;margin:.22rem 0 0}
.tp-planner .tp-actions,.tp-planner .tp-row-actions,.tp-planner .tp-tabs,.tp-planner .tp-more,.tp-planner .tp-source-tabs {display:flex;align-items:center;flex-wrap:wrap;gap:.4rem}
.tp-planner .tp-tabs {background:#e3f2f6;border:1px solid #cde3ea;border-radius:.75rem;padding:.18rem;gap:0}
.tp-planner .tp-tabs .tp-btn,.tp-planner .tp-source-tabs .tp-btn {border:0;background:transparent;min-height:2.1rem;font-size:.86rem}
.tp-planner .tp-tabs .tp-selected,.tp-planner .tp-source-tabs .tp-selected {background:var(--tp-teal);color:white}
.tp-planner .tp-week {margin:1rem 0;display:flex;align-items:stretch;border:1px solid var(--tp-line);border-radius:.85rem;background:#fff;overflow:hidden}
.tp-planner .tp-week>.tp-arrow {align-self:center;width:2rem}
.tp-planner .tp-week>div {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));flex:1}
.tp-planner .tp-week [data-day] {background:transparent;border:0;border-left:1px solid #e1edf1;color:var(--tp-ink);padding:.57rem .25rem;display:flex;align-items:center;justify-content:center;gap:.45rem;min-height:3rem;cursor:pointer}
.tp-planner .tp-week [data-day] span {font-weight:700}
.tp-planner .tp-week [data-day] b {font-size:1.15rem}
.tp-planner .tp-week [data-day].tp-holiday {background:var(--tp-warm)}
.tp-planner .tp-week [data-day][aria-pressed="true"] {color:white;background:var(--tp-teal)}
.tp-planner .tp-layout {display:grid;grid-template-columns:minmax(0,1.5fr) minmax(15rem,1fr);align-items:start;gap:.9rem}
.tp-planner .tp-main {display:grid;gap:.9rem;min-width:0}
.tp-planner .tp-surface {padding:1rem;background:#fff;border:1px solid var(--tp-line);border-radius:1rem;min-width:0;box-shadow:0 3px 12px #14385306}
.tp-planner .tp-section-title {justify-content:flex-start;gap:.47rem;margin-bottom:.7rem}
.tp-planner .tp-section-title>.tp-icon,.tp-planner .tp-calendar>summary .tp-icon {color:var(--tp-teal);width:1.25rem;height:1.25rem}
.tp-planner h3,.tp-planner .tp-calendar>summary {font-size:1.13rem;font-weight:900;letter-spacing:-.025em}
.tp-planner .tp-lesson {border-top:1px solid #dce9ee;padding:.8rem .3rem;display:flex;align-items:center;justify-content:space-between;gap:.5rem}
.tp-planner .tp-lesson.tp-live {border:1px solid #aadcd0;border-left:.3rem solid #188a74;border-radius:.7rem;padding:.85rem;background:linear-gradient(115deg,#ddf6ed,#effaf3)}
.tp-planner .tp-lesson h4 {font-size:1.04rem;font-weight:850;margin:.25rem 0 .15rem}
.tp-planner .tp-lesson p,.tp-planner .tp-soft,.tp-planner .tp-empty,.tp-planner .tp-summary {color:var(--tp-muted);font-size:.92rem}
.tp-planner .tp-empty {padding:.25rem 0 .55rem}
.tp-planner .tp-soft {padding:.25rem 0 .6rem}
.tp-planner .tp-status,.tp-planner .tp-chip {background:#e4f3fb;color:#245778;padding:.2rem .47rem;border-radius:.38rem;font-size:.75rem;font-weight:800;white-space:nowrap}
.tp-planner .tp-now {background:#16785d;color:white}
.tp-planner .tp-holiday-note {display:flex;align-items:center;gap:.42rem;border:1px solid #efcf85;color:#624621;background:var(--tp-warm);padding:.55rem .65rem;border-radius:.6rem;font-weight:750;margin-bottom:.6rem}
.tp-planner .tp-row-actions {justify-content:flex-end}
.tp-planner .tp-row-actions .tp-btn {font-size:.83rem}
.tp-planner .tp-calendar>summary {cursor:pointer;min-height:2.05rem;color:var(--tp-ink);list-style-position:inside}
.tp-planner .tp-calendar>summary span {display:inline-flex;align-items:center;gap:.4rem;vertical-align:middle}
.tp-planner .tp-month-head {margin:.4rem 0}
.tp-planner .tp-month-head strong {text-transform:capitalize;font-size:1rem}
.tp-planner .tp-month-grid {display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:.18rem}
.tp-planner .tp-month-grid small,.tp-planner .tp-month-grid button {text-align:center;line-height:1.4}
.tp-planner .tp-month-grid small {color:var(--tp-muted);font-size:.69rem;font-weight:800;padding:.3rem 0}
.tp-planner .tp-month-grid button {position:relative;min-height:1.95rem;padding:0;background:#f7fbfc;border:1px solid transparent;border-radius:.38rem;color:var(--tp-ink);font-size:.87rem;font-weight:700;cursor:pointer}
.tp-planner .tp-month-grid .tp-out {color:#758590;background:#fff}
.tp-planner .tp-month-grid .tp-off {background:#fff0cb;color:#714b14}
.tp-planner .tp-month-grid .tp-today {border-color:#0d777b}
.tp-planner .tp-month-grid button[aria-pressed="true"] {background:var(--tp-teal);color:#fff}
.tp-planner .tp-month-grid .tp-has::after {content:'';position:absolute;bottom:2px;left:calc(50% - 2px);width:4px;height:4px;background:currentColor;border-radius:50%}
.tp-planner .tp-holidays {display:grid;gap:.35rem;margin:.65rem 0 0}
.tp-planner .tp-holidays>div {border-left:3px solid #e6b948;background:#fff7e1;padding:.38rem .5rem;font-size:.79rem;line-height:1.4;color:#64431f}
.tp-planner .tp-calendar-foot {align-items:flex-end;flex-wrap:wrap;margin-top:.75rem;border-top:1px solid #e4eef1;padding-top:.55rem}
.tp-planner .tp-calendar-foot a {font-size:.78rem;font-weight:800;color:var(--tp-teal);padding:.4rem 0}
.tp-planner label {display:grid;min-width:0;gap:.32rem;color:var(--tp-ink);font-size:.88rem;font-weight:800}
.tp-planner :is(input:not([type=checkbox]),select,textarea) {display:block;border:1px solid #aec8d1;border-radius:.56rem;color:var(--tp-ink);background-color:white;width:100%;min-width:0;min-height:2.55rem;padding:.42rem .62rem;margin:0;font-weight:500;font-size:.97rem;line-height:1.35;box-shadow:none;text-align:start}
.tp-planner input[type=date],.tp-planner input[type=time] {height:2.6rem;max-height:2.6rem}
.tp-planner select {appearance:auto}
.tp-planner textarea {height:auto;resize:vertical}
.tp-planner .tp-record {border-top:1px solid #dce9ee;padding:.58rem 0;font-size:.91rem;line-height:1.35}
.tp-planner .tp-record>div {display:grid;gap:.15rem;flex:1;min-width:0;overflow-wrap:anywhere}
.tp-planner .tp-record>div span,.tp-planner .tp-record small {color:var(--tp-muted)}
.tp-planner .tp-foot {justify-content:flex-start;flex-wrap:wrap;margin:.65rem 0;gap:.65rem}
.tp-planner .tp-foot .tp-btn {font-size:.83rem}
.tp-planner .tp-feedback {margin:.75rem 0;background:#dcf4e9;color:#185b43;border:1px solid #addeca;border-radius:.6rem;padding:.65rem .85rem}
.tp-planner .tp-filters {display:grid;grid-template-columns:1fr .8fr 1.3fr;gap:.7rem;margin:0 0 1rem}
.tp-planner .tp-toolbar+.tp-surface,.tp-planner .tp-feedback[hidden]+.tp-surface {margin:1rem 0 0}
.tp-planner .tp-dialog {position:fixed;inset:0;z-index:100;width:min(30rem,calc(100% - 1.5rem));max-width:100%;height:fit-content;max-height:88dvh;margin:auto;border:1px solid #95bbc8;border-radius:1.15rem;padding:0;overflow:auto;background:#fff;color:var(--tp-ink);box-shadow:0 1.4rem 5rem #03283b42;font-family:inherit}
.tp-planner .tp-dialog::backdrop {background:#102a4090}
.tp-planner .tp-dialog.tp-wide {width:min(44rem,calc(100% - 1.5rem))}
.tp-planner .tp-dialog-head {padding:.8rem 1.05rem;background:#eff9fa;border-bottom:1px solid #cfE3E9}
.tp-planner .tp-dialog-head h3 {font-size:1.23rem;line-height:1.25}
.tp-planner .tp-dialog-body {padding:1rem 1.05rem;overflow-wrap:anywhere}
.tp-planner .tp-dialog-body .tp-summary {margin:0 0 .65rem}
.tp-planner .tp-dialog-error {margin:.4rem 1rem;color:#9a3248;font-weight:700}
.tp-planner .tp-dialog-foot {justify-content:flex-end;flex-wrap:wrap;position:sticky;bottom:0;z-index:1;padding:.7rem 1.05rem;background:white;border-top:1px solid var(--tp-line)}
.tp-planner .tp-form {display:grid;grid-template-columns:minmax(0,1fr);gap:1rem}
.tp-planner .tp-plan-scope,.tp-planner .tp-schedule-lines fieldset {display:grid;grid-template-columns:1fr 1.15fr .85fr;gap:.65rem}
.tp-planner .tp-schedule-lines fieldset {grid-template-columns:1fr 1fr 1fr 1fr;align-items:end;margin:0 0 .8rem;padding:.65rem;border:1px solid var(--tp-line);border-radius:.6rem}
.tp-planner .tp-schedule-lines fieldset legend {padding:0 .3rem;font-size:.85rem;color:var(--tp-teal);font-weight:800}
.tp-planner .tp-schedule-lines fieldset button {justify-self:start}
.tp-planner .tp-form>[data-tp="slot"] {justify-self:start}
.tp-planner .tp-preview-section {margin:1.1rem 0}
.tp-planner .tp-preview-section p,.tp-print-section p {white-space:pre-wrap;overflow-wrap:anywhere}
.tp-planner .tp-preview-section h4,.tp-planner .tp-attachments h4 {font-weight:850;margin:0 0 .3rem}
.tp-planner .tp-attachments .tp-section-title {justify-content:space-between}
.tp-planner .tp-resource-links>div,.tp-planner .tp-source-list>div {display:flex;justify-content:space-between;align-items:center;gap:.7rem;border-top:1px solid #dce9ee;padding:.37rem 0}
.tp-planner .tp-source-list {margin:.75rem 0;max-height:41vh;overflow:auto}
.tp-planner .tp-source-search {margin:.85rem 0 0}
.tp-planner .tp-material-filters {display:grid;grid-template-columns:minmax(5rem,1fr) minmax(0,2fr);gap:.65rem;margin:.8rem 0}
.tp-planner .tp-source-pages {display:flex;align-items:center;justify-content:center;gap:.5rem}
.tp-planner :is(.tp-material-filters,.tp-source-pages)[hidden] {display:none}
.tp-planner .tp-source-tabs {border-radius:.65rem;background:#e7f4f7;padding:.2rem;gap:0}
@media(max-width:1000px) and (min-width:790px) {
  .tp-planner .tp-layout {grid-template-columns:minmax(0,1.2fr) minmax(14rem,1fr);gap:.65rem}
  .tp-planner .tp-lesson {align-items:flex-start;flex-direction:column}
}
@media(max-width:789px) {
  .tp-planner .tp-layout {display:flex;flex-direction:column}
  .tp-planner .tp-calendar,.tp-planner .tp-main {width:100%}
  .tp-planner .tp-calendar {order:-1;padding:.6rem .85rem}
  .tp-planner .tp-head {align-items:flex-start;gap:.45rem}
  .tp-planner .tp-head h2 {font-size:1.6rem}
  .tp-planner .tp-head p {font-size:.82rem}
  .tp-planner .tp-actions {justify-content:flex-end}
  .tp-planner .tp-actions .tp-btn {font-size:.82rem;padding:.45rem .55rem;min-height:2.25rem}
  .tp-planner .tp-surface {border-radius:.8rem}
  .tp-planner .tp-week [data-day] {flex-direction:column;gap:0;padding:.22rem 0}
  .tp-planner .tp-week [data-day] span {font-size:.74rem}
  .tp-planner .tp-week>.tp-arrow {width:1.65rem}
  .tp-planner .tp-month-grid button {min-height:2.25rem}
  .tp-planner .tp-layout,.tp-planner .tp-main {gap:.65rem}
}
@media(max-width:550px) {
  .tp-planner .tp-head {flex-wrap:wrap}
  .tp-planner .tp-head .tp-actions {gap:.45rem}
  .tp-planner .tp-week {margin:.65rem 0}
  .tp-planner .tp-filters {grid-template-columns:1fr 1fr}
  .tp-planner .tp-filters label:last-child {grid-column:1/-1}
  .tp-planner .tp-lesson {flex-wrap:wrap}
  .tp-planner .tp-record .tp-chip {white-space:normal}
  .tp-planner .tp-dialog,.tp-planner .tp-dialog.tp-wide {inset:auto 0 0;max-height:92dvh;width:100%;margin:0;border-radius:1.1rem 1.1rem 0 0}
  .tp-planner .tp-dialog-head {padding:.65rem .85rem}
  .tp-planner .tp-dialog-body {padding:.85rem}
  .tp-planner .tp-dialog-foot {padding:.65rem .85rem max(.65rem,env(safe-area-inset-bottom))}
  .tp-planner .tp-plan-scope {grid-template-columns:1fr 1fr}
  .tp-planner .tp-plan-scope label:first-child {grid-column:1/-1}
  .tp-planner .tp-schedule-lines fieldset {grid-template-columns:repeat(2,minmax(0,1fr))}
  .tp-planner .tp-more {width:100%}
  .tp-planner :is(input:not([type=checkbox]),select,textarea) {font-size:16px}
}
@media print {
  .tp-planner .tp-dialog {display:none!important}
  .tp-planner .tp-dialog::backdrop {background:transparent}
  #print-sheet .tp-print-section {break-inside:avoid;border-top:1px solid #aab8bd;padding:.4rem 0}
  #print-sheet .tp-print-section h2 {font-size:1.05rem;margin-bottom:.2rem}
}
.tp-planner .tp-record-add {margin-left:auto}
.tp-planner .tp-week-caption {color:var(--tp-muted);font-size:.8rem;font-weight:750;margin:.75rem 0 .28rem}
.tp-planner .tp-week-caption+.tp-week {margin-top:.2rem}
.tp-planner .tp-source-list>div>span {min-width:0;overflow-wrap:anywhere}
.tp-planner .tp-source-list>div small {display:block;color:var(--tp-muted);font-size:.78rem}
.tp-planner .tp-source-list>div button {flex:none}
.tp-planner .tp-plan-source {display:grid;gap:.4rem}
.tp-planner .tp-plan-source>div {display:flex;flex-wrap:wrap;gap:.45rem}
.tp-planner .tp-plan-source [hidden] {display:none}
.tp-planner .tp-plan-source p {margin:0;padding:.55rem .75rem;border-left:3px solid var(--tp-teal);background:var(--tp-pale);color:var(--tp-ink);font-size:.88rem}
.tp-planner .tp-plan-source:not(:has(p:not([hidden]),button:not([hidden]))) {display:none}

.tp-grid-scroll{max-width:100%;overflow:auto}
.tp-timetable{width:100%;border-collapse:collapse;table-layout:auto}
.tp-timetable td{min-width:6rem}
.tp-timetable th,.tp-timetable td{padding:.22rem;border:1px solid #c8dedc;text-align:center}
.tp-timetable th{background:#e8f5f2;color:#204e53}
.tp-timetable th:first-child{min-width:6.2rem;width:6.2rem;position:sticky;left:0;z-index:1}
.tp-timetable th small{display:block;white-space:nowrap;font-size:.77rem;font-weight:500}
.tp-dialog .tp-timetable select{width:100%;min-width:0;min-height:2.5rem;padding:.2rem;background:#fff;color:#134a55;text-align:center}
.tp-bell-settings summary{cursor:pointer;font-weight:750;color:#155c63;padding:.4rem 0}
.tp-bell-settings [data-bell-fields]>div{display:grid;grid-template-columns:max-content repeat(2,minmax(0,1fr));align-items:end;gap:.4rem;padding:.2rem 0}
.tp-bell-settings [data-bell-fields]>div>b{white-space:nowrap}
@media(max-width:550px){
 .tp-bell-settings [data-bell-fields]>div{grid-template-columns:repeat(2,minmax(0,1fr));padding:.5rem 0}
 .tp-bell-settings [data-bell-fields]>div>b{grid-column:1/-1}
}
.tp-bell-settings input[type=time],.tp-bell-settings input[type=file]{max-width:100%;min-width:0}
.tp-dialog .tp-grid-scroll:focus-visible{outline:2px solid #14666f}
.tp-planner .tp-week-overview{text-align:center}.tp-week-overview th,.tp-week-overview td{padding:.35rem .25rem;overflow-wrap:break-word}.tp-week-overview th small{display:block;font-size:.72rem;font-weight:500}.tp-week-overview button.tp-btn{min-width:0;padding:.3rem;color:#07676e}
