/* =========================================
   0) Base / Reset / Accessibility
   ========================================= */
html, body { margin: 0; padding: 0; overflow-x: hidden; }
*, *::before, *::after { box-sizing: border-box; }
img, picture, video { max-width: 100%; height: auto; }
p, li, a { overflow-wrap: anywhere; }

:focus-visible { outline: 3px solid #00a97a; outline-offset: 2px; }

body {
  font-family: nunito, sans-serif;
  margin: 0;
  background-color: #dfeee8;
  color: #111111;
  text-align: center;
}

/* =========================================
   1) Typography
   ========================================= */
h1 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h2 { font-size: clamp(1.3rem, 3vw, 1.8rem); }

/* =========================================
   2) Layout Containers
   ========================================= */
.container { max-width: 1100px; margin-inline: auto; padding-inline: 1rem; text-align: left; }
.main {
  padding: 20px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

/* =========================================
   3) Skip Link
   ========================================= */
.skip {
  position: absolute;
  top: -40px;
  left: 0;
  background: #222;
  color: #fff;
  padding: 8px;
  z-index: 100;
}
.skip:focus { top: 0; }

/* =========================================
   4) Header / Logo
   ========================================= */
:root { --nav-h: 68px; } /* adjust if your nav is taller/shorter */

header.container { padding: 1.25rem 0; }

.logo-link { display: block; text-align: center; }

.logo-crop {
  position: relative;
  overflow: hidden;
  margin: 12px auto;
  max-width: clamp(280px, 40vw, 560px); /* non-home size you liked */
  aspect-ratio: 800 / 200;              /* keep for banner crop; remove if not wanted */
  z-index: 0;                           /* keep logo under nav’s stacking */
}

.logo-crop img.logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;      /* if you remove aspect-ratio above, change to height:auto; */
  object-position: center;
}

#rota-mini-header {
  display: flex;
  justify-content: space-around;
}

/* =========================================
   5) Navbar (full-bleed bar + centred links)
   ========================================= */
/* Nav stays sticky and creates its own stacking context */
nav.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  isolation: isolate;          /* lets ::before sit behind safely */
}

/* Paint a full-bleed green bar behind the nav’s content */
nav.navbar::before {
  content: "";
  position: absolute;
  inset: 0;                    /* match nav’s height */
  left: 50%;
  width: 100vw;                /* full viewport width */
  margin-left: -50vw;          /* break out of centered layout */
  background: #00a97a;
  z-index: -1;                 /* behind the links/content */
}

nav.navbar ul {
  display: flex;
  justify-content:center;
  text-align: center;
  gap: .75rem;
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 1100px;     /* matches your .container */
  margin-inline: auto;   /* center the list within the band */
  padding-inline: 1rem;  /* match container side padding */
  background: none;      /* make sure the UL itself isn’t painting green */
}

.navbar a:hover,
.navbar a:focus-visible { text-decoration: underline; }

/* Utility: full-bleed band (make the element stick out edge-to-edge) */
.full-band {
  background: #00a97a;
  width: 100vw;
  margin-top: 20px;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding: 0 0;
}

/* =========================================
   6) Dropdown Menu
   ========================================= */
.dropdown { position: relative; display: inline-block; color: #111111; }

.dropbtn {
  background-color: #00a97a;
  color: white;
  display: inline-flex; /* prevent full-width buttons in the bar */
  align-items: center;
  width: auto;
  padding: 10px 16px;
  font-size: 16px;
  border: none;
  cursor: pointer;
  border-radius: 8px;
}
.dropbtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
  background-color: rgba(255,255,255,.03);
  text-decoration: underline;
}
.dropbtn:focus-visible {
  outline: 3px solid #F8F8F8;
  outline-offset: 3px;
}

.dropdown-content {
  display: none;                 /* hidden by default */
  position: absolute;
  top: 100%; left: 0;            /* sit directly below the button */
  background-color: #f1f1f1;
  min-width: 160px;
  box-shadow: 0 8px 16px rgba(0,0,0,.2);
  z-index: 9999;                 /* above the green bar */
}
.dropdown-content.show { display: block; }
.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

/* =========================================
   7) Links & Buttons
   ========================================= */
a {
  color: #111111;
  text-decoration: none;
  padding: 14px 20px;
  display: inline-block;
}
a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
  background-color: rgba(255,255,255,.03);
}
a:focus-visible {
  outline: 3px solid #F8F8F8;
  outline-offset: 3px;
}

/* link styled as plain text inside paragraphs */
.ignore { color: #111111; text-decoration: none; padding: 0; display: inline-block; }
a.ignore:hover, a.ignore:focus-visible { text-decoration: underline; }

button.see-more,
a.see-more {
  display: inline-block;
  background-color: #00a97a;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 1rem;
}
button.see-more:hover,
button.see-more:focus-visible { background-color: #008f68; }

#jump-to-rota {
  text-align: center;
  max-height: fit-content;
  margin-top: 30px;
  padding: 10px 20px;
}

#run-btn {
  margin: 12px auto 3px auto;
  max-width: fit-content;
  display: block;

}

#reid-btn {
  margin: 3px auto 12px auto;
  max-width: fit-content;
  display: block;
}

button:disabled {
  opacity: 0.5;        /* fade the button */
  cursor: not-allowed; /* show a "blocked" cursor */
  filter: grayscale(30%); /* optional: dull the colour a bit */
}

.white {
  color: #F7F9F8;
}

/* =========================================
   8) Cards / Sections
   ========================================= */
.intro { 
  margin: 40px 0 20px 0; 
}
#tools {
  margin-bottom: 10px;
}
.tool-blurb {
  border: 2px solid #00a97a;
  border-radius: 8px;
  padding: 20px;
  margin: 10px 20px 40px 20px;
  background-color: #f0fdfa;
  display: block;
}

#rota-instructions {
  margin: auto;
  max-width: 900px;
}
.blurb-p { margin-bottom: 8px; }
.details {
  text-align: center;
  margin: 10px 0 0 0;
  padding: 10px;
  border-radius: 8px;
  background-color: #ccfbf1;
  display: block;
}
.details:hover { background-color: #99f6e4; }
[hidden] { display: none !important; }

@media (min-width: 760px) {
  .tool-cards { flex-direction: row; }
  .tool-card  { flex: 1; }
}

.quotebox {
    display:flex;
    flex-direction: column;
    justify-content:center;
    max-width: 500px;
    margin: 3rem auto;
    background: #e0f7f1;
    color: #003b2e;
    font-size: 15px;
    line-height: 1.2;
    border: 2px solid #00a97a;
    padding: 10px
}

.quotebox p {
    margin: 0;
    flex: 1 1 auto;
    font-style: italic;
    font-weight: 500; 
}

.quotebox blockquote {
    font-weight: bold;
    padding: 6px;
    margin: 0;
}

.quotebox .by {
    padding: 6px;
    font-size: 0.9rem;
    font-style: normal;
    font-weight: 400;
    display: block;
    margin-top: .5rem;
    color: #007c63;
}

.grid-two {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
  background: #0f172a0a; /* super subtle */
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

#uploader-box {
  margin: 0 auto;
  display: block;
}

#statusBox {
  white-space: pre-line;
}


/* =========================================
   9) Forms
   ========================================= */
#contact-disclaimer {
  display: block;
  margin: 10px auto 0 auto;
  font-size: 0.9rem;
  color: #555555;
  text-align: left;
}
#contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}
#submit-btn { display: block; margin: 5px auto; max-width: 150px; }

form div { margin-bottom: 1em; }
label { display: inline-block; width: 100px; }
input, textarea { width: 250px; max-width: 100%; }

.other-pages {
  display: block;
  max-width: 800px;
    margin: 2px auto 40px auto;
}

/* =========================================
   10) Icons / Footer
   ========================================= */
.icon {
  height: 50px;
  margin: 10px auto 10px auto;
  display: block;
}

#privacy-footer {
  font-style: italic;
}

/* =========================================
   11) Mobile Tweaks
   ========================================= */
@media (max-width: 700px) {
  nav.navbar ul { flex-direction: column; align-items: stretch; }
  nav.navbar a { padding: .75rem 1rem; } /* comfy tap targets */
  button, .btn, nav a { min-height: 44px; display: inline-flex; align-items: center; }
}

/* =========================================
   12) Images
   ========================================= */

#tom-img-container {
  display: flex;
  flex-direction: column;
}

#tom-img {
  width: 200px;
  aspect-ratio: 3/4;
  object-fit: cover;
  border: solid 2px #00a97a;
  border-radius: 10px;
  outline: 2px solid rgba(0,169,122,.25);
  outline-offset: 3px; 
  box-shadow: 0 8px 24px rgba(0,0,0,.12),
              0 2px 6px rgba(0,0,0,.08); 
  margin: 0 auto 0 auto;
}

#rota-logo {
  text-align: left;
  aspect-ratio: 8/2;
  max-width: 400px;
  margin: 0 0 20px 0;
}

/* =========================================
   12) Anonymiser light polish
   ========================================= */

#anon-demo textarea {
  width: 200px;
}
#anon-demo .grid-two {
  display:grid;
  gap:1rem; 
  grid-template-columns:1fr 1fr; 
}
@media (max-width: 400px){
  #anon-demo .grid-two {
    grid-template-columns:1fr;
  }
}
#anon-demo {
  max-width: 800px;
  margin: 1.5rem auto;
  display: block;
}

.card {
  display: flex;
  flex-direction: column;
}

#anon-btn {
  text-align: center;
  max-width: 500px;
  margin: 10px;
}

.cb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 9999;
}

.cb-modal {
  width: min(920px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.cb-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.cb-icon-btn {
  border: none;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
}

.cb-banner {
  background: #f4f7ff;
  border: 1px solid #d6e0ff;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 14px;
}

.cb-section { margin: 14px 0; }
.cb-section h3 { margin: 0 0 6px; font-size: 16px; }
.cb-muted { color: #555; font-size: 13px; margin-top: 4px; }

.cb-list { margin: 8px 0 0 18px; }
.cb-list li { margin: 4px 0; }

.cb-table-wrap { overflow-x: auto; border: 1px solid #eee; border-radius: 10px; }
.cb-table { width: 100%; border-collapse: collapse; }
.cb-table th, .cb-table td {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid #eee;
  vertical-align: top;
  font-size: 14px;
}
.cb-table th { background: #fafafa; font-weight: 600; }

.cb-notes {
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 10px;
  background: #fcfcfc;
  white-space: pre-wrap;
  font-size: 14px;
  min-height: 44px;
}

.cb-check { margin-top: 8px; font-size: 13px; }
.cb-divider { border-top: 1px solid #eee; padding-top: 12px; }

.cb-checkbox { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; }
.cb-checkbox input { margin-top: 4px; }

.cb-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 10px; }

.cb-btn {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #ddd;
  cursor: pointer;
  font-weight: 600;
}
.cb-btn.primary { background: #111; color: #fff; border-color: #111; }
.cb-btn.secondary { background: #fff; color: #111; }
.cb-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.cb-error {
  margin-top: 10px;
  background: #fff1f1;
  border: 1px solid #ffcccc;
  padding: 10px;
  border-radius: 10px;
  color: #7a1b1b;
  font-size: 13px;
}

.hidden { display: none !important; }

.rota-hidden {
  display: none;
}

.rota-narrow-panel {
  margin-top: 2rem;
  max-width: 900px;
}

.rota-upload-panel {
  margin-top: 2rem;
}

.rota-stack {
  margin-top: 1em;
}

.rota-status-spacing {
  margin-top: 0.5em;
}

.rota-summary-list {
  margin: 0.75rem 0;
  padding-left: 1.2rem;
}

.rota-summary-list li {
  margin: 0.35rem 0;
}

.rota-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  justify-content: center;
  margin-top: 0.75em;
}

.rota-plan-output {
  margin-top: 1em;
  white-space: pre-wrap;
}

.rota-full-width {
  width: 100%;
}

.rota-highlighted-cell {
  background-color: #fff3cd;
  font-weight: bold;
}

.rota-plan-pre {
  margin: 0;
  white-space: pre-wrap;
}

.rota-plan-day {
  margin: 16px 0 8px;
}

.rota-plan-session {
  border: 1px solid #ddd;
  border-radius: 10px;
  margin: 10px 0;
  padding: 10px;
}

.rota-plan-session-title {
  font-weight: 700;
  margin-bottom: 8px;
}

.rota-plan-lane {
  font-weight: 600;
  margin: 8px 0 6px;
}

.rota-plan-list {
  margin: 6px 0 0 18px;
}

.rota-plan-list-item {
  margin: 4px 0;
}

.rota-teacher-plan {
  margin: 0 auto;
  max-width: 760px;
  text-align: left;
}

.rota-teacher-day {
  margin: 18px 0 10px;
}

.rota-teacher-session {
  font-weight: 700;
  margin: 12px 0 6px;
}

.rota-teacher-list {
  margin: 6px 0 10px;
  padding-left: 18px;
}

.rota-plan-note {
  margin: 4px 0;
}

/* ChalkboardRota Intervention Menu */
#interventionMenu .cb-menu-card {
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 12px;
  margin: 10px 0;
  padding: 12px;
}
#interventionMenu .cb-menu-head {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}
#interventionMenu .cb-menu-title {
  font-weight: 700;
  line-height: 1.2;
}
#interventionMenu .cb-menu-controls label {
  align-items: center;
  display: flex;
  gap: 6px;
  white-space: nowrap;
}
#interventionMenu select {
  min-width: 120px;
  padding: 6px 8px;
}
#interventionMenu input[type="checkbox"] {
  transform: translateY(1px);
}
#interventionMenu .cb-muted {
  font-size: 0.92em;
  opacity: 0.75;
}
@media (max-width: 520px) {
  #interventionMenu select { min-width: 140px; }
  #interventionMenu .cb-menu-controls { justify-content: flex-start; }
}

.cb-menu-card {
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  margin: 14px 0;
  padding: 14px 16px;
}

.cb-menu-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 6px;
}

.cb-menu-sub {
  margin: 0 0 10px;
  opacity: 0.8;
}

.cb-menu-controls {
  align-items: end;
  display: grid;
  gap: 10px 12px;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  margin: 10px 0 12px;
}

.cb-menu-controls-secondary {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

@media (max-width: 900px) {
  .cb-menu-controls {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }
}
@media (max-width: 520px) {
  .cb-menu-controls {
    grid-template-columns: 1fr;
  }
}

.cb-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.cb-field label {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.1;
  opacity: 0.75;
}

.cb-field select,
.cb-field input[type="text"],
.cb-field input[type="number"] {
  box-sizing: border-box;
  max-width: 100%;
  padding: 6px 8px;
  width: 100%;
}

.cb-field--check {
  align-items: center;
  flex-direction: row;
  gap: 8px;
}
.cb-field--check label {
  margin: 0;
  opacity: 0.85;
}

#interventionMenu .cb-menu-controls {
  align-items: end;
  display: grid !important;
  gap: 10px 12px;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
}

@media (max-width: 900px) {
  #interventionMenu .cb-menu-controls {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }
}

@media (max-width: 520px) {
  #interventionMenu .cb-menu-controls {
    grid-template-columns: 1fr;
  }
}

#interventionMenu .cb-menu-controls > label {
  align-items: stretch;
  display: flex !important;
  flex-direction: column;
  gap: 4px;
  white-space: normal;
}

#interventionMenu .cb-menu-controls > label .cb-muted {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.75;
}

#interventionMenu .cb-menu-controls select {
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
  width: 100%;
}

#interventionMenu .cb-menu-controls > label:last-child {
  align-items: center;
  flex-direction: row;
  gap: 8px;
}

.cb-menu-select {
  align-items: flex-start;
  display: flex;
  gap: 10px;
}

.cb-menu-suggested-label {
  font-weight: 600;
  opacity: 0.75;
}

.cb-menu-control {
  align-items: center;
  display: flex;
  gap: 6px;
}

.cb-menu-mandatory {
  align-items: center;
  display: flex;
  gap: 6px;
  margin-left: auto;
  white-space: nowrap;
}

.cb-menu-mandatory--disabled {
  opacity: 0.6;
}

.cb-menu-evidence {
  margin-top: 10px;
}

.cb-menu-section-title {
  margin: 18px 0 6px;
}

.cb-menu-section-title--first {
  margin-top: 12px;
}

.table-viewport{
  width: 100%;
  max-width: 100%;
  min-width: 0;              /* CRITICAL for flex/grid parents */
  overflow-x: auto;
  overflow-y: hidden;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
}

#table-container{
  min-width: 0;              /* also helps inside flex/grid */
}

.table-viewport table{
  min-width: 100%;
  width: max-content;
  border-collapse: collapse;
}

.table-viewport td{
  white-space: normal;
  word-break: break-word;
  max-width: 420px; /* prevents mega-columns */
}

/* Scroll container */
.table-viewport{
  position: relative;
  overflow-x: auto;
  max-width: 100%;
}

/* Header row */
.table-viewport thead th{
  position: sticky;
  top: 0;
  z-index: 5;
  background: #f0fdfa;
}

/* Column 1: pupil ID */
.table-viewport th:nth-child(1),
.table-viewport td:nth-child(1){
  position: sticky;
  left: 0;
  z-index: 3;
  background: #f0fdfa;
}

/* Column 2: pupil name */
.table-viewport th:nth-child(2),
.table-viewport td:nth-child(2){
  position: sticky;
  left: 0;   /* 👈 must match column 1 width */
  z-index: 3;
  background: #f0fdfa;
}

/* Top-left + top-second cells above everything */
.table-viewport thead th:nth-child(1),
.table-viewport thead th:nth-child(2){
  z-index: 6;
}

/* Optional: visual separators */
.table-viewport th:nth-child(1),
.table-viewport td:nth-child(1){
  box-shadow: 2px 0 0 rgba(0,0,0,0.06);
}
.table-viewport th:nth-child(2),
.table-viewport td:nth-child(2){
  box-shadow: 2px 0 0 rgba(0,0,0,0.06);
}

.timetable-grid td:first-child { white-space: nowrap; }

ol {
  list-style-position: inside;
  padding-left: 0;
  margin-left: 0;
  text-align: center;
}

ol li {
  margin-bottom: 0.4em;
}

.pilot-progress {
  display: flex;
  gap: 12px;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  justify-content: center;
}

.pilot-progress .step {
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(0,0,0,0.06);
  opacity: 0.6;
}

.pilot-progress .step.active {
  background: rgba(0,128,96,0.15);
  font-weight: 600;
  opacity: 1;
}

/* =========================================
   Platform unification overrides
   ========================================= */
.rota-page {
  background: var(--cb-bg);
  color: var(--cb-ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  text-align: left;
}

.rota-page header.container {
  background: linear-gradient(180deg, var(--cb-brand-900), #173b36);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  max-width: none;
  padding: 0 !important;
  text-align: left;
}

.rota-page .logo-link {
  color: #fff;
  display: flex;
  margin: 0 auto;
  max-width: var(--cb-max);
  padding: 14px 18px 8px;
  text-decoration: none;
}

.rota-page .logo-link:hover,
.rota-page .logo-link:focus-visible {
  background: transparent;
  box-shadow: none;
  transform: none;
}

.rota-page .logo-crop {
  aspect-ratio: auto;
  height: auto;
  margin: 0;
  max-width: 300px;
}

.rota-page nav.navbar {
  background: transparent;
  margin-top: 0;
}

.rota-page nav.navbar::before,
.rota-page .full-band {
  background: transparent;
}

.rota-page nav.navbar ul {
  justify-content: flex-start;
  max-width: var(--cb-max);
  padding: 0 18px 14px;
}

.rota-page .dropbtn,
.rota-page nav.navbar a {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--cb-radius);
  color: #fff;
  min-height: 40px;
  padding: 8px 11px;
}

.rota-page .dropbtn:hover,
.rota-page nav.navbar a:hover {
  background: rgba(255, 255, 255, 0.14);
  box-shadow: none;
  transform: none;
}

.rota-page .dropdown-content {
  border: 1px solid var(--cb-border);
  border-radius: var(--cb-radius);
  box-shadow: var(--cb-shadow);
  overflow: hidden;
}

.rota-page .dropdown-content a {
  background: #fff;
  color: var(--cb-ink);
}

.rota-page .main {
  max-width: var(--cb-max);
  padding: 26px 18px 42px;
  text-align: left;
}

.rota-page .main > h1 {
  font-size: 38px;
  line-height: 1.08;
  margin: 0 0 6px;
}

.rota-page .main > h3 {
  color: var(--cb-muted);
  font-size: 18px;
  font-weight: 650;
  margin: 0 0 18px;
}

.rota-page .tool-blurb,
.rota-page .cb-menu-card,
.rota-page #aiDataSummary {
  background: var(--cb-surface);
  border: 1px solid var(--cb-border);
  border-radius: var(--cb-radius-lg);
  box-shadow: var(--cb-shadow-soft);
  margin-left: 0;
  margin-right: 0;
  padding: 18px;
  text-align: left;
}

.rota-page #rota-instructions,
.rota-page #uploader-box {
  margin: 20px 0 0 !important;
  max-width: none !important;
}

.rota-page button,
.rota-page .see-more {
  border-radius: var(--cb-radius);
}

.rota-page #checkNamesButton,
.rota-page #analyseCcrButton,
.rota-page #generatePlanButton,
.rota-page #aiConsentConfirmBtn {
  background: var(--cb-brand-600);
  border-color: var(--cb-brand-600);
  color: #fff;
}

.rota-page #anonymiseButton {
  background: var(--cb-warn);
  border-color: rgba(107, 78, 22, 0.25);
  color: var(--cb-warn-ink);
}

.rota-page .pilot-progress {
  justify-content: flex-start;
  margin: 0 0 18px;
}

.rota-page .pilot-progress .step {
  border: 1px solid var(--cb-border);
  border-radius: 999px;
  background: #fff;
}

.rota-page .pilot-progress .step.active {
  background: rgba(22, 138, 116, 0.12);
  border-color: rgba(22, 138, 116, 0.28);
  color: var(--cb-brand-800);
}

.rota-page hr {
  border: 0;
  border-top: 1px solid var(--cb-border);
  margin: 22px 0;
}

.rota-page footer {
  color: var(--cb-muted);
  padding: 20px 18px 34px;
  text-align: center;
}

.rota-page footer a:hover {
  box-shadow: none;
  transform: none;
}

/* =========================================
   Landing-page style refresh
   ========================================= */
.rota-page {
  background:
    radial-gradient(circle at top left, rgba(220, 239, 230, 0.9), transparent 34rem),
    linear-gradient(180deg, var(--cb-cream) 0%, #fbf8ef 50%, var(--cb-paper) 100%);
  color: var(--cb-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: left;
}

.rota-page .cb-topbar {
  color: var(--cb-chalkboard-deep);
  border-bottom: 1px solid rgba(215, 226, 216, 0.9);
  background: rgba(248, 243, 232, 0.94);
  box-shadow: none;
}

.rota-page .main {
  width: min(var(--cb-max), calc(100% - 40px));
  max-width: none;
  padding: 44px 0 42px;
}

.rota-page .main > h1 {
  max-width: 780px;
  margin: 0 0 14px;
  color: var(--cb-chalkboard-deep);
  font-size: clamp(2.25rem, 4.6vw, 4.1rem);
  line-height: 1.08;
}

.rota-page .main > .cb-page-kicker {
  margin-bottom: 18px;
}

.rota-page .main > p:not(.cb-page-kicker) {
  max-width: 780px;
  color: var(--cb-muted);
  font-size: 1.02rem;
}

.rota-page h2,
.rota-page h3 {
  color: var(--cb-chalkboard-deep);
  line-height: 1.12;
}

.rota-page a {
  padding: 0;
}

.rota-page .tool-blurb,
.rota-page .cb-menu-card,
.rota-page #aiDataSummary,
.rota-page .rota-plan-session,
.rota-page .quotebox {
  border: 1px solid rgba(215, 226, 216, 0.95);
  border-radius: var(--cb-radius);
  background: rgba(255, 253, 247, 0.9);
  box-shadow: var(--cb-shadow);
}

.rota-page .tool-blurb {
  padding: 24px;
}

.rota-page .tool-blurb p,
.rota-page .tool-blurb li,
.rota-page .cb-menu-sub,
.rota-page .cb-muted {
  color: var(--cb-muted);
}

.rota-page #rota-instructions {
  background: var(--cb-mint-soft);
  box-shadow: inset 0 0 0 1px rgba(185, 208, 195, 0.72);
}

.rota-page #rota-instructions ol {
  display: grid;
  gap: 8px;
  max-width: 820px;
  margin: 16px 0;
  padding-left: 1.3rem;
  text-align: left;
  list-style-position: outside;
}

.rota-page #rota-instructions li {
  margin: 0;
}

.rota-page .pilot-progress {
  justify-content: flex-start;
  gap: 10px;
}

.rota-page .pilot-progress .step {
  border: 1px solid var(--cb-line);
  border-radius: 999px;
  background: #fff;
  color: var(--cb-muted);
  padding: 8px 12px;
  font-weight: 760;
  opacity: 1;
}

.rota-page .pilot-progress .step.active {
  background: rgba(220, 239, 230, 0.82);
  border-color: #b9d0c3;
  color: var(--cb-chalkboard-deep);
}

.rota-page .rota-button-row {
  justify-content: flex-start;
  gap: 10px;
}

.rota-page button,
.rota-page .see-more,
.rota-page .btn,
.rota-page .cb-btn {
  min-height: 48px;
  border: 1px solid var(--cb-border-strong);
  border-radius: var(--cb-radius);
  background: rgba(255, 253, 247, 0.76);
  color: var(--cb-chalkboard-deep);
  padding: 12px 18px;
  font: inherit;
  font-weight: 800;
  line-height: 1.2;
}

.rota-page button:hover,
.rota-page .see-more:hover,
.rota-page .btn:hover,
.rota-page .cb-btn:hover {
  background: #fff;
  border-color: #b9d0c3;
  box-shadow: 0 10px 20px rgba(23, 63, 53, 0.1);
  transform: translateY(-1px);
}

.rota-page #checkNamesButton,
.rota-page #analyseCcrButton,
.rota-page #generatePlanButton,
.rota-page #aiConsentConfirmBtn,
.rota-page .btn--primary,
.rota-page .cb-btn.primary {
  background: var(--cb-chalkboard);
  border-color: var(--cb-chalkboard);
  color: #fffdf7;
  box-shadow: 0 12px 22px rgba(23, 63, 53, 0.18);
}

.rota-page #checkNamesButton:hover,
.rota-page #analyseCcrButton:hover,
.rota-page #generatePlanButton:hover,
.rota-page #aiConsentConfirmBtn:hover,
.rota-page .btn--primary:hover,
.rota-page .cb-btn.primary:hover {
  background: var(--cb-chalkboard-deep);
  border-color: var(--cb-chalkboard-deep);
}

.rota-page button:disabled {
  opacity: 0.58;
  cursor: not-allowed;
  filter: none;
  box-shadow: none;
  transform: none;
}

.rota-page input[type="file"],
.rota-page input[type="text"],
.rota-page input[type="number"],
.rota-page textarea,
.rota-page select {
  border: 1px solid var(--cb-border-strong);
  border-radius: var(--cb-radius);
  background: #fff;
  color: var(--cb-ink);
  padding: 10px 11px;
  font: inherit;
}

.rota-page details {
  border: 1px solid var(--cb-line);
  border-radius: var(--cb-radius);
  background: var(--cb-mint-soft);
  padding: 12px;
}

.rota-page summary {
  color: var(--cb-chalkboard-deep);
  cursor: pointer;
  font-weight: 850;
}

.rota-page .cb-menu-card {
  padding: 16px;
}

.rota-page .cb-menu-head {
  border-bottom: 1px solid var(--cb-line);
  margin-bottom: 12px;
  padding-bottom: 12px;
}

.rota-page .cb-menu-title,
.rota-page .cb-menu-section-title,
.rota-page .rota-plan-session-title,
.rota-page .rota-plan-lane,
.rota-page .rota-teacher-session {
  color: var(--cb-chalkboard-deep);
  font-weight: 850;
}

.rota-page .cb-menu-controls,
.rota-page #interventionMenu .cb-menu-controls {
  gap: 12px;
}

.rota-page .table-viewport,
.rota-page .cb-table-wrap {
  border-color: var(--cb-line);
  border-radius: var(--cb-radius);
  background: #fff;
}

.rota-page .table-viewport thead th,
.rota-page .table-viewport th:nth-child(1),
.rota-page .table-viewport td:nth-child(1),
.rota-page .table-viewport th:nth-child(2),
.rota-page .table-viewport td:nth-child(2) {
  background: var(--cb-mint-soft);
}

.rota-page .rota-plan-output {
  color: var(--cb-ink);
}

.rota-page .cb-overlay {
  background: rgba(13, 47, 40, 0.68);
}

.rota-page .cb-modal {
  border: 1px solid var(--cb-line);
  border-radius: var(--cb-radius);
  background: var(--cb-paper);
  color: var(--cb-ink);
  box-shadow: var(--cb-shadow);
}

.rota-page .cb-banner,
.rota-page .cb-notes {
  border: 1px solid var(--cb-line);
  border-radius: var(--cb-radius);
  background: var(--cb-mint-soft);
}

.rota-page .cb-icon-btn {
  min-height: 38px;
  padding: 6px 10px;
}

.rota-page footer {
  width: min(var(--cb-max), calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 42px;
  border-top: 1px solid var(--cb-line);
  color: var(--cb-muted);
  text-align: center;
}

.rota-page footer .icon {
  display: none;
}

@media (max-width: 620px) {
  .rota-page .main,
  .rota-page footer {
    width: min(100% - 28px, var(--cb-max));
  }

  .rota-page .tool-blurb {
    padding: 20px;
  }
}


