/* Theme gallery as a full-width colour wall, like the earlier interface. */
.pn-settings-grid{grid-template-columns:minmax(0,1fr)!important;gap:16px!important}
.pn-settings-grid>.pn-card{min-width:0}
.pn-settings-grid>.pn-card:nth-child(2){grid-row:1}
.pn-theme-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:14px!important}
.pn-theme{min-height:118px!important;padding:13px!important;border-radius:17px!important}
.pn-theme-swatches{height:58px!important}
.pn-theme strong{font-size:.88rem!important}
@media(max-width:900px){.pn-theme-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:620px){.pn-theme-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}.pn-theme{min-height:100px!important;padding:9px!important}.pn-theme-swatches{height:45px!important}}
@media(max-width:350px){.pn-theme-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}

/* Restore an optional full timetable on phones, while keeping the quick day view. */
.edr-timetable-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:4px 0 10px;max-width:100%}
.edr-week-badge{display:inline-flex;align-items:center;padding:7px 11px;border-radius:999px;background:color-mix(in srgb,var(--pn-accent) 15%,var(--pn-card));color:var(--pn-accent);font-weight:900;font-size:.78rem}
.edr-timetable-view-toggle{display:none;align-items:center;gap:5px;margin-left:auto}
.edr-timetable-view-toggle .pn-btn{min-height:34px}
@media(max-width:1100px){
  .edr-timetable-view-toggle{display:flex}
  .hybrid-old-timetable.mobile-week-view .schedule-mobile-day{display:none!important}
  .hybrid-old-timetable.mobile-week-view .schedule-desktop-week{display:block!important;min-width:0;max-width:100%}
  .hybrid-old-timetable.mobile-week-view .hybrid-schedule-scroll{display:block!important;overflow-x:auto!important;max-width:100%;-webkit-overflow-scrolling:touch}
  .hybrid-old-timetable.mobile-week-view .schedule-week{min-width:920px}
  .hybrid-old-timetable.mobile-week-view .schedule-weekbar{display:flex!important;flex-wrap:wrap;gap:7px}
}
@media print{.edr-timetable-controls{display:none!important}.hybrid-old-timetable .schedule-mobile-day{display:none!important}.hybrid-old-timetable .schedule-desktop-week{display:block!important}}

/* Useful, compact school-life dashboard and records. */
.edr-school-page{min-width:0}
.edr-school-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 14px}
.edr-school-summary>div{display:grid;gap:3px;padding:14px;border:1px solid var(--pn-line);border-radius:13px;background:var(--pn-card);box-shadow:var(--pn-shadow);min-width:0}
.edr-school-summary>div span{font-size:.74rem;color:var(--pn-muted);font-weight:800}
.edr-school-summary>div strong{font-size:1.6rem;line-height:1.1;color:var(--pn-accent)}
.edr-school-summary>div.needs-action strong{color:#d36b31}
.edr-school-filters{display:flex;align-items:end;gap:10px;flex-wrap:wrap;padding:12px;border:1px solid var(--pn-line);border-radius:13px;background:var(--pn-card);margin-bottom:12px}
.edr-school-filters label{display:grid;gap:5px;min-width:170px;color:var(--pn-text);font-size:.75rem;font-weight:800}
.edr-school-filters select{max-width:100%;min-height:37px;padding:7px 10px;border:1px solid var(--pn-line);border-radius:8px;background:var(--pn-card);color:var(--pn-text);font:inherit}
.edr-school-count{margin-left:auto;color:var(--pn-muted);font-size:.78rem;font-weight:800}
.edr-school-tabs{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important;max-width:100%;scrollbar-width:thin;-webkit-overflow-scrolling:touch}
.edr-school-tabs .pn-tab{flex:none;white-space:nowrap}
.edr-school-tabs b{display:inline-block;min-width:17px;margin-left:3px;padding:1px 4px;border-radius:9px;background:color-mix(in srgb,var(--pn-accent) 18%,var(--pn-card))}
.edr-school-history .pn-history-item{min-width:0}
.edr-school-history .pn-row-actions{display:flex;flex-wrap:wrap;gap:5px}
.edr-school-visibility{display:block;margin-top:5px;font-weight:800;color:var(--pn-muted)}
.edr-student-file>p{margin-top:0}.edr-student-file h3{margin:18px 0 8px;font-size:1rem}
.edr-student-file-stats{display:flex;flex-wrap:wrap;gap:7px}
.edr-student-file-stats span{padding:7px 9px;border-radius:9px;background:color-mix(in srgb,var(--pn-accent) 12%,var(--pn-card));font-size:.78rem;font-weight:800;color:var(--pn-text)}
.edr-student-file-row{display:grid;grid-template-columns:85px minmax(0,1fr);gap:10px;padding:9px 0;border-bottom:1px solid var(--pn-line);font-size:.82rem}
.edr-student-file-row time{color:var(--pn-muted)}.edr-student-file-row small{display:block;margin-top:3px;color:var(--pn-muted);overflow-wrap:anywhere}
@media(max-width:700px){.edr-school-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.edr-school-filters label{flex:1;min-width:130px}.edr-school-count{width:100%;margin-left:0}.edr-school-history .pn-history-item{grid-template-columns:1fr!important;gap:6px!important}.edr-school-history .pn-row-actions{grid-column:auto!important}}
@media(max-width:360px){.edr-school-summary>div{padding:10px}.edr-school-filters label{min-width:100%}}
