:root {
  font-family:"Segoe UI",sans-serif;
  color:#1c2c3b;
  background:#edf2f6;
  font-synthesis:none;
  --blue:#1f4e79;
  --line:#d6e0e8;
  --muted:#4a5e70;
  --red:#bb0000;
  color-scheme:light;
}
* {
  box-sizing:border-box;
}
body {
  margin:0;
}
button,input,select,textarea {
  font:inherit;
}
button,select {
  min-height:44px;
}
button,select,summary,input[type=range] {
  cursor:pointer;
}
button:disabled {
  cursor:default;
}
button,select,textarea {
  border:1px solid #aebfcd;
  border-radius:7px;
}
button {
  padding:10px 22px;
  background:#fff;
  color:var(--blue);
  font-weight:650;
}
button:hover:enabled {
  background:#e8f0f6;
  border-color:var(--blue);
}
button.primary {
  background:var(--blue);
  border-color:var(--blue);
  color:#fff;
  min-width:108px;
}
button.primary:hover:enabled {
  background:#153b5e;
}
button.quiet {
  background:#f3f6f9;
}
button:disabled {
  color:#748594;
  background:#edf1f5;
  border-color:#d5dfe6;
  opacity:.8;
}
select {
  width:100%;
  padding:8px 30px 8px 12px;
  background:#fff;
  color:#1c2c3b;
}
input[type=range] {
  width:100%;
  height:24px;
  accent-color:var(--blue);
  margin:5px 0 0;
}
textarea {
  width:100%;
  resize:vertical;
  min-height:100px;
  padding:10px;
  margin-top:8px;
  background:#fff;
  color:#1c2c3b;
}
textarea::placeholder {
  color:#5e7080;
  opacity:1;
}
:focus-visible {
  outline:3px solid #2e6da4;
  outline-offset:4px;
}
h1,h2,h3,p {
  margin:0;
}
h2 {
  font-size:20px;
  line-height:1.3;
  letter-spacing:-.3px;
}
h3 {
  font-size:16px;
  margin-bottom:8px;
}
p {
  line-height:1.5;
}
label {
  font-weight:600;
  font-size:15px;
}
.app-shell {
  max-width:1500px;
  margin:auto;
  padding:24px 28px 30px;
}
.school-header {
  padding-bottom:16px;
  border-bottom:2px solid var(--blue);
  margin-bottom:20px;
}
.school-line {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-bottom:12px;
}
.school-logo {
  width:106px;
  height:46px;
  object-fit:contain;
  object-position:left center;
}
.school-name {
  font-weight:700;
  font-size:13px;
  letter-spacing:1px;
  text-align:right;
}
.title-line {
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:20px;
}
h1 {
  font-size:32px;
  color:var(--red);
  letter-spacing:-1px;
  line-height:1.1;
}
.title-line p {
  margin-top:6px;
  color:var(--muted);
  font-size:16px;
}
.model-tag {
  font-size:14px;
  color:var(--muted);
  white-space:nowrap;
  padding-bottom:2px;
}
.panel {
  border:1px solid var(--line);
  background:#fff;
  border-radius:10px;
  overflow:hidden;
}
.controls {
  padding:18px 22px;
}
.settings-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:16px;
}
.settings-heading h2 {
  font-size:17px;
}
.settings-heading p,.speed-help {
  font-size:13px;
  color:var(--muted);
}
.settings-grid {
  display:grid;
  grid-template-columns:1.2fr 1.25fr .9fr;
  gap:34px;
  align-items:start;
}
.settings-grid label {
  display:block;
  margin-bottom:8px;
}
.angle-control label {
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.angle-control output {
  font-size:22px;
  color:var(--blue);
  line-height:1;
}
.range-limits {
  display:flex;
  justify-content:space-between;
  font-size:12px;
  color:var(--muted);
}
.transport-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  border-top:1px solid #e6edf2;
  padding-top:16px;
  margin-top:14px;
}
.transport {
  display:flex;
  flex-wrap:wrap;
  gap:9px;
}
.speed-help {
  max-width:300px;
  text-align:right;
}
.trial-status {
  display:flex;
  align-items:center;
  gap:12px;
  min-height:54px;
  font-size:14px;
  margin:5px 0;
}
.state-chip {
  font-size:12px;
  letter-spacing:.4px;
  font-weight:700;
  text-transform:uppercase;
  padding:5px 10px;
  border:1px solid #c8d7e2;
  border-radius:5px;
  color:var(--blue);
  background:#e8f0f6;
  white-space:nowrap;
}
.state-chip[data-state=rest] {
  color:#6c4810;
  background:#fcf4de;
  border-color:#dac58f;
}
.state-chip[data-state=finished] {
  color:#225640;
  background:#e6f2ea;
  border-color:#b7d5c3;
}
.readouts {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  border:1px solid var(--line);
  border-radius:10px;
  background:#fff;
  margin-bottom:18px;
  overflow:hidden;
}
.readouts>div {
  padding:14px 22px;
  border-right:1px solid #e1e8ee;
}
.readouts>div:last-child {
  border-right:0;
}
.readouts span {
  display:flex;
  align-items:center;
  gap:7px;
  color:var(--muted);
  font-size:13px;
}
.readouts span b {
  margin-left:2px;
  color:#1c2c3b;
}
.readouts p {
  font-variant-numeric:tabular-nums;
  font-size:29px;
  font-weight:650;
  line-height:1.4;
  margin-top:4px;
  white-space:nowrap;
}
.readouts small {
  font-size:15px;
  font-weight:400;
  color:var(--muted);
  margin-left:9px;
}
.simulation-grid {
  display:grid;
  grid-template-columns:minmax(0,2.25fr) minmax(300px,1fr);
  gap:18px;
  align-items:stretch;
}
.panel-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:20px 22px 0;
}
.eyebrow {
  font-size:10px;
  font-weight:700;
  letter-spacing:1.5px;
  color:var(--blue);
  margin-bottom:6px;
}
.particle-key {
  font-size:12px;
  color:var(--muted);
  display:flex;
  align-items:center;
  gap:7px;
  white-space:nowrap;
}
.particle-key i {
  width:10px;
  height:10px;
  background:#ee2028;
  border-radius:50%;
}
.ramp-panel {
  display:flex;
  flex-direction:column;
  background:#f3f6f9;
}
.ramp-drawing {
  width:100%;
  flex:1;
  min-width:0;
  display:flex;
  align-items:center;
  justify-content:center;
}
.ramp-drawing svg {
  display:block;
  width:100%;
  height:auto;
}
.vector-legend {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px 22px;
  padding:14px 22px 18px;
  border-top:1px solid #dce5ed;
  font-size:13px;
}
.vector-legend>span {
  display:flex;
  align-items:center;
  gap:8px;
  font-weight:600;
}
.vector-legend p {
  flex-basis:100%;
  color:var(--muted);
  font-size:12px;
}
.legend-stroke {
  display:inline-block;
  width:23px;
  height:3px;
  flex-shrink:0;
}
.black {
  background:#000;
}
.blue {
  background:var(--blue);
}
.sheet-panel {
  background:#fafbfd;
  display:flex;
  flex-direction:column;
}
.sheet-panel h2 {
  font-size:18px;
}
.sheet-instruction {
  font-size:13px;
  padding:10px 22px 0;
  color:var(--muted);
}
.sheet-drawing {
  flex:1;
  display:flex;
  justify-content:center;
  align-items:center;
  min-height:0;
}
.sheet-drawing svg {
  display:block;
  width:100%;
  max-width:370px;
  height:auto;
}
.sheet-key {
  font-size:12px;
  padding:0 20px 7px;
  display:flex;
  gap:6px;
  align-items:center;
  flex-wrap:wrap;
}
.hollow-symbol {
  margin-left:6px;
  font-size:18px;
}
.fine-print {
  font-size:12px;
  color:var(--muted);
}
.sheet-panel>.fine-print {
  padding:0 20px 17px;
}
.data-panel {
  margin-top:18px;
}
.data-panel .panel-heading {
  padding-bottom:17px;
}
.panel-heading>p {
  font-size:12px;
  color:var(--muted);
  text-align:right;
}
.table-scroll {
  width:100%;
  overflow-x:auto;
}
table {
  border-collapse:collapse;
  width:100%;
  font-size:15px;
  font-variant-numeric:tabular-nums;
  text-align:right;
  min-width:680px;
}
th,td {
  padding:14px 22px;
  border-bottom:1px solid #e3eaf0;
}
th {
  font-size:12px;
  font-weight:650;
  background:#edf3f8;
  color:#234c70;
  white-space:nowrap;
}
th:first-child,td:first-child {
  text-align:left;
}
tbody tr:last-child td {
  border-bottom:0;
}
tbody tr:nth-child(even) {
  background:#fafcfd;
}
.row-note {
  display:inline-block;
  font-size:11px;
  font-weight:600;
  color:var(--blue);
  margin-left:9px;
}
.table-note {
  font-size:12px;
  color:var(--muted);
  padding:12px 22px;
  border-top:1px solid #e3eaf0;
}
.guidance {
  margin-top:14px;
}
.guidance summary {
  display:flex;
  align-items:center;
  gap:12px;
  padding:18px 22px;
  font-weight:650;
  font-size:16px;
  list-style:none;
}
.guidance summary::-webkit-details-marker {
  display:none;
}
.guidance summary::before {
  content:'+';
  font-size:22px;
  color:var(--blue);
  width:16px;
  font-weight:400;
}
.guidance[open] summary::before {
  content:'−';
}
.guidance summary span {
  margin-left:auto;
  color:var(--muted);
  font-size:12px;
  font-weight:400;
}
.guidance[open] summary {
  border-bottom:1px solid var(--line);
}
.details-body {
  padding:22px;
  display:grid;
  gap:20px;
  font-size:15px;
}
.outcomes {
  display:grid;
  gap:12px;
}
.outcomes p {
  display:flex;
  align-items:flex-start;
  gap:12px;
}
.tier {
  min-width:57px;
  font-weight:750;
  font-size:11px;
  letter-spacing:.4px;
  padding:4px 8px;
  border-radius:4px;
  text-align:center;
}
.all {
  background:#ffe2e2;
  color:#9e111b;
}
.most {
  background:#dff2e5;
  color:#205334;
}
.some {
  background:#fff0b3;
  color:#674900;
}
.criterion {
  background:#edf3f8;
  padding:14px;
  border-left:3px solid var(--blue);
}
.criterion strong {
  display:block;
  margin-bottom:4px;
}
.task-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:26px;
}
.task-grid p+h3 {
  margin-top:20px;
}
.reflection-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}
.model-notes {
  max-width:980px;
}
.formula-box {
  background:#f1f5f8;
  border:1px solid var(--line);
  border-radius:6px;
  padding:16px 20px;
  display:grid;
  gap:10px;
  font-size:17px;
}
.formula-box sub {
  font-size:70%;
}
footer {
  display:flex;
  justify-content:space-between;
  gap:15px;
  font-size:12px;
  color:var(--muted);
  padding:22px 2px 0;
}
.notice {
  padding:20px;
  border:1px solid #bb0000;
  margin-bottom:16px;
  background:#fff;
}
.skip-link {
  position:absolute;
  left:20px;
  top:-100px;
  background:#fff;
  padding:12px;
  z-index:10;
}
.skip-link:focus {
  top:10px;
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip-path:inset(50%);
  white-space:nowrap;
}
@media(min-width:1600px) {
  .app-shell {
    padding-top:28px;
  }
  .readouts p {
    font-size:34px;
  }
}
@media(max-width:1000px) {
  .app-shell {
    padding:18px;
  }
  .settings-grid {
    gap:22px;
  }
  .simulation-grid {
    grid-template-columns:minmax(0,1.65fr) minmax(270px,1fr);
    gap:14px;
  }
  .particle-key {
    display:none;
  }
  .panel-heading {
    padding:18px 18px 0;
  }
  h2 {
    font-size:18px;
  }
  .readouts>div {
    padding:13px 16px;
  }
  .readouts p {
    font-size:26px;
  }
  .speed-help {
    max-width:215px;
  }
  .reflection-grid {
    grid-template-columns:1fr;
  }
  .sheet-panel h2 {
    font-size:17px;
  }
}
@media(max-width:700px) {
  .app-shell {
    padding:16px 12px;
  }
  .school-line {
    gap:12px;
  }
  .school-name {
    font-size:10px;
    letter-spacing:.5px;
    max-width:170px;
  }
  .school-logo {
    width:93px;
    height:40px;
  }
  .title-line {
    display:block;
  }
  h1 {
    font-size:29px;
  }
  .title-line p {
    font-size:14px;
  }
  .model-tag {
    display:block;
    margin-top:8px;
    font-size:12px;
  }
  .controls {
    padding:16px;
  }
  .settings-heading {
    align-items:flex-start;
    display:block;
  }
  .settings-heading p {
    margin-top:6px;
  }
  .settings-grid {
    grid-template-columns:1fr;
    gap:15px;
  }
  .settings-grid label {
    margin-bottom:6px;
  }
  .range-limits {
    font-size:11px;
  }
  .transport-row {
    display:block;
  }
  .transport {
    display:grid;
    grid-template-columns:1fr 1fr;
  }
  .transport button {
    padding:10px 12px;
  }
  .speed-help {
    text-align:left;
    max-width:none;
    margin-top:10px;
    font-size:12px;
  }
  .trial-status {
    align-items:flex-start;
    padding:12px 0;
    font-size:13px;
    gap:8px;
  }
  .state-chip {
    font-size:10px;
    padding:4px 7px;
  }
  .readouts {
    grid-template-columns:repeat(2,minmax(0,1fr));
    margin-bottom:14px;
  }
  .readouts>div {
    padding:12px 14px;
  }
  .readouts>div:nth-child(2) {
    border-right:0;
  }
  .readouts>div:nth-child(-n+2) {
    border-bottom:1px solid #e1e8ee;
  }
  .readouts span {
    font-size:12px;
    gap:4px;
  }
  .readouts p {
    font-size:25px;
  }
  .readouts small {
    font-size:13px;
    margin-left:5px;
  }
  .simulation-grid {
    grid-template-columns:minmax(0,1fr);
  }
  .ramp-drawing {
    min-height:400px;
  }
  .ramp-drawing svg {
    min-width:340px;
  }
  .sheet-drawing svg {
    max-width:370px;
  }
  .panel-heading {
    padding:17px 16px 0;
  }
  .vector-legend {
    padding:14px 16px;
  }
  .data-panel .panel-heading {
    align-items:flex-start;
  }
  .data-panel .panel-heading>p {
    max-width:110px;
  }
  .guidance summary {
    padding:16px;
    font-size:15px;
  }
  .guidance summary span {
    display:none;
  }
  .details-body {
    padding:16px;
    font-size:14px;
  }
  .task-grid {
    grid-template-columns:1fr;
    gap:20px;
  }
  .formula-box {
    font-size:15px;
    padding:14px;
  }
  footer {
    font-size:11px;
    display:block;
  }
  footer span {
    display:block;
    margin-bottom:5px;
  }
}
@media(prefers-reduced-motion:reduce) {
  * {
    scroll-behavior:auto;
    transition:none;
    animation:none;
  }
}
