@import url('../css/typography.css?v=1');

:root {
  font-family:
    system-ui,
    -apple-system,
    Segoe UI,
    sans-serif;
  background: #f8f7f0;
  color: #2d372d;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  background: #e7eadf;
  border-bottom: 1px solid #d5ddcd;
  padding: 18px max(20px, calc((100vw - 1150px) / 2));
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  font:
    30px Georgia,
    serif;
  color: #405840;
}
header small {
  color: #667463;
}
main {
  max-width: 1150px;
  margin: auto;
  padding: 30px 20px 70px;
}
h1,
h2 {
  font-family: Georgia, serif;
  font-weight: normal;
}
h1 {
  font-size: clamp(36px, 5vw, 59px);
  margin: 12px 0;
}
h2 {
  font-size: 29px;
  margin: 0 0 10px;
}
h3 {
  margin: 0 0 10px;
  font-size: 18px;
}
p {
  line-height: 1.55;
  color: #5c6b5b;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #667a62;
}
.lead {
  font-size: 18px;
  max-width: 740px;
}
.panel {
  background: #fff;
  border: 1px solid #dce2d6;
  border-radius: 15px;
  padding: 22px;
  margin-top: 18px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
label {
  display: block;
  font-size: 13px;
  font-weight: 650;
  margin-bottom: 6px;
}
input,
select {
  font: inherit;
  width: 100%;
  padding: 11px;
  border: 1px solid #a9b7a5;
  border-radius: 8px;
  background: #fff;
  color: #263427;
}
button {
  font: inherit;
  border-radius: 8px;
  padding: 11px 15px;
  border: 1px solid #50694c;
  background: #50694c;
  color: #fff;
  cursor: pointer;
  font-weight: 600;
}
button.secondary {
  background: #fff;
  color: #435c40;
}
button.ghost {
  border: 0;
  background: transparent;
  color: #435c40;
  padding: 6px;
}
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #a7c49c;
  outline-offset: 2px;
}
.actions {
  display: flex;
  align-items: stretch;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.actions > :is(button, .calendar-provider-link):not(.sticky-edit) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 44px;
  margin-block: 0;
  line-height: 1.4;
}
.hint {
  font-size: 12px;
  color: #697568;
}
.notice {
  background: #eef2e9;
  border-radius: 9px;
  padding: 12px;
  margin-top: 12px;
}
.warning {
  background: #fff2df;
  color: #664c29;
}
.activity {
  border: 1px solid #dce2d6;
  border-radius: 10px;
  padding: 13px;
  margin-top: 9px;
}
.activity .grid {
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr;
}
.activity .wide {
  grid-column: span 2;
}
.row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.day {
  margin-top: 20px;
}
.tablewrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
th,
td {
  border-bottom: 1px solid #e1e6dc;
  text-align: left;
  padding: 10px;
  vertical-align: top;
}
th {
  background: #edf1e9;
}
.chip {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 20px;
  background: #e9eee4;
  color: #40583c;
  font-size: 12px;
}
.summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.summary > div {
  background: #edf1e9;
  border-radius: 10px;
  padding: 13px;
}
.summary strong {
  font-size: 24px;
  display: block;
}
.hide {
  display: none;
}
.foot {
  margin-top: 40px;
  color: #6a7768;
  font-size: 12px;
}
@media (max-width: 800px) {
  .grid,
  .two,
  .activity .grid {
    grid-template-columns: 1fr 1fr;
  }
  .activity .wide {
    grid-column: span 2;
  }
  .summary {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 520px) {
  .grid,
  .two,
  .activity .grid {
    grid-template-columns: 1fr;
  }
  .activity .wide {
    grid-column: auto;
  }
}
@media print {
  header,
  .hero,
  .no-print,
  .actions,
  .foot {
    display: none !important;
  }
  body {
    background: #fff;
  }
  main {
    padding: 0;
  }
  .panel {
    border: 0;
    padding: 0;
    margin: 0;
  }
  .day {
    break-inside: avoid;
  }
  h1 {
    font-size: 24px;
  }
  table {
    font-size: 11px;
  }
}
.brand-logo {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
.brand-logo img {
  display: block;
  width: 124px;
  height: auto;
  max-height: 92px;
  object-fit: contain;
}
.brand-logo:focus-visible {
  outline: 3px solid #809476;
  outline-offset: 5px;
  border-radius: 4px;
}
header {
  min-height: 116px;
  gap: 18px;
}
header small {
  text-align: right;
}
@media (max-width: 520px) {
  .brand-logo img {
    width: 104px;
  }
  header {
    min-height: 100px;
  }
}
@media print {
  .brand-logo {
    display: none;
  }
}

.human-card {
  background: #edf0e6;
  border: 1px solid #d8dfd1;
  border-radius: 18px;
  padding: 22px;
  margin: 18px 0;
}
.human-card h2 {
  margin-top: 5px;
}
.human-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}
.human-controls label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}
.human-controls input,
.human-controls select {
  width: 100%;
  padding: 10px;
  border: 1px solid #adb8a6;
  border-radius: 9px;
  background: #fff;
  color: #29352b;
}
.human-quote {
  background: #fffdf7;
  padding: 16px;
  border-left: 3px solid #78896d;
  border-radius: 8px;
  margin: 15px 0;
  line-height: 1.6;
}
.human-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.human-actions button {
  background: #536c4f;
  color: white;
  border: 0;
  border-radius: 9px;
  padding: 10px 14px;
  cursor: pointer;
}
.human-actions button.secondary {
  background: #f8f7f0;
  color: #2c3a2c;
  border: 1px solid #b6c3af;
}
.human-muted {
  color: #576655;
  font-size: 0.88rem;
}
.human-hidden {
  display: none !important;
}
@media print {
  .human-card {
    display: none !important;
  }
}

.care-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}
.care-card {
  background: #f3f5ef;
  border: 1px solid #dce3d5;
  border-radius: 12px;
  padding: 16px;
}
.care-card h3 {
  margin: 0 0 9px;
}
.care-list {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}
.care-item {
  background: white;
  border: 1px solid #dce3d5;
  border-radius: 9px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.care-item p {
  margin: 3px 0;
  font-size: 13px;
}
.care-item button {
  white-space: nowrap;
}
.care-options {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 10px 0;
}
.care-options input {
  width: auto;
}
.care-options label {
  margin: 0;
  font-weight: normal;
}
.care-note {
  border-left: 3px solid #879a7d;
  padding: 9px 12px;
  background: #f3f5ef;
  margin: 12px 0;
}
.care-mini {
  font-size: 12px;
  color: #647363;
}
.care-form {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 10px;
  align-items: end;
}
.care-form button {
  white-space: nowrap;
}
.care-status {
  margin-top: 10px;
}
@media (max-width: 760px) {
  .care-grid,
  .care-form {
    grid-template-columns: 1fr;
  }
}
@media print {
  #care-hub {
    display: none !important;
  }
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 10px;
}
.schedule-day {
  border: 1px solid #dce2d6;
  border-radius: 12px;
  padding: 12px;
  background: #fbfcf9;
}
.schedule-day input {
  margin-bottom: 8px;
}
.schedule-day label {
  font-size: 12px;
}
.club-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr auto;
  gap: 9px;
  align-items: end;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #dce2d6;
  border-radius: 9px;
}
.club-row label {
  font-size: 12px;
}
@media (max-width: 900px) {
  .schedule-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .club-row {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .schedule-grid,
  .club-row {
    grid-template-columns: 1fr;
  }
}
@media print {
  #day-setup {
    display: none !important;
  }
}
.staff-list {
  display: grid;
  gap: 12px;
}
.staff-card {
  background: #fbfcf9;
  border: 1px solid #dce2d6;
  border-radius: 12px;
  padding: 14px;
}
.staff-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.staff-week {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap: 9px;
  margin-top: 12px;
}
.staff-day {
  background: white;
  border: 1px solid #e3e8df;
  border-radius: 8px;
  padding: 9px;
}
.staff-day label {
  margin-top: 7px;
}
.staff-day input[type='checkbox'] {
  width: auto;
}
.staff-day input[type='time'] {
  padding: 7px;
}
.staff-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 10px;
}
.staff-alert {
  border-left: 4px solid #9d7140;
  padding: 9px 12px;
  background: #fff6e8;
  margin: 8px 0;
}
.staff-ok {
  border-left: 4px solid #647d5c;
  padding: 9px 12px;
  background: #eff4ec;
  margin: 8px 0;
}
@media (max-width: 900px) {
  .staff-week {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .staff-week,
  .staff-meta {
    grid-template-columns: 1fr;
  }
}
@media print {
  #staff-setup {
    display: none !important;
  }
}
.timetable-conflict {
  background: #fff0e1;
}
#integrated-output summary {
  cursor: pointer;
  font-weight: 700;
}
#integrated-output .day {
  border-top: 1px solid #dce2d6;
  padding-top: 15px;
}
@media print {
  #integrated-planner .actions {
    display: none;
  }
  #integrated-output details {
    display: block;
  }
}
/* Keep this workspace isolated from the public site's layout rules. */
.planner-skip {
  position: absolute;
  left: -10000px;
  top: 0;
  background: white;
  padding: 12px;
  z-index: 10;
}
.planner-skip:focus {
  left: 12px;
}
a {
  color: #405840;
}
button:disabled {
  opacity: 0.55;
  cursor: default;
}
input[type='checkbox'] {
  width: auto;
}
.planner-errors {
  padding: 12px;
  background: #fff2df;
  color: #664c29;
  border-left: 3px solid #a57839;
}
.planner-errors:focus {
  outline: 3px solid #809476;
  outline-offset: 3px;
}
.planner-stale {
  padding: 12px;
  background: #fff2df;
  color: #664c29;
}
#integrated-planner {
  max-width: 1150px;
}
#integrated-output th {
  white-space: normal;
}
.brand-logo img {
  filter: url('../assets/logo-transparency.svg#remove-light-background');
}
.staff-meta > * {
  min-width: 0;
}
.staff-head {
  flex-wrap: wrap;
}
.activity .row {
  flex-wrap: wrap;
}
@media (max-width: 520px) {
  header {
    flex-wrap: wrap;
  }
  header small {
    text-align: left;
  }
  .panel {
    padding: 16px;
  }
  .care-form {
    grid-template-columns: 1fr;
  }
  .care-item {
    flex-wrap: wrap;
  }
  .staff-day {
    min-width: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
}
@media print {
  .planner-skip,
  body > div:first-child,
  main > .panel[aria-labelledby='privacy-title'],
  .planner-stale {
    display: none !important;
  }
  #integrated-output details {
    break-inside: avoid;
  }
  #integrated-planner {
    margin: 0;
  }
  #integrated-output .day {
    break-inside: auto;
  }
  #integrated-output tr {
    break-inside: avoid;
  }
}

.day-hours-fields,
.break-windows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.day-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  border: 1px solid #cbd3c4;
  padding: 12px;
  width: 100%;
}
.day-options label {
  display: flex;
  align-items: center;
  gap: 6px;
}
.day-options input {
  width: auto;
}
.other-days {
  margin-top: 16px;
}
.break-windows fieldset {
  min-width: 0;
  border: 1px solid #cbd3c4;
  border-radius: 10px;
  padding: 16px;
}
.break-windows label {
  display: block;
  margin: 8px 0;
}
.activity-days {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.activity-days input {
  width: auto;
}
.activity-days label {
  display: flex;
  align-items: center;
  gap: 6px;
}
.staff-day {
  grid-template-columns: 1fr 1fr 1fr 1fr;
}
.allocation-list {
  padding: 12px 24px;
  background: #f3f5ee;
}
.planner-stale {
  color: #872c24;
}
@media (max-width: 600px) {
  .day-hours-fields,
  .break-windows {
    grid-template-columns: 1fr;
  }
  .staff-day {
    grid-template-columns: 1fr 1fr;
  }
}

.activity-fields {
  display: grid;
  grid-template-columns: 2fr repeat(3, minmax(90px, 1fr)) 1fr;
  gap: 12px;
}
.repeat-days {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  border: 1px solid #cbd3c4;
  margin-top: 12px;
  padding: 12px;
}
.repeat-days label {
  display: flex;
  align-items: center;
  gap: 6px;
}
.repeat-days input {
  width: auto;
}
@media (max-width: 800px) {
  .activity-fields {
    grid-template-columns: 1fr 1fr;
  }
  .activity-fields label:first-child {
    grid-column: 1/-1;
  }
}

.notice-choice,
.time-dropdowns {
  display: flex;
  gap: 8px;
}
.notice-choice > * {
  min-width: 0;
}
.time-dropdowns select {
  min-width: 0;
}
.care-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.reminder-banner {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 14px 20px;
  background: #edf0e6;
  border-bottom: 2px solid #50694c;
  box-shadow: 0 2px 8px #0002;
}
.reminder-banner[hidden] {
  display: none;
}
.reminder-banner a {
  font-weight: bold;
  margin-left: 12px;
}
.breaks-rota {
  margin-top: 28px;
  border-top: 2px solid #50694c;
  padding-top: 18px;
}
.breaks-rota td {
  min-width: 100px;
}
.breaks-rota th:first-child {
  min-width: 100px;
}
.rota-stale {
  color: #872c24;
}
.rota-print-only #integrated-output > .day {
  display: none;
}
@media (max-width: 760px) {
  .care-form {
    grid-template-columns: 1fr;
  }
}
@media print {
  body.rota-print-only #integrated-output > *:not(.breaks-rota) {
    display: none !important;
  }
  .breaks-rota {
    break-before: page;
  }
  body.rota-print-only .breaks-rota {
    break-before: auto;
  }
  .reminder-banner {
    display: none !important;
  }
}

main section[id] {
  scroll-margin-top: 150px;
}
.breaks-rota caption {
  padding: 10px;
  text-align: left;
  font-weight: 600;
}

/* Keep the deadline form readable within its half-width card. */
.care-form {
  align-items: start;
  gap: 14px 12px;
}
.care-form > * {
  min-width: 0;
}
.deadline-type,
.deadline-description,
.deadline-notice,
#care-add {
  grid-column: 1/-1;
}
.deadline-description[hidden] {
  display: none;
}
.deadline-notice .notice-choice {
  display: grid;
  grid-template-columns: minmax(70px, 1fr) minmax(130px, 2fr);
}
.deadline-notice .hint {
  margin: 6px 0 0;
}
.care-form label {
  margin-bottom: 6px;
}
.care-form .time-dropdowns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.care-form input,
.care-form select {
  min-height: 46px;
}
#care-add {
  margin-top: 0;
}

.timetable-actions {
  gap: 12px;
  align-items: stretch;
  margin-top: 18px;
}
.timetable-actions button {
  min-height: 46px;
  margin: 0;
}
#integrated-output {
  margin-top: 18px;
}
@media (max-width: 600px) {
  .timetable-actions {
    flex-direction: column;
  }
  .timetable-actions button {
    width: 100%;
    white-space: normal;
  }
}

#planning-workspace[hidden] {
  display: none;
}
.teaching-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 18px 0;
}
.teaching-choices fieldset {
  min-width: 0;
  border: 1px solid #dce2d6;
  border-radius: 10px;
  padding: 16px;
}
.teaching-choices legend {
  font-weight: 650;
  padding: 0 6px;
}
.teaching-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  font-weight: normal;
  margin: 12px 0;
}
.teaching-option input {
  flex: 0 0 auto;
  width: auto;
  margin-top: 3px;
}
.teaching-class-fields,
.activity-context {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.activity-fields {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.activity-subject {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.custom-subject {
  grid-column: 1/-1;
}
.custom-subject[hidden],
.activity-context label[hidden] {
  display: none;
}
.activity-context {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
}
.activity-context > * {
  min-width: 0;
}
#teaching-nation {
  max-width: 540px;
}
#teaching-summary {
  font-weight: 600;
}
.teaching-class-fields input {
  width: 100%;
}
@media (max-width: 650px) {
  .teaching-choices,
  .teaching-class-fields,
  .activity-subject,
  .activity-context {
    grid-template-columns: 1fr;
  }
  .activity-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .activity-subject {
    grid-column: 1/-1;
  }
}
@media print {
  #teaching-setup {
    display: none !important;
  }
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.dashboard-card {
  background: #f0f3eb;
  border: 1px solid #dce2d6;
  padding: 16px;
  border-radius: 12px;
  min-width: 0;
}
.dashboard-card p {
  margin-bottom: 0;
}
.dashboard-card h3 {
  font-size: 16px;
}
.dashboard-item {
  padding: 8px 0;
  border-bottom: 1px solid #dce2d6;
}
.dashboard-item:last-child {
  border-bottom: 0;
}
.space-card {
  border: 1px solid #dce2d6;
  border-radius: 10px;
  padding: 16px;
  margin-top: 12px;
}
.space-edit {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.space-card[hidden],
.dashboard-card[hidden] {
  display: none;
}
#human-tone {
  max-width: 400px;
  margin: 8px 0;
}
#care-preferences-summary {
  font-size: 13px;
}
@media (max-width: 800px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .space-edit {
    grid-template-columns: 1fr;
  }
}

/* Show one topic at a time while preserving timetable printing. */
@media screen {
  #planning-workspace > .workspace-inactive {
    display: none !important;
  }
}
#workspace-navigation select {
  width: 100%;
  min-height: 46px;
}
.teaching-choices > label {
  min-width: 0;
}
.teaching-choices select {
  width: 100%;
}

.care-card summary {
  cursor: pointer;
  font-weight: 600;
  padding: 8px 0;
}
.care-card summary:focus-visible {
  outline: 2px solid #50694c;
  outline-offset: 4px;
}

@media screen {
  #plan-files.workspace-inactive {
    display: none !important;
  }
}

.wellbeing-welcome {
  text-align: center;
  padding: 18px 12px;
}
.wellbeing-welcome h3 {
  font-size: 25px;
}
.wellbeing-pause {
  background: #f5f6f0;
  border: 1px solid #dce2d6;
  border-radius: 12px;
  padding: 18px;
  margin: 16px 0;
}
.wellbeing-pause h3,
.wellbeing-thought h3 {
  font-size: 16px;
  margin: 0 0 10px;
}
.wellbeing-thought {
  background: #e9eedf;
  border-radius: 10px;
  padding: 18px;
  margin: 16px 0;
}
.wellbeing-thought p {
  margin: 0;
}
.wellbeing-preferences {
  margin: 20px 0 0;
  border-top: 1px solid #dce2d6;
  padding-top: 16px;
}
.wellbeing-preferences > summary {
  cursor: pointer;
  font-weight: 600;
  padding: 10px 0;
}
.care-grid {
  align-items: start;
}
#wellbeing-moment {
  max-width: 480px;
}

#teaching-setup[hidden] {
  display: none !important;
}
.workspace-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid #dce2d6;
  font-size: 13px;
}
.workspace-context button {
  flex-shrink: 0;
}
.workspace-progress {
  max-width: 900px;
  margin: 18px auto 10px;
  font-size: clamp(22px, 2.8vw, 30px);
  line-height: 1.2;
  text-align: center;
  text-wrap: balance;
  color: #334c31;
}
#workspace-navigation > .hint {
  text-align: center;
}
#workspace-navigation > .actions {
  justify-content: center;
  margin: 12px 0;
}
#workspace-navigation details {
  margin-top: 16px;
}
#workspace-navigation summary {
  cursor: pointer;
  font-weight: 600;
}
#workspace-navigation details label {
  margin-top: 14px;
}
#space-setup[aria-busy='true'] {
  opacity: 0.7;
}
#space-status button {
  display: block;
  margin-top: 12px;
}
@media (max-width: 600px) {
  .workspace-context {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media print {
  body {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  #integrated-planner > h2 {
    background: #486448;
    color: white;
    padding: 16px;
    font-size: 24px;
  }
  #integrated-output th,
  .breaks-rota th {
    background: #486448;
    color: white;
  }
  #integrated-output tbody tr:nth-child(even) {
    background: #eef2e9;
  }
  #integrated-output .timetable-conflict {
    background: #fff0d9;
  }
  #integrated-output .day > h3 {
    color: #405840;
    border-bottom: 3px solid #b77e8b;
    padding: 10px 0;
  }
  #integrated-output table {
    font-size: 11px;
  }
  #integrated-output td {
    padding: 9px 7px;
    border-bottom: 1px solid #cbd3c4;
  }
}

.calendar-provider-link {
  display: inline-block;
  border: 1px solid #50694c;
  border-radius: 8px;
  padding: 11px 15px;
  background: #eef2e9;
  color: #334c31;
  font-weight: 600;
  text-decoration: none;
}
.calendar-provider-link:hover {
  background: #e0e8d8;
}
.calendar-provider-link:focus-visible {
  outline: 3px solid #a7c49c;
  outline-offset: 3px;
}

#privacy-title {
  font-weight: 700;
}
.hero {
  text-align: center;
}
.hero .lead {
  margin-left: auto;
  margin-right: auto;
}
.teacher-name-field {
  max-width: 540px;
  margin: 18px 0;
}
.teacher-name-field input {
  width: 100%;
}

/* Give encouragement room to read as a personal message. */
.human-quote,
.wellbeing-thought {
  text-align: center;
  padding: clamp(24px, 4vw, 44px);
  margin: 24px 0;
}
.human-quote,
#wellbeing-thought {
  font-family: Georgia, serif;
  font-size: clamp(25px, 3.3vw, 36px);
  font-style: italic;
  line-height: 1.5;
  color: #334c31;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.wellbeing-thought h3 {
  font-family: Georgia, serif;
  font-size: clamp(22px, 2.6vw, 29px);
  font-style: italic;
  font-weight: normal;
  margin-bottom: 18px;
}
#human-heading {
  text-align: center;
  font-style: italic;
  font-size: clamp(29px, 3.4vw, 39px);
}

.quick-week {
  padding: 20px 0;
}
.quick-settings {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0;
}
.quick-settings label {
  min-width: 0;
}
.quick-day {
  border: 1px solid #dce2d6;
  border-radius: 12px;
  margin: 16px 0;
  padding: 16px;
  background: #fafbf7;
}
.quick-day h4 {
  margin: 0 0 12px;
}
.quick-day h4 label {
  font-size: 19px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.quick-day-slots {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 3px 14px;
  scroll-snap-type: x proximity;
}
.quick-day-top-scroll {
  overflow-x: auto;
  margin-inline: 0;
}
.quick-day-top-scroll > div {
  height: 1px;
}
.quick-day-slots .simultaneous-group > summary {
  font-weight: 600;
  color: #45543b;
  overflow-wrap: anywhere;
}
.quick-slot {
  flex: 0 0 225px;
  border: 1px solid #dce2d6;
  border-radius: 10px;
  padding: 14px;
  background: white;
  scroll-snap-align: start;
}
.quick-slot > strong {
  display: block;
  color: #405840;
  margin-bottom: 14px;
}
.quick-slot input,
.quick-slot select {
  margin-top: 5px;
}
.quick-slot-break {
  flex-basis: 155px;
  background: #e9eedf;
}
.manual-activities > summary,
.quick-week > details > summary {
  cursor: pointer;
  font-weight: 600;
  padding: 14px 0;
}
.manual-activities {
  border-top: 1px solid #dce2d6;
  margin: 18px 0;
}
.quick-week [hidden] {
  display: none !important;
}
@media (max-width: 800px) {
  .quick-settings {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 480px) {
  .quick-settings {
    grid-template-columns: 1fr;
  }
  .quick-slot {
    flex-basis: 215px;
  }
}

.quick-slot-break {
  flex: 0 0 112px;
  padding: 12px 10px;
  text-align: center;
  align-self: stretch;
}
.quick-slot-break > strong {
  font-size: 13px;
  line-height: 1.6;
  white-space: normal;
}
.quick-slot-break p {
  font-size: 14px;
}
.quick-slot > strong {
  font-variant-numeric: tabular-nums;
}
#personal-dashboard {
  min-height: 75vh;
  min-height: 75svh;
  padding: clamp(24px, 4vw, 52px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
#personal-dashboard > .eyebrow {
  text-align: center;
}
#dashboard-greeting {
  text-align: center;
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.15;
  text-wrap: balance;
  margin: 8px 0;
}
#dashboard-date {
  text-align: center;
  font-size: clamp(21px, 2.8vw, 29px);
  margin: 0 0 12px;
}
#dashboard-status {
  text-align: center;
  font-size: 18px;
  margin: 0 0 20px;
}
#personal-dashboard .dashboard-grid {
  gap: 20px;
}
#personal-dashboard .dashboard-card {
  padding: clamp(20px, 2.8vw, 30px);
}
#personal-dashboard .dashboard-card h3 {
  font-size: 22px;
  line-height: 1.3;
}
#personal-dashboard .dashboard-card p {
  font-size: 18px;
  line-height: 1.65;
}
#personal-dashboard .dashboard-item strong {
  font-size: 18px;
}
#personal-dashboard > .actions {
  justify-content: center;
  margin-top: 24px;
}
#personal-dashboard > .hint {
  text-align: center;
}
@media (max-width: 480px) {
  .quick-slot-break {
    flex-basis: 104px;
  }
  #personal-dashboard .dashboard-card p {
    font-size: 17px;
  }
}

.quick-shared-year {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin: 14px 0;
  padding: 12px;
  background: #eef2e9;
  border-radius: 8px;
}
.quick-shared-year > label:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.quick-shared-year > label:last-child {
  min-width: 190px;
  margin: 0;
}
.quick-shared-year select {
  margin-top: 5px;
}
.quick-shared-year[hidden] {
  display: none !important;
}

.hero {
  container-type: inline-size;
}
.hero h1 {
  text-align: center;
  font-size: clamp(22px, 4.3cqw, 40px);
  line-height: 1.2;
}
.hero h1 > span {
  display: block;
  white-space: nowrap;
}
.hero h1 > span + span {
  margin-top: 0.12em;
}

/* Give every step the same spacious content area without clipping long forms. */
@media screen {
  #planning-workspace > section,
  #plan-files {
    min-height: 75vh;
    min-height: 75svh;
    padding: clamp(22px, 3vw, 36px);
    display: flex;
    flex-direction: column;
  }
  #planning-workspace > section > .actions:last-child,
  #plan-files > .actions:last-child {
    margin-top: auto;
    padding-top: 24px;
  }
  #personal-dashboard {
    justify-content: center;
    gap: 12px;
  }
  #personal-dashboard > .actions:last-child {
    margin-top: 24px;
  }
  #workspace-navigation {
    padding: 18px 22px;
  }
  .hero {
    padding: 10px 0 8px;
  }
  .hero .lead {
    font-size: 16px;
    line-height: 1.6;
    margin-top: 14px;
    margin-bottom: 14px;
  }
}

.pdf-appearance {
  border: 1px solid #d9dcd2;
  border-radius: 10px;
  margin: 18px 0;
  padding: 16px;
}
.pdf-appearance legend {
  font-weight: 600;
  color: #45543b;
}
.pdf-weekday-key {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.pdf-weekday-key span {
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
}

.quick-slot-missing {
  border: 2px solid #a64738;
  background: #fff5ed;
}

@media screen {
  body .preview-redundant-navigation { display: none !important; }
  body #plan-files .preview-save-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: start;
    gap: 18px;
    margin-top: 24px;
  }
  body #plan-files .preview-save-layout > div { min-width: 0; }
  body #plan-files .preview-save-output,
  body #plan-files #preview-saved-months,
  body #plan-files .preview-export-appearance {
    background: #fffefa;
    border: 1px solid #eee9df;
    border-radius: 20px;
    box-shadow: 0 5px 24px #51422b08;
    padding: 24px;
  }
  body #plan-files .preview-save-layout :is(.preview-export-naming, .preview-export-appearance) {
    margin: 0 0 16px;
    padding: 22px;
  }
  body #plan-files .preview-save-output > .preview-export-naming { padding: 0; border: 0; border-radius: 0; background: transparent; }
  body #plan-files .preview-save-output > .preview-export-naming + .preview-export-naming { border-top: 1px solid #e6e0d5; padding-top: 20px; margin-top: 22px; }
  body #plan-files .preview-save-layout h3,
  body #plan-files .preview-save-layout .pdf-appearance legend { font: 26px/1.2 Georgia, serif; color: #202b29; }
  body #plan-files .preview-save-layout h3 { position: relative; padding-left: 58px; min-height: 44px; display: flex; align-items: center; margin: 0 0 16px; }
  body #plan-files .preview-save-layout h3::before,
  body #plan-files .preview-save-layout .pdf-appearance legend::before {
    display: inline-grid; place-items: center; width: 44px; height: 44px;
    border-radius: 50%; background: linear-gradient(135deg, #c18c90, #ad626d);
    color: #fff; font: 25px/1 Georgia, serif;
  }
  body #plan-files .preview-save-output h3::before { content: '1'; position: absolute; left: 0; }
  body #plan-files #preview-saved-months h3::before { content: '2'; position: absolute; left: 0; }
  body #plan-files .preview-save-layout .pdf-appearance legend::before { content: '3'; flex-shrink: 0; }
  body #plan-files .preview-save-layout p { margin: 12px 0; line-height: 1.55; }
  body #plan-files .preview-save-layout .hint { color: #70777a; font-size: 12px; }
  body #plan-files .preview-save-layout :is(input, select) { max-width: 100%; min-width: 0; border-color: #c6cdca; background-color: #fffefa; border-radius: 6px; }
  body #plan-files .preview-save-layout label { max-width: none; margin-block: 12px; gap: 6px; font-size: 13px; }
  body #plan-files .preview-save-layout fieldset { min-width: 0; margin: 20px 0; padding: 16px; }
  body #plan-files #preview-daily-print-options { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 16px; border: 0; border-radius: 12px; background: #f5f2e9; }
  body #plan-files #preview-daily-print-options[hidden] { display: none; }
  body #plan-files #preview-export-period-options[hidden],
  body #plan-files #preview-export-period-options [hidden] { display: none; }
  body #plan-files #preview-daily-print-options legend { font-size: 16px; padding: 0 4px; }
  body #plan-files #preview-daily-selected { grid-column: 1 / -1; }
  body #plan-files #preview-saved-months > p:first-of-type { padding: 12px 14px; border-radius: 10px; background: #eceedf; font-size: 13px; color: #535c50; }
  body #plan-files .preview-save-layout .actions { margin: 16px 0 8px; gap: 10px; flex-wrap: wrap; }
  body #plan-files .preview-save-layout button { border-radius: 6px; }
  body #plan-files .preview-save-output > .actions { padding-top: 8px; }
  body #plan-files .preview-save-output > .actions button { flex: 1 1 120px; }
  body #plan-files .preview-save-layout .pdf-appearance { padding: 0; border: 0; margin: 0; }
  body #plan-files .preview-save-layout .pdf-appearance legend { display: flex; align-items: center; gap: 14px; width: 100%; margin-bottom: 12px; }
  body #plan-files .preview-save-layout .pdf-weekday-key { flex-wrap: wrap; }
  body #plan-files .preview-save-layout :is(.actions:has(#plan-export-pdf), #plan-open-latest-pdf, #plan-file-status) { position: relative; z-index: 101; background-color: #fffefa; }
  @media (max-width: 1050px) {
    body #plan-files .preview-save-layout { grid-template-columns: minmax(0, 1fr); }
  }
  @media (max-width: 540px) {
    body #plan-files .preview-save-output,
    body #plan-files .preview-save-layout :is(#preview-saved-months, .preview-export-appearance) { padding: 16px; border-radius: 14px; }
    body #plan-files #preview-daily-print-options { grid-template-columns: minmax(0, 1fr); }
    body #plan-files .preview-save-layout h3,
    body #plan-files .preview-save-layout .pdf-appearance legend { font-size: 22px; }
  }
}

#dashboard-daily-timetable { margin: 20px 0 24px; }
.review-day-navigation { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 12px; }
.review-day-navigation button { min-height: 44px; }
.review-day-navigation button[aria-pressed='true'] { background: #f2e5e7; color: #654249; border-color: #ad777d; }
#integrated-output > .day[hidden] { display: none; }
#integrated-output .review-break-summary { margin-bottom: 18px; }
#integrated-output .review-break-summary :is(th,td) { padding: 8px 12px; }
#integrated-output .review-break-summary tbody tr:nth-child(even) { background: #f2f3ec; }
@media screen {
  #integrated-output .review-detail-table { min-width: 920px; font-size: 13px; line-height: 1.45; }
  #integrated-output .review-detail-table caption { text-align: left; font-size: 14px; font-weight: 600; padding: 10px 0; }
  #integrated-output .review-detail-table :is(th,td) { padding: 10px 12px; vertical-align: middle; }
  #integrated-output .review-detail-table :is(th,td):first-child { white-space: nowrap; width: 116px; font-variant-numeric: tabular-nums; }
  #integrated-output .review-detail-table :is(th,td):nth-child(2) { width: 34%; }
  #integrated-output .review-detail-table :is(th,td):nth-child(3) { min-width: 160px; }
  #integrated-output .review-detail-table :is(th,td):is(:nth-child(4),:nth-child(5)) { text-align: center; width: 96px; }
  #integrated-output .review-detail-table :is(th,td):last-child { width: 136px; white-space: nowrap; }
  #integrated-output .review-detail-table tbody tr:nth-child(even) { background: #f8f9f4; }
  #integrated-output .review-detail-table tbody .review-pupil-break:not(.timetable-conflict) { background: #e8ecdf; }
  #integrated-output .review-detail-table .review-pupil-break td:nth-child(2) { font-weight: 600; }
  #integrated-output .review-detail-table .review-status { display: inline-block; padding: 3px 7px; border-radius: 5px; background: #edf1e7; color: #405239; font-size: 11px; }
  #integrated-output .review-detail-table .timetable-conflict { background: #fff0d9; }
  #integrated-output .review-detail-table .timetable-conflict .review-status { background: #f5dbb2; color: #703e19; font-weight: 600; }
}
.preview-planner-welcome[hidden] { display: none; }
#dashboard-sticky-notes { margin: 24px 0; }
#dashboard-support-heading { margin: 28px 0 14px; }
body #personal-dashboard #dashboard-daily-timetable { margin: 18px 0 22px; }
body #personal-dashboard #dashboard-timetable-heading { margin: 0; }
body #personal-dashboard .dashboard-agenda-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; min-height: 52px; padding: 14px 18px;
  border: 1px solid #bdc5ad; border-radius: 10px;
  background: #eeefe5; color: #45543b; text-align: left;
  font: 600 15px/1.4 system-ui, sans-serif; box-shadow: none;
}
.dashboard-agenda-toggle::after { content: '+'; font-size: 22px; font-weight: 400; }
.dashboard-agenda-toggle[aria-expanded='true']::after { content: '−'; }
body #personal-dashboard .dashboard-agenda-toggle:hover { background: #e5e8db; }
#dashboard-agenda-content { padding: 12px 0 0; }
#dashboard-agenda-content[hidden] { display: none; }
body #personal-dashboard #dashboard-sticky-notes { margin: 20px 0; padding: 20px; background: #faf8f1; border: 1px solid #e5dfd3; border-radius: 12px; }
body #personal-dashboard :is(#dashboard-sticky-title, #dashboard-support-heading) { font: 25px/1.3 Georgia, serif; color: #35412e; }
body #personal-dashboard #dashboard-sticky-title { margin: 0 0 10px; }
body #personal-dashboard #dashboard-sticky-help { max-width: 90ch; margin: 8px 0 14px; line-height: 1.6; }
body #personal-dashboard .dashboard-grid { gap: 16px; align-items: start; }
body #personal-dashboard .dashboard-card { padding: 20px; background: #f7f6ee; border-color: #dce0d1; border-top: 3px solid #a4ae91; border-radius: 12px; }
body #personal-dashboard #dashboard-moment-card { background: #f3e8eb; border-color: #e1cdd2; border-top-color: #ad777d; }
body #personal-dashboard #dashboard-inclusion-card { background: #eeefe5; border-top-color: #78856a; }
body #personal-dashboard .dashboard-card h3 { margin: 0 0 12px; font: 23px/1.3 Georgia, serif; color: #35412e; }
body #personal-dashboard .dashboard-card p { margin: 8px 0 0; font-size: 15px; line-height: 1.6; }
body #personal-dashboard .dashboard-item strong { font-size: 15px; }
@media (max-width: 540px) { body #personal-dashboard #dashboard-sticky-notes { padding: 14px; } }
/* Your day: a quiet dashboard using the planner's cream, olive and rose. */
body #personal-dashboard { background: #fbf9f3; border-color: #e8e2d7; gap: 0; justify-content: flex-start; }
body #personal-dashboard #dashboard-greeting { font-family: Georgia, serif; font-size: clamp(32px, 3.5vw, 48px); line-height: 1.15; margin-bottom: 12px; }
body #personal-dashboard #dashboard-date { font: 22px/1.4 Georgia, serif; margin: 12px 0; color: #303a2b; }
body #personal-dashboard #dashboard-status { font-size: 13px; margin: 8px 0 18px; color: #68735f; }
#personal-dashboard svg { width: 26px; height: 26px; flex-shrink: 0; }
#dashboard-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 18px 0; }
.day-summary-card { display: flex; align-items: center; gap: 14px; padding: 18px; background: #fffefa; border: 1px solid #e6e0d5; border-radius: 12px; box-shadow: 0 4px 14px #51422b05; min-width: 0; }
#personal-dashboard .day-summary-card svg { width: 34px; height: 34px; color: #697b4e; }
#personal-dashboard .day-summary-card:nth-child(3n+1) svg { color: #ad777d; }
.day-summary-card strong { display: block; font: 27px/1.2 Georgia, serif; color: #263328; }
.day-date-line { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; margin: 24px 0; padding: 0 0 18px; border-bottom: 1px solid #e4dfd4; }
body #personal-dashboard .day-date-line #dashboard-date { margin: 0; font-size: clamp(22px, 2vw, 27px); }
body #personal-dashboard #dashboard-term-badge { display: inline-flex; align-items: center; padding: 6px 12px; border: 1px solid #dddace; border-radius: 6px; font: 500 14px/1.4 system-ui,sans-serif; background: #f1f2ea; color: #46543b; box-shadow: none; }
body #personal-dashboard #dashboard-term-countdown { order: 3; flex: 1 0 100%; margin: 0; padding: 0 0 0 12px; border-left: 3px solid #b77c86; color: #77565d; font: 16px/1.6 system-ui,sans-serif; overflow-wrap: anywhere; }
body #personal-dashboard #dashboard-back-today { margin: 0 0 0 auto; min-height: 40px; background: #fffefa; }
body #personal-dashboard #dashboard-back-today[hidden] { display: none; }
@media (max-width: 600px) { body #personal-dashboard .day-date-line #dashboard-date { flex-basis: 100%; } body #personal-dashboard #dashboard-term-countdown { font-size: 15px; } }
#dashboard-school-calendar { margin: 10px 0 16px; padding: 12px 16px; border: 1px solid #dfdacf; border-radius: 10px; background: #f5f3eb; }
body #teaching-setup .teaching-workspace-help { margin: 24px 0 12px; max-width: 700px; font-size: 16px; line-height: 1.6; color: #46543b; }
body #teaching-setup .teaching-workspace-actions { align-items: center; gap: 16px; }
body #teaching-setup #teaching-continue { display: inline-flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 64px; width: min(100%, 420px); padding: 18px 24px; border: 1px solid #46543b; border-radius: 8px; background: #46543b; color: #fffefa; font: 600 18px/1.4 system-ui,sans-serif; text-align: left; box-shadow: 0 4px 10px #46543b20; }
body #teaching-setup #teaching-continue span { font-size: 26px; line-height: 1; }
body #teaching-setup #teaching-continue:hover:not(:disabled) { background: #35432d; }
body #teaching-setup #teaching-continue:focus-visible { outline: 3px solid #b77c86; outline-offset: 4px; }
body #teaching-setup #teaching-continue:disabled { opacity: .55; box-shadow: none; }
#dashboard-school-calendar > summary { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; min-height: 44px; padding: 10px 18px; border-radius: 6px; background: #46543b; color: #fff; cursor: pointer; font: 600 14px/1.5 system-ui, sans-serif; list-style: none; }
#dashboard-school-calendar > summary::-webkit-details-marker { display: none; }
#dashboard-school-calendar > summary:hover { background: #36432d; }
#dashboard-school-calendar > summary:focus-visible { outline: 3px solid #b77c86; outline-offset: 3px; }
#dashboard-school-calendar .calendar-toggle-hide, #dashboard-school-calendar[open] .calendar-toggle-show { display: none; }
#dashboard-school-calendar[open] .calendar-toggle-hide { display: inline; }
.day-plan-ahead { margin: 20px 0; padding: 16px 20px; border: 1px solid #dfdacf; border-radius: 14px; background: #f5f3eb; }
.day-plan-ahead > summary { cursor: pointer; color: #46543b; font-weight: 600; }
.day-plan-controls { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin-top: 16px; }
.day-plan-controls label { flex: 1 1 180px; max-width: 280px; }
.day-plan-ahead .quick-week { min-width: 0; }
.day-closure-row { grid-template-columns: 1fr 1fr auto; }
.day-closure-row > label:first-child, .day-closure-row > label:nth-child(2) { grid-column: 1 / -1; }
.day-holiday-board { margin: 16px 0 8px; padding: 35px 20px; border: 8px solid #d6c8ad; border-radius: 12px; background: #fffefa; box-shadow: inset 0 0 12px #d6c8ad40, 0 4px 12px #48513d0d; text-align: center; color: #4b5d40; overflow-wrap: anywhere; }
.day-holiday-board p { margin: 0 0 14px; font: 30px/1.4 'Comic Sans MS', 'Comic Sans', cursive; }
.day-holiday-board strong { display: block; font: 22px/1.5 'Comic Sans MS', 'Comic Sans', cursive; color: #ad707a; }
.day-holiday-board span { display: block; margin-top: 20px; font: 16px/1.6 'Comic Sans MS', 'Comic Sans', cursive; }
@media (max-width: 600px) { .day-closure-row { grid-template-columns: 1fr; } .day-plan-ahead { padding: 12px; } .day-holiday-board p { font-size: 25px; } }
.day-calendar-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto; gap: 12px; align-items: end; margin: 12px 0; }
.day-calendar-row label { min-width: 0; margin: 0; }
.day-calendar-row input { min-width: 0; }
.day-calendar-row button { min-height: 44px; }
#dashboard-term-dates .day-calendar-row { grid-template-columns: 58px minmax(0,1fr) minmax(0,1fr) auto; }
.day-term-number { font-size: 13px; align-self: center; }
#dashboard-summary button.day-summary-card { position: relative; text-align: left; font-weight: 400; padding-right: 26px; color: #35412e; }
#dashboard-summary button.day-summary-card::after { content: '›'; position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: #687b50; font-size: 20px; }
#dashboard-summary button.day-summary-card:hover { border-color: #a2ad90; background: #f8f8ef; }
#dashboard-summary button.day-summary-card[aria-expanded='true'] { border-color: #ad777d; }
.day-summary-card small { display: block; margin-top: 5px; font-size: 10px; line-height: 1.4; color: #7b806f; }
#dashboard-summary-details { position: relative; margin-bottom: 18px; padding: 18px; border: 1px solid #d4dbc7; border-radius: 12px; background: #f3f5eb; }
#dashboard-summary-details[hidden] { display: none; }
#dashboard-summary-details > h3 { padding-right: 80px; margin: 0 0 16px; font: 24px/1.3 Georgia,serif; color: #35412e; }
#dashboard-summary-details > button { position: absolute; right: 14px; top: 12px; font-size: 12px; padding: 7px 12px; }
body #personal-dashboard #dashboard-summary-details p { font-size: 14px; line-height: 1.6; }
.day-due-item { padding: 12px 0; border-top: 1px solid #dce1cf; }
.day-due-item button { font-size: 12px; padding: 8px 12px; }
body #personal-dashboard .day-text-action { padding: 3px 0; min-height: 28px; background: transparent; border: 0; box-shadow: none; color: #815961; font: 12px/1.4 system-ui,sans-serif; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 540px) { .day-calendar-row { grid-template-columns: minmax(0,1fr); } #dashboard-summary button.day-summary-card { padding: 12px; } #dashboard-summary button.day-summary-card::after { display: none; } }
.day-summary-card span { display: block; font-size: 12px; line-height: 1.5; color: #667366; margin-top: 4px; }
#dashboard-workspace { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr); gap: 16px; align-items: start; margin-bottom: 24px; }
body #personal-dashboard #dashboard-workspace > :is(#dashboard-daily-timetable,#dashboard-sticky-notes) { margin: 0; padding: 20px; min-width: 0; border: 1px solid #e8e2d7; border-radius: 14px; background: #fffefa; box-shadow: 0 4px 16px #51422b04; }
.day-panel-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
body #personal-dashboard .day-panel-heading h3,
body #personal-dashboard #dashboard-sticky-title,
body #personal-dashboard .dashboard-card h3 { display: flex; align-items: center; gap: 10px; font: 23px/1.3 Georgia, serif; }
body #personal-dashboard .day-panel-heading h3 { color: #35412e; }
body #personal-dashboard .dashboard-agenda-toggle { width: auto; min-height: 36px; gap: 12px; padding: 7px 10px; border-radius: 6px; border-color: #d1d6c4; background: #f8f8f0; font-size: 12px; }
body #personal-dashboard .dashboard-agenda-toggle::after { font-size: 18px; }
#dashboard-agenda-content { padding-top: 16px; }
.day-timeline { list-style: none; margin: 0; padding: 0; }
.day-timeline > li { display: grid; grid-template-columns: 112px minmax(0,1fr); gap: 16px; position: relative; padding-bottom: 7px; }
.day-timeline-time { padding-top: 13px; font-size: 12px; line-height: 1.4; color: #68766a; white-space: nowrap; font-variant-numeric: tabular-nums; }
.day-timeline > li::before { content: ''; position: absolute; left: 119px; top: 0; bottom: 0; border-left: 1px dashed #c8cbbd; }
.day-timeline > li::after { content: ''; position: absolute; left: 115px; top: 18px; width: 9px; height: 9px; border: 2px solid #fffefa; border-radius: 50%; background: #83936d; }
.day-timeline > .day-timeline-rose::after { background: #b57b86; }
.day-timeline > .day-timeline-break::after { background: #a18c65; }
.day-timeline article { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 10px 13px; background: #e9ecdd; border-radius: 9px; }
.day-timeline article:has(.day-activity-details) { align-items: flex-start; }
.day-activity-details { min-width: 0; width: 100%; }
.day-activity-summary { position: relative; display: block; padding-right: 20px; cursor: pointer; list-style: none; }
.day-activity-summary::-webkit-details-marker { display: none; }
.day-activity-summary::after { content: '+'; position: absolute; top: 0; right: 0; font-size: 18px; color: #617448; }
.day-activity-details[open] > .day-activity-summary::after { content: '−'; }
.day-activity-name { display: block; font-size: 14px; line-height: 1.4; font-weight: 600; color: #263328; }
.day-activity-meta { display: block; margin-top: 4px; font-size: 12px; line-height: 1.5; color: #4f5c4d; }
.day-activity-body { padding-top: 12px; }
.day-activity-body dl { display: grid; grid-template-columns: 64px minmax(0,1fr); gap: 6px 10px; margin: 0 0 14px; font-size: 12px; }
.day-activity-body dt { color: #68735f; }
.day-activity-body dd { margin: 0; overflow-wrap: anywhere; }
.day-activity-body h4 { font-size: 13px; margin: 12px 0 6px; }
.day-activity-body ul { padding-left: 18px; font-size: 12px; }
body #personal-dashboard .day-activity-body .activity-preparation { background: #fffefa; padding: 10px; margin: 12px 0; border-color: #d2d8c4; }
body #personal-dashboard .day-activity-body .activity-preparation > summary { font-size: 13px; }
body #personal-dashboard .day-activity-body .hint { font-size: 11px; line-height: 1.6; }
.day-activity-body :is(input,textarea) { min-width: 0; max-width: 100%; }
.day-activity-body input[type=file] { width: 100%; font-size: 11px; padding: 6px; }
.day-activity-body :is(button,.day-text-action) { max-width: 100%; white-space: normal; }
body #personal-dashboard .day-activity-save { padding: 8px 10px; font-size: 12px; }
body #personal-dashboard .day-activity-body > .day-text-action { display: block; margin-top: 12px; text-align: left; }
.day-timeline article > div { min-width: 0; overflow-wrap: anywhere; }
.day-timeline .day-timeline-rose article { background: #f3e3e7; }
.day-timeline .day-timeline-break article { background: #f3eddf; }
#personal-dashboard .day-timeline article > svg { width: 23px; height: 23px; color: #617448; }
#personal-dashboard .day-timeline-break article > svg { color: #8b754d; }
.day-timeline strong { font-size: 14px; line-height: 1.4; color: #263328; }
body #personal-dashboard .day-timeline p { font: 12px/1.5 system-ui, sans-serif; margin: 3px 0 0; color: #4f5c4d; }
body #personal-dashboard #dashboard-sticky-title { margin: 0 0 16px; }
body #personal-dashboard #dashboard-sticky-notes > button { background: #ad777d; border-color: #ad777d; min-height: 38px; padding: 8px 12px; font-size: 13px; }
body #personal-dashboard #dashboard-sticky-notes .dashboard-sticky-list { grid-template-columns: minmax(0, 1fr); gap: 12px; }
body #personal-dashboard #dashboard-sticky-notes .dashboard-sticky-note { border-width: 1px; border-top-width: 3px; border-radius: 8px; padding: 14px; }
body #personal-dashboard #dashboard-sticky-notes .dashboard-sticky-text { min-height: 42px; margin: 12px 0; }
body #personal-dashboard #dashboard-sticky-notes .dashboard-sticky-note > label { font-size: 12px; }
body #personal-dashboard #dashboard-sticky-notes .dashboard-sticky-note .actions { margin-top: 8px; }
.sticky-about { margin-top: 16px; font-size: 12px; color: #68735f; }
.sticky-about summary { cursor: pointer; }
body #personal-dashboard #dashboard-support-heading { font: 12px/1.4 system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #737b69; margin: 20px 0 12px; }
body #personal-dashboard .dashboard-grid { grid-template-columns: repeat(3,minmax(0,1fr)); align-items: stretch; gap: 14px; }
body #personal-dashboard .dashboard-card { border-top-width: 1px; background: #fffefa; padding: 20px; box-shadow: 0 4px 14px #51422b03; }
body #personal-dashboard #dashboard-moment-card { background: #f5e8eb; border-color: #ead9de; }
body #personal-dashboard #dashboard-inclusion-card { background: #f3f3e9; border-color: #e4e6d7; }
body #personal-dashboard .dashboard-card h3 { font-size: 22px; }
body #personal-dashboard .dashboard-card svg { color: #6d7b53; }
body #personal-dashboard #dashboard-moment-card svg { color: #b47783; }
body #personal-dashboard #dashboard-moment { font-family: Georgia, serif; font-style: italic; line-height: 1.7; }
body #personal-dashboard .dashboard-item { display: grid; grid-template-columns: 54px minmax(0,1fr); gap: 12px; padding: 12px 0; }
.dashboard-item time { display: grid; align-content: start; color: #6c786b; font-size: 12px; line-height: 1.5; font-variant-numeric: tabular-nums; }
body #personal-dashboard .dashboard-item strong { display: block; font-size: 13px; line-height: 1.45; }
body #personal-dashboard :is(#dashboard-moment-card,#dashboard-inclusion-card) { position: relative; overflow: hidden; }
body #personal-dashboard .day-botanical { position: absolute; pointer-events: none; }
body #personal-dashboard .day-botanical-moment { width: 54px; height: 126px; right: 8px; top: 52px; opacity: .8; }
body #personal-dashboard #dashboard-moment { padding-right: 38px; }
.day-comfort-actions { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-top: 24px; position: relative; }
body #personal-dashboard .day-comfort-actions button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 12px 6px; min-width: 0; min-height: 82px; border: 1px solid #fffefa; border-radius: 10px; background: #fffaf6; color: #35412e; font: 400 11px/1.4 system-ui,sans-serif; box-shadow: none; }
body #personal-dashboard .day-comfort-actions button:hover { background: #fffefa; border-color: #d7b8bf; }
body #personal-dashboard .day-comfort-actions button svg { color: #b77e8b; width: 24px; height: 24px; }
body #personal-dashboard .day-comfort-actions button:nth-child(2) svg { color: #71864f; }
body #personal-dashboard .day-comfort-actions button:nth-child(3) svg { color: #c86c7a; }
#dashboard-comfort-response[hidden] { display: none; }
body #personal-dashboard #dashboard-comfort-response { font-size: 13px; margin-top: 12px; }
body #personal-dashboard .day-heart-flourish { display: block; width: 140px; height: 34px; margin: 10px 0 14px auto; color: #b77e8b; }
.day-focus { position: relative; padding-bottom: 28px; }
body #personal-dashboard .day-focus h4 { margin: 12px 0 10px; font: 600 13px/1.4 system-ui,sans-serif; color: #35412e; }
.day-focus-options { display: flex; flex-wrap: wrap; gap: 6px; }
body #personal-dashboard .day-focus-options button { flex: 1 0 60px; padding: 7px 5px; min-height: 32px; min-width: 0; border: 1px solid transparent; border-radius: 7px; background: #e3e7d8; color: #35412e; font: 400 11px/1.4 system-ui,sans-serif; box-shadow: none; }
body #personal-dashboard .day-focus-options button:nth-child(even) { background: #f0dfe3; }
body #personal-dashboard .day-focus-options button[aria-pressed='true'] { border-color: #697b4e; box-shadow: inset 0 0 0 1px #697b4e; font-weight: 600; }
body #personal-dashboard .day-focus-options button:hover { border-color: #ad777d; }
body #personal-dashboard #dashboard-focus-status { font-size: 12px; min-height: 16px; }
body #personal-dashboard .day-botanical-focus { width: 38px; height: 54px; right: 12px; bottom: 8px; opacity: .7; }
.day-overdue { display: block; color: #a74f5e; font-size: 12px; margin-top: 4px; }
@media (max-width: 1200px) { #dashboard-summary { grid-template-columns: repeat(2,minmax(0,1fr)); } #dashboard-workspace { grid-template-columns: minmax(0,1fr); } body #personal-dashboard #dashboard-sticky-notes .dashboard-sticky-list { grid-template-columns: repeat(auto-fill,minmax(min(240px,100%),280px)); } }
@media (max-width: 800px) { body #personal-dashboard .dashboard-grid { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 540px) { #dashboard-term-dates .day-calendar-row { grid-template-columns: minmax(0,1fr); } .day-summary-card { padding: 12px; gap: 10px; } .day-summary-card strong { font-size: 23px; } #personal-dashboard .day-summary-card svg { width: 26px; height: 26px; } body #personal-dashboard #dashboard-workspace > :is(#dashboard-daily-timetable,#dashboard-sticky-notes) { padding: 14px; } .day-timeline > li { grid-template-columns: minmax(0,1fr); gap: 5px; padding-left: 16px; padding-bottom: 12px; } .day-timeline-time { padding-top: 0; } .day-timeline > li::before { left: 3px; } .day-timeline > li::after { left: -1px; top: 5px; } }
.dashboard-sticky-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 280px)); gap: 14px; margin-top: 14px; align-items: start; }
.dashboard-sticky-text { white-space: pre-wrap; overflow-wrap: anywhere; min-height: 80px; }
.dashboard-sticky-note.is-editing { grid-column: auto; }
.dashboard-sticky-note [hidden] { display: none !important; }
.dashboard-sticky-note { min-width: 0; padding: 16px; border: 1px solid #d8ce9e; border-top: 4px solid #b8a55e; border-radius: 6px; background: #f7f0d8; }
.dashboard-sticky-note label { display: grid; gap: 8px; }
.dashboard-sticky-note textarea { width: 100%; min-width: 0; resize: vertical; font: inherit; padding: 10px; background: #fffdf6; }
.dashboard-sticky-note .sticky-appearance { margin: 12px 0; padding: 0; border: 0; background: transparent; }
.sticky-appearance summary { font-size: 13px; cursor: pointer; }
.sticky-appearance-options { display: grid; gap: 8px; margin-top: 10px; }
.sticky-appearance-options label { font-size: 12px; margin: 0; gap: 4px; }
.sticky-appearance-options select { width: 100%; min-width: 0; padding: 6px; font-size: 13px; }
#dashboard-sticky-notes .dashboard-sticky-text,
#dashboard-sticky-notes .dashboard-sticky-note textarea {
  color: #273329; line-height: 1.5;
  font-family: var(--sticky-font, Arial, sans-serif);
  font-size: var(--sticky-font-size, 16px);
  font-weight: 400;
}
.dashboard-sticky-note button { margin-top: 10px; }
.dashboard-sticky-note { position: relative; }
.dashboard-sticky-note > label { padding-right: 26px; }
body .dashboard-sticky-note .sticky-dismiss {
  position: absolute; top: 5px; right: 5px; margin: 0;
  min-width: 32px; min-height: 32px; padding: 2px;
  border: 0; background: transparent; color: #655f43;
  font: 24px/1 system-ui, sans-serif; box-shadow: none;
}
body .dashboard-sticky-note .sticky-edit {
  min-width: 0; min-height: 32px; margin: 0; padding: 4px 0;
  border: 0; background: transparent; color: #526047;
  font-size: 13px; font-weight: 400; text-decoration: underline;
  text-underline-offset: 3px; box-shadow: none;
}
body .dashboard-sticky-note :is(.sticky-edit, .sticky-dismiss):hover { color: #273329; background: #e9dfba; }
#dashboard-daily-timetable h3 { margin-bottom: 12px; }
#dashboard-daily-timetable th, #dashboard-daily-timetable td { padding: 10px 12px; }
#dashboard-daily-timetable .dashboard-pupil-break td { background: #e8eadd; font-weight: 600; }
#dashboard-daily-timetable details { margin-top: 12px; }
.preview-planner-welcome { margin: 20px 0; }
.preview-planner-welcome h2 { margin: 0; }
.preview-planner-welcome h2::after { display: none; }
.preview-planner-welcome p { margin: 6px 0 0; }

#preview-period-dialog {
  width: min(900px, calc(100vw - 32px));
  max-height: 85vh;
  overflow-y: auto;
  padding: 24px;
  border: 1px solid #c8cebd;
  border-radius: 12px;
  background: #fffefa;
  color: #273329;
}
#preview-period-dialog::backdrop { background: #27332966; }

.activity-gap-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(560px, calc(100vw - 32px));
  max-height: 85vh;
  overflow: auto;
  border: 1px solid #d9dcd2;
  border-radius: 16px;
  padding: 28px;
  background: #f7f6f1;
  color: #273329;
  box-shadow: 0 18px 70px #0004;
}
.activity-gap-dialog::backdrop {
  background: #27332980;
}
.activity-gap-dialog h2 {
  font-size: 28px;
}
.activity-gap-list {
  max-height: 25vh;
  overflow: auto;
  padding-left: 24px;
  line-height: 1.7;
}
.activity-gap-dialog .actions {
  margin-top: 24px;
}

.teacher-break-choice {
  border: 1px solid #d9dcd2;
  background: #f7f6f1;
  padding: 16px;
  border-radius: 10px;
  margin: 18px 0;
}
.teacher-break-choice > summary {
  cursor: pointer;
  font-weight: 600;
}
.teacher-break-details {
  grid-column: 1/-1;
}
.teacher-break-details[hidden] {
  display: none !important;
}

.planner-notifications {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 102;
  width: min(390px, calc(100vw - 32px));
  max-height: 70vh;
  max-height: 70svh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}
.notification-reminders,
.notification-alerts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.notification-reminders[hidden] {
  display: none;
}
.planner-toast {
  position: relative;
  padding: 18px 42px 18px 18px;
  border: 1px solid #d9dcd2;
  border-left: 4px solid #45543b;
  border-radius: 12px;
  background: #f7f6f1;
  color: #273329;
  box-shadow: 0 6px 24px #27332926;
  pointer-events: auto;
  overflow-wrap: anywhere;
}
.planner-toast > strong {
  display: block;
  font-size: 16px;
}
.planner-toast p {
  margin: 8px 0;
  font-size: 14px;
  line-height: 1.55;
}
.planner-toast a {
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
}
.toast-dismiss {
  position: absolute;
  right: 7px;
  top: 7px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  color: #45543b;
  border: 0;
  font-size: 24px;
  font-weight: 400;
}
.toast-dismiss:hover {
  background: #e8eadf;
}
@media (max-width: 480px) {
  .planner-notifications {
    right: 8px;
    bottom: 8px;
    width: calc(100vw - 16px);
    max-height: 55svh;
  }
}
@media print {
  .planner-notifications {
    display: none !important;
  }
}

.planner-notifications {
  width: min(440px, calc(100vw - 32px));
}
.planner-toast {
  border-left-width: 6px;
  padding: 20px;
}
.planner-toast > strong {
  font-size: 18px;
  line-height: 1.4;
  padding-right: 70px;
}
.planner-toast p {
  font-size: 16px;
  line-height: 1.6;
  white-space: pre-line;
  margin-top: 12px;
}
.toast-dismiss {
  width: 64px;
  height: 40px;
  top: 12px;
  right: 10px;
  border: 1px solid #b9c4b3;
  border-radius: 7px;
  background: #e8eadf;
  font-size: 14px;
  font-weight: 600;
}
.toast-dismiss:focus-visible {
  outline: 3px solid #ad777d;
  outline-offset: 2px;
}
@media (max-width: 480px) {
  .planner-notifications {
    width: calc(100vw - 16px);
  }
  .planner-toast {
    padding: 16px;
  }
  .planner-toast > strong {
    font-size: 17px;
  }
  .planner-toast p {
    font-size: 15px;
  }
}

#space-reservations .space-card > strong,
#care-tasks .care-item strong {
  font-size: clamp(21px, 2.4vw, 27px);
  line-height: 1.35;
  color: #334c31;
}
#space-reservations .space-card {
  padding: 24px;
  margin: 20px 0;
  background: #f3f5ef;
  border-left: 5px solid #45543b;
}
#space-reservations .space-card > p,
#care-tasks .care-item p {
  font-size: 18px;
  line-height: 1.65;
}
#care-tasks .care-item {
  padding: 20px;
  border-left: 4px solid #45543b;
}
#space-status,
#care-message {
  font-size: 18px;
  line-height: 1.65;
}
#space-reservations > p {
  font-size: 18px;
}
.planner-toast > strong > a {
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.planner-toast-actionable {
  cursor: pointer;
}
.planner-toast .toast-action {
  display: inline-block;
  margin-top: 4px;
  font-weight: 600;
}

.activity-staff-controls {
  margin-top: 12px;
  min-width: 0;
}
.activity-staff-controls > label {
  margin-bottom: 8px;
}
.activity-staff-controls details {
  font-size: 13px;
}
.activity-staff-controls summary {
  cursor: pointer;
  font-weight: 600;
  padding: 6px 0;
}
.activity-support-choice {
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 400;
  margin: 8px 0;
}
.activity-support-choice input {
  width: auto;
}
.activity-staff-controls .hint {
  font-size: 12px;
}
.activity-staff-controls details > label {
  margin-top: 10px;
}

.quick-break-support {
  font-size: 12px;
  text-align: left;
}
.quick-break-support > summary {
  cursor: pointer;
  font-weight: 600;
}
.quick-break-support .activity-staff-controls select {
  padding: 7px;
  font-size: 12px;
}

#plan-open-latest-pdf[hidden] {
  display: none !important;
}

.special-group-controls {
  margin-top: 12px;
}
.special-group-controls label {
  margin-top: 10px;
}
.simultaneous-group {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 2px solid #ad777d;
}
.simultaneous-group > strong {
  display: block;
  margin-bottom: 12px;
  color: #45543b;
}
.simultaneous-group label {
  margin-top: 10px;
}
.add-simultaneous {
  width: 100%;
  margin-top: 16px;
  font-size: 13px;
  padding: 9px;
}

.activity label[hidden] {
  display: none !important;
}

.activity-staff-controls label[hidden],
.staffing-total[hidden] {
  display: none !important;
}
.staffing-total {
  padding: 8px;
  background: #e8eadf;
  border-radius: 6px;
  font-weight: 600;
}

.assignment-warning {
  font-size: 14px;
  line-height: 1.5;
  padding: 10px;
  border-left: 3px solid #a63832;
  background: #fff2eb;
  color: #862b25;
}
.assignment-warning[hidden] {
  display: none !important;
}
.staff-availability-note {
  display: block;
  color: #862b25;
  font-size: 12px;
  line-height: 1.4;
  flex-basis: 100%;
}
.activity-support-choice {
  flex-wrap: wrap;
}

/* Approved AS Visible planner design. Screen rules preserve the PDF/print layout. */
@media screen {
  :root {
    --planner-paper: #f7f6f1;
    --planner-ink: #273329;
    --planner-olive: #45543b;
    --planner-rose: #ad777d;
    --planner-line: #d9dcd2;
    --planner-sage: #eff1e9;
    --planner-blush: #f3e7e9;
    background: var(--planner-paper);
    color: var(--planner-ink);
    font-size: 16px;
  }
  body {
    background: var(--planner-paper);
    color: var(--planner-ink);
  }
  header {
    background: #fcfbf8;
    min-height: 0;
    padding: 8px 22px 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    align-items: center;
    border-bottom: 1px solid var(--planner-line);
  }
  .brand-logo img {
    width: 100px;
    height: 56px;
    max-height: none;
    object-fit: contain;
  }
  .brand-logo {
    margin-right: auto;
  }
  header small {
    font-size: 12px;
  }
  #planner-page-title {
    flex-basis: 100%;
    font:
      28px/1.25 Georgia,
      serif;
    margin: 2px 0 0;
    color: var(--planner-ink);
  }
  .planner-preview-notice {
    padding: 9px 22px;
    background: #eeefe6;
    border-bottom: 1px solid var(--planner-line);
    font-size: 12px;
    line-height: 1.55;
  }
  main {
    max-width: 1280px;
    padding: 12px 24px 45px;
  }
  .hero {
    padding: 7px 0 10px;
  }
  .hero h1 {
    font-size: 26px;
    line-height: 1.18;
    margin: 5px 0 7px;
  }
  .hero .eyebrow {
    font-size: 10px;
  }
  .hero .lead {
    font-size: 13px;
    line-height: 1.6;
    margin: 9px auto 12px;
  }
  .panel,
  .human-card {
    background: #fffefa;
    border: 1px solid var(--planner-line);
    border-radius: 12px;
  }
  .panel {
    margin-top: 16px;
  }
  main > .panel[aria-labelledby='privacy-title'] {
    padding: 12px 18px;
    background: var(--planner-sage);
  }
  #privacy-title {
    font:
      600 15px/1.4 system-ui,
      sans-serif;
    margin-bottom: 5px;
  }
  main > .panel[aria-labelledby='privacy-title'] p {
    font-size: 13px;
    margin: 0;
  }
  #workspace-navigation {
    padding: 15px 24px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px 16px;
    align-items: center;
  }
  .workspace-context {
    grid-column: 1/-1;
    padding-bottom: 10px;
    font-size: 12px;
  }
  .workspace-progress {
    font-size: 20px;
    line-height: 1.25;
    text-align: left;
    margin: 2px 0;
    max-width: none;
    color: var(--planner-ink);
  }
  #workspace-navigation > .actions {
    grid-column: 2;
    grid-row: 2;
    justify-content: flex-end;
    margin: 0;
  }
  #workspace-navigation > .hint {
    grid-column: 1/-1;
    text-align: left;
    margin: 0;
    font-size: 12px;
  }
  .workspace-step-meter {
    grid-column: 1/-1;
    display: flex;
    gap: 5px;
  }
  .workspace-step-meter i {
    height: 3px;
    width: 28px;
    max-width: 8%;
    background: #e3e6dc;
    border-radius: 3px;
  }
  .workspace-step-meter .done {
    background: var(--planner-olive);
  }
  .workspace-step-meter .current {
    background: var(--planner-rose);
  }
  #workspace-navigation details {
    grid-column: 1/-1;
    margin-top: 2px;
    font-size: 13px;
  }
  #planning-workspace > section,
  #plan-files {
    min-height: 78vh;
    min-height: 78svh;
    padding: 32px 36px;
    font-size: 16px;
    line-height: 1.65;
    max-width: none;
  }
  #planning-workspace > section > h2,
  #plan-files > h2 {
    font-size: 38px;
    line-height: 1.2;
    margin: 7px 0 12px;
    color: var(--planner-ink);
  }
  #planning-workspace > section > .eyebrow,
  #plan-files > .eyebrow {
    font-size: 13px;
    letter-spacing: 1.5px;
    color: #84555d;
  }
  #planning-workspace > section > p:not(.hint),
  #plan-files > p:not(.hint) {
    font-size: 19px;
    line-height: 1.65;
  }
  h3 {
    font-size: 21px;
    line-height: 1.35;
  }
  p {
    color: #5d6857;
  }
  label,
  .activity label,
  .schedule-day label,
  .club-row label,
  .staff-day label {
    font-size: 14px;
    line-height: 1.45;
  }
  input,
  select {
    font-size: 15px;
    min-height: 42px;
    background: #fffefa;
    color: var(--planner-ink);
    border-color: #b7c1ad;
    border-radius: 6px;
  }
  input[type='checkbox'],
  input[type='radio'] {
    min-height: 0;
    accent-color: var(--planner-olive);
  }
  button {
    font-size: 14px;
    padding: 11px 15px;
    background: var(--planner-olive);
    border-color: var(--planner-olive);
    border-radius: 6px;
  }
  button.secondary {
    background: #fffefa;
    color: var(--planner-olive);
    border-color: #bcc4b4;
  }
  button.ghost {
    background: transparent;
    color: var(--planner-olive);
  }
  button:disabled {
    cursor: default;
    opacity: 0.55;
  }
  button:focus-visible,
  input:focus-visible,
  select:focus-visible,
  a:focus-visible,
  summary:focus-visible {
    outline: 3px solid var(--planner-rose);
    outline-offset: 3px;
  }
  .hint,
  .care-mini,
  .human-muted {
    font-size: 13px;
    line-height: 1.65;
    color: #66715e;
  }
  .notice,
  .care-note,
  .quick-shared-year,
  .summary > div,
  .staffing-total {
    background: var(--planner-sage);
  }
  .chip,
  .calendar-provider-link {
    background: #e9ede2;
    color: var(--planner-olive);
    border-color: #b7c1ad;
  }
  .dashboard-card,
  .care-card,
  .staff-card,
  .schedule-day,
  .quick-day {
    background: #f7f7f1;
    border-color: var(--planner-line);
    border-radius: 9px;
  }
  .dashboard-card:first-child {
    background: var(--planner-blush);
    border-top: 3px solid var(--planner-rose);
  }
  .dashboard-card:nth-child(2) {
    background: var(--planner-sage);
  }
  #personal-dashboard {
    justify-content: flex-start;
    gap: 12px;
  }
  #personal-dashboard > .eyebrow,
  #dashboard-greeting,
  #dashboard-date,
  #dashboard-status,
  #personal-dashboard > .hint {
    text-align: left;
  }
  #dashboard-greeting {
    font-size: 38px;
    line-height: 1.2;
    margin: 7px 0 12px;
  }
  #dashboard-date {
    font-size: 19px;
  }
  #dashboard-status {
    font-size: 17px;
  }
  #personal-dashboard .dashboard-card {
    padding: 24px;
  }
  #personal-dashboard .dashboard-card p {
    font-size: 16px;
  }
  #personal-dashboard .dashboard-card h3 {
    font-size: 21px;
  }
  #personal-dashboard > .actions {
    justify-content: flex-start;
    margin-top: auto;
  }
  #human-side {
    background: var(--planner-blush);
    border-color: #e4cdd1;
  }
  #human-heading {
    font-size: 38px;
  }
  .human-quote {
    background: #fffdf8;
    border-left: 3px solid var(--planner-rose);
    color: var(--planner-ink);
  }
  .human-actions button {
    background: var(--planner-olive);
  }
  .human-actions button.secondary {
    background: #fffefa;
    color: var(--planner-olive);
  }
  .wellbeing-thought {
    background: var(--planner-blush);
  }
  .wellbeing-pause {
    background: var(--planner-sage);
  }
  .care-grid {
    gap: 24px;
  }
  .care-card {
    padding: 24px;
    background: #fffefa;
  }
  .care-item {
    padding: 24px;
    margin-bottom: 5px;
    border-color: var(--planner-line);
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
  }
  .care-item strong {
    font-size: 22px;
    line-height: 1.35;
  }
  .care-item p {
    font-size: 16px;
    line-height: 1.65;
    margin: 7px 0;
  }
  .care-item button {
    white-space: normal;
  }
  .space-card {
    padding: 24px;
    background: #fffefa;
  }
  .space-card > strong {
    font-size: 21px;
  }
  .space-card p {
    font-size: 16px;
  }
  .space-edit > * {
    min-width: 0;
  }
  .quick-week {
    padding: 12px 0;
  }
  .quick-day {
    padding: 18px;
  }
  .quick-day h4 label {
    font-size: 19px;
  }
  .quick-slot {
    flex-basis: 260px;
    border-color: var(--planner-line);
    border-radius: 8px;
    background: #fffefa;
    padding: 16px;
  }
  .quick-slot > strong {
    font-size: 15px;
    color: var(--planner-olive);
  }
  .quick-slot-break {
    flex-basis: 130px;
    background: #eef0e6;
    text-align: left;
  }
  .quick-slot-break p {
    font-size: 16px;
  }
  .quick-break-support {
    font-size: 13px;
  }
  .quick-break-support .activity-staff-controls select {
    font-size: 14px;
  }
  .simultaneous-group {
    background: #f5eeee;
    border: 1px solid #e5d3d6;
    border-left: 3px solid var(--planner-rose);
    border-radius: 6px;
    padding: 12px;
    margin-top: 16px;
  }
  .simultaneous-group > strong {
    font-size: 15px;
  }
  .activity-gap-dialog {
    background: var(--planner-paper);
  }
  table {
    font-size: 15px;
  }
  th {
    background: var(--planner-olive);
    color: #fff;
  }
  td,
  th {
    border-color: var(--planner-line);
    padding: 12px;
  }
  caption {
    color: var(--planner-ink);
  }
  .planner-toast {
    background: #f8f7f1;
    border-left-color: var(--planner-olive);
    font-size: 14px;
  }
  .planner-toast > strong {
    font-size: 16px;
  }
  .planner-toast p {
    font-size: 14px;
    line-height: 1.6;
  }
  .planner-toast .toast-dismiss {
    font-size: 12px;
  }
  .planner-toast .toast-action {
    font-size: 14px;
  }
  .warning,
  .staff-alert,
  .timetable-conflict,
  .planner-stale {
    background: #f7e9e4;
    color: #862b25;
  }
  .assignment-warning,
  .staff-availability-note {
    color: #862b25;
  }
  .foot {
    font-size: 12px;
  }
  @media (min-width: 1400px) {
    main {
      max-width: 1320px;
    }
  }
  @media (max-width: 800px) {
    #workspace-navigation {
      grid-template-columns: 1fr;
    }
    #workspace-navigation > .actions {
      grid-column: 1;
      grid-row: auto;
      justify-content: flex-start;
    }
    .workspace-progress {
      font-size: 19px;
    }
    .care-grid {
      grid-template-columns: 1fr;
    }
    .quick-settings {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  @media (max-width: 600px) {
    header {
      padding: 6px 15px 10px;
    }
    .brand-logo img {
      width: 88px;
      height: 50px;
    }
    header small {
      font-size: 11px;
    }
    #planner-page-title {
      font-size: 25px;
    }
    .planner-preview-notice {
      padding: 9px 15px;
      font-size: 11px;
    }
    main {
      padding: 10px 15px 30px;
    }
    .hero h1 {
      font-size: clamp(19px, 5.5vw, 24px);
    }
    .hero .lead {
      font-size: 12px;
    }
    #workspace-navigation {
      padding: 15px;
    }
    .workspace-context {
      flex-direction: column;
      align-items: flex-start;
    }
    #planning-workspace > section,
    #plan-files {
      padding: 24px 20px;
      min-height: 75svh;
    }
    #planning-workspace > section > h2,
    #plan-files > h2,
    #dashboard-greeting,
    #human-heading {
      font-size: 32px;
    }
    #planning-workspace > section > p:not(.hint),
    #plan-files > p:not(.hint) {
      font-size: 18px;
    }
    .care-card,
    .care-item,
    .space-card {
      padding: 18px;
    }
    .quick-settings {
      grid-template-columns: 1fr;
    }
    .quick-day {
      padding: 10px;
    }
    .quick-slot {
      flex-basis: 245px;
    }
    .quick-slot-break {
      flex-basis: 120px;
    }
    .row {
      flex-wrap: wrap;
    }
    button {
      white-space: normal;
    }
    #personal-dashboard .dashboard-card {
      padding: 20px;
    }
    .space-edit {
      grid-template-columns: 1fr;
    }
    .human-quote {
      font-size: 25px;
    }
  }
}

@media screen {
  .staff-week-overview {
    margin: 22px 0;
  }
  .staff-week-overview caption {
    text-align: left;
    padding: 8px 0;
    font-size: 13px;
  }
  .staff-week-overview table {
    min-width: 650px;
  }
  .staff-week-overview td,
  .staff-week-overview th {
    min-width: 130px;
  }
  .staff-week-overview tbody th {
    background: #eff1e9;
    color: #45543b;
  }
  .staff-week-overview td {
    background: #fffefa;
    white-space: nowrap;
  }
  .quick-day-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 20px 0 12px;
    border-bottom: 1px solid #d9dcd2;
    padding-bottom: 10px;
  }
  .quick-day-navigation button {
    background: transparent;
    border-color: transparent;
    border-radius: 4px;
  }
  .quick-day-week-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-left: auto; }
  .quick-day-navigation .quick-day-week-actions button { border: 1px solid #bdc5b3; background: #faf9f4; color: #46543b; }
  .quick-day-navigation button[aria-pressed='true'] {
    border-bottom: 3px solid #ad777d;
    color: #45543b;
    font-weight: 700;
    background: #eff1e9;
  }
  .quick-day-navigation[hidden],
  .quick-day[hidden] {
    display: none !important;
  }
  #activity-setup > .row h2 {
    font-size: 38px;
    line-height: 1.2;
  }
  .quick-slot-break .activity-staff-controls select {
    max-width: 100%;
  }
  @media (max-width: 600px) {
    #activity-setup > .row h2 {
      font-size: 32px;
    }
    .quick-day-navigation {
      gap: 3px;
    }
    .quick-day-navigation button {
      font-size: 12px;
      padding: 8px;
    }
  }
}

@media screen {
  .wellbeing-extra {
    border-top: 1px solid #d9dcd2;
    padding-top: 16px;
    margin-top: 24px;
  }
  .wellbeing-extra > summary {
    font-weight: 600;
    cursor: pointer;
  }
  .wellbeing-preferences {
    margin-top: 10px;
    padding-top: 12px;
  }
  .wellbeing-preferences > summary {
    font-size: 16px;
  }
}

/* Match the approved reminder cards and section navigation. */
@media screen {
  .planner-section-links {
    max-width: 1280px;
    margin: 10px auto 0;
    padding: 0 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
  }
  .planner-section-links[hidden] {
    display: none;
  }
  .planner-section-links button {
    font-size: 12px;
    padding: 8px 10px;
    background: transparent;
  }
  .planner-section-links button[aria-current='step'] {
    background: #45543b;
    color: #fff;
    border-color: #45543b;
  }
  .reminders-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(260px, 1fr);
    gap: 24px;
    align-items: stretch;
    margin: 0 0 28px;
  }
  .reminders-main {
    min-width: 0;
  }
  .reminders-main .care-list {
    margin-top: 0;
    gap: 18px;
  }
  #care-tasks .care-item {
    padding: 24px;
    border: 1px solid #d9dcd2;
    border-radius: 8px;
    min-height: 155px;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 18px;
    background: #fffefa;
  }
  #care-tasks .care-item > div:first-child {
    flex: 1;
    min-width: 0;
  }
  #care-tasks .care-item strong {
    display: block;
    font-size: 22px;
    color: #273329;
    margin: 12px 0 8px;
  }
  #care-tasks .care-item p {
    font-size: 18px;
    line-height: 1.65;
  }
  #care-tasks .care-item .deadline-reservation {
    font-size: 16px;
  }
  .deadline-badge {
    display: inline-block;
    border-radius: 5px;
    padding: 5px 8px;
    background: #e9ede2;
    color: #526346;
    font-size: 12px;
  }
  .deadline-card-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    flex-shrink: 0;
  }
  .reminders-main > button {
    margin-top: 18px;
  }
  .deadline-editor {
    margin-top: 20px;
    border: 1px solid #d9dcd2;
    border-radius: 8px;
    padding: 14px 18px;
  }
  .deadline-editor:not([open]) {
    display: none;
  }
  .deadline-editor > summary {
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
  }
  .reminders-planning-card {
    padding: 28px;
    background: #f3e7e9;
    border: 1px solid #e4cdd1;
    border-radius: 9px;
    min-height: 330px;
  }
  .reminders-planning-card > .eyebrow {
    font-size: 12px;
    color: #84555d;
  }
  .reminders-planning-card h3 {
    font:
      29px/1.3 Georgia,
      serif;
    margin: 20px 0;
  }
  .reminders-planning-card p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
  }
  #care-hub > .wellbeing-preferences > .care-grid {
    grid-template-columns: 1fr;
  }
  #care-hub > .wellbeing-preferences {
    margin-top: 8px;
  }
  .care-item strong,
  .care-item p {
    overflow-wrap: anywhere;
  }
  @media (max-width: 800px) {
    .reminders-layout {
      grid-template-columns: 1fr;
    }
    .reminders-planning-card {
      min-height: 0;
    }
    .planner-section-links {
      padding: 0 15px;
    }
    #care-tasks .care-item {
      flex-wrap: wrap;
      padding: 20px;
    }
    .deadline-card-actions {
      flex-direction: row;
      flex-wrap: wrap;
    }
    #care-tasks .care-item p {
      font-size: 17px;
    }
  }
}

@media screen {
  .weekly-activity-overview {
    margin: 24px 0;
  }
  .weekly-activity-overview table {
    min-width: 950px;
  }
  .weekly-activity-overview td {
    min-width: 145px;
    padding: 10px;
    vertical-align: top;
  }
  .weekly-activity-overview tbody th {
    background: #eff1e9;
    color: #45543b;
  }
  .weekly-activity-overview td.weekly-pupil-break {
    background: #e5e8d8;
    border-inline: 1px solid #c4cbb2;
  }
  .weekly-activity-group {
    font-size: 13px;
    line-height: 1.3;
  }
  .weekly-activity-group + .weekly-activity-group {
    border-top: 1px solid #d9dcd2;
    padding-top: 6px;
    margin-top: 6px;
  }
  .weekly-activity-group p {
    margin: 2px 0;
    font-size: 12px;
    line-height: 1.3;
  }
  .weekly-activity-group strong {
    font-size: 13px;
  }
  .weekly-activity-overview td > span {
    color: #862b25;
  }
}

/* Keep the shared planner introduction left aligned on every step. */
@media screen {
  .hero {
    text-align: left;
    container-type: normal;
  }
  .hero > .eyebrow {
    text-align: left;
  }
  .hero h1 {
    text-align: left;
    font-size: 26px;
    line-height: 1.25;
    text-wrap: normal;
  }
  .hero h1 > span {
    display: inline;
    white-space: normal;
  }
  .hero h1 > span + span {
    margin-top: 0;
  }
  .hero .lead {
    text-align: left;
    max-width: none;
    margin: 9px 0 12px;
    font-size: 13px;
    line-height: 1.6;
  }
  @media (max-width: 600px) {
    .hero h1 {
      font-size: 24px;
    }
    .hero .lead {
      font-size: 13px;
    }
  }
}

#plan-files[hidden] {
  display: none !important;
}
.pdf-printing-details {
  margin: 20px 0;
}
.pdf-printing-details > summary {
  font-weight: 600;
  cursor: pointer;
  padding: 12px 0;
}
.pdf-printing-details > summary:focus-visible {
  outline: 3px solid #ad777d;
  outline-offset: 3px;
}
#teaching-file-status:empty {
  display: none;
}

/* A restrained dusty pink signature on every planner step. */
@media screen {
  #teaching-title::after,
  #planning-workspace > section > h2::after,
  #planning-workspace > section > .row > h2::after,
  #plan-files-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    margin-top: 13px;
    border-radius: 2px;
    background: var(--planner-rose, #ad777d);
  }
}

@media screen {
  .quick-week > h3::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    margin-top: 13px;
    border-radius: 2px;
    background: var(--planner-rose, #ad777d);
  }
}

/* Soft rose details complement the ivory surfaces and olive actions. */
@media screen {
  .workspace-context {
    background: #f6edef;
    border: 1px solid #e8d5d8;
    border-left: 3px solid var(--planner-rose, #ad777d);
    border-radius: 7px;
    padding: 10px 13px;
  }
  #teaching-setup > .eyebrow,
  #planning-workspace > section > .eyebrow,
  #plan-files > .eyebrow {
    display: block;
    align-self: flex-start;
    width: fit-content;
    max-width: 100%;
    background: #f4e8ea;
    color: #75494f;
    border-radius: 5px;
    padding: 5px 9px;
    margin-bottom: 9px;
  }
  .quick-day-navigation button[aria-pressed='true'] {
    background: #f3e7e9;
    border-color: #e4cdd1;
    border-bottom-color: var(--planner-rose, #ad777d);
    color: #654249;
  }
  .planner-section-links button[aria-current='step'] {
    box-shadow: inset 0 -3px 0 #cba3a8;
  }
  button.secondary:hover,
  .calendar-provider-link:hover {
    background: #f4e8ea;
    border-color: #cba3a8;
    color: #45543b;
  }
  .staff-week-overview caption {
    border-left: 3px solid var(--planner-rose, #ad777d);
    padding-left: 12px;
    margin-bottom: 10px;
  }
}

/* Keep the final save controls clickable when planner notifications overlap them. */
@media screen {
  #plan-files > .actions:has(#plan-export-pdf),
  #plan-files > #plan-open-latest-pdf,
  #plan-files > #plan-file-status {
    position: relative;
    z-index: 101;
    background-color: inherit;
  }
}

/* Only the automatic-break supervision controls use this compact table. */
@media screen {
  #staff-breaks > details:has(#break-rotation-start),
  #staff-breaks > details:has(> #break-windows) {
    margin: 12px 0;
    padding: 0;
    border: 1px solid #ded9ce;
    border-left: 3px solid #b77e8b;
    border-radius: 10px;
    background: #faf8f2;
    overflow: hidden;
  }
  #staff-breaks > details:has(#break-rotation-start) > summary,
  #staff-breaks > details:has(> #break-windows) > summary {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; min-height: 54px; padding: 14px 18px;
    color: #35412e; font: 600 15px/1.4 system-ui, sans-serif;
    cursor: pointer; list-style: none;
  }
  #staff-breaks > details:has(#break-rotation-start) > summary::-webkit-details-marker,
  #staff-breaks > details:has(> #break-windows) > summary::-webkit-details-marker { display: none; }
  #staff-breaks > details:has(#break-rotation-start) > summary::after,
  #staff-breaks > details:has(> #break-windows) > summary::after {
    content: '+'; font: 22px/1 system-ui, sans-serif; color: #91616a;
  }
  #staff-breaks > details[open]:has(#break-rotation-start) > summary::after,
  #staff-breaks > details[open]:has(> #break-windows) > summary::after { content: '−'; }
  #staff-breaks > details[open]:has(#break-rotation-start) > summary,
  #staff-breaks > details[open]:has(> #break-windows) > summary { border-bottom: 1px solid #e5dfd4; background: #f4eee8; }
  #staff-breaks > details:has(#break-rotation-start) > :not(summary),
  #staff-breaks > details:has(> #break-windows) > :not(summary) { margin: 16px 18px; }
  #staff-breaks #break-windows { gap: 14px; }
  #staff-breaks #break-windows fieldset { background: #fffefa; border-color: #ddd7cb; }
  #staff-breaks > details:has(#break-rotation-start) > summary:hover,
  #staff-breaks > details:has(> #break-windows) > summary:hover { background: #f1e9e5; }
}
#staff-breaks .pupil-break-support {
  margin-block: 12px 18px;
}
#staff-breaks .pupil-break-support table {
  width: 100%;
  min-width: 360px;
  table-layout: fixed;
}
#staff-breaks .pupil-break-support th,
#staff-breaks .pupil-break-support td {
  padding: 8px 12px;
  vertical-align: middle;
}
#staff-breaks .pupil-break-support label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: normal;
}
#staff-breaks .pupil-break-support select {
  width: 110px;
  max-width: 100%;
  min-height: 44px;
  margin: 0;
}
