.pilot-notebook {
  box-sizing: border-box; width: min(46rem, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem); padding: clamp(1rem, 4vw, 2rem);
  color: #f4eddf; background: #151817; border: 1px solid #8f8061;
  border-radius: .5rem; font: 1rem/1.55 system-ui, sans-serif;
}
.pilot-notebook::backdrop { background: rgb(0 0 0 / .78); }
.pilot-notebook header { position:sticky; top:0; z-index:1; background:#151817; padding:.25rem 0 .75rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.pilot-notebook h2, .pilot-notebook h3 { font-family: Georgia, serif; color: #f6dfac; line-height: 1.2; }
.pilot-notebook h2 { margin: 0; font-size: clamp(1.5rem, 5vw, 2rem); }
.pilot-notebook h3 { margin: 0 0 .5rem; }
.pilot-notebook article { padding: 1.25rem 0; border-top: 1px solid #51564c; }
.pilot-notebook p { margin: .5rem 0; }
.pilot-notebook small { display: block; color: #c5cabb; }
.pilot-notebook button { min-height: 44px; padding: .6rem 1rem; margin-top: .75rem;
  color: #f6dfac; border: 1px solid #a8956a; background: #242922; border-radius: .25rem; font: inherit; cursor: pointer; }
.pilot-notebook button:hover { background: #3c4436; }
.pilot-notebook button:focus-visible { outline: 3px solid #fff0c0; outline-offset: 3px; }
.pilot-notebook header button { margin: 0; }
.pilot-notebook footer { display: flex; flex-wrap: wrap; gap: .75rem; }
.pilot-notebook .practice-rows { list-style: none; margin: 0; padding: 0; }
.pilot-notebook .practice-rows li { display: flex; align-items: center; gap: .75rem;
  padding: .5rem 0; border-top: 1px solid #51564c; }
.pilot-notebook .practice-go { margin: 0; flex: 0 1 15rem; text-align: left; }
.pilot-notebook .practice-go::before { content: "\25B6\FE0E"; margin-right: .6rem; font-size: .75em; }
.pilot-notebook .practice-limit { min-width: 4.5rem; color: #c5cabb;
  font: 600 .9rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums; text-align: right; }
#practice-cue { position: fixed; left: 50%; bottom: max(1rem, env(safe-area-inset-bottom));
  transform: translateX(-50%); box-sizing: border-box; max-width: min(34rem, calc(100vw - 32px));
  padding: 4px 10px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  background: rgb(2 12 18 / .78); border: 1px solid rgb(77 255 136 / .42); border-radius: 4px;
  color: #d9ffe5; font: 750 11px/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .06em; text-transform: uppercase;
  text-align: center; pointer-events: none; z-index: 15; }
/* Same surface as the console and Settings: one sans face, the flow panel, and a blurred backdrop
   so the staged flight HUD behind the menu never shows through as stray tapes. */
.pilot-notebook { background: var(--flow-panel, #12171f); border-color: var(--flow-line, rgb(253 246 230 / .18));
  color: var(--flow-ink, #fdf6e6); font-family: var(--console-font, "Avenir Next", "Segoe UI", Arial, sans-serif);
  border-radius: var(--flow-radius-md, 10px); box-shadow: var(--flow-shadow, 0 18px 60px rgb(0 0 0 / .45)); }
.pilot-notebook::backdrop { background: rgb(0 7 12 / .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.pilot-notebook header { background: inherit; }
.pilot-notebook h2, .pilot-notebook h3 { font-family: inherit; font-weight: 700; color: var(--flow-ink, #fdf6e6); letter-spacing: .01em; }
.pilot-notebook h2 { font-size: clamp(1.25rem, 4vw, 1.6rem); }
.pilot-notebook button { color: var(--flow-ink, #fdf6e6); border-color: var(--flow-line, rgb(253 246 230 / .18)); background: rgb(255 255 255 / .04); border-radius: var(--flow-radius-sm, 6px); }
.pilot-notebook button:hover { background: rgb(255 255 255 / .1); }
/* A practice row is one control: the whole width launches, the time limit sits at its right edge. */
.pilot-notebook .practice-rows li { position: relative; padding: .25rem 0; border-top: 0; }
.pilot-notebook .practice-go { flex: 1 1 auto; padding-right: 5.5rem; }
.pilot-notebook .practice-limit { position: absolute; right: 1rem; pointer-events: none; }
