/* CNG Log shared stylesheet (2026-09-29). One look for every page: the title band, the home menu,
   tables, forms, buttons, badges. Pages opt in per element with the xng- classes; a page that has
   not been restyled yet only picks up the body font and link colors, nothing else moves. */

:root {
	--xng-green: #1a7f37;
	--xng-green-dark: #0f5f26;
	--xng-green-pale: #e8f5ec;
	--xng-bg: #f4f6f5;
	--xng-panel: #ffffff;
	--xng-ink: #1f2933;
	--xng-muted: #5b6770;
	--xng-line: #d7e0da;
	--xng-line-strong: #b9c7bf;
	--xng-ok: #2f855a;
	--xng-warn: #b7791f;
	--xng-warn-bg: #fff7e6;
	--xng-bad: #c53030;
	--xng-bad-bg: #fdecec;
	--xng-info-bg: #e9f1fb;
	--xng-staging: #ffd200;
	--xng-radius: 8px;
	--xng-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
}

html { box-sizing: border-box; }
/* The hidden attribute always hides, even on elements a class gives a display (tabs, chips, buttons). */
[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: inherit; }

body {
	margin: 0;
	background: var(--xng-bg);
	color: var(--xng-ink);
	font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 15px;
	line-height: 1.4;
}

a { color: var(--xng-green-dark); }
a:hover { color: var(--xng-green); }

/* ---- title band ------------------------------------------------------------------------- */

.xng-staging-short { display: none; }
.xng-staging {
	background: var(--xng-staging);
	color: #000;
	border-bottom: 3px solid #000;
	padding: 8px 16px;
	font-weight: 700;
	font-size: 16px;
}

.xng-topbar {
	background: var(--xng-green-dark);
	color: #fff;
	padding: 10px 16px;
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

.xng-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
	font-size: 17px;
	letter-spacing: 0.02em;
	color: #fff;
	text-decoration: none;
	white-space: nowrap;
}

/* The brand text stays white on hover: the global a:hover above turned it pale green on the green bar (10/1, B11). */
.xng-brand:hover, .xng-brand:focus { color: #fff; }

/* The XNG wordmark sits on a white chip: its blue and green read badly straight on the green bar. */
.xng-brand-chip { display: inline-flex; align-items: center; background: #fff; border-radius: 6px; padding: 3px 7px; }
.xng-brand img { height: 24px; width: auto; display: block; }

.xng-topbar-title {
	font-size: 17px;
	font-weight: 600;
	flex: 1 1 auto;
	min-width: 200px;
}

.xng-topbar-title small {
	display: block;
	font-weight: 400;
	font-size: 13px;
	opacity: 0.85;
}

.xng-topbar-user {
	font-size: 13px;
	opacity: 0.95;
	white-space: nowrap;
}

.xng-topbar-nav {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.xng-topbar-nav a {
	color: #fff;
	text-decoration: none;
	padding: 5px 10px;
	border: 1px solid rgba(255, 255, 255, 0.45);
	border-radius: 6px;
	font-size: 13px;
	white-space: nowrap;
}

.xng-topbar-nav a:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

/* ---- page frame -------------------------------------------------------------------------- */

.xng-page {
	max-width: 1500px;
	margin: 0 auto;
	padding: 16px;
}

.xng-page-narrow { max-width: 900px; }

.xng-page h1, .xng-page h2, .xng-page h3 {
	margin: 0 0 12px 0;
	line-height: 1.25;
}

.xng-page h1 { font-size: 22px; }
.xng-page h2 { font-size: 18px; color: var(--xng-green-dark); }
.xng-page h3 { font-size: 15px; color: var(--xng-muted); text-transform: uppercase; letter-spacing: 0.04em; }

.xng-card {
	background: var(--xng-panel);
	border: 1px solid var(--xng-line);
	border-radius: var(--xng-radius);
	box-shadow: var(--xng-shadow);
	padding: 14px 16px;
	margin-bottom: 16px;
}

.xng-card-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 8px;
}

.xng-card-head h2 { margin: 0; }

.xng-muted { color: var(--xng-muted); }
.xng-small { font-size: 13px; }
.xng-right { text-align: right; }
.xng-nowrap { white-space: nowrap; }

/* ---- home menu ---------------------------------------------------------------------------- */

.xng-menu {
	display: grid;
	align-items: start;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 14px;
}

/* A user with only a handful of pages (a driver sees three) gets a centred launcher instead of two
   small cards in the top-left corner: the page narrows, the tiles grow, cards fill the row. */
.xng-menu-few { display: flex; flex-wrap: wrap; }
.xng-menu-few .xng-menu-group { flex: 1 1 240px; }
.xng-menu-few .xng-menu-primary { flex-basis: 100%; }
.xng-menu-few .xng-menu-group li a { padding: 11px 16px; font-size: 16px; }
.xng-menu-few .xng-menu-primary ul { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; padding: 14px; }
.xng-menu-few .xng-menu-primary li a { padding: 22px 12px; font-size: 17px; }

.xng-menu-group {
	background: var(--xng-panel);
	border: 1px solid var(--xng-line);
	border-radius: var(--xng-radius);
	box-shadow: var(--xng-shadow);
	padding: 0 0 6px 0;
	overflow: hidden;
}

.xng-menu-group h2 {
	margin: 0;
	padding: 10px 14px;
	background: var(--xng-green-pale);
	border-bottom: 1px solid var(--xng-line);
	font-size: 15px;
	color: var(--xng-green-dark);
}

.xng-menu-group ul { list-style: none; margin: 0; padding: 6px 0 0 0; }

.xng-menu-group li a {
	display: block;
	padding: 8px 14px;
	text-decoration: none;
	color: var(--xng-ink);
	border-left: 3px solid transparent;
}

.xng-menu-group li a:hover {
	background: var(--xng-bg);
	border-left-color: var(--xng-green);
	color: var(--xng-green-dark);
}

.xng-menu-group li a[target="_blank"]::after {
	content: " \2197";
	color: var(--xng-muted);
	font-size: 12px;
}

.xng-menu-primary { grid-column: 1 / -1; }

.xng-menu-primary ul {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 6px;
	padding: 10px 14px 6px 14px;
}

.xng-menu-primary li { display: flex; }

.xng-menu-primary li a {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--xng-line);
	border-radius: 6px;
	background: var(--xng-panel);
	font-weight: 600;
	text-align: center;
	padding: 12px 10px;
}

.xng-menu-primary li a:hover { border-color: var(--xng-green); border-left-color: var(--xng-green); }

/* ---- tables ------------------------------------------------------------------------------- */

.xng-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

table.xng-table {
	border-collapse: collapse;
	width: 100%;
	background: var(--xng-panel);
	font-size: 14px;
}

table.xng-table th, table.xng-table td {
	border: 1px solid var(--xng-line);
	padding: 6px 8px;
	text-align: left;
	vertical-align: top;
}

table.xng-table thead th, table.xng-table tr.xng-head th, table.xng-table tr.xng-head td {
	background: var(--xng-green-pale);
	color: var(--xng-green-dark);
	font-weight: 600;
	position: sticky;
	top: 0;
	z-index: 1;
}

table.xng-table tbody tr:nth-child(even) td { background: #fafcfb; }
table.xng-table tbody tr:hover td { background: #eef6f0; }

table.xng-table td.num, table.xng-table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

table.xng-table tr.xng-section td {
	background: var(--xng-green-dark);
	color: #fff;
	font-weight: 600;
}

table.xng-table tr.xng-subhead td {
	background: #eef2f0;
	font-weight: 600;
	color: var(--xng-muted);
	font-size: 13px;
}

table.xng-table tr.xng-dim td { color: var(--xng-muted); background: #f7f8f8; }

table.xng-table th.xng-sortable { cursor: pointer; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; padding-right: 20px; position: relative; }
table.xng-table th.xng-sortable::after { content: "\2195"; position: absolute; right: 6px; opacity: 0.35; }
table.xng-table th.xng-sort-asc::after { content: "\2191"; opacity: 1; }
table.xng-table th.xng-sort-desc::after { content: "\2193"; opacity: 1; }

.xng-toolbar {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin: 8px 0;
}

.xng-toolbar input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; }
.xng-toolbar input[type="text"], .xng-toolbar input[type="search"] {
	-webkit-appearance: none;
	appearance: none;
	padding: 6px 8px;
	border: 1px solid var(--xng-line-strong);
	border-radius: 6px;
	min-width: 220px;
	font-size: 16px; /* 16 px or more or iOS Safari zooms on focus */
}

.xng-toolbar .xng-count { color: var(--xng-muted); font-size: 13px; }

/* ---- buttons and badges ------------------------------------------------------------------ */

.xng-btn, .xng-toolbar button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: inherit;
	-webkit-tap-highlight-color: transparent;
	padding: 6px 12px;
	border: 1px solid var(--xng-green-dark);
	border-radius: 6px;
	background: var(--xng-green);
	color: #fff;
	font-size: 14px;
	text-decoration: none;
	cursor: pointer;
	line-height: 1.3;
}

.xng-btn:hover, .xng-toolbar button:hover { background: var(--xng-green-dark); color: #fff; }

.xng-btn-secondary, .xng-toolbar button.xng-btn-secondary {
	background: var(--xng-panel);
	color: var(--xng-green-dark);
}

.xng-btn-secondary:hover, .xng-toolbar button.xng-btn-secondary:hover { background: var(--xng-green-pale); color: var(--xng-green-dark); }

.xng-btn-danger { background: var(--xng-bad); border-color: #9b2c2c; }
.xng-btn-danger:hover { background: #9b2c2c; }

.xng-btn-small { padding: 3px 8px; font-size: 13px; }

.xng-btn[disabled], .xng-btn:disabled, .xng-form input[type="submit"]:disabled, .xng-form button:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.xng-actions { display: flex; gap: 6px; flex-wrap: wrap; }

.xng-badge {
	display: inline-block;
	padding: 1px 8px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	background: #e6e9e8;
	color: var(--xng-muted);
	white-space: nowrap;
}

.xng-badge-ok { background: #def7e8; color: var(--xng-ok); }
.xng-badge-warn { background: var(--xng-warn-bg); color: var(--xng-warn); }
.xng-badge-bad { background: var(--xng-bad-bg); color: var(--xng-bad); }
.xng-badge-info { background: var(--xng-info-bg); color: #2b6cb0; }

/* ---- forms ------------------------------------------------------------------------------- */

.xng-form { display: grid; grid-template-columns: max-content 1fr; gap: 10px 14px; align-items: center; max-width: 820px; }
.xng-form label, .xng-form .xng-label { font-weight: 600; white-space: nowrap; }
.xng-form .xng-full { grid-column: 1 / -1; }

/* Fields take their natural width (a date box is a date box, not an 800 px bar); text and
   textareas may grow to the column but no further. */
.xng-form input, .xng-form select, .xng-form textarea { justify-self: start; max-width: 100%; box-sizing: border-box; }
.xng-form input[type="text"], .xng-form input[type="search"], .xng-form textarea { width: 100%; max-width: 32em; }
.xng-form input[type="number"] { width: 9em; }
.xng-form input[type="date"] { width: 11.5em; }
.xng-form input[type="time"] { width: 8em; }

.xng-form input[type="text"], .xng-form input[type="search"], .xng-form input[type="number"],
.xng-form input[type="date"], .xng-form input[type="time"], .xng-form select, .xng-form textarea {
	padding: 6px 8px;
	border: 1px solid var(--xng-line-strong);
	border-radius: 6px;
	font-size: 16px; /* 16 px or more: under that iOS Safari zooms the page when a field gets focus */
	font-family: inherit;
	background: #fff;
	max-width: 100%;
}

.xng-form input[type="submit"], .xng-form button {
	padding: 8px 16px;
	border: 1px solid var(--xng-green-dark);
	border-radius: 6px;
	background: var(--xng-green);
	color: #fff;
	font-size: 15px;
	cursor: pointer;
}

.xng-hint { color: var(--xng-muted); font-size: 13px; }
/* A BOL number that opens its PDF: the tag is drawn, not text, so a CSV built from the cells stays clean. */
.xng-bol-pdf::after { content: "PDF"; margin-left: 6px; padding: 1px 5px; border: 1px solid var(--xng-line); border-radius: 4px; font-size: 11px; font-weight: 600; color: var(--xng-muted); vertical-align: 1px; }
.xng-bol-pdf:hover::after { color: var(--xng-green-dark); border-color: var(--xng-green); }

.xng-msg { color: var(--xng-bad); font-weight: 600; }
.xng-note { color: #8a5a00; font-style: italic; }

.xng-alert {
	border: 1px solid var(--xng-line);
	border-left: 4px solid var(--xng-green);
	background: var(--xng-panel);
	border-radius: 6px;
	padding: 10px 14px;
	margin: 0 0 14px 0;
}

.xng-alert-ok { border-left-color: var(--xng-green); background: var(--xng-green-pale); }
.xng-alert-warn { border-left-color: var(--xng-warn); background: var(--xng-warn-bg); }
.xng-alert-bad { border-left-color: var(--xng-bad); background: var(--xng-bad-bg); }
.xng-alert-info { border-left-color: #2b6cb0; background: var(--xng-info-bg); }

.xng-datetime { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }

/* ---- form building blocks (shared by the fill, mission, edit and admin screens) --------------- */

/* A ruled section heading inside an xng-form grid ("Vehicle", "Fill Information"). */
.xng-form .xng-section { grid-column: 1 / -1; margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--xng-line); font-weight: 600; color: var(--xng-green-dark); }
.xng-form .xng-section:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
/* A wrapper that keeps its label and control in the grid (so a group can be hidden as one). */
.xng-form .xng-pair, .xng-form .xng-readings, .xng-form .xng-group { display: contents; }
/* A reading box with its unit after it ("65" F, "3,500" PSIG). */
.xng-inline, .xng-reading { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.xng-form input.xng-num { width: 7em; text-align: right; }
.xng-form input.xng-num-wide { width: 9em; text-align: right; }
.xng-form input.xng-short, .xng-form select.xng-short { width: 10em; }
.xng-form label.xng-top { align-self: start; margin-top: 8px; }
/* Label / value table on result and confirm pages. */
table.xng-kv { width: 100%; border-collapse: collapse; margin-bottom: 12px; }
table.xng-kv th { width: 45%; text-align: left; font-weight: 600; color: var(--xng-muted); background: #fafcfb; }
table.xng-kv th, table.xng-kv td { padding: 7px 10px; border-bottom: 1px solid var(--xng-line); vertical-align: top; }
table.xng-kv td.num { text-align: left; }
/* A prefilled box the user has not touched yet (Fill Begin 2, Mission Departure). */
.xng-form input.xng-prefilled { background: #fff8d6; }
/* One big number (a BOL number, a result id). */
.xng-bol { font-size: 20px; font-weight: 700; color: var(--xng-green-dark); }

/* ---- tabs and the pop-up window (final pre-VM batch, 10/2) ---------------------------------- */

/* Tabs: plain links styled as tabs (the page works without script; script switches in place). */
.xng-tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--xng-line-strong); margin: 4px 0 14px; }
.xng-tab { padding: 8px 18px; border: 1px solid var(--xng-line-strong); border-bottom: none; border-radius: var(--xng-radius) var(--xng-radius) 0 0; background: #eef2f0; color: var(--xng-ink); text-decoration: none; font-weight: 600; margin-bottom: -2px; }
.xng-tab:hover { background: var(--xng-green-pale); color: var(--xng-green-dark); }
.xng-tab.xng-tab-on { background: var(--xng-panel); color: var(--xng-green-dark); border-color: var(--xng-line-strong); border-bottom: 2px solid var(--xng-panel); }

/* One modal window (the native <dialog>). */
dialog.xng-dialog { border: none; border-radius: var(--xng-radius); padding: 0; width: min(980px, 96vw); max-height: 92vh; box-shadow: 0 12px 40px rgba(16, 24, 40, 0.35); color: var(--xng-ink); }
dialog.xng-dialog::backdrop { background: rgba(16, 24, 40, 0.45); }
.xng-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--xng-green-dark); color: #fff; position: sticky; top: 0; z-index: 1; }
.xng-dialog-head h2 { margin: 0; font-size: 17px; color: #fff; }
#csio-dialog-body { padding: 14px 16px 6px; }

/* ---- Core Site Inventory, Visual tab ---------------------------------------------------------- */

/* Level colors: one set for the gauges, the legend chips and the stop sign. */
.csio-visual { --csio-red: #d64545; --csio-orange: #f08c2e; --csio-yellow: #f2c300; --csio-green: #2f9e44; --csio-purple: #7b4fc9; --csio-stale: #a7b1ad; }
.csio-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.csio-legend { display: flex; flex-wrap: wrap; gap: 6px; }
.csio-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--xng-line-strong); background: var(--xng-panel); border-radius: 999px; padding: 4px 10px; font: inherit; font-size: 13px; cursor: pointer; color: var(--xng-ink); }
.csio-chip b { font-variant-numeric: tabular-nums; }
.csio-chip[aria-pressed="true"] { border-color: var(--xng-ink); box-shadow: inset 0 0 0 1px var(--xng-ink); }
.csio-chip.csio-chip-dim { opacity: 0.45; }
.csio-chip-all { font-weight: 600; }
.csio-swatch { width: 14px; height: 14px; border-radius: 3px; display: inline-block; background: var(--csio-stale); }
.csio-lvl-red .csio-swatch, .csio-lvl-red .csio-fill { background: var(--csio-red); fill: var(--csio-red); }
.csio-lvl-orange .csio-swatch, .csio-lvl-orange .csio-fill { background: var(--csio-orange); fill: var(--csio-orange); }
.csio-lvl-yellow .csio-swatch, .csio-lvl-yellow .csio-fill { background: var(--csio-yellow); fill: var(--csio-yellow); }
.csio-lvl-green .csio-swatch, .csio-lvl-green .csio-fill { background: var(--csio-green); fill: var(--csio-green); }
.csio-lvl-purple .csio-swatch, .csio-lvl-purple .csio-fill { background: var(--csio-purple); fill: var(--csio-purple); }
.csio-lvl-stale .csio-swatch, .csio-lvl-stale .csio-fill { background: var(--csio-stale); fill: var(--csio-stale); }
.csio-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; }
.csio-refresh { margin: 0 0 6px; font-variant-numeric: tabular-nums; }
.csio-tools select { font: inherit; padding: 4px 6px; border: 1px solid var(--xng-line-strong); border-radius: 6px; background: #fff; }
.csio-tools select:disabled { opacity: 0.55; }
/* Find box on the Visual tab (2026-10-06, terminal filter): the same look as the selects beside it. */
.csio-tools input[type="search"] { font: inherit; padding: 4px 6px; border: 1px solid var(--xng-line-strong); border-radius: 6px; background: #fff; width: 11em; }
.csio-fit-label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; white-space: nowrap; }
.csio-fit-label input { width: 18px; height: 18px; margin: 0; }
/* Fit to screen (10/5): the script sets the columns and --csio-scale inline; a tighter tile pad. */
.csio-grid.csio-fitted .csio-tile { padding: calc(8px * var(--csio-scale, 1)) calc(10px * var(--csio-scale, 1)); }
.csio-key { margin: 4px 0 12px; }
.csio-stop-key svg { width: 14px; height: 14px; vertical-align: -2px; fill: var(--csio-red); }

/* Tile size (2026-10-05): the Size pick puts csio-size-small, -medium or -large on the grid. Each sets
   the narrowest a tile may get (--csio-tile-min) and a text scale (--csio-scale); the gauge is an SVG
   and fills its tile. Medium is the old size. At 1920 wide: Small 6 a row, Medium 5, Large 3 (full
   screen 8, 6, 3). On a phone: Small 2 a row, Medium and Large 1. min(..., 100%) keeps a tile from
   ever being wider than the grid. */
.csio-grid { --csio-tile-min: 230px; --csio-scale: 1; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(var(--csio-tile-min), 100%), 1fr)); gap: 12px; }
.csio-grid.csio-size-small { --csio-tile-min: 200px; --csio-scale: 0.85; }
.csio-grid.csio-size-large { --csio-tile-min: 400px; --csio-scale: 1.5; }
.csio-tile { position: relative; background: var(--xng-panel); border: 1px solid var(--xng-line); border-top: 5px solid var(--csio-stale); border-radius: var(--xng-radius); box-shadow: var(--xng-shadow); padding: 8px 10px 10px; text-align: center; }
.csio-tile.csio-lvl-red { border-top-color: var(--csio-red); background: #fff6f6; }
.csio-tile.csio-lvl-orange { border-top-color: var(--csio-orange); }
.csio-tile.csio-lvl-yellow { border-top-color: var(--csio-yellow); }
.csio-tile.csio-lvl-green { border-top-color: var(--csio-green); }
.csio-tile.csio-lvl-purple { border-top-color: var(--csio-purple); }
.csio-tile.csio-lvl-stale { background: #f6f7f7; }
.csio-tile-top { display: flex; align-items: center; gap: 6px; min-height: calc(30px * var(--csio-scale, 1)); }
.csio-open { width: calc(30px * var(--csio-scale, 1)); height: calc(30px * var(--csio-scale, 1)); border: none; border-radius: 6px; background: #1f6fb2; color: #fff; font: inherit; font-size: calc(15px * var(--csio-scale, 1)); font-weight: 700; cursor: pointer; }
.csio-open:hover, .csio-open:focus-visible { background: #155a93; }
.csio-stop { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; color: var(--csio-red); font-size: calc(12px * var(--csio-scale, 1)); font-weight: 700; text-transform: uppercase; }
.csio-stop svg { width: calc(26px * var(--csio-scale, 1)); height: calc(26px * var(--csio-scale, 1)); fill: var(--csio-red); }
.csio-gauge { width: 100%; max-width: calc(260px * var(--csio-scale, 1)); display: block; margin: 2px auto 0; }
.csio-track { fill: #e3e8e5; }
.csio-mark { stroke: #1f2933; stroke-width: 2.2; stroke-dasharray: 4 2.5; }
.csio-num { font-size: 28px; font-weight: 700; fill: var(--xng-ink); font-variant-numeric: tabular-nums; }
.csio-unit { font-size: 11px; fill: var(--xng-muted); }
.csio-tile-line { font-size: calc(13px * var(--csio-scale, 1)); line-height: 1.35; }
.csio-flow { color: var(--xng-green-dark); font-weight: 600; }
.csio-outlook { color: var(--xng-ink); }
.csio-lvl-red .csio-outlook { color: var(--xng-bad); font-weight: 700; }
.csio-time { color: var(--xng-muted); }
.csio-time.csio-age-bold { font-weight: 700; color: var(--xng-ink); }
.csio-time.csio-age-red { font-weight: 700; color: var(--xng-bad); }
.csio-tile-name { display: block; margin-top: 4px; font-weight: 700; color: #0f4bb2; text-decoration: none; font-size: calc(15px * var(--csio-scale, 1)); }
.csio-tile-name:hover { text-decoration: underline; }
.csio-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.csio-chart { width: 100%; min-height: 380px; }

/* Flow on the tile (10/19/2026, Kevin: "make it easier to see flow rate on dials"): a pill right under
   the gauge, the number bold and half again as big as the old line, all in em so it follows Size, Fit
   and full screen with the rest of the tile. No flow is a grey italic "No flow", never a number. */
.csio-tile-line.csio-flow { display: inline-flex; align-items: center; justify-content: center; gap: 0.3em; margin: 1px auto 4px; padding: 0.1em 0.8em; border-radius: 999px; background: var(--xng-green-pale); line-height: 1.3; }
.csio-flow-icon { width: 1.3em; height: 1.3em; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.csio-flow-num { font-size: 1.6em; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; }
.csio-flow-unit { font-size: 0.9em; }
.csio-tile-line.csio-flow.csio-flow-none { background: #eceeed; color: var(--xng-muted); font-style: italic; }
.csio-flow-none .csio-flow-icon { opacity: 0.45; }

/* Estimated times on the tile (10/19/2026): the outlook line as up to three short rows (label, est.
   time, hours) centered as a block; a level already passed, or a note, spans the row. The tile is a
   size container whose font follows the scale, so a tile too narrow for the hours (measured in its
   own text size) drops them; the D window and the Table tab still have them. */
.csio-tile { container-type: inline-size; font-size: calc(13px * var(--csio-scale, 1)); }
.csio-tile-line.csio-etas { display: grid; grid-template-columns: auto auto auto; justify-content: center; column-gap: 0.5em; margin: 1px 0 3px; font-size: calc(12.5px * var(--csio-scale, 1)); line-height: 1.4; }
.csio-eta { display: contents; }
.csio-eta-l { text-align: right; color: var(--xng-muted); font-weight: 400; }
.csio-eta-t { text-align: left; color: var(--xng-ink); font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.csio-eta-t small { font-size: 0.85em; font-weight: 400; color: var(--xng-muted); }
.csio-eta-h { text-align: right; color: var(--xng-muted); font-weight: 400; white-space: nowrap; font-variant-numeric: tabular-nums; }
.csio-eta-wide { grid-column: 1 / -1; text-align: center; }
.csio-eta-now { font-weight: 700; }
.csio-eta-note { color: var(--xng-muted); }
@container (max-width: 17.5em) { .csio-eta-h { display: none; } .csio-tile-line.csio-etas { grid-template-columns: auto auto; } }

/* Seasonal sites (10/19/2026): off season a tile is greyed a little, with its own color in the chip,
   the gauge and the top edge, and the Off season badge where the stop sign would be. */
.csio-visual { --csio-off: #8ea3b6; }
.csio-lvl-offseason .csio-swatch, .csio-lvl-offseason .csio-fill { background: var(--csio-off); fill: var(--csio-off); }
.csio-tile.csio-lvl-offseason { border-top-color: var(--csio-off); background: #f4f6f8; }
.csio-tile.csio-lvl-offseason .csio-gauge, .csio-tile.csio-lvl-offseason .csio-flow { opacity: 0.7; }
.csio-tile.csio-lvl-offseason .csio-outlook { color: var(--xng-muted); }
.csio-tile-top .xng-offseason { margin-left: auto; font-size: calc(12px * var(--csio-scale, 1)); }

/* The C window's chart (F36, 10/19/2026): app/xng_chart.js, a little shorter than the per-site page's. */
.csio-chart .xc-plot { height: 320px; }

/* Full screen on a wall display: the panel fills the screen on the page background, bigger tiles. */
#csio-panel-visual:fullscreen { background: var(--xng-bg); padding: 16px; overflow: auto; }
#csio-panel-visual:fullscreen .csio-grid { --csio-tile-min: 260px; }
#csio-panel-visual:fullscreen .csio-grid.csio-size-small { --csio-tile-min: 210px; }
#csio-panel-visual:fullscreen .csio-grid.csio-size-large { --csio-tile-min: 470px; --csio-scale: 1.8; }

/* ---- small screens and print --------------------------------------------------------------- */

@media (max-width: 720px) {
	.xng-topbar { padding: 8px 12px; gap: 8px; }
	.xng-topbar-title { font-size: 15px; }
	.xng-page { padding: 12px; }
	.xng-menu { grid-template-columns: 1fr; }
	.xng-menu-few .xng-menu-group { flex-basis: 100%; }
	.xng-menu-primary ul, .xng-menu-few .xng-menu-primary ul { grid-template-columns: 1fr 1fr; }
	.xng-form { grid-template-columns: 1fr; gap: 4px 0; }
	.xng-form label { margin-top: 8px; }
	table.xng-table { font-size: 13px; }
	table.xng-table th, table.xng-table td { padding: 5px 6px; }
	.xng-form input[type="submit"], .xng-form button[type="submit"] { width: 100%; }
	.xng-form label { white-space: normal; }
	.xng-staging-long { display: none; }
	.xng-staging-short { display: inline; }
	.csio-grid { --csio-tile-min: 190px; gap: 8px; }
	.csio-grid.csio-size-small { --csio-tile-min: 125px; --csio-scale: 0.85; }
	.csio-grid.csio-size-large { --csio-tile-min: 260px; --csio-scale: 1.2; }
	.csio-legend { gap: 4px; }
	.csio-chip { font-size: 12px; padding: 2px 8px; gap: 4px; }
	.csio-swatch { width: 11px; height: 11px; }
	.csio-key { font-size: 12px; }
	.csio-detail { grid-template-columns: 1fr; }
	.xng-tab { padding: 8px 14px; }
}

/* Small phones (iPhone SE, 13 mini): the title drops under the brand instead of squeezing beside it. */
@media (max-width: 400px) {
	.xng-topbar-title { min-width: 0; flex-basis: 100%; }
}

/* Touch screens (phones and tablets at the dispensers): bigger targets, no hover-only cues. */
@media (pointer: coarse) {
	.xng-btn, .xng-form input[type="submit"], .xng-form button, .xng-toolbar button, .xng-menu-group li a { min-height: 44px; }
	.xng-form input, .xng-form select { min-height: 44px; }
	.xng-menu-primary li a { min-height: 56px; }
	table.xng-table td .xng-btn { min-height: 40px; }
	table.xng-table th.xng-sortable { padding-top: 12px; padding-bottom: 12px; }
	table.xng-table th.xng-sortable::after { opacity: 0.6; }
	.xng-topbar-nav a { min-height: 40px; display: inline-flex; align-items: center; }
	.csio-open { width: 40px; height: 40px; }
	.csio-chip { min-height: 32px; }
}

@media print {
	.xng-topbar-nav, .xng-toolbar, .xng-staging, .xng-noprint, .xng-tabs, .csio-tools, .csio-open { display: none !important; }
	.xng-scroll { overflow: visible; }
	.xng-topbar { background: #fff; color: #000; border-bottom: 2px solid #000; }
	.xng-brand, .xng-topbar-title { color: #000; }
	body { background: #fff; }
	.xng-card, .xng-menu-group { box-shadow: none; }
}

/* ---- high-resolution screens (10/12, B10) --------------------------------------------------- */

/* A 4K wall screen or laptop at 2200 CSS px or wider: the whole page scales up a quarter and the
   content band widens, so a status page reads from across a room; from 3400 px (4K at 100%) it
   scales up by half. Below 2200 px nothing changes. The stylesheet and the pages size in px, so
   the root font size on its own would move only rem-based text (none today); zoom scales every px
   rule and the SVG charts alike, and the chart script measures the box, so a chart stays sharp. */
@media (min-width: 2200px) {
	html { font-size: 18px; }
	body { zoom: 1.25; }
	.xng-page { max-width: 1800px; }
}

@media (min-width: 3400px) {
	html { font-size: 20px; }
	body { zoom: 1.5; }
	.xng-page { max-width: 2100px; }
}
