  /* ===== Apple Human Interface Guidelines pass (Nov 2026) =====
     San Francisco system font, Apple's text sizes, 44pt tap targets, calmer labels.
     The RECORD core, the timer and the ZUMBRIX wordmark keep their original look on purpose. */
  :root {
    --brand: "Orbitron", "Segoe UI", system-ui, sans-serif;
    --code: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
    --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    --mono: var(--body);
    --rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  }
  body { font-family: var(--body); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
  pre, code, kbd, samp, .code { font-family: var(--code) !important; }
  /* keep the brand look where Peter wants it */
  .reactor .core, .timer, .brand, #login .wordmark { font-family: var(--brand) !important; }

  /* Large Title + section headers like iOS */
  h1 { font: 700 clamp(28px, 8.2vw, 34px)/1.15 var(--display) !important; letter-spacing: .005em !important; text-transform: none !important; text-shadow: none !important; }
  h2 { font: 600 13px/1.3 var(--body) !important; letter-spacing: .02em !important; color: var(--muted) !important; }
  .kicker { font: 400 15px/1.4 var(--body) !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--muted); }
  .label, .fcap, .gl .cap, .missing .h, .cc .l4, .cc .foot, .amt small, .croute, .tl, .seg .when, .rem .when, .ev .when, .vstatus, details.help summary, .notes-wait, .recog, .ntmic .st, #earAns b, .msg .who, .msg.thinking .tlabel, .plan .stp .n, .linkbtn, .status {
    font-family: var(--body) !important; letter-spacing: .01em !important; }
  .label, .fcap, .gl .cap, .missing .h, .seg .when, .rem .when, .ev .when, details.help summary, .notes-wait, .linkbtn, .msg .who, .croute { text-transform: none !important; }
  .label, .fcap { font-size: 13px !important; font-weight: 600 !important; }
  .chip, .badge { font-family: var(--body) !important; letter-spacing: .01em !important; text-transform: none !important; font-size: 12px !important; font-weight: 600 !important; }
  .status { font-size: 12px !important; }

  /* numbers: SF Rounded, steady digits */
  .money, .gl .num, .amt, .cc .bal b, .plan .big b, .debtsum b, .receipt .amt, .pleft b, .avatar, .mebtn, .payday text {
    font-family: var(--rounded) !important; letter-spacing: 0 !important; font-variant-numeric: tabular-nums; }
  .cc .nm, .slashmenu .cmd .nm, .cseg button { font-family: var(--display) !important; letter-spacing: 0 !important; }

  /* tab bar: Apple-style labels (sentence case, 10-11pt medium) */
  nav.tabs button { font: 500 11px/1.1 var(--body) !important; letter-spacing: 0 !important; text-transform: none !important; min-height: 50px; }
  nav.tabs button svg { width: 24px !important; height: 24px !important; }

  /* 44 x 44 pt minimum tap targets */
  button, select, input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]) { min-height: 44px; }
  .iconbtn, .mebtn, .vclose, .paybtn, button.ghost:empty { min-width: 44px; }
  .mebtn { min-height: 44px; width: 44px !important; height: 44px !important; }
  /* buttons that hold only an icon keep a centered square look */
  .iconbtn { display: inline-grid; place-items: center; }
  input[type=checkbox], input[type=radio] { min-width: 22px; min-height: 22px; }
  button { font-weight: 600; }

  /* line icons that replace emoji in buttons and labels */
  .hig-i { width: 1.15em; height: 1.15em; display: inline-block; vertical-align: -0.2em; flex: 0 0 auto;
           stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
  button .hig-i:only-child { width: 22px; height: 22px; vertical-align: middle; }

  /* round task checkmarks stay perfect circles; the tap area around them is still 44pt */
  .task .chk { min-height: 26px !important; min-width: 26px !important; position: relative; }
  .task .chk::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; }
  .status { font-size: 11px !important; text-transform: none !important; }
  @media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
