/* Tow Centre Mode 3: Night Board. Every rule is scoped under html.mode-3 so
   this file is inert in Modes 1 and 2. The whole app goes dark: the palette
   variables are redefined and every hardcoded light surface in styles.css
   gets an explicit dark rule, so no screen shows a white panel. */
html.mode-3{
  --paper:#16233c; --wash:#0e1626; --line:#26334d; --ink:#e8eef7; --muted:#9fb0c7;
  --charcoal:#0b1220; --charcoal2:#16233c;
}
html.mode-3 body{background:#0e1626;color:#e8eef7}
html.mode-3 .rail{display:none}
html.mode-3 .main{margin:167px 0 0 0}
html.mode-3 .topbar{background:#0b1220;border-bottom:1px solid #26334d}
html.mode-3 .card{background:#16233c;border-color:#26334d;color:#e8eef7}
html.mode-3 table{background:#16233c;color:#e8eef7}
html.mode-3 th{background:#101a2e;color:#9fb0c7;border-color:#26334d}
html.mode-3 td{border-color:#26334d}
html.mode-3 .job{background:#16233c;border-color:#26334d;color:#e8eef7}
html.mode-3 .rc-item{background:#16233c;border-color:#26334d;color:#e8eef7}
html.mode-3 input,html.mode-3 select,html.mode-3 textarea{background:#101a2e;color:#e8eef7;border-color:#3a4a66}
html.mode-3 .chip{background:#16233c;color:#e8eef7;border-color:#26334d}
html.mode-3 .board .col{background:#101a2e;border-color:#26334d}
html.mode-3 .btn.ghost{background:#16233c;color:#e8eef7;border-color:#26334d}
html.mode-3 .pill{background:#1d2c47;color:#e8eef7;border-color:#26334d}
html.mode-3 .pill.red{background:var(--red);color:#fff;border-color:var(--red)}
html.mode-3 .pill.amber{background:#3a2f10;border-color:#e8cf8f;color:#f5d97a}
html.mode-3 .pill.green{background:#12351f;border-color:#a9d8b2;color:#9fe8ae}
html.mode-3 .error{background:#3a1620;border-color:#e5484d;color:#ffb3ba}
html.mode-3 .notice{background:#12351f;border-color:#2ee06f;color:#9fe8ae}
html.mode-3 .authwrap{background:#0b1220}
html.mode-3 .authcard{background:#16233c;color:#e8eef7}
html.mode-3 .topbar .tb-menu{background:#16233c;color:#e8eef7;border-color:#26334d}
html.mode-3 .topbar .tb-item{color:#e8eef7}
html.mode-3 .topbar .tb-item:hover{background:#1d2c47}
html.mode-3 tr.clickrow:hover td{background:#1d2c47}
html.mode-3 tr.flagfocus td{background:#3a1620}
html.mode-3 .checkline{border-color:#26334d}
html.mode-3 .tabs button{background:#101a2e;color:#e8eef7;border-color:#26334d}
html.mode-3 .tabs button.active{background:#26334d;color:#fff}
html.mode-3 .nb-dot{width:12px;height:12px;border-radius:50%;background:#2ee06f;box-shadow:0 0 8px #2ee06f;flex:none}
html.mode-3 .nb-boardlabel{font-weight:800;letter-spacing:.04em;white-space:nowrap}
html.mode-3 .nb-clock{font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
html.mode-3 .m3-chipbar{position:fixed;top:58px;left:0;right:0;z-index:35;display:flex;gap:8px;overflow-x:auto;padding:8px 10px;background:#0b1220;border-bottom:1px solid #26334d}
html.mode-3 .m3-chip{white-space:nowrap;background:#16233c;color:#e8eef7;border:1px solid #26334d;border-radius:999px;min-height:40px;padding:0 16px;font-weight:700;flex:none}
html.mode-3 .m3-chip.active{background:var(--red);border-color:var(--red);color:#fff}
html.mode-3 .m3-subbar{position:fixed;top:114px;left:0;right:0;z-index:35;display:flex;gap:8px;overflow-x:auto;padding:6px 10px;background:#0e1626}
html.mode-3 .m3-subbar[hidden]{display:none}
html.mode-3 .m3-chips{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:16px}
html.mode-3 .m3-stat{background:#16233c;border:1px solid #26334d;border-radius:16px;padding:14px 18px;min-width:120px}
html.mode-3 .m3-stat b{font-size:1.6rem;display:block;line-height:1.1}
html.mode-3 .m3-stat span{color:#9fb0c7;font-weight:700}
html.mode-3 #m3Map{height:380px;border-radius:12px;border:1px solid #26334d;margin:10px 0;z-index:0}
html.mode-3 .m3-stream-row{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #26334d}
html.mode-3 .m3-stream-time{color:#9fb0c7;white-space:nowrap;font-variant-numeric:tabular-nums}
html.mode-3 .m3-light{display:inline-block;width:16px;height:16px;border-radius:50%;background:#3a4a66;flex:none}
html.mode-3 .m3-light.grey{background:#808b96}
html.mode-3 .m3-light.amber{background:#f0ad1a}
html.mode-3 .m3-light.blue{background:#3fa7e0}
html.mode-3 .m3-car-row{display:flex;gap:12px;align-items:center;background:#16233c;border:1px solid #26334d;border-radius:12px;padding:12px;margin-bottom:8px;cursor:pointer;color:#e8eef7}
html.mode-3 .m3-days{margin-left:auto;font-size:1.3rem;font-weight:800;white-space:nowrap}
html.mode-3 .rc3-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap;background:#16233c;border:1px solid #26334d;border-radius:12px;padding:10px 12px;margin-bottom:8px}
html.mode-3 .rc3-name{font-weight:600;flex:1 1 180px}
html.mode-3 .rc3-light{width:16px;height:16px;border-radius:50%;background:#3a4a66;flex:none}
html.mode-3 .rc3-light.pass{background:#2ee06f}
html.mode-3 .rc3-light.minor{background:#f0ad1a}
html.mode-3 .rc3-light.major{background:#e5484d}
html.mode-3 .rc3-opts{display:flex;gap:6px}
html.mode-3 .rc3-opts button{background:#1d2c47;color:#e8eef7;border:1px solid #26334d;border-radius:999px;min-height:40px;padding:0 14px;font-weight:700}
html.mode-3 .rc3-opts button.sel-pass{background:#12351f;border-color:#2ee06f;color:#9fe8ae}
html.mode-3 .rc3-opts button.sel-minor{background:#3a2f10;border-color:#f0ad1a;color:#f5d97a}
html.mode-3 .rc3-opts button.sel-major{background:var(--red);border-color:var(--red);color:#fff}
html.mode-3 .rc3-panel.minor{background:#2b230d;border-color:#e8cf8f;color:#f5e3b0}
html.mode-3 .rc3-panel.major{background:#33141a;border-color:#e5484d;color:#ffb3ba}
html.mode-3 .rc3-olight{display:inline-block;width:16px;height:16px;border-radius:50%;background:#3a4a66;vertical-align:middle}
html.mode-3 .rc3-olight.on-pass{background:#2ee06f}
html.mode-3 .rc3-olight.on-minor{background:#f0ad1a}
html.mode-3 .rc3-olight.on-major{background:#e5484d}
html.mode-3 .rc3-submit.dim{opacity:.55}
html.mode-3 .rc3-counter{font-size:1.2rem;font-weight:800;margin:0}
