.normal-ledger {
  position: absolute;
  z-index: 6;
  top: calc(var(--safe-t, 0px) + 150px);
  left: max(8px, env(safe-area-inset-left));
  border: 1px solid #ab8763;
  border-radius: 4px;
  padding: 8px 10px;
  background: #211e1aee;
  color: #fff1d8;
  font: 700 12px var(--body);
  pointer-events: auto;
}
.normal-ledger-title { display: flex; align-items: center; gap: 5px; letter-spacing: .035em; }
.normal-ledger-title i { display: inline-flex; width: 14px; height: 14px; }
.normal-ledger-title svg { width: 100%; height: 100%; }
.normal-ledger-balance { display: block; margin-top: 2px; color: #e2c39b; font-size: 10px; }
.pc-wide .normal-ledger { top: calc(var(--safe-t, 0px) + 237px); left: 20px; }
.normal-sheet p { color: #e4d3bb; line-height: 1.45; }
.normal-build-options, .normal-sector-list { display: grid; gap: 7px; }
.normal-sector-list { max-height: 38dvh; overflow: auto; }
.normal-build-options .btn, .normal-sector-list .btn { min-height: 44px; text-align: left; }
.normal-build-options .btn small, .normal-sector-list .btn small { display: block; color: #e2c39b; margin-top: 3px; }
#normal-sector-actions > .btn + .btn { margin-inline-start: 7px; }
@media (max-width: 620px) {
  .normal-ledger { top: calc(var(--safe-t, 0px) + 130px); left: max(55px, env(safe-area-inset-left)); font-size: 11px; padding: 7px 8px; }
  #hud:has(#h-odds:not([hidden])) .normal-ledger { visibility: hidden; }
}
/* Keep a confirmed route in view while the confirmation card is open. */
#modal:has(.normal-route-sheet) { align-items: flex-end; background: #07070726; }
#modal .normal-route-sheet { margin-bottom: max(10px, env(safe-area-inset-bottom)); }

/* Bottom sheets (Gage 11-15, docs/plans/normal-con-style.md section 5): never a centred box, at most 42% of the screen, the map
   not dimmed, so the province you are deciding about stays in view above the sheet. */
#modal:has(.normal-sheet) { align-items: flex-end; justify-content: center; background: transparent; padding: 0; }
#modal .normal-sheet { width: 100%; max-width: 640px; max-height: 42dvh; overflow: hidden; display: flex; flex-direction: column; gap: 0; margin: 0; border: 0; border-top: 1px solid #51463c; border-radius: 0; background: #1b1a18; box-shadow: 0 -3px 0 #0b0b0b, 0 -14px 28px #0009; padding: 10px 12px max(12px, env(safe-area-inset-bottom)); }
.normal-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.normal-head h2 { margin: 0; font: 400 20px/1.05 var(--display); letter-spacing: .04em; color: #f2eee6; }
.normal-head p { margin: 2px 0 0; color: #b3aaa0; font: 600 11px var(--body); display: flex; align-items: center; gap: 8px; }
.normal-head-text { flex: 1; min-width: 0; }
.normal-plate { flex: none; width: 44px; height: 44px; display: grid; place-items: center; background: #121113; border: 2px solid #0b0b0b; outline: 1px solid #51463c; outline-offset: -3px; }
.normal-x { flex: none; width: 36px; height: 36px; border: 1px solid #51463c; background: #121113; color: #eadbc3; font: 400 22px/1 var(--body); }
/* A sheet that shows a building shows its 3D model (NormalModels.thumb): a 56 px plate the picture fills, a one-line title, and
   beside the close button Inspect, which swaps the cards for the detail. Only the economy, province and plot sheets carry .model. */
.normal-plate.model { width: 56px; height: 56px; border: 1px solid #0b0b0b; outline: 1px solid #51463c; outline-offset: -2px; background: radial-gradient(ellipse at 50% 78%, #2a2622, #121113 68%); }
.normal-plate.model > canvas { max-width: 100%; max-height: 100%; object-fit: contain; }
.normal-plate.model + .normal-head-text h2 { display: flex; align-items: center; gap: 8px; white-space: nowrap; overflow: hidden; line-height: 1.2; }
.normal-plate.model + .normal-head-text h2 > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.normal-plate.model + .normal-head-text h2 .normal-pips { flex: none; margin-left: 0; }
.normal-plate.model + .normal-head-text p > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.normal-plate.model + .normal-head-text p .normal-link, .normal-plate.model + .normal-head-text p .normal-chip { flex: none; }
.normal-plate.model ~ .normal-x { width: 40px; height: 40px; }
.normal-i { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 0 9px; font: 400 13px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; }
.normal-plate.model ~ .normal-i { width: auto; }
.normal-i[hidden] { display: none; }
.normal-i .wi { width: 16px; height: 16px; }
.normal-i.on { border-color: #f2eee6; background: #2a2622; color: #f2eee6; }
.normal-head p .bad, #modal .normal-sheet .normal-status.bad { color: #ff8a7c; }
#modal .normal-sheet .normal-status:empty { display: none; }
#modal .normal-sheet:has(.normal-plate.model) .normal-status { text-align: center; }
#modal .normal-sheet .normal-status { margin: 0 0 8px; color: #e4d3bb; font: 600 13px/1.4 var(--body); }
.normal-note { margin: 0 0 8px; color: #b3aaa0; font: 500 12px/1.4 var(--body); }
.normal-pips { display: inline-flex; gap: 3px; }
.normal-pips i { width: 6px; height: 6px; background: #51463c; outline: 1px solid #0b0b0b; }
.normal-pips i.on { background: #f2b705; }
.normal-pips i.add { background: transparent; outline: 1px solid #f2b705; } /* the level being built or upgraded to */
/* Build tiles (NormalHud.plotBody, Gage 11-16: "the actual 3D icons", "everything centred"; build 181: six kinds, two rows of three), each a
   centred stack with fixed row slots (model, name, effect, price) so the four line up whatever they say. */
.normal-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.normal-card { display: grid; grid-template-rows: 72px 16px 15px auto; row-gap: 2px; justify-items: center; align-items: center; min-width: 0; padding: 5px 2px 6px; text-align: center; background: #121113; border: 1px solid #51463c; color: #eadbc3; font: 600 11px/1.2 var(--body); }
.normal-card.on { border-color: #f2eee6; box-shadow: inset 0 0 0 1px #f2eee6; background: #1e1c1a; }
.normal-card b { font: 400 14px/1 var(--display); letter-spacing: .04em; text-transform: uppercase; color: #f2eee6; white-space: nowrap; }
.normal-card-icon { width: 100%; height: 72px; display: grid; place-items: center; }
.normal-card.taken .normal-card-icon { opacity: .6; }
.normal-card.taken b, .normal-card.taken .normal-fx, .normal-card.off b { color: #b3aaa0; }
.normal-card.off:not(.taken) .normal-card-icon { opacity: .85; }
.normal-card-icon > canvas, .normal-lv-pic > canvas, .normal-plot-icon > canvas, .normal-rise > canvas, .normal-inspect-pic > canvas, .normal-row-plots canvas { max-width: 100%; max-height: 100%; object-fit: contain; }
/* An effect: a number behind its glyph, or two words. */
.normal-fx { display: inline-flex; align-items: center; justify-content: center; gap: 3px; min-width: 0; font: 600 11px/1.2 var(--body); color: #e4d3bb; white-space: nowrap; }
.normal-fx i[data-glyph], .normal-fx .wi { display: inline-flex; width: 14px; height: 14px; }
.normal-fx i canvas { width: 14px !important; height: 14px !important; }
/* A price: pairs of icon and number that never part; a pair you cannot pay is red; the time is the quiet one. */
.normal-cost { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1px 5px; color: #eadbc3; font: 700 11px/1.2 var(--body); white-space: nowrap; }
.nc-pair { display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.nc-pair i[data-glyph] { display: inline-flex; width: 14px; height: 14px; margin: 0; }
.nc-pair i canvas { width: 14px !important; height: 14px !important; }
.nc-pair.short { color: #ff8a7c; }
.nc-pair.time { color: #b3aaa0; font-weight: 600; }
.normal-actions { display: flex; gap: 6px; margin-top: 8px; }
.normal-actions .btn { flex: 1; min-height: 44px; }
/* The buttons stay in reach when a sheet's cards are taller than the sheet. */
.normal-sheet .normal-actions { position: sticky; bottom: 0; z-index: 1; margin-top: 2px; padding-top: 6px; background: #1b1a18; }
/* The header and the status line stay put; what is under them scrolls when it is taller than the sheet. */
#normal-body, .normal-sheet .normal-rows { overflow-y: auto; min-height: 0; scrollbar-width: none; }
.normal-sheet > * { flex: none; }
.normal-sheet > #normal-body, .normal-sheet > .normal-rows { flex: 0 1 auto; }
.normal-go { width: 100%; min-height: 44px; }
/* The red button is the one thing that buys: its word, then its price in a dark chip so the coin and crate read on red. */
#normal-go { gap: 4px 10px; flex-wrap: wrap; } /* (by id: the footer's Attack and Raise buttons share .normal-go and are not this session's) */
#normal-go > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
#normal-go > span:first-child .wi { width: 18px; height: 18px; }
#normal-go .normal-cost { flex-wrap: nowrap; gap: 8px; padding: 4px 8px; background: #121113; border: 1px solid #0b0b0b; color: #f2eee6; font: 700 13px/1 var(--body); letter-spacing: 0; text-transform: none; }
#normal-go .nc-pair i[data-glyph] { width: 14px; height: 14px; }
#normal-go .nc-pair i canvas { width: 14px !important; height: 14px !important; }
#normal-go .nc-pair.time { color: #e4d3bb; }
.normal-actions > #normal-go:not(:only-child) { font-size: 19px; padding: 0 8px; }
.normal-actions > #normal-go:not(:only-child) .nc-pair.time { display: none; }
.normal-actions:has(> .normal-short) { flex-wrap: wrap; }
.normal-actions:has(> .normal-short) > .btn { min-height: 38px; }
/* Short of Funding or Materiel (NormalHud.shortRow): what is missing in red, then the gems that buy it, where the button was. */
.normal-short { flex: 1 1 100%; display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; min-height: 50px; }
.normal-need { flex: none; display: inline-flex; align-items: center; gap: 6px; color: #ff8a7c; font: 400 15px/1 var(--display); letter-spacing: .05em; text-transform: uppercase; }
.normal-need .normal-cost { flex-wrap: nowrap; font: 700 12px/1 var(--body); letter-spacing: 0; }
.normal-short .normal-buys { flex: 1; min-width: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; margin: 0; }
.normal-short .normal-note { margin: 0; text-align: center; }
.normal-short.nudge .normal-buy { animation: nb-nudge .45s ease-out; }
@keyframes nb-nudge { 30% { transform: translateY(-3px); filter: brightness(1.35); } }
@media (prefers-reduced-motion: reduce) { .normal-short.nudge .normal-buy { animation: none; } }
.normal-second { background: #2b2f33; }
/* The economy sheet (NormalHud.ledger): two centred stat tiles, each resource with what a day adds and its buy button under it. */
.normal-purse { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; margin: 0 0 8px; }
.normal-stat { display: grid; justify-items: center; gap: 2px; min-width: 0; padding: 7px 6px 3px; background: #121113; border: 1px solid #51463c; }
.normal-stat-n { display: inline-flex; align-items: baseline; gap: 5px; }
.normal-stat-n i[data-glyph] { align-self: center; display: inline-flex; width: 20px; height: 20px; }
.normal-stat-n b { font: 400 24px/1 var(--display); letter-spacing: .02em; color: #f2eee6; font-variant-numeric: tabular-nums; }
.normal-stat-n small { color: #e2c39b; font: 700 11px var(--body); }
.normal-stat .normal-buy { width: calc(100% - 6px); min-height: 40px; }
.normal-stat .normal-note { margin: 4px 0 6px; font-size: 11px; }
.normal-glyph { width: 20px; height: 20px; display: inline-flex; }
/* The whole economy sheet scrolls as one; Inspect swaps the purse and the list for what each resource is. */
.normal-sheet > .normal-scroll { flex: 0 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: none; }
.normal-scroll .normal-rows { overflow: visible; }
.normal-scroll:not(.inspecting) > .normal-inspect, .normal-scroll.inspecting > :not(.normal-inspect) { display: none; }
.normal-scroll .normal-explain { margin: 0; padding: 0; border: 0; background: none; }
.normal-rows { display: grid; gap: 5px; }
.normal-row { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 5px 7px; text-align: left; background: #121113; border: 1px solid #51463c; color: #eadbc3; font: 500 11px var(--body); }
.normal-row-icon { flex: none; width: 28px; height: 28px; }
.normal-row-text { flex: 1; min-width: 0; }
.normal-row b { display: block; font: 400 15px/1.05 var(--display); letter-spacing: .03em; color: #f2eee6; }
.normal-row small { color: #b3aaa0; }
.normal-row.econ { min-height: 50px; padding: 4px 8px; }
.normal-row.econ > b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.normal-row.econ > em { flex: none; color: #ff8a7c; font: 700 10px var(--body); font-style: normal; letter-spacing: .06em; text-transform: uppercase; }
.normal-row.econ .normal-row-icon { width: 40px; height: 36px; }
.normal-row-plots { flex: none; display: flex; justify-content: flex-end; gap: 6px; }
.normal-row-plots > i { display: grid; justify-items: center; gap: 1px; width: 40px; }
.normal-row-plots .normal-pips { gap: 2px; min-height: 4px; }
.normal-row-plots .normal-pips i { width: 4px; height: 4px; }
.normal-orders { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.normal-order { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 4px; min-height: 84px; background: #121113; border: 1px solid #51463c; color: #eadbc3; text-align: center; font: 500 10px/1.2 var(--body); }
.normal-order b { font: 400 14px/1 var(--display); letter-spacing: .03em; color: #f2eee6; }
.normal-order small { color: #b3aaa0; }
.normal-order-icon { width: 32px; height: 32px; }
/* The map stays live above a province or building sheet: a tap on other ground opens that province, a drag still moves the map.
   Only the order-confirm card keeps its backdrop (a tap beside it must not pick something else). */
#modal:has(.normal-sheet:not(.normal-route-sheet)) { pointer-events: none; }
#modal .normal-sheet { pointer-events: auto; }
.normal-head h2 .normal-pips { margin-left: 8px; vertical-align: middle; }
.normal-chip { padding: 1px 5px; border: 1px solid #51463c; color: #f2b705; font: 700 10px/1.3 var(--body); letter-spacing: .08em; text-transform: uppercase; }
.normal-chip.rich { color: #3fc7b8; }
.normal-link { padding: 0; border: 0; background: none; color: #eadbc3; font: inherit; text-decoration: underline; text-underline-offset: 2px; min-height: 24px; }
/* A province's plots (NormalHud.sectorBody): one tile a plot, the model at its level or the pad with its gold plus; the tiles keep
   one width and stand centred as a group (one plot is one centred tile). A word only for what is going on, where the pips were. */
.normal-plots { display: flex; justify-content: center; gap: 6px; }
.normal-plot { position: relative; flex: 0 1 113px; display: grid; grid-template-rows: 64px 16px 8px; row-gap: 2px; justify-items: center; align-items: center; min-width: 0; padding: 5px 3px 6px; text-align: center; background: #121113; border: 1px solid #51463c; color: #eadbc3; font: 600 11px/1.2 var(--body); }
.normal-plot.off { opacity: .55; }
.normal-plot-icon { width: 100%; height: 64px; display: grid; place-items: end center; }
.normal-plot b { font: 400 14px/1 var(--display); letter-spacing: .04em; text-transform: uppercase; color: #f2eee6; white-space: nowrap; }
.normal-plot small { color: #e2c39b; font: 700 10px/1 var(--body); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.normal-plot small.bad { color: #ff8a7c; }
/* A building's sheet: what it does now beside what the next level does. */
.normal-facts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; }
.normal-fact { padding: 6px 8px; background: #121113; border: 1px solid #51463c; min-height: 58px; }
.normal-fact.next { border-color: #7a6a58; }
.normal-fact.off b { color: #f27661; text-decoration: line-through; }
.normal-fact small { display: block; color: #b3aaa0; font: 700 10px var(--body); letter-spacing: .06em; text-transform: uppercase; }
.normal-fact b { display: block; margin-top: 3px; color: #f2eee6; font: 600 12px/1.25 var(--body); }
.normal-bar { height: 8px; margin: 2px 0 8px; background: repeating-linear-gradient(135deg, #121113 0 5px, #2a2622 5px 10px); border: 1px solid #0b0b0b; outline: 1px solid #51463c; }
.normal-bar i { display: block; height: 100%; width: 0; background: #f2b705; }
@media (max-width: 360px) { .normal-facts { grid-template-columns: 1fr; } .normal-orders { grid-template-columns: repeat(2, 1fr); } .normal-i span { display: none; } .normal-plate.model ~ .normal-i { min-width: 40px; } }

/* The one top bar (NormalHud.dayStrip, build 178, docs/plans/normal-clear.md P3): the Reserve, "Day 3 of 12 · 2:41" over
   "9 pts · #61", Funding and Materiel, each with what a day adds. It replaced Blitz's Troops box, land % and clock, the day strip,
   the economy strip, the leaderboard column and the field-army chip in Normal (hidden here, not removed: other code reads them). */
body.normal-ui .hud-troops, body.normal-ui .hud-mid, body.normal-ui #hud-rank, body.normal-ui .nt-army, body.normal-ui #normal-econ { display: none !important; }
body.normal-ui.normal-alone #h-voice { display: none !important; } /* nearby voice only with another person in the match */
body.normal-ui .transmission { top: calc(var(--safe-t, 0px) + 60px); } /* the radio card hangs under the one top bar, never over it (178) */
.normal-top { position: absolute; z-index: 7; top: calc(var(--safe-t, 0px) + 6px); left: max(6px, env(safe-area-inset-left)); right: max(6px, env(safe-area-inset-right)); max-width: 640px; margin: 0 auto; display: flex; align-items: stretch; gap: 3px; padding: 3px; background: #1b1a18f4; border: 1px solid #51463c; box-shadow: 0 2px 0 #0b0b0b; pointer-events: auto; }
.normal-top[hidden] { display: none; }
.normal-top .nt-cell { min-width: 0; min-height: 44px; display: flex; flex-direction: column; justify-content: center; gap: 3px; margin: 0; padding: 3px 7px; background: #121113; border: 1px solid #2f2a25; color: #f2eee6; text-align: left; touch-action: manipulation; }
.normal-top .nt-cell:active { background: #1e1c1a; }
.normal-top .nt-cell b { display: inline-flex; align-items: center; gap: 4px; font: 400 17px/1 var(--display); letter-spacing: .03em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.normal-top .nt-cell small { font: 700 10px/1 var(--body); color: #e2c39b; white-space: nowrap; }
.normal-top .nt-ic { display: inline-flex; flex: none; width: 16px; height: 16px; }
.normal-top .nt-ic .wi, .normal-top .nt-ic canvas, .normal-top .nt-ic img { width: 16px !important; height: 16px !important; }
.normal-top .nt-res { flex: 0 0 auto; }
.normal-top .nt-day { flex: 1 1 auto; align-items: center; text-align: center; }
.normal-top .nt-day b { font-size: 15px; text-transform: uppercase; letter-spacing: .04em; }
.normal-top .nt-day small { font: 400 13px/1 var(--display); letter-spacing: .05em; text-transform: uppercase; color: #f2b705; }
.normal-top .nt-eco { flex: 0 0 auto; flex-direction: row; align-items: center; gap: 9px; }
.normal-top .nt-two { display: flex; flex-direction: column; gap: 3px; }
.normal-top.final { border-color: #e0242d; background: #3a0d10f4; }
.normal-top.final .nt-day b { color: #ff7a6b; }
@media (max-width: 380px) { .normal-top .nt-cell { padding: 3px 5px; } .normal-top .nt-cell b { font-size: 15px; } .normal-top .nt-day b { font-size: 13px; } .normal-top .nt-day small { font-size: 12px; } .normal-top .nt-eco { gap: 6px; } .normal-top .nt-cell small { font-size: 9px; } }

/* The city-fall choice: a sheet that keeps its backdrop (normal-route-sheet) until you choose. */
#modal .normal-fall #normal-fall-time { color: #ff7a6b; font: 400 20px/1 var(--display); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
/* Away and back (docs/plans/normal-v2.md 2.4): standing by after ten minutes without a touch, and the report on return. */
.normal-standby { position: absolute; z-index: 7; left: 50%; top: 42%; transform: translate(-50%, -50%); display: grid; gap: 3px; padding: 10px 14px; text-align: center; background: #1b1a18f2; border: 1px solid #51463c; box-shadow: 0 3px 0 #0b0b0b; color: #eadbc3; font: 600 12px var(--body); pointer-events: none; }
.normal-standby b { font: 400 18px/1 var(--display); letter-spacing: .05em; color: #f2eee6; }
.normal-report-lines { margin: 0 0 6px; padding: 0; list-style: none; display: grid; gap: 4px; }
.normal-report-lines li { padding: 5px 8px; background: #121113; border-left: 3px solid #51463c; color: #eadbc3; font: 500 12px/1.3 var(--body); }
.normal-report-lines li:first-child { border-left-color: #f2b705; }
/* The menu's "Return to your match" line, above PLAY. */
.normal-return { display: grid; width: 100%; gap: 2px; margin: 0 0 8px; padding: 9px 12px; text-align: left; background: #1b1a18; border: 1px solid #f2b705; box-shadow: 0 3px 0 #0b0b0b; color: #eadbc3; font: 600 11px var(--body); }
.normal-return b { font: 400 17px/1 var(--display); letter-spacing: .05em; color: #f2eee6; }
.normal-return small { color: #f2b705; }

/* Plans (M5): Now, Day change, On signal over the draw bar while paths are drawn; the same chips in a sheet (alliance terms). */
.normal-chips { position: absolute; z-index: 7; left: 50%; bottom: calc(var(--safe-b, 0px) + 240px); transform: translateX(-50%); display: flex; align-items: center; gap: 4px; padding: 4px; background: #1b1a18f2; border: 1px solid #51463c; box-shadow: 0 2px 0 #0b0b0b; pointer-events: auto; }
.normal-chips > span { padding: 0 6px; color: #b3aaa0; font: 700 10px var(--body); letter-spacing: .08em; text-transform: uppercase; }
.normal-chips button { min-height: 36px; padding: 0 10px; white-space: nowrap; background: #121113; border: 1px solid #51463c; color: #eadbc3; font: 400 14px var(--display); letter-spacing: .04em; }
.normal-chips button.on { border-color: #f2eee6; box-shadow: inset 0 0 0 1px #f2eee6; color: #f2eee6; }
.normal-chips.in-sheet { position: static; transform: none; margin: 0 0 8px; box-shadow: none; }
.normal-chips.in-sheet button { flex: 1; }
.normal-plan-rows { margin-bottom: 8px; }
.normal-return.ended { border-color: #b3aaa0; }
.normal-return.ended small { color: #eadbc3; }

/* Territories pace picker (js/territories.js choosePace, Gage 11-16): a picture card a choice, the mode's own Home art (MODE_ART). */
.terr-pace-list { display: grid; gap: 8px; margin-top: 10px; }
.terr-pace-card { position: relative; isolation: isolate; display: grid; grid-template-columns: 112px 1fr; align-items: center; gap: 12px; min-height: 84px;
  width: 100%; padding: 8px 12px 8px 8px; color: var(--fg); text-align: left; background: linear-gradient(170deg, #26221d, #141311 70%);
  border: 1px solid color-mix(in srgb, var(--mc) 55%, #7d6a52); box-shadow: 0 3px #070807, inset 0 1px #f2d9a91a; transition: transform .14s; }
.terr-pace-card::before { content: ''; position: absolute; inset: 3px; z-index: -1; pointer-events: none; border: 1px solid #ddc39a12;
  background: radial-gradient(ellipse at 18% 50%, color-mix(in srgb, var(--mc) 30%, transparent), transparent 62%); }
.terr-pace-card:active { transform: translateY(2px) scale(.985); box-shadow: 0 1px #070807; }
.terr-pace-card .mc-art { width: 112px; height: 66px; }
.terr-pace-card .tp-text b { display: block; font: 26px/1 var(--display); letter-spacing: .04em; text-transform: uppercase; color: #f4ead6; }
.terr-pace-card .tp-text small { display: block; margin-top: 5px; font-size: 13px; line-height: 1.3; color: #e2c39b; }
.terr-pace-card.off { min-height: 64px; grid-template-columns: 84px 1fr; background: #141311; }
.terr-pace-card.off .mc-art { width: 84px; height: 48px; opacity: .85; }
.terr-pace-card.off .tp-text b { font-size: 20px; }


/* Normal's own match controls (NormalHud.commandUi, Gage 11-16): no Blitz-style tactic buttons or Hold the Line; Rally beside the
   troop slider; a five-plate command bar; an economy strip under the day strip. body.normal-ui only, so other modes are untouched. */
body.normal-ui #h-tactics, body.normal-ui #h-arsenal, body.normal-ui #h-hold, body.normal-ui #h-hold-tip, body.normal-ui #h-rally, body.normal-ui .normal-ledger { display: none !important; } /* Rally dropped from Normal (Gage 11-16) */
body.normal-ui .dock-row { display: none; }
body.normal-ui .slider-row { gap: 8px; margin-bottom: 6px; }
body.normal-ui .slider-row .rally-btn { width: 52px; height: 44px; margin: 0; flex: none; }
body.normal-ui .slider-row .rally-btn .wi { width: 20px; height: 20px; }
body.normal-ui .slider-row .rally-btn span { font-size: 10px; }
body.normal-ui .slider-row .rally-btn em { top: -10px; right: -6px; font-size: 13px; }
.normal-cmd { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; padding: 0 0 2px; }
.normal-cmd.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.normal-cmd[hidden], .normal-cmd .ncmd[hidden] { display: none; }
.ncmd { position: relative; min-width: 0; height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: #f2eee6; background: linear-gradient(170deg, #2a2722, #141311 75%); border: 1px solid #51463c; box-shadow: 0 2px 0 #070807, inset 0 1px #f2d9a91a;
  font: 400 12px/1 var(--display); letter-spacing: .05em; text-transform: uppercase; touch-action: manipulation; }
.ncmd .wi { width: 24px; height: 24px; }
.ncmd:active { transform: translateY(2px); box-shadow: 0 0 0 #070807; }
.ncmd[data-ncmd="provinces"] { border-color: #8a6a3c; }
.ncmd-n { position: absolute; top: 3px; right: 4px; min-width: 16px; padding: 1px 3px; background: #c8202a; color: #fff; font: 400 11px/14px var(--display); font-style: normal; text-align: center; }
/* the Allies tile carries the hidden Nations button's unread dot (P3), under its red count when offers are waiting */
.ncmd-dot { position: absolute; top: 5px; right: 6px; width: 9px; height: 9px; background: #c8202a; outline: 1px solid #0b0b0b; }
.ncmd-dot[hidden], .ncmd-n:not([hidden]) ~ .ncmd-dot { display: none; }
/* a plate's thin bar along its bottom edge: the Arsenal's charge (an inner <i> whose width the HUD sets) and, since build 181, how far
   the soonest building (Build) or training (Army) is: --k, 0 to 1, on the bar itself. Hidden while nothing is under way. */
.ncmd .ncmd-charge { --k: 0; position: absolute; left: 6px; right: 6px; bottom: 4px; height: 3px; background: linear-gradient(90deg, #f2b705 calc(var(--k) * 100%), #3a342c 0); box-shadow: 0 0 0 1px #0b0b0b; }
.ncmd .ncmd-charge i { display: block; height: 100%; width: 0; background: #f2b705; }
.ncmd.arsenal.ready { border-color: #f2b705; box-shadow: 0 2px 0 #070807, 0 0 10px #f2b70555; }
.ncmd.arsenal.on { border-color: #e0242d; }
.ncmd-row-ic .wi { width: 24px; height: 24px; }
.normal-note { margin: 0 0 10px; font-size: 13px; line-height: 1.4; color: #e4d3bb; }
.normal-note.dim { color: #b3aaa0; }
.normal-draw { width: 100%; margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.normal-draw .wi { width: 20px; height: 20px; }
@media (max-width: 380px) { .ncmd { height: 54px; font-size: 11px; } .ncmd .wi { width: 22px; height: 22px; } }
@media (max-height: 700px) { .ncmd { height: 50px; } }
/* Normal: the big banner ("Capital occupied") sits under the top bar, not behind it (NormalHud.commandUi sets its top). */
body.normal-ui #h-banner { top: calc(var(--safe-t, 0px) + 156px); z-index: 7; }
body.normal-ui #hud > .tacbar { top: calc(var(--safe-t, 0px) + 156px); } /* the stamps (Capital occupied) too */
body.pc-wide.normal-ui #hud > .tacbar { top: calc(var(--safe-t, 0px) + 82px); }
@media (max-height: 700px) { body.normal-ui #h-banner { top: calc(var(--safe-t, 0px) + 150px); font-size: 17px; } body.normal-ui:not(.pc-wide) #hud > .tacbar { top: calc(var(--safe-t, 0px) + 150px); } }
/* Desktop: the troop slider and Rally get their own wider column; the command bar fills the rest. */
@media (min-width: 1000px) and (min-height: 600px) {
  body.pc-wide.normal-ui .dock { grid-template-columns: 340px minmax(0, 1fr); }
  body.pc-wide.normal-ui .dock > .slider-row { grid-column: 1; grid-row: 2; }
  body.pc-wide.normal-ui .dock > .normal-cmd { grid-column: 2; grid-row: 2; }
  body.pc-wide.normal-ui .slider-row .rally-btn { width: 72px; height: 58px; }
}
.pc-wide.normal-ui #h-banner { top: calc(var(--safe-t, 0px) + 82px); }
/* A truce is not an alliance (Gage 11-16): its own pale gold pill. */
.pill.truce { color: #f2d48a; border-color: #8a6a3c; }

/* The selected battalion's orders in the dock (NormalHud.unitBar), in place of the command bar while one is selected. */
.normal-unitbar[hidden] { display: none; }
.normal-unitbar .nu-head { display: flex; align-items: center; gap: 8px; padding: 2px 2px 6px; color: #f2eee6; }
.normal-unitbar .nu-sign { display: inline-flex; width: 22px; height: 22px; }
.normal-unitbar .nu-sign .wi { width: 22px; height: 22px; }
.normal-unitbar .nu-head b { font: 400 17px/1 var(--display); letter-spacing: .04em; text-transform: uppercase; }
.normal-unitbar .nu-head small { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #e2c39b; font: 700 11px var(--body); }
.normal-unitbar .nu-x { width: 36px; height: 32px; display: grid; place-items: center; background: #151417; border: 1px solid #51463c; }
.normal-unitbar .nu-x .wi { width: 16px; height: 16px; }
.normal-unitbar .nu-acts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; padding-bottom: 2px; }
.normal-unitbar .ncmd[data-nunit="attack-move"] .wi { filter: none; }
.normal-unitbar .ncmd.short .ncmd-cost { color: #ff8a7c; }
.ncmd-cost { display: inline-flex; align-items: center; gap: 2px; font: 700 10px var(--body); letter-spacing: 0; text-transform: none; color: #e2c39b; }
.ncmd-cost i { display: inline-flex; width: 12px; height: 12px; }
.ncmd-cost i canvas, .ncmd-cost i svg { width: 12px; height: 12px; }
body.pc-wide.normal-ui .dock > .normal-unitbar { grid-column: 2; grid-row: 2; }
/* What each resource is for (the economy sheet). */
.normal-explain { margin: 8px 0 10px; padding: 8px 10px; background: #151417; border: 1px solid #51463c; }
.normal-explain p { margin: 0 0 6px; font-size: 12px; line-height: 1.4; color: #e4d3bb; }
.normal-explain p:last-child { margin: 0; }
.normal-explain b { color: #f2eee6; margin-right: 3px; }
.normal-explain i[data-glyph], .normal-explain .ne-troops { display: inline-flex; vertical-align: -3px; width: 14px; height: 14px; margin-right: 4px; }
.normal-explain .ne-troops .wi { width: 14px; height: 14px; }
.normal-order small i[data-glyph] { display: inline-flex; vertical-align: -2px; width: 12px; height: 12px; }
/* Finish now with gems (offline). */
.normal-speed { width: 100%; margin: 8px 0; display: flex; align-items: center; justify-content: center; gap: 8px; border-color: #4fd1e8; }
.normal-speed .wi { width: 20px; height: 20px; }
.normal-speed b { font: 400 18px/1 var(--display); color: #a6ecf6; }

/* Gems (NormalHud.gemButtons, refillButton): Speed up and Complete now, Refill now. */
.normal-gems { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; margin: 8px 0 0; }
.normal-rush { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; min-height: 58px; padding: 6px 4px; border-color: #4fd1e8; text-transform: none; }
.normal-rush.half { border-color: #2a9cb5; }
.normal-rush > span { font: 400 15px/1 var(--display); letter-spacing: .05em; text-transform: uppercase; }
.normal-rush .ng-price { display: inline-flex; align-items: center; gap: 4px; font: 400 18px/1 var(--display); color: #a6ecf6; }
.normal-rush .ng-price .wi { width: 16px; height: 16px; }
.normal-rush small { display: inline-flex; align-items: center; gap: 3px; font: 600 10px/1.2 var(--body); letter-spacing: 0; color: #b8d8de; font-variant-numeric: tabular-nums; }
.normal-rush small i[data-glyph] { display: inline-flex; width: 11px; height: 11px; }
.normal-rush small i canvas { width: 11px !important; height: 11px !important; }
.normal-rush .ng-left { position: absolute; top: 3px; right: 5px; color: #b8d8de; font: 700 10px/1 var(--body); font-style: normal; letter-spacing: 0; text-transform: none; }
/* The model going up, in the body of a plot under construction (NormalHud.risePlot). */
.normal-rise { width: 108px; height: 84px; margin: 0 auto 6px; display: grid; place-items: end center; border: 1px solid #0b0b0b; outline: 1px solid #51463c; outline-offset: -2px; background: radial-gradient(ellipse at 50% 80%, #2a2622, #121113 70%); }
.normal-speed { display: flex; align-items: center; gap: 8px; text-align: left; border-color: #4fd1e8; }
.normal-speed span { flex: 1; min-width: 0; font: 400 15px/1.1 var(--display); text-transform: uppercase; }
.normal-speed span small { display: block; margin-top: 2px; font: 600 10px var(--body); text-transform: none; color: #b8d8de; }
.normal-speed small i[data-glyph] { display: inline-flex; vertical-align: -2px; width: 11px; height: 11px; }
.normal-speed.half { border-color: #2a9cb5; }
.normal-speed.refill { width: 100%; margin-top: 8px; }
.nu-gems { color: #a6ecf6; font: 400 12px var(--display); }
.ncmd[data-nunit="refill"] { border-color: #2a9cb5; }
.ncmd[data-nunit="refill"].short > span { color: #8d857b; } /* (a dimmed word, never an opacity on a dock button: review G8) */

/* Inspect (NormalHud.inspect, the header's button): the detail that stands where the cards were while it is on. */
.normal-inspect { margin: 0 0 8px; padding: 8px 10px; background: #151417; border: 1px solid #51463c; font: 500 12px/1.35 var(--body); color: #e4d3bb; }
.normal-inspect[hidden] { display: none; }
.normal-inspect p { margin: 0 0 6px; }
.normal-inspect p:last-child { margin: 0; }
.normal-inspect p > b { margin-right: 6px; font: 400 14px/1 var(--display); letter-spacing: .04em; text-transform: uppercase; color: #f2eee6; }
.normal-inspect ul { margin: 0; padding: 0; list-style: none; }
.normal-inspect li { display: flex; align-items: center; gap: 8px; min-height: 26px; padding: 3px 0; border-top: 1px solid #2a2622; }
.normal-inspect li > span:not([class]) { flex: 1; min-width: 0; }
.normal-inspect li.on > span:not([class]) { color: #f2eee6; }
.normal-inspect li .normal-pips { flex: none; }
.normal-inspect li .normal-cost { flex: none; flex-wrap: nowrap; gap: 5px; }
.normal-inspect li small { flex: none; width: 32px; color: #b3aaa0; font: 700 10px var(--body); white-space: nowrap; text-align: right; }
.normal-inspect .normal-cost { justify-content: flex-start; min-width: 112px; }
.normal-inspect .kinds li > b { flex: none; width: 50px; font: 400 14px/1 var(--display); letter-spacing: .04em; text-transform: uppercase; color: #f2eee6; }
.normal-inspect-pic { flex: none; width: 36px; height: 28px; display: grid; place-items: center; }

/* Drawing a route (NormalHud.unitBar while Move or Attack is on): Undo, Clear, Send. */
.normal-unitbar .nu-plan { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 5px; padding-bottom: 2px; }
.normal-unitbar .nu-plan[hidden], .normal-unitbar .nu-acts[hidden] { display: none; }
/* (Send's red-lit plate is with the dock's plates below: build 181) */

/* The level strip (NormalHud.plotBody): a building's three levels as their models at one scale, on one ground line. A tap shows
   that level in place on the map (the eye; the cream frame and "On map" mark the one being shown). Only the next level has a price. */
.normal-lvs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.normal-lv { position: relative; display: grid; grid-template-rows: 72px 8px 15px 30px; row-gap: 3px; justify-items: center; align-items: center; min-width: 0; padding: 5px 3px; text-align: center; background: #121113; border: 1px solid #51463c; color: #eadbc3; font: 600 11px/1.2 var(--body); }
.normal-lv.now { background: #1e1c1a; }
.normal-lv.past > :not(.normal-eye):not(.normal-lv-pic) { opacity: .6; }
.normal-lv.later .normal-cost, .normal-lvs.cut .normal-cost { opacity: .5; }
.normal-lv.on { border-color: #f2eee6; box-shadow: inset 0 0 0 1px #f2eee6; }
.normal-lv-pic { width: 100%; height: 72px; display: grid; place-items: end center; }
.normal-lv-foot { display: grid; place-items: center; min-height: 30px; }
.normal-lv em { display: inline-flex; align-items: center; gap: 3px; font: 400 14px/1 var(--display); font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: #b3aaa0; }
.normal-lv em.now, .normal-lv em.onmap { color: #f2eee6; }
.normal-lv em .wi { width: 13px; height: 13px; }
.normal-eye { position: absolute; top: 3px; right: 3px; display: inline-flex; }
.normal-eye .wi { width: 16px; height: 16px; }
/* Damaged: what it is, an arrow, what the repair gives back. */
.normal-mend { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; }
.normal-mend .normal-lv { grid-template-rows: 72px 8px 15px; }
.normal-lv.bad em { color: #ff8a7c; }
.normal-arrow { display: inline-flex; width: 18px; height: 18px; }

/* Tactics in the Arsenal sheet (NormalHud.arsenalSheet). */
.normal-tac .normal-row-icon .wi { width: 26px; height: 26px; }
.normal-tac { border-left: 3px solid var(--ab, #51463c); }
.normal-tac.off { opacity: .6; }

/* Buying Funding or Materiel with gems (NormalHud.buyRow): what you get, icon first, then the gem right beside its price. */
.normal-buys { display: grid; gap: 6px; margin: 8px 0; }
.normal-buy { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; padding: 0 8px; border-color: #4fd1e8; text-transform: none; letter-spacing: 0; }
.normal-buy .nb-res { display: inline-flex; align-items: center; gap: 2px; font: 400 17px/1 var(--display); color: #f2eee6; }
.normal-buy .nb-res i { display: inline-flex; width: 16px; height: 16px; }
.normal-buy .nb-price { display: inline-flex; align-items: center; gap: 3px; padding: 3px 6px; background: #0e1a1d; border: 1px solid #0b0b0b; font: 400 16px/1 var(--display); color: #a6ecf6; }
.normal-buy .nb-price .wi { width: 15px; height: 15px; }

/* Rule sheets (city fall, leave, alliance offer, the return report; Gage 11-16: "less text everywhere"): a number behind its icon
   over two or three words, in the order of the buttons under it. The rule itself is behind the header's "?" (NormalHud.helpButton),
   which swaps the tiles for the text the way Inspect does (.normal-scroll.inspecting). */
.normal-head .normal-q { width: 40px; height: 40px; padding: 0; font: 400 22px/1 var(--display); letter-spacing: 0; }
.normal-head .normal-q ~ .normal-x { width: 40px; height: 40px; }
.normal-facts.normal-choice { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.normal-choice .normal-fact { display: grid; justify-items: center; align-content: center; gap: 4px; min-width: 0; min-height: 56px; padding: 6px 4px; text-align: center; }
.normal-choice .normal-fact b { display: inline-flex; align-items: center; justify-content: center; gap: 4px; max-width: 100%; margin: 0; font: 400 21px/1 var(--display); letter-spacing: .03em; text-transform: uppercase; color: #f2eee6; font-variant-numeric: tabular-nums; white-space: nowrap; }
.normal-choice .normal-fact b .wi, .normal-choice .normal-fact b i[data-glyph] { display: inline-flex; flex: none; width: 18px; height: 18px; }
.normal-choice .normal-fact b i canvas { width: 18px !important; height: 18px !important; }
.normal-choice .normal-fact span { max-width: 100%; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; text-wrap: balance; color: #e4d3bb; font: 600 12px/1.2 var(--body); } /* (a long province name takes a second line) */
.normal-tac small { font-size: 11px; } /* (the Arsenal's rows: "Ready · lasts 60s, recharges in 8 min" was 9 px) */
#modal .normal-sheet .normal-status.normal-warn { margin: 6px 0 0; text-align: center; text-wrap: balance; } /* (a warning that cannot wait: over the buttons, outside the box the "?" swaps) */
.normal-inspect.normal-help p { font-size: 13px; color: #e4d3bb; } /* (a sheet's paragraphs are 15 px: these have to fit beside a countdown and two buttons) */
#modal .normal-sheet .normal-count { display: flex; align-items: center; justify-content: center; gap: 6px; }
.normal-count .nc-pair { gap: 4px; }
.normal-actions .btn.normal-two { flex-direction: column; gap: 2px; padding: 4px 6px; }
.normal-two small { font: 600 11px/1.1 var(--body); letter-spacing: 0; text-transform: none; color: inherit; opacity: .85; white-space: nowrap; }
.normal-report-lines:empty { display: none; }
.normal-report-nums { display: flex; justify-content: flex-start; gap: 4px 14px; margin: 2px 0 6px; padding: 0 2px; font-size: 13px; }
.normal-report-nums .nc-pair { gap: 4px; }
.normal-report-nums .wi, .normal-report-nums .nc-pair i[data-glyph] { width: 16px; height: 16px; }
.normal-report-nums .nc-pair i canvas { width: 16px !important; height: 16px !important; }
.normal-report .normal-note { margin: 0 0 6px; font-size: 12px; }

/* A short phone (667 px tall and the like): smaller model boxes and no time row on the build tiles (the red button carries it once
   a tile is picked), so every sheet stays inside its 42%. Kept after every rule it overrides: the same weight, so the later one wins. */
@media (max-height: 700px) {
  .normal-card { grid-template-rows: 52px 16px 15px auto; } .normal-card-icon { height: 52px; } .normal-card .nc-pair.time { display: none; }
  .normal-lv { grid-template-rows: 48px 8px 15px 30px; } .normal-lv-pic { height: 48px; }
  .normal-mend .normal-lv { grid-template-rows: 56px 8px 15px; } .normal-mend .normal-lv-pic { height: 56px; }
  .normal-plot { grid-template-rows: 48px 16px 8px; } .normal-plot-icon { height: 48px; }
  .normal-rise { width: 96px; height: 58px; }
  .normal-inspect { padding: 6px 10px; } .normal-inspect p { margin-bottom: 4px; } .normal-inspect li { min-height: 22px; padding: 2px 0; }
  .normal-report-lines li { padding: 3px 8px; } .normal-inspect.normal-help p { font-size: 12px; }
}
/* Room to spare (a tablet, a laptop: the sheet is 640 px wide): bigger models and icons. */
@media (min-width: 700px) and (min-height: 701px) {
  .normal-card { grid-template-rows: 96px 16px 16px auto; } .normal-card-icon { height: 96px; }
  .normal-lv { grid-template-rows: 96px 8px 16px 30px; } .normal-lv-pic { height: 96px; }
  .normal-mend .normal-lv { grid-template-rows: 96px 8px 16px; }
  .normal-plot { flex-basis: 150px; grid-template-rows: 80px 16px 10px; } .normal-plot-icon { height: 80px; }
  .normal-rise { width: 132px; height: 96px; }
  .nc-pair i[data-glyph], .normal-fx i[data-glyph], .normal-fx .wi { width: 16px; height: 16px; }
  .nc-pair i canvas, .normal-fx i canvas { width: 16px !important; height: 16px !important; }
  .normal-card, .normal-lv, .normal-fx, .normal-cost { font-size: 12px; }
}

/* Plain words under every plate and order (Gage 11-16). */
.ncmd .ncmd-line { font: 600 9px/1.1 var(--body); color: #b3aaa0; text-transform: none; letter-spacing: 0; text-align: center; padding: 0 2px; }
.ncmd { gap: 2px; }
@media (max-width: 380px) { .ncmd .ncmd-line { font-size: 8px; } }
@media (max-height: 700px) { .ncmd .ncmd-line { display: none; } }
/* The guide (NormalHud.guide, build 178 P7): a short card near the top, under the top bar (its top is set by the guide: just above
   the dock when the control it points at is up there), clear of the left column of buttons. Hidden under the odds card or a sheet. */
.normal-guide { position: absolute; z-index: 30; left: 50%; transform: translateX(-50%); top: calc(var(--safe-t, 0px) + 64px); bottom: auto; width: min(320px, calc(100vw - 112px));
  padding: 9px 11px 8px; background: #1b1a18f5; border: 1px solid #c8202a; box-shadow: 0 4px 0 #0b0b0b; color: #f2eee6; pointer-events: auto; }
.normal-guide[hidden] { display: none; }
.normal-guide small { display: block; font: 700 10px var(--body); color: #e0242d; text-transform: uppercase; letter-spacing: .06em; }
.normal-guide b { display: block; margin: 2px 0 3px; font: 400 18px/1 var(--display); text-transform: uppercase; }
.normal-guide p { margin: 0 0 6px; font-size: 13px; line-height: 1.35; color: #e4d3bb; }
.normal-guide .btn.small { min-height: 44px; font-size: 16px; margin: 0; }
.pc-wide .normal-guide { width: min(360px, calc(100vw - 32px)); }
.normal-guide div { display: flex; justify-content: space-between; gap: 8px; }
.normal-guide-ring { position: fixed; z-index: 29; border: 2px solid #f2b705; box-shadow: 0 0 0 4px #f2b70533, 0 0 16px #f2b70588; pointer-events: none; animation: ng-pulse 1.2s ease-in-out infinite; }
.normal-guide-ring[hidden] { display: none; }
@keyframes ng-pulse { 50% { box-shadow: 0 0 0 7px #f2b70522, 0 0 22px #f2b705aa; } }
@media (prefers-reduced-motion: reduce) { .normal-guide-ring { animation: none; } }

/* Polish (Nov 16): a price is the icon then its number, never squeezed; the Arsenal plate's words clear its charge bar. */
.ncmd-cost, .normal-order small { display: inline-flex; align-items: center; gap: 3px; flex-wrap: wrap; white-space: nowrap; }
.ncmd-cost i[data-glyph], .normal-order small i[data-glyph] { display: inline-flex; width: 13px; height: 13px; margin-left: 4px; }
.ncmd-cost i[data-glyph]:first-child, .normal-order small i[data-glyph]:first-child { margin-left: 0; }
.ncmd-cost i canvas, .normal-order small i canvas { width: 13px !important; height: 13px !important; }
.normal-card em { display: inline-flex; align-items: center; gap: 3px; font: 700 10px/1.2 var(--body); font-style: normal; letter-spacing: .04em; text-transform: uppercase; color: #b3aaa0; }
.normal-card em .wi { width: 12px; height: 12px; }
.ncmd.arsenal { padding-bottom: 8px; }
.ncmd .ncmd-charge { bottom: 3px; }

/* ==== One troop system (docs/plans/normal-one-system.md 11) ==== begin : battalions are the army. In Normal there is no troop slider, no Blitz
   attack choices and no army chips; the dock shows the selected battalions and the odds bar is the target strip. Every rule is
   under body.normal-ui or a class only Normal's screens use, so other modes are untouched. */
body.normal-ui .slider-row, body.normal-ui #h-ops { display: none !important; }
body.pc-wide.normal-ui .dock { grid-template-columns: minmax(0, 1fr); }
body.pc-wide.normal-ui .dock > .normal-cmd, body.pc-wide.normal-ui .dock > .normal-unitbar { grid-column: 1; grid-row: 2; }
/* the selected battalions in the dock (NormalHud.unitBar, build 178 P6): the head says what is selected, one battalion (strength,
   size pips, how full, what it does, "2 of 5" and Next) or several ("3 battalions" and a chip each with its drop cross); then only the
   orders that can act, each with its amount or, dimmed, the reason under it. While a target is aimed on a phone the sword docks at
   the right end (Hud.placeSword) and the orders leave it room (.docked). */
.normal-unitbar .nu-bar, .normal-unit-row .nu-bar { display: block; flex: 1; min-width: 36px; max-width: 110px; height: 5px; background: #3a342c; }
.normal-unitbar .nu-bar i, .normal-unit-row .nu-bar i { display: block; height: 100%; width: 0; background: #edb64c; }
.normal-unitbar .nu-head { gap: 6px; min-height: 38px; }
.normal-unitbar .nu-one, .normal-unitbar .nu-many { flex: 1; min-width: 0; display: flex; align-items: center; gap: 7px; }
.normal-unitbar .nu-one[hidden], .normal-unitbar .nu-many[hidden], .normal-unitbar .nu-next[hidden], .normal-unitbar .nu-hint[hidden] { display: none; }
.normal-unitbar .nu-one small { flex: 2; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #b3aaa0; font: 500 11px var(--body); }
.normal-unitbar .nu-many b { flex: none; font: 400 15px/1 var(--display); letter-spacing: .04em; text-transform: uppercase; }
.nu-size { display: inline-flex; flex: none; align-items: center; gap: 2px; font-style: normal; }
.nu-size i { width: 5px; height: 5px; background: #f2b705; outline: 1px solid #0b0b0b; }
.nu-size.big { padding: 1px 4px; background: #f2b705; color: #0b0b0b; font: 400 12px/1 var(--display); }
.normal-unitbar .nu-chips { flex: 1; min-width: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.normal-unitbar .nu-chips::-webkit-scrollbar { display: none; }
.normal-unitbar .nu-chip { flex: none; display: inline-flex; align-items: center; gap: 4px; min-height: 36px; margin: 0; padding: 0 6px 0 8px; background: #121113; border: 1px solid #51463c; color: #f2eee6; font: 400 15px/1 var(--display); }
.normal-unitbar .nu-chip b { font: inherit; }
.normal-unitbar .nu-chip .wi { width: 12px; height: 12px; opacity: .8; }
.normal-unitbar .nu-next { flex: none; display: inline-flex; align-items: center; gap: 4px; min-height: 36px; margin: 0; padding: 0 6px 0 9px; background: #151417; border: 1px solid #51463c; color: #eadbc3; font: 400 13px/1 var(--display); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.normal-unitbar .nu-next[disabled] { color: #8d857b; }
.normal-unitbar .nu-x { height: 36px; }
.nu-svg { display: inline-flex; flex: none; }
.nu-svg svg { display: block; width: 100%; height: 100%; }
.normal-unitbar .nu-next .nu-svg { width: 14px; height: 14px; }
.normal-unitbar .ncmd .nu-svg { width: 24px; height: 24px; color: #f2eee6; }
.normal-unitbar .nu-acts { display: flex; gap: 5px; min-height: 58px; }
.normal-unitbar .nu-acts .ncmd { flex: 1; min-width: 0; }
.normal-unitbar .nu-acts .ncmd[hidden] { display: none; }
.normal-unitbar .nu-hint { flex: 1; align-self: center; text-align: center; color: #b3aaa0; font: 600 12px/1.3 var(--body); }
.normal-unitbar.docked .nu-acts { padding-right: 70px; min-height: 62px; }
/* (an order that is on, and one that cannot act, are plates like the dock's: the build 180 block below, widened in build 181) */
.normal-unitbar .ncmd-line { min-height: 10px; max-width: 100%; color: #edb64c; font: 700 10px/1.05 var(--body); letter-spacing: 0; text-transform: none; white-space: normal; text-align: center; }
.normal-unitbar .ncmd-line:empty { display: none; }
/* a short screen (700 px and under): smaller icons, so the reason still fits under the word */
@media (max-height: 700px) {
  .normal-unitbar .nu-acts { min-height: 50px; }
  .normal-unitbar .nu-acts .ncmd .wi, .normal-unitbar .ncmd .nu-svg { width: 18px; height: 18px; }
  .normal-unitbar .nu-acts .ncmd .ncmd-line { display: block; font-size: 9px; } /* (the command bar's captions are hidden there; these are amounts and reasons) */
  .normal-unitbar .nu-acts .ncmd .ncmd-line:empty { display: none; }
  .normal-unitbar .nu-head { min-height: 34px; padding-bottom: 4px; }
}
/* the sword docked at the right end of the unit bar (P11): 64 px, its word under it */
body.normal-ui .sword.pop.docked { width: 64px; height: 64px; z-index: 9; }
body.normal-ui .sword.pop.docked span { font-size: 12px; }
/* the target strip (NormalHud.renderOdds in #h-odds) */
.oddsbar .ob-open { background: none; border: 0; padding: 0; color: inherit; text-align: left; }
.oddsbar .ob-eta { display: inline-flex; align-items: center; gap: 3px; margin-left: auto; font: 400 14px/1 var(--display); color: #eadbc3; }
.oddsbar .ob-eta .wi { width: 13px; height: 13px; }
.oddsbar .nob-eq { display: flex; gap: 4px; margin-top: 5px; }
.oddsbar .nob-eq > button { flex: 1; min-width: 0; min-height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 0 6px; background: #121113; border: 1px solid #51463c; color: #b3aaa0; font: 400 14px/1 var(--display); letter-spacing: .04em; }
.oddsbar .nob-eq > button .wi { width: 16px; height: 16px; }
.oddsbar .nob-eq > button.on { border-color: #f2eee6; box-shadow: inset 0 0 0 1px #f2eee6; color: #f2eee6; }
/* the Army sheet (NormalHud.armySheet, build 178 P5): its first row is the Reserve and Raise; the rows scroll under it. It is kept up
   to date in place, so a Raise never closes it. */
.normal-sheet > .normal-army { flex: 0 1 auto; min-height: 0; display: flex; flex-direction: column; }
.normal-army > .normal-rows { flex: 0 1 auto; min-height: 0; overflow-y: auto; }
.normal-plate .wi { width: 28px; height: 28px; }
.normal-army-top { display: flex; align-items: stretch; gap: 8px; margin-bottom: 8px; }
.normal-army-top .na-home { flex: none; display: grid; align-content: center; gap: 3px; min-width: 92px; padding: 4px 9px; background: #121113; border: 1px solid #51463c; color: #f2eee6; }
.normal-army-top .na-home small { color: #b3aaa0; font: 700 10px/1 var(--body); letter-spacing: .06em; text-transform: uppercase; }
.normal-army-top .na-home b { font: 400 24px/1 var(--display); font-variant-numeric: tabular-nums; }
.normal-army-top .na-home em { color: #e2c39b; font: 700 11px/1 var(--body); font-style: normal; }
.normal-army-top .normal-raise { flex: 1; min-width: 0; margin: 0; }
/* the Raise button, on the Army sheet and a city's or Depot's province sheet: "Raise 48k" over one line from canRaise; online, a
   count of the taps waiting ("3 more") in its corner, and stripes while the answer is on its way */
.btn.normal-raise { position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 56px; padding: 4px 8px; }
.normal-raise .nr-main { display: inline-flex; align-items: center; gap: 6px; font: 400 20px/1 var(--display); letter-spacing: .04em; }
.normal-raise .nr-main .wi { width: 18px; height: 18px; }
.normal-raise .nr-size { font: inherit; color: #ffe08a; }
.normal-raise .nr-line { max-width: 100%; font: 600 11px/1.15 var(--body); letter-spacing: 0; text-transform: none; color: #fff3e0; white-space: normal; text-align: center; }
.normal-raise .nr-more { position: absolute; top: -8px; right: -4px; padding: 2px 5px; background: #f2b705; color: #0b0b0b; box-shadow: 0 2px 0 #0b0b0b; font: 400 13px/1 var(--display); font-style: normal; text-transform: uppercase; }
.normal-raise .nr-more[hidden] { display: none; }
.normal-raise.wait { background-image: repeating-linear-gradient(135deg, #0000 0 8px, #0000003d 8px 16px); background-size: 23px 23px; animation: nr-wait .7s linear infinite; }
@keyframes nr-wait { to { background-position: 23px 0; } }
@media (prefers-reduced-motion: reduce) { .normal-raise.wait { animation: none; } }
.btn.normal-raise[disabled] { opacity: 1; background: #2a2622; color: #b3aaa0; box-shadow: none; }
.btn.normal-raise[disabled] .nr-size { color: #b3aaa0; }
.btn.normal-raise[disabled] .nr-line { color: #ff8a7c; }
.normal-unit-row .normal-row-text { display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; row-gap: 2px; }
.normal-unit-row .normal-row-text small { flex-basis: 100%; }
@media (max-height: 700px) { .btn.normal-raise { min-height: 50px; } .normal-raise .nr-main { font-size: 18px; } }
.normal-actions .btn > .wi { width: 18px; height: 18px; margin-right: 6px; vertical-align: -3px; }
/* ==== One troop system ==== end */

/* ==== Build 178, Normal made clear (docs/plans/normal-clear.md 5, 6, P3, P7, P8, P10) ==== */
/* the odds card keeps one line: why the order cannot go, or "Tap again to betray them." It stays until it changes and wraps, on
   phones too (style.css hides the Blitz verdict on a portrait phone) */
body.normal-ui .oddsbar .ob-verdict { animation: none; max-height: none; white-space: normal; color: #f2d48a; }
body.normal-ui .oddsbar .ob-verdict:empty { display: none; }
@media (orientation: portrait) {
  body.normal-ui:not(.pc-wide) .oddsbar .ob-verdict { display: block; max-height: none; margin-top: 2px; font-size: 11px; line-height: 1.25; }
  /* no leaderboard column on the right in Normal: the card takes the room, so a province's name reads whole */
  body.normal-ui:not(.pc-wide) .oddsbar { width: min(300px, calc(100vw - 104px)); }
  body.normal-ui:not(.pc-wide) .oddsbar .ob-name { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
/* the day sheet (NormalHud.daySheet): the standings by points (the leaderboard's bright and dim rule), then what the next day brings */
.normal-standings { margin: 0 0 8px; padding: 0; list-style: none; display: grid; gap: 3px; }
.normal-standings li { display: flex; align-items: center; gap: 8px; min-height: 30px; padding: 2px 8px; background: #121113; border: 1px solid #2f2a25; color: #f2eee6; font: 400 15px/1 var(--display); letter-spacing: .03em; }
.normal-standings li.bot { color: #b3aaa0; }
.normal-standings li.real .nds-flag { outline: 2px solid #fff; }
.normal-standings li.me { border-color: #f2b705; color: #f2b705; }
.normal-standings .nds-rank { flex: none; width: 34px; color: #b3aaa0; font-size: 13px; }
.normal-standings .nds-flag { flex: none; width: 20px; height: 13px; outline: 1px solid #0b0b0b; }
.normal-standings b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: inherit; text-transform: uppercase; }
.normal-standings em { flex: none; font-style: normal; }
.nds-next { margin: 0 0 8px; padding: 6px 9px; background: #151417; border: 1px solid #51463c; }
.nds-next > b { display: block; margin-bottom: 4px; font: 400 14px/1 var(--display); letter-spacing: .05em; text-transform: uppercase; color: #f2eee6; }
.nds-next ul, .nds-pacts { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.nds-next li, .nds-pacts li { display: flex; align-items: center; gap: 6px; color: #e4d3bb; font: 600 12px/1.3 var(--body); }
.nds-next li .wi, .nds-pacts li .wi { flex: none; width: 16px; height: 16px; }
.nds-next .nc-pair { color: #f2eee6; font: 700 12px var(--body); }
.nds-next .nc-pair i[data-glyph] { width: 14px; height: 14px; }
.nds-pacts { margin-bottom: 4px; }
.normal-head p #nds-in { font: 700 11px var(--body); color: #f2eee6; font-variant-numeric: tabular-nums; }
/* what a province makes (NormalHud.makesRow): the valuable's icon, its yield a day, "x2 Factory" */
.normal-makes { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 8px; margin: 0 0 8px; padding: 5px 8px; background: #121113; border: 1px solid #51463c; }
.normal-makes b { font: 400 17px/1 var(--display); letter-spacing: .03em; color: #f2eee6; text-transform: uppercase; }
.normal-makes small { color: #e2c39b; font: 600 11px var(--body); }
.normal-makes.cut b { color: #8d857b; }
.normal-makes .normal-chip { color: #f2b705; }
.nv-ic { display: inline-flex; flex: none; width: 14px; height: 14px; }
.nv-ic .wi, .nv-ic canvas, .nv-ic img { width: 100% !important; height: 100% !important; }
.normal-makes .nv-ic { width: 18px; height: 18px; }
.normal-row-val { flex: none; display: inline-flex; align-items: center; gap: 3px; color: #e2c39b; font: 400 14px/1 var(--display); letter-spacing: .02em; }
.normal-row-val.off { color: #8d857b; }
.normal-card .normal-fx .nv-ic, .normal-lv .normal-fx .nv-ic { width: 14px; height: 14px; }
.normal-makes .nm-pts { color: #b3aaa0; font: 600 11px var(--body); font-style: normal; }
.normal-makes .nm-pts::before { content: '·'; margin-right: 8px; color: #6d655c; }
@media (max-height: 700px) { .normal-makes { padding: 3px 8px; margin-bottom: 6px; } .normal-makes b { font-size: 15px; } }
/* a short phone (667 px): the city's sheet with its Raise and the day sheet with its six rows and what the next day brings stay inside
   the 42% (after the rules they override: same weight, the later one wins) */
@media (max-height: 700px) {
  .btn.normal-raise { min-height: 46px; padding: 3px 8px; }
  .normal-standings { gap: 2px; margin-bottom: 6px; }
  .normal-standings li { min-height: 24px; padding: 1px 8px; font-size: 13px; }
  .normal-standings .nds-flag { width: 18px; height: 12px; }
  .nds-next { padding: 4px 8px; margin-bottom: 6px; }
}
/* a capture's one message carries the valuable's icon (NormalHud.captureEvent) */
.toast-ic { display: inline-flex; width: 20px; height: 20px; margin-right: 6px; vertical-align: -4px; }
.toast-ic .wi, .toast-ic canvas, .toast-ic img { width: 20px !important; height: 20px !important; }

/* Build 179 (docs/plans/normal-179.md S7): Normal's camera buttons in the left column carry their word (Country, Zoom in / Zoom out,
   North); the word shows in Normal only. */
.hud-btn .hud-cap { display: none; }
body.normal-ui #hud-side .hud-btn .hud-cap { display: block; position: absolute; left: -4px; right: -4px; bottom: 2px; font: 400 9px/1 var(--display); letter-spacing: .02em; color: #eadbc3; text-align: center; white-space: nowrap; pointer-events: none; text-shadow: 0 1px 0 #0b0b0b; }
body.normal-ui #hud-side #h-center .wi, body.normal-ui #hud-side .normal-cam .wi { width: 22px; height: 22px; margin-bottom: 9px; }
body:not(.normal-ui) .normal-cam { display: none; }
.normal-cam[hidden] { display: none; }
/* Build 179 (S1): the Build sheet, a row a province */
.normal-build .normal-build-row { margin: 0 0 10px; }
.normal-build .nb-head { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font: 400 15px/1.1 var(--display); color: #eadbc3; }
.normal-build .nb-head small { margin-left: auto; color: #f2b705; font: 400 12px/1 var(--display); }
.normal-build .nb-head em { color: #ff6a5c; font-style: normal; font-size: 12px; }
.normal-build .normal-build-row.cut { opacity: .6; }
.nb-cost { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; color: #eadbc3; }
.normal-plans-btn { margin-left: auto; min-height: 36px; padding: 0 10px; display: inline-flex; align-items: center; gap: 4px; }
/* Build 179 (S5): Split's three shares on the unit bar */
.nu-split { display: flex; align-items: center; gap: 6px; padding: 2px 0 2px; }
.nu-split[hidden] { display: none; }
.nu-split .nu-split-t { font: 400 13px/1 var(--display); color: #eadbc3; padding: 0 4px; white-space: nowrap; }
.nu-split .ncmd { flex: 1 1 0; height: 54px; }
.nu-split .ncmd b { font: 400 12px/1 var(--display); color: #f2b705; }
.nu-split-x { width: 40px; height: 54px; display: grid; place-items: center; background: #1b1a18; border: 1px solid #51463c; }
.nu-acts[hidden] { display: none; }

/* ---- Build 180 (docs/plans/normal-180.md S10; Gage 11-18: "Make the buttons in the bottom row better looking"): each dock tile is a
   steel plate: brushed gunmetal, a red rule along its top, rivets in its corners, the icon bigger and in its own colour (no filter or
   opacity: docs/ui/icons-and-plates.md), a small-caps word, the tile whose sheet is open lit red; the counts are red wax seals. ---- */
/* Build 181: the plate's skin is one rule for the dock, the selected battalions' orders (.normal-unitbar) and Split's shares
   (.nu-split), so the bar that takes the dock's place looks like the dock. Skin only: each bar keeps its own height and type. */
.normal-cmd .ncmd, .normal-unitbar .ncmd, .nu-split .ncmd { border: 1px solid #5a4d40; border-top: 0; border-radius: 3px;
  background:
    radial-gradient(circle at 5px 7px, #8c7c68 0 1.2px, transparent 1.6px), radial-gradient(circle at calc(100% - 5px) 7px, #8c7c68 0 1.2px, transparent 1.6px),
    radial-gradient(circle at 5px calc(100% - 5px), #6b5f51 0 1.2px, transparent 1.6px), radial-gradient(circle at calc(100% - 5px) calc(100% - 5px), #6b5f51 0 1.2px, transparent 1.6px),
    repeating-linear-gradient(90deg, #ffffff05 0 1px, transparent 1px 3px),
    linear-gradient(180deg, #c8202a 0 2px, #3a342d 2px, #23201c 45%, #141210 100%);
  box-shadow: 0 3px 0 #050505, inset 0 1px 0 #f2d9a926, inset 0 -1px 0 #00000080;
  color: #efe6d6; text-shadow: 0 1px 0 #000; }
.normal-cmd .ncmd { height: 62px; gap: 4px; font: 700 11px/1 var(--display); letter-spacing: .09em; font-variant: small-caps; text-transform: none; }
.normal-cmd .ncmd .wi { width: 28px; height: 28px; filter: none; }
.normal-unitbar .ncmd .wi { filter: none; }
.normal-cmd .ncmd > span { position: relative; padding-top: 1px; }
.normal-cmd .ncmd:active, .normal-unitbar .ncmd:active, .nu-split .ncmd:active { transform: translateY(2px); box-shadow: 0 1px 0 #050505, inset 0 1px 0 #f2d9a926; }
/* lit plates: the dock tile whose sheet is open and the bar's Send in red; an order that is switched on (Route while you draw it) in amber */
.normal-cmd .ncmd.open, .normal-unitbar .ncmd.send { border-color: #e0242d; color: #fff;
  background: radial-gradient(ellipse at 50% 120%, #e0242d55, transparent 70%), linear-gradient(180deg, #ff3b44 0 2px, #4a1518 2px, #2a0d0f 55%, #160708 100%);
  box-shadow: 0 3px 0 #050505, 0 0 12px #e0242d55, inset 0 1px 0 #ffb3b31f; }
.normal-unitbar .ncmd.on { border-color: #f2b705; color: #fff;
  background: radial-gradient(ellipse at 50% 120%, #f2b70550, transparent 70%), linear-gradient(180deg, #ffd95e 0 2px, #4a3a16 2px, #2b210c 55%, #171106 100%);
  box-shadow: 0 3px 0 #050505, 0 0 12px #f2b70550, inset 0 1px 0 #ffe9a31f; }
/* cannot act now: a darker plate with no red rule and a dimmed word, its reason in red under it. Never an opacity or a filter:
   the icon keeps its colour (docs/ui/icons-and-plates.md; tools/dock-colour-check.js tries every state on these) */
.normal-unitbar .ncmd.short, .nu-split .ncmd:disabled { border-color: #3a342c; color: #8d857b;
  background: repeating-linear-gradient(90deg, #ffffff03 0 1px, transparent 1px 3px), linear-gradient(180deg, #3a342c 0 2px, #1a1917 2px, #121113 100%);
  box-shadow: 0 3px 0 #050505, inset 0 -1px 0 #00000080; }
.normal-unitbar .ncmd.short > span, .nu-split .ncmd:disabled > span, .nu-split .ncmd:disabled > b { color: #8d857b; }
.normal-unitbar .ncmd.short .ncmd-line { color: #ff8a7c; }
.normal-unitbar .ncmd[data-nunit="refill"] { border-color: #2a9cb5; } /* (the gem top-up keeps its cyan edge over the skin) */
.normal-cmd .ncmd .ncmd-n { top: 4px; right: 5px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: radial-gradient(circle at 40% 35%, #e0343c, #9a1116 70%);
  box-shadow: 0 0 0 1.5px #0b0b0b, inset 0 0 0 1px #ffffff22; font: 700 11px/18px var(--display); }
.normal-cmd .ncmd.arsenal.ready { border-color: #f2b705; box-shadow: 0 3px 0 #050505, 0 0 12px #f2b70566, inset 0 1px 0 #f2d9a926; }
@media (max-width: 380px) { .normal-cmd .ncmd { height: 56px; font-size: 10px; } .normal-cmd .ncmd .wi { width: 24px; height: 24px; } }
/* Train (S1), the Training list, All (S5), the Border chooser (S6), the building guide (S2), What you make a day (S4), the tactic chips (S8) */
.normal-army-top div.na-train { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; } /* (build 180's column of two Train buttons; a build 181 train card is a button.na-train, styled at the end of this file) */
.normal-train .nr-type .wi { width: 20px; height: 20px; }
.normal-train .nr-main { display: inline-flex; align-items: center; gap: 6px; }
.nu-bar.train > i { background: #f2b705; }
.normal-training { display: flex; align-items: center; }
.normal-training .nu-x { margin-left: auto; flex: none; }
.na-training[hidden] { display: none; }
.normal-all { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; margin-right: 6px; padding: 6px 10px; min-height: 34px; }
.normal-all .wi { width: 16px; height: 16px; }
.nu-sign .wi { width: 22px; height: 22px; }
.nb-swatch { width: 26px; height: 26px; border: 2px solid #0b0b0b; background: var(--nb, #888); box-shadow: inset 0 0 0 1px #ffffff40; display: inline-flex; align-items: center; justify-content: center; color: #0b0b0b; font: 700 14px/1 var(--display); }
.normal-guide-rows .normal-bguide { cursor: default; }
.normal-bguide .normal-row-icon { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; }
.normal-bguide small { white-space: normal; line-height: 1.3; }
.normal-income { margin: 8px 0 10px; padding: 8px 10px; background: #15130f; border: 1px solid #3a332b; }
.normal-income h3 { margin: 0 0 6px; font: 700 12px var(--display); letter-spacing: .08em; text-transform: uppercase; color: #e2c39b; }
.normal-income-row { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.normal-income-row > span { display: flex; flex-direction: column; min-width: 0; }
.normal-income-row b { font: 700 14px var(--body); color: #f2eee6; }
.normal-income-row small { font: 600 11px/1.3 var(--body); color: #b3aaa0; }
.nt-tacs { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); margin-top: 4px; display: flex; gap: 6px; pointer-events: auto; }
.nt-tacs[hidden] { display: none; }
.nt-tac { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; color: #f2eee6; background: #141311e6; border: 1px solid var(--ab, #f2b705); box-shadow: 0 2px 0 #050505; font: 700 11px var(--body); }
.nt-tac .wi { width: 14px; height: 14px; color: var(--ab, #f2b705); }
.nt-tac small { color: #e2c39b; font: 700 11px var(--body); }
@media (max-height: 700px) { .normal-cmd .ncmd { height: 52px; } }
.nt-tac.nt-take { border-color: #f2eee6; }
.nt-tac.nt-take.losing { border-color: #e0242d; }
.nt-tac.nt-take .wi { color: #f2eee6; }
.nt-tac.nt-take.losing .wi, .nt-tac.nt-take.losing small { color: #ff8a7c; }
/* the Training list and the types line never shrink (the battalions list under them scrolls) */
.normal-army > #na-training { flex: none; overflow: visible; margin-bottom: 5px; }
.normal-army > .na-types { flex: none; margin: 0 0 8px; }
.normal-does { margin: 8px 0 0; min-height: 30px; }
.normal-does b { color: #f2eee6; }

/* ==== Build 181, the look (docs/plans/normal-181-look, package C; Gage 11-18: "this normal mode looks kind of plain and boring
   compared to the rest of the game") ==== begin
   Normal's sheets, cards and messages wear the field journal's own frame (css/field-ui.css: warm gunmetal, a double inked ring, an
   inset hairline, the pen-work of assets/ui/command-etch.svg) under the dock plates' red rule. Static CSS and nothing per frame.
   Nothing here changes a size, a row height or the 42% limit: where a border or a rule is added, the same pixels come off a margin
   or a padding. Kept at the END of this file, after the short-phone blocks, and scoped under #modal .normal-sheet or body.normal-ui:
   css/field-ui.css and css/kit.css load after this file, so a rule of their weight would lose. Its own short-phone block is last.
   Rules: docs/ui/theme.md (build 181). The markup of the ring, the stage cells, the train cards, the slips and the income bar is
   NormalHud's (docs/plans/normal-181-look/CONTRACT.md section 2); tools/normal-style-sheet.html shows every piece. */

/* ---- 1. the page: every sheet is a journal page ---- */
#modal .normal-sheet { position: relative; isolation: isolate; border-top: 0; padding-top: 11px; /* (the 1 px hairline it had is now padding: the red rule is painted in it) */
  background: linear-gradient(180deg, #c8202a 0 2px, transparent 2px), linear-gradient(115deg, #322c2345, transparent 45%), #1b1a18;
  box-shadow: 0 -3px 0 #0b0b0b, 0 -5px 0 #151410, 0 -6px 0 #8c7c6866, 0 -14px 28px #0009; }
#modal .normal-sheet::before { content: ''; position: absolute; z-index: -1; inset: 6px 4px 4px; border: 1px solid #d9bd8b12; pointer-events: none; } /* the inset hairline */
#modal .normal-sheet::after { content: ''; position: absolute; z-index: -1; top: 2px; right: 0; width: min(100%, 430px); height: 112px; pointer-events: none; opacity: .2;
  background: url('../assets/ui/command-etch.svg') right 108px top -26px / 440px auto no-repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 50%, transparent); mask-image: linear-gradient(180deg, #000 50%, transparent); } /* the pen-work behind the header: the contours and, between the title and the buttons, the head of the plotted advance (the SVG's own lines are 18% to 64%: on the page 4% to 13%) */
#modal .normal-route-sheet { box-shadow: 0 0 0 3px #0b0b0b, 0 0 0 5px #151410, 0 0 0 6px #8c7c6866, 0 10px 28px #0009; } /* (the order card floats: its ring goes all round) */
#modal .normal-sheet .normal-head h2 { text-shadow: 0 1px 0 #0b0b0b; }
#modal .normal-sheet .normal-head { box-shadow: 0 5px 0 -4px #9f897240; } /* a ruled line under the header, drawn in its margin (no height of its own) */
/* the header's picture plate: brass corner ticks (the layered-gradient trick of css/plates.css) on the inked plate */
#modal .normal-sheet .normal-plate, #modal .normal-sheet .normal-rise { --tk: #c9a45a;
  background:
    linear-gradient(var(--tk), var(--tk)) 1px 1px / 8px 2px no-repeat, linear-gradient(var(--tk), var(--tk)) 1px 1px / 2px 8px no-repeat,
    linear-gradient(var(--tk), var(--tk)) calc(100% - 1px) 1px / 8px 2px no-repeat, linear-gradient(var(--tk), var(--tk)) calc(100% - 1px) 1px / 2px 8px no-repeat,
    linear-gradient(var(--tk), var(--tk)) 1px calc(100% - 1px) / 8px 2px no-repeat, linear-gradient(var(--tk), var(--tk)) 1px calc(100% - 1px) / 2px 8px no-repeat,
    linear-gradient(var(--tk), var(--tk)) calc(100% - 1px) calc(100% - 1px) / 8px 2px no-repeat, linear-gradient(var(--tk), var(--tk)) calc(100% - 1px) calc(100% - 1px) / 2px 8px no-repeat,
    radial-gradient(ellipse at 50% 78%, #2a2622, #121113 68%);
  box-shadow: 0 2px 0 #070807; }
/* close, Inspect and "?": the plates' steel with a lit top edge */
#modal .normal-sheet .normal-x { background: linear-gradient(180deg, #37322b, #23201c 46%, #151311); border-color: #5a4d40; box-shadow: 0 2px 0 #070807, inset 0 1px 0 #f2d9a922; text-shadow: 0 1px 0 #000; }
#modal .normal-sheet .normal-x:active { transform: translateY(1px); box-shadow: 0 1px 0 #070807, inset 0 1px 0 #f2d9a922; }
#modal .normal-sheet .normal-i.on { border-color: #f2eee6; background: linear-gradient(180deg, #4a4238, #2a2622); color: #f2eee6; box-shadow: 0 2px 0 #070807, inset 0 0 0 1px #f2eee6; }

/* ---- 2. tiles, rows and stat boxes: raised plates with a lit top edge (hard shadows only: cheap in a scrolling list) ---- */
#modal .normal-sheet :is(.normal-card, .normal-row, .normal-fact, .normal-stat, .normal-plot, .normal-lv, .normal-order, .normal-makes, .normal-income, .normal-inspect, .nds-next, .na-home) {
  background: linear-gradient(170deg, #211f1b, #121113 72%); border-color: #5a4d40; box-shadow: 0 2px 0 #070807, inset 0 1px 0 #f2d9a914; }
#modal .normal-sheet :is(.normal-standings li, .normal-report-lines li) { background: linear-gradient(170deg, #1e1c19, #121113 72%); box-shadow: inset 0 1px 0 #f2d9a90f; }
#modal .normal-sheet .normal-standings li { border-color: #3d352d; }
#modal .normal-sheet .normal-standings li.me { border-color: #f2b705; }
#modal .normal-sheet .normal-lv.now { background: linear-gradient(170deg, #2c2823, #1a1816 72%); }
/* the one you picked: the cream frame on a warmer plate */
#modal .normal-sheet :is(.normal-card, .normal-lv).on { border-color: #f2eee6; background: linear-gradient(170deg, #39332b, #2a2622 72%); box-shadow: 0 2px 0 #070807, inset 0 0 0 1px #f2eee6; }
#modal .normal-sheet .normal-fact.next { border-color: #8c7a64; }
#modal .normal-sheet .normal-tac { border-left-color: var(--ab, #5a4d40); }
/* the last plate's shadow is not cut off by the list that scrolls it (2 px of padding, taken back as margin: the sheet is no taller) */
#modal .normal-sheet :is(#normal-body, .normal-rows, .normal-scroll) { padding-bottom: 2px; margin-bottom: -2px; }
#modal .normal-sheet .normal-army > #na-training { margin-bottom: 3px; } /* (the Training list keeps its 5 px gap above the battalions: 2 of padding, 3 of margin) */

/* ---- 3. section titles: the menus' red inked titles (css/field-ui.css .card h3); the rule's pixels come off the margin ---- */
#modal .normal-sheet .normal-income h3 { margin: 0 0 3px; padding: 0 0 2px; border-bottom: 1px solid #9f897234; color: #f27661; letter-spacing: .065em; }
#modal .normal-sheet .nds-next > b { margin-bottom: 1px; padding-bottom: 2px; border-bottom: 1px solid #9f897234; color: #f27661; letter-spacing: .065em; }
#modal .normal-sheet .normal-build .nb-head { margin-bottom: 1px; padding-bottom: 2px; border-bottom: 1px solid #9f897234; }
#modal .normal-sheet .normal-build .nb-head > b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #f27661; letter-spacing: .065em; }

/* ---- 4. state words are rubber stamps set a little crooked (css/kit.css .hc-stamp): rotated only, never a margin, and where a
   stamp sits in a fixed row (a plot tile, a build card) its frame is an outline, which takes no room ---- */
#modal .normal-sheet .normal-chip { padding: .5px 4px; border: 1.5px solid currentColor; letter-spacing: .1em; transform: rotate(-2deg); } /* (no wider than the chip it was: a capital that is rich and under a truce carries three) */
#modal .normal-sheet .normal-row.econ > em, #modal .normal-sheet .normal-build .nb-head em { padding: 0 4px; border: 1.5px solid currentColor; letter-spacing: .12em; text-transform: uppercase; transform: rotate(-2deg); }
#modal .normal-sheet .normal-build .nb-head em { font-size: 11px; line-height: 1.1; }
#modal .normal-sheet .normal-plot small.bad { outline: 1.5px solid currentColor; outline-offset: 1.5px; letter-spacing: .1em; transform: rotate(-2deg); }
#modal .normal-sheet .normal-card em { outline: 1.5px solid currentColor; outline-offset: 2px; letter-spacing: .12em; transform: rotate(-2deg); }

/* ---- 5. the cards outside a sheet wear the same frame: the guide, standing by, the plan chips, the chips under the top bar, the
   top bar itself, and the menu's "Return to your match" line (not under body.normal-ui: it shows at Home) ---- */
body.normal-ui .normal-guide { isolation: isolate; background: linear-gradient(115deg, #3a2a2455, transparent 50%), #1b1a18f5; box-shadow: 0 4px 0 #0b0b0b, 0 0 0 2px #151410, inset 0 1px 0 #eddbc012; }
body.normal-ui .normal-guide small { letter-spacing: .12em; }
body.normal-ui .normal-standby { isolation: isolate; background: linear-gradient(115deg, #322c2345, transparent 45%), #1b1a18f2; border-color: #b49b7238; box-shadow: 0 3px 0 #080908, 0 0 0 2px #151410, inset 0 1px 0 #eddbc012; }
.normal-return { position: relative; isolation: isolate; background: linear-gradient(115deg, #322c2345, transparent 45%), #1b1a18; box-shadow: 0 3px 0 #080908, 0 0 0 2px #151410, inset 0 1px 0 #eddbc012; }
body.normal-ui .normal-guide::before, body.normal-ui .normal-standby::before, .normal-return::before { content: ''; position: absolute; z-index: -1; inset: 4px; border: 1px solid #d9bd8b12; pointer-events: none; }
body.normal-ui .normal-chips { background: linear-gradient(115deg, #322c2345, transparent 45%), #1b1a18f2; border-color: #b49b7238; box-shadow: 0 2px 0 #080908, 0 0 0 2px #151410, inset 0 1px 0 #eddbc012; }
body.normal-ui .normal-chips.in-sheet { box-shadow: inset 0 1px 0 #eddbc012; }
body.normal-ui .normal-chips button { background: linear-gradient(170deg, #211f1b, #121113 72%); border-color: #5a4d40; box-shadow: inset 0 1px 0 #f2d9a914; }
body.normal-ui .normal-chips button.on { border-color: #f2eee6; background: linear-gradient(170deg, #39332b, #2a2622 72%); box-shadow: inset 0 0 0 1px #f2eee6; }
body.normal-ui .nt-tac { background: linear-gradient(115deg, #322c2366, transparent 60%), #141311e6; box-shadow: 0 2px 0 #050505, 0 0 0 1px #151410, inset 0 1px 0 #eddbc012; }
body.normal-ui .normal-top { background: linear-gradient(115deg, #322c2355, transparent 55%), #1b1a18f4; border-color: #5a4d40; box-shadow: 0 3px 0 #080908, 0 0 0 2px #151410, inset 0 1px 0 #eddbc012; }
body.normal-ui .normal-top.final { border-color: #e0242d; background: linear-gradient(115deg, #6a181d66, transparent 55%), #3a0d10f4; }
body.normal-ui .normal-top .nt-cell { background: linear-gradient(170deg, #211f1b, #121113 72%); border-color: #3d352d; box-shadow: inset 0 1px 0 #f2d9a914; }
body.normal-ui .normal-top .nt-cell:active { background: linear-gradient(170deg, #2c2823, #1a1816 72%); }
/* a number that just went up gives a small bump (NormalHud.dayStrip adds .tick for 300 ms) */
body.normal-ui #ne-fund.tick, body.normal-ui #ne-mat.tick { animation: nt-tick .3s ease-out; transform-origin: 50% 70%; }
@keyframes nt-tick { from { transform: scale(1.12); color: #ffd95e; } }
@media (prefers-reduced-motion: reduce) { body.normal-ui #ne-fund.tick, body.normal-ui #ne-mat.tick { animation: none; } }

/* ---- 6. the first sheet you open rises in four quick steps (NormalHud.sheet adds .fresh only when no sheet was up and never in
   calm; province to province does not replay it). Transform and opacity only. ---- */
#modal .normal-sheet.fresh { animation: ns-rise .16s steps(4) backwards; }
@keyframes ns-rise { from { transform: translateY(22px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { #modal .normal-sheet.fresh { animation: none; } }

/* ---- 7. work under way: the clock ring, the stage cells, a plate's bar ----
   The ring: <span class="normal-ring" style="--k:.42"><b>12s</b></span>. A conic sweep from 12 o'clock filled to --k (0 to 1)
   with a bright tip, twelve inked ticks, the time on a plate disc in the middle. Gold: building. .cream: training or taking.
   .lose: being taken from you. .paused: grey. 44 px (--sz), 34 px in a row, a status line or a chip. Nothing moves but the fill. */
.normal-ring { --k: 0; --rc: #f2b705; --rt: #3a342c; --sz: 44px; position: relative; flex: none; display: inline-grid; place-items: center; width: var(--sz); height: var(--sz); border-radius: 50%; vertical-align: middle;
  background: repeating-conic-gradient(from -1.5deg, #0b0b0b 0 3deg, #0000 3deg 30deg), conic-gradient(var(--rc) calc(var(--k) * 1turn), var(--rt) 0);
  box-shadow: 0 0 0 1.5px #0b0b0b, 0 2.5px 0 1px #050505; }
@supports (color: color-mix(in srgb, red 50%, blue)) {
  .normal-ring { background: repeating-conic-gradient(from -1.5deg, #0b0b0b 0 3deg, #0000 3deg 30deg),
    conic-gradient(var(--rc) calc(var(--k) * 1turn - 5deg), color-mix(in srgb, var(--rc) 45%, #fff) calc(var(--k) * 1turn - 5deg) calc(var(--k) * 1turn), var(--rt) 0); }
}
.normal-ring::before { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: radial-gradient(circle at 50% 30%, #2f2a25, #121113 72%); box-shadow: 0 0 0 1.5px #0b0b0b, inset 0 1px 0 #f2d9a91f; }
.normal-ring > b { position: relative; max-width: calc(var(--sz) - 12px); overflow: hidden; white-space: nowrap; font: 400 calc(var(--sz) * .34)/1 var(--display); letter-spacing: .02em; color: #f2eee6; font-variant-numeric: tabular-nums; text-shadow: 0 1px 0 #000; }
.normal-ring.cream { --rc: #eadbc3; }
.normal-ring.lose { --rc: #e0242d; }
.normal-ring.lose > b { color: #ff8a7c; }
.normal-ring.paused { --rc: #8d857b; }
.normal-ring.paused > b { color: #b3aaa0; }
.normal-status .normal-ring, .normal-row .normal-ring, .normal-plot .normal-ring, .nt-tac .normal-ring, .normal-head p .normal-ring { --sz: 34px; }
/* beside the model going up (NormalHud.plotBody): the stage box, then the ring with its word and its stage line. The row is the
   element that holds both (.normal-work, or whatever holds a .normal-rise and a ring); no taller than the 84 px box it replaces. */
#modal .normal-sheet :is(.normal-work, div:has(> .normal-rise):has(.normal-ring):not(#normal-body)) { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0 0 6px; }
#modal .normal-sheet :is(.normal-work, div:has(> .normal-rise):has(.normal-ring):not(#normal-body)) > .normal-rise { flex: none; margin: 0; }
#modal .normal-sheet :is(.normal-work-text, .normal-rise ~ :has(> .normal-ring)) { display: grid; grid-template-columns: auto minmax(0, auto); align-content: center; align-items: center; column-gap: 10px; row-gap: 3px; min-width: 0; text-align: left; }
#modal .normal-sheet :is(.normal-work-text, .normal-rise ~ :has(> .normal-ring)) > .normal-ring { grid-column: 1; grid-row: 1 / span 2; }
#modal .normal-sheet :is(.normal-work-text, .normal-rise ~ :has(> .normal-ring)) > b { grid-column: 2; align-self: end; font: 400 18px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; color: #f2eee6; white-space: nowrap; }
#modal .normal-sheet :is(.normal-work-text, .normal-rise ~ :has(> .normal-ring)) > small { grid-column: 2; align-self: start; font: 700 11px/1.2 var(--body); color: #e2c39b; }
/* the stage cells: <span class="normal-bar"><i class="on"></i><i class="now"></i><i></i>...</span>, one <i> a stage. Done ones gold,
   the current one lit (a brighter gold; filled to --k when the HUD sets one on it), the rest the striped track, an ink line
   between two. The one-<i> bar of build 180 (its width set in place) still draws as it did. */
.normal-bar { display: flex; justify-self: stretch; align-self: stretch; } /* (as wide as what holds it, even in a centred grid or column: its cells have no width of their own) */
.normal-bar > i { flex: 1 1 0px; min-width: 0; width: auto; background: none; }
.normal-bar > i + i { border-left: 2px solid #0b0b0b; }
.normal-bar > i.on { background: #f2b705; box-shadow: inset 0 1px 0 #ffe9a3, inset 0 -1px 0 #b07f00; }
.normal-bar > i.now { background: linear-gradient(90deg, #ffd95e calc(var(--k, 1) * 100%), #6b561c 0); box-shadow: inset 0 1px 0 #fff3c4; }
.normal-bar > i:only-child:not(.on):not(.now) { flex: none; background: #f2b705; }

/* ---- 8. the Army sheet's train cards (NormalHud.armySheet): <button class="na-train ready|busy|need|short" data-train="..."> holding
   <span class="na-train-art"> (the picture), <b> (the kind), <small> (where and how long; a second <small> is what it is good at)
   and <em class="na-train-why"> (what is missing). A strip that scrolls sideways (two fill a phone, more scroll): the strip is
   whatever holds the cards. ready: the red plate (the one thing that buys). busy: a steel plate, a gold line along its bottom
   (filled to --k when the HUD sets one) and its line in gold. need: a dashed dark plate (build what it names). short: a dark
   plate. A dimmed card is a darker plate and a dimmed word, never an opacity or a filter (css/kit.css .btn.short would add both). ---- */
#modal .normal-sheet :is(.na-trains, :has(> button.na-train)) { display: flex; flex-direction: row; align-items: stretch; gap: 6px; flex: none; min-width: 0; margin: 0 0 5px; padding: 0 0 3px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; scrollbar-width: none; }
#modal .normal-sheet :is(.na-trains, :has(> button.na-train))::-webkit-scrollbar { display: none; }
#modal .normal-sheet .normal-army-top :is(.na-trains, :has(> button.na-train)) { margin-bottom: -3px; }
#modal .normal-sheet button.na-train { position: relative; flex: 1 0 160px; min-width: 0; min-height: 91px; scroll-snap-align: start;
  display: grid; grid-template-columns: 36px minmax(0, 1fr); grid-auto-rows: min-content; align-content: center; align-items: center; justify-items: start; column-gap: 7px; row-gap: 2px;
  margin: 0; padding: 7px 7px 9px; text-align: left; white-space: normal; text-transform: none; letter-spacing: 0; font: 600 11px/1.2 var(--body); color: #f2eee6; text-shadow: 0 1px 0 #0006;
  opacity: 1; filter: none; border: 1px solid #5a4d40; border-top: 0; border-radius: 3px;
  background: linear-gradient(180deg, #c8202a 0 2px, #3a342d 2px, #23201c 45%, #141210 100%);
  box-shadow: 0 3px 0 #050505, inset 0 1px 0 #f2d9a926, inset 0 -1px 0 #00000080; }
#modal .normal-sheet button.na-train:active { transform: translateY(2px); box-shadow: 0 1px 0 #050505, inset 0 1px 0 #f2d9a926; }
#modal .normal-sheet button.na-train > .na-train-art { grid-column: 1; grid-row: 1 / span 5; width: 36px; height: 36px; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 78%, #2a2622, #121113 68%); border: 1px solid #0b0b0b; outline: 1px solid #51463c; outline-offset: -2px; box-shadow: 0 2px 0 #0000004d; color: #f2eee6; }
#modal .normal-sheet button.na-train > .na-train-art > :is(canvas, img) { max-width: 100%; max-height: 100%; object-fit: contain; }
#modal .normal-sheet button.na-train > .na-train-art .wi { width: 24px; height: 24px; }
#modal .normal-sheet button.na-train > .nr-heading { grid-column: 2; display: grid; grid-template-columns: minmax(0, 1fr) 22px; align-items: baseline; gap: 3px; width: 100%; min-width: 0; }
#modal .normal-sheet .nr-heading > b { min-width: 0; margin: 0; overflow-wrap: anywhere; font: 400 15px/1.12 var(--display); letter-spacing: .02em; text-transform: uppercase; color: #fff; }
#modal .normal-sheet button.na-train > .nr-size { grid-column: 2; min-width: 0; font: 700 11px/1.2 var(--body); color: #f2eee6; }
#modal .normal-sheet button.na-train > .nr-size:empty { display: none; }
#modal .normal-sheet button.na-train:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
#modal .normal-sheet button.na-train > :is(small, .na-train-why) { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
#modal .normal-sheet button.na-train > small { grid-column: 2; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; white-space: normal; opacity: 1; font: 600 11px/1.2 var(--body); letter-spacing: 0; text-transform: none; color: #e2c39b; } /* (white-space and opacity: .normal-two small sets both, should the card keep that class) */
#modal .normal-sheet button.na-train > small ~ small { color: #b3aaa0; font-weight: 500; }
#modal .normal-sheet button.na-train > .na-train-why { grid-column: 2; font: 700 11px/1.2 var(--body); font-style: normal; color: #ff8a7c; }
#modal .normal-sheet button.na-train > .na-train-why:empty { display: none; }
#modal .normal-sheet button.na-train.ready { border-color: #ed987f;
  background: radial-gradient(ellipse at 50% 130%, #ff3b4433, transparent 70%), linear-gradient(180deg, #ff6a5c 0 2px, #8f2328 2px, #5c1519 50%, #330b0e 100%);
  box-shadow: 0 3px 0 #050505, inset 0 1px 0 #ffd9b65c, inset 0 -1px 0 #00000080; }
#modal .normal-sheet button.na-train.ready > small { color: #ffe5cc; }
#modal .normal-sheet button.na-train.busy > small:first-of-type { color: #ffd95e; }
#modal .normal-sheet button.na-train.busy::after { content: ''; position: absolute; left: 6px; right: 6px; bottom: 3px; height: 3px; background: linear-gradient(90deg, #f2b705 calc(var(--k, 1) * 100%), #3a342c 0); box-shadow: 0 0 0 1px #0b0b0b; }
#modal .normal-sheet button.na-train:is(.need, .short) { border: 1px solid #3a342c; color: #8d857b; text-shadow: none;
  background: linear-gradient(180deg, #3a342c 0 2px, #1a1917 2px, #121113 100%); box-shadow: 0 3px 0 #050505, inset 0 -1px 0 #00000080; }
#modal .normal-sheet button.na-train.need { border: 1px dashed #b89a55; }
#modal .normal-sheet button.na-train[style] { border-color: var(--rank-edge); }
#modal .normal-sheet button.na-train:is(.need, .short) .nr-kind { color: #b3aaa0; }
#modal .normal-sheet button.na-train:is(.need, .short) > small { color: #8d857b; }
#modal .normal-sheet button.na-train.wait { background-image: repeating-linear-gradient(135deg, #0000 0 8px, #0000003d 8px 16px), linear-gradient(180deg, #ff6a5c 0 2px, #8f2328 2px, #5c1519 50%, #330b0e 100%); background-size: 23px 23px, 100% 100%; animation: nr-wait .7s linear infinite; }
@media (prefers-reduced-motion: reduce) { #modal .normal-sheet button.na-train.wait { animation: none; } }
/* with the cards up, the Reserve is one slim line (the top bar already shows it) */
#modal .normal-sheet:has(button.na-train) .normal-army-top { flex-direction: column; align-items: stretch; gap: 6px; }
#modal .normal-sheet:has(button.na-train) .normal-army-top .na-home { display: flex; align-items: baseline; gap: 8px; min-width: 0; padding: 4px 9px 3px; }
#modal .normal-sheet:has(button.na-train) .normal-army-top .na-home b { font-size: 17px; }

/* ---- 9. field slips (NormalHud.slip): a toast with .nslip and a tone (good, bad, info) holding <i class="nslip-bar">,
   <span class="nslip-art">, <b class="nslip-name">, <small class="nslip-line"> and <em class="nslip-stamp">; .still in calm. A
   journal card with a tone bar down its left edge, the name over one quiet line, and a rubber stamp that slams down crooked
   40 ms in (it lands on the stamp sound). Every rule is under body.normal-ui .toast.nslip: other modes share .toast. Under
   300 px wide, and only the slip takes a tap (the toast row stays click-through). ---- */
body.normal-ui .toast.nslip { --tone: #eadbc3; position: relative; isolation: isolate; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: center; column-gap: 9px; row-gap: 2px;
  width: max-content; max-width: min(296px, calc(100vw - 24px)); min-height: 46px; padding: 6px 11px 6px 14px; overflow: visible; text-align: left; text-transform: none; pointer-events: auto; cursor: pointer; touch-action: manipulation;
  color: #f2eee6; font: 600 12px/1.25 var(--body); animation: none;
  background: linear-gradient(115deg, #322c2366, transparent 55%), #1b1a18f7; border: 1px solid #b49b7238;
  box-shadow: 0 3px 0 #080908, 0 0 0 2px #151410, inset 0 1px 0 #eddbc012; }
body.normal-ui .toast.nslip.good { --tone: #f2b705; }
body.normal-ui .toast.nslip.bad { --tone: #e0242d; }
body.normal-ui .toast.nslip > .nslip-bar { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--tone); box-shadow: 1px 0 0 #0b0b0b; }
body.normal-ui .toast.nslip > .nslip-art { grid-column: 1; grid-row: 1 / span 2; width: 40px; height: 32px; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 78%, #2a2622, #121113 68%); border: 1px solid #0b0b0b; outline: 1px solid #51463c; outline-offset: -2px; }
body.normal-ui .toast.nslip > .nslip-art:empty { display: none; }
body.normal-ui .toast.nslip > .nslip-art > * { max-width: 100%; max-height: 100%; object-fit: contain; }
body.normal-ui .toast.nslip > .nslip-art .wi, body.normal-ui .toast.nslip > .nslip-art i[data-glyph] { width: 22px; height: 22px; }
body.normal-ui .toast.nslip > .nslip-name { grid-column: 2; grid-row: 1; align-self: end; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 17px/1 var(--display); letter-spacing: .04em; text-transform: uppercase; color: #f2eee6; }
body.normal-ui .toast.nslip > .nslip-line { grid-column: 2; grid-row: 2; align-self: start; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font: 600 12px/1.2 var(--body); color: #cfc5b6; }
body.normal-ui .toast.nslip > .nslip-line:empty { display: none; }
body.normal-ui .toast.nslip > .nslip-name:has(+ .nslip-line:empty) { grid-row: 1 / span 2; align-self: center; }
body.normal-ui .toast.nslip > .nslip-stamp { grid-column: 3; grid-row: 1 / span 2; padding: 4px 6px 3px; border: 2px solid currentColor; box-shadow: inset 0 0 0 1px #1b1a18, inset 0 0 0 2px currentColor; color: var(--tone);
  font: 400 15px/1 var(--display); font-style: normal; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; transform: rotate(-4deg); animation: nslip-slam .28s steps(3) .04s backwards; }
body.normal-ui .toast.nslip > .nslip-stamp:empty { display: none; }
body.normal-ui .toast.nslip.still > .nslip-stamp { animation: none; }
@keyframes nslip-slam { from { transform: scale(1.5) rotate(-9deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { body.normal-ui .toast.nslip > .nslip-stamp { animation: none; } }

/* ---- 10. what you make a day, as a bar (NormalHud.incomeBlock): <div class="normal-income-bar"><i class="seg ..." style="--w:.4">
   <b>+40</b></i>...</div> and <button class="normal-income-slot"> for the Factory part you do not have yet. 16 px, the parts
   apart by an ink gap, each as wide as its share (--w, 0 to 1) with its number inside in ink. Tones: the first part cream (your
   city; .city), the second the resource's own (your provinces; .prov; gold, or olive on a bar or a part marked .mat, brick red
   on .troops), the third brick (Factories; .fac); or --c on the part. A part under 15% is too narrow for its number: there
   the number is a small ink chip in the part's tone laid over the bar (worked out from --w, no class needed). ---- */
#modal .normal-sheet .normal-income-row > :has(> .normal-income-bar) { flex: 1; } /* (the line's text column takes the row's width, so the bar under the total does) */
#modal .normal-sheet .normal-income-bar { --res: #ffd95e; display: flex; align-items: stretch; gap: 2px; height: 16px; min-width: 0; margin: 3px 0 2px; padding: 0; background: #0b0b0b; box-shadow: 0 0 0 1px #0b0b0b, 0 2px 0 #070807; }
#modal .normal-sheet .normal-income-bar:is(.mat, .materiel, :has(> .seg.mat), :has(> .seg.materiel)) { --res: #c3d48a; }
#modal .normal-sheet .normal-income-bar:is(.troops, :has(> .seg.troops)) { --res: #ff9a7e; }
#modal .normal-sheet .normal-income-bar > .seg { --w: 1; --c: #eadbc3; --thin: clamp(0, (0.15 - var(--w)) * 1000, 1);
  position: relative; flex: var(--w) 1 0px; min-width: calc(6px + (1 - var(--thin)) * 28px); height: auto; background: var(--c); box-shadow: inset 0 1px 0 #ffffff59, inset 0 -2px 0 #00000030; }
#modal .normal-sheet .normal-income-bar > .seg:nth-child(2) { --c: var(--res); }
#modal .normal-sheet .normal-income-bar > .seg:nth-child(3) { --c: #d07458; }
#modal .normal-sheet .normal-income-bar > .seg.city { --c: #eadbc3; }
#modal .normal-sheet .normal-income-bar > .seg:is(.prov, .provinces) { --c: var(--res); }
#modal .normal-sheet .normal-income-bar > .seg:is(.fac, .factory, .factories) { --c: #d07458; }
#modal .normal-sheet .normal-income-bar > .seg > b { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); padding: 0 3px; white-space: nowrap; font: 700 10px/14px var(--body); letter-spacing: 0; font-variant-numeric: tabular-nums; color: #14110c; }
@supports (color: color-mix(in srgb, red 50%, blue)) {
  #modal .normal-sheet .normal-income-bar > .seg > b { z-index: calc(var(--thin) * 2); color: color-mix(in srgb, var(--c) calc(var(--thin) * 100%), #14110c); background: color-mix(in srgb, #0b0b0b calc(var(--thin) * 100%), transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) calc(var(--thin) * 100%), transparent); }
  #modal .normal-sheet .normal-income-bar > .seg:first-child > b { left: calc(50% - var(--thin) * 50%); transform: translate(calc(-50% + var(--thin) * 50%), -50%); }
  #modal .normal-sheet .normal-income-bar > .seg:last-child > b { left: calc(50% + var(--thin) * 50%); transform: translate(calc(-50% - var(--thin) * 50%), -50%); }
}
#modal .normal-sheet .normal-income-slot { position: relative; flex: 0 0 64px; width: 64px; height: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 3px; margin: 0; padding: 0 4px; background: #121113; border: 1px dashed #d07458; color: #f0c4b3; font: 700 10px/1 var(--body); letter-spacing: 0; white-space: nowrap; }
#modal .normal-sheet .normal-income-bar > .normal-income-slot { height: auto; }
#modal .normal-sheet .normal-income-slot::after { content: ''; position: absolute; inset: -13px -4px; } /* a 16 px slot with a finger-sized target */
#modal .normal-sheet .normal-income-slot :is(.wi, canvas, img, svg, i[data-glyph]) { flex: none; width: 12px !important; height: 12px !important; }
#modal .normal-sheet .normal-income-slot:active { background: #2a2622; }

/* ---- 11. the selected battalions' bar: the battalion's own counter in the head (a <canvas class="nu-token"> NormalHud draws with
   NormalArt.token; the strength stays in #nu-name for the checks and for screen readers), and its line on two rows inside the
   head's 38 px instead of cut to "Os..." ---- */
.normal-unitbar .nu-token { flex: none; display: block; height: 30px; width: auto; max-width: 96px; }
.normal-unit-art { display: block; width: 100%; height: 100%; }
#na-rows .normal-unit-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3px; }
.normal-unit-breakdown { display: grid; gap: 2px; min-width: 0; }
.normal-unit-kind {
  display: grid; grid-template-columns: 23px minmax(0, 1fr) auto 22px; align-items: center; gap: 7px;
  padding: 2px 4px; background: #212124; color: #e6e3df;
}
.normal-unit-kind + .normal-unit-kind { background: #19191b; }
.normal-unit-kind .normal-unit-art { width: 22px; height: 22px; }
.normal-unit-kind b { color: #f2eee6; font-variant-numeric: tabular-nums; }
.normal-unit-kind, .normal-training { box-shadow: inset 0 0 0 1px var(--rank-edge, #989da4); }
.normal-unit-kind .normal-unit-name, #na-rows .normal-row-text small { min-width: 0; overflow-wrap: anywhere; white-space: normal; }
.normal-unit-rank { min-width: 20px; background: var(--rank-fill, #303238); color: #fff; border: 1px solid var(--rank-edge, #989da4); text-align: center; font: 700 10px/16px var(--body); }
.normal-unitbar .nu-one:has(> .nu-token) > :is(#nu-name, .nu-sign) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.normal-unitbar .nu-one small { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal; line-height: 1.15; text-overflow: clip; overflow-wrap: anywhere; }

/* ---- a short phone (700 px and under), last so it wins: a smaller ring, and a train card keeps its two lines (what the kind is
   good at goes, as the build tiles drop their time row) ---- */
@media (max-height: 700px) {
  .normal-ring { --sz: 40px; }
  .normal-status .normal-ring, .normal-row .normal-ring, .normal-plot .normal-ring, .nt-tac .normal-ring, .normal-head p .normal-ring { --sz: 32px; }
  #modal .normal-sheet button.na-train { min-height: 62px; padding: 5px 8px 8px; }
  #modal .normal-sheet button.na-train > small ~ small { display: none; }
  #modal .normal-sheet :is(.normal-work-text, .normal-rise ~ :has(> .normal-ring)) > b { font-size: 16px; }
}
/* ==== Build 181, the look ==== end */

/* build 181, round 2, P2a ==== begin (docs/plans/normal-181-look/ROUND2.md, package P2a; docs/ui/normal-hud-181.md "Round 2, P2a")
   Research where Allies was, the left column's Nations, every kind's train card and its gems, the resources named in the top bar,
   Border by tap, the Airfield and the Port in Build, and buttons that fill their areas. Scoped under #modal .normal-sheet or
   body.normal-ui like the block above, and after it (a same-weight rule that comes later wins). Its own short-phone block is last.
   Nothing here makes a sheet taller than 42% of the screen: the Research list scrolls inside the sheet. */

/* ---- the left column's Nations (NormalHud.nationsBtn): the camera buttons' plate, its word, the red count of the requests waiting
   and the unread dot at its corner (the same seal and dot the Allies plate wore) ---- */
body.normal-ui #hud-side #n-nations { position: relative; }
body.normal-ui #hud-side #n-nations .ncmd-n { top: -5px; right: -7px; z-index: 1; box-shadow: 0 0 0 1px #0b0b0b; }
body.normal-ui #hud-side #n-nations .ncmd-dot { top: 3px; right: 3px; }

/* ---- the Research sheet (NormalHud.researchSheet): a card a line in a column that scrolls inside the sheet. A card: the line's
   icon on an inked plate, its name and three level pips, what a level does, the next level's price and time, and Research (the
   red plate); the line under way is lit gold and carries the clock, Speed up, Complete now and Cancel on a row of its own ---- */
#modal .normal-sheet .nr-plate .wi { width: 28px; height: 28px; }
#modal .normal-sheet .normal-research { display: flex; flex-direction: column; gap: 6px; }
#modal .normal-sheet .nr-card { position: relative; flex: none; display: grid; grid-template-columns: 42px auto minmax(0, 1fr) auto; grid-template-rows: auto auto auto; align-items: center; column-gap: 8px; row-gap: 1px; min-height: 60px; padding: 6px 8px 6px 6px;
  border: 1px solid #5a4d40; background: linear-gradient(170deg, #211f1b, #121113 72%); box-shadow: 0 2px 0 #070807, inset 0 1px 0 #f2d9a914; }
#modal .normal-sheet .nr-card > .nr-art { grid-column: 1; grid-row: 1 / span 3; width: 42px; height: 42px; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 70%, #2f2a25, #121113 70%); border: 1px solid #0b0b0b; outline: 1px solid #51463c; outline-offset: -2px; box-shadow: 0 2px 0 #0000004d; }
#modal .normal-sheet .nr-card > .nr-art .wi { width: 30px; height: 30px; }
#modal .normal-sheet .nr-card > b { grid-column: 2; grid-row: 1; font: 400 17px/1 var(--display); letter-spacing: .04em; text-transform: uppercase; color: #f2eee6; white-space: nowrap; }
#modal .normal-sheet .nr-card > .nr-pips { grid-column: 3; grid-row: 1; justify-self: start; display: inline-flex; gap: 3px; }
#modal .normal-sheet .nr-pips > i { width: 9px; height: 9px; background: #2a2622; box-shadow: 0 0 0 1px #0b0b0b, inset 0 0 0 1px #51463c; }
#modal .normal-sheet .nr-pips > i.on { background: #f2b705; box-shadow: 0 0 0 1px #0b0b0b, inset 0 1px 0 #ffe9a3, inset 0 -1px 0 #b07f00; }
#modal .normal-sheet .nr-pips > i.now { background: repeating-linear-gradient(135deg, #f2b705 0 2px, #3a342c 2px 4px); box-shadow: 0 0 0 1px #0b0b0b, inset 0 0 0 1px #ffd95e; }
#modal .normal-sheet .nr-card > .nr-does { grid-column: 2 / span 2; grid-row: 2; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 11px/1.25 var(--body); color: #cfc5b6; }
#modal .normal-sheet .nr-card > .nr-next { grid-column: 2 / span 2; grid-row: 3; min-width: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font: 700 11px/1.2 var(--body); color: #e2c39b; }
#modal .normal-sheet .nr-next .nr-lv { font: 400 12px/1 var(--display); letter-spacing: .05em; text-transform: uppercase; color: #f2b705; }
#modal .normal-sheet .nr-next .normal-cost { justify-content: flex-start; }
#modal .normal-sheet .nr-card > .nr-act { grid-column: 4; grid-row: 1 / span 3; display: flex; align-items: center; gap: 5px; }
/* Research: the red plate, the one thing that buys on the card (its price is on the line beside it) */
#modal .normal-sheet .nr-go { min-width: 92px; min-height: 42px; margin: 0; padding: 0 10px; border: 1px solid #ed987f; border-top: 0; border-radius: 3px; font: 400 16px/1 var(--display); letter-spacing: .05em; color: #fff;
  background: radial-gradient(ellipse at 50% 130%, #ff3b4433, transparent 70%), linear-gradient(180deg, #ff6a5c 0 2px, #8f2328 2px, #5c1519 50%, #330b0e 100%);
  box-shadow: 0 3px 0 #050505, inset 0 1px 0 #ffd9b65c, inset 0 -1px 0 #00000080; text-shadow: 0 1px 0 #0006; }
#modal .normal-sheet .nr-go:active { transform: translateY(2px); box-shadow: 0 1px 0 #050505, inset 0 1px 0 #ffd9b65c; }
/* cannot start now (another line under way, short of Funding or Materiel): a dark plate and a dimmed word, never an opacity */
#modal .normal-sheet .nr-go.off { border: 1px solid #3a342c; color: #8d857b; text-shadow: none; background: linear-gradient(180deg, #3a342c 0 2px, #1a1917 2px, #121113 100%); box-shadow: 0 3px 0 #050505, inset 0 -1px 0 #00000080; }
#modal .normal-sheet .nr-card.short .nr-next { color: #b3aaa0; }
#modal .normal-sheet .nr-card.max > b { color: #ffd95e; }
#modal .normal-sheet .nr-card.max .nr-next { color: #b3aaa0; font-weight: 600; }
#modal .normal-sheet .nr-max { padding: 3px 7px 2px; border: 2px solid currentColor; box-shadow: inset 0 0 0 1px #1b1a18, inset 0 0 0 2px currentColor; color: #f2b705; font: 400 15px/1 var(--display); font-style: normal; letter-spacing: .12em; text-transform: uppercase; transform: rotate(-3deg); }
/* the line under way: lit gold, its row of the clock, the two gem buttons and Cancel under the card's head */
#modal .normal-sheet .nr-card.run { grid-template-rows: auto auto auto auto; border-color: #f2b705; background: radial-gradient(ellipse at 15% 0%, #f2b70522, transparent 60%), linear-gradient(170deg, #2c2721, #15130f 72%); box-shadow: 0 2px 0 #070807, inset 0 0 0 1px #f2b70540, inset 0 1px 0 #ffe9a333; }
#modal .normal-sheet .nr-card.run > .nr-next { color: #ffd95e; }
#modal .normal-sheet .nr-card.run > .nr-act { grid-column: 1 / -1; grid-row: 4; margin-top: 5px; gap: 6px; }
#modal .normal-sheet .nr-card.run .normal-ring { --sz: 42px; }
/* Speed up and Complete now, compact (a research card, a training's row): the construction buttons' own cyan frame and gem price */
#modal .normal-sheet .nr-gem { flex: 1 1 0; min-width: 0; min-height: 42px; margin: 0; padding: 3px 4px; gap: 2px; }
#modal .normal-sheet .nr-gem > span { font-size: 12px; white-space: nowrap; }
#modal .normal-sheet .nr-gem .ng-price { font-size: 16px; }
#modal .normal-sheet .nr-gem .ng-price .wi { width: 14px; height: 14px; }
#modal .normal-sheet .nr-gem .ng-left { position: static; align-self: center; margin-left: 5px; font-size: 9px; color: #8fc3cc; white-space: nowrap; }
#modal .normal-sheet .normal-training .nr-gem .ng-left { margin-left: 3px; font-size: 8px; }
#modal .normal-sheet .nr-cancel { flex: none; width: 38px; height: 42px; display: grid; place-items: center; margin: 0; padding: 0; background: linear-gradient(180deg, #37322b, #23201c 46%, #151311); border: 1px solid #5a4d40; box-shadow: 0 2px 0 #070807, inset 0 1px 0 #f2d9a922; }
#modal .normal-sheet .nr-cancel .wi { width: 16px; height: 16px; }

/* ---- train cards (NormalHud.trainArt): the picture is the kind's own symbol, a soldier, a tank, a fighter, a bomber, a warship
   (Gage 11-18: "The train infantry has to have an infantry-like troop on it"), with where it trains on a small inked chip in its
   corner (the city's star, the Depot, the Factory, the Airfield, the Port); a kind nothing of yours trains has a gold plus on it ---- */
#modal .normal-sheet button.na-train > .na-train-art { position: relative; }
#modal .normal-sheet button.na-train > .na-train-art > .wi { width: 28px; height: 28px; margin-bottom: 3px; }
#modal .normal-sheet button.na-train .na-train-at { position: absolute; right: -4px; bottom: -4px; width: 18px; height: 18px; display: grid; place-items: center; background: #121113; box-shadow: 0 0 0 1px #0b0b0b, inset 0 0 0 1px #51463c, 0 2px 0 #050505; }
#modal .normal-sheet button.na-train .na-train-at > :is(canvas, img, span) { width: 16px !important; height: 16px !important; }
#modal .normal-sheet button.na-train .na-train-at .na-plus { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; background: linear-gradient(#ffd95e, #ffd95e) center / 2px 8px no-repeat, linear-gradient(#ffd95e, #ffd95e) center / 8px 2px no-repeat, #8a6200; box-shadow: 0 0 0 1px #0b0b0b; }
#modal .normal-sheet button.na-train:is(.need, .short) > .na-train-art { background: radial-gradient(ellipse at 50% 78%, #24211e, #121113 68%); }

/* ---- a training's Speed up and Complete now (NormalHud.trainGems) on its row, between its line and its Cancel ---- */
#modal .normal-sheet .normal-training { display: grid; grid-template-columns: minmax(0, 1fr) 36px; gap: 6px; min-width: 0; }
#modal .normal-sheet .normal-training .nt-open {
  display: grid; grid-template-columns: 28px minmax(0, 1fr) 23px; align-items: center; gap: 7px;
  padding: 2px; border: 0; min-width: 0; min-height: 38px; background: transparent; color: inherit; text-align: left;
}
#modal .normal-sheet .normal-training button.nt-open:focus-visible { outline: 2px solid var(--rank-edge); }
#modal .normal-sheet .normal-training .normal-row-text { min-width: 0; display: grid; gap: 3px; }
#modal .normal-sheet .normal-training .normal-row-text :is(b, small) { white-space: normal; overflow-wrap: anywhere; }
#modal .normal-sheet .normal-training .nu-bar { width: 100%; max-width: none; min-width: 0; }
#modal .normal-sheet .normal-training .nu-x { justify-self: end; margin: 0; }
#modal .normal-sheet .normal-training .nt-gems { grid-column: 1 / -1; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
#modal .normal-sheet .normal-training .nr-gem { min-height: 42px; padding: 4px; }
#modal .normal-sheet .normal-training .nr-gem > span { font-size: 11px; letter-spacing: .03em; white-space: normal; }
#modal .normal-sheet .normal-training .nr-gem .ng-price { font-size: 15px; }
#modal .normal-sheet .normal-training .ng-left { position: static; margin-left: 3px; white-space: nowrap; }
#modal .normal-sheet .normal-army { overflow-y: auto; scrollbar-width: none; }
#modal .normal-sheet .normal-army > .normal-rows { flex: none; overflow: visible; }
#modal .normal-sheet #na-training[hidden] { display: none; }

/* ---- the build cards of an open plot with the Airfield and the Port: six in two rows of three, each its model, its name and what
   it does (the price is one for all: it stands on the red button); a Port inland says "Needs a coast" in red ---- */
#modal .normal-sheet .normal-cards.six { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
#modal .normal-sheet .normal-cards.six .normal-card { grid-template-rows: 38px 15px 14px; padding: 3px 2px 4px; row-gap: 2px; }
#modal .normal-sheet .normal-cards.six .normal-card-icon { height: 38px; }
#modal .normal-sheet:has(.normal-cards.six) .normal-head { margin-bottom: 5px; }
#modal .normal-sheet .normal-cards.six ~ .normal-does { margin: 5px 0 0; font-size: 12px; line-height: 1.3; }
#modal .normal-sheet .normal-cards.six .normal-card > em { grid-row: 3; font-size: 10px; }
#modal .normal-sheet .normal-card .nc-coast { color: #ff8a7c; font: 700 10px/1 var(--body); font-style: normal; letter-spacing: .02em; outline: 1.5px solid currentColor; outline-offset: 1.5px; transform: rotate(-2deg); white-space: nowrap; }
#modal .normal-sheet .normal-card.coast .normal-card-icon { filter: none; opacity: 1; }
#modal .normal-sheet .normal-card .normal-fx .wi { width: 14px; height: 14px; }

/* ---- the resources named in the top bar (NormalHud.dayStrip): Funding and Materiel each a button of its own in the right-hand cell,
   its word in small capitals under its number in the resource's own tone (the plates' gold and olive), what a day adds under that.
   The one you tapped is lit while its note is open ---- */
body.normal-ui .normal-top .nt-eco { gap: 4px; padding: 2px 3px; }
body.normal-ui .normal-top .nt-eco > .nt-two { min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 2px; margin: 0; padding: 1px 4px 2px; background: none; border: 0; border-radius: 0; color: inherit; font: inherit; text-align: left; touch-action: manipulation; box-shadow: none; }
body.normal-ui .normal-top .nt-eco > .nt-two:active, body.normal-ui .normal-top .nt-eco > .nt-two.on { background: linear-gradient(170deg, #2c2823, #1a1816 72%); box-shadow: inset 0 -2px 0 #f2b705; }
body.normal-ui .normal-top .nt-eco > #nt-mat.on { box-shadow: inset 0 -2px 0 #c3d48a; }
body.normal-ui .normal-top .ne-word { font: 400 9px/1 var(--display); letter-spacing: .09em; text-transform: uppercase; color: #ffd95e; }
body.normal-ui .normal-top #nt-mat .ne-word { color: #c3d48a; }
body.normal-ui .normal-top .nt-eco > .nt-two > b { font-size: 16px; }
/* the note under it (NormalHud.resTip): a journal card with an arrow at the number, the resource's name and what a day adds, what it
   is for, what makes it, and the way to the Economy sheet */
body:not(.normal-ui) .nt-tip { display: none; }
body.normal-ui .nt-tip { position: absolute; z-index: 9; display: grid; grid-template-columns: 18px auto minmax(0, 1fr) auto; grid-template-rows: auto auto auto; column-gap: 7px; row-gap: 3px; align-items: center; margin: 0; padding: 8px 9px 8px 10px; text-align: left; text-transform: none; letter-spacing: 0;
  color: #f2eee6; font: 600 11px/1.3 var(--body); background: linear-gradient(115deg, #322c2366, transparent 55%), #1b1a18f7; border: 1px solid #b49b7238; border-radius: 0;
  box-shadow: 0 3px 0 #080908, 0 0 0 2px #151410, inset 0 1px 0 #eddbc012; animation: nt-tip-in .14s steps(3) backwards; touch-action: manipulation; }
body.normal-ui .nt-tip[hidden] { display: none; }
body.normal-ui .nt-tip.still { animation: none; }
@keyframes nt-tip-in { from { transform: translateY(-6px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { body.normal-ui .nt-tip { animation: none; } }
body.normal-ui .nt-tip::before { content: ''; position: absolute; top: -9px; left: calc(var(--ax, 50%) - 8px); border: 8px solid transparent; border-top: 0; border-bottom: 8px solid #151410; }
body.normal-ui .nt-tip::after { content: ''; position: absolute; top: -6px; left: calc(var(--ax, 50%) - 6px); border: 6px solid transparent; border-top: 0; border-bottom: 6px solid #2a2520; }
body.normal-ui .nt-tip .nt-tip-ic { grid-column: 1; grid-row: 1; display: inline-flex; width: 18px; height: 18px; }
body.normal-ui .nt-tip .nt-tip-ic > * { width: 18px !important; height: 18px !important; }
body.normal-ui .nt-tip > b { grid-column: 2; grid-row: 1; font: 400 17px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; color: #fff; }
body.normal-ui .nt-tip > em { grid-column: 3; grid-row: 1; justify-self: start; font: 700 11px/1 var(--body); font-style: normal; color: #ffd95e; white-space: nowrap; }
body.normal-ui .nt-tip[data-kind="materiel"] > em { color: #c3d48a; }
body.normal-ui .nt-tip > .nt-tip-does { grid-column: 1 / span 3; grid-row: 2; color: #eadbc3; }
body.normal-ui .nt-tip > .nt-tip-from { grid-column: 1 / span 3; grid-row: 3; color: #b3aaa0; font-weight: 500; }
body.normal-ui .nt-tip > .nt-tip-go { grid-column: 4; grid-row: 1 / span 3; align-self: center; display: inline-flex; align-items: center; gap: 4px; padding: 6px 7px 5px; border: 1px solid #f2766180; color: #f27661; font: 400 12px/1 var(--display); font-style: normal; letter-spacing: .07em; text-transform: uppercase; background: #121113; }
body.normal-ui .nt-tip > .nt-tip-go::after { content: ''; width: 5px; height: 5px; border: solid currentColor; border-width: 2px 2px 0 0; transform: rotate(45deg); }

/* ---- buttons that fill their areas: a lone plot (one a province since build 180) is one wide plate across its row, its picture on
   the left, its name, its level or what is going on, and a line saying what it is for or what a tap does (NormalHud.plotHint) ---- */
#modal .normal-sheet .normal-plots[data-n="1"] { justify-content: stretch; }
#modal .normal-sheet .normal-plots[data-n="1"] > .normal-plot { flex: 1 1 auto; grid-template-columns: 92px minmax(0, 1fr); grid-template-rows: 1fr auto auto auto 1fr; column-gap: 12px; row-gap: 3px; justify-items: start; min-height: 70px; padding: 4px 12px 4px 4px; text-align: left; }
#modal .normal-sheet .normal-plots[data-n="1"] > .normal-plot > .normal-plot-icon { grid-column: 1; grid-row: 1 / -1; width: 92px; height: 60px; place-items: center; }
#modal .normal-sheet .normal-plots[data-n="1"] > .normal-plot > b { grid-column: 2; grid-row: 2; font-size: 17px; }
#modal .normal-sheet .normal-plots[data-n="1"] > .normal-plot > :is(small:not(.np-hint), .normal-pips) { grid-column: 2; grid-row: 3; }
#modal .normal-sheet .normal-plots[data-n="1"] > .normal-plot > .np-hint { grid-column: 2; grid-row: 4; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #cfc5b6; font: 600 11px/1.2 var(--body); letter-spacing: 0; text-transform: none; }
#modal .normal-sheet .normal-plots[data-n="1"] > .normal-plot.open { border-style: dashed; border-color: #b89a55; }
#modal .normal-sheet .normal-plots[data-n="1"] > .normal-plot.open > b { color: #ffd95e; }
#modal .normal-sheet .normal-plots[data-n="1"] > .normal-plot.open::after { content: ''; position: absolute; right: 12px; top: 50%; width: 8px; height: 8px; border: solid #ffd95e; border-width: 2px 2px 0 0; transform: translateY(-50%) rotate(45deg); }
/* the build cards' red button before a building is picked says what to do, not a bare word */
#modal .normal-sheet #normal-go .ngo-pick { font: 600 12px/1 var(--body); letter-spacing: 0; text-transform: none; color: #f0c4b3; }
/* the Economy sheet's two purses are named too */
#modal .normal-sheet .normal-stat .ne-word { font: 400 11px/1 var(--display); font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: #ffd95e; }
#modal .normal-sheet .normal-stat:nth-child(2) .ne-word { color: #c3d48a; }
#modal .normal-sheet .normal-stat-n:has(> .ne-word) { flex-wrap: wrap; justify-content: center; row-gap: 1px; column-gap: 5px; }

/* ---- a short phone (700 px and under), last so it wins ---- */
@media (max-height: 700px) {
  #modal .normal-sheet .normal-plots[data-n="1"] > .normal-plot { min-height: 56px; }
  #modal .normal-sheet .normal-plots[data-n="1"] > .normal-plot > .normal-plot-icon { height: 48px; }
  /* (six build cards on a short phone: the model, the name, and only a stamp where there is one, "Needs a coast" or Owned; what a
     building does is the line under them once it is tapped; the header's model plate a step smaller) */
  #modal .normal-sheet .normal-cards.six .normal-card { position: relative; grid-template-rows: 30px 13px; padding: 2px 2px 3px; row-gap: 1px; }
  #modal .normal-sheet .normal-cards.six .normal-card-icon { height: 30px; }
  #modal .normal-sheet .normal-cards.six .normal-card > b { font-size: 13px; }
  #modal .normal-sheet .normal-cards.six .normal-card > .normal-fx { display: none; }
  #modal .normal-sheet .normal-cards.six .normal-card > em { position: absolute; left: 50%; bottom: 21px; z-index: 1; font-size: 10px; line-height: 1; background: #121113; transform: translateX(-50%) rotate(-2deg); } /* (laid over the model's foot: every card one height) */
  #modal .normal-sheet .normal-cards.six ~ .normal-does { margin-top: 3px; font-size: 11px; }
  #modal .normal-sheet:has(.normal-cards.six) .normal-plate.model { width: 44px; height: 44px; }
  #modal .normal-sheet .nr-card { min-height: 52px; padding-top: 4px; padding-bottom: 4px; }
  #modal .normal-sheet .nr-card > .nr-art { width: 36px; height: 36px; }
  #modal .normal-sheet .nr-card > .nr-art .wi { width: 26px; height: 26px; }
  #modal .normal-sheet .nr-go { min-height: 38px; }
}

/* build 181, round 2, P2a ==== end */
/* build 181, round 2, P2b: units (docs/ui/normal-hud-181.md "Stacks, wings and fleets"). Under the unit bar's head the row of a
   stack's two kinds (#nu-kinds): each a small steel plate with the kind's picture, its name, its troops and a red OUT stamp, a tap on
   it taking that kind out; Strike, Rebase, Sail and Bombard on the dock's plates (their skin is the shared rule above), a wing's or a
   fleet's verbs first; the target strip's order word and its chips of what will be hit; the Rebase rows. */
.normal-unitbar .nu-kinds { display: flex; align-items: center; gap: 6px; margin: -2px 0 6px; }
.normal-unitbar .nu-kinds[hidden] { display: none; }
.normal-unitbar .nu-kind { flex: 1 1 0; min-width: 0; height: 34px; display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 0 4px 0 7px;
  border: 1px solid #5a4d40; border-top: 0; border-radius: 3px; color: #efe6d6; text-shadow: 0 1px 0 #000; white-space: nowrap; touch-action: manipulation;
  background: repeating-linear-gradient(90deg, #ffffff05 0 1px, transparent 1px 3px), linear-gradient(180deg, #8c7c68 0 1px, #3a342d 1px, #23201c 50%, #141210 100%);
  box-shadow: 0 2px 0 #050505, inset 0 1px 0 #f2d9a926, inset 0 -1px 0 #00000080; }
.normal-unitbar .nu-kind:active { transform: translateY(1px); box-shadow: 0 1px 0 #050505, inset 0 1px 0 #f2d9a926; }
.normal-unitbar .nu-kind-art { flex: none; display: inline-flex; }
.normal-unitbar .nu-kind-art :is(.wi, .nu-svg) { width: 18px; height: 18px; color: #f2eee6; }
.normal-unitbar .nu-kind b { min-width: 0; overflow: hidden; text-overflow: ellipsis; font: 700 11px/1 var(--display); letter-spacing: .08em; font-variant: small-caps; color: #d9cbb4; }
.normal-unitbar .nu-kind em { flex: none; font: 400 15px/1 var(--display); font-style: normal; letter-spacing: .03em; color: #f2b705; font-variant-numeric: tabular-nums; }
.normal-unitbar .nu-out { flex: none; margin-left: auto; display: inline-flex; align-items: center; gap: 3px; height: 22px; padding: 1px 6px 0 5px; background: linear-gradient(180deg, #ff3b44 0 1px, #4a1518 1px, #2a0d0f 100%);
  border: 1px solid #e0242d; border-radius: 2px; color: #ffd6cf; font: 400 11px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.normal-unitbar .nu-out .nu-svg { width: 12px; height: 12px; color: #ffd6cf; }
.normal-unitbar .nu-kind.short { color: #8d857b; }
.normal-unitbar .nu-kind.short em { color: #8d857b; }
.normal-unitbar .nu-kind.short .nu-out { background: #1a1917; border-color: #3a342c; color: #8d857b; }
.normal-unitbar .nu-kind.short .nu-out .nu-svg { color: #8d857b; }
.normal-unitbar .nu-kind-dot { flex: none; width: 5px; height: 5px; background: #c8202a; transform: rotate(45deg); box-shadow: 0 0 0 1px #0b0b0b; }
.normal-unitbar .nu-acts .ncmd:is([data-nunit="strike"], [data-nunit="sail"]) { order: -2; }
.normal-unitbar .nu-acts .ncmd:is([data-nunit="rebase"], [data-nunit="bombard"]) { order: -1; }
.normal-unitbar .ncmd .nu-svg.nu-rebase { color: #f2b705; }
.normal-unitbar .ncmd:is([data-nunit="strike"], [data-nunit="bombard"]):not(.short) .ncmd-line { color: #9fe3a0; }
#modal .normal-sheet .nu-rebase-row .normal-row-icon .nu-svg { width: 22px; height: 22px; color: #f2b705; }
@media (max-width: 360px) { .normal-unitbar .nu-kind b { display: none; } } /* (a narrow phone: the picture, the troops and OUT) */
/* the target strip for a wing's or a fleet's aim (NormalHud.unitsOdds): the order in red small caps before the place (cream for a
   Sail or a Rebase), the place taking the room so the close button stands at the right, then chips */
.oddsbar.nob-units .nob-verb { flex: none; margin-right: 6px; padding: 2px 5px 1px; background: #2a0d0f; border: 1px solid #e0242d; color: #ffb3a8; font: 400 12px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.oddsbar.nob-units .nob-verb.go { background: #23201c; border-color: #cfc8b8; color: #f2eee6; }
.oddsbar.nob-units .ob-row > .ob-x { margin-left: auto; }
.oddsbar.nob-units .ob-row > .ob-eta + .ob-x { margin-left: 4px; }
.oddsbar.nob-units .nob-hits { flex-wrap: wrap; gap: 4px; }
.oddsbar.nob-units .nob-hit { display: inline-flex; align-items: center; gap: 4px; min-height: 26px; padding: 0 7px; background: #121113; border: 1px solid #51463c; color: #eadbc3; font: 400 13px/1 var(--display); letter-spacing: .04em; white-space: nowrap; }
.oddsbar.nob-units .nob-hit :is(.wi, .nu-svg, canvas, i[data-glyph]) { flex: none; width: 16px !important; height: 16px !important; color: #f2eee6; }
.oddsbar.nob-units .nob-hit.hot { border-color: #b5523b; color: #ffd6cf; }
.oddsbar.nob-units .nob-hit.cold { color: #8d857b; }
@media (max-height: 700px) {
  .normal-unitbar .nu-kinds { padding: 2px 6px; margin-bottom: 4px; }
  .normal-unitbar .nu-kind :is(.wi, .nu-svg) { width: 16px; height: 16px; }
}
/* build 181, round 2, P2b ==== end */

/* build 181, the join: the unit bar's amount lines stay on one line (with four or more orders they wrapped and were clipped at 390x844) */
.normal-unitbar .nu-acts .ncmd .ncmd-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* build 186, Normal's shown numbers and compact counters ==== begin (docs/ui/normal-hud-181.md "Build 186"). Last in the file, so a
   same-weight rule here wins; nothing here makes a sheet, the dock or the unit bar taller. */
/* an unresearched line has no rank mark (NormalArt.UNIT_RANKS[0] is ''): its badge keeps its column but shows nothing */
.normal-unit-rank:empty { visibility: hidden; }
#modal .normal-sheet button.na-train .nr-rank:empty { display: none; }
/* what decides an attack's odds (NormalHud.oddsWhy): two or three small chips on one line under the odds, in place of the verdict
   line they replace */
.oddsbar .nob-why { display: flex; flex-wrap: nowrap; gap: 4px; margin-top: 4px; min-width: 0; overflow: hidden; }
.oddsbar .nob-why:empty { display: none; }
.oddsbar .nob-c { flex: none; display: inline-flex; align-items: center; gap: 3px; height: 20px; padding: 0 6px 0 4px; background: linear-gradient(170deg, #211f1b, #121113 72%); border: 1px solid #5a4d40; box-shadow: 0 1px 0 #070807; color: #eadbc3; font: 400 12px/1 var(--display); letter-spacing: .02em; white-space: nowrap; }
.oddsbar .nob-c b { color: #f2eee6; font-weight: 400; font-variant-numeric: tabular-nums; }
.oddsbar .nob-c small { color: #8d857b; font: 400 10px/1 var(--body); text-transform: uppercase; letter-spacing: .06em; }
.oddsbar .nob-c :is(.wi, canvas, img, i[data-glyph]) { flex: none; width: 14px !important; height: 14px !important; }
.oddsbar .nob-c.bad { border-color: #8a3a2a; color: #ffb3a8; }
.oddsbar .nob-c.good { border-color: #6b7a45; color: #c3d48a; }
/* the battalions you could add to an order (NormalHud.syncTarget's chips): sized to their number, not stretched across the card, and
   a gold plus on one not in it yet, so a lone chip reads as "add this one" (review 11-24: a full-width box holding a "93") */
.oddsbar .nob-eq.nob-units > button { flex: 0 0 auto; min-width: 64px; padding: 0 10px; }
.oddsbar .nob-eq.nob-units > button:not(.on)::before { content: '+'; margin-right: -1px; color: #ffd95e; font: 400 15px/1 var(--display); }
/* a province's line under its name (owner, Capital, Rich, a truce): wraps to a second row instead of running under Inspect and
   squeezing the owner's name to nothing (review 11-24, a rich capital under a truce at 390 px) */
#modal .normal-sheet .normal-plate.model + .normal-head-text p { flex-wrap: wrap; row-gap: 3px; }
/* the timers under the top bar (an ability, a province being taken): one line each, a long province name cut with an ellipsis, the
   row kept inside the screen (review 11-24: "Taking Morrow" broke over two lines inside a 24 px chip) */
.nt-tacs { max-width: calc(100vw - 24px); }
.nt-tac { flex: 0 1 auto; min-width: 0; white-space: nowrap; }
.nt-tac b { min-width: 0; max-width: 9em; overflow: hidden; text-overflow: ellipsis; font: inherit; }
.nt-tac :is(.wi, small) { flex: none; }
/* build 186 ==== end */
