@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700;800&family=Nunito+Sans:wght@700;800;900&display=swap");

:root {
  --navy: #0b3557;
  --navy-deep: #072a46;
  --teal: #0c9294;
  --teal-dark: #087779;
  --aqua: #e9f8f5;
  --gold: #f5b942;
  --cream: #fbfaf6;
  --ink: #193447;
  --muted: #617788;
  --line: #d3e2e4;
  --white: #fff;
  --shadow: 0 22px 65px rgba(7, 42, 70, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: "Manrope", sans-serif; }
button, input, select, textarea { font: inherit; }
button, label, summary, select { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
.visually-hidden, .skip-link { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link:focus { z-index: 100; top: 8px; left: 8px; width: auto; height: auto; padding: 10px 14px; margin: 0; overflow: visible; clip: auto; color: #fff; border-radius: 8px; background: var(--navy); }

.site-header { position: sticky; z-index: 30; top: 0; display: flex; min-height: 82px; align-items: center; justify-content: space-between; gap: 30px; padding: 13px max(24px, calc((100vw - 1440px) / 2)); border-bottom: 1px solid rgba(11, 53, 87, .1); background: rgba(251, 250, 246, .94); backdrop-filter: blur(15px); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--navy); text-decoration: none; }
.brand img { width: 48px; height: 48px; }
.brand span { display: grid; }
.brand strong { font: 900 1.18rem/1 "Nunito Sans", sans-serif; }
.brand small { margin-top: 5px; color: var(--teal-dark); font-size: .65rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.site-header nav { display: flex; align-items: center; gap: 25px; }
.site-header nav a { color: #39556b; font-size: .84rem; font-weight: 800; text-decoration: none; }
.site-header nav a:hover { color: var(--teal-dark); }
.site-header .home-link { padding: 12px 17px; color: #fff; border-radius: 999px; background: var(--navy); }

main { width: min(1440px, calc(100% - 48px)); margin: 0 auto; padding: 48px 0 90px; }
.bridge-intro { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(380px, .7fr); gap: 70px; align-items: end; padding: 14px 8px 42px; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 17px; color: var(--teal-dark); font-size: .72rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow > span { width: 34px; height: 2px; background: var(--teal-dark); }
.bridge-intro h1 { margin: 0; color: var(--navy); font: 900 clamp(3.6rem, 6.2vw, 6.9rem)/.92 "Nunito Sans", sans-serif; letter-spacing: -.065em; }
.bridge-intro h1 em { color: var(--teal); font-style: normal; }
.intro-copy > p:first-child { margin: 0; color: #4e687a; font-size: 1.05rem; line-height: 1.75; }
.local-note { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; color: var(--teal-dark); font-size: .78rem; font-weight: 800; }
.local-note span { display: grid; width: 22px; height: 22px; place-items: center; color: #fff; border-radius: 50%; background: var(--teal); font-size: .68rem; }

.builder-shell { display: grid; grid-template-columns: minmax(540px, .95fr) minmax(440px, .72fr); gap: 28px; align-items: start; }
.station-form { padding: 30px; border: 1px solid var(--line); border-radius: 30px; background: #fff; box-shadow: 0 16px 50px rgba(11, 53, 87, .08); }
.form-heading { display: flex; align-items: center; gap: 14px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.form-heading > span { display: grid; width: 48px; height: 48px; flex: 0 0 auto; place-items: center; color: var(--navy); border-radius: 15px; background: var(--gold); font-weight: 900; }
.form-heading div { display: grid; }
.form-heading small, .schedule-section > div small, .editor-intro small { color: var(--teal-dark); font-size: .67rem; font-weight: 900; letter-spacing: .1em; }
.form-heading h2 { margin: 3px 0 0; color: var(--navy); font: 900 1.45rem/1.1 "Nunito Sans", sans-serif; }
fieldset { min-width: 0; padding: 0; margin: 25px 0 0; border: 0; }
legend, .field > span { margin-bottom: 9px; color: #355369; font-size: .78rem; font-weight: 900; }
legend small, .field > span small { color: #8a9ba7; font-weight: 700; }

.mode-choice > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.mode-choice label { cursor: pointer; }
.mode-choice input { position: absolute; opacity: 0; }
.mode-choice label > span { display: grid; min-height: 105px; grid-template-columns: 38px 1fr; gap: 2px 10px; align-content: center; padding: 14px; border: 1px solid var(--line); border-radius: 17px; background: #fafcfc; transition: .18s ease; }
.mode-choice label b { grid-row: 1 / 3; display: grid; width: 38px; height: 38px; place-items: center; color: var(--teal-dark); border-radius: 12px; background: var(--aqua); }
.mode-choice label strong { color: var(--navy); font-size: .87rem; }
.mode-choice label small { color: var(--muted); font-size: .67rem; line-height: 1.35; }
.mode-choice input:checked + span { color: #fff; border-color: var(--teal); background: var(--teal); box-shadow: 0 10px 25px rgba(12, 146, 148, .2); }
.mode-choice input:checked + span strong, .mode-choice input:checked + span small { color: #fff; }
.mode-choice input:checked + span b { color: var(--navy); background: var(--gold); }
.mode-choice input:focus-visible + span { outline: 3px solid rgba(12, 146, 148, .22); outline-offset: 2px; }

.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; margin-top: 25px; }
.field { display: grid; }
.field.wide { grid-column: 1 / -1; }
.field input, .field select, .site-tools input, .editor-grid input, .editor-grid select, .editor-grid textarea, .editor-foundation input, .step-editor textarea { width: 100%; color: var(--ink); border: 1px solid var(--line); border-radius: 14px; background: #fbfdfd; outline: 0; }
.field input, .field select, .site-tools input, .editor-grid input, .editor-grid select, .editor-foundation input { min-height: 50px; padding: 0 14px; }
.field input:focus, .field select:focus, .site-tools input:focus, .editor-grid input:focus, .editor-grid select:focus, .editor-grid textarea:focus, .editor-foundation input:focus, .step-editor textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(12, 146, 148, .11); }

.time-check { display: flex; align-items: center; gap: 12px; padding: 15px; margin-top: 18px; border-radius: 16px; }
.time-check > span { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 11px; font-weight: 900; }
.time-check div { display: grid; gap: 3px; }
.time-check strong { color: var(--navy); font-size: .84rem; }
.time-check small { color: #597081; font-size: .7rem; line-height: 1.45; }
.time-check.is-ready { border: 1px solid #bde4da; background: #effaf7; }
.time-check.is-ready > span { color: #fff; background: var(--teal); }
.time-check.is-tight { border: 1px solid #efcaac; background: #fff4e9; }
.time-check.is-tight > span { color: #fff; background: #c4682d; }

.site-picker { padding-top: 3px; }
.site-tools { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.show-all { display: flex; min-height: 50px; align-items: center; gap: 8px; padding: 0 13px; color: #496578; border: 1px solid var(--line); border-radius: 14px; background: #fbfdfd; font-size: .72rem; font-weight: 800; cursor: pointer; }
.show-all input { accent-color: var(--teal); }
.site-status { min-height: 18px; margin: 10px 0 8px; color: var(--teal-dark); font-size: .7rem; font-weight: 800; }
.site-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-height: 252px; overflow: auto; padding-right: 3px; }
.site-choice { cursor: pointer; }
.site-choice input { position: absolute; opacity: 0; }
.site-choice > span:not(.site-choice-icon) { display: grid; min-width: 0; }
.site-choice > span:not(.site-choice-icon) strong { overflow: hidden; color: var(--navy); font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.site-choice > span:not(.site-choice-icon) small { overflow: hidden; margin-top: 3px; color: var(--muted); font-size: .62rem; text-overflow: ellipsis; white-space: nowrap; }
.site-choice { display: grid; min-width: 0; grid-template-columns: 34px minmax(0, 1fr) 20px; gap: 9px; align-items: center; padding: 11px; border: 1px solid var(--line); border-radius: 14px; background: #fbfdfd; transition: .16s ease; }
.site-choice-icon { display: grid; width: 34px; height: 34px; place-items: center; color: var(--navy); border-radius: 10px; background: #e9f4f4; font-size: .69rem; font-weight: 900; }
.site-choice i { display: grid; width: 19px; height: 19px; place-items: center; color: transparent; border: 1px solid #c5d5d8; border-radius: 50%; font-size: .6rem; font-style: normal; }
.site-choice.is-selected { border-color: var(--teal); background: #eef9f7; }
.site-choice.is-selected i { color: #fff; border-color: var(--teal); background: var(--teal); }
.site-choice input:focus-visible ~ i { outline: 3px solid rgba(12, 146, 148, .22); outline-offset: 2px; }
.site-empty { color: var(--muted); font-size: .76rem; }
.build-button { display: flex; width: 100%; min-height: 57px; align-items: center; justify-content: center; gap: 9px; margin-top: 25px; color: #fff; border: 0; border-radius: 17px; background: var(--teal); box-shadow: 0 16px 32px rgba(12, 146, 148, .22); font-weight: 900; cursor: pointer; }
.build-button:hover { background: var(--navy); transform: translateY(-1px); }
.privacy-line { margin: 12px 0 0; color: #718794; text-align: center; font-size: .68rem; }

.rotation-preview { position: sticky; top: 104px; overflow: hidden; color: #fff; border: 1px solid rgba(255, 255, 255, .12); border-radius: 30px; background: linear-gradient(145deg, #0a304f, #0c4962 62%, #0c777b); box-shadow: var(--shadow); }
.rotation-preview > header { display: grid; grid-template-columns: 50px 1fr; gap: 13px; align-items: center; padding: 25px; border-bottom: 1px solid rgba(255, 255, 255, .13); }
.rotation-preview > header > span { display: grid; width: 48px; height: 48px; place-items: center; color: var(--navy); border-radius: 15px; background: var(--gold); font-size: 1.35rem; font-weight: 900; }
.rotation-preview > header div { display: grid; }
.rotation-preview > header small { color: #9fe2d9; font-size: .66rem; font-weight: 900; letter-spacing: .1em; }
.rotation-preview > header strong { margin-top: 4px; font: 900 1.1rem/1.2 "Nunito Sans", sans-serif; }
.preview-clock { display: grid; justify-items: center; padding: 28px; border-bottom: 1px solid rgba(255, 255, 255, .13); background: rgba(0, 0, 0, .08); }
.preview-clock small { color: #a7e5dd; font-size: .63rem; font-weight: 900; letter-spacing: .12em; }
.preview-clock strong { margin: 5px 0 2px; color: var(--gold); font: 900 3.8rem/1 "Nunito Sans", sans-serif; letter-spacing: -.05em; }
.preview-clock span { color: #d0e5e8; font-size: .7rem; }
.preview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 20px; }
.preview-grid article { display: flex; min-width: 0; align-items: center; gap: 10px; padding: 13px; border: 1px solid rgba(255, 255, 255, .15); border-radius: 16px; background: rgba(255, 255, 255, .08); }
.preview-grid article b { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; color: var(--navy); border-radius: 10px; background: var(--gold); }
.preview-grid article span { display: grid; min-width: 0; }
.preview-grid article small { color: #9fe2d9; font-size: .56rem; font-weight: 900; letter-spacing: .07em; }
.preview-grid article strong { overflow: hidden; margin-top: 2px; font-size: .71rem; text-overflow: ellipsis; white-space: nowrap; }
.rotation-preview > footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 16px 20px; border-top: 1px solid rgba(255, 255, 255, .12); background: rgba(0, 0, 0, .12); font-size: .66rem; }
.rotation-preview > footer span { color: var(--gold); font-weight: 900; }
.rotation-preview > footer strong { text-align: right; }

.station-workspace { margin-top: 55px; }
.workspace-toolbar { position: sticky; z-index: 20; top: 82px; display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 21px; background: rgba(251, 250, 246, .96); box-shadow: 0 12px 30px rgba(11, 53, 87, .09); backdrop-filter: blur(15px); }
.workspace-toolbar h2 { margin: 0; color: var(--navy); font: 900 1.22rem/1.2 "Nunito Sans", sans-serif; }
.workspace-toolbar .eyebrow { margin-bottom: 5px; font-size: .6rem; }
.workspace-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.workspace-actions > span { padding: 0 7px; color: var(--teal-dark); font-size: .67rem; font-weight: 800; }
.workspace-actions button, .finish-editing { min-height: 39px; padding: 8px 12px; color: var(--navy); border: 1px solid #c8dadc; border-radius: 11px; background: #fff; font-size: .7rem; font-weight: 900; cursor: pointer; }
.workspace-actions .primary, .finish-editing { color: #fff; border-color: var(--teal); background: var(--teal); }
#station-teacher-view { margin-top: 20px; }
.plan-cover { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 27px 30px; color: #fff; border-radius: 28px 28px 0 0; background: linear-gradient(130deg, #092e4c, #0a5268 65%, #0b8a89); }
.plan-title { display: flex; align-items: center; gap: 14px; }
.plan-title > span { display: grid; width: 53px; height: 53px; flex: 0 0 auto; place-items: center; color: var(--navy); border-radius: 16px; background: var(--gold); font-size: 1.35rem; font-weight: 900; }
.plan-title small { color: #a6e7df; font-size: .64rem; font-weight: 900; letter-spacing: .11em; }
.plan-title h2 { margin: 4px 0 3px; font: 900 1.7rem/1.1 "Nunito Sans", sans-serif; }
.plan-title p { margin: 0; color: #d0e4e7; font-size: .76rem; }
.plan-timing { display: grid; min-width: 100px; justify-items: center; padding: 14px; border: 1px solid rgba(255, 255, 255, .19); border-radius: 17px; background: rgba(255, 255, 255, .08); }
.plan-timing strong { color: var(--gold); font: 900 1.35rem/1 "Nunito Sans", sans-serif; }
.plan-timing span { margin-top: 4px; color: #d5e7e9; font-size: .6rem; }
.plan-summary { display: grid; grid-template-columns: repeat(3, 120px) 1fr; gap: 0; align-items: stretch; overflow: hidden; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 23px 23px; background: #fff; }
.plan-summary > div { display: grid; justify-items: center; padding: 16px; border-right: 1px solid var(--line); }
.plan-summary > div span { color: var(--navy); font: 900 1.45rem/1 "Nunito Sans", sans-serif; }
.plan-summary > div small { margin-top: 4px; color: var(--muted); font-size: .61rem; }
.plan-summary button { min-height: 100%; color: #fff; border: 0; background: var(--teal); font-weight: 900; cursor: pointer; }
.plan-summary button:hover { background: var(--navy); }
.schedule-section { padding: 25px; margin-top: 18px; border: 1px solid var(--line); border-radius: 24px; background: #fff; }
.schedule-section > div:first-child { margin-bottom: 14px; }
.schedule-section h3 { margin: 3px 0 0; color: var(--navy); font: 900 1.3rem/1.1 "Nunito Sans", sans-serif; }
.schedule-wrap { overflow-x: auto; }
.schedule-wrap table { width: 100%; min-width: 720px; border-collapse: separate; border-spacing: 0; }
.schedule-wrap th, .schedule-wrap td { padding: 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; }
.schedule-wrap thead th { color: #526a7b; background: #f2f8f7; font-size: .68rem; }
.schedule-wrap thead th:first-child { border-radius: 13px 0 0 0; }
.schedule-wrap thead th:last-child { border-radius: 0 13px 0 0; border-right: 0; }
.schedule-wrap thead span { display: inline-grid; width: 25px; height: 25px; margin-right: 7px; place-items: center; color: #fff; border-radius: 8px; background: var(--group); }
.schedule-wrap tbody tr:last-child th, .schedule-wrap tbody tr:last-child td { border-bottom: 0; }
.schedule-wrap tbody td:last-child { border-right: 0; }
.schedule-wrap tbody th { display: grid; min-width: 62px; justify-items: center; border-left: 1px solid var(--line); }
.schedule-wrap tbody th b { color: var(--navy); }
.schedule-wrap tbody th small { color: var(--muted); font-size: .56rem; }
.schedule-wrap tbody td { min-width: 140px; }
.schedule-wrap tbody td > span { float: left; display: grid; width: 31px; height: 31px; margin-right: 8px; place-items: center; color: var(--teal-dark); border-radius: 10px; background: var(--aqua); font-size: .66rem; font-weight: 900; }
.schedule-wrap tbody td strong, .schedule-wrap tbody td small { display: block; }
.schedule-wrap tbody td strong { overflow: hidden; color: var(--navy); font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.schedule-wrap tbody td small { margin-top: 3px; color: var(--muted); font-size: .58rem; }
.choice-board { display: flex; align-items: center; gap: 13px; padding: 17px; border-radius: 17px; background: var(--aqua); }
.choice-board > span { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; color: #fff; border-radius: 13px; background: var(--teal); font-weight: 900; }
.choice-board strong { color: var(--navy); }
.choice-board p { margin: 4px 0 0; color: #4c6678; font-size: .74rem; line-height: 1.5; }

.station-list { display: grid; gap: 17px; margin-top: 18px; }
.station-card { overflow: hidden; border: 1px solid var(--line); border-radius: 23px; background: #fff; box-shadow: 0 12px 32px rgba(11, 53, 87, .06); }
.station-card > header { display: grid; grid-template-columns: 49px 1fr auto; gap: 13px; align-items: center; padding: 19px 21px; }
.station-card > header > span { display: grid; width: 47px; height: 47px; place-items: center; color: var(--navy); border-radius: 14px; background: #fff0ce; font-weight: 900; }
.station-card > header small { color: var(--teal-dark); font-size: .62rem; font-weight: 900; letter-spacing: .09em; }
.station-card > header h3 { margin: 3px 0 0; color: var(--navy); font: 900 1.2rem/1.15 "Nunito Sans", sans-serif; }
.station-card > header b { display: grid; min-width: 42px; height: 42px; padding: 0 8px; place-items: center; color: var(--teal-dark); border-radius: 13px; background: var(--aqua); font-size: .72rem; }
.station-goal { padding: 16px 21px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #eef9f7; }
.station-goal small, .station-body small, .station-site small { color: var(--teal-dark); font-size: .61rem; font-weight: 900; letter-spacing: .08em; }
.station-goal p { margin: 5px 0 0; color: var(--navy); font-size: .84rem; font-weight: 800; line-height: 1.45; }
.station-body { display: grid; grid-template-columns: 1.2fr .8fr; }
.station-body > section, .station-body > aside { padding: 20px 21px; }
.station-body > section p { margin: 6px 0 13px; color: #486477; font-size: .78rem; line-height: 1.6; }
.station-body ol { display: grid; gap: 8px; padding-left: 22px; margin: 0; color: #2d4d63; font-size: .75rem; line-height: 1.5; }
.station-body aside { border-left: 1px solid var(--line); background: #fbfdfd; }
.station-body aside > div + div { padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--line); }
.station-body aside p { margin: 5px 0 0; color: #3f5c70; font-size: .72rem; line-height: 1.5; }
.station-body details { padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--line); }
.station-body summary { color: var(--navy); font-size: .7rem; font-weight: 900; cursor: pointer; }
.station-card > footer { display: flex; align-items: stretch; justify-content: space-between; gap: 14px; padding: 13px 17px; border-top: 1px solid var(--line); background: #f9fcfb; }
.station-site { display: flex; min-width: 0; align-items: center; gap: 10px; color: var(--navy); text-decoration: none; }
.station-site > span { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; color: #fff; border-radius: 10px; background: var(--teal); }
.station-site > div { display: grid; min-width: 0; }
.station-site strong { overflow: hidden; margin-top: 2px; font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.station-site.is-offline > span { color: var(--navy); background: #fff0ce; }
.station-card > footer > div { display: flex; gap: 8px; }
.station-card > footer button, .station-card > footer > div a { display: inline-flex; align-items: center; justify-content: center; padding: 9px 11px; color: var(--navy); border: 1px solid #c8dadd; border-radius: 10px; background: #fff; font-size: .66rem; font-weight: 900; text-decoration: none; cursor: pointer; }

.editor-intro { display: flex; align-items: center; gap: 16px; padding: 22px; margin-top: 20px; color: #fff; border-radius: 22px; background: linear-gradient(130deg, var(--navy), #0b6c75); }
.editor-intro > span { display: grid; width: 48px; height: 48px; flex: 0 0 auto; place-items: center; color: var(--navy); border-radius: 15px; background: var(--gold); font-size: 1.2rem; }
.editor-intro small { color: #a7e5dd; }
.editor-intro h2 { margin: 3px 0; font: 900 1.35rem/1.2 "Nunito Sans", sans-serif; }
.editor-intro p { margin: 0; color: #d6e8e9; font-size: .75rem; }
.editor-foundation, .editor-station { padding: 22px; margin-top: 14px; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.editor-foundation label, .editor-grid label { display: grid; gap: 7px; color: #355369; font-size: .72rem; font-weight: 900; }
.editor-station > header { display: flex; align-items: center; gap: 12px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.editor-station > header > span { display: grid; width: 43px; height: 43px; place-items: center; color: var(--navy); border-radius: 13px; background: var(--gold); font-weight: 900; }
.editor-station > header small { color: var(--teal-dark); font-size: .6rem; font-weight: 900; letter-spacing: .08em; }
.editor-station > header h3 { margin: 3px 0 0; color: var(--navy); font: 900 1.1rem/1.1 "Nunito Sans", sans-serif; }
.editor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.editor-grid .wide { grid-column: 1 / -1; }
.editor-grid textarea, .step-editor textarea { min-height: 82px; padding: 11px 13px; resize: vertical; line-height: 1.5; }
.step-editor { padding-top: 18px; margin-top: 18px; border-top: 1px solid var(--line); }
.step-editor > div:first-child { display: grid; margin-bottom: 10px; }
.step-editor > div:first-child small { color: var(--teal-dark); font-size: .6rem; font-weight: 900; letter-spacing: .09em; }
.step-editor > div:first-child strong { margin-top: 2px; color: var(--navy); font-size: .83rem; }
.step-editor > div:nth-child(2) { display: grid; gap: 8px; }
.step-editor label { display: grid; grid-template-columns: 30px 1fr 35px; gap: 8px; align-items: start; }
.step-editor label > span { display: grid; height: 30px; place-items: center; color: #fff; border-radius: 9px; background: var(--teal); font-size: .7rem; font-weight: 900; }
.step-editor label button, .step-editor > button { min-height: 34px; color: var(--navy); border: 1px solid var(--line); border-radius: 9px; background: #f6faf9; font-weight: 900; cursor: pointer; }
.step-editor > button { padding: 7px 11px; margin: 10px 0 0 38px; font-size: .7rem; }
.finish-editing { display: block; margin: 18px 0 0 auto; padding: 11px 18px; }

dialog { width: min(1180px, calc(100% - 28px)); max-width: none; max-height: calc(100dvh - 24px); padding: 0; overflow: auto; border: 0; border-radius: 28px; box-shadow: 0 35px 100px rgba(0, 0, 0, .28); }
dialog::backdrop { background: rgba(4, 29, 48, .78); backdrop-filter: blur(5px); }
.rotation-shell { min-height: min(760px, calc(100dvh - 24px)); color: #fff; background: linear-gradient(145deg, #072a46, #0b465e 68%, #0a787a); }
.rotation-shell > header, .student-shell > header { display: grid; grid-template-columns: 1fr auto auto; gap: 20px; align-items: center; padding: 19px 24px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.student-brand { display: flex; align-items: center; gap: 11px; }
.student-brand > span { display: grid; width: 43px; height: 43px; place-items: center; color: var(--navy); border-radius: 13px; background: var(--gold); font-weight: 900; }
.student-brand div { display: grid; }
.student-brand small { color: #a7e5dd; font-size: .61rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.student-brand strong { margin-top: 3px; font: 900 1rem/1 "Nunito Sans", sans-serif; }
.rotation-shell > header > button, .student-shell > header > button { width: 40px; height: 40px; color: #fff; border: 1px solid rgba(255, 255, 255, .2); border-radius: 12px; background: rgba(255, 255, 255, .08); font-size: 1.25rem; cursor: pointer; }
.round-progress { display: flex; gap: 6px; }
.round-progress button { display: grid; width: 30px; height: 30px; place-items: center; color: #d2e4e6; border: 1px solid rgba(255, 255, 255, .22); border-radius: 50%; background: transparent; font-size: .65rem; font-weight: 900; cursor: pointer; }
.round-progress button.is-current { color: var(--navy); border-color: var(--gold); background: var(--gold); }
.round-progress button.is-complete { color: #fff; border-color: var(--teal); background: var(--teal); }
.rotation-shell > main { display: grid; grid-template-columns: .42fr 1fr; gap: 28px; align-items: center; padding: 38px; }
.rotation-clock { display: grid; justify-items: center; padding: 34px 20px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 25px; background: rgba(255, 255, 255, .07); }
.rotation-clock > p { margin: 0; color: #a9e3dc; font-size: .76rem; font-weight: 900; text-transform: uppercase; }
.rotation-clock > strong { margin: 9px 0 4px; color: var(--gold); font: 900 clamp(4.5rem, 10vw, 8rem)/.9 "Nunito Sans", sans-serif; letter-spacing: -.07em; }
.rotation-clock > span { color: #d5e8e9; font-size: .73rem; }
.rotation-clock > div { display: flex; gap: 8px; margin-top: 22px; }
.rotation-clock button { padding: 10px 13px; color: var(--navy); border: 0; border-radius: 11px; background: #fff; font-size: .7rem; font-weight: 900; cursor: pointer; }
.rotation-shell main section:last-child h2 { margin: 0 0 18px; font: 900 clamp(1.7rem, 3vw, 2.5rem)/1.05 "Nunito Sans", sans-serif; }
.rotation-assignments { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rotation-assignments article { display: flex; align-items: center; gap: 13px; padding: 16px; border: 1px solid rgba(255, 255, 255, .15); border-radius: 18px; background: rgba(255, 255, 255, .08); }
.rotation-assignments article > b { display: grid; width: 48px; height: 48px; flex: 0 0 auto; place-items: center; color: #fff; border-radius: 15px; background: var(--group); font-size: 1.05rem; }
.rotation-assignments article div { display: grid; }
.rotation-assignments article small { color: #a7ded8; font-size: .62rem; }
.rotation-assignments article strong { margin: 3px 0; font-size: .9rem; }
.rotation-assignments article span { color: var(--gold); font-size: .65rem; font-weight: 900; }
.rotation-shell > footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 24px; border-top: 1px solid rgba(255, 255, 255, .14); background: rgba(0, 0, 0, .1); }
.rotation-shell > footer button { padding: 10px 14px; color: var(--navy); border: 0; border-radius: 11px; background: #fff; font-size: .7rem; font-weight: 900; cursor: pointer; }
.rotation-shell > footer button:disabled { opacity: .35; }
.rotation-shell > footer p { margin: 0; color: #d4e6e8; font-size: .74rem; text-align: center; }

.student-shell { color: var(--ink); background: #f3f8f7; }
.student-shell > header { color: #fff; background: var(--navy); }
.student-shell > main { display: grid; grid-template-columns: 1.35fr .65fr; gap: 14px; padding: 16px; }
.student-copy, .student-shell > main > aside { padding: 26px; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.student-meta { margin: 0; color: var(--teal-dark); font-size: .69rem; font-weight: 900; text-transform: uppercase; }
.student-copy h2 { margin: 8px 0 19px; color: var(--navy); font: 900 clamp(2.4rem, 5vw, 4.5rem)/.95 "Nunito Sans", sans-serif; letter-spacing: -.045em; }
.student-goal, .student-instruction { padding: 17px; border-left: 4px solid var(--teal); border-radius: 0 15px 15px 0; background: var(--aqua); }
.student-instruction { margin-top: 11px; border-left-color: var(--gold); background: #fff7e5; }
.student-goal small, .student-instruction small, .student-shell aside small { color: var(--teal-dark); font-size: .62rem; font-weight: 900; letter-spacing: .09em; }
.student-goal p, .student-instruction p { margin: 5px 0 0; color: var(--navy); font-size: 1rem; font-weight: 800; line-height: 1.5; }
.student-copy ol { display: grid; gap: 11px; padding: 0; margin: 18px 0 0; list-style: none; }
.student-copy li { display: grid; grid-template-columns: 38px 1fr; gap: 11px; align-items: start; }
.student-copy li > span { display: grid; width: 36px; height: 36px; place-items: center; color: #fff; border-radius: 11px; background: var(--teal); font-weight: 900; }
.student-copy li p { margin: 5px 0 0; font-size: .9rem; line-height: 1.5; }
.student-shell > main > aside { display: grid; align-content: start; gap: 13px; }
.student-shell aside article { padding: 16px; border: 1px solid var(--line); border-radius: 15px; }
.student-shell aside article p { margin: 5px 0 0; color: var(--navy); font-size: .8rem; font-weight: 700; line-height: 1.5; }
#student-station-site { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; color: #fff; border-radius: 14px; background: var(--teal); font-size: .75rem; font-weight: 900; text-decoration: none; }
.student-qr { width: 150px; padding: 9px; margin: 0 auto; border-radius: 14px; background: #fff; }
.student-qr svg { display: block; width: 100%; height: auto; }

.bank-dialog { width: min(980px, calc(100% - 28px)); }
.bank-shell { min-height: 540px; color: var(--ink); background: #f4f9f8; }
.bank-shell > header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 27px; color: #fff; background: linear-gradient(130deg, var(--navy), #0b596a); }
.bank-heading { display: flex; align-items: center; gap: 14px; }
.bank-heading > span { display: grid; width: 50px; height: 50px; flex: 0 0 auto; place-items: center; color: var(--navy); border-radius: 15px; background: var(--gold); font-size: 1.15rem; font-weight: 900; }
.bank-heading small { color: #a9e4de; font-size: .62rem; font-weight: 900; letter-spacing: .1em; }
.bank-heading h2 { margin: 3px 0 2px; font: 900 1.6rem/1.05 "Nunito Sans", sans-serif; }
.bank-heading p { margin: 0; color: #d7e9e9; font-size: .72rem; }
.bank-heading-actions { display: flex; align-items: center; gap: 13px; }
.bank-heading-actions strong { color: #d6e8e9; font-size: .68rem; white-space: nowrap; }
.bank-heading-actions button { width: 41px; height: 41px; color: #fff; border: 1px solid rgba(255, 255, 255, .22); border-radius: 12px; background: rgba(255, 255, 255, .08); font-size: 1.25rem; cursor: pointer; }
.bank-controls { display: grid; grid-template-columns: 1.25fr .85fr .85fr; gap: 11px; padding: 21px 23px 12px; }
.bank-tabs { display: flex; grid-column: 1 / -1; gap: 7px; }
.bank-tabs button { min-height: 40px; padding: 8px 13px; color: var(--navy); border: 1px solid var(--line); border-radius: 11px; background: #fff; font-size: .72rem; font-weight: 900; cursor: pointer; }
.bank-tabs button.is-active { color: #fff; border-color: var(--teal); background: var(--teal); }
.bank-controls label { display: grid; gap: 6px; color: #355369; font-size: .68rem; font-weight: 900; }
.bank-controls input, .bank-controls select { width: 100%; min-height: 46px; padding: 0 12px; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; background: #fff; outline: 0; }
.bank-controls input:focus, .bank-controls select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(12, 146, 148, .11); }
.bank-local-note { display: flex; align-items: center; gap: 7px; padding: 0 23px 13px; margin: 0; color: var(--teal-dark); font-size: .68rem; font-weight: 800; }
.bank-local-note span { display: grid; width: 20px; height: 20px; place-items: center; color: #fff; border-radius: 50%; background: var(--teal); font-size: .6rem; }
.bank-list { display: grid; gap: 10px; padding: 0 23px 25px; }
.bank-card { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 13px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 17px; background: #fff; box-shadow: 0 8px 24px rgba(11, 53, 87, .05); }
.bank-card-icon { display: grid; width: 44px; height: 44px; place-items: center; color: var(--navy); border-radius: 13px; background: #fff0ce; font-size: .72rem; font-weight: 900; }
.bank-package .bank-card-icon { color: #fff; background: var(--teal); }
.bank-card-copy { min-width: 0; }
.bank-card-copy small { color: var(--teal-dark); font-size: .58rem; font-weight: 900; letter-spacing: .08em; }
.bank-card-copy h3 { margin: 3px 0 4px; color: var(--navy); font: 900 1rem/1.15 "Nunito Sans", sans-serif; }
.bank-card-copy p { display: -webkit-box; overflow: hidden; margin: 0; color: #526b7c; font-size: .7rem; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.bank-card-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.bank-card-tags span { padding: 4px 7px; color: #466477; border-radius: 999px; background: #eef6f5; font-size: .57rem; font-weight: 800; }
.bank-card-actions { display: grid; gap: 7px; min-width: 122px; }
.bank-card-actions button { min-height: 36px; padding: 7px 10px; color: var(--navy); border: 1px solid var(--line); border-radius: 10px; background: #f8fbfa; font-size: .65rem; font-weight: 900; cursor: pointer; }
.bank-card-actions button.primary { color: #fff; border-color: var(--teal); background: var(--teal); }
.bank-empty { display: grid; justify-items: center; padding: 55px 24px 70px; text-align: center; }
.bank-empty > span { display: grid; width: 58px; height: 58px; place-items: center; color: var(--navy); border-radius: 18px; background: var(--gold); font-size: 1.2rem; font-weight: 900; }
.bank-empty h3 { margin: 15px 0 5px; color: var(--navy); font: 900 1.3rem/1.1 "Nunito Sans", sans-serif; }
.bank-empty p { max-width: 430px; margin: 0; color: var(--muted); font-size: .75rem; line-height: 1.5; }
.toast { position: fixed; z-index: 80; right: 22px; bottom: 22px; max-width: min(390px, calc(100% - 44px)); padding: 13px 17px; color: #fff; border-radius: 13px; background: var(--navy); box-shadow: 0 15px 45px rgba(0, 0, 0, .22); font-size: .76rem; font-weight: 800; }
.site-footer { display: flex; width: min(1440px, calc(100% - 48px)); align-items: center; justify-content: space-between; gap: 20px; padding: 26px 0 36px; margin: 0 auto; color: var(--muted); border-top: 1px solid var(--line); font-size: .72rem; }

@media (max-width: 1080px) {
  .builder-shell { grid-template-columns: 1fr; }
  .rotation-preview { position: static; width: min(100%, 760px); }
  .workspace-toolbar { position: static; align-items: flex-start; }
  .workspace-actions { max-width: 740px; }
}

@media (max-width: 820px) {
  .site-header nav a:not(.home-link) { display: none; }
  .bridge-intro { grid-template-columns: 1fr; gap: 18px; }
  .bridge-intro h1 { font-size: clamp(3rem, 12vw, 5rem); }
  .workspace-toolbar { display: grid; }
  .workspace-actions { justify-content: flex-start; }
  .plan-cover { align-items: flex-start; flex-direction: column; }
  .plan-summary { grid-template-columns: repeat(3, 1fr); }
  .plan-summary button { grid-column: 1 / -1; min-height: 51px; }
  .station-body, .student-shell > main, .rotation-shell > main { grid-template-columns: 1fr; }
  .station-body aside { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 0; }
  .station-body aside details { grid-column: 1 / -1; }
  .rotation-clock > strong { font-size: 5.5rem; }
}

@media (max-width: 600px) {
  main { width: min(100% - 24px, 1440px); padding-top: 28px; }
  .site-header { min-height: 72px; padding: 10px 13px; }
  .brand img { width: 41px; height: 41px; }
  .site-header .home-link { padding: 10px 12px; font-size: .75rem; }
  .bridge-intro { padding: 5px 3px 27px; }
  .bridge-intro h1 { font-size: 2.9rem; }
  .station-form { padding: 17px; border-radius: 22px; }
  .mode-choice > div, .field-grid, .site-list, .preview-grid, .editor-grid, .rotation-assignments { grid-template-columns: 1fr; }
  .field.wide, .editor-grid .wide { grid-column: auto; }
  .site-tools { grid-template-columns: 1fr; }
  .workspace-toolbar { padding: 15px; }
  .workspace-actions > span { width: 100%; padding: 0; }
  .workspace-actions button { flex: 1 1 auto; }
  .plan-cover { padding: 20px; }
  .plan-title { align-items: flex-start; }
  .plan-title h2 { font-size: 1.35rem; }
  .plan-summary { grid-template-columns: repeat(3, 1fr); }
  .plan-summary > div { padding: 12px 7px; }
  .schedule-section { padding: 15px; }
  .station-card > header { grid-template-columns: 43px 1fr; padding: 15px; }
  .station-card > header > span { width: 41px; height: 41px; }
  .station-card > header b { display: none; }
  .station-goal, .station-body > section, .station-body > aside { padding: 15px; }
  .station-body aside { grid-template-columns: 1fr; }
  .station-body aside details { grid-column: auto; }
  .station-card > footer { align-items: stretch; flex-direction: column; }
  .station-card > footer > div { display: grid; grid-template-columns: 1fr 1fr; }
  .editor-intro { align-items: flex-start; }
  .editor-station, .editor-foundation { padding: 16px; }
  .rotation-shell > header { grid-template-columns: 1fr auto; padding: 14px; }
  .round-progress { grid-column: 1 / -1; grid-row: 2; }
  .rotation-shell > main { padding: 15px; }
  .rotation-shell > footer { padding: 13px; }
  .rotation-shell > footer p { display: none; }
  .student-shell > header { grid-template-columns: 1fr auto; padding: 13px; }
  .student-shell > main { padding: 10px; }
  .student-copy, .student-shell > main > aside { padding: 17px; }
  .student-copy h2 { font-size: 2.4rem; }
  .bank-shell > header { align-items: flex-start; padding: 18px; }
  .bank-heading p { display: none; }
  .bank-heading-actions { align-items: flex-end; flex-direction: column-reverse; }
  .bank-heading-actions strong { white-space: normal; text-align: right; }
  .bank-controls { grid-template-columns: 1fr; padding: 17px 15px 10px; }
  .bank-tabs { display: grid; grid-template-columns: 1fr 1fr; }
  .bank-local-note { padding: 0 15px 12px; }
  .bank-list { padding: 0 15px 20px; }
  .bank-card { grid-template-columns: 42px 1fr; padding: 13px; }
  .bank-card-actions { grid-column: 1 / -1; grid-template-columns: 1fr auto; }
  .site-footer { width: min(100% - 24px, 1440px); align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

@media print {
  .site-header, .bridge-intro, .builder-shell, .workspace-toolbar, .finish-editing, .site-footer, dialog, .toast { display: none !important; }
  body { color: #111; background: #fff; }
  main { width: 100%; padding: 0; }
  .station-workspace, #station-teacher-view { margin: 0; }
  .plan-cover { color: #111; border: 2px solid #173a55; background: #fff; }
  .plan-title h2, .plan-title p { color: #111; }
  .plan-timing { color: #111; border-color: #777; }
  .station-card, .schedule-section { box-shadow: none; break-inside: avoid; }
  .station-card > footer > div { display: none; }
}
