/* PaveXpress — dark theme matching the production Suite.
   bg #2e2e2e, nav #000, teal #0c7f62 (active) / #005b44 (inactive), yellow #ffdb7f. */
:root {
	--px-bg: #2e2e2e;
	--px-nav: #000000;
	--px-panel: #383838;
	--px-teal: #0c7f62;
	--px-teal-dark: #005b44;
	--px-yellow: #ffdb7f;
	--px-text: #f2f4f5;
	--px-text-dark: #212529;
	--px-muted: #9aa4ad;
	--px-content-bg: #f4f6f8;

	/* THE APP'S COLUMN, expressed as an inset so the chrome can share it.
	   `#PaveXpress-Content` pads 22px and centres a 1000px container inside that, so its
	   left edge is 22 + (W - 44 - 1000)/2, which reduces exactly to (W - 1000)/2 — and
	   never less than the 22px gutter. Any bar using this inset therefore starts on the
	   same pixel as the card below it at every width.
	   As PADDING rather than a wrapper element: the breadcrumb bar is rebuilt with
	   innerHTML on every navigation, so a wrapper inside it would be destroyed. */
	--px-shell-inset: max(22px, calc((100% - 1000px) / 2));

	/* pict-section-modal themes itself entirely via these variables (undefined =
	   transparent). Define them for the dark theme. */
	--pict-modal-overlay-bg: rgba(0, 0, 0, 0.6);
	--pict-modal-bg: #383838;
	--pict-modal-fg: #f2f4f5;
	--pict-modal-border: #4a4a4a;
	--pict-modal-border-radius: 10px;
	--pict-modal-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
	--pict-modal-header-bg: #2b2b2b;
	--pict-modal-header-fg: #ffffff;
	--pict-modal-header-border: #4a4a4a;
	--pict-modal-font-family: inherit;
	--pict-modal-font-size: 14px;
	--pict-modal-title-font-size: 17px;
	--pict-modal-transition-duration: 0.15s;
	--pict-modal-btn-bg: #4a4f56;
	--pict-modal-btn-fg: #eef1f3;
	--pict-modal-btn-hover-bg: #565c64;
	--pict-modal-btn-border-radius: 6px;
	--pict-modal-btn-primary-bg: #0c7f62;
	--pict-modal-btn-primary-fg: #ffffff;
	--pict-modal-btn-primary-hover-bg: #0a6b53;
	--pict-modal-btn-danger-bg: #c0392b;
	--pict-modal-btn-danger-fg: #ffffff;
	--pict-modal-btn-danger-hover-bg: #a93226;
	--pict-modal-toast-bg: #383838;
	--pict-modal-toast-fg: #f2f4f5;
	--pict-modal-toast-success-bg: #0c7f62;
	--pict-modal-toast-warning-bg: #b8860b;
	--pict-modal-toast-error-bg: #c0392b;
	--pict-modal-toast-info-bg: #2b6cb0;
	--pict-modal-toast-border-radius: 8px;
	--pict-modal-toast-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
	--pict-modal-dropdown-bg: #2b2b2b;
	--pict-modal-dropdown-fg: #f2f4f5;
	--pict-modal-dropdown-border: #4a4a4a;
	--pict-modal-dropdown-item-hover-bg: #0c7f62;
	--pict-modal-dropdown-item-hover-fg: #ffffff;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }
body {
	font-family: -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: var(--px-text);
	background: var(--px-bg);
}
a { color: var(--px-teal); }
.px-about { max-width: 720px; color: var(--px-text); padding: 8px; }
.px-about h1 { margin-top: 0; }
.px-about a { color: var(--px-yellow); }

/* Shared button styles */
.px-btn { padding: 9px 16px; border-radius: 6px; border: 1px solid transparent; font-size: 14px; cursor: pointer; }
.px-btn.primary { background: var(--px-teal); color: #fff; }
.px-btn.yellow { background: var(--px-yellow); color: var(--px-text-dark); font-weight: 600; }
.px-btn.secondary { background: #fff; color: var(--px-text-dark); border-color: #c6d0da; }
.px-btn.ghost { background: transparent; color: var(--px-yellow); }
.px-btn.danger { background: #c0392b; color: #fff; }

/* ---- Breadcrumb trail (persistent, under the top nav) ---- */
#px-breadcrumb { flex: none; display: none; flex-wrap: wrap; align-items: center; gap: 2px 4px; background: #242424; border-bottom: 1px solid #3a3a3a; padding: 9px var(--px-shell-inset); font-size: 13px; }
#px-breadcrumb .px-bc-item { color: var(--px-muted); padding: 2px 4px; border-radius: 4px; }
#px-breadcrumb .px-bc-link { color: var(--px-teal); cursor: pointer; }
#px-breadcrumb .px-bc-link:hover { background: #333; color: #16b48c; text-decoration: underline; }
#px-breadcrumb .px-bc-current { color: #e8ecef; font-weight: 600; }
#px-breadcrumb .px-bc-sep { color: #5a5f66; padding: 0 2px; }
@media (max-width: 760px) { #px-breadcrumb { padding: 8px 14px; font-size: 12px; } }

/* ==== Shared editor chrome: Build mode and Review mode ====================
   One header, one line of navigation, one review layout — used by the Design
   wizard and all six module editors. Everything here is bound to
   AppData.PaveXpress.Chrome and rendered from templates on the layout view, so
   the seven editors cannot drift apart again the way their private copies did. */

/* ---- Editor header: identity, mode switch, save state ---- */
.px-ed-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.px-ed-id { flex: 1; min-width: 170px; }
/* The save state rides the name's BASELINE rather than being centered against it —
   at 12px beside a 19px name, centring makes the small text look like it is
   floating. */
.px-ed-nameline { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.px-ed-name { font-size: 19px; font-weight: 700; color: #fff; line-height: 1.25; }
.px-ed-type { font-size: 12px; color: var(--px-muted); }

/* The Build/Review segmented toggle is GONE — Review's way back is the "Back to
   Build" button on the header, and Build's way forward is the last step's own
   controls (I-161). Its styling block sat here for a while after the control
   left, which is exactly how a removed control gets resurrected; UC-12's check
   caught its hide-list entries, and UC-14 removed the rest. */

/* ---- Build mode: one line of navigation ---- */
/* THE BAR IS PINNED AT EVERY WIDTH (F-01). It sat above the card, so on a long step
   both the way forward and the only signal that the step was incomplete scrolled out
   of sight — which is what was actually being asked for: not a second Next button, but
   an answer to "have I finished this page" available while filling it in. Below 760px
   this already happened, and it is the same bar with the same controls, so widening
   the rule is not a second design to keep in step.
   Inset to the shell's own measure rather than full-bleed: a 1000px column with a bar
   spanning the whole viewport reads as chrome belonging to the window, not the step.
   The percentage in --px-shell-inset resolves against the viewport here, which is what
   a fixed element wants anyway. */
.px-stepbar { position: sticky; top: 0; z-index: 40;
	display: flex; align-items: center; gap: 10px; background: var(--px-teal); border: 1px solid #0a6b53;
	border-radius: 8px; padding: 10px 12px; margin-bottom: 12px;
	box-shadow: 0 6px 18px rgba(0,0,0,0.28); }
/* THE BAND IS TEAL, and teal already means progress everywhere else in this app -- the
   meter, a completed step's tick. Directly above the white card it reads as your
   position in the work rather than as window chrome, which is what a near-black strip
   spanning the viewport read as. Owner-ruled 2026-08-25 (I-161).

   STICKY AT THE TOP, not fixed at the foot. It sat at the foot because above the card it
   scrolled out of sight on a long step, taking the only signal that the step was
   incomplete with it (F-01, I-151). Sticky keeps David's fix -- it never leaves the
   screen -- and puts the step heading and the Steps menu back where the eye starts. */
.px-stepbar .px-sb-count { color: #bfe6da; }
.px-stepbar .px-sb-arrow { background: #0a6b53; border-color: #0f9074; }
.px-stepbar .px-sb-arrow:hover { background: #12a082; }
.px-stepbar .px-sb-steps { background: #0a6b53; border-color: #12a082; color: #eafaf4; }
.px-stepbar .px-sb-steps:hover { background: #12a082; }
.px-stepbar .px-sb-meter { background: #0a6b53; }
/* The meter goes YELLOW because teal-on-teal is invisible. Yellow is the app's other
   brand color and is not otherwise load-bearing in this bar. */
.px-stepbar .px-sb-meter i { background: var(--px-yellow); }
/* Next cannot be the solid teal button on a teal band, so it is outlined. It stays the
   most prominent thing in the row through size and position rather than fill -- and
   when the step is blocked it still goes solid red, which now reads even louder against
   the teal than it did against #2b2b2b. */
.px-stepbar .px-sb-next { background: #0a6b53; border: 1px solid #4fd0ae; color: #fff; }
.px-stepbar .px-sb-next:hover { background: #12a082; }
/* What is still missing, beside where you are — see PaveXpress-Step-Needs. A button
   since I-161: it takes you to the first field the step is missing. Styled as text
   because it sits inside a line of text, but it is underlined on hover so it does not
   have to be discovered by accident. */
.px-sb-needs { color: #f0a8a2; font-weight: 600; margin-left: 5px; background: none;
	border: 0; padding: 0; font: inherit; cursor: pointer; }
.px-sb-needs:hover { color: #ffc9c4; text-decoration: underline; }
.px-sb-needs i { font-size: 11px; }
/* The same count, on each row of the Steps menu (I-161). */
.px-sm-count { margin-left: auto; flex: none; align-self: center; padding-left: 8px;
	font-size: 11px; font-weight: 600; color: #f0a8a2; white-space: nowrap; }
.px-sb-arrow { width: 36px; height: 36px; flex: none; border-radius: 6px; border: 1px solid #4d4d4d; background: #333; color: #e8ecef; font-size: 16px; cursor: pointer; }
.px-sb-arrow:hover { background: #3d3d3d; }
.px-sb-arrow.disabled { opacity: 0.35; pointer-events: none; }
.px-sb-where { flex: 1; min-width: 0; }
.px-sb-count { font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: #8d959c; }
.px-sb-title { font-size: 15px; font-weight: 700; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* A quiet progress meter: it says "six steps, you are on the fourth" without
   being read. Deliberately thin — the step count beside it is the precise form. */
.px-sb-meter { flex: 0 1 130px; height: 4px; border-radius: 2px; background: #3f3f3f; overflow: hidden; }
.px-sb-meter i { display: block; height: 100%; background: var(--px-teal); border-radius: 2px; transition: width 0.18s ease; }
.px-sb-menuwrap { position: relative; flex: none; }
.px-sb-steps { background: #333; border: 1px solid #4d4d4d; color: #e8ecef; font-size: 13px; font-weight: 600; padding: 8px 12px; border-radius: 6px; cursor: pointer; white-space: nowrap; }
.px-sb-steps:hover { background: #3d3d3d; }
.px-sb-next { flex: none; white-space: nowrap; }
/* Blocked Next is red and still clickable: pressing it is how you find out what
   is missing, so it must not be disabled into silence. */
.px-stepbar .px-sb-next.blocked { background: #8c2f28; border-color: #d4756c; }
.px-stepbar .px-sb-next.blocked:hover { background: #a03a32; }

.px-stepmenu { display: none; position: absolute; right: 0; top: calc(100% + 6px); z-index: 70; width: 290px; max-height: 340px; overflow: auto; background: #2f2f2f; border: 1px solid #4d4d4d; border-radius: 8px; box-shadow: 0 12px 30px rgba(0,0,0,0.45); padding: 5px; }
.px-stepmenu.open { display: block; }
.px-sm-item { display: flex; align-items: flex-start; gap: 9px; width: 100%; text-align: left; background: none; border: none; color: #e8ecef; font-size: 13px; padding: 8px 9px; border-radius: 6px; cursor: pointer; }
.px-sm-item:hover { background: #3a3a3a; }
.px-sm-mark { width: 17px; flex: none; color: #7f888f; line-height: 1.5; }
.px-sm-text { display: flex; flex-direction: column; min-width: 0; }
.px-sm-title { font-weight: 600; }
.px-sm-note { font-size: 11.5px; color: #8d959c; white-space: normal; }
.px-sm-item.done .px-sm-mark { color: var(--px-teal); }
.px-sm-item.active { background: #3a3a3a; }
.px-sm-item.active .px-sm-mark { color: var(--px-yellow); }
/* A step the engineer cannot reach yet. Listed rather than hidden, so the shape of
   the work stays visible — but plainly unavailable, and carrying the name of the
   step that is in the way. */
.px-sm-item.locked { color: #8d959c; }
.px-sm-item.disabled { opacity: 0.4; pointer-events: none; }
.px-sm-sep { height: 1px; background: #4d4d4d; margin: 5px 4px; }

/* ---- Review mode: every section on one page, with a rail ----
   The stacked-section layout is shared with the old full-page mode, which is why
   .px-page still keys it; .px-review adds the rail and makes the page inert. */
.px-mw-section { margin-bottom: 14px; }
.px-mw-sectitle { display: none; }
.px-page .px-mw-card { border-radius: 8px; margin-top: 0; }
/* So the solve scrim can cover exactly the card it belongs to. */
.px-page .px-mw-card { position: relative; }
.px-page .px-mw-section { background: #f4f6f8; border-radius: 8px; margin-bottom: 16px; overflow: hidden; }
.px-page .px-mw-section > .px-mw-card { border-radius: 0; }
.px-page .px-mw-sectitle { display: block; background: var(--px-teal); color: #fff; font-size: 15px; font-weight: 700; padding: 11px 22px; margin: 0; }

/* Head across the top, rail beside the content. A grid rather than a flex row so
   the header cannot be dragged into the rail column on a narrow desktop. */
.px-review { display: grid; grid-template-columns: 190px minmax(0, 1fr); grid-template-areas: "head head" "jump jump" "rail main"; column-gap: 22px; }
.px-review .px-ed-head { grid-area: head; }
.px-review .px-railjump { grid-area: jump; }
.px-review .px-rail { grid-area: rail; }
.px-review .px-review-main { grid-area: main; }
.px-review-main { min-width: 0; }
.px-rail { position: sticky; top: 12px; align-self: start; display: flex; flex-direction: column; gap: 2px; }
.px-rail-label { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: #7f888f; padding: 0 10px 6px; }
.px-rail-item { text-align: left; background: none; border: none; border-left: 2px solid #3f3f3f; color: var(--px-muted); font-size: 13px; padding: 7px 10px; cursor: pointer; }
.px-rail-item:hover { color: #fff; border-left-color: var(--px-teal); background: #2b2b2b; }
.px-rail-leave { text-align: left; background: none; border: none; color: var(--px-teal); font-size: 13px; font-weight: 600; padding: 12px 10px 0; cursor: pointer; }
/* The rail's stand-in below 1100px. It carries the print control too — the rail is
   display:none at this width, so without it a phone had no way to print at all. */
.px-railjump { display: none; margin-bottom: 12px; gap: 8px; }
.px-railjump select { flex: 1 1 auto; min-width: 0; padding: 9px 10px; border-radius: 6px; border: 1px solid #4d4d4d; background: #2f2f2f; color: #e8ecef; font-size: 14px; }
.px-railjump-print { flex: none; width: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; border: 1px solid #4d4d4d; background: #2f2f2f; color: #e8ecef; font-size: 17px; cursor: pointer; }
.px-railjump-print:hover { background: #3a3a3a; color: #fff; }
.px-railjump-print:focus-visible { outline: 2px solid var(--px-teal); outline-offset: 2px; }

/* Review is read-only: switching to Build is how you edit, which keeps a shared
   or printed review from being changed by a stray click. Inputs are dimmed and
   inert; the controls that add or remove rows go entirely. */
.px-review .px-mw-card input, .px-review .px-mw-card select, .px-review .px-mw-card textarea,
.px-review .px-wiz-card input, .px-review .px-wiz-card select, .px-review .px-wiz-card textarea
	{ pointer-events: none; background: #eef1f4; color: #4b5865; }
.px-review .px-mw-card input[type="checkbox"], .px-review .px-wiz-card input[type="checkbox"] { opacity: 0.6; }
/* EVERY button in a card goes, BY CONVENTION, NOT BY LIST (UC-1). This rule used to
   name three remove classes — two modules' worth, in a seven-module app, plus one
   (.px-addrow) that no view emitted any more — so five modules' add/remove/reorder
   controls stayed live in Review and a click on "+ Add Alternative" edited and
   autosaved a page that promises it cannot be changed. Matching the element instead
   of an enumerated class list is the same repair the print rules already made for
   fields ("MATCHED BY CONVENTION, NOT BY LIST", below): a control a new module adds
   is hidden here by default, and staying visible in Review is the opt-in.
   The exemptions are the whole allowlist: the ⓘ field help and "Show calculations"
   are reading aids, not edits; the calculation report's own controls (inside
   #px-calc-inline) only fold and unfold what is already shown; and anything inside
   a .px-solve dialog keeps its buttons so a dialog left open across a mode switch
   cannot trap the user with no Close. */
.px-review :is(.px-mw-card, .px-wiz-card)
	button:not(.px-info):not(.px-calc-toggle):not(#px-calc-inline *):not(.px-solve *)
	{ display: none; }
/* The LCCA timeline is an editor in Build and a picture in Review: the bars stop
   taking the pointer (the drag and press-to-open handlers deny in Review anyway,
   but a grab cursor over a read-only page is a promise the page cannot keep), the
   resize grips go, and so does the caption that teaches the drag gesture. */
.px-review .px-lct-bar { pointer-events: none; cursor: default; }
.px-review .px-lct-grip, .px-review .px-lct-grip-hit { display: none; }
.px-review .px-lct-editnote { display: none; }
/* Structure's Locations section accepts a click as a new row in Build. In Review the
   drawing is inert and the empty-state invitation ("click anywhere on the section")
   goes with its button — an instruction to edit has no place on the read-only page. */
.px-review .px-sw-svg.px-sw-clickable { pointer-events: none; cursor: default; }
.px-review .px-sw-emptystate { display: none; }

/* The calculation trace is built into this host only at the moment of printing;
   on screen it is empty and invisible either way. */
#px-print-calcs { display: none; }
.px-inputs-head { display: none; }

/* The printed heading. Not rendered on screen at all — the header above already
   says what this scenario is, and saying it twice would be noise. */
.px-printhead { display: none; }

/* The rail's only control now that navigation is all it does, so it reads as one
   rather than as a fourth item in the section list. */
.px-rail-print { text-align: left; background: none; border: none; border-top: 1px solid #4a4a4a; color: #e8ecef; font-size: 13px; font-weight: 600; margin-top: 12px; padding: 12px 10px 0; cursor: pointer; display: flex; align-items: center; gap: 7px; }
.px-rail-print:hover { color: #fff; }
.px-rail-print:focus-visible { outline: 2px solid var(--px-teal); outline-offset: 2px; }

/* ---- Print dialog ----------------------------------------------------------
   Print choices belong at the moment of printing, not in a navigation rail under
   a heading that says Sections. See printReview() for the rest of the reasoning. */
.px-pr { display: flex; flex-direction: column; }
.px-pr-scenario { font-size: 11.5px; color: #8a97a4; margin: 0 0 14px; }
.px-pr-grouphead { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 11px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: #eef2f5; padding-bottom: 8px; }
.px-pr-all { background: none; border: none; color: var(--px-teal); font-size: 11.5px; font-weight: 600; letter-spacing: 0; text-transform: none; cursor: pointer; font-family: inherit; padding: 0; }
.px-pr-all:hover { text-decoration: underline; }
.px-pr-all:focus-visible { outline: 2px solid var(--px-teal); outline-offset: 2px; }
.px-pr-chk { display: flex; align-items: center; gap: 9px; padding: 6px 0; font-size: 13.5px; color: #f2f4f5; cursor: pointer; }
.px-pr-chk input { accent-color: var(--px-teal); cursor: pointer; margin: 0; flex: none; }
/* Set apart under a rule: the sections are already on screen, the trace is extra
   material that is not, so it is a different kind of choice. */
.px-pr-calcs { border-top: 1px solid #4a4a4a; margin-top: 12px; padding-top: 12px; }
.px-pr-hint { font-size: 11.5px; color: #8a97a4; line-height: 1.5; margin: 3px 0 0 25px; }
.px-pr-count { font-size: 11.5px; color: #8a97a4; margin: 14px 0 0; }
.px-pr-count.empty { color: #ffb4b4; }

/* ============================================================================
   The module-editor layout system (.px-mw-*)
   ----------------------------------------------------------------------------
   Seven views render through these classes: Agency Cost, Heavy Duty, LCCA, Mix,
   PerRoad, Structure and the Design wizard.

   They used to be declared inside `PictView-PaveXpress-LccaEditor.js`, and reached
   the other six only because pict registers every view at boot and injects the whole
   CSSMap into one document. Six modules were therefore styled by rules living in a
   seventh module's file, where nobody editing them could see who they affected —
   which is how a single edit to that view leaked italics into five modules and
   stretched a checkbox to a full column (I-41).

   Moved here unchanged, values included, so the relocation carries no design
   decision with it. Verified by snapshotting the computed styles of every class
   combination the seven views actually use, before and after: identical.

   THE RULE THIS ESTABLISHES: anything more than one view uses is declared here. A
   view's own CSS block declares only selectors carrying that view's own prefix.
   ============================================================================ */

.px-mw-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.px-mw-title { font-size: 22px; font-weight: 800; }
/* The editor chrome (header, step bar, review rail) and the stacked-section
   page styles are centralized in pavexpress.css. */
.px-mw-card { background: #f4f6f8; color: #212529; padding: 22px; border-radius: 0 0 8px 8px; }
.px-mw-field { margin-bottom: 14px; max-width: 420px; }
.px-mw-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
/* The unit beside a label (UC-8). Promoted from the Design wizard's view CSS —
   the ruling is that a field label is Title Case and its unit sits in this quiet
   span, never baked into the bold label text as "(mi)" — so every module's
   labels set units through it now. Scoped to label: the same class inside a
   table header keeps the header's own voice. */
label .px-units { font-weight: 400; color: #8a97a4; }
.px-mw-field input, .px-mw-field textarea { width: 100%; padding: 8px 10px; border: 1px solid #c6d0da; border-radius: 6px; box-sizing: border-box; }
/* ...except a checkbox, which the rule above stretches to the width of the field and
   pushes its own label off to the right. This is I-41's "stretched a checkbox to a full
   column" a second time, from the other direction: there the rule was in the wrong file,
   here it is in the right file and simply too broad. Declared beside it rather than
   worked around per view, per the rule this file establishes. */
.px-mw-field input[type="checkbox"], .px-mw-field input[type="radio"]
{ width: auto; padding: 0; margin: 0; flex: 0 0 auto; }
.px-mw-row { display: flex; gap: 16px; max-width: 440px; }
/* SIX FIELDS ON A FLEX ROW COULD NOT FIT AND DID NOT SAY SO. Their minimum widths
   summed to 710px plus five 16px gaps inside a 720px cap, so the row wrapped, every
   field collapsed to its minimum, two labels broke onto a second line, and a band of
   empty space sat to the right of it (F-19). An explicit column count says what the
   row is instead of discovering it: two tidy rows of three, which is also the grouping
   — how the simulation runs above, what it varies below. */
/* A closure window and what it works out to. The note is the whole point: both ends
   are inclusive and a window may cross midnight, so reading the hours back is what
   stops the engineer doing that arithmetic in their head (I-148). */
/* An implausible road-user input, annotated beside the result and never instead of it
   (I-156). A warning is amber like the queue notice it sits with; an error - a road with
   no capacity at all - is red, and still does not hide the number. */
.px-uc-finding { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; padding: 10px 12px;
	border-radius: 6px; font-size: 13px; line-height: 1.5; }
.px-uc-finding i { flex: none; margin-top: 1px; }
.px-uc-warning { background: #fff4e5; border: 1px solid #f0c890; color: #8a5a10; }
.px-uc-error { background: #fdeaea; border: 1px solid #e2a9a9; color: #a12b2b; }
.px-wz-period { align-items: flex-start; max-width: 720px; position: relative; }
.px-wz-period-note span { display: block; font-size: 12px; color: #5b6b7c; padding: 9px 0 0; line-height: 1.4; }
.px-wz-period-x { position: absolute; right: -22px; top: 30px; font-size: 17px; }
@media (max-width: 700px) { .px-wz-period-x { position: static; align-self: flex-start; } }
.px-mc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; max-width: 720px; }
@media (max-width: 700px) { .px-mc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .px-mc-grid { grid-template-columns: minmax(0, 1fr); } }
.px-mw-subhead { font-weight: 700; margin: 16px 0 6px; color: #34404d; font-size: 14px; border-top: 1px solid #e5eaf0; padding-top: 12px; }
/* The user-cost form uses wider rows than the default 440px. */
.px-mw-card .px-mw-subhead + .px-mw-row, .px-mw-card .px-mw-row:has(> .px-mw-field:nth-child(3)) { max-width: 720px; }
/* Wide content scrolls inside its own box rather than off the card. Tables here carry
   more columns than a phone is wide, and the overflow was simply clipped: at 375px the
   LCCA Alternatives step lost its Year and Cost columns and every per-activity remove
   button, with no way to reach them, because the page itself does not scroll sideways.
   Declared centrally under the rule above — the same clipping applies to any module
   whose table outgrows the card. */
.px-mw-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* A standing note under a result: what the number IS, for a reader who may be comparing
   it against a differently-defined one elsewhere. Deliberately quieter than a warning,
   because nothing is wrong — it is the reading of the figure that needs saying. */
.px-mw-note { margin: 10px 0 4px; padding: 9px 11px; border-left: 3px solid var(--px-teal, #0c7f62);
	background: #eef4f2; color: #34404d; font-size: 12px; line-height: 1.5; border-radius: 0 4px 4px 0; }
.px-mw-note a { color: var(--px-teal, #0c7f62); }
/* THE warning, app-wide (UC-6). This used to exist in five dialects — the Design
   wizard's box, Mix's orange left-bar, Heavy Duty's off-by-a-hex copy, a class
   Structure referenced that nothing declared (UC-4), and a hand-retyped inline
   copy in the LCCA queue warning — so the same "something here deserves caution"
   read differently in every module that said it. One declaration now, on the
   palette most of them already shared, per the C-17 rule: anything more than one
   view uses is declared here.
   `.px-success` is its counterpart — the same box saying something GOOD (an
   import that landed) — which previously existed only as inline green overrides
   painted over the Mix warning class, a success state wearing a warning class.
   NOT folded in, deliberately: `.px-uc-finding`'s warning/error pair (a distinct
   icon-and-finding component whose amber already matches this one), and the
   `.px-solve-warn` / `.px-compute.stale` tint, which marks staleness rather than
   warning and is a separate ruling if it is to merge. */
.px-warning { background: #fff4e5; border: 1px solid #f0c890; color: #8a5a10;
	padding: 10px 12px; border-radius: 6px; margin: 10px 0; font-size: 13px; line-height: 1.5; }
.px-success { background: #e8f4ea; border: 1px solid #b6d7c9; color: #2c5f4d;
	padding: 10px 12px; border-radius: 6px; margin: 10px 0; font-size: 13px; line-height: 1.5; }
.px-mw-table { width: 100%; border-collapse: collapse; margin: 8px 0 12px; font-size: 13px; }
.px-mw-table th, .px-mw-table td { border-bottom: 1px solid #e5eaf0; padding: 6px 8px; text-align: left; }
.px-mw-table input { width: 100%; padding: 5px 6px; border: 1px solid #c6d0da; border-radius: 4px; box-sizing: border-box; }
.px-mw-remove { color: #b23b3b; border: none; background: none; cursor: pointer; font-size: 16px; }
/* THE row tools, one set (UC-7). Reorder is the quiet text arrows and delete is
   the red x, in every module that has rows — Design and PerRoad used to carry a
   different dialect each (bordered chevron buttons, a trash icon on the criterion
   rows), which made the same act read as a different control per module. Promoted
   here from the Design wizard's view CSS because two views render them now. */
.px-move { color: #5b6b7c; cursor: pointer; border: none; background: none; font-size: 14px; padding: 2px 4px; }
.px-move[disabled] { opacity: 0.25; cursor: default; }
/* Hide a control without collapsing the table cell it sits in — a line item's
   thickness and density belong to some quantity methods and not others, and
   hiding the <td> instead would take the column out of alignment on that row
   only. A class rather than an inline style, so a stylesheet rule can still win
   (see the inline-style trap in CLAUDE.md). */
.px-hidden { display: none; }
/* The derived quantity, reported rather than offered for editing: it is what the
   geometry produced, and an input here would discard whatever was typed into it
   on the next render. */
.px-agency-derived { font-size: 12px; color: #5b6b7c; }
.px-agency-per { font-size: 11px; color: #7b8794; }
/* Wide enough for the longest option rather than for the column the table would
   otherwise squeeze them into: "Volume (cu yd)" clipped to "Volume (cu yc" says
   nothing about what the unit cost is charged against, which is the entire reason
   the unit is in the label. A table at width:100% shrinks its cells below their
   content when the card is narrow, so without a floor these truncate on exactly
   the screens where the label matters most. Measured against the longest option —
   "Area × depth (sq yd-in)" at 151px of text, PLUS the 44px these selects spend on
   padding — 10px left and 34px right for the custom arrow — because they are
   border-box. Measuring the text alone and forgetting the padding is how the first
   attempt at this still truncated. The table already scrolls inside .px-mw-scroll,
   so the width is paid for in horizontal scroll rather than in truncation. */
.px-agency-method { min-width: 200px; }
.px-agency-extent { min-width: 132px; }
/* Duplicate an activity. Quieter than the primary buttons and louder than the
   remove x, which is the order these are reached for. */
/* A value the app worked out, sitting in the row where an input would be. Styled
   to read as an ANSWER rather than a field somebody forgot to make editable. */
.px-mw-derived { padding: 6px 2px; font-size: 13px; font-weight: 600; color: #35506b; white-space: nowrap; }
.px-mw-copy { border: 1px solid #c6d0da; background: #fff; color: #35506b; border-radius: 4px;
	padding: 5px 9px; font-size: 12px; cursor: pointer; }
.px-mw-copy:hover { background: #eef4f2; border-color: var(--px-teal, #0c7f62); }
/* A button that reads as a link, for a secondary errand beside a control. */
.px-linkbtn { border: none; background: none; padding: 0; color: var(--px-teal, #0c7f62);
	font-size: 13px; cursor: pointer; text-decoration: underline; }

/* ---- Cumulative cost plot -------------------------------------------------
   Inline SVG, no plotting library: this is two polylines and an axis, and a
   chart dependency would be several hundred kilobytes shipped to every user of
   every module for one screen. SVG also prints, which is where the plot earns
   its place — the printed estimate is what gets filed. */
.px-plot-wrap { margin-top: 18px; }
/* min-width, not just max: the SVG scales with its viewBox, so on a 375px phone
   a 640-wide plot renders its 10px axis labels at under 5px. Below 420 it keeps
   its size and scrolls inside .px-mw-scroll instead — the same trade the
   cross-section table makes, and for the same reason: a label too small to read
   is not a smaller version of the information. */
.px-plot { width: 100%; height: auto; min-width: 420px; max-width: 720px; display: block; margin: 6px 0 4px; overflow: visible; }
.px-plot-wrap .px-mw-scroll { padding-bottom: 2px; }
/* The PerRoad distribution plot is drawn on a 560-unit canvas where the others
   use 640, so the same min-width would render its labels smaller. Matching the
   .px-plot floor rather than inventing a second one: 10px type on a 420-wide
   render is ~6.6px either way, and below that it scrolls inside .px-mw-scroll
   rather than shrinking, for the reason given above — a label too small to read
   is not a smaller version of the information. */
.px-perroad-plot { background: #fff; border: 1px solid #e5eaf0; border-radius: 6px; min-width: 420px; max-width: 620px; }
/* Four season boxes on one .px-mw-row come out 64px wide on a phone, which is narrower
   than the word "Summer" above them. Wrapping to 2x2 is the only arrangement that fits;
   scoped to this row rather than changing .px-mw-row, which every module uses. */
.px-perroad-seasoncov { flex-wrap: wrap; }
.px-perroad-seasoncov .px-mw-field { flex: 1 1 140px; }
.px-perroad-plot text { font-size: 10px; }
.px-plot-grid { stroke: #e5eaf0; stroke-width: 1; }
.px-plot-axis { stroke: #c6d0da; stroke-width: 1; }
.px-plot-tick { stroke: #c6d0da; stroke-width: 1; }
.px-plot-ylabel { fill: #5b6b7c; font-size: 10px; text-anchor: end; }
.px-plot-xlabel { fill: #5b6b7c; font-size: 10px; text-anchor: middle; }
.px-plot-axistitle { fill: #7b8794; font-size: 10px; text-anchor: middle; }
/* Butt caps and miter joins, deliberately: a stepped series is a sequence of
   right angles and a round join softens the corner the step exists to show. */
.px-plot-line { fill: none; stroke-width: 2; stroke-linejoin: miter; stroke-linecap: butt; }
.px-plot-line.nominal { stroke: var(--px-teal, #0c7f62); }
.px-plot-line.worth { stroke: #8aa4bb; stroke-dasharray: 5 3; }
.px-plot-dot { fill: var(--px-teal, #0c7f62); }
.px-plot-key { font-size: 12px; color: #5b6b7c; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.px-plot-swatch { display: inline-block; width: 16px; height: 0; border-top: 2px solid var(--px-teal, #0c7f62); }
.px-plot-swatch.worth { border-top-style: dashed; border-top-color: #8aa4bb; margin-left: 12px; }

/* ---- Line item catalog manager --------------------------------------------
   ON THE DARK MODAL SURFACE. pict-section-modal's body is #383838 with light
   text, not a white card — the first cut of this was styled for a light one and
   rendered a near-white table header on a near-white background and a #34404d
   intro paragraph that was invisible against the dark body. Anything placed in
   a modal has to be palette-checked against .pict-modal-dialog, not against the
   page. The values here follow the .px-ps-* settings dialog, which is the other
   thing that lives on this surface. */
.px-lic-intro { font-size: 13px; color: #cfd6dd; margin-bottom: 10px; line-height: 1.5; }
.px-lic-intro b { color: #f2f4f5; }
.px-lic-steps { font-size: 12px; color: #cfd6dd; background: #333; border-left: 3px solid var(--px-teal, #0c7f62);
	padding: 9px 11px; border-radius: 0 4px 4px 0; margin-bottom: 12px; line-height: 1.5; }
.px-lic-steps b { color: #f2f4f5; }
.px-lic-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
/* The file input itself is unstyleable across browsers, so the <label> is the
   button and the input is hidden behind it — clicking the label opens the picker
   because the label is bound to the input's id. NOT display:none: a hidden input
   is unreachable by keyboard, so it is clipped instead and stays focusable. */
.px-lic-file { cursor: pointer; }
#px-lic-upload { position: absolute; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
#px-lic-upload:focus-visible + .px-lic-file, .px-lic-file:focus-visible { outline: 2px solid var(--px-teal, #0c7f62); outline-offset: 2px; }
.px-lic-good { font-size: 13px; color: #b9e3d3; background: #2b3b35; border-left: 3px solid var(--px-teal, #0c7f62);
	border-radius: 0 4px 4px 0; padding: 9px 11px; margin-bottom: 8px; }
.px-lic-good b { color: #f2f4f5; }
.px-lic-bad { font-size: 12px; color: #f3c4c4; background: #3d2b2b; border-left: 3px solid #b23b3b;
	padding: 9px 11px; border-radius: 0 4px 4px 0; margin-bottom: 8px; line-height: 1.5; }
.px-lic-bad b { color: #ffdada; }
/* The rejected-row list can be long; it scrolls rather than pushing the two
   commit buttons off the bottom of the dialog, which is where the user has to
   get to once they have read it. */
.px-lic-bad ul { margin: 6px 0 0; padding-left: 18px; max-height: 150px; overflow-y: auto; }
.px-lic-bad li { margin-bottom: 3px; }
.px-lic-commit { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.px-lic-hint { font-size: 11px; color: #9aa4ad; flex-basis: 100%; line-height: 1.5; }
.px-lic-hint b { color: #cfd6dd; }
/* The catalog can run to hundreds of rows; the dialog must not. */
.px-lic-scroll { max-height: 320px; overflow-y: auto; border: 1px solid #4a4a4a; border-radius: 4px; }
.px-lic-table { width: 100%; border-collapse: collapse; font-size: 12px; color: #e3e7ea; }
.px-lic-table th { position: sticky; top: 0; background: #333; color: #f2f4f5; text-align: left; padding: 7px 9px;
	border-bottom: 1px solid #4a4a4a; font-weight: 600; }
.px-lic-table td { padding: 6px 9px; border-bottom: 1px solid #414141; }
.px-lic-table tr:last-child td { border-bottom: none; }
.px-lic-num { text-align: right; white-space: nowrap; }
.px-lic-none { color: #8a97a4; font-style: italic; }
.px-lic-src { font-size: 10px; padding: 1px 6px; border-radius: 9px; white-space: nowrap; }
.px-lic-own { background: #1f5c46; color: #d7f0e5; }
.px-lic-builtin { background: #414141; color: #b6bec6; }
.px-lic-act { text-align: right; white-space: nowrap; }

/* ---- The single-row item form ---------------------------------------------
   Lives inside the catalog dialog's one swappable body, so it inherits the dark
   modal surface — see the note above .px-lic-intro. */
.px-lif-head { font-size: 15px; font-weight: 600; color: #f2f4f5; margin-bottom: 10px; }
.px-lif-note { font-size: 12px; color: #cfd6dd; background: #333; border-left: 3px solid var(--px-teal, #0c7f62);
	padding: 9px 11px; border-radius: 0 4px 4px 0; margin-bottom: 12px; line-height: 1.5; }
.px-lif-note b { color: #f2f4f5; }
.px-lif-label { display: block; font-size: 11.5px; color: #9aa4ad; margin: 12px 0 4px; }
.px-lif-hint { font-size: 11.5px; color: #8a97a4; margin-top: 4px; line-height: 1.5; }
.px-lif-hint b { color: #cfd6dd; }
/* Wrap rather than squeeze: below about 560px the dialog is narrow enough that
   three fields side by side leaves none of them usable. */
.px-lif-row { display: flex; gap: 12px; flex-wrap: wrap; }
.px-lif-col { flex: 1 1 160px; min-width: 0; }
.px-lif-bad { font-size: 12px; color: #f3c4c4; background: #3d2b2b; border-left: 3px solid #b23b3b;
	padding: 8px 11px; border-radius: 0 4px 4px 0; margin-top: 14px; line-height: 1.5; }
.px-lif-bad ul { margin: 0; padding-left: 18px; }
.px-lif-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 16px; }
/* Pushed away from Save and Cancel, because it is the one button here that
   destroys something. */
.px-lif-remove { margin-left: auto; }
.px-btn.danger { background: #6d2828; border-color: #8c3636; color: #ffdada; }
.px-btn.danger:hover { background: #8c3636; }
/* The catalog picker sits where the "+ Add line item" button used to. Sized to
   the longest entry rather than to its current selection, so it does not jump
   width as the user moves through the list. */
.px-agency-add { max-width: 260px; padding: 6px 8px; border: 1px solid #c6d0da; border-radius: 4px; background: #fff; font-size: 13px; }
.px-mw-metrics { display: flex; gap: 26px; margin-top: 14px; }
.px-mw-metric .v { font-size: 24px; font-weight: 700; color: var(--px-teal); }
.px-mw-metric .l { font-size: 12px; color: #5b6b7c; }
.px-mw-nav { margin-top: 22px; display: flex; gap: 10px; align-items: center; }
.px-mw-nav .sp { flex: 1; }
	

/* A part of a step. The step itself is "Results"; what kind of result it is — design
   guidance, a specification, a simulation — is stated here, in the same register as
   the other parts that step carries (a cost estimate, an LCCA, a mechanistic run).

   THE ITALIC/MUTED/14px IS NOT NEW — it is what this class has always RENDERED. The
   LCCA editor's view CSS redeclared this shared class, and because pict registers
   every view at boot and injects the whole CSSMap, that redeclaration reached all
   five views that use the class regardless of navigation. The declaration here never
   won on the three properties it shared.

   So this is the computed result made honest, not a restyle: Agency Cost, Heavy Duty,
   LCCA and PerRoad render byte-identically before and after. Proof they were authored
   against these values and not the ones this line used to claim — HeavyDutyEditor:170
   sets `font-style:normal` to cancel an italic only the leak supplied, and :107/:121/
   :123 step down to 12px from 14, not from 15.

   Left as one declaration deliberately. Re-deciding what those 23 uses should look
   like is a design change to four modules this Structure work has no business making;
   it is logged as I-41 with the split the uses actually want (heading vs. note). */
/* Now what its own comment always said it was: the name of a part of a step. Weight and
   spacing are Structure's `.px-sw-sectitle`, ratified as the pattern for C-18; size and
   color are inherited from the card, so a heading sits in the card's own voice rather
   than in a smaller, grayer one.

   The italic and the muted gray are gone. Those were never a decision — they came from the
   LCCA editor redeclaring this class in its own view CSS (I-41), and I-41 pinned them only
   so that fixing the leak would not restyle four modules on its way past. Twenty uses have
   since moved to `.px-mw-explain`; the six that remain are all headings. */
.px-mw-sub { font-weight: 700; margin: 14px 0 6px; }

/* Explanatory prose inside a module editor — the OTHER job `.px-mw-sub` was doing for
   twenty of its twenty-five uses (C-18). Values are Structure's `.px-sw-note`, ratified as
   the pattern: quiet enough to read as an aside, not styled like the heading above it.

   Named `-explain` because `.px-mw-note` is already the teal-bordered callout box. */
.px-mw-explain { font-size: 12px; color: #5b6b7c; line-height: 1.55; margin: 0 0 8px; }

/* A criterion's verdict (UC-3). The PerRoad results rows emitted these classes from the
   start and nothing ever declared them, so "Pass" and "Fail" rendered identically — the
   one place the module states its judgment carried no visual judgment. The colors are the
   app's existing verdict vocabulary: `.px-gate-ok` / `.px-gate-bad` in the Design traffic
   helper say pass and fail in exactly these two inks, and `unknown` recedes to the muted
   gray every aside here uses. The weight rides the state, not the row: a verdict that is
   not yet a verdict should not shout like one. */
.px-mw-status { font-size: 12.5px; }
.px-mw-status.pass { color: #2c5f4d; font-weight: 700; }
.px-mw-status.fail { color: #b23b3b; font-weight: 700; }
.px-mw-status.unknown { color: #8a97a4; font-weight: 600; }

/* ---- Inline field errors ----
   The field at fault is outlined and says what it needs, directly under itself.
   Gating failures are red; constructibility WARNS and never blocks, so it is amber
   — the same distinction the guidance panel and the engine's `kind` already make. */
.px-invalid { border-color: #b23b3b !important; background-color: #fdeaea !important; }
/* STILL NEEDED, not yet refused (I-161). A field the engineer has been in and moved on
   from without completing. Amber rather than red because nobody has pressed Next: red
   is the answer to a refusal and spending it earlier leaves nothing louder to say when
   the refusal actually happens. */
.px-incomplete { border-color: #d9a441 !important; background-color: #fdf6e7 !important; }
.px-fielderr { color: #a12b2b; font-size: 12px; line-height: 1.4; margin: 4px 0 2px; max-width: 360px; }
.px-fielderr.warn { color: #8a5a10; }
.px-invalid + .px-fielderr { margin-top: 3px; }
/* A row failure marks its cell and states itself under the table: a sentence
   inside a 90 px column would set that column's width and stretch the row. */
.px-tableerr { margin: -4px 0 12px; display: flex; flex-direction: column; gap: 3px; }
.px-tableerr .px-fielderr { max-width: none; margin: 0; }

/* A failure with nothing on screen to point at. It should never appear — the
   validation:fields check exists to keep it that way — but if a rule outlives its
   field, this is what makes that visible instead of leaving a step unclearable. */
.px-steperr { background: #fdeaea; border: 1px solid #e2a9a9; color: #7a2020; border-radius: 6px; padding: 10px 12px; margin-bottom: 14px; font-size: 13px; }

/* The result row's own actions, at the end of the step that has the numbers. */
.px-result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* ---- Autosave chrome (shared by the Design wizard and every module editor) ----
   No editor has a Save button. The status chip is the only signal that work is
   being persisted, and undo/redo is the safety net that replaced withholding a
   save, so both must look and behave identically everywhere. */
/* The .px-editor-actions wrapper is gone: it held exactly one indicator, and that
   indicator now sits on the scenario's name line where it belongs. */
.px-iconbtn { width: 34px; height: 34px; border-radius: 6px; border: 1px solid #c6d0da; background: #fff; color: #34404d; font-size: 17px; line-height: 1; cursor: pointer; }
.px-iconbtn:hover { background: #eef2f6; }
/* Class and ATTRIBUTE both: templates disable buttons both ways, and a button
   that is disabled but looks alive is the trap the Structure layer cap already
   fell into once ("the enabled-looking one was the one that did nothing"). */
.px-btn.disabled, .px-iconbtn.disabled, .px-btn[disabled] { opacity: 0.4; pointer-events: none; }

/* Save stays invisible until it matters. A dot and a word, in the quietest
   register the header has — there is no Save button to explain and nothing for the
   engineer to do. It becomes loud in the one case that deserves it: a failed save,
   which is the only state where they must act. */
.px-savestate { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #8d959c; white-space: nowrap; }
.px-savedot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.px-savestate.saved { color: #8d959c; }
.px-savestate.pending, .px-savestate.saving { color: #b8a463; }
.px-savestate.error { color: #ffd4d4; background: #6b2626; font-weight: 700; padding: 4px 10px; border-radius: 6px; }


@media (max-width: 900px)
{
	/* The rail costs width a phone does not have, so it becomes a jump-to select
	   above the content rather than a squeezed column beside it. */
	.px-review { display: block; }
	.px-rail { display: none; }
	/* flex, not block: the jump bar now carries the print button beside the select. */
	.px-review .px-railjump { display: flex; }
}

@media (max-width: 760px)
{
	/* THE ROW WRAPS BEFORE ITS FIELDS BECOME SLIVERS (UC-9). A .px-mw-row never
	   wrapped, so a four-field row at 375px dealt its fields 38, 57, 81 and 92
	   pixels — a Lane Width box narrower than its own label. This is the defect
	   the LCCA activity modal already fixed for itself (its rows stack below
	   700px, with a comment explaining that the fields' inline flex:1 beats any
	   media query); the steps the modal opens FROM never got the fix. min-width
	   rather than flex-basis for exactly that reason: the inline flex:1 sets
	   grow/shrink/basis and wins those three, but says nothing about min-width,
	   so the floor holds and the row wraps 2-up where 3 or 4 cannot fit. Scoped
	   to fields that hold a control — a field wrapping a lone button has no
	   business being inflated to 140px. */
	.px-mw-row { flex-wrap: wrap; }
	.px-mw-row > .px-mw-field:has(input, select, textarea) { min-width: 140px; }

	.px-ed-id { flex: 1 0 100%; }

	/* ON A PHONE THE BAR STAYS AT THE FOOT, within thumb reach, full-bleed and edge to
	   edge -- there is no column to sit inside and a thumb is aiming at the whole width.
	   The desktop band moved to the top (I-161) because that is where the eye starts on
	   a large screen; on a phone that is not where the hand is. The bar is one design
	   with one position rule per reach, not two designs. */
	.px-stepbar { position: fixed; left: 0; right: 0; bottom: 0; top: auto;
		border-radius: 0; border: 1px solid #3f3f3f; border-bottom: 0;
		background: #2b2b2b; margin-bottom: 0;
		box-shadow: 0 -8px 24px rgba(0,0,0,0.4);
		padding: 9px 12px calc(9px + env(safe-area-inset-bottom)); }
	.px-stepbar .px-sb-count { color: #8d959c; }
	.px-stepbar .px-sb-arrow { background: #333; border-color: #4d4d4d; }
	.px-stepbar .px-sb-steps { background: #333; border-color: #4d4d4d; color: #e8ecef; }
	.px-stepbar .px-sb-meter { background: #3f3f3f; }
	.px-stepbar .px-sb-meter i { background: var(--px-teal); }
	.px-stepbar .px-sb-next { background: var(--px-teal); border-color: transparent; }
	/* Back at the foot, so the menu opens upward again. */
	.px-stepmenu { top: auto; bottom: calc(100% + 6px); width: min(290px, calc(100vw - 24px)); }
	/* The meter becomes the bar's top edge: full width, out of the row of controls
	   that a thumb is aiming at. */
	.px-sb-meter { position: absolute; top: 0; left: 0; right: 0; height: 3px; border-radius: 0; }
	.px-buildscroll { padding-bottom: 78px; }
}

/* ---- Compare picker (choose scenarios + which inputs/outputs to show) ---- */
.px-cmp-controls { display: flex; flex-wrap: wrap; gap: 18px; background: #383838; border-radius: 8px; padding: 14px 16px; margin-bottom: 16px; }
.px-cmp-group { min-width: 200px; }
.px-cmp-group h4 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--px-muted); }
.px-cmp-opt { display: flex; align-items: center; gap: 7px; font-size: 13px; color: #dfe4e8; padding: 3px 0; cursor: pointer; }
.px-cmp-opt input { accent-color: var(--px-teal); cursor: pointer; }
.px-cmp-subhead { font-size: 11px; text-transform: uppercase; letter-spacing: 0.4px; color: #7d8891; margin: 8px 0 3px; }

/* ---- Project settings / create-project dialog ----
   Sections collapse so creating a project is two fields, and the traffic inputs
   are rebuilt to match the chosen ESAL entry method. */
.px-ps { display: flex; flex-direction: column; }
.px-ps-note { font-size: 12px; color: #9aa4ad; line-height: 1.5; margin: 0 0 14px; }
/* THE FIELD NAME OUTRANKS ITS DESCRIPTION. Label and hint were the same size and
   nearly the same gray, so a defaults group read as one run of small text and the
   thing you were being asked to set had no more weight than the sentence about it
   (owner, 2026-08-24). Bigger, heavier, and near-white against the hint's gray. */
.px-ps-label { display: block; font-size: 13px; font-weight: 600; color: #e8ecef;
	letter-spacing: 0.01em; margin: 10px 0 5px; }
.px-ps-label:first-of-type { margin-top: 0; }
.px-ps-error { font-size: 12px; color: #ff9d9d; min-height: 0; }
/* A GROUP HEADER HAS TO OUTRANK A FIELD LABEL. It used to be 13.5px/400 with no
   background and no rule — a <button> wearing body text, sitting in the same
   visual register as the "Units" label above it, which is why the boundary
   between project identity and engineering defaults read as absent. */
.px-ps-head { width: 100%; background: transparent; border: none; border-top: 1px solid #4a4a4a; color: #eef2f5; font-size: 11.5px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; padding: 13px 0 11px; margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; text-align: left; }
.px-ps-head:hover { color: #fff; }
.px-ps-head:focus-visible { outline: 2px solid var(--px-teal); outline-offset: 2px; }
.px-ps-headname { flex: 1 1 auto; }
.px-ps-headright { display: flex; align-items: center; gap: 8px; flex: none; }
.px-ps-head i { font-size: 15px; color: #8a97a4; }
.px-ps-body { display: none; padding-bottom: 4px; }
.px-ps-body.open { display: block; }

/* ---- Engineering defaults: one disclosure that reports what is inside it ----
   51 fields in 10 groups, of which a typical project overrides none. Collapsed
   is therefore the common case, and the summary line is what makes a closed
   block still useful — it answers "has anyone touched these?" without a click. */
/* The identity fields are DIRECT children of .px-ps; the defaults are nested in
   .px-ps-defaults. When the dialog widens for two columns of defaults, a project
   name stretched to 850px reads badly, so the top of the form keeps its measure. */
.px-ps > .pict-input,
.px-ps > .px-ps-hint,
.px-ps > .px-ps-error { max-width: 440px; }

.px-ps-defaults { margin-top: 16px; }
.px-ps-disclose { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; cursor: pointer; background: #333; color: #f2f4f5; border: 1px solid #4a4a4a; border-radius: 7px; padding: 13px 14px; font-family: inherit; }
.px-ps-disclose:hover { background: #3b3b3b; }
.px-ps-disclose:focus-visible { outline: 2px solid var(--px-teal); outline-offset: 2px; }
.px-ps-disclose i { font-size: 15px; color: #8a97a4; flex: none; }
.px-ps-disclose-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.px-ps-dt { font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 7px; }
.px-ps-ds { font-size: 11.5px; color: #8a97a4; font-weight: 400; }
.px-ps-defaults-body { display: none; padding-top: 2px; }
.px-ps-defaults-body.open { display: block; }
.px-ps-defaults-body .px-ps-note { margin: 12px 0 2px; }

/* A count on a closed group is the whole reason it is still worth reading. Zero
   recedes to an outline; anything else takes the app's "differs from default"
   yellow, the same color the marked rows use. */
.px-ps-count { font-size: 10.5px; font-variant-numeric: tabular-nums; border-radius: 9px; padding: 1px 7px; background: var(--px-yellow); color: #4a3a10; font-weight: 700; letter-spacing: 0; text-transform: none; flex: none; }
.px-ps-count.zero { background: transparent; color: #8a97a4; border: 1px solid #4a4a4a; font-weight: 400; }

/* An overridden row carries a rule, a chip and a colored value; an inherited one
   recedes. This is the distinction that matters in here — not identity versus
   engineering, but inherited versus changed. */
/* EACH ROW OWNS THE GAP BELOW IT, because it cannot come from the next row's label.
   The hint sets no bottom margin and relied on `.px-ps-label { margin-top: 10px }`
   for the separation — but every generated field is its own `.px-psf-row`, so every
   label is a `:first-of-type` and had its top margin zeroed by the rule below. The
   hint and the next field's label came out flush, in every defaults group. The top
   of the dialog looked right only because its labels share one parent, so there the
   reset lands on the one label it was written for. */
.px-psf-row { border-left: 2px solid transparent; padding-left: 0; margin-bottom: 16px; transition: border-color 0.15s ease, background-color 0.15s ease; }
.px-psf-row:last-child { margin-bottom: 0; }
.px-psf-row.over { border-left-color: var(--px-yellow); background: rgba(255, 219, 127, 0.055); padding-left: 11px; }
.px-ps-chip { font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; color: #4a3a10; background: var(--px-yellow); border-radius: 3px; padding: 1px 5px; margin-left: 6px; vertical-align: 1px; }

/* WIDEN ON EXPAND. The dialog renders at 480px against a 1296px max-width, so the
   room was always there. Two columns turn an 11-field group from eleven rows into
   six; below 760px it stays single-column, where the modal is already a
   full-screen sheet and a second column would be unreadable.

   The WIDTH itself is set from toggleSettingsDefaults, not here: pict-section-modal
   writes `width` as an INLINE style, which no stylesheet rule can outrank without
   !important. Only the transition lives in CSS, scoped to dialogs that carry this
   block so the library's own sizing of every other modal is untouched. */
.pict-modal-dialog:has(.px-ps-defaults) { transition: width 0.2s ease; }
@media (min-width: 760px) {
	.px-ps-defaults.open .px-ps-body.open { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; align-items: start; }
}
@media (prefers-reduced-motion: reduce) {
	.pict-modal-dialog:has(.px-ps-defaults.open) { transition: none; }
	.px-psf-row { transition: none; }
}
.px-ps-hint { font-size: 11.5px; color: #8a97a4; line-height: 1.5; margin: 6px 0 0; }
.px-ps-optional { color: #6f7b87; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.04em; margin-left: 4px; }
.px-ps-textarea { resize: vertical; min-height: 46px; font-family: inherit; }

/* Feedback dialog — reuses the settings-dialog label styling. */
.px-fb { display: flex; flex-direction: column; }
.px-fb-note { font-size: 12px; color: #9aa4ad; line-height: 1.5; margin: 0 0 12px; }
.px-fb textarea.pict-input { min-height: 110px; resize: vertical; font-family: inherit; }

/* ---- Form controls -------------------------------------------------------
   Dropdowns are styled to match text inputs. `appearance: none` removes the
   native control — which renders at a different height, border and font on every
   platform — and the chevron is drawn as a background image using the same
   Tabler glyph as the rest of the app, so it looks identical everywhere.

   Two things to know when editing this:
   - Only the CLOSED control can be styled. The open option list is drawn by the
     operating system and no CSS reaches it; that difference is unavoidable.
   - Never set the `background` shorthand on a select. It resets background-image
     and silently erases the chevron; use background-color. */
select
{
	width: 100%;
	padding: 8px 34px 8px 10px;
	border: 1px solid #c6d0da;
	border-radius: 6px;
	font-size: 14px;
	font-family: inherit;
	/* `normal` is what the text inputs use; anything else makes the select a few
	   pixels taller than the input sitting next to it. */
	line-height: normal;
	box-sizing: border-box;
	background-color: #fff;
	color: #212529;
	-webkit-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%235f6b78' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6l6 -6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 9px center;
	background-size: 17px 17px;
}
/* Dark surfaces need a light chevron to stay visible. */
.pict-modal-dialog select,
#PaveXpress-TopNav select,
.px-settings-menu select
{
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23a8b2bd' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6l6 -6'/%3E%3C/svg%3E");
}
select:disabled { opacity: 0.55; cursor: not-allowed; }

/* One focus treatment for every control. The browser default outline differs per
   browser and is easy to miss against these borders; this is also the main
   affordance for anyone navigating by keyboard. */
input:focus,
select:focus,
textarea:focus
{
	outline: none;
	border-color: var(--px-teal);
	box-shadow: 0 0 0 3px rgba(12, 127, 98, 0.20);
}
/* Checkboxes and radios keep a ring rather than a box. */
input[type="checkbox"]:focus-visible,
input[type="radio"]:focus-visible
{
	outline: 2px solid var(--px-teal);
	outline-offset: 2px;
	box-shadow: none;
}

/* Waiting state for a cold API. The spinner matters more than it looks: a stopped
   Fly machine takes ~20s to wake, and an empty page during that window is what
   makes people refresh — which starts the wait over. */
.px-spinner { display: inline-block; width: 14px; height: 14px; margin-right: 7px; vertical-align: -2px; border: 2px solid #c6d0da; border-top-color: var(--px-teal); border-radius: 50%; animation: px-spin 0.8s linear infinite; }
.px-pl-slow { font-size: 12px; color: #8a97a4; margin-top: 6px; }
@keyframes px-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .px-spinner { animation-duration: 2.4s; } }

/* ==== Print: a reviewed scenario, on paper ================================
   Review is already the whole scenario on one page, read-only, in reading order,
   so printing it is a matter of taking the application off the page rather than
   building a second document that can disagree with the first.

   What has to go: the app shell (it is furniture), the navigation (paper does not
   navigate), and every control that edits (there is nothing to press). What has to
   change: the dark ground, which would print as a solid black page, and the input
   boxes, which should read as the values they hold rather than as empty widgets. */
/* Plain-text copies of control values, created by _printFlattenControls for the
   duration of a print and removed after. Never visible on screen. */
.px-printvalue { display: none; }

/* The HeadLight producer credit under a result. Quiet by construction: no panel, no
   button, body-size text in the secondary ink -- the brand system credits the producer,
   it does not advertise them inside PaveXpress. Hidden entirely in print (see @media
   print below). */
.px-hlcredit { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--px-hairline, #e3e1d8); font-size: 13px; line-height: 1.5; color: #5d5c55; }
.px-hlcredit-link { color: #0c7f62; font-weight: 600; text-decoration: none; }
.px-hlcredit-link:hover, .px-hlcredit-link:focus { color: #005b44; text-decoration: underline; }

@media print
{
	@page { margin: 14mm; }

	/* The shell pins itself to the viewport and clips its own overflow so the content
	   area can scroll. Left alone, exactly one screenful would print. */
	#PaveXpress-App-Container { display: block !important; height: auto !important; overflow: visible !important; }
	#px-body-row { display: block !important; }
	#PaveXpress-Content { overflow: visible !important; padding: 0 !important; }
	#PaveXpress-Content-Container { max-width: none !important; margin: 0 !important; }

	/* Only classes some view or script actually emits — view:check enforces this
	   (UC-12), because entries for controls that no longer exist read as coverage
	   while covering nothing: .px-modeseg, .px-toast and .px-fab sat here for
	   controls the app no longer renders. */
	#PaveXpress-TopNav, #px-breadcrumb, #px-help-pane,
	.px-stepbar, .px-stepmenu, .px-rail, .px-railjump, .px-savestate,
	.px-result-actions, .px-nav { display: none !important; }

	/* THE HEADLIGHT CREDIT NEVER PRINTS. On screen it is a quiet producer credit under
	   the result; on paper the same line becomes a vendor link inside a document an
	   engineer attaches to a submittal, stamped and sent to an agency. Nothing else
	   would have stopped it: the rules above are an allowlist of what to hide, and
	   everything else in the content area prints by default. view:check keeps this
	   entry honest by requiring .px-hlcredit to be a class something actually renders. */
	.px-hlcredit { display: none !important; }

	/* The ON-SCREEN calculation trace never prints. The printed copy is the one
	   appended into #px-print-calcs — rendered with every step forced open — so if the
	   reader had the trace open on screen when they printed, it would appear TWICE:
	   once here with its steps collapsed to title-only rows, and once properly. A
	   report that shows the same derivation in two states is worse than either. */
	#px-calc-inline { display: none !important; }

	/* Inside the printed review, the trace sheds what the review already carries:
	   its project/scenario/date line (the printed header two pages up says exactly
	   this) and its engine-inputs table (the full input record IS the pages before
	   it). Only in the embed — on screen the trace stands alone and keeps both. */
	#px-print-calcs .px-cr-provline, #px-print-calcs .px-cr-inputscard { display: none !important; }

	/* Sections the print dialog left unticked. Marked with a class rather than an
	   inline display so the screen is untouched while the choice is being made, and
	   so a canceled print cannot leave a section invisible. */
	.px-print-skip { display: none !important; }

	body, #PaveXpress-Content { background: #fff !important; color: #000 !important; }

	/* The screen header is replaced by the printed one, which names the project and
	   stamps the date — a sheet on someone's desk has to say what it is. */
	.px-ed-head { display: none !important; }
	.px-printhead { display: block !important; border-bottom: 2px solid #000; padding-bottom: 8px; margin-bottom: 16px; }
	.px-ph-name { font-size: 19px; font-weight: 700; color: #000; }
	.px-ph-meta { font-size: 11.5px; color: #333; margin-top: 2px; }

	/* ---- Reading order, not entry order ----
	   A printed scenario leads with what was designed, then the record that produced
	   it, then the working. On screen the sections stay in wizard order — the order
	   they are filled in — so the reordering lives here and nowhere else. */
	.px-review { display: block !important; }
	.px-mw, .px-wizard { max-width: none !important; }
	.px-review-main { display: flex !important; flex-direction: column; }
	.px-sec-result { order: -2; }
	.px-inputs-head
	{
		display: block !important; order: -1;
		font-family: var(--px-print-sans, inherit); font-size: 12px; font-weight: 700;
		letter-spacing: 0.08em; text-transform: uppercase; color: #333;
		border-bottom: 1px solid #000; padding-bottom: 3px; margin: 22px 0 4px;
		break-after: avoid; page-break-after: avoid;
	}

	/* The inputs are a record to be scanned, not a form to be filled: label and
	   value on one line, in two columns where a section has no table to break. */
	/* MATCHED BY CONVENTION, NOT BY LIST. Every module wraps a labeled input in a
	   `px-*-field` class — px-field, px-mw-field, px-mx-field, px-sw-field, and
	   whatever the next module names its own. The enumerated version of this rule is
	   how Structure's fields printed as web-page boxes while its neighbors printed
	   as a record: the list was three modules long in a seven-module app. */
	.px-review-main [class*="px-"][class*="-field"]
	{
		display: flex; align-items: baseline; gap: 10px; margin-bottom: 3px;
		break-inside: avoid; page-break-inside: avoid;
	}
	.px-review-main [class*="px-"][class*="-field"] label
	{
		flex: 0 0 46%; margin: 0 !important; font-size: 10.5px !important;
	}
	.px-review-main [class*="px-"][class*="-field"] :is(input, select, textarea, .px-input)
	{
		flex: 1 1 auto; max-width: none !important;
	}
	/* Two columns only where nothing inside would be cut in half by them. */
	.px-review-main .px-wiz-card:not(.px-sec-result):not(:has(table)),
	.px-review-main .px-mw-card:not(:has(table))
	{
		column-count: 2; column-gap: 26px;
	}
	.px-review-main .px-step-title, .px-review-main .px-mw-sectitle { column-span: all; }
	/* The result keeps the full measure — it is the part that is read, not scanned. */
	.px-sec-result [class*="px-"][class*="-field"] { display: block; }

	/* A section is a unit of reading: keep its heading with it, and do not split one
	   across a page break if it will fit whole. */
	.px-mw-section, .px-wiz-card, .px-mx-guide { break-inside: avoid; page-break-inside: avoid; background: #fff !important; }
	/* EXCEPT the result section. It leads the document (order: -2 above), and it is
	   nearly always taller than a page — tables, drawings, notes — so break-inside:
	   avoid could not keep it whole anyway. What the rule actually did was move its
	   START to a fresh sheet, leaving page one holding nothing but the header. */
	.px-mw-section.px-sec-result, .px-wiz-card.px-sec-result, .px-mw-section.px-sec-result .px-mw-card
	{
		break-inside: auto; page-break-inside: auto;
	}
	.px-mw-card, .px-wiz-card { background: #fff !important; color: #000 !important; padding: 0 0 14px !important; }
	.px-mw-sectitle, .px-step-title
	{
		background: none !important; color: #000 !important; border-bottom: 1px solid #000;
		font-size: 14px !important; padding: 0 0 3px !important; margin: 16px 0 10px !important;
		break-after: avoid; page-break-after: avoid;
	}

	/* Values, not widgets: on paper an input is the value it holds, set as plain
	   text — no box, no underline, no dropdown arrow, no resize grip. EVERY control,
	   not an enumerated list of field and table classes: the list this replaces was
	   missing .px-sw-field, .px-sw-table, .px-mw-table and .px-cmp-table, which is
	   why Structure's layer table printed as a screenshot of a form.

	   `field-sizing: content` sizes each control to its own value, so nothing prints
	   cut off mid-word the way a fixed-width box clips "Asphalt Surfac…". Browsers
	   without it fall back to the element's natural width — unclipped borders either
	   way, possibly truncated values there, exact ones here. Checkboxes and radios
	   are exempt: flattened to nothing they would print as blank space where a mark
	   is the entire content. */
	.px-review-main input:not([type="checkbox"]):not([type="radio"]),
	.px-review-main select,
	.px-review-main textarea,
	.px-review-main .px-input
	{
		border: none !important; border-radius: 0 !important; box-shadow: none !important;
		background: transparent !important; color: #000 !important; padding: 0 !important;
		-webkit-appearance: none !important; appearance: none !important;
		resize: none; field-sizing: content;
		width: auto !important; min-width: 0 !important; max-width: 100% !important;
		height: auto !important; min-height: 0 !important;
	}
	/* On the app's own print path the values print as TEXT — _printFlattenControls
	   writes each control's value beside it and tags the body — because an input
	   cannot wrap, and a value longer than its box prints cut off mid-word no matter
	   how the box is styled. The flattened controls above remain the fallback for a
	   raw Cmd+P, where no script ran and hiding the controls would print blanks. */
	.px-printing .px-review-main input:not([type="checkbox"]):not([type="radio"]),
	.px-printing .px-review-main select,
	.px-printing .px-review-main textarea { display: none !important; }
	.px-printing .px-printvalue { display: inline !important; color: #000; }
	label { color: #333 !important; }

	/* Nothing on paper is pressable, and nothing on paper reveals a card on hover —
	   the info affordance is a screen gesture, so it prints as nothing at all. */
	button, .px-btn, .px-remove, .px-mx-remove, .px-iconbtn, .px-info { display: none !important; }

	/* A table that runs over a page break repeats its head rather than orphaning its
	   rows under nothing. */
	table { break-inside: auto; }
	thead { display: table-header-group; }
	tr { break-inside: avoid; page-break-inside: avoid; }
	.px-table, .px-mx-table, .px-sctable, .px-details { overflow: visible !important; white-space: normal !important; display: table !important; }
	.px-table th, .px-table td, .px-mx-table th, .px-mx-table td { border-bottom: 1px solid #ddd !important; color: #000 !important; }

	/* Results keep their weight; warnings and field errors print, because a design
	   that was printed with an open warning should say so on the page. */
	.px-summary .px-metric .v { color: #000 !important; }
	.px-warning, .px-success { background: #fff !important; border: 1px solid #999 !important; color: #000 !important; }
	.px-fielderr, .px-tableerr .px-fielderr { color: #7a2020 !important; }
	.px-invalid { background: transparent !important; border-bottom: 1px solid #7a2020 !important; }

	/* The calculation trace, when it was asked for. It starts a new page: the
	   scenario is one document and the working behind it is another, and a reader
	   who wants only the first can stop at the page break. */
	#px-print-calcs:not(:empty) { display: block !important; break-before: page; page-break-before: always; padding-top: 4px; }
	#px-print-calcs .px-cr-head { border-bottom: 2px solid #000; padding-bottom: 6px; margin-bottom: 10px; }
	#px-print-calcs .px-cr-card { background: #fff !important; border: 1px solid #ccc; padding: 10px 12px; }
	#px-print-calcs .px-cr, #px-print-calcs .px-cr-title, #px-print-calcs .px-cr-meta b { color: #000 !important; }
	#px-print-calcs .px-cr-actions, #px-print-calcs .px-cr-toggle { display: none !important; }
	#px-print-calcs .px-cr-iter { display: block !important; }

	/* The cross-section is the one graphic worth its ink — and it has to be asked
	   for explicitly. Browsers drop background colors and images when printing by
	   default, which would leave the layer labels as white text on white paper and
	   the section as a set of empty bars. */
	.px-xsection, .px-xlayer, .px-xsubgrade
	{
		-webkit-print-color-adjust: exact; print-color-adjust: exact;
	}
	.px-xsection { break-inside: avoid; page-break-inside: avoid; box-shadow: none !important; max-width: 340px; }
	/* On screen the layers are drawn to scale, which is worth a third of the viewport.
	   On paper that same drawing eats half of page one before the inputs start — so
	   the bars are capped and the depth beside each one carries the proportion. */
	.px-xlayer { height: auto !important; min-height: 0 !important; padding: 4px 9px !important; }
	.px-xsubgrade { height: 22px !important; padding: 3px 9px !important; }

	/* Charts are drawn, not styled, so they print as they are — but a canvas that
	   straddles a page break is unreadable on both halves. */
	canvas, svg { break-inside: avoid; page-break-inside: avoid; max-width: 100% !important; }
}

/* Address-confirmation state in the account menu. */
.px-verified { display: inline-flex; align-items: center; gap: 4px; margin-top: 5px;
	background: #10352b; color: #6ad3ae; border: 1px solid #1c5745; border-radius: 11px;
	padding: 2px 9px; font-size: 10.5px; font-weight: 650; }
.px-unverified { display: inline-flex; align-items: center; gap: 4px; margin-top: 5px;
	background: #3a3524; color: #ffd98a; border: 1px solid #5c5334; border-radius: 11px;
	padding: 2px 9px; font-size: 10.5px; font-weight: 650; font-family: inherit; cursor: pointer; }
.px-unverified:hover { background: #4a4430; }

/* PerRoad — Performance Criteria, one card per layer.

   Criteria are stored on the layer they judge, and this is the same shape on screen, so
   "which layer does this belong to" is answerable by looking. The previous flat list could
   not answer it at all: the layer was implied by the wording of the label. */
.px-lcard { background: #fff; border: 1px solid #e5eaf0; border-radius: 8px;
	margin-bottom: 12px; overflow: hidden; }
.px-lcard-hd { display: flex; align-items: center; gap: 12px;
	padding: 12px 16px; background: #fbfcfd; border-bottom: 1px solid #eef2f6; }
.px-lcard-id { display: flex; flex-direction: column; min-width: 0; }
/* Name and badge share a row; the column above would otherwise stretch the badge into a
   full-width bar, which reads as a highlight rather than as a chip. */
.px-lcard-title { display: flex; align-items: center; gap: 7px; }
.px-lcard-name { font-weight: 700; font-size: 15px; color: #212529; }
.px-lcard-badge { font-size: 11px; font-weight: 600; color: #0c7f62;
	background: #eef4f2; border: 1px solid #d5e6e0; border-radius: 11px;
	padding: 1px 8px; white-space: nowrap; }
.px-lcard-meta { color: #8a97a4; font-size: 12px; margin-top: 2px; }

/* A color band standing in for the material, so the stack reads top-to-bottom as a
   pavement rather than as three identical boxes. */
.px-lsw { width: 34px; height: 34px; border-radius: 6px; flex: 0 0 auto; }
.px-lsw-ac { background: #3b4350; }
.px-lsw-pcc { background: #9aa4ad; }
.px-lsw-base { background: #b08a5a; }
.px-lsw-soil { background: #8a6f4e; }

.px-crit { padding: 12px 16px; border-bottom: 1px solid #f2f5f8; }
.px-crit:last-child { border-bottom: none; }
.px-crit-hd { display: flex; align-items: center; gap: 9px; }
.px-crit-name { font-weight: 600; font-size: 13.5px; color: #34404d; flex: 1; }
/* The criterion remove is the shared .px-mw-remove x now (UC-7). */
/* What the criterion means, which is what turns a threshold into something an engineer
   can judge. Production explains its criteria; we explained nothing. */
.px-crit-why { color: #5b6b7c; font-size: 12.5px; margin: 6px 0 0; max-width: 74ch; }
.px-crit-loc { margin-top: 6px; max-width: 260px; }

/* The control strain ladder, and the measured endurance limit it can be scaled to (I-186).
   The five numbers were prose in a `.px-mw-explain` while they were read-only; now that a
   measurement can rewrite them they are the thing on the row that has to be legible, so
   they get tabular figures and a surface of their own. */
.px-crit-ladder { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 12.5px; color: #34404d; background: #fbfcfd; border: 1px solid #f2f5f8;
	border-radius: 6px; padding: 9px 12px; margin-top: 8px; overflow-x: auto;
	white-space: nowrap; font-variant-numeric: tabular-nums; }
.px-crit-ladder-note { font-size: 12px; color: #8a97a4; font-style: italic; margin-top: 6px; }
/* Teal rather than gray: this one says the numbers above came from the ENGINEER, which is a
   different kind of statement from the published-default note it replaces. */
.px-crit-ladder-scaled { font-size: 12px; color: #0c7f62; font-style: italic; margin-top: 6px; }
.px-crit-fel { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.px-crit-fel .px-mw-field { margin-bottom: 0; max-width: 200px; }

/* The Miner's-rule damage panel (I-185). Deliberately NOT styled like the criteria table
   above it: that table states verdicts the design is held to, and this states a reading the
   design is not held to. Same metric vocabulary as the rest of the results, one rule above
   it to say a different kind of statement starts here. */
.px-damage { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 0; }
.px-damage-verdict { margin-top: 10px; font-size: 13px; font-weight: 600; }

.px-lcard-empty { padding: 14px 16px; color: #8a97a4; font-size: 13px; font-style: italic; }
.px-lcard-add { padding: 10px 16px; background: #fbfcfd;
	display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.px-lcard-add .px-btn { padding: 6px 12px; font-size: 13px; }
.px-lcard-hint { color: #8a97a4; font-size: 12px; }
/* `.px-mw-card select { width: 100% }` is the scope this sits in, which stretches the
   picker across the whole card and makes a two-item menu look like a text field. Same
   class of problem as I-41's checkbox. */
.px-addsel { width: auto; min-width: 220px; max-width: 320px;
	padding: 6px 9px; border: 1px solid #c6d0da; border-radius: 5px;
	font-size: 13px; background: #fff; color: #212529; }



/* The checkbox exception of I-41 again: `.px-mw-field input { width: 100% }` stretches a
   checkbox into a 150px bar, and the criterion rows sit inside that scope. */
.px-crit input[type="checkbox"] { width: auto; }

/* PerRoad — the section drawing at the top of the Performance Criteria pane.

   It exists because every location defect this module had (I-92, I-94, I-95) was invisible
   on screen: a criterion read at a depth nothing showed. Geometry only, so it costs no
   solving and moves when the design does. */
.px-section-fig { background: #fff; border: 1px solid #e5eaf0; border-radius: 8px;
	padding: 14px 16px; margin-bottom: 14px; }
.px-section-svg { width: 100%; min-width: 560px; height: auto; display: block; }

/* A quiet divider inside Edit Profile, separating identity from the optional
   demographics. Not a heading — the dialog has one title and a second competing
   for the same rank reads as two dialogs stacked. */
.px-pf-sep { margin: 6px 0 0; font-size: 11px; font-weight: 700; letter-spacing: 0.7px;
	text-transform: uppercase; color: var(--px-muted); border-top: 1px solid #4a4a4a;
	padding-top: 12px; display: flex; align-items: baseline; gap: 8px; }
.px-pf-sep span { font-weight: 400; letter-spacing: 0; text-transform: none; opacity: 0.75; }

/* PerRoad — the season-week total, shown whether or not it is right.

   Four durations that each look reasonable can still sum to 47, and the sum is what turns
   them into a probability: any total samples SOMETHING, but only 52 samples a year. */
.px-seasontotal { margin-top: 8px; padding: 8px 12px; border-radius: 6px; font-size: 13px; }
.px-seasontotal.ok { background: #eef4f2; border: 1px solid #d5e6e0; color: #2c5f4d; }
.px-seasontotal.bad { background: #fdf6f6; border: 1px solid #e0b8b8; color: #8a3b3b; }
.px-seasontotal-state { font-weight: 700; }
.px-seasontotal-note { color: inherit; opacity: 0.85; }

/* PerRoad — the results step is results, and computing is a dialog.

   Draws and seed used to be the first two inputs on this pane, above two buttons, with a
   progress bar that could not move: the solve owns the thread for ~21 s, so the browser
   never repainted and the bar sat at 0% while the tab froze. The settings now travel with
   the act of computing, and the dialog covers the pane so there is nothing to click at. */
.px-compute { background: #fff; border: 1px solid #e5eaf0; border-radius: 8px;
	padding: 16px 18px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.px-compute.stale { background: #fff8e5; border-color: #f0dca8; }
.px-compute-copy { flex: 1; min-width: 260px; }
.px-compute-title { font-weight: 700; font-size: 14px; color: #34404d; }
.px-compute.stale .px-compute-title { color: #7a5c11; }
.px-compute-detail { font-size: 13px; color: #5b6b7c; margin-top: 2px; max-width: 62ch; }
.px-compute.stale .px-compute-detail { color: #7a6534; }

/* The scrim covers the card it sits in rather than the viewport: the pane is what must
   become unclickable, and covering the whole window would also swallow the top nav. */
.px-solve-scrim { position: absolute; inset: 0; background: rgba(0,0,0,0.5);
	display: flex; align-items: flex-start; justify-content: center;
	padding: 40px 16px; z-index: 40; border-radius: 8px; }
.px-solve { background: #fff; color: #212529; border-radius: 10px; width: 460px; max-width: 100%;
	box-shadow: 0 18px 50px rgba(0,0,0,0.5); overflow: hidden; }
.px-solve-hd { padding: 16px 20px 0; font-size: 16px; font-weight: 700; }
.px-solve-bd { padding: 12px 20px 18px; }
.px-solve-ft { padding: 12px 20px; background: #f4f6f8; border-top: 1px solid #e5eaf0;
	display: flex; justify-content: flex-end; gap: 8px; }
.px-solve-mode { display: flex; gap: 9px; align-items: flex-start; font-size: 13.5px;
	color: #34404d; padding: 7px 0; cursor: pointer; }
.px-solve-mode input { width: auto; flex: none; margin-top: 3px; accent-color: var(--px-teal); }
.px-solve-note { color: #8a97a4; font-size: 12.5px; }
.px-solve-settings { display: flex; gap: 14px; margin-top: 10px; }
.px-solve-settings .px-mw-field { margin-bottom: 6px; max-width: 150px; }
.px-solve-warn { margin-top: 12px; background: #fff8e5; border: 1px solid #f0dca8;
	color: #7a5c11; border-radius: 6px; padding: 9px 12px; font-size: 12.5px; }
.px-solve-label { font-size: 13.5px; color: #34404d; min-height: 20px; }
.px-solve-bar { height: 10px; background: #eef2f6; border-radius: 5px; overflow: hidden; margin-top: 10px; }
.px-solve-bar i { display: block; height: 100%; background: #2e7d74; border-radius: 5px; transition: width .2s; }

/* Draws and seed, demoted to provenance. Still stated — a statistical result nobody can
   reproduce is not evidence — but no longer the first thing on the page. */
.px-provenance { margin-top: 10px; }
.px-provenance a { color: var(--px-teal); cursor: pointer; }

/* PerRoad — variability, grouped by the layer it belongs to.

   It was five scenario-wide rows: "Base modulus" once, however many base layers the
   section had. A section with two bases could not say that one was measured by core and
   the other estimated. */
.px-spread { background: #fff; border: 1px solid #e5eaf0; border-radius: 8px;
	padding: 12px 14px; margin-bottom: 10px; }
.px-spread-name { font-weight: 700; font-size: 13.5px; color: #34404d; margin-bottom: 6px; }
.px-spread .px-mw-table { margin: 0; }

/* PerRoad — the solved thickness, offered rather than applied.

   The solve reports an answer; taking it into the design is a separate act, which is
   where production sits too. Shown only while the scenario and the answer disagree. */
.px-solved { background: #eef4f2; border: 1px solid #d5e6e0; border-radius: 8px;
	padding: 14px 16px; margin-bottom: 12px;
	display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.px-solved-copy { flex: 1; min-width: 260px; }
.px-solved-title { font-weight: 700; font-size: 14px; color: #2c5f4d; }
.px-solved-note { font-size: 13px; color: #46685c; margin-top: 2px; max-width: 66ch; }

/* ===================================================================== *
 * SEND FEEDBACK — the shared headlight-feedback module, in PaveXpress's
 * colours.
 *
 * The module paints everything from --hlfb-* custom properties and ships
 * HeadLight's App family as the defaults. PaveXpress needs them to mean
 * two different things, because the app does: a dialog here is dark
 * (#383838, like every other dialog), and a page here is a light card on
 * the dark workbench (like every other page). Custom properties cascade,
 * so that is two scoped blocks rather than a fork of the module — and
 * nothing in vendor/headlight-feedback is touched.
 * ===================================================================== */

/* -- Scope 1: the panel, on the dark dialog ground --------------------- */
#HLFeedback-PanelHost
{
	--hlfb-surface: #383838;
	--hlfb-bg: #2e2e2e;
	--hlfb-ink: #f2f4f5;
	--hlfb-ink-strong: #ffffff;
	--hlfb-muted: #9aa4ad;
	--hlfb-rule: #4a4a4a;
	--hlfb-rule-strong: #5a5a5a;
	--hlfb-accent: #0c7f62;
	--hlfb-accent-hover: #0a6b53;
	--hlfb-on-accent: #f7f6f2;
	/* Mint, not the brand green. #0c7f62 on #383838 is 2.4:1 and fails as
	   text; mint is the design system's answer for a link on a dark ground. */
	--hlfb-link: #9fd9c8;
	--hlfb-tint: #45504c;
	--hlfb-ok: #7fd4b4; --hlfb-ok-tint: #26443a;
	--hlfb-warn: #ffdb7f; --hlfb-warn-tint: #4a3f22;
	--hlfb-bad: #f0a79c; --hlfb-bad-tint: #4d2b26;
	--hlfb-info: #9ad4e6; --hlfb-info-tint: #26414a;
	--hlfb-overlay: rgba(0, 0, 0, 0.6);
	--hlfb-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
	--hlfb-radius: 10px;
	--hlfb-radius-sm: 6px;
	--hlfb-focus: #ffdb7f;
	--hlfb-sans: inherit;
}

/* A CENTRED DIALOG, NOT A DRAWER (George, 2026-11-15). The module ships a
   right-hand drawer, which Form Filler and Pavement Interactive use. Every
   other prompt in PaveXpress is a centred pict-section-modal, including the
   Send feedback this replaces, and a lone drawer would read as borrowed.
   Done as a host override rather than a module option: it is pure layout,
   it survives a module sync, and no other app has to carry it. */
#HLFeedback-PanelHost .hlfb-overlay
{
	align-items: center;
	justify-content: center;
	padding: 24px;
}
#HLFeedback-PanelHost .hlfb-panel
{
	width: min(700px, 100%);
	height: auto;
	max-height: calc(100vh - 48px);
	border: 1px solid #4a4a4a;
	border-radius: 10px;
}
#HLFeedback-PanelHost .hlfb-panel-head
{
	background: #2b2b2b;
	border-bottom: 1px solid #4a4a4a;
}
#HLFeedback-PanelHost .hlfb-panel-foot
{
	background: #2b2b2b;
	border-top: 1px solid #4a4a4a;
}
/* The body scrolls, not the dialog: the head and foot stay put so Send is
   always reachable, which is the one thing a tall note must not lose. */
#HLFeedback-PanelHost .hlfb-panel-body
{
	overflow-y: auto;
}
/* At phone width a centred dialog with a 24px gutter has too little room
   for the note itself — it becomes the full screen, which is what the
   drawer was doing all along. */
@media (max-width: 600px)
{
	#HLFeedback-PanelHost .hlfb-overlay { padding: 0; }
	#HLFeedback-PanelHost .hlfb-panel { width: 100%; height: 100%; max-height: none; border: 0; border-radius: 0; }
}

/* -- Scope 2: the pages, as light cards on the workbench --------------- */
#PaveXpress-Content-Container
{
	--hlfb-surface: #ffffff;
	--hlfb-bg: #f4f6f8;
	--hlfb-ink: #23241f;
	--hlfb-ink-strong: #20211d;
	--hlfb-muted: #5d5c55;
	--hlfb-rule: #e3e1d8;
	--hlfb-rule-strong: #c9c7bc;
	--hlfb-accent: #0c7f62;
	--hlfb-accent-hover: #0a6b53;
	--hlfb-on-accent: #f7f6f2;
	--hlfb-link: #0c7f62;
	--hlfb-radius: 10px;
	--hlfb-radius-sm: 6px;
	--hlfb-focus: #0c7f62;
	--hlfb-sans: inherit;
}
/* The page heading sits on the dark workbench, above the card, exactly as
   a project or scenario title does. */
#PaveXpress-Content-Container .hlfb-head h1 { color: #ffffff; font-weight: 800; letter-spacing: -0.02em; }
#PaveXpress-Content-Container .hlfb-head p { color: #9aa4ad; }
#PaveXpress-Content-Container .hlfb-area { color: #9fd9c8; letter-spacing: 0.14em; text-transform: uppercase; font-size: 12px; font-weight: 700; }
#PaveXpress-Content-Container .hlfb-card { box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28); }
#PaveXpress-Content-Container .hlfb-table th { background: #0c7f62; color: #f7f6f2; }

/* The unread count beside a menu entry. A zero is not rendered at all —
   see fCount — so this never shows an empty badge. */
.px-set-count { margin-left: auto; background: #0c7f62; color: #f7f6f2; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 7px; }
.px-set-count.new { background: #ffdb7f; color: #2e2e2e; }
