:root {
    color-scheme: light;
    font: 14px/1.5 -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei","Segoe UI",sans-serif;
    color: #17232e;
    background: #f2f6fa;
    --line: #dce6ee;
    --muted: #536574;
    --teal: #007680;
    --purple: #4d59ba;
  }
  *, *::before, *::after { box-sizing: border-box; }
  body { margin: 0; }
  h1, h2, p { margin: 0; }
  button, a { font: inherit; }
  button:focus-visible, a:focus-visible, iframe:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
  button { cursor: pointer; }
  button:disabled { cursor: default; }
  .page { max-width: 1800px; margin: auto; padding: 16px clamp(10px,2vw,30px); }
  .header, .toolbar, .pane-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
  .header { margin-bottom: 11px; }
  .header h1 { font-size: clamp(24px,3vw,33px); line-height: 1.14; letter-spacing: -.035em; }
  .entries { display: flex; gap: 8px; flex-wrap: wrap; }
  .entries a, .locate, .tracks button, .restart {
    min-height: 40px; padding: 6px 11px; border: 1px solid var(--line); border-radius: 9px;
    display: inline-flex; align-items: center; justify-content: center; background: #fff; color: inherit;
    text-decoration: none; font-weight: 650;
  }
  .entries a:hover, .locate:not(:disabled):hover, .tracks button:hover { background: #edf5f7; }
  .toolbar { padding: 10px 12px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
  .tracks { display: flex; flex-wrap: wrap; gap: 6px; }
  .route-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
  .restart { border-color: #b6d8da; color: var(--teal); }
  .restart:hover:not(:disabled) { background: #edf5f7; }
  .restart:disabled { color: var(--muted); }
  .round-label { display: inline-block; margin-inline-start: 6px; color: var(--teal); font-size: 12px; font-weight: 650; }
  .round-label[hidden] { display: none; }
  .tracks button[aria-pressed="true"] { background: #e7f7f6; border-color: #b6e3df; color: #005b65; }
  .course { color: var(--muted); overflow-wrap: anywhere; }
  .course strong { color: #17232e; }
  .status-list { list-style: none; padding: 0; margin: 9px 0 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
  .status { min-width: 0; display: flex; align-items: center; gap: 7px; border-radius: 8px; padding: 6px 9px; background: #e8eef4; }
  .status b { font-size: 12px; flex: none; }
  .status span { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
  .status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #8292a3; flex: none; }
  .status[data-done="true"] { background: #e5f4ee; }
  .status[data-done="true"]::before { background: #217954; }
  .status[data-done="true"] span { color: #236047; }
  .hint { color: var(--muted); margin: 6px 0 11px; min-height: 21px; font-size: 13px; }
  .control-area { display: flow-root; background: #f2f6fa; }
  .workspace { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .pane { min-width: 0; background: white; border: 1px solid var(--line); border-radius: 15px; overflow: hidden; }
  .pane-head { padding: 6px 10px 6px 13px; background: #fcffff; border-bottom: 1px solid var(--line); }
  .pane-head h2 { display: flex; align-items: center; gap: 7px; font-size: 16px; }
  .pane-head h2::before { content: ""; width: 9px; height: 9px; border-radius: 3px; background: var(--teal); }
  .pane-actions { display: flex; flex-wrap: wrap; gap: 6px; }
  .pane.student .pane-head { background: #fcfcff; }
  .pane.student h2::before { background: var(--purple); }
  .locate { min-height: 34px; color: var(--teal); font-size: 12px; }
  .student .locate { color: var(--purple); }
  .locate:disabled { color: var(--muted); background: #f4f6f8; }
  .locate.fill-example:not(:disabled) { background: #e7f7f6; border-color: #b6e3df; }
  .student .locate.fill-example:not(:disabled) { background: #eef0ff; border-color: #dce0fb; }
  iframe { display: block; width: 100%; height: max(480px,calc(100dvh - 235px)); border: 0; background: #f2f6fa; }
  @media (min-width: 851px) { .control-area { position: sticky; top: 0; z-index: 1; } }
  @media (max-width: 850px) {
    .workspace { grid-template-columns: minmax(0,1fr); }
    iframe { height: max(430px,65dvh); }
  }
  @media (max-width: 480px) {
    .status { align-items: flex-start; flex-direction: column; gap: 2px; padding: 5px 7px; }
    .status::before { display: none; }
  }
