/* Vault Intelligence: follows the drev.tech brand (ink, orange, deep teal, mint;
   pill buttons; light headings). drev.tech sets TT Firs Neue, which is licensed;
   the site's own fallback, Poppins, is self-hosted here (OFL, assets/fonts). */
@font-face { font-family: Poppins; font-style: normal; font-weight: 300; font-display: swap; src: url(assets/fonts/poppins-latin-300.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/poppins-latin-400.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-style: normal; font-weight: 500; font-display: swap; src: url(assets/fonts/poppins-latin-500.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-style: normal; font-weight: 600; font-display: swap; src: url(assets/fonts/poppins-latin-600.woff2) format("woff2"); }
:root {
  --ink: #1d1d25;
  --ink-2: #474751;
  --muted: #6f6f79;
  --subtle: #8c8c96;
  --line: #e2e2e7;
  --line-soft: #eeeef1;
  --page: #f5f5f7;
  --surface-2: #f8f8fa;
  --deep: #052d33;
  --deep-2: #0b3f46;
  --on-deep: #d5e6df;
  --on-deep-muted: #8fb3a6;
  --mint: #c0ddcf;
  --mint-strong: #8fbfab;
  --mint-soft: #ebf4ef;
  --orange: #ff542e;
  --orange-text: #d6421f;
  --orange-soft: #ffece6;
  --white: #fff;
  --green: #2ca773;
  --shadow: 0 1px 2px rgba(29, 29, 37, .04);
  /* The hooked arrow from the DREV PowerPoint template, used as a mask so it is
     always painted in --orange. */
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 2v3.5a8.3 8.3 0 0 0 8.3 8.3H20M13.4 7.5l6.3 6.3-6.3 6.3'/%3E%3C/svg%3E");
  font-family: Poppins, system-ui, Arial, sans-serif;
  color: var(--ink);
  background: var(--page);
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
b, strong, th { font-weight: 600; }
h1, h2, h3 { font-weight: 500; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
a { color: inherit; }
[hidden] { display: none !important; }
.loading, .noscript { padding: 40px; }
/* Page frame as on drev.tech: white header with text links, white page in a
   full-width page, near-black footer. */
.app-shell { min-height: 100vh; display: flex; flex-direction: column; background: #fff; }
.site-header { position: sticky; top: 0; z-index: 5; border-bottom: 1px solid var(--line); background: #fff; }
.site-header-inner { display: flex; align-items: center; gap: 40px; min-height: 96px; padding: 16px 40px; }
.brand { display: flex; align-items: center; gap: 16px; flex: none; color: var(--ink); text-decoration: none; line-height: 1; }
.brand img { display: block; width: 92px; height: auto; }
.brand span { display: grid; gap: 4px; padding-left: 16px; border-left: 1px solid var(--line); }
.brand small { color: var(--subtle); font-size: 13px; font-weight: 400; }
.brand strong { color: var(--ink); font-size: 17px; font-weight: 400; letter-spacing: -.02em; }
.header-tools { display: flex; align-items: center; gap: 14px; flex: none; margin-left: auto; }
.header-link { color: var(--ink); font-size: 13px; font-weight: 500; letter-spacing: -.02em; text-decoration: none; white-space: nowrap; }
.header-link:hover { color: var(--orange-text); }
/* Left menu under the logo: plain text links in the site's nav style, current page in orange. */
.app-body { position: relative; flex: 1; display: grid; grid-template-columns: 250px minmax(0, 1fr); width: 100%; }
.sidebar { grid-area: 1 / 1; position: sticky; top: 97px; align-self: start; max-height: calc(100vh - 97px); overflow-y: auto; padding: 32px 24px 32px 40px; }
.nav { display: grid; gap: 2px; }
.nav-caption { margin: 22px 0 8px; color: var(--subtle); font-size: 13px; }
.nav-caption:first-child { margin-top: 8px; }
.nav a { position: relative; padding: 9px 0 9px 26px; color: var(--ink); font-size: 15px; font-weight: 500; letter-spacing: -.02em; text-decoration: none; white-space: nowrap; transition: color .15s ease-in-out; }
.nav a:hover { color: #7d7d87; }
.nav a.active { color: var(--orange-text); }
.nav a.active::before { content: ""; position: absolute; left: 0; top: 50%; width: 17px; height: 17px; margin-top: -11px; }
/* The arrow marks where you are (current menu item, selected row) and where a
   link leads (drill-down rows, "open" buttons). */
.nav a.active::before, .ticket-row.active::before, .service-leaf.active::before, .drill::after {
  background: var(--orange); -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat; }
.drill::after { content: ""; display: inline-block; flex: none; width: 15px; height: 15px; margin-left: 8px; vertical-align: -2px; }
/* In tables the arrow shows on the row you point at, so a column of names stays quiet. */
td a.drill::after { opacity: 0; transition: opacity .15s; }
tr:hover td a.drill::after, td a.drill:focus-visible::after { opacity: 1; }
/* The orange line from the DREV templates, drawn by drawGuide() in app.js: from
   the current menu item down the menu edge into the rule under the page title. */
.guide-line { position: absolute; top: 0; left: 0; z-index: 1; overflow: visible; pointer-events: none; }
.guide-line path { fill: none; stroke: var(--orange); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.guide-line .guide-cover { fill: #fff; }
.guide-line .guide-edge { stroke: var(--line); stroke-width: 1; }
/* Sticks exactly like the menu (drawGuide() gives it the menu's height) and carries the line's menu end. */
.guide-anchor { grid-area: 1 / 1; position: sticky; top: 97px; align-self: start; pointer-events: none; }
/* The poster meander, small, for quiet panels: loading, errors, nothing to show. */
.quiet { display: grid; justify-items: center; gap: 14px; }
.quiet p { margin: 0; }
.meander { display: block; width: 84px; height: auto; overflow: visible; }
.meander path { fill: none; stroke: var(--orange); stroke-width: 9; stroke-linecap: round; }
.meander.drawing path { stroke-dasharray: 100; animation: meander-draw 1.8s ease-in-out infinite; }
@keyframes meander-draw { 0% { stroke-dashoffset: 100; } 55%, 100% { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .meander.drawing path { animation: none; } }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; color: var(--subtle); font-size: 13px; }
.crumbs span + span::before { content: "/"; margin-right: 8px; color: var(--line); }
.crumbs span:last-child { color: var(--ink); }
/* Above the orange line's run down the menu edge, which can reach past the page for a frame while scrolling. */
.site-footer { position: relative; z-index: 2; margin-top: auto; background: var(--ink); color: #fff; }
.site-footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; padding: 64px 40px; }
.footer-brand img { display: block; width: 120px; height: auto; }
.footer-brand p { margin: 14px 0 0; color: #b4b4bc; font-size: 15px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 64px; }
.footer-cols div { display: grid; align-content: start; gap: 8px; min-width: 140px; }
.footer-cols p { margin: 0 0 8px; color: #fff; font-size: 15px; font-weight: 500; }
.footer-cols span, .footer-cols a { color: #a6a6b0; font-size: 14px; text-decoration: none; }
.footer-cols a:hover { color: #fff; }
.demo-pill { display: inline-flex; align-items: center; gap: 7px; color: #9e6334; font-size: 12px; font-weight: 600; white-space: nowrap; }
.demo-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.demo-pill.live { color: #177b4c; }
.demo-pill.live::before { background: var(--green); box-shadow: 0 0 0 3px #d8efdf; }
.role-switch { display: flex; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); }
.role-switch button { padding: 7px 12px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 500; white-space: nowrap; }
.role-switch button.active { background: var(--ink); color: #fff; }
.view-switch button[data-view="simulated"].active { background: var(--orange); }
.avatar { display: grid; place-items: center; width: 31px; height: 31px; flex: none; border-radius: 50%; background: var(--mint); color: var(--deep); font-size: 12px; font-weight: 600; }
.page { min-width: 0; padding: 40px 40px 96px; border-left: 1px solid var(--line); }
/* Orange category label, as on the Insights cards ("Press Release"). */
.eyebrow { color: var(--orange-text); font-size: 14px; font-weight: 500; letter-spacing: -.02em; }
.page-head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 20px; margin-bottom: 32px; }
.page-head > div { min-width: 0; max-width: 100%; }
.page-head h1 { margin: 10px 0 14px; color: var(--ink); font-size: clamp(36px, 4.6vw, 64px); font-weight: 300; line-height: 1.02; letter-spacing: -.045em; }
.page-head p { max-width: 640px; margin: 0; color: rgba(29, 29, 37, .7); font-size: 16px; line-height: 1.5; }
/* Pill buttons as on drev.tech: orange fill with ink text; hover swaps to an ink outline. */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 9px 24px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s; }
.button:hover { border-color: var(--ink); background: #fff; }
.button.primary, .button.orange { border-color: var(--orange); background: var(--orange); color: var(--ink); }
.button.primary:hover, .button.orange:hover { border-color: var(--ink); background: transparent; }
.button:disabled, .button:disabled:hover { opacity: .5; cursor: default; border-color: var(--line); }
.button.primary:disabled { border-color: var(--orange); background: var(--orange); }
.select, .input { min-height: 40px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: var(--ink); font-size: 13px; }
.input::placeholder { color: var(--subtle); }
.select { cursor: pointer; }
/* Square sections divided by hairlines, no shadows, as on drev.tech. */
.panel { min-width: 0; border: 1px solid var(--line); border-radius: 0; background: #fff; box-shadow: none; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 24px 24px 18px; }
.panel-head h2, .panel-head h3 { margin: 0; color: var(--ink); font-size: 22px; font-weight: 400; letter-spacing: -.03em; }
.panel-head small { color: var(--subtle); font-size: 13px; }
.muted { color: var(--muted); }
.status { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; border-radius: 20px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.normal, .status.operating { background: #e5f4e9; color: #177b4c; }
.status.attention { background: #fff0df; color: #a86519; }
.status.offline { background: #f9e8e6; color: #be5149; }
.status.charging { background: #e6effc; color: #346cab; }
/* Rows of figures share their dividing lines on a mint tint, like the
   "All Articles" grid. */
.kpi-grid, .detail-metrics, .report-summary, .outcome-grid { gap: 0 !important; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(192, 221, 207, .2); }
.kpi-grid > .panel, .detail-metrics > .panel, .report-summary > .panel, .outcome-grid > .panel { border: 0; border-right: 1px solid var(--line); background: transparent; }
.kpi-grid > .panel:last-child, .detail-metrics > .panel:last-child, .report-summary > .panel:last-child, .outcome-grid > .panel:last-child { border-right: 0; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpi { min-height: 170px; padding: 28px; }
.kpi.emphasis .kpi-label { color: var(--orange-text); }
.kpi-label { color: var(--ink); font-size: 14px; font-weight: 500; }
.kpi strong { display: block; margin: 22px 0 10px; color: var(--ink); font-size: 52px; line-height: 1; letter-spacing: -.06em; font-weight: 300; }
.kpi small { color: rgba(29, 29, 37, .7); font-size: 13px; }
.ops-grid { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(290px,.85fr); gap: 24px; margin-top: 24px; }
/* Issue rows read like the Insights article list: hairline rows, orange marker, fade on hover. */
.alert-item { display: flex; gap: 14px; padding: 16px 24px; border-top: 1px solid var(--line); transition: opacity .35s ease-out, background-color .35s ease-out; }
.alert-item:hover { background: rgba(192, 221, 207, .2); }
.alert-icon { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--orange); color: var(--ink); font-size: 13px; font-weight: 600; }
.alert-item strong { display: block; font-size: 14px; font-weight: 500; letter-spacing: -.01em; }
.alert-item p { margin: 4px 0 0; color: rgba(29, 29, 37, .7); font-size: 13px; }
.alert-item time { margin-left: auto; color: var(--subtle); font-size: 12px; white-space: nowrap; }
.machine-attention { margin-bottom: 24px; }
.machine-attention .alert-item { align-items: center; color: inherit; text-decoration: none; }
.machine-attention .alert-item > div { min-width: 0; overflow-wrap: anywhere; }
.machine-attention .alert-item::after { content: "↗"; margin-left: auto; color: var(--orange-text); font-size: 20px; line-height: 1; }
.machine-attention .alert-item:focus-visible { outline: 2px solid var(--deep); outline-offset: -2px; }
.machine-attention-clear { margin: 0; padding: 18px 24px 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.bar-chart { height: 111px; display: flex; align-items: end; gap: 5px; padding: 6px 17px 0; }
.bar-chart span { flex: 1; min-width: 3px; height: var(--height); border-radius: 2px 2px 0 0; background: var(--mint); }
.bar-chart span:nth-child(3n) { background: var(--deep); }
.bar-chart span:nth-child(9) { background: var(--orange); }
.chart-axis { display: flex; justify-content: space-between; padding: 9px 17px 17px; color: var(--subtle); font-size: 11px; }
.table-panel { margin-top: 13px; }
.filter-pills { display: flex; flex-wrap: wrap; gap: 5px; }
.filter-pills button { min-height: 34px; padding: 6px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-2); font-size: 13px; font-weight: 500; }
.filter-pills button:hover { border-color: var(--ink); }
.filter-pills button.active { border-color: var(--ink); background: var(--ink); color: #fff; }
/* Period buttons under the machine overview chart. */
.chart-ranges { margin-top: 16px; }.chart-ranges button { min-height: 30px; padding: 4px 12px; font-size: 12px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; min-width: 680px; border-collapse: collapse; }
th { padding: 14px 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; color: var(--subtle); font-size: 13px; font-weight: 500; text-align: left; }
td { padding: 16px 24px; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 13px; }
tbody tr:last-child td { border-bottom: 0; }
td strong { color: var(--ink); }
td small { display: block; margin-top: 3px; color: var(--subtle); font-size: 11px; }
td a { color: var(--deep); font-weight: 600; text-decoration: none; }
td a:hover { text-decoration: underline; text-decoration-color: var(--orange); }
.empty { padding: 28px; color: var(--muted); font-size: 13px; text-align: center; }
.customer-hero { display: block; }
.customer-intro { position: relative; padding: 8px 0; }
.customer-intro h1 { max-width: none; margin: 11px 0 16px; color: var(--ink); font-size: clamp(28px,2.7vw,40px); line-height: 1.15; letter-spacing: -.045em; font-weight: 300; }
.customer-intro p { max-width: 640px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.customer-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.outcome-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; margin: 24px 0; }
.outcome { position: relative; min-height: 145px; overflow: hidden; padding: 22px; }
.fleet-runtime { --fleet-color: var(--orange); --fleet-soft: var(--orange-soft); }
.fleet-water { --fleet-color: #5b83ad; --fleet-soft: #e7eef5; }
.fleet-material { --fleet-color: #c39a45; --fleet-soft: #f5eedf; }
.fleet-area { --fleet-color: #438c7a; --fleet-soft: #e4f0ec; }
.outcome::after { content: ""; position: absolute; right: -43px; bottom: -59px; width: 116px; height: 116px; border: 22px solid var(--fleet-soft, var(--mint-soft)); border-radius: 50%; }
.outcome span { color: var(--muted); font-size: 12px; font-weight: 500; }
.outcome strong { display: block; margin: 22px 0 6px; color: var(--ink); font-size: clamp(28px,2.5vw,36px); line-height: 1; letter-spacing: -.05em; font-weight: 300; }
.outcome small { color: var(--subtle); font-size: 11px; }
.outcome > * { position: relative; z-index: 1; }
@media (min-width: 651px) and (max-width: 1200px) {
  .outcome-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .outcome-grid > .panel:nth-child(2n) { border-right: 0; }
  .outcome-grid > .panel:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
.customer-grid { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(280px,.8fr); gap: 13px; }
.activity-panel { padding: 23px; }
.activity-panel h2 { margin: 0; font-size: 16px; }
.activity-panel p { margin: 4px 0 0; color: var(--subtle); font-size: 11px; }
.activity-svg { width: 100%; height: 180px; display: block; margin: 19px 0 2px; }
.activity-svg .grid { stroke: var(--line-soft); stroke-width: 1; }.activity-svg .area { fill: var(--mint-soft); }.activity-svg .line { fill: none; stroke: var(--deep); stroke-width: 3; stroke-linecap: round; }
.activity-axis { display: flex; justify-content: space-between; color: var(--subtle); font-size: 11px; }
.customer-performance { margin: 28px 0; }
.customer-performance > .panel-head { padding: 0; margin-bottom: 14px; }
.fleet-chart-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.fleet-chart-panel:nth-child(1), .fleet-chart-panel:nth-child(4) { grid-column: span 3; }
.fleet-chart-panel:nth-child(2), .fleet-chart-panel:nth-child(3) { grid-column: span 2; }
.fleet-chart-panel { padding: 22px; }
.fleet-chart-panel .panel-head { padding: 0; align-items: start; margin-bottom: 12px; }
.fleet-chart-panel h2 { margin: 0; font-size: 16px; }
.fleet-chart-panel p { margin: 5px 0 0; color: var(--subtle); font-size: 11px; }
.fleet-plot { display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 8px; padding-right: 8px; }
.fleet-y-axis { position: relative; color: var(--subtle); font-size: 11px; }
.fleet-y-axis span { position: absolute; right: 0; transform: translateY(-50%); white-space: nowrap; }
.fleet-x-axis { position: relative; height: 26px; color: var(--subtle); font-size: 11px; }
.fleet-x-axis span { position: absolute; top: 4px; white-space: nowrap; }
.fleet-activity-svg { display: block; width: 100%; height: 180px; overflow: visible; }
.fleet-activity-svg .grid { fill: none; stroke: var(--line-soft); vector-effect: non-scaling-stroke; }
.fleet-bar { fill: var(--fleet-color, var(--orange)); }
.fleet-bar.current { fill-opacity: .5; }
.fleet-chart-area { height: 180px; }
.fleet-chart-area .plot-cross i { background: var(--fleet-color, var(--orange)); }
@media (max-width: 1000px) {
  .fleet-chart-grid { grid-template-columns: 1fr; }
  .fleet-chart-panel:nth-child(n) { grid-column: auto; }
}
@media (max-width: 750px) {
  .customer-performance > .panel-head { flex-wrap: wrap; gap: 12px; }
  .fleet-chart-panel { padding: 18px 12px; }
}
.watch-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--line-soft); text-decoration: none; }
.watch-item:last-child { border-bottom: 0; }
.watch-item strong { display: block; color: var(--ink); font-size: 12px; }.watch-item small { color: var(--subtle); font-size: 11px; }
.watch-item:hover strong { text-decoration: underline; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.toolbar .input { width: min(260px,100%); }
.result-count { color: var(--subtle); font-size: 11px; }
/* A machine's page: its content, with the list of machines on the right. */
.detail-page { display: grid; grid-template-columns: minmax(0,1fr) 195px; gap: 17px; }
.detail-side { grid-column: 2; grid-row: 1; }
.detail-main { grid-column: 1; grid-row: 1; }
.detail-side { padding: 17px 12px; height: fit-content; }
.detail-side h2 { margin: 0 9px 11px; color: var(--muted); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.unit-link { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; padding: 11px 10px; border: 1px solid transparent; border-radius: 0; background: transparent; color: var(--ink-2); text-align: left; text-decoration: none; }
.unit-link.active { border-color: var(--line); background: var(--mint-soft); }
.unit-link:hover { background: var(--mint-soft); }
.unit-link strong { display: block; font-size: 12px; }.unit-link small { color: var(--subtle); font-size: 11px; }.unit-link i { width: 7px; height: 7px; flex: none; border-radius: 50%; background: #2aa775; }
.unit-link i.attention { background: #e3a036; }.unit-link i.offline { background: #d15d55; }.unit-link i.charging { background: #5a8dd1; }
.detail-main { min-width: 0; }
.breadcrumbs { color: var(--subtle); font-size: 11px; font-weight: 500; }
/* Breadcrumbs, with the machine's status and actions at the right, above its name. */
.detail-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px 16px; }
.detail-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 13px; margin: 9px 0 17px; }
.detail-head h1 { margin: 0 0 8px; color: var(--ink); font-size: clamp(32px, 3.6vw, 48px); line-height: 1.05; letter-spacing: -.045em; font-weight: 300; }.detail-head p { margin: 0; color: var(--subtle); font-size: 12px; }
.tabs { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.tabs a, .tabs button { flex: none; padding: 11px 13px; border: 0; border-bottom: 4px solid transparent; background: transparent; color: var(--muted); font-size: 12px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.tabs .active { border-color: var(--orange); color: var(--ink); }
.detail-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 11px; }
.detail-metric { min-height: 150px; padding: 24px; }button.detail-metric { width: 100%; color: inherit; text-align: left; transition: background-color .15s; }button.detail-metric:hover { background: rgba(192, 221, 207, .35); }.detail-metrics > .detail-metric.active { background: var(--mint-soft); box-shadow: inset 0 -3px 0 var(--deep); }.detail-metric span { color: var(--ink); font-size: 14px; font-weight: 500; }.detail-metric strong { display: block; margin: 22px 0 6px; color: var(--ink); font-size: 40px; line-height: 1; letter-spacing: -.05em; font-weight: 300; }.detail-metric small { color: var(--subtle); font-size: 11px; }
.detail-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 12px; margin-top: 12px; }
.detail-panel { padding: 20px; }.detail-panel h2 { margin: 0; color: var(--ink); font-size: 14px; }.detail-panel p { color: var(--subtle); font-size: 11px; }
.battery-chart { width: 100%; height: 160px; display: block; margin-top: 15px; }
/* The machine overview chart: unit over the y axis, round ticks, time ticks below, and a
   crosshair with a tooltip at the nearest point. Hairline grid; the SVG stretches, strokes don't. */
.plot { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto 160px 20px; column-gap: 10px; margin: 15px 0 0; }
.plot-unit { grid-area: 1 / 1 / 2 / 3; margin-bottom: 8px; color: var(--subtle); font-size: 11px; }
.plot-y { grid-area: 2 / 1; position: relative; min-width: 24px; }
.plot-y span, .plot-x span { position: absolute; color: var(--subtle); font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.plot-y span { right: 0; transform: translateY(-50%); }
.plot-x { grid-area: 3 / 2; position: relative; }
.plot-x span { top: 5px; transform: translateX(-50%); }.plot-x span.start { transform: none; }.plot-x span.end { transform: translateX(-100%); }
.plot-area { grid-area: 2 / 2; position: relative; cursor: crosshair; outline-offset: 4px; }
.plot svg { display: block; width: 100%; height: 100%; overflow: visible; }
.plot svg path { vector-effect: non-scaling-stroke; }
.plot .grid { fill: none; stroke: var(--line); stroke-width: 1; }
.plot .area { fill: var(--mint-soft); }
.plot .line { fill: none; stroke: var(--deep); stroke-width: 2; stroke-linejoin: round; }
.plot .threshold { fill: none; stroke: var(--orange); stroke-width: 1.5; stroke-dasharray: 5 5; }
.metric-chart-scroll { overflow-x: auto; padding: 4px 0 10px; }
.chart-controls { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.chart-navigation { display: flex; gap: 6px; }
.chart-step { min-width: 38px; padding: 6px 10px; font-size: 20px; line-height: 1; }
.chart-step:disabled { opacity: .3; cursor: default; }
.bar-plot { grid-template-rows: auto 190px 24px 20px; margin-top: 12px; }
.bar-plot .metric-bar { fill: var(--orange); }
.bar-plot .metric-bar.current { opacity: .65; }
.battery-plot .battery-trace { fill: none; stroke: var(--orange); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.bar-plot .week-outline { fill: none; stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.bar-plot .threshold { stroke: var(--ink); }
.bar-plot .plot-cross i { background: var(--orange); }
.bar-plot .plot-x span { font-size: 10px; }
.bar-plot .plot-x span.future { opacity: .6; }
.plot-years { grid-area: 4 / 2; position: relative; }
.plot-years span { position: absolute; top: 0; padding-top: 4px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); color: var(--subtle); text-align: center; font-size: 10px; }
.plot-years span:first-child { border-left: 0; }
.plot-cross { position: absolute; top: 0; bottom: 0; width: 1px; margin-left: -.5px; background: rgba(71, 71, 81, .45); pointer-events: none; }
.plot-cross i { position: absolute; left: -4px; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--deep); box-shadow: 0 0 0 2px #fff; }
.plot-tip { position: absolute; z-index: 2; display: grid; gap: 2px; min-width: 90px; margin: -12px 0 0 12px; padding: 7px 10px; transform: translateY(-100%); border: 1px solid var(--line); background: #fff; box-shadow: 0 4px 14px rgba(29, 29, 37, .1); pointer-events: none; white-space: nowrap; }
.plot-tip.flip { margin-left: -12px; transform: translate(-100%, -100%); }
.plot-tip.below { margin-top: 12px; transform: none; }.plot-tip.below.flip { transform: translateX(-100%); }
.plot-tip strong { color: var(--ink); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.plot-tip span { color: var(--muted); font-size: 11px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 6px; color: var(--subtle); font-size: 11px; }.chart-legend b { color: var(--deep); }.chart-legend b.orange { color: var(--orange); }.chart-legend b.mint { color: var(--mint); }
.health-row { display: flex; justify-content: space-between; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--line-soft); font-size: 12px; }.health-row:last-child { border-bottom: 0; }.health-row span { color: var(--muted); }.health-row strong { color: var(--ink); }.health-row strong.warn { color: #b2782a; }
.event-row { display: flex; gap: 13px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }.event-row:last-child { border-bottom: 0; }.event-row time { width: 45px; flex: none; color: var(--subtle); font-size: 11px; }.event-row strong { display: block; font-size: 12px; }.event-row small { color: var(--subtle); font-size: 11px; }
.spec-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-top: 16px; }.spec-grid div { padding: 12px; border: 1px solid var(--line); border-radius: 0; background: var(--surface-2); }.spec-grid span { display: block; margin-bottom: 6px; color: var(--subtle); font-size: 11px; }.spec-grid strong { font-size: 12px; }
.status-tabs { display: flex; gap: 4px; overflow-x: auto; margin: 0 18px; border-bottom: 1px solid var(--line); }.status-tabs button { flex: none; padding: 12px 13px; border: 0; border-bottom: 4px solid transparent; background: transparent; color: var(--muted); font-size: 12px; font-weight: 500; }.status-tabs button.active { border-color: var(--orange); color: var(--ink); }.status-tabs small { margin-left: 4px; padding: 2px 5px; border: 1px solid var(--line); border-radius: 4px; }
.variable-table { min-width: 480px; }.variable-table th { display: table-cell; }.variable-table td { padding: 11px 17px; }.variable-table td:nth-child(2) { color: var(--ink); font-weight: 600; white-space: nowrap; }.variable-table .variable-description { min-width: 230px; max-width: 520px; color: var(--ink-2); font-weight: 400; line-height: 1.5; }.variable-description div + div { margin-top: 4px; }

.config-layout { display: grid; grid-template-columns: 225px minmax(0,1fr); gap: 12px; }.config-menu { padding: 14px; }.config-menu h2 { margin: 0 6px 9px; font-size: 13px; }.config-menu button { display: flex; justify-content: space-between; gap: 8px; width: 100%; padding: 10px 8px; border: 0; border-radius: 5px; background: transparent; color: var(--ink-2); text-align: left; font-size: 12px; }.config-menu button.active { background: var(--mint-soft); color: var(--deep); font-weight: 600; }.config-menu button:hover { background: var(--mint-soft); }
.config-main { padding: 20px; min-height: 320px; }.config-main h2 { margin: 0 0 19px; font-size: 14px; }.config-row { display: grid; grid-template-columns: minmax(140px,1fr) 100px 65px 75px; align-items: center; gap: 10px; max-width: 570px; margin-bottom: 12px; color: var(--ink-2); font-size: 12px; }.config-row strong, .config-row input { padding: 8px 9px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink); font-size: 12px; }.config-row input { width: 100%; border-color: var(--mint-strong); }.config-row small { color: var(--subtle); }
.save-status { margin-top: 12px; padding: 14px 17px; }.save-status-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }.save-status-head strong { color: var(--ink); font-size: 13px; }.save-status-head small { color: var(--subtle); font-size: 12px; }.save-status p { margin: 9px 0 0; color: var(--ink-2); font-size: 12px; line-height: 1.5; }.save-status .save-detail { color: #996825; }.config-row .requested { margin-left: 5px; color: #346cab; white-space: nowrap; }
.inline-note { color: var(--subtle); font-size: 12px; line-height: 1.5; }.notice { padding: 12px 14px; border: 1px solid #f1dec4; border-radius: 0; background: #fffaf2; color: #996825; font-size: 12px; line-height: 1.5; }
.report-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin-bottom: 24px; }.report-summary .panel { padding: 24px; }.report-summary span { color: var(--ink); font-size: 14px; font-weight: 500; }.report-summary strong { display: block; margin-top: 18px; font-size: 40px; line-height: 1; font-weight: 300; letter-spacing: -.05em; }
.commission-layout { display: grid; grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); align-items: start; gap: 16px; }
.commission-list { padding: 17px; }.commission-list .panel-head { margin-bottom: 8px; }
.commission-list-label { margin: 16px 0 6px; color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.commission-units { display: grid; gap: 5px; max-height: min(72vh, 760px); overflow-y: auto; }
.commission-unit { display: grid; gap: 4px; width: 100%; padding: 11px 12px; border: 1px solid transparent; border-radius: 0; background: transparent; text-align: left; color: var(--ink); }
.commission-unit.pending { border-color: #f0dfc3; background: #fffbf4; }.commission-unit.pending.active { border-color: #e8b66a; background: #fff3df; }
.commission-unit:hover, .commission-unit.active { border-color: var(--line); background: var(--mint-soft); }
.commission-unit strong { font-size: 13px; }.commission-unit small, .commission-unit span { color: var(--muted); font-size: 11px; }
.commission-main { display: grid; gap: 14px; min-width: 0; }.commission-form, .commission-history { padding: 22px; }
.commission-discovery-note { display: grid; gap: 5px; margin: 12px 0 18px; padding: 14px; border: 1px solid #f0dfc3; border-radius: 0; background: #fffbf4; color: #775c30; font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.commission-discovery-note strong { color: #6e4e1e; font-size: 13px; }.commission-discovery-note small { margin-top: 4px; font-size: 12px; }
.commission-form .panel-head { align-items: center; }.commission-form .panel-head h2 { margin: 3px 0 0; font-size: 19px; }
.commission-section { padding: 19px 0 20px; border-top: 1px solid var(--line); }.commission-section h3 { margin: 0 0 4px; font-size: 13px; }
.commission-section p { margin: 0 0 15px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.commission-fields, .commission-devices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.commission-field { display: grid; gap: 6px; min-width: 0; color: var(--ink-2); font-size: 12px; font-weight: 500; }
.commission-field .input, .commission-field .select { width: 100%; min-height: 39px; font-size: 13px; }
.commission-field input[readonly] { background: var(--surface-2); color: var(--muted); }
.commission-devices fieldset { display: grid; gap: 12px; min-width: 0; margin: 0; padding: 15px; border: 1px solid var(--line); border-radius: 0; }
.commission-devices legend { padding: 0 5px; color: var(--deep); font-size: 13px; font-weight: 600; }
.commission-note { margin: 0; padding: 12px 14px; border-radius: 0; background: var(--mint-soft); color: var(--ink-2); font-size: 12px; line-height: 1.5; }
.commission-history .inline-note { margin: 12px 0 0; }
.commission-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; margin: 0 0 14px; }
.commission-fact { display: grid; gap: 3px; min-width: 0; }
.commission-fact dt { color: var(--muted); font-size: 11px; font-weight: 500; }
.commission-fact dd { margin: 0; overflow-wrap: anywhere; color: var(--ink); font-size: 13px; font-weight: 500; }
.commission-fact .missing { color: var(--subtle); font-weight: 400; }
.commission-device { display: grid; gap: 10px; min-width: 0; margin: 0; padding: 15px; border: 1px solid var(--line); background: var(--surface-2); }
.commission-device h4 { margin: 0; color: var(--deep); font-size: 13px; font-weight: 600; }
.commission-form > .inline-note { margin: 10px 0 0; line-height: 1.6; }
.commission-field-heading { display: flex; justify-content: space-between; gap: 8px; }.field-link { color: var(--deep); font-weight: 600; text-decoration: none; }.field-link:hover { text-decoration: underline; }
.customers-layout { display: grid; grid-template-columns: minmax(250px, 340px) minmax(0, 1fr); align-items: start; gap: 16px; }
.customers-form { display: grid; gap: 14px; padding: 22px; }.customers-form h2 { margin: -8px 0 0; font-size: 20px; }.customers-form p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }.customers-form .login-error { color: #be5149; }.customers-form .commission-field { font-size: 12px; }.customers-form textarea { width: 100%; resize: vertical; line-height: 1.5; }.customer-form-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.customers-list { min-width: 0; padding-top: 19px; }.customers-list .panel-head { padding: 0 19px 17px; }.customers-list .panel-head h2 { margin: 0 0 4px; font-size: 15px; }.customers-list .panel-head small { color: var(--muted); font-size: 12px; }.customers-list .input { width: min(230px, 100%); }.customers-list table { min-width: 650px; }.customers-list td { vertical-align: top; }.customers-list td:last-child { text-align: right; }.customers-list td .customer-address { max-width: 250px; white-space: pre-line; }.customers-list td small { line-height: 1.45; }
.toast { position: fixed; right: 19px; bottom: 19px; max-width: 350px; padding: 13px 16px; border-radius: 6px; background: var(--ink); color: #fff; box-shadow: 0 12px 28px rgba(5,45,51,.25); font-size: 13px; z-index: 10; }
/* Sign-in pages carry the full poster meander, bleeding off the right edge;
   the card sits in the open space on the left. */
.login { position: relative; overflow: hidden; min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: #fff; }
.login-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.login-art path { fill: none; stroke: var(--orange); stroke-width: 48; stroke-linecap: round; stroke-linejoin: round; }
.login-card { position: relative; }
/* Beside the menu, page subtitles are one line resting on the orange rule,
   starting just after its S-bend (see drawGuide in app.js). */
@media (min-width: 901px) { .page-head > div > p, .customer-intro > p, .detail-head > div > p { margin-left: 36px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } }
@media (min-width: 900px) { .login { justify-items: start; padding-left: 9vw; } }
/* Narrow screens: the whole meander, scaled down, along the bottom. */
@media (max-width: 899px) { .login-art { top: auto; height: auto; } }
.login-card { display: grid; gap: 6px; width: min(380px, 100%); padding: 30px 28px; }
.login-brand { display: flex; align-items: center; gap: 14px; color: var(--ink); line-height: 1; }
.login-brand img { display: block; width: 72px; height: auto; }
.login-brand span { padding-left: 14px; border-left: 1px solid var(--line); font-size: 16px; font-weight: 400; letter-spacing: -.01em; }
.login-card h1 { margin: 26px 0 4px; color: var(--ink); font-size: 28px; font-weight: 300; letter-spacing: -.035em; }
.login-intro { margin: 0 0 6px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.login-card label { margin-top: 10px; color: var(--ink-2); font-size: 12px; font-weight: 600; }
.login-card .input { width: 100%; min-height: 42px; font-size: 16px; }
.login-card .button { min-height: 42px; margin-top: 18px; font-size: 13px; }
.login-link { justify-self: center; margin-top: 10px; color: var(--muted); font-size: 13px; text-underline-offset: 3px; }
.login-link:hover { color: var(--orange-text); }
.login-error { margin: 10px 0 0; color: #be5149; font-size: 13px; line-height: 1.45; }
/* Two-across figure rows: the second cell of each row closes it, and the first row gets a line beneath. */
@media (max-width: 1200px) { .kpi-grid, .detail-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }.kpi-grid > .panel:nth-child(2n), .detail-metrics > .panel:nth-child(2n) { border-right: 0; }.kpi-grid > .panel:nth-child(-n+2), .detail-metrics > .panel:nth-child(-n+2) { border-bottom: 1px solid var(--line); }.ops-grid, .customer-grid, .detail-grid { grid-template-columns: 1fr; } }
/* Below 900px the left menu becomes a sideways-scrolling row under the header. */
@media (max-width: 1100px) { .site-header-inner { padding: 16px 24px; }.sidebar { padding-left: 24px; }.page { padding: 32px 24px 72px; }.site-footer-inner { padding: 48px 24px; } }
@media (max-width: 900px) { .app-body { display: block; }.guide-anchor { display: none; }.page { border-left: 0; }.sidebar { position: static; max-height: none; padding: 0 24px; border-right: 0; border-bottom: 1px solid var(--line); }.nav { display: flex; gap: 24px; overflow-x: auto; }.nav-caption { display: none; }.nav a { padding: 14px 0 14px 22px; }.nav a.active::before { width: 15px; height: 15px; margin-top: -9px; } }
@media (max-width: 900px) { .detail-page { grid-template-columns: minmax(0,1fr); }.detail-side, .detail-main { grid-column: 1; grid-row: auto; }.detail-side { display: flex; align-items: center; gap: 6px; overflow-x: auto; padding: 10px; }.detail-side h2 { flex: none; margin: 0 8px; }.unit-link { min-width: 140px; }.config-layout { grid-template-columns: 1fr; }.config-menu { display: flex; align-items: center; gap: 5px; overflow-x: auto; }.config-menu h2 { flex: none; margin: 0 10px 0 2px; }.config-menu button { width: auto; flex: none; white-space: nowrap; } }
@media (max-width: 650px) { th, td { padding-left: 16px; padding-right: 16px; }.site-header { position: static; }.site-header-inner { flex-wrap: wrap; gap: 12px; padding: 14px 16px; }.brand img { width: 72px; }.brand span { padding-left: 12px; }.header-tools { width: 100%; justify-content: space-between; }.sidebar { padding: 0 16px; }.nav { gap: 20px; }.page { padding: 24px 16px 56px; }.site-footer-inner { padding: 40px 16px; }.footer-cols { gap: 32px; }.customer-hero,.outcome-grid { grid-template-columns: 1fr; }.outcome-grid > .panel { border-right: 0; border-bottom: 1px solid var(--line); }.outcome-grid > .panel:last-child { border-bottom: 0; }.outcome { min-height: 115px; }.outcome strong { margin-top: 13px; }.kpi-grid,.detail-metrics,.report-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }.report-summary > .panel:nth-child(2n) { border-right: 0; }.report-summary > .panel:nth-child(-n+2) { border-bottom: 1px solid var(--line); }.kpi,.detail-metric { min-height: 120px; padding: 16px; }.kpi strong,.detail-metric strong { font-size: 34px; }.page-head { align-items: start; }.spec-grid { grid-template-columns: 1fr; }.config-row { grid-template-columns: minmax(100px,1fr) 72px 39px 55px; gap: 5px; }.panel-head { align-items: start; flex-wrap: wrap; } }
@media (max-width: 400px) { .demo-pill { display: none; }.role-switch { flex: 1; }.role-switch button { flex: 1; }.status { font-size: 10px; }.bar-chart { gap: 3px; } }
@media (max-width: 900px) { .commission-layout { grid-template-columns: 1fr; }.commission-units { display: flex; max-height: none; overflow-x: auto; }.commission-unit { min-width: 185px; } }
@media (max-width: 650px) { .commission-fields, .commission-devices, .commission-facts { grid-template-columns: 1fr; }.commission-form, .commission-history { padding: 17px; }.commission-form .panel-head { align-items: start; } }
@media (max-width: 900px) { .customers-layout { grid-template-columns: 1fr; } }
@media (max-width: 650px) { .customers-form { padding: 17px; }.customers-list .panel-head { align-items: stretch; }.customers-list .input { width: 100%; } }
/* Service & maintenance and Tickets */
.status.neutral { background: var(--surface-2); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; background: var(--mint-soft); color: #177b4c; font-size: 12px; font-weight: 500; white-space: nowrap; }
.badge.warn { background: var(--orange-soft); color: var(--orange-text); }.badge.neutral { background: var(--surface-2); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.section-label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 28px 0 12px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink); font-size: 15px; font-weight: 500; letter-spacing: -.01em; }
.section-label.first { margin-top: 0; padding-top: 0; border-top: 0; }.section-label small { margin-right: auto; color: var(--subtle); font-size: 12px; font-weight: 400; }
.section-label .field-link { font-size: 13px; font-weight: 500; }
.field-link { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 3px; }.field-link:hover { color: var(--orange-text); }
.check-field { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 13px; }
.priority-high { color: var(--orange-text); font-weight: 600; }
.service-banner { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 28px; margin-bottom: 24px; padding: 20px 24px; border-width: 1px 0; background: rgba(192, 221, 207, .2); }
.service-machine { display: grid; gap: 6px; color: var(--ink-2); font-size: 12px; font-weight: 500; }.service-machine .select { min-width: 260px; }
.service-banner-meta { display: grid; gap: 4px; flex: 1; min-width: 220px; }
.service-banner-meta strong { color: var(--ink); font-size: 24px; font-weight: 300; letter-spacing: -.04em; }.service-banner-meta small { color: rgba(29, 29, 37, .7); font-size: 13px; }
.service-banner-badges { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; font-size: 13px; }
.service-form, .ticket-form { display: grid; gap: 18px; margin-bottom: 24px; padding: 24px; border-top: 2px solid var(--orange); }
.service-form h2, .ticket-form h2 { margin: 6px 0 0; color: var(--ink); font-size: 28px; font-weight: 300; letter-spacing: -.04em; }
.ticket-form p { margin: 6px 0 0; color: rgba(29, 29, 37, .7); font-size: 13px; }
.service-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }.service-form-grid .wide { grid-column: 1 / -1; }
.service-form textarea, .ticket-form textarea, .ticket-reply textarea { width: 100%; resize: vertical; line-height: 1.5; }
.service-part { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 16px; border: 1px solid var(--line); }
.service-part legend { padding: 0 6px; color: var(--deep); font-size: 13px; font-weight: 600; }.service-part legend small { color: var(--subtle); font-weight: 400; }
.service-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); align-items: start; gap: 24px; }
.service-tree { padding-bottom: 12px; }.service-tree .panel-head { display: grid; gap: 4px; }.service-tree .panel-head h2 { font-size: 18px; }
.service-group { border-top: 1px solid var(--line); }.service-group h3 { margin: 0; padding: 13px 24px 6px; color: var(--ink); font-size: 14px; font-weight: 500; }
.service-leaf { position: relative; display: flex; align-items: center; gap: 10px; padding: 9px 24px 9px 40px; color: var(--ink-2); font-size: 13px; text-decoration: none; transition: background-color .2s ease-out; }
.service-leaf:last-child { margin-bottom: 8px; }.service-leaf:hover { background: rgba(192, 221, 207, .2); }
.service-leaf.active { background: rgba(192, 221, 207, .35); color: var(--ink); font-weight: 500; }.service-leaf.active::before { content: ""; position: absolute; left: 18px; top: 50%; width: 14px; height: 14px; margin-top: -9px; }
.service-leaf i { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--green); }.service-leaf i.warn { background: var(--orange); }.service-leaf i.missing { background: var(--line); }
.component-head { padding: 24px 24px 0; }.component-head small { color: var(--subtle); font-size: 12px; }.component-head p { margin: 8px 0 0; color: rgba(29, 29, 37, .7); font-size: 13px; }
.component-title { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 10px; }.component-title h2 { margin: 0; color: var(--ink); font-size: 34px; font-weight: 300; letter-spacing: -.045em; }
.component-tabs { margin: 18px 24px 0; }.component-body { min-height: 360px; padding: 24px; }
.service-alert { display: flex; gap: 14px; margin-bottom: 24px; padding: 16px 18px; border-left: 2px solid var(--orange); background: var(--orange-soft); }
.service-alert strong { display: block; color: var(--ink); font-size: 14px; font-weight: 500; }.service-alert p { margin: 4px 0 0; color: var(--ink-2); font-size: 13px; line-height: 1.5; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.fact { display: grid; gap: 8px; padding: 16px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact span { color: var(--subtle); font-size: 12px; }.fact strong { color: var(--ink); font-size: 15px; font-weight: 500; overflow-wrap: anywhere; }
.timeline-item { position: relative; display: flex; gap: 14px; padding: 6px 0 16px; }
.timeline-item:not(:last-child)::before { content: ""; position: absolute; left: 4px; top: 20px; bottom: 0; width: 1px; background: var(--line); }
.timeline-marker { width: 9px; height: 9px; flex: none; margin-top: 5px; border-radius: 50%; background: var(--deep); box-shadow: 0 0 0 4px var(--mint-soft); }
.timeline-item time { display: block; color: var(--subtle); font-size: 12px; }.timeline-item strong { display: inline-block; margin: 4px 10px 4px 0; color: var(--ink); font-size: 14px; font-weight: 500; }
.timeline-item p { margin: 2px 0 4px; color: var(--ink-2); font-size: 13px; line-height: 1.5; white-space: pre-wrap; }.timeline-item small { color: var(--subtle); font-size: 12px; }
.installation, .history-ticket { display: grid; gap: 6px; margin-bottom: 10px; padding: 14px 16px; border: 1px solid var(--line); }
.installation > div { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.installation strong { color: var(--ink); font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }.installation p { margin: 0; color: rgba(29, 29, 37, .7); font-size: 13px; }
.history-ticket { color: inherit; text-decoration: none; transition: background-color .2s ease-out; }.history-ticket:hover { background: rgba(192, 221, 207, .2); }
.history-ticket strong { color: var(--ink); font-size: 14px; font-weight: 500; text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 3px; }.history-ticket small { color: var(--subtle); font-size: 12px; }
.fleet-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 16px 0 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(192, 221, 207, .2); }
.fleet-stats div { display: grid; gap: 8px; padding: 18px 20px; border-right: 1px solid var(--line); }.fleet-stats div:last-child { border-right: 0; }
.fleet-stats strong { color: var(--ink); font-size: 36px; line-height: 1; font-weight: 300; letter-spacing: -.05em; }.fleet-stats span { color: var(--ink-2); font-size: 13px; }
.ticket-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.ticket-toolbar { align-items: flex-end; }
.ticket-toolbar > label { display: flex; flex-direction: column; gap: 4px; }
.ticket-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 1.1fr); align-items: start; gap: 24px; }
.ticket-list .panel-head h2 { font-size: 18px; }
.ticket-row { position: relative; display: grid; gap: 6px; padding: 18px 24px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: background-color .2s ease-out; }
.ticket-row:hover { background: rgba(192, 221, 207, .2); }.ticket-row.active { background: rgba(192, 221, 207, .35); }.ticket-row.active::before { content: ""; position: absolute; left: 5px; top: 22px; width: 14px; height: 14px; }
.ticket-row strong { font-size: 15px; font-weight: 500; letter-spacing: -.01em; }.ticket-row small { color: rgba(29, 29, 37, .7); font-size: 13px; }
.ticket-top, .ticket-bottom { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--subtle); font-size: 12px; }
.ticket-detail { padding: 24px; }.ticket-detail h2 { margin: 14px 0 6px; color: var(--ink); font-size: 30px; font-weight: 300; line-height: 1.1; letter-spacing: -.04em; }
.ticket-meta { margin: 0; color: rgba(29, 29, 37, .7); font-size: 13px; }
.ticket-description { margin: 18px 0; color: var(--ink-2); font-size: 15px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.linked-box { display: grid; gap: 6px; margin: 18px 0; padding: 16px 18px; background: rgba(192, 221, 207, .25); color: var(--ink-2); font-size: 13px; }
.linked-box > span { color: var(--subtle); font-size: 12px; }.linked-box strong { color: var(--ink); font-size: 14px; font-weight: 500; }.linked-box strong a { color: var(--deep); }.linked-box .field-link { justify-self: start; margin-top: 4px; }
.photo-grid { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0; }
.photo { display: grid; gap: 6px; width: 120px; margin: 0; padding: 0; border: 0; background: none; color: var(--subtle); font-size: 11px; text-align: left; overflow-wrap: anywhere; }
.photo img { display: block; width: 120px; height: 90px; object-fit: cover; border: 1px solid var(--line); }.photo .button { min-height: 32px; padding: 4px 14px; }
.ticket-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0; }
.ticket-note { margin-bottom: 12px; padding: 0 0 4px 14px; border-left: 2px solid var(--mint); color: var(--subtle); font-size: 12px; }
.ticket-note.drev { border-left-color: var(--deep); }.ticket-note.internal { border-left-color: var(--orange); }.ticket-note.internal b { color: var(--orange-text); }.ticket-note b { color: var(--ink); }
.ticket-note p { margin: 4px 0 0; color: var(--ink); font-size: 14px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.ticket-reply { display: grid; gap: 10px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.dropzone { display: grid; gap: 8px; padding: 18px; border: 1px dashed var(--mint-strong); background: rgba(192, 221, 207, .15); }.dropzone p { margin: 0; color: var(--subtle); font-size: 12px; }
.lightbox { max-width: min(92vw, 1100px); padding: 16px; border: 1px solid var(--line); background: #fff; }
.lightbox::backdrop { background: rgba(29, 29, 37, .8); }.lightbox img { display: block; max-width: 100%; max-height: 78vh; margin-top: 12px; }
@media (max-width: 1100px) { .service-layout, .ticket-layout { grid-template-columns: 1fr; }.ticket-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }.facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .service-part { grid-template-columns: 1fr 1fr; } }
@media (max-width: 650px) { .service-form-grid, .service-part, .facts, .ticket-controls, .ticket-filters { grid-template-columns: 1fr; }.fleet-stats { grid-template-columns: 1fr; }.fleet-stats div { border-right: 0; border-bottom: 1px solid var(--line); }.fleet-stats div:last-child { border-bottom: 0; }.component-title h2 { font-size: 28px; }.service-form, .ticket-form, .ticket-detail, .component-body { padding: 18px; }.component-head { padding: 18px 18px 0; }.component-tabs { margin: 14px 18px 0; }.service-banner { padding: 18px 16px; }.service-machine, .service-machine .select { width: 100%; min-width: 0; }.service-group { display: grid; grid-template-columns: 1fr 1fr; }.service-group h3 { grid-column: 1 / -1; }.service-leaf { padding: 8px 12px 8px 24px; font-size: 12px; } }
/* Users */
.role-help { margin: -6px 0 0; color: var(--subtle); font-size: 12px; line-height: 1.5; }
.invite-result { display: grid; gap: 10px; padding: 14px 16px; border-left: 2px solid var(--green); background: var(--mint-soft); }
.invite-result.manual { border-left-color: var(--orange); background: var(--orange-soft); }
.invite-result p { margin: 0; color: var(--ink); font-size: 13px; line-height: 1.5; }.invite-result small { color: var(--ink-2); font-size: 12px; line-height: 1.45; }
.invite-link { display: flex; gap: 8px; }.invite-link .input { flex: 1; min-width: 0; font-size: 12px; }
.customers-list td .status + small { margin-top: 6px; }
.user-actions { white-space: nowrap; }.user-actions .button { min-height: 34px; padding: 6px 14px; font-size: 12px; }.user-actions .button + .button { margin-left: 6px; }
@media (max-width: 650px) { .invite-link { flex-direction: column; } }
.users-layout { display: grid; gap: 24px; }
/* Wallboard displays on the Users page. */
.displays-panel { display: grid; gap: 16px; margin-top: 24px; padding-bottom: 8px; }
.displays-panel > :not(.table-scroll) { margin-left: 24px; margin-right: 24px; }
.displays-panel > .panel-head { margin: 0; }
.displays-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; gap: 14px; }
.displays-form .commission-field { margin: 0; }
@media (max-width: 760px) { .displays-form { grid-template-columns: 1fr; } }
.users-form { display: grid; gap: 16px; padding: 24px; }.users-form h2 { margin: 6px 0 0; color: var(--ink); font-size: 22px; font-weight: 400; letter-spacing: -.03em; }
.users-form-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }.users-form-grid .role-help { margin: 10px 0 0; }
.users-form .invite-result { max-width: 760px; }
.customers-list .users-table { min-width: 780px; }.users-table th, .users-table td:not(:first-child) { white-space: nowrap; }.users-table td:last-child { text-align: right; }
@media (max-width: 1100px) { .users-form-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 650px) { .users-form-grid { grid-template-columns: 1fr; }.users-form { padding: 18px; } }
.remove-confirm { margin-right: 8px; color: var(--ink); font-size: 12px; white-space: nowrap; }
.button.danger { border-color: #be5149; background: #be5149; color: #fff; }.button.danger:hover { border-color: #9e3c35; background: #9e3c35; }
.notice.critical { border-color: #f1c4bf; background: #fdf0ee; color: #a33a31; }.notice code { font-size: 11px; }.notice .field-link { margin-left: 4px; }
.page > .notice { margin: 0 0 18px; }
.mail-status { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; margin: -16px 0 24px; color: var(--ink-2); font-size: 13px; }
.mail-status b { font-weight: 600; }.mail-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); align-self: center; }.mail-status.off::before { background: var(--orange); }
/* MQTT messages */
.mqtt-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 16px; padding: 14px 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(192, 221, 207, .2); }
.mqtt-detail { color: var(--ink-2); font-size: 13px; }.mqtt-rate { margin-left: auto; color: var(--subtle); font-size: 13px; }
.mqtt-filter { width: min(560px, 100%) !important; font-family: ui-monospace, Menlo, Consolas, monospace; }
.mqtt-layout { display: grid; grid-template-columns: minmax(240px, 340px) minmax(0, 1fr); align-items: start; gap: 24px; }
.mqtt-topics { max-height: calc(100vh - 160px); overflow-y: auto; position: sticky; top: 120px; }.mqtt-topics .panel-head h2, .mqtt-messages .panel-head h2 { font-size: 18px; }
.mqtt-topic { display: grid; gap: 3px; width: 100%; padding: 10px 24px; border: 0; border-top: 1px solid var(--line); background: #fff; color: var(--ink); text-align: left; }
.mqtt-topic span { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; overflow-wrap: anywhere; }.mqtt-topic small { color: var(--subtle); font-size: 11px; }
.mqtt-topic:hover { background: rgba(192, 221, 207, .2); }.mqtt-topic.active { background: rgba(192, 221, 207, .35); box-shadow: inset 2px 0 var(--orange); }
.mqtt-table { min-width: 720px; table-layout: fixed; }.mqtt-table th:nth-child(1) { width: 110px; }.mqtt-table th:nth-child(2) { width: 32%; }.mqtt-table th:nth-child(3) { width: 80px; }
.mqtt-table td { padding-top: 10px; padding-bottom: 10px; vertical-align: top; }.mqtt-table td:first-child { font-variant-numeric: tabular-nums; color: var(--subtle); white-space: nowrap; }
.mqtt-table td strong { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; font-weight: 500; overflow-wrap: anywhere; }
.mqtt-table tbody tr { cursor: pointer; }.mqtt-table tbody tr:hover { background: rgba(192, 221, 207, .2); }.mqtt-table tbody tr.active { background: rgba(192, 221, 207, .35); box-shadow: inset 2px 0 var(--orange); }
.mqtt-preview { display: block; overflow: hidden; color: var(--ink-2); font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }.mqtt-preview.hex { color: #6b5a9e; }
.mqtt-selected { padding: 20px 24px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.mqtt-selected-head { display: flex; justify-content: space-between; align-items: start; flex-wrap: wrap; gap: 12px; }
.mqtt-selected-head strong { display: block; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; font-weight: 500; overflow-wrap: anywhere; }.mqtt-selected-head small { color: var(--subtle); font-size: 12px; }
.mqtt-selected pre { max-height: 420px; overflow: auto; margin: 14px 0 0; padding: 14px; border: 1px solid var(--line); background: #fff; font-size: 12px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 1000px) { .mqtt-layout { grid-template-columns: 1fr; }.mqtt-topics { position: static; max-height: 280px; } }
@media (max-width: 650px) { .mqtt-rate { margin-left: 0; width: 100%; } }
.mqtt-table td:nth-child(3) { white-space: nowrap; }.mqtt-table th:nth-child(3) { width: 90px; }
/* Machine switched off, and whether the unit's router is sending data */
.status.off { background: var(--surface-2); color: #5c5c66; box-shadow: inset 0 0 0 1px var(--line); }
.unit-link i.off { background: #a5a5ae; }
.status.sending { background: #e5f4e9; color: #177b4c; }.status.silent { background: #f9e8e6; color: #be5149; }
.router { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; white-space: nowrap; }
.router::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.router.sending { color: #177b4c; }.router.sending::before { box-shadow: 0 0 0 3px #d8efdf; }.router.silent { color: #be5149; }

/* Audit log and report period */
.date-field { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.date-field .input { width: auto; }
.audit-filters .select { width: auto; max-width: 100%; }
.audit-table td { vertical-align: top; }
.audit-table td:first-child { white-space: nowrap; }
.audit-details { color: var(--muted); font-size: 12px; max-width: 420px; overflow-wrap: anywhere; }
.audit-more { display: flex; justify-content: center; padding: 14px 0 4px; }

/* Data health */
.health-summary { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.health-table td:first-child small { display: block; }
.certificate-table td:first-child small { display: block; }

/* Staff signal explorer */
.signal-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-bottom: 16px; }
.signal-toolbar label { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 600; }
.signal-toolbar .select { max-width: 220px; }
.signal-toolbar .segmented { display: inline-flex; flex-wrap: wrap; padding: 3px; gap: 3px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.signal-toolbar .segmented button { padding: 7px 10px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); cursor: pointer; }
.signal-toolbar .segmented button.active { background: var(--deep); color: #fff; }
.signal-layout { display: grid; grid-template-columns: minmax(250px, 300px) minmax(0, 1fr); align-items: start; gap: 14px; }
.signal-browser { display: flex; flex-direction: column; position: sticky; top: 110px; max-height: calc(100vh - 130px); overflow: hidden; }
.signal-browser-top { padding: 16px; border-bottom: 1px solid var(--line); }
.signal-browser-top h2 { margin: 0 0 10px; font-size: 16px; }
.signal-browser-top h2 small { color: var(--muted); font-size: 12px; }
.signal-browser-top .input { width: 100%; }
.signal-targets { display: flex; gap: 6px; }
.signal-targets button { flex: 1; padding: 8px 10px; border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 12px; cursor: pointer; }
.signal-targets button.active { border-color: var(--orange); background: var(--orange-soft); color: var(--ink); }
.signal-selection-count { margin: 8px 0 12px; color: var(--muted); font-size: 11px; }
.signal-presets { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 10px; }
.signal-presets small { width: 100%; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.signal-presets .button { min-height: 27px; padding: 4px 9px; font-size: 12px; }
.signal-tree { min-height: 0; overflow-y: auto; padding: 7px; }
.signal-group > button { display: flex; align-items: center; gap: 7px; width: 100%; padding: 8px; border: 0; border-radius: 5px; background: transparent; text-align: left; font-size: 13px; font-weight: 600; cursor: pointer; }
.signal-group > button:hover, .signal-reg:hover { background: var(--surface-2); }
.signal-group > button small { margin-left: auto; color: var(--muted); }
.signal-reg { display: grid; grid-template-columns: 18px 32px minmax(0, 1fr) 30px; align-items: center; gap: 5px; padding: 6px 5px 6px 12px; border-radius: 5px; font-size: 12px; cursor: pointer; }
.signal-reg input { margin: 0; accent-color: var(--orange); }
.signal-reg > span:nth-child(2), .signal-reg small { color: var(--muted); }
.signal-reg > span:nth-child(3) { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.signal-assignment { display: flex; gap: 2px; }
.signal-assignment b { min-width: 13px; padding: 1px 2px; background: var(--orange-soft); color: var(--orange-text); text-align: center; font-size: 9px; font-weight: 500; }
.signal-results { min-width: 0; overflow: hidden; }
.signal-results-head { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 20px; padding: 15px 18px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.signal-results-head small { margin-left: auto; color: var(--muted); font-weight: 400; }
.signal-events { position: relative; height: 28px; margin: 6px 2% 0 8%; border-bottom: 1px solid var(--line); }
.signal-events span { position: absolute; top: 4px; color: var(--orange); cursor: help; font-size: 13px; }
.signal-axis { display: flex; justify-content: space-between; gap: 8px; margin: 0 2% 8px 8%; padding-top: 7px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.signal-key { display: inline-block; flex: none; width: 17px; margin-right: 6px; border-top: 2px solid var(--signal-color, var(--orange)); vertical-align: middle; }
.attention-activity { padding: 12px 10px; scroll-margin-top: 120px; }
.activity-current { flex: none; width: 58px; color: var(--orange-text); font-size: 11px; }
.activity-selected { background: repeating-linear-gradient(135deg, var(--orange-soft), var(--orange-soft) 7px, #fff8f5 7px, #fff8f5 14px); border: 1px dashed var(--orange); border-left: 3px solid var(--orange); }
.activity-selected:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.machine-activity .event-row { display: grid; grid-template-columns: 58px minmax(180px, 32%) minmax(0, 1fr); align-items: start; }
.machine-activity .event-row > div { min-width: 0; }
.activity-description { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
@media (max-width: 700px) {
  .machine-activity .event-row { grid-template-columns: 58px minmax(0, 1fr); gap: 5px 13px; }
  .machine-activity .activity-description { grid-column: 2; }
}
.counter-notice { font-size: 12px; }
.signal-graph-card { margin: 14px; padding: 12px; border: 1px solid var(--line); background: #fff; }
.signal-graph-card.active { border-color: var(--orange); box-shadow: inset 3px 0 0 var(--orange); }
.signal-graph-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line-soft); }
.signal-graph-head > button { padding: 0; border: 0; background: none; color: var(--ink); text-align: left; cursor: pointer; }
.signal-graph-head > button > span { font-size: 15px; font-weight: 500; }
.signal-graph-head small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.signal-graph-head > span { flex: none; color: var(--muted); font-size: 11px; }
.signal-legend-row { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(140px, 1.3fr) auto; gap: 7px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 11px; }
.signal-legend-name { min-width: 0; }
.signal-legend-name strong { color: var(--ink); font-weight: 500; }
.signal-legend-name small { display: block; margin: 2px 0 0 23px; color: var(--muted); font-size: 10px; }
.signal-legend-values { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.signal-legend-value { color: var(--muted); font-size: 10px; }
.signal-legend-value strong { margin-left: 5px; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.signal-legend-actions { display: flex; gap: 2px; }
.signal-legend-actions button { width: 25px; height: 27px; padding: 0; border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 17px; cursor: pointer; }
.signal-legend-actions button:hover { border-color: var(--orange); color: var(--orange-text); }
.signal-scale-label { margin: 7px 0 0 8%; color: var(--muted); font-size: 10px; }
.signal-cursor-time { display: block; min-height: 18px; margin-top: 5px; color: var(--ink-2); font-size: 11px; text-align: right; }
.signal-cursor-time[hidden] { display: block; visibility: hidden; }
.signal-svg .signal-grid { stroke: var(--line); stroke-width: 1; }
.signal-svg .signal-trace { vector-effect: non-scaling-stroke; }
.signal-svg .signal-cursor { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; pointer-events: none; }
.signal-svg [hidden] { display: none; }
.signal-svg:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.signal-empty { margin: 0; padding: 24px; color: var(--muted); font-size: 13px; }
.signal-lane + .signal-lane { border-top: 1px solid var(--line); }
.signal-lane-head { display: flex; align-items: center; gap: 12px; padding: 12px 18px 0; }
.signal-lane-head > div:first-child { min-width: 0; }
.signal-lane-head strong { font-size: 13px; }
.signal-lane-head small { display: block; color: var(--muted); font-size: 11px; }
.signal-readouts { display: flex; flex-wrap: wrap; gap: 5px 16px; margin-left: auto; color: var(--muted); font-size: 11px; }
.signal-readouts strong { color: var(--ink); white-space: nowrap; }
.signal-bits { padding: 4px 18px 0; color: var(--muted); font-size: 11px; }
.signal-bits code { margin-right: 3px; padding: 2px 4px; border-radius: 3px; background: var(--surface-2); color: var(--ink); }
.signal-lane-head button { border: 0; background: transparent; color: var(--muted); font-size: 20px; cursor: pointer; }
.signal-svg { display: block; width: 100%; height: auto; margin: 7px 0 10px; overflow: visible; }
.signal-svg { cursor: crosshair; touch-action: none; }
.signal-svg .signal-brush { fill: rgba(255, 84, 46, .12); stroke: var(--orange); pointer-events: none; }
.signal-svg text { fill: var(--muted); font: 11px system-ui, sans-serif; }
.signal-hint { margin: 10px 18px 14px; color: var(--muted); font-size: 11px; }
.signal-table { max-height: 620px; }
.signal-table th { position: sticky; top: 0; z-index: 1; background: #fff; }
.signal-table th small { display: block; color: var(--muted); font-weight: 400; }
.signal-table td, .signal-table th { white-space: nowrap; font-variant-numeric: tabular-nums; }
.signal-table-note { padding: 8px 16px; color: var(--muted); font-size: 12px; }
@media (max-width: 1000px) { .signal-layout { grid-template-columns: 1fr; }.signal-browser { position: static; max-height: 450px; }.signal-tree { max-height: 200px; } }
@media (max-width: 1200px) { .signal-legend-row { grid-template-columns: minmax(0, 1fr) auto; }.signal-legend-values { grid-row: 2; grid-column: 1; }.signal-legend-actions { grid-row: 1 / 3; grid-column: 2; } }

/* Two-factor sign-in */
.mfa-panel { max-width: 560px; padding: 24px; }
.mfa-panel h2, .mfa-dialog h2 { margin: 0 0 8px; }
.mfa-form { display: grid; gap: 12px; max-width: 260px; margin-top: 12px; }
.mfa-code { font-size: 20px; letter-spacing: .15em; text-align: center; }
.mfa-steps { display: grid; gap: 14px; padding-left: 20px; }
.mfa-steps small { display: block; color: var(--muted); }
.mfa-steps code { overflow-wrap: anywhere; }
.mfa-qr { display: block; margin: 10px 0 6px; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.mfa-dialog { width: min(480px, calc(100vw - 32px)); padding: 24px; border: 0; border-radius: 8px; }
.mfa-dialog::backdrop { background: rgb(0 0 0 / .45); }
.mfa-dialog form[method="dialog"] { margin-top: 12px; }

/* Staff preview of a customer's view */
.preview-customer { max-width: 200px; min-height: 36px; border-radius: 999px; font-size: 12px; }
.preview-banner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; margin: 0 0 18px; padding: 12px 16px; border-left: 2px solid var(--orange); background: var(--orange-soft); color: var(--ink); font-size: 13px; line-height: 1.5; }
.preview-banner .button { min-height: 34px; padding: 6px 16px; font-size: 12px; }
@media (max-width: 900px) { .header-tools { flex-wrap: wrap; justify-content: flex-end; } }
/* Fleet overview leaderboard: gold, silver, and bronze crowned D marks. */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.leaderboard th.rank, .leaderboard td.rank { width: 84px; white-space: nowrap; }
.leaderboard td.rank span { color: var(--muted); font-variant-numeric: tabular-nums; }
.leaderboard tr.leader td.rank span { color: var(--ink); font-weight: 600; }
.leader-mark { display: inline-block; width: 34px; height: 39px; margin-left: 12px; vertical-align: middle; }
.leader-mark.place-2 { width: 29px; height: 33px; }
.leader-mark.place-3 { width: 27px; height: 31px; }
.leaderboard-more { margin: 0; padding: 14px 24px; border-top: 1px solid var(--line); }
.leaderboard-periods { padding: 0 24px 16px; }
.leaderboard-more .text-button { border: 0; padding: 0; background: none; color: var(--ink); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }

/* Wallboard: a TV on the customer's floor (GUI concept I). A 1920 × 1080 board, scaled to the
   screen by --wb-scale (app.js), with type sized for reading at 5 metres (22 px and up). */
.head-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.wallboard-link { margin-top: 18px; }
/* The pointer and the way out show only while the mouse moves (wall.idle in app.js). */
.wallboard { position: fixed; inset: 0; overflow: hidden; background: #fff; color: var(--ink); }
.wallboard.idle, .wallboard.idle * { cursor: none; }
.wb-board { position: absolute; top: 50%; left: 50%; width: 1920px; height: 1080px; transform: translate(-50%, -50%) scale(var(--wb-scale, 1)); }
.wb-exit { position: absolute; top: 16px; right: 16px; padding: 8px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; text-decoration: none; opacity: 0; transition: opacity .2s; cursor: pointer; }
.wallboard:not(.idle) .wb-exit, .wb-exit:focus-visible { opacity: 1; }
.wb-label { color: var(--muted); font-size: 22px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.wb-calm { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; height: 100%; color: var(--muted); font-size: 28px; text-align: center; }
.wb-calm .meander { width: 120px; }

.wb-top { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 36px; height: 150px; padding: 0 72px; }
.wb-top img { width: auto; height: 44px; }
.wb-site { min-width: 0; padding-left: 36px; border-left: 2px solid var(--line); }
.wb-site strong { display: block; overflow: hidden; font-size: 54px; font-weight: 300; line-height: 1.1; letter-spacing: -.03em; white-space: nowrap; text-overflow: ellipsis; }
.wb-site span { color: var(--muted); font-size: 26px; }
.wb-clock { flex: none; margin-left: auto; text-align: right; }
.wb-clock strong { display: block; font-size: 72px; font-weight: 300; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.wb-clock span { color: var(--muted); font-size: 24px; }
.wb-clock em { display: block; color: var(--orange-text); font-size: 22px; font-style: normal; font-weight: 600; }

.wb-view { position: absolute; top: 150px; left: 72px; right: 72px; bottom: 160px; }
.wb-chart { transition: opacity .4s; }
.wb-chart.leaving { opacity: 0; }
.wb-chart.entering { animation: wb-in .6s; }
@keyframes wb-in { from { opacity: 0; } }

.wb-week { display: grid; grid-template-columns: minmax(0, 1fr) 560px; gap: 36px; height: 100%; }
.wb-chart { display: flex; flex-direction: column; padding: 34px 40px; background: #fff; }
/* Indented past the guide line's S-bend (drawWallGuide in app.js). */
.wb-chart h2 { margin: 6px 0 0 108px; font-size: 44px; font-weight: 300; line-height: 1.1; letter-spacing: -.03em; }
.wb-cols { display: flex; flex: 1; align-items: flex-end; gap: 36px; margin-top: 44px; padding-bottom: 8px; border-bottom: 2px solid rgba(29, 29, 37, .2); }
.wb-col { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: flex-end; gap: 12px; height: 100%; }
.wb-col b { font-size: 30px; white-space: nowrap; }
.wb-col i { width: 100%; max-width: 120px; min-height: 4px; border-radius: 4px 10px 0 0; background: var(--deep); }
.wb-col.today i { background: repeating-linear-gradient(135deg, var(--deep) 0 14px, #37575c 14px 28px); }
.wb-days { display: flex; gap: 36px; margin-top: 12px; }
.wb-days span { flex: 1; color: var(--muted); font-size: 26px; text-align: center; }
.wb-facts { display: grid; gap: 24px; align-content: start; }
.wb-fact { padding: 30px 34px; border-radius: 4px; background: var(--surface-2); transition: background-color .4s, box-shadow .4s; }
/* The KPI the chart plots: the orange guide line ends on its lit edge. */
.wb-fact.active { background: #fff; box-shadow: inset 6px 0 0 var(--orange), inset 0 0 0 2px var(--line); }
.wb-guide { position: absolute; inset: 0; width: 1920px; height: 1080px; pointer-events: none; }
.wb-guide path { fill: none; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.wb-guide .track { stroke: var(--line); }
.wb-guide .fill { stroke: var(--orange); }
.wb-fact strong { display: block; margin-top: 6px; font-size: 76px; font-weight: 300; line-height: 1; letter-spacing: -.03em; white-space: nowrap; }
.wb-fact span { display: block; margin-top: 8px; color: var(--muted); font-size: 24px; }
.wb-fact[data-kpi="hours"] strong { font-size: 44px; white-space: normal; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; flex-wrap: wrap; }
.ticket-admin { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 24px; }
.storage-health { padding: 24px; margin-top: 20px; }

.wb-foot { position: absolute; left: 0; right: 0; bottom: 0; height: 160px; }
/* A thin orange rule above the ticker, as wide as the board's content. */
.wb-foot::before { content: ''; position: absolute; top: 36px; left: 72px; right: 72px; height: 3px; background: var(--orange); }
.wb-ticker { position: absolute; left: 72px; right: 72px; bottom: 34px; display: flex; gap: 56px; overflow: hidden; color: var(--muted); font-size: 26px; white-space: nowrap; }
.wb-ticker b { margin-right: 12px; color: var(--ink); }
.wb-ticker .when { margin-right: 12px; color: var(--subtle); font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .wb-chart, .wb-fact { transition: none; } .wb-chart.entering { animation: none; } }
