:root {
  --hx-blue: #005fc7;
  --hx-blue-hover: #004fa6;
  --hx-blue-soft: #edf4fd;
  --hx-blue-line: #b9d2ef;
  --hx-navy: #00387a;
  --hx-green: #6dc74b;
  --hx-green-ink: #246536;
  --hx-green-soft: #eaf5e9;
  --hx-green-deep: #10290a;
  --hx-canvas: #f3f5f7;
  --hx-paper: #ffffff;
  --hx-ink: #172b42;
  --hx-muted: #526273;
  --hx-faint: #5f6f80;
  --hx-rule: #d4dce3;
  --hx-rule-soft: #e7ecf1;
  --hx-control: #788694;
  --hx-row-hover: #f7fafd;
  --hx-st-generated: var(--hx-blue);
  --hx-st-generated-bg: var(--hx-blue-soft);
  --hx-st-generated-ink: var(--hx-navy);
  --hx-st-library: var(--hx-green);
  --hx-st-library-bg: var(--hx-green-soft);
  --hx-st-library-ink: var(--hx-green-ink);
  --hx-st-placeholder: #788694;
  --hx-st-placeholder-bg: #eef1f4;
  --hx-st-placeholder-ink: #46566a;
  --hx-st-missing: #aa2835;
  --hx-st-missing-bg: #fff0f0;
  --hx-st-missing-ink: #8f1f2b;
  --hx-st-review: #805300;
  --hx-st-review-bg: #fff4da;
  --hx-st-excluded: #526273;
  --hx-st-excluded-bg: #edf0f3;
  --hx-hatch: repeating-linear-gradient(135deg, var(--hx-st-placeholder) 0 1.2px, transparent 1.2px 6px);
  --hx-hatch-light: repeating-linear-gradient(135deg, #c5cfd9 0 1px, transparent 1px 6px);
  --hx-font: "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", "PingFang SC", system-ui, sans-serif;
  --hx-font-num: "Bahnschrift", "DIN Alternate", "Segoe UI", sans-serif;
  --hx-font-mono: Consolas, "Cascadia Mono", "SFMono-Regular", monospace;
  --hx-text-xs: 12px;
  --hx-text-sm: 13px;
  --hx-text-body: 14px;
  --hx-text-lead: 16px;
  --hx-text-h2: 16px;
  --hx-text-h1: 28px;
  --hx-text-kpi: 32px;
  --hx-text-hero: 44px;
  --hx-radius: 4px;
  --hx-radius-panel: 6px;
  --hx-header: 56px;
  --hx-env: 36px;
  --hx-sidebar: 240px;
  --hx-row: 40px;
  --hx-control-h: 44px;
  --hx-input-h: 48px;
  --hx-gap: 20px;
  --cx-brand: var(--hx-blue);
  --cx-brand-hover: var(--hx-blue-hover);
  --cx-brand-soft: var(--hx-blue-soft);
  --cx-brand-night: var(--hx-navy);
  --cx-brand-middle: var(--hx-green);
  --cx-canvas: var(--hx-canvas);
  --cx-paper: var(--hx-paper);
  --cx-ink: var(--hx-ink);
  --cx-muted: var(--hx-muted);
  --cx-rule: var(--hx-rule);
  --cx-control: var(--hx-control);
  --cx-font: var(--hx-font);
  --cx-font-data: var(--hx-font-num);
  --cx-font-mono: var(--hx-font-mono);
  --cx-text-table: var(--hx-text-body);
  --cx-text-body: var(--hx-text-body);
  --cx-text-title: var(--hx-text-h1);
  --cx-text-hero: var(--hx-text-hero);
  --cx-header: var(--hx-header);
  --cx-environment: var(--hx-env);
  --cx-sidebar: var(--hx-sidebar);
  --cx-row-height: var(--hx-row);
  --cx-control-height: var(--hx-control-h);
  --tblr-primary: var(--hx-blue);
  --tblr-primary-rgb: 0, 95, 199;
  --tblr-body-bg: var(--hx-canvas);
  --tblr-body-color: var(--hx-ink);
  --tblr-border-color: var(--hx-rule);
  --tblr-border-radius: var(--hx-radius);
  --tblr-border-radius-lg: var(--hx-radius-panel);
  --tblr-shadow-card: none;
  --tblr-font-sans-serif: var(--hx-font);
  --tblr-body-font-family: var(--hx-font);
}

/* Existing shell, loaded after the pinned Tabler and login styles. */
body.page {
  height: auto;
  min-height: 100dvh;
  color: var(--hx-ink);
  background: var(--hx-canvas);
  font-family: var(--hx-font);
  font-size: var(--hx-text-body);
}
body.page .l8-app-header.cx-masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  height: var(--hx-header);
  min-height: var(--hx-header);
  padding: 0;
  background: var(--hx-paper);
  color: var(--hx-ink);
  border-bottom: 1px solid var(--hx-rule);
  box-shadow: none;
}
.l8-app-header > .container-fluid {
  display: flex;
  align-items: center;
  height: 100%;
  min-height: var(--hx-header);
  min-width: 0;
  max-width: none;
  gap: 16px;
  padding: 0 24px;
}
.l8-app-header .l8-brand {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 16px;
  margin: 0;
  padding: 0;
  color: var(--hx-navy);
  text-decoration: none;
}
.l8-app-header .l8-brand .cx-header-logo {
  width: 104px;
  height: auto;
  flex: 0 0 104px;
  margin: 0;
}
.l8-app-header .l8-product-name {
  padding-left: 16px;
  border-left: 1px solid var(--hx-rule);
  color: var(--hx-ink);
  font: 600 15px/24px var(--hx-font);
  letter-spacing: .01em;
  white-space: nowrap;
}
.l8-app-header .cx-header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.l8-app-header .l8-user-menu > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 8px;
  color: var(--hx-ink);
  font-size: 14px;
  list-style: none;
}
.l8-app-header .l8-user-menu > summary:hover { background: var(--hx-canvas); }
.l8-app-header .cx-avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--hx-blue);
  background: var(--hx-blue-soft);
  border: 0;
  border-radius: 3px;
}
.l8-app-header .cx-environment-label.badge {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  color: var(--hx-blue) !important;
  background: var(--hx-paper) !important;
  border: 1px solid var(--hx-blue);
  border-radius: 3px;
  font: 600 12px/1 var(--hx-font);
  letter-spacing: .04em;
  text-transform: none;
}
body.page .cx-environment.alert {
  position: sticky;
  top: var(--hx-header);
  z-index: 19;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 12px;
  min-height: var(--hx-env);
  margin: 0;
  padding: 6px 24px;
  color: var(--hx-green-ink);
  background: #eaf7e4;
  border: 0;
  border-bottom: 1px solid var(--hx-rule);
  border-radius: 0;
  box-shadow: none;
  font-size: 13px;
  line-height: 1.5;
}
body.page .cx-environment.alert::before {
  content: "DEMO";
  flex: none;
  padding: 3px 7px;
  color: var(--hx-green-deep);
  background: var(--hx-green);
  border: 1px solid var(--hx-green-ink);
  border-radius: 2px;
  font: 700 12px/1 var(--hx-font-num);
  letter-spacing: .1em;
}
body.l8-login-page .cx-environment.alert { top: 0; }
.l8-app-body { display: flex; align-items: stretch; min-width: 0; }
body.page .l8-sidebar.navbar {
  position: sticky;
  top: calc(var(--hx-header) + var(--hx-env));
  align-self: flex-start;
  flex: 0 0 var(--hx-sidebar);
  width: var(--hx-sidebar);
  height: auto;
  min-height: calc(100dvh - var(--hx-header) - var(--hx-env));
  max-height: calc(100dvh - var(--hx-header) - var(--hx-env));
  overflow-y: auto;
  padding: 20px 0 24px 16px;
  color: #ffffff;
  background: var(--hx-navy);
  border: 0;
  box-shadow: none;
}
.l8-sidebar .l8-navigation-toggle { width: 100%; }
.l8-sidebar .l8-primary-navigation.cx-global-nav { display: block; width: 100%; height: auto; padding: 0; }
.l8-sidebar .l8-navigation-group { margin: 0 0 14px; }
.l8-sidebar .navbar-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  margin: 0;
  padding: 6px 16px 6px 10px;
  color: #ffffff;
  opacity: 1;
  font: 600 13px/1 var(--hx-font);
  text-transform: none;
}
.l8-sidebar .navbar-heading > .cx-icon { display: none; }
.l8-sidebar .navbar-heading > span {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 2px;
  color: #ffffff;
  border: 1px solid #ffffff;
  border-radius: 2px;
  font: 700 12px/1 var(--hx-font);
}
.l8-sidebar .navbar-heading::after { color: #d3e1f0; font: 400 12px/1 var(--hx-font-num); letter-spacing: .04em; }
#l8-navigation-read::after { content: "Read"; }
#l8-navigation-write::after { content: "Write"; }
#l8-navigation-check::after { content: "Check"; }
#l8-navigation-collaborate::after { content: "Sign off"; }
#l8-navigation-signoff::after { content: "Sign off"; }
.l8-sidebar .l8-primary-navigation .nav-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 40px;
  gap: 8px;
  padding: 8px 16px 8px 12px;
  color: #e5edf7;
  background: transparent;
  border: 0;
  border-radius: var(--hx-radius) 0 0 var(--hx-radius);
  box-shadow: none;
  font: 400 14px/1.5 var(--hx-font);
  text-decoration: none;
}
.l8-sidebar .l8-primary-navigation .nav-link:hover { color: #ffffff; background: #164a85; }
.l8-sidebar .l8-primary-navigation .nav-link[aria-current="page"],
.l8-sidebar .l8-primary-navigation .nav-link.active,
body:has(#outputs:target) .l8-sidebar a[href$="#outputs"],
body:has(#editable:target) .l8-sidebar a[href$="#editable"],
body:has(#report:target) .l8-sidebar a[href$="#report"],
body:has(#source:target) .l8-sidebar a[href$="#source"],
body:has(#review:target) .l8-sidebar a[href$="#review"],
body[data-page="coord_example_room"]:not(:has(.cx-section:target)) .l8-sidebar a[href$="#inputs"],
body:has(#inputs:target) .l8-sidebar a[href$="#inputs"] {
  color: var(--hx-navy);
  background: var(--hx-canvas);
  box-shadow: none;
  font-weight: 700;
}
.l8-navigation-summary { display: none; }
.l8-page-wrapper.page-wrapper { flex: 1; min-width: 0; margin: 0; }
body.page .l8-page-wrapper > .cx-page.page-body { width: 100%; max-width: none; margin: 0; padding: 24px 32px 40px; }
.l8-page-wrapper .cx-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 var(--hx-gap);
}
.cx-page-header > div { min-width: 0; }
.cx-page-header h1 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  color: var(--hx-ink);
  font: 700 28px/1.25 var(--hx-font);
}
.cx-page-header p { margin: 8px 0 0; color: var(--hx-muted); font-size: 14px; line-height: 1.65; }
.cx-page-header .cx-eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 13px; }
body.page .cx-section {
  min-width: 0;
  margin-bottom: 16px;
  padding: 18px;
  color: var(--hx-ink);
  background: var(--hx-paper);
  border: 1px solid var(--hx-rule);
  border-radius: var(--hx-radius-panel);
  box-shadow: none;
  scroll-margin-top: calc(var(--hx-header) + var(--hx-env) + 16px);
}
body.page .cx-section > h2 {
  margin: -18px -18px 14px;
  padding: 14px 18px;
  color: var(--hx-ink);
  border-bottom: 1px solid var(--hx-rule-soft);
  font: 700 16px/1.4 var(--hx-font);
}
.cx-section > p { margin: 10px 0; color: var(--hx-muted); font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.cx-section > h3 { margin: 18px 0 8px; color: var(--hx-ink); font-size: 14px; line-height: 1.5; }
.cx-section > ul:not([class]) { padding-left: 20px; }
.cx-section iframe { display: block; max-width: 100%; border: 1px solid var(--hx-rule); border-radius: var(--hx-radius); }
.l8-page-wrapper .cx-table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--hx-rule); border-radius: var(--hx-radius); }
body.page .cx-data-table { width: 100%; margin: 0; border-collapse: collapse; color: var(--hx-ink); background: var(--hx-paper); font-size: 14px; }
.cx-data-table caption { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
body.page .cx-data-table thead th { height: 36px; padding: 0 10px; color: var(--hx-muted); background: var(--hx-canvas); border-bottom: 1px solid var(--hx-rule); vertical-align: middle; font: 600 12px/1.3 var(--hx-font); white-space: nowrap; }
body.page .cx-data-table tbody td { height: var(--hx-row); padding: 7px 10px; background: var(--hx-paper); border-bottom: 1px solid var(--hx-rule-soft); vertical-align: middle; line-height: 1.5; }
.cx-data-table tbody tr:last-child td { border-bottom: 0; }
.cx-data-table tbody tr:hover td { background: var(--hx-row-hover); }
.cx-data-table tbody tr.is-missing td { background: #fffafa; }
.cx-data-table tbody td:first-child { color: var(--hx-navy); font-family: var(--hx-font-num); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cx-data-table th:nth-child(4), .cx-data-table td:nth-child(4) { text-align: right; font-variant-numeric: tabular-nums; }
.cx-data-table td:nth-child(4) { font-family: var(--hx-font-num); }
.cx-data-table td:last-child { white-space: nowrap; }
.cx-data-table td:last-child a { display: inline-block; color: var(--hx-blue); font-size: 14px; }
.cx-data-table tr.is-missing td:first-child { color: var(--hx-st-missing); }
.btn, .cx-btn { min-height: var(--hx-control-h); box-shadow: none; }
.hx-page-actions .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 14px; color: var(--hx-navy); background: var(--hx-paper); border: 1px solid var(--hx-control); font: 600 14px/1.5 var(--hx-font); white-space: nowrap; }
.hx-page-actions .btn-primary { color: #ffffff; background: var(--hx-blue); border-color: var(--hx-blue); }
.hx-page-actions .btn-primary:hover { color: #ffffff; background: var(--hx-blue-hover); border-color: var(--hx-blue-hover); }
body.page .cx-panel, body.page .cx-inspector, body.page .cx-decision-list, body.page .cx-two-column > section, body.page .cx-upload-zone { box-shadow: none; border-radius: var(--hx-radius-panel); }
body.page .cx-kpi, body.page .cx-metric-row > * { box-shadow: none; }
body.page .cx-kpi-value { color: var(--hx-navy); font-family: var(--hx-font-num); font-size: 32px; font-variant-numeric: tabular-nums; }

/* Login shell. The existing password control remains unchanged. */
body.l8-login-page { background: var(--hx-canvas); }
body.l8-login-page .l8-app-body { display: block; }
body.l8-login-page .l8-page-wrapper { position: relative; }
body.l8-login-page .cx-login-layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  min-height: calc(100dvh - var(--hx-env));
  max-width: none;
  gap: 0;
  margin: 0;
  padding: 0;
  background: var(--hx-canvas);
}
body.l8-login-page .cx-login-layout .cx-login-brand {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: calc(100dvh - var(--hx-env));
  overflow: hidden;
  margin: 0;
  padding: 64px 64px 0;
  color: #ffffff;
  background: var(--hx-navy);
  border-radius: 0;
}
body.l8-login-page .cx-login-brand::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -120px;
  top: -70px;
  width: 460px;
  height: 513px;
  background: url("/static/brand/brand-mark_white.png") no-repeat center / contain;
  opacity: .06;
}
body.l8-login-page .cx-login-brand > img { width: 148px; height: auto; margin: 0; }
body.l8-login-page .cx-login-brand .cx-ribbon { display: inline-flex; align-items: center; gap: 10px; margin: 48px 0 0; padding: 0; color: #dce5f0; background: transparent; border: 0; font: 600 15px/1 var(--hx-font); letter-spacing: .04em; text-transform: none; }
body.l8-login-page .cx-login-brand .cx-ribbon::before { content: ""; width: 8px; height: 8px; background: var(--hx-green); border-radius: 1px; }
body.l8-login-page .cx-login-brand .cx-login-statement { max-width: 9.4em; margin: 18px 0 0; color: #ffffff; font: 700 44px/1.24 var(--hx-font); letter-spacing: .01em; }
body.l8-login-page .cx-login-brand .cx-login-statement + p { max-width: 30em; margin: 20px 0 0; color: rgba(255, 255, 255, .78); font-size: 16px; line-height: 1.75; }
body.l8-login-page .cx-login-photo { position: relative; z-index: -1; display: block; width: calc(100% + 128px); height: 300px; flex: 0 0 300px; margin: auto -64px 0; overflow: hidden; clip-path: none; }
body.l8-login-page .cx-login-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 66%; filter: saturate(.85); }
body.l8-login-page .cx-login-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--hx-navy) 0%, rgba(0, 56, 122, .25) 46%, rgba(0, 56, 122, .6) 100%); }
body.l8-login-page .cx-login-brand .cx-login-brand-foot { position: absolute; z-index: 1; left: 64px; bottom: 22px; margin: 0; color: #ffffff; font-size: 13px; letter-spacing: .04em; }
body.l8-login-page:is([data-environment="demo"], [data-environment="dev"]) .cx-login-form.card,
body.l8-login-page .cx-login-form.card {
  grid-column: 2;
  align-self: start;
  justify-self: center;
  justify-content: flex-start;
  width: min(440px, calc(100% - 64px));
  min-height: 0;
  margin: 154px 0 100px;
  padding: 36px 36px 24px;
  background: var(--hx-paper);
  border: 1px solid var(--hx-rule);
  border-radius: var(--hx-radius-panel);
  box-shadow: none;
}
.coord-demo-login .coord-login-overline { margin: 0 0 10px; color: var(--hx-blue); font: 600 13px/1.3 var(--hx-font); letter-spacing: .04em; }
.coord-demo-login h1 { margin: 0; color: var(--hx-ink); font: 700 26px/1.25 var(--hx-font); }
.coord-demo-login #password-login-hint { margin: 6px 0 16px; color: var(--hx-muted); font-size: 14px; }
.coord-demo-login label { display: block; margin: 0 0 8px; color: var(--hx-ink); font: 600 14px/1.3 var(--hx-font); }
.coord-demo-login #password-login button[type="submit"] { display: block; width: 100%; min-height: 48px; margin: 20px 0 0; color: #ffffff; background: var(--hx-blue); border: 1px solid var(--hx-blue); border-radius: var(--hx-radius); font: 700 16px/1.5 var(--hx-font); cursor: pointer; }
.coord-demo-login #password-login button[type="submit"]:hover { background: var(--hx-blue-hover); border-color: var(--hx-blue-hover); }
.coord-employee-login { margin: 20px 0 0; border-top: 1px solid var(--hx-rule-soft); }
.coord-employee-login > summary { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 8px 0; color: var(--hx-muted); font-size: 14px; list-style: none; cursor: pointer; }
.coord-employee-login > summary::-webkit-details-marker { display: none; }
.coord-employee-hint { margin: 0; color: var(--hx-muted); font-size: 13px; }
body.l8-login-page .cx-footer { position: absolute; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 14px; width: calc(100% * 5 / 12); margin: 0; padding: 18px 24px; color: var(--hx-muted); background: transparent; border: 0; font-size: 12px; }
body.l8-login-page .cx-footer img { width: 72px; height: auto; }

/* Added components for the room and the brand story. */
.hx-num, .cx-data { font-family: var(--hx-font-num); font-variant-numeric: tabular-nums lining-nums; }
.hx-crumb-group { display: inline-grid; place-items: center; flex: none; width: 20px; height: 20px; color: #ffffff; background: var(--hx-navy); border-radius: 2px; font: 700 12px/1 var(--hx-font); }
.hx-tag { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; color: var(--hx-navy); background: var(--hx-blue-soft); border: 1px solid var(--hx-blue-line); border-radius: 3px; font: 600 12px/1.5 var(--hx-font-mono); }
.hx-page-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.hx-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 var(--hx-gap); padding: 0; background: var(--hx-paper); border: 1px solid var(--hx-rule); border-radius: var(--hx-radius-panel); list-style: none; }
.hx-flow > li { position: relative; display: block; min-width: 0; padding: 16px 20px 16px 24px; border-left: 1px solid var(--hx-rule-soft); }
.hx-flow > li:first-child { border-left: 0; padding-left: 20px; }
.hx-flow > li + li::before { content: ""; position: absolute; left: -7px; top: 50%; width: 12px; height: 12px; margin-top: -6px; background: var(--hx-paper); border-top: 1px solid var(--hx-rule); border-right: 1px solid var(--hx-rule); transform: rotate(45deg); }
.hx-flow-head, .hx-flow > li > .hx-flow-step { display: flex; align-items: center; gap: 8px; color: var(--hx-muted); font: 600 13px/1.4 var(--hx-font); }
.hx-flow-step > b { display: inline-grid; place-items: center; flex: none; width: 20px; height: 20px; color: #ffffff; background: var(--hx-navy); border-radius: 2px; font: 700 12px/1 var(--hx-font); }
.hx-flow-figure { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin: 12px 0 6px; color: var(--hx-ink); font: 700 22px/1.2 var(--hx-font); }
.hx-flow-figure .hx-num { color: var(--hx-navy); font-size: 32px; font-weight: 600; font-style: normal; }
.hx-flow-figure small { color: var(--hx-muted); font-size: 14px; font-weight: 400; }
.hx-flow-figure.is-review, .hx-flow-figure .is-review,
.hx-flow > li.is-pending .hx-flow-figure { color: var(--hx-st-review); font-size: 20px; }
.hx-flow-note { display: block; color: var(--hx-muted); font-size: 13px; line-height: 1.5; }
.hx-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.hx-layout, .hx-main, .hx-rail { min-width: 0; }
.hx-equation { display: flex; align-items: center; flex-wrap: nowrap; gap: 9px; margin: 0 0 16px; color: var(--hx-ink); }
.hx-term { display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 0; }
.hx-term > .hx-num { color: var(--hx-navy); font-size: 32px; line-height: 1; font-weight: 600; }
.hx-term > .cx-badge { font-size: 12px; }
.hx-plus { align-self: flex-start; margin-top: 5px; color: var(--hx-muted); font: 400 20px/1 var(--hx-font-num); }
.hx-equation-pages, .hx-equation-total { margin-left: auto; color: var(--hx-muted); font-size: 12px; line-height: 1.5; white-space: nowrap; }
.hx-volstrip { display: flex; align-items: center; min-width: 0; margin: 0; }
.hx-volstrip-cells { display: grid; grid-template-columns: repeat(var(--hx-vols, 13), minmax(0, 1fr)); flex: 1; min-width: 0; gap: 4px; padding: 4px; background: var(--hx-paper); border: 1.5px solid var(--hx-navy); border-radius: 4px; }
.hx-cell { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; height: 52px; padding: 6px 4px 5px; border-radius: 2px; font: 700 13px/1 var(--hx-font-num); font-variant-numeric: tabular-nums; }
.hx-cell small { align-self: flex-end; color: inherit; font: 400 12px/1 var(--hx-font); white-space: nowrap; }
.hx-cell--generated { color: #ffffff; background: var(--hx-st-generated); }
.hx-cell--library { color: var(--hx-green-deep); background: var(--hx-st-library); box-shadow: inset 0 0 0 1px var(--hx-green-ink); }
.hx-cell--placeholder { color: var(--hx-st-placeholder-ink); background: var(--hx-hatch-light), var(--hx-st-placeholder-bg); box-shadow: inset 0 0 0 1px var(--hx-st-placeholder); }
.hx-cell--missing { color: var(--hx-st-missing); background: var(--hx-paper); outline: 1.5px dashed var(--hx-st-missing); outline-offset: -1.5px; }
.hx-cell--excluded { color: var(--hx-st-excluded); background: var(--hx-st-excluded-bg); box-shadow: inset 0 0 0 1px var(--hx-st-excluded); }
.hx-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; margin: 12px 0 16px; padding: 0; color: var(--hx-muted); font-size: 13px; list-style: none; }
.hx-legend li { display: inline-flex; align-items: center; gap: 6px; }
.hx-legend i { flex: none; width: 12px; height: 12px; border-radius: 2px; }
.hx-legend b { color: var(--hx-ink); font: 600 16px/1 var(--hx-font-num); }
.hx-legend .is-generated i { background: var(--hx-st-generated); }
.hx-legend .is-library i { background: var(--hx-st-library); box-shadow: inset 0 0 0 1px var(--hx-green-ink); }
.hx-legend .is-placeholder i { background: var(--hx-hatch), var(--hx-st-placeholder-bg); box-shadow: inset 0 0 0 1px var(--hx-st-placeholder); }
.hx-legend .is-missing i { outline: 1.5px dashed var(--hx-st-missing); outline-offset: -1.5px; }
.hx-legend .is-excluded i { background: var(--hx-st-excluded-bg); box-shadow: inset 0 0 0 1px var(--hx-st-excluded); }
body.page .cx-badge { display: inline-flex; align-items: center; gap: 6px; min-height: 22px; padding: 2px 7px; color: var(--hx-muted); background: var(--hx-canvas); border: 1px solid var(--hx-rule); border-radius: 3px; font: 600 13px/1.2 var(--hx-font); letter-spacing: 0; text-transform: none; white-space: nowrap; }
.cx-badge::before { content: ""; flex: none; width: 8px; height: 8px; background: currentColor; border-radius: 1px; }
.badge.cx-badge--generated { color: var(--hx-st-generated-ink) !important; background-color: var(--hx-st-generated-bg) !important; border-color: var(--hx-blue-line); }
.badge.cx-badge--generated::before { background: var(--hx-st-generated); }
.badge.cx-badge--library, .badge.cx-badge--assembled { color: var(--hx-st-library-ink) !important; background-color: var(--hx-st-library-bg) !important; border-color: var(--hx-rule); }
.badge.cx-badge--library::before, .badge.cx-badge--assembled::before { background: var(--hx-st-library); box-shadow: inset 0 0 0 1px var(--hx-green-ink); }
.badge.cx-badge--placeholder { color: var(--hx-st-placeholder-ink) !important; background-color: var(--hx-st-placeholder-bg) !important; border-color: var(--hx-rule); }
.badge.cx-badge--placeholder::before { background: var(--hx-hatch), var(--hx-paper); box-shadow: inset 0 0 0 1px var(--hx-st-placeholder); }
.badge.cx-badge--missing { color: var(--hx-st-missing-ink) !important; background-color: var(--hx-st-missing-bg) !important; border-color: var(--hx-rule); }
.badge.cx-badge--missing::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--hx-st-missing); }
.badge.cx-badge--excluded { color: var(--hx-st-excluded) !important; background-color: var(--hx-st-excluded-bg) !important; border-color: var(--hx-rule); }
.badge.cx-badge--excluded::before { height: 2px; background: var(--hx-st-excluded); }
.badge.cx-badge--review { color: var(--hx-st-review) !important; background-color: var(--hx-st-review-bg) !important; border-color: var(--hx-rule); }
.badge.cx-badge--review::before { background: transparent; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--hx-st-review); }
.hx-track { margin: 14px 0 0; padding: 0; list-style: none; }
.hx-track li { position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-height: 40px; padding: 0 0 14px 24px; }
.hx-track li::before { content: ""; position: absolute; left: 6px; top: 18px; bottom: 0; width: 1px; background: var(--hx-rule); }
.hx-track li:last-child { padding-bottom: 0; }
.hx-track li:last-child::before { display: none; }
.hx-track .hx-dot { position: absolute; left: 0; top: 3px; width: 13px; height: 13px; background: var(--hx-paper); border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--hx-faint); }
.hx-track .is-done .hx-dot { background: var(--hx-blue); box-shadow: none; }
.hx-track .is-done .hx-dot::after { content: ""; position: absolute; left: 4px; top: 2px; width: 3px; height: 6px; border: solid #ffffff; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.hx-track .is-current .hx-dot { box-shadow: inset 0 0 0 3px var(--hx-st-review); }
.hx-track .is-absent .hx-dot { box-shadow: none; outline: 1.5px dashed var(--hx-faint); outline-offset: -1.5px; }
.hx-track-label { color: var(--hx-ink); font-size: 14px; line-height: 1.5; font-weight: 600; }
.hx-track-state { margin-left: auto; color: var(--hx-muted); font-size: 13px; line-height: 1.5; text-align: right; }
.hx-track .is-current .hx-track-state { color: var(--hx-st-review); }
.hx-filelist { margin: 0; padding: 0; list-style: none; }
.hx-filelist li { position: relative; min-width: 0; min-height: 40px; padding: 10px 0 10px 48px; border-top: 1px solid var(--hx-rule-soft); color: var(--hx-faint); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.hx-filelist li:first-child { border-top: 0; }
.hx-filelist li::before { content: "DOCX"; position: absolute; left: 0; top: 10px; display: grid; place-items: center; width: 40px; min-height: 22px; color: var(--hx-muted); background: var(--hx-canvas); border: 1px solid var(--hx-rule); border-radius: 2px; font: 700 12px/1 var(--hx-font-num); }
.hx-filelist li:has(a[download])::before { content: "PDF"; color: var(--hx-navy); background: var(--hx-blue-soft); border-color: var(--hx-blue-line); }
.hx-filelist a { display: inline; color: var(--hx-blue); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.hx-filelist a:first-of-type { font-weight: 600; }
.hx-file-name { color: var(--hx-faint); font: 400 12px/1.5 var(--hx-font-mono); overflow-wrap: anywhere; }
.hx-note { padding: 12px 14px; color: var(--hx-muted); background: var(--hx-canvas); border-radius: var(--hx-radius); font-size: 13px; line-height: 1.6; }
.hx-login-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; max-width: 600px; margin: 44px 0 28px; padding: 0; border-top: 1px solid rgba(255, 255, 255, .3); list-style: none; }
.hx-login-steps li { display: flex; align-items: center; gap: 10px; padding: 16px 12px 0 0; color: #e5edf7; font-size: 14px; line-height: 1.35; }
.hx-login-steps b { display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; color: #ffffff; border: 1px solid #d3e1f0; border-radius: 3px; font: 700 14px/1 var(--hx-font); }

/* Cached receipt composition uses the same brand states as the volume strip. */
.hx-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 var(--hx-gap);
}
.hx-kpi {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 8px;
  padding: 18px 20px;
  color: var(--hx-ink);
  background: var(--hx-paper);
  border: 1px solid var(--hx-rule);
  border-radius: var(--hx-radius-panel);
}
.hx-kpi-label { color: var(--hx-muted); font-size: 13px; line-height: 1.5; font-weight: 600; }
.hx-kpi-value {
  color: var(--hx-navy);
  font: 600 32px/1.1 var(--hx-font-num);
  font-variant-numeric: tabular-nums;
}
.hx-kpi-note { color: var(--hx-faint); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.hx-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 var(--hx-gap);
  padding: 0;
  border-block: 1px solid var(--hx-rule);
  list-style: none;
}
.hx-guide > li { min-width: 0; }
.hx-guide > li + li { border-left: 1px solid var(--hx-rule); }
.hx-guide a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 10px 16px;
  color: var(--hx-blue);
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
}
.hx-guide a > b { flex: none; color: var(--hx-navy); font: 600 20px/1 var(--hx-font-num); }
.hx-guide a > span { min-width: 0; overflow-wrap: anywhere; }
.hx-guide a:hover { background: var(--hx-blue-soft); text-decoration: underline; text-underline-offset: 3px; }
.hx-guide a:focus-visible,
.hx-volume-table a:focus-visible,
.hx-step-table a:focus-visible { outline: 2px solid var(--hx-blue); outline-offset: 2px; }
.hx-volume-title { display: block; min-width: 0; line-height: 1.5; overflow-wrap: anywhere; }
.hx-volume-en { display: block; margin-top: 2px; color: var(--hx-muted); font-size: 12px; line-height: 1.5; }
.hx-uuid {
  display: inline-block;
  max-inline-size: min(18ch, 100%);
  overflow: hidden;
  color: var(--hx-muted);
  font: 400 12px/1.5 var(--hx-font-mono);
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}
.hx-flow progress { display: block; width: 100%; height: 6px; margin: 12px 0 8px; accent-color: var(--hx-blue); }
.hx-flow progress::-webkit-progress-bar { background: var(--hx-rule-soft); border-radius: 2px; }
.hx-flow progress::-webkit-progress-value { background: var(--hx-blue); border-radius: 2px; }
.hx-flow progress::-moz-progress-bar { background: var(--hx-blue); border-radius: 2px; }
body.page table.hx-volume-table,
body.page table.hx-step-table { table-layout: auto; }
body.page .hx-step-table tbody td { overflow-wrap: anywhere; }

/* Three responsive breakpoints keep the same HTML and navigation behavior. */
@media (max-width: 1399px) {
  :root { --hx-sidebar: 224px; }
  body.page .l8-page-wrapper > .cx-page.page-body { padding-inline: 24px; }
  .hx-equation { flex-wrap: wrap; gap: 7px; }
  .hx-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
  .l8-app-body { display: block; }
  body.page .l8-sidebar.navbar { position: static; width: 100%; height: auto; min-height: 0; max-height: none; padding: 4px 12px; overflow: visible; }
  .l8-navigation-summary { display: flex; align-items: center; min-height: 44px; color: #ffffff; }
  .l8-sidebar .l8-primary-navigation { max-height: 60dvh; overflow-y: auto; }
  .l8-sidebar .l8-primary-navigation .nav-link { border-radius: var(--hx-radius); min-height: 44px; }
  .hx-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hx-flow > li:nth-child(3) { border-left: 0; border-top: 1px solid var(--hx-rule-soft); }
  .hx-flow > li:nth-child(4) { border-top: 1px solid var(--hx-rule-soft); }
  .hx-flow > li:nth-child(3)::before { display: none; }
  .hx-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hx-grid-3 { grid-template-columns: minmax(0, 1fr); }
  .l8-page-wrapper .cx-page-header { flex-wrap: wrap; }
  body.l8-login-page .cx-login-layout .cx-login-brand { padding: 48px 32px 0; }
  body.l8-login-page .cx-login-photo { width: calc(100% + 64px); margin-inline: -32px; }
  body.l8-login-page .cx-login-brand .cx-login-brand-foot { left: 32px; }
  body.l8-login-page .cx-login-brand .cx-login-statement { font-size: 32px; }
  body.l8-login-page:is([data-environment="demo"], [data-environment="dev"]) .cx-login-form.card { width: calc(100% - 40px); margin-top: 132px; padding: 28px 24px 20px; }
}
@media (max-width: 700px) {
  .l8-app-header > .container-fluid { padding: 0 16px; gap: 10px; }
  .l8-app-header .l8-brand { gap: 10px; }
  .l8-app-header .l8-brand .cx-header-logo { width: 80px; flex-basis: 80px; }
  .l8-app-header .l8-product-name { padding-left: 10px; font-size: 14px; white-space: normal; }
  .l8-app-header .cx-environment-label.badge { display: none; }
  .l8-app-header .cx-header-tools { gap: 4px; }
  body.page .cx-environment.alert { align-items: flex-start; flex-wrap: nowrap; gap: 8px; padding: 8px 16px; text-wrap: balance; font-size: 12px; }
  body.page .cx-environment.alert::before { margin-top: 1px; padding: 3px 5px; letter-spacing: .04em; }
  body.page .l8-page-wrapper > .cx-page.page-body { padding: 16px; }
  .l8-page-wrapper .cx-page-header { flex-direction: column; align-items: stretch; gap: 12px; }
  .cx-page-header h1 { font-size: 28px; }
  .hx-page-actions { justify-content: flex-start; }
  .hx-page-actions .btn { min-height: 44px; }
  .hx-flow { grid-template-columns: minmax(0, 1fr); }
  .hx-flow > li { border-left: 0; border-top: 1px solid var(--hx-rule-soft); padding: 14px 20px; }
  .hx-flow > li:first-child { border-top: 0; }
  .hx-flow > li + li::before { display: none; }
  .hx-equation { flex-wrap: wrap; gap: 8px; }
  .hx-term > .hx-num { font-size: 32px; }
  .hx-term > .cx-badge { padding-inline: 5px; font-size: 12px; }
  .hx-equation-pages, .hx-equation-total { flex-basis: 100%; margin-left: 0; }
  .hx-volstrip-cells { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .hx-cell { height: 44px; }
  .hx-kpis { gap: 10px; }
  .hx-kpi { padding: 14px 12px; }
  .hx-guide { grid-template-columns: minmax(0, 1fr); }
  .hx-guide > li + li { border-left: 0; border-top: 1px solid var(--hx-rule-soft); }
  .hx-guide a { min-height: 48px; padding-inline: 12px; }
  .hx-uuid { max-inline-size: min(16ch, 100%); }
  body.page table.cx-data-table { min-width: 580px; }
  .l8-page-wrapper .cx-table-wrap:has(> .hx-volume-table),
  .l8-page-wrapper .cx-table-wrap:has(> .hx-step-table) { overflow: visible; border: 0; border-radius: 0; }
  body.page table.cx-data-table.hx-volume-table,
  body.page table.cx-data-table.hx-step-table { display: block; width: 100%; min-width: 0; background: transparent; }
  .hx-volume-table thead,
  .hx-step-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .hx-volume-table tbody,
  .hx-step-table tbody { display: grid; min-width: 0; gap: 12px; }
  .hx-volume-table tbody tr,
  .hx-step-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-width: 0;
    padding: 12px;
    background: var(--hx-paper);
    border: 1px solid var(--hx-rule);
    border-radius: var(--hx-radius);
  }
  .hx-volume-table tbody tr.is-missing { background: #fffafa; border-color: var(--hx-st-missing); }
  body.page .hx-volume-table tbody :is(td, th),
  body.page .hx-step-table tbody :is(td, th) {
    display: block;
    min-width: 0;
    height: auto;
    padding: 6px 0;
    color: var(--hx-ink);
    background: transparent;
    border: 0;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .hx-volume-table tbody :is(td, th)::before,
  .hx-step-table tbody :is(td, th)::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: var(--hx-muted);
    font: 400 12px/1.5 var(--hx-font);
  }
  .hx-volume-table tbody :is(td, th):nth-child(2),
  .hx-volume-table tbody :is(td, th):last-child,
  .hx-step-table tbody :is(td, th) { grid-column: 1 / -1; }
  body.page .hx-volume-table tbody tr:hover :is(td, th),
  body.page .hx-step-table tbody tr:hover :is(td, th),
  body.page .hx-volume-table tbody tr.is-missing :is(td, th) { background: transparent; }
  .hx-volume-table tbody td:last-child a,
  .hx-step-table tbody td a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    margin-right: 8px;
    padding: 8px 10px;
    border: 1px solid var(--hx-blue-line);
    border-radius: var(--hx-radius);
    font-size: 14px;
  }
  .hx-track li { gap: 12px; }
  .hx-track-state { max-width: 60%; }
  .hx-filelist li { padding-left: 48px; }
  .hx-filelist a { display: inline; }
  body.l8-login-page:is([data-environment="demo"], [data-environment="dev"]) .cx-login-layout,
  body.l8-login-page .cx-login-layout { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 0; margin: 0; padding: 0; }
  body.l8-login-page:is([data-environment="demo"], [data-environment="dev"]) #main-content { padding: 0; }
  body.l8-login-page:is([data-environment="demo"], [data-environment="dev"]) .cx-login-brand,
  body.l8-login-page .cx-login-layout .cx-login-brand { min-height: 0; padding: 20px 16px 22px; }
  body.l8-login-page:is([data-environment="demo"], [data-environment="dev"]) .cx-login-brand::before { right: -90px; top: -40px; width: 240px; height: 268px; }
  body.l8-login-page:is([data-environment="demo"], [data-environment="dev"]) .cx-login-brand > img { width: 112px; height: auto; }
  body.l8-login-page:is([data-environment="demo"], [data-environment="dev"]) .cx-login-brand > .cx-ribbon { display: inline-flex; margin-top: 18px; font-size: 13px; }
  body.l8-login-page:is([data-environment="demo"], [data-environment="dev"]) .cx-login-brand > .cx-login-statement { display: block; max-width: none; margin-top: 10px; color: #ffffff; font-size: 26px; line-height: 1.3; }
  body.l8-login-page:is([data-environment="demo"], [data-environment="dev"]) .cx-login-brand > .hx-login-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 18px 0 0; }
  body.l8-login-page:is([data-environment="demo"], [data-environment="dev"]) .hx-login-steps li { flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px 6px 0 0; color: #e5edf7; font-size: 12px; }
  body.l8-login-page:is([data-environment="demo"], [data-environment="dev"]) .hx-login-steps b { width: 24px; height: 24px; font-size: 13px; }
  body.l8-login-page:is([data-environment="demo"], [data-environment="dev"]) .cx-login-brand > .cx-login-statement + p,
  body.l8-login-page:is([data-environment="demo"], [data-environment="dev"]) .cx-login-brand > .cx-login-photo,
  body.l8-login-page:is([data-environment="demo"], [data-environment="dev"]) .cx-login-brand > .cx-login-brand-foot { display: none; }
  body.l8-login-page:is([data-environment="demo"], [data-environment="dev"]) .cx-login-form.card,
  body.l8-login-page .cx-login-form.card { grid-column: 1; align-self: start; justify-self: stretch; width: auto; min-height: 0; margin: 0; padding: 24px 20px 16px; border: 0; border-radius: 0; }
  .coord-demo-login h1 { font-size: 22px; }
  .coord-demo-login #password-login { margin-top: 16px; }
  .coord-demo-login #password-login button[type="submit"] { margin-top: 16px; }
  body.l8-login-page:is([data-environment="demo"], [data-environment="dev"]) .cx-footer,
  body.l8-login-page .cx-footer { position: static; width: auto; margin: 0; padding: 12px 16px 24px; }
}
