#teacher-app.td-shell:is([data-td-view=plan],[data-td-view=diary]) .teacher-scope,
#teacher-app.td-shell:is([data-td-view=plan],[data-td-view=diary]) .teacher-heading { display:none; }
#teacher-app .tw-workspace {min-width:0;width:100%;color:#193852;}
#teacher-app .tw-workspace *,#teacher-app .tw-workspace *::before,#teacher-app .tw-workspace *::after{box-sizing:border-box}
#teacher-app .tw-workspace :where(input,textarea,select){min-width:0;max-width:100%}
#teacher-app .tw-workspace [hidden]{display:none!important}
#teacher-app .tw-workspace :focus-visible,.tw-day-actions button:focus-visible{outline:3px solid #188d93;outline-offset:3px}
.td-tools-dialog .tw-day-actions{display:flex;flex-wrap:wrap;gap:.45rem;align-items:center;margin-top:.65rem}
.td-tools-dialog .tw-day-actions button{cursor:pointer;min-height:40px;padding:.35rem .85rem;color:#145465;border:1px solid #a5cfce;border-radius:10px;background:#fff;font:700 .94rem/1.25 var(--desk-heading,system-ui)}
.td-tools-dialog .tw-day-actions button:first-child{background:#11676f;color:#fff;border-color:#11676f}
#teacher-app .tw-desk-day p{font-size:1rem;line-height:1.45;margin:.25rem 0;overflow-wrap:anywhere}
.td-tools-dialog [data-tw-slots]{display:grid;list-style:none;margin:.55rem 0;padding:0;border-top:1px solid var(--desk-border,#d4e3e1)}
.td-tools-dialog [data-tw-slots]:empty{display:none}
.td-tools-dialog [data-tw-slots] li{min-width:0;border-bottom:1px solid var(--desk-border,#d4e3e1)}
.td-tools-dialog [data-tw-slots] button{display:flex;align-items:center;gap:.65rem;width:100%;min-height:44px;padding:.45rem .55rem;background:transparent;color:var(--desk-ink,#193852);border:0;border-radius:.45rem;text-align:start;font:inherit;cursor:pointer}
.td-tools-dialog [data-tw-slots] button:is(:hover,[aria-current=time]){background:#e3f3ef}
.td-tools-dialog [data-tw-slots] button:focus-visible{outline:3px solid #188d93;outline-offset:1px}
.td-tools-dialog [data-tw-slots] strong{min-width:0;overflow-wrap:anywhere}
.td-tools-dialog .tw-slot-time{flex:none;font-variant-numeric:tabular-nums}
.td-tools-dialog .tw-slot-state{margin-inline-start:auto;font-size:.875rem;font-weight:750;color:#116665}
.td-tools-dialog .tw-slot-state:empty{display:none}
.td-tools-dialog .td-month-grid button{padding:.25rem;min-width:0;min-height:38px;border:0;border-radius:8px;color:#243e52;background:transparent;font-size:.91rem}
.td-tools-dialog .td-month-grid [data-closed]{color:#945328;background:#fcf0de}
.td-tools-dialog .td-month-grid button[aria-current=date]{background:#16666e;color:white;font-weight:800}
#teacher-app .teacher-scope select{width:auto;max-width:100%;min-width:5rem;min-height:2.75rem;background-color:#fff}
@media(max-width:760px){
 #teacher-app.td-shell:is([data-td-view=plan],[data-td-view=diary]) .teacher-area{max-width:100%;padding:.8rem .7rem 6.5rem}
 #teacher-app .tw-workspace :where(textarea,select,input){font-size:1rem}
 #teacher-app.td-shell .tw-desk-day{display:block}
}
@media print{
 #teacher-app .td-sidebar,#teacher-app .td-bottom,#teacher-app .teacher-topbar{display:none!important}
 #teacher-app.td-shell{display:block!important}
 #teacher-app.td-shell .teacher-area{max-width:100%;padding:0}
}
#teacher-app .td-first-register{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:1rem;padding:1.1rem 1.35rem;background:#e3f4f0;border:1px solid #a6cfcd;border-radius:16px}
#teacher-app .td-first-register h2{font:800 1.35rem/1.15 var(--desk-heading,system-ui);margin:0;color:#163a4c}
#teacher-app .td-first-register p{font:500 1rem/1.4 var(--desk-heading,system-ui);margin:.24rem 0 0;color:#385667}
#teacher-app .td-first-icon{display:grid;place-items:center;width:3rem;height:3rem;border-radius:12px;background:#cae7dd;color:#0c5e5d}
#teacher-app .td-first-icon svg{width:1.7rem;height:1.7rem}
#teacher-app .td-first-register button{min-height:44px;padding:.6rem 1rem;border:0;border-radius:10px;background:#12646a;color:white;font:750 1rem/1.2 var(--desk-heading,system-ui);cursor:pointer}
@media(max-width:700px){#teacher-app .td-first-register{grid-template-columns:auto 1fr;gap:.65rem;padding:1rem}#teacher-app .td-first-register button{grid-column:1/-1;width:100%}}

#teacher-app .tw-day-strip{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:.4rem .85rem;padding:.4rem .75rem;border:1px solid var(--desk-border);border-radius:.85rem;background:#f1faf8;color:#153e49}
.tw-clock-button,.tw-bell,.tw-day-details summary{color:#105e65;cursor:pointer;font:700 .92rem/1.2 var(--desk-heading,system-ui)}
.tw-clock-button{display:flex;align-items:center;gap:.4rem;border:0;background:transparent;padding:0;text-align:start}
.tw-clock-button .td-live-clock{display:flex;flex-wrap:nowrap;gap:.5rem}
.tw-clock-button .td-clock-face{width:3rem}
.tw-clock-button .td-clock-details{flex:auto;gap:0}
.tw-clock-button .td-clock-time{font-size:1.2rem}
.tw-clock-button .td-clock-zone{display:none}
.tw-clock-button .td-clock-date{font-size:.84rem}
#teacher-app .tw-clock-button>.td-icon{width:1rem;height:1rem}
.tw-now-line{display:grid;gap:.1rem;min-width:0}
.tw-now-line strong,.tw-now-line span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.3}
.tw-now-line span{font-size:.875rem;color:#3f6068}
.tw-bell,.tw-day-details summary{padding:.4rem .5rem;background:white;border:1px solid #b0cccd;border-radius:.5rem}
.tw-bell[aria-pressed=true]{background:#14676d;color:white}
.tw-day-details{min-width:0}
.tw-day-details summary{width:max-content;max-width:100%}
.tw-day-details[open]{grid-column:1/-1}
.td-tools-dialog .tw-day-details ul{max-height:14rem;overflow:auto}
@media(max-width:850px){
  #teacher-app .tw-day-strip{grid-template-columns:minmax(0,1fr) auto auto;gap:.18rem .4rem;padding:.35rem .5rem}
  .tw-clock-button{grid-column:1;grid-row:1}.tw-bell{grid-column:2;grid-row:1}.tw-day-details{grid-column:3;grid-row:1}
  .tw-day-details[open]{grid-row:3}.tw-now-line{grid-column:1/-1;grid-row:2;display:flex;align-items:baseline;flex-wrap:wrap;gap:0 .55rem}
  .tw-now-line span{white-space:normal}.tw-day-details summary,.tw-bell{font-size:.84rem}
  .tw-clock-button .td-clock-face{width:2.45rem}.tw-clock-button .td-clock-details{white-space:nowrap}
  #teacher-app .tw-clock-button>.td-icon{display:none}
}
.tw-now-line [data-tw-now]{max-width:100%;padding:0;border:0;background:transparent;color:#144a51;font:800 1rem/1.3 var(--desk-heading,system-ui);text-align:start;white-space:normal}
.tw-now-line [data-tw-now]:enabled{text-decoration:underline;text-underline-offset:.15rem;cursor:pointer}
.tw-now-line [data-tw-now]:disabled{opacity:1}

.td-tools-dialog .tw-day-strip{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.75rem}
.td-tools-dialog .tw-clock-button{grid-column:1;grid-row:1;padding:.25rem;border:0}
.td-tools-dialog .tw-clock-button>.td-icon{width:1rem}
.td-tools-dialog .tw-bell{grid-column:2;grid-row:1}
.td-tools-dialog .tw-bell[aria-pressed=true]{background:#14676d;color:white}
.td-tools-dialog .tw-now-line,.td-tools-dialog .tw-day-details,.td-tools-dialog [data-tw-export],.td-tools-dialog [data-tw-help]{grid-column:1/-1}
.td-tools-dialog .tw-now-line{grid-row:2}
.td-tools-dialog .tw-day-details{grid-row:3}
.td-tools-dialog .tw-now-line button{min-height:0}
.td-tools-dialog .tw-day-details summary{padding:.65rem}
.td-tools-dialog [data-tw-help]{font-weight:500;font-size:.9rem}

#teacher-app teacher-duties:not([hidden]){
  display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.7rem 1rem;
  padding:1rem 1.15rem;min-width:0;border:1px solid #b3d8d3;border-inline-start:4px solid #087d77;
  border-radius:.85rem;background:#f3fbf9;color:#164747;font-family:var(--desk-heading,system-ui)
}
#teacher-app teacher-duties[hidden]{display:none}
#teacher-app teacher-duties :is(h2,h3){margin:0;color:#14424a;font:800 1.15rem/1.25 var(--desk-heading,system-ui)}
#teacher-app teacher-duties p{margin:.18rem 0;color:#395a5f;font-size:.94rem}
#teacher-app teacher-duties button,#teacher-app teacher-duties summary{
  padding:.55rem .75rem;min-height:40px;border-radius:.6rem;font:700 .93rem/1.35 var(--desk-heading,system-ui);cursor:pointer
}
#teacher-app teacher-duties button{border:1px solid #aaccc7;background:#fff;color:#125f63}
#teacher-app teacher-duties details{width:100%;border-top:1px solid #cee3df}
#teacher-app teacher-duties summary{width:fit-content;max-width:100%;padding-inline-start:0}
#teacher-app teacher-duties .tw-duty-tags{display:flex;flex-wrap:wrap;gap:.4rem;list-style:none;margin:.4rem 0 0;padding:0}
#teacher-app teacher-duties .tw-duty-tags li{margin:0;padding:.23rem .62rem;border-radius:.45rem;background:#d9efeb;color:#164e4c;font-weight:750}
#teacher-app teacher-duties .tw-duty-tags [data-kind="transport"]{background:#f9ebcc;color:#654510}
#teacher-app teacher-duties .tw-duty-month{display:grid;gap:.25rem;list-style:none;margin:0;padding:0}
#teacher-app teacher-duties .tw-duty-month>li{display:flex;align-items:center;gap:.25rem .7rem;flex-wrap:wrap}
#teacher-app teacher-duties .tw-duty-month button{border-color:transparent;background:transparent;text-align:start;text-decoration:underline;text-underline-offset:.16em}
#teacher-app teacher-duties .tw-duty-month button[aria-pressed="true"]{background:#d9efeb}
#teacher-app teacher-duties .tw-duty-month .tw-duty-tags{margin:0}
