/* Teacher Home panels only. Shared navigation, guide and site tokens are untouched. */
.teacher-home-personalisation { min-width:0; max-width:100%; }
.teacher-home-personalisation[hidden], .teacher-home-personalisation [hidden] { display:none!important; }
.teacher-home-personalisation .teacher-home-personalisation__grid { display:grid; grid-template-columns:minmax(0,1fr); gap:14px; align-items:start; min-width:0; }
.teacher-home-personalisation .teacher-home-personalisation__panel { box-sizing:border-box; min-width:0; max-width:100%; border:4px solid var(--dmr-ink,#212121); padding:16px; background:var(--dmr-panel,#fffcf0); }
.teacher-home-personalisation .teacher-home-personalisation__panel--spotlight { background:#fff8df; }
.teacher-home-personalisation .teacher-home-personalisation__heading { display:flex; flex-wrap:wrap; align-items:center; gap:8px; min-width:0; }
.teacher-home-personalisation .teacher-home-personalisation__heading h2 { min-width:0; margin:0; font-size:1.35em; overflow-wrap:anywhere; }
.teacher-home-personalisation .teacher-home-personalisation__panel--shortcuts .teacher-home-personalisation__heading { margin-bottom:12px; }
.teacher-home-personalisation .teacher-home-personalisation__shortcut-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; margin-left:auto; min-width:0; max-width:100%; }
.teacher-home-personalisation .teacher-home-personalisation__find { color:inherit; font-weight:850; min-height:44px; display:inline-flex; align-items:center; text-underline-offset:3px; }
.teacher-home-personalisation .teacher-home-personalisation__shortcut-actions .teacher-home-personalisation__find { font-size:.75em; }
.teacher-home-personalisation .teacher-home-personalisation__button.teacher-home-personalisation__arrange { font-size:.75em; white-space:nowrap; }
.teacher-home-personalisation .teacher-home-personalisation__arrange[aria-expanded="true"] { background:var(--dmr-green,#d1e7c8); }
.teacher-home-personalisation .teacher-home-personalisation__help { margin:6px 0 13px; font-size:.9em; line-height:1.5; overflow-wrap:anywhere; }
.teacher-home-personalisation .teacher-home-personalisation__list,
.teacher-home-personalisation .teacher-home-personalisation__spotlight { list-style:none; padding:0; margin:0; display:grid; min-width:0; }
.teacher-home-personalisation .teacher-home-personalisation__list { grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.teacher-home-personalisation .teacher-home-personalisation__row { box-sizing:border-box; position:relative; min-width:0; display:flex; flex-direction:column; align-items:stretch; gap:10px; border:3px solid var(--dmr-ink,#212121); padding:12px; background:var(--dmr-blue,#bde7fb); }
.teacher-home-personalisation .teacher-home-personalisation__row:nth-child(4n + 2) { background:var(--dmr-yellow,#ffe298); }
.teacher-home-personalisation .teacher-home-personalisation__row:nth-child(4n + 3) { background:var(--dmr-green,#d1e7c8); }
.teacher-home-personalisation .teacher-home-personalisation__row:nth-child(4n) { background:var(--dmr-pink,#f7dce8); }
.teacher-home-personalisation .teacher-home-personalisation__resource { box-sizing:border-box; display:flex; align-items:center; gap:9px; color:inherit; font-weight:850; min-height:44px; min-width:0; text-decoration:none; text-underline-offset:3px; overflow-wrap:anywhere; }
.teacher-home-personalisation svg { flex:none; }
.teacher-home-personalisation .teacher-home-personalisation__row .teacher-home-personalisation__resource { flex:1 1 auto; min-height:108px; padding:6px; flex-direction:column; align-items:center; justify-content:center; gap:12px; text-align:center; }
.teacher-home-personalisation .teacher-home-personalisation__row .teacher-home-personalisation__resource > svg { width:42px; height:42px; }
.teacher-home-personalisation .teacher-home-personalisation__tile-copy { display:grid; gap:5px; min-width:0; max-width:100%; }
.teacher-home-personalisation .teacher-home-personalisation__tile-title { font-size:1em; line-height:1.25; }
.teacher-home-personalisation .teacher-home-personalisation__tile-type { font-size:.7em; line-height:1.4; font-weight:600; text-transform:uppercase; letter-spacing:.045em; }
.teacher-home-personalisation .teacher-home-personalisation__resource:hover .teacher-home-personalisation__tile-title { text-decoration:underline; }
.teacher-home-personalisation .teacher-home-personalisation__panel--shortcuts:not([data-arranging="true"]) .teacher-home-personalisation__tile-type { display:none; }
.teacher-home-personalisation .teacher-home-personalisation__panel--shortcuts[data-arranging="true"] .teacher-home-personalisation__row { padding:12px 9px 8px; }
.teacher-home-personalisation .teacher-home-personalisation__panel--shortcuts[data-arranging="true"] .teacher-home-personalisation__row .teacher-home-personalisation__resource { min-height:67px; padding:4px 36px 2px 0; flex-direction:row; align-items:flex-start; justify-content:flex-start; gap:10px; text-align:left; }
.teacher-home-personalisation .teacher-home-personalisation__panel--shortcuts[data-arranging="true"] .teacher-home-personalisation__row .teacher-home-personalisation__resource > svg { width:34px; height:34px; }
.teacher-home-personalisation .teacher-home-personalisation__controls { box-sizing:border-box; display:grid; grid-template-columns:minmax(44px,1fr) minmax(44px,1fr) minmax(44px,1.1fr); gap:4px; min-width:0; width:100%; margin:0; }
.teacher-home-personalisation .teacher-home-personalisation__button { box-sizing:border-box; min-width:44px; min-height:44px; padding:7px 10px; border:2px solid var(--dmr-ink,#212121); background:#fffdf5; color:#212121; font:inherit; font-weight:800; cursor:pointer; }
.teacher-home-personalisation .teacher-home-personalisation__controls .teacher-home-personalisation__button { font-size:.625em; padding:6px 3px; background:rgba(255,252,240,.85); }
.teacher-home-personalisation .teacher-home-personalisation__button:disabled { opacity:.48; cursor:default; }
.teacher-home-personalisation .teacher-home-personalisation__drag { position:absolute; right:4px; top:3px; width:44px; min-width:44px; height:44px; min-height:44px; border:0; padding:0; background:transparent; font-size:27px; line-height:1; cursor:grab; touch-action:none; user-select:none; }
.teacher-home-personalisation .teacher-home-personalisation__drag:active { cursor:grabbing; }
.teacher-home-personalisation .teacher-home-personalisation__drag:disabled { cursor:default; }
.teacher-home-personalisation .teacher-home-personalisation__row.is-dragging { opacity:.6; }
.teacher-home-personalisation .teacher-home-personalisation__row.is-drop-target { outline:4px dashed var(--dmr-ink,#212121); outline-offset:3px; background:var(--dmr-purple,#d8cfe7); }
.teacher-home-personalisation :is(button,a,input,summary):focus-visible { outline:3px solid var(--dmr-ink,#212121); outline-offset:3px; }
.teacher-home-personalisation .teacher-home-personalisation__empty { grid-column:1/-1; min-width:0; padding:16px 0; color:#47443c; max-width:58ch; line-height:1.6; overflow-wrap:anywhere; }
.teacher-home-personalisation .teacher-home-personalisation__status { font-size:.9em; line-height:1.5; margin:8px 0 0; overflow-wrap:anywhere; }
.teacher-home-personalisation .teacher-home-personalisation__status:empty { margin:0; }
.teacher-home-personalisation .teacher-home-personalisation__spotlight { grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.teacher-home-personalisation .teacher-home-personalisation__spotlight li { box-sizing:border-box; min-width:0; border:2px solid var(--dmr-ink,#212121); padding:12px; background:var(--dmr-panel,#fffcf0); }
.teacher-home-personalisation .teacher-home-personalisation__spotlight li:nth-child(3n + 2) { background:#e8f3fa; }
.teacher-home-personalisation .teacher-home-personalisation__spotlight li:nth-child(3n) { background:#f1eaf7; }
.teacher-home-personalisation .teacher-home-personalisation__spotlight .teacher-home-personalisation__resource { align-items:flex-start; margin-bottom:7px; }
.teacher-home-personalisation .teacher-home-personalisation__spotlight .teacher-home-personalisation__resource > svg { width:39px; height:39px; }
.teacher-home-personalisation .teacher-home-personalisation__spotlight p { font-size:.85em; line-height:1.45; margin:0; overflow-wrap:anywhere; }
.teacher-home-personalisation .teacher-home-personalisation__editor { border-top:2px solid var(--dmr-ink,#212121); margin-top:14px; padding-top:8px; }
.teacher-home-personalisation .teacher-home-personalisation__editor summary { cursor:pointer; min-height:44px; align-content:center; font-weight:800; }
.teacher-home-personalisation .teacher-home-personalisation__editor label { display:grid; gap:6px; min-width:0; }
.teacher-home-personalisation .teacher-home-personalisation__editor input { width:100%; box-sizing:border-box; min-height:44px; border:2px solid var(--dmr-ink,#212121); padding:8px; font:inherit; background:#fffdf5; }
.teacher-home-personalisation .teacher-home-personalisation__editor p { line-height:1.5; }
.teacher-home-personalisation .teacher-home-personalisation__editor > p { font-size:.9em; }
.teacher-home-personalisation .teacher-home-personalisation__choices { list-style:none; padding:0; display:grid; gap:5px; min-width:0; }
.teacher-home-personalisation .teacher-home-personalisation__choices button { text-align:left; width:100%; overflow-wrap:anywhere; }
.teacher-home-personalisation .teacher-home-personalisation__draft { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; padding-left:24px; }
.teacher-home-personalisation .teacher-home-personalisation__draft li { min-width:0; margin:8px 0; padding:6px; font-size:.9em; overflow-wrap:anywhere; }
.teacher-home-personalisation .teacher-home-personalisation__draft span { display:block; font-weight:800; margin-bottom:4px; }
.teacher-home-personalisation .teacher-home-personalisation__draft .teacher-home-personalisation__button { font-size:.8em; margin:2px; }
.teacher-home-personalisation .teacher-home-personalisation__editor-fields { border:0; padding:0; margin:0; min-width:0; }
.teacher-home-personalisation .teacher-home-personalisation__editor-legend { font-weight:850; padding:0 0 8px; }
.teacher-home-personalisation .teacher-home-personalisation__editor-fields > .teacher-home-personalisation__button { margin:4px 4px 4px 0; }
.teacher-home-personalisation .teacher-home-personalisation__editor-fields:disabled input { opacity:.65; }
.teacher-home-personalisation .teacher-home-personalisation__recovery { margin-top:12px; border:2px solid var(--dmr-ink,#212121); background:#ffe298; padding:10px; }
.teacher-home-personalisation .teacher-home-personalisation__recovery p { margin:0 0 8px; overflow-wrap:anywhere; }
.teacher-home-personalisation .teacher-home-personalisation__recovery .teacher-home-personalisation__button { margin:4px 4px 4px 0; }
@media(max-width:1000px) {
  .teacher-home-personalisation .teacher-home-personalisation__list { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media(max-width:720px) {
  .teacher-home-personalisation .teacher-home-personalisation__panel { padding:12px; }
  .teacher-home-personalisation .teacher-home-personalisation__spotlight { grid-template-columns:minmax(0,1fr); gap:8px; }
  .teacher-home-personalisation .teacher-home-personalisation__spotlight li { padding:9px; }
  .teacher-home-personalisation .teacher-home-personalisation__list { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .teacher-home-personalisation .teacher-home-personalisation__panel--shortcuts[data-arranging="true"] .teacher-home-personalisation__row { padding:9px 7px 7px; }
  .teacher-home-personalisation .teacher-home-personalisation__panel--shortcuts[data-arranging="true"] .teacher-home-personalisation__row .teacher-home-personalisation__resource { flex-direction:column; min-height:100px; padding-right:36px; }
  .teacher-home-personalisation .teacher-home-personalisation__controls { gap:3px; }
  .teacher-home-personalisation .teacher-home-personalisation__draft { grid-template-columns:minmax(0,1fr); }
}
@media(max-width:480px) {
  .teacher-home-personalisation .teacher-home-personalisation__shortcut-actions { width:100%; justify-content:space-between; gap:8px; }
  .teacher-home-personalisation .teacher-home-personalisation__controls { grid-template-columns:repeat(2,minmax(44px,1fr)); }
  .teacher-home-personalisation .teacher-home-personalisation__controls .teacher-home-personalisation__button:last-child { grid-column:1/-1; }
}
