/*
 * Helix Design System · 2026.07
 * Authoritative UI layer for the Clinical OS product shell.
 * Visual direction: editorial precision, clinical clarity, quiet confidence.
 */

:root {
  color-scheme: light;
  --hx-ink: #171714;
  --hx-ink-soft: #3f3f3a;
  --hx-muted: #73736c;
  --hx-faint: #96968e;
  --hx-canvas: #ffffff;
  --hx-surface: #ffffff;
  --hx-surface-subtle: #fffaf6;
  --hx-surface-warm: #fff7f1;
  --hx-border: #d9d8d2;
  --hx-border-soft: #e7e6e1;
  --hx-border-strong: #aaa9a1;
  --hx-orange: #f15a24;
  --hx-orange-text: #b83d0a;
  --hx-orange-soft: #fde9dc;
  --hx-success: #236b4a;
  --hx-success-soft: #e8f2ec;
  --hx-warning: #8b5a00;
  --hx-warning-soft: #f8eedb;
  --hx-critical: #a43a32;
  --hx-critical-soft: #f8e8e5;
  --hx-focus: #c84513;
  --hx-font-sans: Inter, "SF Pro Text", "SF Pro Display", -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", system-ui, sans-serif;
  --hx-font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --hx-header-h: 68px;
  --hx-rail-w: 240px;
  --hx-content-max: 1920px;
  --hx-radius-control: 3px;
  --hx-radius-panel: 2px;
  --hx-shadow-overlay: 0 24px 70px rgba(23, 23, 20, .16);
  --hx-ease: cubic-bezier(.2, .72, .24, 1);
  /* Registry shell — dark application chrome; content plane stays white */
  --hx-shell: #15181d;
  --hx-shell-raised: #1e232b;
  --hx-shell-active: #222834;
  --hx-shell-border: #2a303a;
  --hx-shell-text: #f2f4f6;
  --hx-shell-muted: #9aa2af;
  --hx-shell-faint: #6c7482;
  /* Spacing scale — use for all new or edited rules */
  --hx-space-1: 4px;
  --hx-space-2: 8px;
  --hx-space-3: 12px;
  --hx-space-4: 16px;
  --hx-space-5: 20px;
  --hx-space-6: 24px;
  --hx-space-7: 32px;
  --hx-space-8: 40px;
  --hx-space-9: 48px;
  --hx-space-10: 64px;
  /* Type scale floor — micro labels never below 10px */
  --hx-text-micro: 10px;
  --hx-text-dense: 11px;
  --hx-text-body: 13px;
  --hx-text-section: 16px;
  --ink: var(--hx-ink);
  --muted: var(--hx-muted);
  --line: var(--hx-border);
  --paper: var(--hx-canvas);
  --panel: var(--hx-surface);
  --green: var(--hx-ink);
  --amber: var(--hx-orange-text);
  --orange: var(--hx-orange);
  --red: var(--hx-critical);
  font-family: var(--hx-font-sans);
  background: var(--hx-canvas);
}

html {
  min-width: 320px;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  background: var(--hx-canvas);
  color: var(--hx-ink);
  font-family: var(--hx-font-sans);
  font-size: 13px;
  line-height: 1.48;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
[role="button"] {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--hx-focus) !important;
  outline-offset: 2px;
}

::selection {
  background: var(--hx-orange-soft);
  color: var(--hx-ink);
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--hx-rail-w) minmax(0, 1fr);
  grid-template-rows: var(--hx-header-h) minmax(0, 1fr);
  background: var(--hx-canvas);
}

/* Application header */
.global-topbar {
  z-index: 30;
  grid-column: 1 / -1;
  grid-row: 1;
  display: grid;
  grid-template-columns: var(--hx-rail-w) minmax(430px, 580px) minmax(160px, 1fr) auto;
  align-items: center;
  width: 100%;
  min-height: var(--hx-header-h);
  height: var(--hx-header-h);
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--hx-border);
  background: #fffaf6;
  backdrop-filter: blur(18px) saturate(1.1);
}

.demo-environment-banner {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 6px 18px;
  background: #7a2f2a;
  color: #fff8ef;
  font-size: 11px;
  letter-spacing: .03em;
  text-align: center;
}

.demo-environment-banner b {
  letter-spacing: .12em;
}

.global-topbar .brand {
  display: flex;
  align-items: center;
  align-self: stretch;
  gap: 11px;
  width: 100%;
  margin: 0;
  padding: 0 22px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.global-topbar .brand:hover {
  background: rgba(23, 23, 20, .035);
}

.global-topbar .brand-mark {
  display: block;
  flex: 0 0 34px;
  width: 34px !important;
  height: 34px !important;
  background: transparent !important;
}

.global-topbar .brand-symbol {
  display: block;
  width: 34px;
  height: 34px;
}

.global-topbar .brand-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
  line-height: 1;
}

.global-topbar .brand-copy strong {
  color: var(--hx-ink);
  font-size: 17px;
  font-weight: 670;
  letter-spacing: -.015em;
}

.global-topbar .brand-copy small {
  margin: 0;
  color: var(--hx-muted);
  font-size: 8px;
  font-weight: 560;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.global-context {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 100%;
  min-width: 0;
  padding: 0 12px;
  border: 0;
}

.global-topbar .workspace-switcher,
.global-topbar .project-switcher {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 16px;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 1px 9px;
  height: 48px;
  min-width: 0;
  margin: 0;
  padding: 6px 9px;
  border: 1px solid transparent;
  border-radius: var(--hx-radius-control) !important;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background .16s var(--hx-ease), border-color .16s var(--hx-ease);
}

.global-topbar .workspace-switcher {
  width: min(290px, 52%);
}

.global-topbar .project-switcher {
  width: min(220px, 42%);
  grid-template-columns: minmax(0, 1fr) 16px;
  padding-left: 11px;
}

.global-topbar .workspace-switcher:hover,
.global-topbar .project-switcher:hover {
  border-color: var(--hx-border);
  background: var(--hx-surface);
}

.global-topbar .workspace-brand-logo {
  grid-column: 1;
  grid-row: 1 / 3;
  width: 44px;
  height: 25px;
  background-color: transparent !important;
}

.global-topbar .context-label,
.global-topbar .project-switcher .context-label {
  align-self: end;
  margin: 0;
  color: var(--hx-faint);
  font-size: 8px;
  font-weight: 680;
  line-height: 1.2;
  letter-spacing: .13em;
}

.global-topbar .workspace-switcher .context-label {
  grid-column: 2 / 4;
}

.global-topbar .workspace-switcher b {
  grid-column: 2;
}

.global-topbar .project-switcher .context-label {
  grid-column: 1 / 3;
}

.global-topbar .project-switcher b {
  grid-column: 1;
  grid-row: 2;
}

.global-topbar .project-switcher svg {
  grid-column: 2;
  grid-row: 2;
}

.global-topbar .workspace-switcher b,
.global-topbar .project-switcher b {
  overflow: hidden;
  align-self: start;
  color: var(--hx-ink);
  font-size: 11px;
  font-weight: 640;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.global-topbar .workspace-chevron,
.global-topbar .project-switcher svg {
  grid-row: 2;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--hx-muted);
  stroke-width: 1.5;
}

.page-context {
  display: grid;
  align-content: center;
  gap: 2px;
  min-width: 0;
  height: 100%;
  padding: 0 18px;
}

.page-context > span {
  color: var(--hx-faint);
  font-size: 8px;
  font-weight: 680;
  letter-spacing: .13em;
}

.page-context h1 {
  overflow: hidden;
  margin: 0;
  color: var(--hx-ink-soft);
  font-size: 13px;
  font-weight: 620;
  letter-spacing: -.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.global-topbar .top-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 100%;
  padding: 0 18px 0 8px;
}
.notification-bell{position:relative;display:grid;place-items:center;width:32px;height:32px;border:1px solid transparent;border-radius:var(--hx-radius-control);background:transparent;color:var(--hx-ink);cursor:pointer}.notification-bell:hover{border-color:var(--hx-border);background:var(--hx-surface-warm)}.notification-bell svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.notification-bell i{position:absolute;top:1px;right:0;display:grid;place-items:center;min-width:13px;height:13px;border-radius:50%;background:var(--hx-orange);color:#fff;font-size:7px;font-style:normal;font-weight:700}

.language-toggle{display:inline-flex;align-items:center;gap:4px;height:28px;padding:0 7px;border:1px solid var(--hx-border);border-radius:var(--hx-radius-control);background:var(--hx-surface);color:var(--hx-muted);font:inherit;font-size:9px;cursor:pointer}
.language-toggle i{font-style:normal;color:var(--hx-border-strong)}.language-toggle .active{color:var(--hx-ink);font-weight:700}
.profile-menu .profile-language{display:flex;justify-content:space-between;align-items:center;width:100%;height:auto;padding:13px 16px;border:0;border-bottom:1px solid var(--hx-border);border-radius:0;background:transparent;color:var(--hx-ink);font:inherit;text-align:left}.profile-menu .profile-language:hover{background:var(--hx-surface-warm)}.profile-menu .profile-language span{color:var(--hx-ink);font-size:10px}.profile-menu .profile-language b{color:var(--hx-ink)!important;font-size:9px;font-weight:700}.profile-menu .profile-language i{color:var(--hx-muted);font-style:normal}

.quick-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 8px;
  border: 1px solid var(--hx-border);
  border-radius: var(--hx-radius-control);
  background: var(--hx-surface);
  color: var(--hx-muted);
  cursor: pointer;
}

.quick-switcher:hover {
  border-color: var(--hx-border-strong);
  color: var(--hx-ink);
}

.quick-switcher svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

.quick-switcher span {
  font-size: 10px;
}

kbd {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  border: 1px solid var(--hx-border);
  border-bottom-color: var(--hx-border-strong);
  border-radius: 2px;
  background: var(--hx-surface-subtle);
  color: var(--hx-muted);
  font: 9px/1 var(--hx-font-sans);
}

.global-topbar .avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--hx-ink);
  border-radius: 50% !important;
  background: var(--hx-ink);
  color: #fff;
  font-size: 10px;
  font-weight: 680;
  cursor: pointer;
}

.global-topbar .avatar i {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 11px;
  height: 11px;
  border: 2px solid var(--hx-shell);
  border-radius: 50%;
  background: #2fd57f;
  box-shadow: 0 0 6px rgba(47, 213, 127, .55);
}

.profile-menu {
  position: absolute;
  z-index: 120;
  top: calc(100% - 8px);
  right: 18px;
  width: min(340px, calc(100vw - 24px));
  border: 1px solid var(--hx-border);
  background: #fff;
  box-shadow: 0 18px 48px rgba(22, 20, 17, .14);
}

.profile-menu > header {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 11px;
  padding: 14px;
  border-bottom: 1px solid var(--hx-border);
}

.profile-menu > header div,
.profile-membership {
  display: grid;
  gap: 2px;
}

.profile-menu small,
.profile-menu em {
  color: var(--hx-muted);
  font-size: 9px;
  font-style: normal;
}

.profile-menu > header small {
  color: var(--hx-faint);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .1em;
}

.profile-menu > header b,
.profile-membership b {
  font-size: 12px;
}

.profile-membership {
  padding: 11px 14px;
  border-bottom: 1px solid var(--hx-border);
  background: var(--hx-surface-warm);
}

.profile-membership span {
  color: var(--hx-orange-text);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .08em;
}

.profile-menu nav {
  display: grid;
  padding: 5px 0;
}

.profile-menu nav button {
  display: grid;
  padding: 10px 14px;
  border: 0;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.profile-menu nav button:hover,
.profile-menu nav button:focus-visible {
  outline: 0;
  background: var(--hx-surface-subtle);
}

.profile-menu nav button span {
  color: var(--hx-ink);
  font-size: 11px;
  font-weight: 650;
}

.profile-menu nav button small {
  display: none;
}

.profile-menu > footer {
  display: block;
  padding: 10px 14px 12px;
  border-top: 1px solid var(--hx-border);
}

.profile-menu > footer button {
  width: max-content;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--hx-orange-text);
  font: inherit;
  font-size: 10px;
  cursor: pointer;
}

.profile-menu > footer span {
  display: none;
}

.profile-settings-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

.profile-settings-form label {
  display: grid;
  gap: 6px;
  color: var(--hx-muted);
  font-size: 9px;
}

.profile-settings-form input,
.profile-settings-form select {
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--hx-border);
  border-radius: 0;
  background: #fff;
  color: var(--hx-ink);
  font: inherit;
  font-size: 11px;
}

.profile-settings-form input[readonly] {
  background: var(--hx-surface-subtle);
  color: var(--hx-muted);
}

.profile-settings-form .button {
  grid-column: 1 / -1;
  justify-self: start;
}

.profile-toggle-list {
  grid-template-columns: 1fr;
}

.profile-toggle-list label {
  grid-template-columns: 18px 1fr;
  align-items: center;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--hx-border);
  color: var(--hx-ink);
  font-size: 11px;
}

.profile-toggle-list input {
  min-height: auto;
}

.profile-security-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 18px 0 12px;
  border-top: 1px solid var(--hx-border);
  border-left: 1px solid var(--hx-border);
}

.profile-security-grid > div {
  display: grid;
  gap: 5px;
  padding: 13px;
  border-right: 1px solid var(--hx-border);
  border-bottom: 1px solid var(--hx-border);
}

.profile-security-grid span {
  color: var(--hx-orange-text);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .08em;
}

.profile-security-grid small {
  color: var(--hx-muted);
  font-size: 9px;
}

/* Navigation rail */
.rail {
  z-index: 20;
  grid-column: 1;
  grid-row: 2;
  position: sticky;
  top: var(--hx-header-h);
  display: flex;
  width: var(--hx-rail-w);
  height: calc(100vh - var(--hx-header-h));
  min-height: 0;
  padding: 16px 12px 14px;
  overflow: hidden;
  border: 0;
  border-right: 1px solid var(--hx-border);
  background: var(--hx-surface-subtle);
}

.rail nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--hx-border) transparent;
}

.nav-group {
  display: grid;
  gap: 2px;
}

.nav-group > span {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 0 10px 5px;
  color: var(--hx-faint);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.nav-group > span small {
  color: var(--hx-faint);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: .02em;
  text-transform: none;
}

.nav-group .nav-btn {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 38px;
  padding: 7px 9px;
  border: 0;
  border-left: 2px solid transparent;
  border-radius: 2px !important;
  background: transparent;
  color: var(--hx-muted);
  text-align: left;
  cursor: pointer;
  transition: color .15s var(--hx-ease), background .15s var(--hx-ease);
}

.nav-group .nav-btn:hover {
  background: rgba(23, 23, 20, .045);
  color: var(--hx-ink);
}

.nav-group .nav-btn.active {
  border-left-color: var(--hx-orange);
  background: var(--hx-surface);
  color: var(--hx-ink);
}

.nav-btn i {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 0;
  color: currentColor;
}

.nav-btn.active i {
  border: 0;
  background: transparent;
  color: var(--hx-orange-text);
}

.ui-icon {
  display: block;
  width: 17px;
  height: 17px;
}

.nav-btn b {
  display: grid;
  gap: 1px;
  min-width: 0;
  font-weight: 570;
}

.nav-btn b span {
  overflow: hidden;
  font-size: 11px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-btn b small {
  color: var(--hx-faint);
  font-size: 8.5px;
  font-weight: 450;
  line-height: 1.2;
}

.nav-btn.active b {
  font-weight: 660;
}

.nav-btn.active b small {
  color: var(--hx-muted);
}

.nav-group-meta {
  padding: 8px 0;
}

.nav-group-prototype {
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px solid var(--hx-border);
}

/* Build group is delivery-plane scaffolding, not customer product */
.nav-group-prototype > span::after {
  content: "INTERNAL";
  padding: 1px 5px;
  border: 1px solid var(--hx-border);
  border-radius: var(--hx-radius-control);
  color: var(--hx-faint);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .08em;
}

.nav-group-prototype .nav-btn {
  opacity: .82;
}

.nav-group-prototype .nav-btn.active,
.nav-group-prototype .nav-btn:hover {
  opacity: 1;
}

/* Empty state — used when filters or queues produce no rows */
.empty-state {
  display: grid;
  justify-items: center;
  gap: var(--hx-space-2);
  padding: var(--hx-space-8) var(--hx-space-6);
  border: 1px dashed var(--hx-border);
  border-radius: var(--hx-radius-panel);
  color: var(--hx-muted);
  text-align: center;
}

.empty-state b {
  color: var(--hx-ink);
  font-size: var(--hx-text-body);
  font-weight: 620;
}

.empty-state small {
  max-width: 420px;
  font-size: var(--hx-text-dense);
  line-height: 1.6;
}

/* Main page frame */
main {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  min-height: 0;
  background: var(--hx-canvas);
}

#view {
  width: 100%;
  max-width: var(--hx-content-max);
  margin: 0 auto;
  padding: 28px 34px 88px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--hx-muted);
  font-size: var(--hx-text-micro);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin: 22px 0 16px;
}

.page-guide + .section-head {
  margin-top: 24px;
}

.section-head > div {
  min-width: 0;
}

.section-head h2,
.workspace-intro h2 {
  margin: 0;
  color: var(--hx-ink);
  font-size: clamp(25px, 2vw, 32px);
  font-weight: 620;
  line-height: 1.12;
  letter-spacing: -.035em;
}

.section-head p,
.workspace-intro p {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--hx-muted);
  font-size: 13px;
  line-height: 1.65;
}

.subtle {
  color: var(--hx-muted);
  line-height: 1.6;
}

/* Module briefing — collapsed by default, posture always visible */
.page-guide {
  overflow: hidden;
  margin: 0 0 var(--hx-space-4);
  border: 1px solid var(--hx-border-soft);
  border-radius: var(--hx-radius-panel);
  background: var(--hx-canvas);
}

.page-guide[open] {
  border-color: var(--hx-border);
  background: var(--hx-surface);
}

.page-guide summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--hx-space-5);
  min-height: 40px;
  padding: var(--hx-space-2) var(--hx-space-3);
  list-style: none;
  cursor: pointer;
}

.page-guide summary:hover {
  background: var(--hx-surface-subtle);
}

.page-guide summary::-webkit-details-marker {
  display: none;
}

.page-guide summary span {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px var(--hx-space-3);
  min-width: 0;
}

.page-guide summary b {
  font-size: var(--hx-text-dense);
  font-weight: 650;
  white-space: nowrap;
}

.page-guide summary small {
  overflow: hidden;
  color: var(--hx-muted);
  font-size: var(--hx-text-dense);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-guide summary em {
  flex: 0 1 auto;
  overflow: hidden;
  max-width: 38%;
  padding: 2px 8px;
  text-overflow: ellipsis;
  border: 1px solid var(--hx-border);
  border-radius: var(--hx-radius-control);
  color: var(--hx-muted);
  font-size: var(--hx-text-micro);
  font-style: normal;
  letter-spacing: .04em;
  white-space: nowrap;
}

.page-guide-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 18px;
  padding: 14px;
  border-top: 1px solid var(--hx-border-soft);
  background: var(--hx-surface);
}

.page-guide-flow {
  display: flex;
  align-items: stretch;
  min-width: 0;
}

.page-guide-flow > div {
  display: grid;
  flex: 1;
  gap: 5px;
  min-width: 130px;
  padding: 10px 12px;
  border: 1px solid var(--hx-border);
  background: var(--hx-surface);
}

.page-guide-flow span {
  color: var(--hx-orange-text);
  font-size: var(--hx-text-micro);
  font-weight: 650;
}

.page-guide-flow b {
  font-size: var(--hx-text-dense);
  font-weight: 620;
}

.page-guide-flow i {
  display: grid;
  place-items: center;
  min-width: 28px;
  color: var(--hx-orange-text);
  font-size: 12px;
  font-style: normal;
}

.page-guide-body > p {
  display: grid;
  align-content: center;
  gap: var(--hx-space-1);
  margin: 0;
  padding-left: var(--hx-space-4);
  border-left: 1px solid var(--hx-border);
  color: var(--hx-muted);
  font-size: var(--hx-text-micro);
  line-height: 1.55;
}

.page-guide-body > p b {
  color: var(--hx-ink);
  font-size: var(--hx-text-micro);
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Core components */
.grid {
  gap: 12px;
}

.card,
.flow-node,
.choice,
.workspace-options > button,
.project-list button {
  border-color: var(--hx-border);
  border-radius: var(--hx-radius-panel) !important;
  background: var(--hx-surface);
  box-shadow: none !important;
}

.card {
  padding: 18px;
}

.card h3 {
  margin: 0 0 13px;
  color: var(--hx-ink);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -.01em;
}

.card-head {
  gap: 20px;
  padding-bottom: 12px;
  border-bottom-color: var(--hx-border-soft);
}

.card-head h3 {
  margin: 3px 0 0;
}

.button,
.quiet,
.icon-btn,
.dialog-close,
.project-list button,
.workspace-options button,
.operations-tabs button,
.warehouse-tabs button,
.lookup-tabs button,
.handoff-tabs button,
.portal-tabs button {
  border-radius: var(--hx-radius-control) !important;
}

.button {
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid var(--hx-ink);
  background: var(--hx-ink);
  color: #fff;
  font-size: 11px;
  font-weight: 620;
  letter-spacing: .005em;
  transition: background .15s var(--hx-ease), border-color .15s var(--hx-ease);
}

.button:hover {
  border-color: var(--hx-orange-text);
  background: var(--hx-orange-text);
}

.button.secondary,
.quiet {
  border: 1px solid var(--hx-border);
  background: var(--hx-surface);
  color: var(--hx-ink);
}

.button.secondary:hover,
.quiet:hover {
  border-color: var(--hx-border-strong);
  background: var(--hx-surface-subtle);
}

.button:disabled,
button:disabled {
  cursor: not-allowed;
  opacity: .48;
}

input,
select,
textarea {
  border-color: var(--hx-border) !important;
  border-radius: var(--hx-radius-control) !important;
  background: var(--hx-surface);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 7px;
  border: 1px solid var(--hx-border);
  border-radius: 2px !important;
  background: var(--hx-surface-subtle);
  color: var(--hx-ink-soft);
  font-size: 9px;
  font-weight: 560;
  line-height: 1.2;
  white-space: nowrap;
}

.badge.warn {
  border-color: #d7b986;
  background: var(--hx-warning-soft);
  color: var(--hx-warning);
}

.badge.risk {
  border-color: #d5aaa4;
  background: var(--hx-critical-soft);
  color: var(--hx-critical);
}

.notice {
  padding: 11px 13px;
  border: 0;
  border-left: 3px solid var(--hx-orange);
  border-radius: 0 !important;
  background: var(--hx-surface-warm);
  color: var(--hx-ink-soft);
  font-size: 11px;
  line-height: 1.6;
}

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--hx-ink-soft);
  font-size: 11px;
}

.table th {
  padding: 10px 11px;
  border-bottom: 1px solid var(--hx-border);
  background: var(--hx-surface-subtle);
  color: var(--hx-muted);
  font-size: 9px;
  font-weight: 680;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.table td {
  padding: 11px;
  border-bottom: 1px solid var(--hx-border-soft);
  line-height: 1.5;
  vertical-align: top;
}

.table tbody tr:last-child td {
  border-bottom-color: transparent;
}

.table tbody tr:hover td {
  background: #fbfaf8;
}

.table td b {
  color: var(--hx-ink);
  font-weight: 630;
}

pre,
code,
.sql-preview textarea {
  font-family: var(--hx-font-mono) !important;
}

pre {
  border-radius: 2px !important;
}

.portal-tabs,
.warehouse-tabs,
.operations-tabs,
.lookup-tabs,
.handoff-tabs {
  display: flex;
  gap: 2px;
  margin: 0 0 14px;
  overflow-x: auto;
  border-bottom: 1px solid var(--hx-border);
  background: transparent;
}

.portal-tabs button,
.warehouse-tabs button,
.operations-tabs button,
.lookup-tabs button,
.handoff-tabs button {
  min-height: 39px;
  padding: 9px 13px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--hx-muted);
  font-size: 10px;
  font-weight: 540;
  white-space: nowrap;
  cursor: pointer;
}

.portal-tabs button:hover,
.warehouse-tabs button:hover,
.operations-tabs button:hover,
.lookup-tabs button:hover,
.handoff-tabs button:hover {
  color: var(--hx-ink);
}

.portal-tabs button.active,
.warehouse-tabs button.active,
.operations-tabs button.active,
.lookup-tabs button.active,
.handoff-tabs button.active {
  border-bottom-color: var(--hx-orange);
  background: transparent;
  color: var(--hx-ink);
  font-weight: 670;
}

/* Project workspace */
.workspace-intro {
  align-items: flex-end;
  min-height: 138px;
  margin: 0 0 18px;
  padding: 12px 0 24px;
  border-bottom: 1px solid var(--hx-ink);
}

.workspace-state {
  gap: 4px;
  padding-bottom: 3px;
}

.workspace-state b {
  font-size: 14px;
}

.workspace-grid {
  gap: 12px;
  margin-bottom: 32px;
}

/* Command center: work queue + readiness + activity share the first screenful */
.workspace-grid.command-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: var(--hx-space-3);
}

.activity-board {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-content: start;
}

.activity-board .activity > div {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  column-gap: var(--hx-space-2);
  align-items: baseline;
  padding: var(--hx-space-2) 0;
  border-bottom: 1px solid var(--hx-border-soft);
  cursor: pointer;
}

.activity-board .activity > div:hover {
  background: var(--hx-surface-subtle);
}

.activity-board .activity i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hx-orange);
}

.activity-board .activity b {
  font-size: var(--hx-text-dense);
  font-weight: 600;
  line-height: 1.4;
}

.activity-board .activity span {
  grid-column: 2;
  color: var(--hx-muted);
  font-size: var(--hx-text-micro);
}

.activity-board .compact-loop {
  margin-top: var(--hx-space-3);
}

@media (max-width: 1180px) {
  .workspace-grid.command-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .activity-board {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .workspace-grid.command-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.work-queue > button {
  grid-template-columns: 92px minmax(0, 1fr) auto;
  min-height: 60px;
  padding: 12px 5px;
  border-bottom-color: var(--hx-border-soft);
}

.work-queue > button:hover,
.context-row:hover {
  background: var(--hx-surface-subtle);
}

.work-queue button b {
  font-size: 11px;
}

.work-queue button small,
.context-row small,
.context-row > span {
  font-size: 9px;
}

.context-row {
  min-height: 72px;
  padding: 14px 5px;
  border-bottom-color: var(--hx-border-soft);
}

.context-row b {
  font-size: 11px;
}

.context-row strong {
  color: var(--hx-ink);
  font-size: 24px;
  letter-spacing: -.03em;
}

.product-modules {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 28px;
  border: 1px solid var(--hx-border);
  background: var(--hx-surface);
}

.product-modules article {
  min-height: 168px;
  padding: 18px;
  border-right: 1px solid var(--hx-border);
  border-bottom: 1px solid var(--hx-border);
  transition: background .16s var(--hx-ease), box-shadow .16s var(--hx-ease);
}

.product-modules article:nth-child(4n) {
  border-right: 0;
}

.product-modules article:hover {
  background: var(--hx-surface-subtle);
  box-shadow: inset 0 -3px var(--hx-orange) !important;
}

.product-modules article > span {
  color: var(--hx-orange-text);
  font-size: 8px;
  font-weight: 680;
}

.product-modules h3 {
  margin: 28px 0 8px;
  font-size: 14px;
}

.product-modules p {
  min-height: 42px;
  color: var(--hx-muted);
  font-size: 10px;
  line-height: 1.55;
}

.product-modules b {
  color: var(--hx-ink-soft);
  font-size: 9px;
}

/* Documentation and knowledge */
.documentation-shell,
.knowledge-layout,
.catalog-shell,
.lookup-layout {
  border-color: var(--hx-border) !important;
  background: var(--hx-surface);
}

.document-family-nav,
.knowledge-tree,
.catalog-sidebar,
.lookup-registry-list {
  background: var(--hx-surface-subtle) !important;
}

.document-family-nav button,
.knowledge-tree button,
.catalog-sidebar button,
.lookup-registry-list button {
  transition: background .14s var(--hx-ease), border-color .14s var(--hx-ease);
}

.document-family-nav button.active,
.knowledge-tree button.active,
.catalog-sidebar button.active,
.lookup-registry-list button.active {
  border-left-color: var(--hx-orange) !important;
  background: var(--hx-surface) !important;
}

.doc-card,
.derived-card {
  min-height: 145px;
  padding: 16px !important;
}

.doc-card h3,
.derived-card h3 {
  font-size: 13px !important;
}

/* Operations, warehouse, lookup and handoff */
.operations-principle,
.warehouse-hero,
.orchestration-head,
.lookup-hero,
.handoff-hero {
  border-color: var(--hx-border) !important;
  background: var(--hx-surface);
}

.system-grid,
.warehouse-product-grid {
  gap: 12px;
}

.system-grid > button,
.warehouse-product-grid article {
  border-color: var(--hx-border);
  background: var(--hx-surface);
  transition: border-color .15s var(--hx-ease), background .15s var(--hx-ease);
}

.system-grid > button:hover,
.warehouse-product-grid article:hover {
  border-color: var(--hx-border-strong);
  background: var(--hx-surface-subtle);
}

.warehouse-hero {
  grid-template-columns: minmax(0, 1fr) 300px;
  margin-bottom: 12px;
}

.warehouse-hero > article,
.orchestration-head > div {
  padding: 20px;
}

.warehouse-hero h3,
.orchestration-head h3 {
  font-size: 20px;
  letter-spacing: -.02em;
}

.warehouse-hero p,
.orchestration-head p {
  font-size: 10px;
}

.warehouse-layer-map button {
  min-height: 100px;
  padding: 13px;
  border-color: var(--hx-border);
}

.warehouse-layer-map button:hover {
  border-color: var(--hx-orange);
  background: var(--hx-surface-warm);
}

.warehouse-layer-map button b,
.warehouse-list-item b,
.warehouse-consumers b {
  font-size: 10px;
}

.warehouse-layer-map button small,
.warehouse-list-item small,
.warehouse-consumers span {
  font-size: 8.5px;
}

.orchestration-head {
  grid-template-columns: minmax(0, 1fr) 320px !important;
}

.orchestration-head form {
  padding: 18px !important;
  background: var(--hx-surface-subtle) !important;
}

.dag-layout {
  grid-template-columns: minmax(0, 1fr) 310px !important;
}

.dag-canvas {
  min-height: 380px !important;
  padding: 28px 18px !important;
  background-color: #fbfbf9 !important;
}

.dag-task {
  min-height: 116px !important;
  padding: 13px !important;
  border-color: var(--hx-border) !important;
  background: var(--hx-surface) !important;
}

.dag-task.active {
  border-color: var(--hx-orange) !important;
  box-shadow: inset 0 3px var(--hx-orange) !important;
}

.dag-task b {
  font-size: 10px !important;
}

.dag-detail {
  padding: 18px !important;
  background: var(--hx-surface) !important;
}

.dag-detail pre,
.sql-preview textarea {
  border: 1px solid #292925 !important;
  background: #1d1d1a !important;
  color: #f4f3ef !important;
  font-size: 9px !important;
  line-height: 1.65 !important;
}

.lookup-layout {
  grid-template-columns: 300px minmax(0, 1fr) !important;
  min-height: 570px !important;
}

.lookup-registry-list {
  padding: 12px !important;
}

.lookup-registry-list input {
  min-height: 36px;
  padding: 0 10px !important;
  font-size: 10px !important;
}

.lookup-registry-list button {
  min-height: 47px !important;
  padding: 9px !important;
}

.lookup-registry-list button b {
  font-size: 9px !important;
}

.lookup-detail {
  padding: 22px !important;
}

.lookup-detail h2 {
  font-size: 28px !important;
  letter-spacing: -.035em;
}

.lookup-version {
  min-height: 40px;
  padding: 10px 12px !important;
  border-left-color: var(--hx-orange) !important;
  background: var(--hx-surface-warm) !important;
}

.function-landscape,
.handoff-landscape {
  gap: 10px !important;
}

.function-card,
.handoff-landscape > button {
  min-height: 120px !important;
  padding: 15px !important;
  border-color: var(--hx-border) !important;
  background: var(--hx-surface) !important;
}

.function-card:hover,
.handoff-landscape > button:hover {
  border-color: var(--hx-orange) !important;
  background: var(--hx-surface-warm) !important;
}

.handoff-center {
  padding: 24px !important;
  background: var(--hx-surface-subtle) !important;
}

.handoff-center h3 {
  font-size: 25px !important;
}

.dependency-map button {
  min-height: 120px;
  border-color: var(--hx-border) !important;
}

/* Charts, progress and analysis */
.bar-track,
.progress {
  height: 6px;
  border-radius: 1px !important;
  background: var(--hx-border-soft);
}

.bar-fill,
.progress span {
  border-radius: 1px !important;
  background: var(--hx-orange);
}

.bar-row {
  min-height: 26px;
  font-size: 10px;
}

.reporting-chain,
.analysis-track-grid,
.architecture-lanes,
.landscape-canvas {
  border-color: var(--hx-border) !important;
}

.analysis-track-grid button,
.reporting-chain button,
.reporting-origin,
.reporting-extension {
  border-color: var(--hx-border) !important;
  background: var(--hx-surface) !important;
}

.analysis-track-grid button:hover,
.reporting-chain button:hover {
  border-color: var(--hx-orange) !important;
  background: var(--hx-surface-warm) !important;
}

.hero-copy {
  border-radius: var(--hx-radius-panel) !important;
  background: var(--hx-ink);
}

.hero-side {
  border-radius: var(--hx-radius-panel) !important;
  background: var(--hx-surface-warm);
}

/* Dialogs and Co-pilot */
dialog {
  width: min(860px, calc(100vw - 40px));
  max-height: min(850px, calc(100vh - 40px));
  padding: 28px;
  overflow: auto;
  border: 1px solid var(--hx-border);
  border-radius: 3px !important;
  background: var(--hx-surface);
  box-shadow: var(--hx-shadow-overlay) !important;
}

dialog::backdrop {
  background: rgba(23, 23, 20, .38);
  backdrop-filter: blur(3px);
}

.dialog-close,
.icon-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--hx-border);
  background: var(--hx-surface);
  color: var(--hx-muted);
  cursor: pointer;
}

.dialog-close:hover,
.icon-btn:hover {
  border-color: var(--hx-border-strong);
  color: var(--hx-ink);
}

.workspace-dialog {
  width: min(980px, calc(100vw - 40px));
}

.workspace-options > button {
  min-height: 94px;
}

.workspace-options > button.active {
  border-left-color: var(--hx-orange) !important;
  background: var(--hx-surface-warm) !important;
}

.copilot {
  top: 12px;
  right: 12px;
  bottom: 12px;
  width: min(420px, calc(100vw - 24px));
  padding: 20px;
  border: 1px solid var(--hx-border);
  border-radius: 3px !important;
  background: var(--hx-surface);
  box-shadow: var(--hx-shadow-overlay) !important;
}

.copilot-head h2 {
  font-size: 20px;
  letter-spacing: -.02em;
}

.context-chip {
  padding: 9px 10px;
  border: 1px solid var(--hx-border-soft);
  border-radius: 2px !important;
  background: var(--hx-surface-subtle);
  font-size: 10px;
}

.message {
  padding: 11px 12px;
  border-radius: 3px !important;
  font-size: 11px;
  line-height: 1.6;
}

.message.assistant {
  border: 1px solid var(--hx-border-soft);
  background: var(--hx-surface-subtle);
}

.message.user {
  background: var(--hx-ink);
}

#copilotForm {
  min-height: 42px;
  border-radius: 3px !important;
}

.copilot-fab {
  right: 22px;
  bottom: 18px;
  min-height: 38px;
  padding: 9px 12px;
  border: 1px solid var(--hx-ink);
  border-radius: 3px !important;
  background: var(--hx-ink);
  box-shadow: 0 10px 30px rgba(23, 23, 20, .14) !important;
  font-size: 10px;
}

.copilot-fab:hover {
  border-color: var(--hx-orange-text);
  background: var(--hx-orange-text);
}

.quick-jump-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.quick-jump-grid button {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 2px 10px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid var(--hx-border);
  border-radius: 2px;
  background: var(--hx-surface);
  text-align: left;
  cursor: pointer;
}

.quick-jump-grid button:hover {
  border-color: var(--hx-orange);
  background: var(--hx-surface-warm);
}

.quick-jump-grid button .ui-icon {
  grid-row: 1 / 3;
  align-self: center;
  color: var(--hx-orange-text);
}

.quick-jump-grid button b {
  font-size: 11px;
}

.quick-jump-grid button small {
  color: var(--hx-muted);
  font-size: 9px;
}

/* Inspectable affordance */
.surface-inspectable {
  cursor: pointer;
}

.surface-inspectable:hover {
  outline: 1px solid var(--hx-orange) !important;
  outline-offset: -1px;
}

@media (prefers-reduced-motion: no-preference) {
  dialog[open],
  .copilot.open {
    animation: hx-enter .18s var(--hx-ease);
  }

  @keyframes hx-enter {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (max-width: 1240px) {
  :root {
    --hx-rail-w: 212px;
  }

  .global-topbar {
    grid-template-columns: var(--hx-rail-w) minmax(400px, 520px) minmax(120px, 1fr) auto;
  }

  .quick-switcher span {
    display: none;
  }

  .product-modules {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-modules article:nth-child(4n) {
    border-right: 1px solid var(--hx-border);
  }

  .product-modules article:nth-child(3n) {
    border-right: 0;
  }
}

@media (max-width: 1020px) {
  :root {
    --hx-rail-w: 76px;
  }

  .global-topbar {
    grid-template-columns: var(--hx-rail-w) minmax(400px, 500px) minmax(100px, 1fr) auto;
  }

  .global-topbar .brand {
    justify-content: center;
    padding: 0;
  }

  .global-topbar .brand-copy,
  .nav-group > span,
  .nav-btn b {
    display: none;
  }

  .rail {
    padding-right: 10px;
    padding-left: 10px;
  }

  .nav-group .nav-btn {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 8px;
  }

  .nav-group-prototype {
    margin-top: auto;
  }

  .page-guide-body,
  .lookup-layout,
  .dag-layout {
    grid-template-columns: 1fr !important;
  }

  .page-guide-body > p {
    padding: 10px 0 0;
    border-top: 1px solid var(--hx-border);
    border-left: 0;
  }

  .lookup-registry-list {
    max-height: 300px;
    overflow: auto;
  }
}

@media (max-width: 760px) {
  .profile-menu {
    position: fixed;
    top: 56px;
    right: 8px;
  }

  .profile-settings-form,
  .profile-security-grid {
    grid-template-columns: 1fr;
  }
  :root {
    --hx-header-h: 60px;
  }

  .shell {
    display: block;
    padding-bottom: 62px;
  }

  .global-topbar {
    position: sticky;
    top: 0;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    min-height: var(--hx-header-h);
    height: var(--hx-header-h);
  }

  .global-topbar .brand-mark,
  .global-topbar .brand-symbol {
    width: 30px !important;
    height: 30px !important;
  }

  .global-context {
    padding: 0 4px;
  }

  .global-topbar .workspace-switcher {
    width: 100%;
    height: 44px;
    grid-template-columns: 36px minmax(0, 1fr) 14px;
    padding: 5px 7px;
  }

  .global-topbar .workspace-brand-logo {
    width: 36px;
    height: 21px;
  }

  .global-topbar .workspace-switcher b {
    font-size: 10px;
  }

  .global-topbar .project-switcher,
  .page-context,
  .quick-switcher {
    display: none;
  }

  .global-topbar .top-actions {
    padding: 0 10px 0 4px;
  }

  .rail {
    position: fixed;
    z-index: 28;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 62px;
    padding: 6px;
    overflow: hidden;
    border-top: 1px solid var(--hx-border);
    border-right: 0;
    background: rgba(250, 249, 247, .98);
  }

  .rail nav {
    display: flex;
    flex-direction: row;
    gap: 2px;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .nav-group {
    display: contents;
  }

  .nav-group-meta,
  .nav-group-prototype {
    margin: 0;
    padding: 0;
    border: 0;
  }

  .nav-group .nav-btn {
    flex: 0 0 54px;
    min-height: 48px;
    border-bottom: 2px solid transparent;
    border-left: 0;
  }

  .nav-group .nav-btn.active {
    border-bottom-color: var(--hx-orange);
  }

  main {
    min-height: calc(100vh - var(--hx-header-h));
  }

  #view {
    padding: 16px 14px 84px;
  }

  .page-guide {
    margin-bottom: 14px;
  }

  .page-guide-body {
    overflow-x: auto;
  }

  .page-guide-flow {
    min-width: 520px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    margin-top: 18px;
  }

  .section-head h2,
  .workspace-intro h2 {
    font-size: 25px;
  }

  .workspace-intro {
    align-items: flex-start;
    min-height: 0;
    flex-direction: column;
    gap: 16px;
  }

  .workspace-state {
    align-items: flex-start;
  }

  .product-modules {
    grid-template-columns: 1fr;
  }

  .product-modules article,
  .product-modules article:nth-child(3n),
  .product-modules article:nth-child(4n) {
    min-height: 136px;
    border-right: 0;
  }

  .product-modules h3 {
    margin-top: 20px;
  }

  .orchestration-head,
  .warehouse-hero {
    grid-template-columns: 1fr !important;
  }

  .dag-canvas {
    min-height: 0 !important;
    overflow-x: auto;
  }

  .quick-jump-grid {
    grid-template-columns: 1fr;
  }

  dialog,
  .workspace-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    padding: 20px;
  }

  .copilot {
    inset: 8px;
    width: auto;
  }

  .copilot-fab {
    right: 12px;
    bottom: 72px;
  }
}

/* Real secondary product views */
.module-subpage {
  min-height: 520px;
  padding: 18px;
  border: 1px solid var(--hx-border);
  background: #fff;
}

.subpage-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hx-border);
}

.subpage-head h3 {
  margin: 4px 0;
  font-size: 21px;
}

.subpage-head p {
  margin: 4px 0 0;
  color: var(--hx-muted);
}

.subpage-head > button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--hx-ink);
  background: var(--hx-ink);
  color: #fff;
}

.subpage-records {
  display: grid;
}

.subpage-records > button {
  display: grid;
  grid-template-columns: 180px minmax(240px, .9fr) minmax(300px, 1.4fr) 120px;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  padding: 13px 8px;
  border: 0;
  border-bottom: 1px solid var(--hx-border);
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.subpage-records > button:hover {
  background: #fffaf6;
}

.subpage-records span,
.subpage-records small {
  color: var(--hx-muted);
  font-size: 11px;
}

.subpage-records b {
  font-size: 13px;
}

.subpage-records em {
  color: var(--hx-orange-text);
  font-size: 10px;
  font-style: normal;
  text-align: right;
}

.subpage-layer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 18px;
  border: 1px solid var(--hx-border);
}

.subpage-layer-grid button {
  display: grid;
  gap: 8px;
  min-height: 160px;
  padding: 18px;
  border: 0;
  border-right: 1px solid var(--hx-border);
  background: #fff;
  text-align: left;
}

.subpage-layer-grid span {
  color: var(--hx-orange-text);
}

.subpage-layer-grid small {
  color: var(--hx-muted);
  line-height: 1.5;
}

.subpage-lineage {
  display: flex;
  align-items: stretch;
  margin-top: 32px;
}

.subpage-lineage button {
  display: grid;
  flex: 1;
  gap: 8px;
  min-height: 110px;
  padding: 16px;
  border: 1px solid var(--hx-border);
  background: #fff;
  text-align: left;
}

.subpage-lineage span {
  color: var(--hx-muted);
}

.subpage-lineage i {
  display: grid;
  place-items: center;
  min-width: 34px;
  color: var(--hx-orange-text);
  font-style: normal;
}

@media (max-width: 900px) {
  .subpage-records > button {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .subpage-records em {
    text-align: left;
  }

  .subpage-layer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .subpage-lineage {
    min-width: 760px;
  }

  .module-subpage {
    overflow-x: auto;
  }
}

/* 2026.07.13.13 · readability, white canvas and wide clinical workbench */
body,
.shell,
main,
#view,
.rail {
  background: #fff !important;
}

#view {
  max-width: 1920px;
  padding-right: clamp(22px, 2.1vw, 42px);
  padding-left: clamp(22px, 2.1vw, 42px);
}

.global-topbar .top-actions {
  justify-content: flex-end;
  min-width: 62px;
}

.nav-group > span,
.context-label,
.page-context > span,
.eyebrow {
  font-size: 10px !important;
}

.nav-group .nav-btn {
  min-height: 42px;
}

.nav-btn b {
  font-size: 12px !important;
}

.nav-btn b small {
  margin-top: 2px;
  font-size: 10px !important;
  line-height: 1.3;
}

.global-topbar .workspace-switcher b,
.global-topbar .project-switcher b {
  font-size: 12px !important;
}

.page-context h1 {
  font-size: 14px !important;
}

.page-guide {
  background: #fff !important;
}

.page-guide summary {
  min-height: 54px;
}

.page-guide summary b {
  font-size: 13px;
}

.page-guide summary small,
.page-guide-flow b {
  font-size: 11px;
}

.page-guide summary em,
.page-guide-flow span,
.page-guide-body > p,
.page-guide-body > p b {
  font-size: 10px;
}

.section-head p,
.workspace-intro p,
.product-head p,
.card p,
.subtle {
  font-size: 13px;
}

.work-tabs button,
.warehouse-tabs button,
.operations-tabs button,
.lookup-tabs button,
.handoff-tabs button,
.portal-tabs button {
  min-height: 42px;
  font-size: 12px !important;
}

.card h3,
.card-head h3 {
  font-size: 15px;
}

.table,
.table th,
.table td {
  font-size: 11.5px !important;
}

.badge,
.text-action,
.button,
input,
select,
textarea {
  font-size: 11px !important;
}

.workspace-grid,
.warehouse-overview-grid,
.analysis-support {
  gap: 16px;
}

.orchestration-head p,
.orchestration-head label,
.orchestration-head > div > div span,
.dag-task span,
.dag-task small,
.dag-task em,
.dag-detail dt,
.dag-detail dd,
.lookup-detail dt,
.lookup-detail dd {
  font-size: 10px !important;
}

.dag-workbench {
  margin-bottom: 14px;
  border: 1px solid var(--hx-border);
  background: #fff;
}

.dag-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 50px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--hx-border);
  background: #fffaf6;
}

.dag-toolbar > div {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dag-toolbar button,
.dag-toolbar span {
  min-width: 34px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--hx-border);
  background: #fff;
  font-size: 11px;
}

.dag-toolbar span {
  display: grid;
  place-items: center;
  min-width: 54px;
}

.dag-toolbar p {
  margin: 0;
  color: var(--hx-muted);
  font-size: 11px;
}

.dag-workbench .dag-layout {
  margin: 0;
  border: 0;
}

.dag-viewport {
  position: relative;
  min-height: 460px;
  overflow: auto;
  cursor: grab;
  background-color: #fff;
  background-image: radial-gradient(#d9d8d2 .75px, transparent .75px);
  background-size: 16px 16px;
  touch-action: none;
}

.dag-viewport.panning {
  cursor: grabbing;
  user-select: none;
}

.dag-workbench .dag-canvas {
  position: relative;
  display: block !important;
  width: 1780px;
  height: 430px;
  min-height: 430px !important;
  padding: 0 !important;
  overflow: visible;
  background: transparent !important;
  transform-origin: 0 0;
}

.dag-edges {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.dag-edges path {
  fill: none;
  stroke: #aaa9a1;
  stroke-width: 1.5;
}

.dag-edges marker path {
  fill: #aaa9a1;
  stroke: none;
}

.dag-workbench .dag-task {
  position: absolute;
  z-index: 2;
  width: 170px;
  min-height: 112px !important;
  touch-action: none;
  user-select: none;
  cursor: grab;
}

.dag-workbench .dag-task.dragging {
  z-index: 4;
  cursor: grabbing;
  box-shadow: 0 10px 30px rgba(23, 23, 20, .13) !important;
}

.dag-workbench .dag-task b {
  font-size: 12px !important;
}

.dag-detail {
  min-height: 460px;
}

.dag-detail pre {
  font-size: 10px !important;
}

@media (min-width: 1500px) {
  #view {
    padding-right: 28px;
    padding-left: 28px;
  }
}

/* Docked context-aware Co-pilot */
.copilot {
  top: var(--app-header-height, var(--hx-header-h)) !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 420px !important;
  border-top: 0 !important;
  border-right: 0 !important;
  border-bottom: 0 !important;
  box-shadow: -12px 0 36px rgba(23, 23, 20, .08) !important;
}

.shell main {
  transition: margin-right .22s var(--hx-ease);
}

.shell.copilot-docked main {
  margin-right: 420px;
}

.context-chip {
  display: grid;
  gap: 3px;
  background: #fffaf6 !important;
}

.context-chip b {
  font-size: 12px;
}

.context-chip span,
.context-chip small {
  color: var(--hx-muted);
  font-size: 10px;
  line-height: 1.45;
}

/* Clinical Analysis visual workbench */
.analysis-view-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--hx-border);
}

.analysis-view-tabs button {
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: #fff;
  color: var(--hx-muted);
  cursor: pointer;
}

.analysis-view-tabs button.active {
  border-bottom-color: var(--hx-orange);
  color: var(--hx-ink);
  font-weight: 650;
}

.analysis-dashboard {
  margin-bottom: 16px;
}

.analysis-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 14px;
  border: 1px solid var(--hx-border);
}

.analysis-kpis article {
  display: grid;
  gap: 7px;
  padding: 16px;
  border-right: 1px solid var(--hx-border);
  background: #fff;
}

.analysis-kpis article:last-child {
  border-right: 0;
}

.analysis-kpis span,
.analysis-kpis small {
  color: var(--hx-muted);
  font-size: 10px;
}

.analysis-kpis b {
  font-size: 26px;
  font-weight: 560;
  letter-spacing: -.03em;
}

.analysis-chart-grid,
.analysis-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.analysis-figure {
  min-height: 390px;
  padding: 18px;
  border: 1px solid var(--hx-border);
  background: #fff;
}

.analysis-figure h3 {
  margin: 3px 0 18px;
  font-size: 15px;
}

.waterfall-chart {
  display: flex;
  align-items: flex-start;
  justify-content: space-around;
  height: 260px;
  padding: 16px 12px 0;
  border-bottom: 1px solid var(--hx-ink);
  background: linear-gradient(to bottom, transparent 49.7%, var(--hx-border-soft) 50%, transparent 50.3%);
}

.waterfall-chart button {
  display: grid;
  grid-template-rows: 22px 1fr 42px;
  align-items: end;
  width: 11%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.waterfall-chart button > span,
.waterfall-chart small {
  font-size: 9px;
  text-align: center;
}

.waterfall-chart i {
  align-self: start;
  width: 100%;
  min-height: 18px;
  background: var(--hx-orange);
}

.waterfall-chart button:nth-last-child(-n+2) i {
  background: var(--hx-ink-soft);
}

.waterfall-chart small {
  display: grid;
  gap: 2px;
  padding-top: 6px;
  color: var(--hx-muted);
}

.waterfall-chart small b {
  color: var(--hx-ink);
}

.chart-footnote {
  margin: 11px 0 0;
  color: var(--hx-muted);
  font-size: 10px !important;
}

.km-chart {
  width: 100%;
  height: 265px;
}

.chart-grid path {
  fill: none;
  stroke: #deddd7;
  stroke-width: 1;
}

.km-ci {
  fill: var(--hx-orange-soft);
}

.km-line {
  fill: none;
  stroke: var(--hx-orange-text);
  stroke-width: 3;
}

.km-chart text,
.lifeline-axis text {
  fill: var(--hx-muted);
  font-size: 11px;
}

.risk-table {
  display: grid;
  grid-template-columns: 1fr repeat(4, 48px);
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--hx-border);
  font-size: 10px;
}

.template-spec {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 18px 0;
  border: 1px solid var(--hx-border);
}

.template-spec span {
  display: grid;
  gap: 5px;
  padding: 12px;
  border-right: 1px solid var(--hx-border);
  border-bottom: 1px solid var(--hx-border);
  color: var(--hx-muted);
}

.stacked-visits,
.safety-bars {
  display: grid;
  gap: 16px;
}

.stacked-visits button,
.safety-bars button {
  display: grid;
  grid-template-columns: 120px 1fr 70px;
  align-items: center;
  gap: 12px;
  border: 0;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.stacked-visits i,
.safety-bars i {
  display: flex;
  height: 16px;
  background: var(--hx-border-soft);
}

.stacked-visits i b,
.safety-bars i b {
  background: var(--hx-orange);
}

.stacked-visits i em,
.safety-bars i em {
  display: block;
  background: #efaa86;
}

.stacked-visits i strong {
  display: block;
  background: #bab9b2;
}

.chart-legend {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  color: var(--hx-muted);
  font-size: 10px;
}

.csr-workspace {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  min-height: 330px;
  border: 1px solid var(--hx-border);
}

.csr-workspace aside {
  border-right: 1px solid var(--hx-border);
}

.csr-workspace aside button {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 4px 10px;
  width: 100%;
  padding: 14px;
  border: 0;
  border-bottom: 1px solid var(--hx-border);
  background: #fff;
  text-align: left;
}

.csr-workspace aside span {
  grid-row: 1 / 3;
  color: var(--hx-orange-text);
}

.csr-workspace aside small {
  color: var(--hx-muted);
}

.csr-workspace article {
  padding: 28px;
}

.csr-workspace blockquote {
  margin: 22px 0;
  padding: 14px;
  border-left: 3px solid var(--hx-orange);
  background: #fffaf6;
}

.analysis-template-library {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid var(--hx-border);
}

.analysis-template-library > div:last-child {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.analysis-template-library > div:last-child button {
  display: grid;
  gap: 7px;
  padding: 15px;
  border: 0;
  border-right: 1px solid var(--hx-border);
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.analysis-template-library button span,
.analysis-template-library button small {
  color: var(--hx-muted);
  font-size: 10px;
}

/* Lifeline autonomous intelligence */
.lifeline-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  margin-bottom: 14px;
  border: 1px solid var(--hx-ink);
}

.lifeline-hero > div {
  padding: 28px;
}

.lifeline-hero h2 {
  max-width: 860px;
  margin: 5px 0 12px;
  font-size: clamp(28px, 3vw, 45px);
  line-height: 1.08;
  letter-spacing: -.045em;
}

.lifeline-hero p {
  max-width: 920px;
  color: var(--hx-muted);
  font-size: 14px;
  line-height: 1.7;
}

.lifeline-hero > div > div {
  display: flex;
  gap: 6px;
  margin-top: 22px;
}

.lifeline-hero button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--hx-border);
  background: #fff;
}

.lifeline-hero button.active {
  border-color: var(--hx-orange);
  color: var(--hx-orange-text);
}

.lifeline-hero aside {
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 28px;
  border-left: 1px solid var(--hx-ink);
  background: #fffaf6;
}

.lifeline-hero aside span,
.lifeline-hero aside small,
.lifeline-hero aside em {
  color: var(--hx-muted);
  font-size: 10px;
  font-style: normal;
}

.lifeline-hero aside b {
  color: var(--hx-orange-text);
  font-size: 52px;
  font-weight: 540;
}

.autonomy-loop {
  display: flex;
  align-items: stretch;
  margin-bottom: 14px;
  border: 1px solid var(--hx-border);
}

.autonomy-loop div {
  display: grid;
  flex: 1;
  gap: 5px;
  min-width: 150px;
  padding: 13px;
}

.autonomy-loop span {
  color: var(--hx-orange-text);
  font-size: 9px;
  letter-spacing: .1em;
}

.autonomy-loop i {
  display: grid;
  place-items: center;
  color: var(--hx-orange-text);
  font-style: normal;
}

.lifeline-workbench {
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid var(--hx-border);
  background: #fff;
}

.lifeline-chart-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hx-border);
}

.lifeline-chart-head h3 {
  margin: 2px 0;
}

.lifeline-chart-head > div:last-child {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--hx-muted);
  font-size: 10px;
}

.lifeline-signal-dot {
  width: 8px;
  height: 8px;
  background: var(--hx-orange);
}

.lifeline-signal-dot.expected {
  margin-left: 10px;
  background: var(--hx-orange-soft);
}

.lifeline-chart {
  display: block;
  width: 100%;
  max-height: 470px;
}

.lifeline-envelope {
  fill: url(#lifeEnvelope);
}

.lifeline-expected,
.lifeline-observed,
.lifeline-forecast,
.lifeline-now {
  fill: none;
}

.lifeline-expected {
  stroke: #99988f;
  stroke-width: 2;
  stroke-dasharray: 7 5;
}

.lifeline-observed {
  stroke: var(--hx-ink);
  stroke-width: 3;
}

.lifeline-forecast {
  stroke: var(--hx-orange-text);
  stroke-width: 3;
  stroke-dasharray: 9 6;
}

.lifeline-alert-point {
  fill: var(--hx-orange);
  stroke: #fff;
  stroke-width: 4;
  cursor: pointer;
}

.lifeline-now {
  stroke: var(--hx-orange);
  stroke-width: 1;
  stroke-dasharray: 4 4;
}

.lifeline-now-label {
  fill: var(--hx-orange-text);
  font-size: 10px;
}

.lifeline-measures {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--hx-border);
}

.lifeline-measures button {
  display: grid;
  grid-template-columns: 8px 1fr;
  gap: 3px 9px;
  padding: 12px;
  border: 0;
  border-right: 1px solid var(--hx-border);
  background: #fff;
  text-align: left;
}

.lifeline-measures button.active {
  background: #fffaf6;
}

.lifeline-measures i {
  grid-row: 1 / 3;
  width: 6px;
  height: 6px;
  margin-top: 4px;
  background: var(--hx-orange);
}

.lifeline-measures span {
  color: var(--hx-muted);
  font-size: 10px;
}

.lifeline-lower {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 14px;
}

.lifeline-alerts {
  display: grid;
}

.lifeline-alerts button {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 4px 12px;
  padding: 13px 0;
  border: 0;
  border-bottom: 1px solid var(--hx-border);
  background: #fff;
  text-align: left;
}

.lifeline-alerts span {
  grid-row: 1 / 3;
  color: var(--hx-muted);
  font-size: 9px;
}

.lifeline-alerts span.risk {
  color: var(--hx-critical);
}

.lifeline-alerts small {
  color: var(--hx-muted);
  font-size: 10px;
}

.lifeline-escalation {
  display: flex;
  align-items: center;
  margin: 18px 0;
}

.lifeline-escalation div {
  display: grid;
  flex: 1;
  gap: 4px;
  min-height: 68px;
  padding: 10px;
  border: 1px solid var(--hx-border);
}

.lifeline-escalation div.active {
  border-color: var(--hx-orange);
}

.lifeline-escalation span {
  color: var(--hx-muted);
  font-size: 9px;
}

.lifeline-escalation i {
  padding: 0 5px;
  color: var(--hx-orange-text);
  font-style: normal;
}

.lifeline-foundation {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 14px;
  border: 1px solid var(--hx-border);
}

.lifeline-foundation > p {
  grid-column: 1 / -1;
  padding: 12px;
  border-bottom: 1px solid var(--hx-border);
}

.lifeline-foundation button {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 0;
  border-right: 1px solid var(--hx-border);
  background: #fff;
  text-align: left;
}

.lifeline-foundation span {
  color: var(--hx-muted);
  font-size: 10px;
}

/* Release 13.13 · tenant boundary, intake and document collaboration */
[hidden] {
  display: none !important;
}

.dialog-close {
  position: absolute !important;
  top: 18px;
  right: 18px;
  float: none !important;
  z-index: 12;
  width: 32px;
  height: 32px;
  border: 1px solid var(--hx-border) !important;
  outline: 0 !important;
  box-shadow: none !important;
  font-size: 20px !important;
  line-height: 1;
}

.dialog-close:focus-visible {
  border-color: var(--hx-orange) !important;
  box-shadow: inset 0 0 0 1px var(--hx-orange) !important;
}

#actionDialogBody {
  padding-top: 4px;
}

.tenant-context-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0 0 12px;
  border: 1px solid var(--hx-border);
  background: #fff;
}

.tenant-context-strip > div {
  display: grid;
  gap: 4px;
  min-height: 54px;
  padding: 10px 12px;
  border-right: 1px solid var(--hx-border-soft);
}

.tenant-context-strip > div:last-child {
  border-right: 0;
}

.tenant-context-strip span,
.project-security-contract span {
  color: var(--hx-muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .11em;
}

.tenant-context-strip b {
  font-size: 10px;
}

.project-boundary {
  margin-top: -3px;
  margin-bottom: 16px;
  border-top: 2px solid var(--hx-ink);
}

.information-boundary {
  margin-bottom: 10px;
  border-left: 3px solid var(--hx-orange);
}

.document-launchpad {
  margin: 12px 0;
  padding: 15px;
  border: 1px solid var(--hx-border);
  background: #fff;
}

.cdp-demo-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  padding: 14px 16px;
  border: 1px solid var(--hx-border);
  border-left: 3px solid var(--hx-orange);
  background: #fff;
}

.cdp-demo-entry h3,
.cdp-demo-entry p {
  margin: 3px 0;
}

.cdp-demo-entry-meta {
  display: flex;
  gap: 18px;
  padding: 0 18px;
  border-left: 1px solid var(--hx-border-soft);
  border-right: 1px solid var(--hx-border-soft);
}

.cdp-demo-entry-meta span {
  display: grid;
  min-width: 68px;
  gap: 2px;
  color: var(--hx-muted);
  font-size: 8px;
  line-height: 1.25;
}

.cdp-demo-entry-meta b {
  color: var(--hx-ink);
  font-size: 18px;
}

.doc-portfolio {
  align-items: start;
}

.document-launch-head,
.cdp-panel-head,
.source-intake > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.document-launch-head h3,
.document-launch-head p,
.cdp-panel-head h3,
.cdp-panel-head p,
.source-intake header h2,
.source-intake header p {
  margin: 3px 0;
}

.document-launch-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 18px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--hx-border-soft);
}

.document-launch-grid > div:first-child > button {
  display: grid;
  width: 100%;
  gap: 3px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--hx-border-soft);
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.document-launch-grid button span,
.writing-entry-grid small {
  color: var(--hx-orange-text);
  font-size: 8px;
}

.document-launch-grid button small {
  color: var(--hx-muted);
  font-size: 9px;
}

.writing-entry-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--hx-border);
  border-left: 1px solid var(--hx-border);
}

.writing-entry-grid button {
  display: grid;
  min-height: 62px;
  gap: 5px;
  padding: 10px;
  border: 0;
  border-right: 1px solid var(--hx-border);
  border-bottom: 1px solid var(--hx-border);
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.writing-entry-grid button:hover,
.document-launch-grid > div:first-child > button:hover {
  background: var(--hx-surface-warm);
}

.document-progress-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 12px;
  border: 1px solid var(--hx-border);
  border-top: 2px solid var(--hx-ink);
}

.document-progress-summary > div {
  display: grid;
  gap: 5px;
  padding: 12px;
  border-right: 1px solid var(--hx-border);
}

.document-progress-summary > div:last-child {
  border-right: 0;
}

.document-progress-summary span {
  color: var(--hx-orange-text);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .09em;
}

.document-progress-summary b {
  font-size: 15px;
}

.document-progress-summary small {
  color: var(--hx-muted);
  font-size: 9px;
}

.cdp-demo-workspace {
  display: grid;
  gap: 12px;
}

.cdp-demo-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 13px 15px;
  border: 1px solid var(--hx-border);
  border-top: 2px solid var(--hx-ink);
  background: #fff;
}

.cdp-demo-head > button {
  border: 0;
  background: transparent;
  color: var(--hx-orange-text);
  cursor: pointer;
}

.cdp-demo-head h2,
.cdp-demo-head p {
  margin: 2px 0;
}

.cdp-role-switch {
  display: flex;
  align-items: center;
  gap: 5px;
}

.cdp-role-switch span {
  margin-right: 5px;
  color: var(--hx-muted);
  font-size: 8px;
  letter-spacing: .1em;
}

.cdp-role-switch button,
.cdp-stagebar button {
  border: 1px solid var(--hx-border);
  background: #fff;
  cursor: pointer;
}

.cdp-role-switch button {
  padding: 7px 9px;
}

.cdp-role-switch button.active,
.cdp-stagebar button.active {
  border-color: var(--hx-orange);
  background: var(--hx-surface-warm);
}

.cdp-stagebar {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  overflow-x: auto;
}

.cdp-stagebar button {
  display: grid;
  gap: 3px;
  min-width: 118px;
  min-height: 68px;
  padding: 9px;
  border-right: 0;
  text-align: left;
}

.cdp-stagebar button:last-child {
  border-right: 1px solid var(--hx-border);
}

.cdp-stagebar button.done span {
  color: var(--hx-orange-text);
}

.cdp-stagebar span,
.cdp-stagebar small {
  color: var(--hx-muted);
  font-size: 8px;
}

.cdp-demo-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  border: 1px solid var(--hx-border);
  background: #fff;
}

.cdp-demo-body > main {
  grid-column: 1;
  grid-row: 1;
  width: auto;
  max-width: none;
  margin: 0;
  min-height: 480px;
  padding: 18px;
}

.cdp-demo-body > aside {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  border-left: 1px solid var(--hx-border);
  background: var(--hx-surface-subtle);
}

.cdp-state-summary {
  display: grid;
  border-top: 1px solid var(--hx-border);
}

.cdp-state-summary span {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--hx-border);
  color: var(--hx-muted);
  font-size: 9px;
}

.cdp-spec-table,
.cdp-material-grid,
.cdp-authoring-layout,
.cdp-review-layout,
.cdp-diff,
.cdp-confirm-grid,
.cdp-context-map {
  margin-top: 16px;
}

.cdp-material-grid,
.cdp-review-layout,
.cdp-confirm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.cdp-material-grid button,
.cdp-review-layout article,
.cdp-confirm-grid article,
.cdp-version-card,
.cdp-resolution-list button {
  border: 1px solid var(--hx-border);
  background: #fff;
}

.cdp-material-grid button,
.cdp-resolution-list button {
  display: grid;
  gap: 4px;
  padding: 12px;
  text-align: left;
  cursor: pointer;
}

.cdp-material-grid button.ready {
  border-left: 3px solid var(--hx-orange);
}

.cdp-authoring-layout {
  display: grid;
  grid-template-columns: 190px 1fr 180px;
  border: 1px solid var(--hx-border);
}

.cdp-authoring-layout nav,
.cdp-authoring-layout aside {
  display: grid;
  align-content: start;
  border-right: 1px solid var(--hx-border);
}

.cdp-authoring-layout nav button {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 0;
  border-bottom: 1px solid var(--hx-border-soft);
  background: #fff;
  text-align: left;
}

.cdp-authoring-layout nav button.active {
  border-left: 3px solid var(--hx-orange);
  background: var(--hx-surface-warm);
}

.cdp-authoring-layout article,
.cdp-authoring-layout aside {
  padding: 14px;
}

.cdp-authoring-layout aside {
  gap: 5px;
  border-right: 0;
  border-left: 1px solid var(--hx-border);
}

.cdp-authoring-layout textarea,
.cdp-comment-box textarea {
  width: 100%;
  min-height: 110px;
  padding: 10px;
  border: 1px solid var(--hx-border);
  resize: vertical;
}

.cdp-version-card {
  display: grid;
  grid-template-columns: 1fr 260px auto;
  align-items: center;
  gap: 18px;
  padding: 18px;
}

.cdp-version-card > div:nth-child(2) {
  display: grid;
  gap: 4px;
}

.cdp-version-card button {
  border: 0;
  background: transparent;
  color: var(--hx-orange-text);
}

.cdp-review-layout article,
.cdp-confirm-grid article {
  padding: 14px;
}

.cdp-review-layout footer {
  display: flex;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--hx-border-soft);
  font-size: 9px;
}

.cdp-comment-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 12px;
}

.cdp-comment-box textarea {
  min-height: 60px;
}

.cdp-diff,
.cdp-context-map {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.cdp-diff > div,
.cdp-context-map > div {
  flex: 1;
  padding: 14px;
  border: 1px solid var(--hx-border);
}

.cdp-diff i,
.cdp-context-map i {
  display: grid;
  place-items: center;
  color: var(--hx-orange-text);
  font-style: normal;
}

.cdp-resolution-list {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.cdp-confirm-grid article.confirmed {
  border-left: 3px solid var(--hx-orange);
}

.cdp-confirm-check {
  display: block;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--hx-border);
  background: var(--hx-surface-warm);
}

.source-intake,
.project-setup,
.information-intake {
  display: grid;
  gap: 18px;
}

.intake-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--hx-border);
}

.intake-steps span {
  padding: 9px;
  border-right: 1px solid var(--hx-border);
  color: var(--hx-muted);
  font-size: 9px;
}

.intake-steps span.active {
  color: var(--hx-ink);
  background: var(--hx-surface-warm);
  box-shadow: inset 0 -2px var(--hx-orange);
}

.intake-source-types,
.intake-form-grid,
.intake-protection,
.project-setup-grid,
.project-security-contract {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.intake-source-types button,
.intake-protection article,
.project-security-contract > div {
  display: grid;
  gap: 5px;
  padding: 13px;
  border: 1px solid var(--hx-border);
  background: #fff;
  text-align: left;
}

.intake-source-types button.active {
  border-color: var(--hx-orange);
  background: var(--hx-surface-warm);
}

.intake-file {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 18px;
  border: 1px dashed var(--hx-border-strong);
}

.intake-form-grid label,
.project-setup-grid label {
  display: grid;
  gap: 6px;
  color: var(--hx-muted);
  font-size: 9px;
}

.intake-form-grid input,
.intake-form-grid select,
.project-setup-grid input,
.project-setup-grid select,
.intake-protection select {
  min-height: 38px;
  padding: 8px;
  border: 1px solid var(--hx-border);
  background: #fff;
  color: var(--hx-ink);
}

.intake-manifest dl {
  margin: 0;
  border: 1px solid var(--hx-border);
}

.intake-manifest dl > div {
  display: grid;
  grid-template-columns: 180px 1fr;
  padding: 10px 12px;
  border-bottom: 1px solid var(--hx-border-soft);
}

.intake-manifest dt {
  color: var(--hx-muted);
}

.intake-manifest dd {
  margin: 0;
  font-weight: 600;
}

.source-intake > footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--hx-border);
}

.source-intake > footer span {
  color: var(--hx-muted);
  text-align: center;
  font-size: 9px;
}

.project-setup-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-security-contract {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.project-security-contract > div {
  min-height: 72px;
}

.project-confirm {
  padding: 12px;
  border-left: 3px solid var(--hx-orange);
  background: var(--hx-surface-warm);
}

.operations-horizon {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 10px 0;
  border: 1px solid var(--hx-border);
}

.operations-horizon > div,
.connector-gallery > div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-right: 1px solid var(--hx-border);
}

.operations-horizon span,
.connector-gallery span {
  color: var(--hx-orange-text);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .1em;
}

.operations-gallery-note {
  margin: 9px 0;
  padding: 10px 12px;
  border-left: 3px solid var(--hx-orange);
  background: var(--hx-surface-warm);
}

.connector-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 14px;
  border: 1px solid var(--hx-border);
}

.connector-gallery-head{grid-column:1/-1;display:flex;align-items:start;justify-content:space-between;border-bottom:1px solid var(--hx-border);padding:16px 16px 12px}.connector-gallery-head h3{margin:4px 0 0;font-size:16px}.connector-card{display:grid;gap:9px;align-content:start;min-height:142px!important;border:1px solid var(--hx-border)!important;border-radius:0;background:var(--hx-surface)!important;padding:14px!important;text-align:left;cursor:pointer}.connector-card:hover{border-color:var(--hx-orange)!important;background:var(--hx-surface-warm)!important}.connector-brand{display:flex;align-items:center;gap:9px}.connector-logo{display:grid;place-items:center;width:34px;height:34px;border:1px solid var(--hx-border-strong);background:#161616;color:#fff;font-size:10px;font-weight:700;letter-spacing:-.04em}.connector-brand b{display:block;font-size:10px}.connector-brand small{display:block;margin-top:3px;font-size:7px;color:var(--hx-muted)}.connector-status{font-size:7px;letter-spacing:.1em;color:var(--hx-orange);font-weight:700}.connector-card em{font-size:8px;color:var(--hx-muted);font-style:normal}.connector-action{font-size:8px;color:var(--hx-ink);margin-top:auto}

.connector-gallery > div:nth-child(3n) {
  border-right: 0;
}

.connector-gallery small {
  color: var(--hx-muted);
}

.landscape-commercial {
  border-color: #b8c4d1 !important;
  border-left: 3px solid #526b86 !important;
  background: #f5f8fb !important;
}

.landscape-commercial:hover {
  border-color: #526b86 !important;
  background: #eef3f8 !important;
}

.landscape-commercial > span {
  color: #526b86 !important;
}

.landscape-commercial ol {
  display: grid;
  gap: 5px;
  margin: 8px 0 0;
  padding-left: 16px;
  color: var(--hx-muted);
  font-size: 8px;
  line-height: 1.45;
}

.portal-tabs + .grid {
  gap: 8px;
  margin-bottom: 9px;
}

.portal-tabs + .grid > .card {
  padding: 13px;
}

.portal-tabs + .grid .module-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px 12px;
}

.portal-tabs + .grid .module-grid > div {
  min-width: 0;
  padding: 7px 0;
  border-top: 1px solid var(--hx-border-soft);
}

.portal-tabs + .grid .module-grid p {
  margin: 4px 0 0;
  font-size: 9px;
  line-height: 1.45;
}

.customer-journey,
.tenant-isolation-map {
  margin-bottom: 10px;
}

.journey-lane {
  display: grid;
  grid-template-columns: 150px repeat(11, minmax(78px, 1fr));
  align-items: stretch;
  margin-top: 9px;
  border: 1px solid var(--hx-border);
  background: #fff;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.journey-lane header {
  display: grid;
  align-content: center;
  gap: 4px;
  min-width: 0;
  padding: 13px;
  border-right: 2px solid var(--hx-ink);
}

.journey-lane header span {
  color: var(--hx-orange-text);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .1em;
}

.journey-lane header small,
.journey-lane button small {
  color: var(--hx-muted);
  font-size: 8px;
}

.journey-lane button {
  display: grid;
  align-content: center;
  gap: 4px;
  width: auto;
  min-width: 0;
  padding: 10px;
  border: 0;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.journey-lane button:hover {
  background: var(--hx-surface-warm);
}

.journey-lane button span {
  color: var(--hx-orange-text);
  font-size: 8px;
}

.journey-lane > i {
  display: grid;
  place-items: center;
  width: auto;
  color: var(--hx-orange-text);
  font-style: normal;
}

.user-flow-table-card { margin-top: 10px; }
.user-flow-table-card .table-scroll { max-width: 100%; overflow-x: auto; }
.user-flow-table { min-width: 1180px; }
.user-flow-table th, .user-flow-table td { vertical-align: top; line-height: 1.45; }

.tenant-plane {
  display: flex;
  align-items: stretch;
  margin: 14px 0;
  overflow-x: auto;
}

.tenant-plane > div {
  display: grid;
  flex: 1;
  min-width: 170px;
  gap: 5px;
  padding: 13px;
  border: 1px solid var(--hx-border);
}

.tenant-plane > div span {
  color: var(--hx-orange-text);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .1em;
}

.tenant-plane > div small {
  color: var(--hx-muted);
  font-size: 8px;
}

.tenant-plane > i {
  display: grid;
  place-items: center;
  padding: 0 5px;
  color: var(--hx-orange-text);
  font-style: normal;
}

.confidentiality-rules {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--hx-border);
  border-left: 1px solid var(--hx-border);
}

.confidentiality-rules > div {
  padding: 12px;
  border-right: 1px solid var(--hx-border);
  border-bottom: 1px solid var(--hx-border);
}

.confidentiality-rules p {
  margin: 6px 0 0;
  color: var(--hx-muted);
  font-size: 9px;
  line-height: 1.55;
}

@media (max-width: 1260px) {
  .shell.copilot-docked main {
    margin-right: 0;
  }

  .analysis-chart-grid,
  .analysis-two-col,
  .lifeline-lower,
  .document-launch-grid,
  .cdp-demo-entry,
  .cdp-demo-body,
  .cdp-authoring-layout {
    grid-template-columns: 1fr;
  }

  .cdp-demo-entry-meta {
    padding: 10px 0;
    border: 0;
    border-top: 1px solid var(--hx-border-soft);
    border-bottom: 1px solid var(--hx-border-soft);
  }

  .cdp-demo-body > aside,
  .cdp-authoring-layout aside {
    grid-column: 1;
    grid-row: auto;
    border-top: 1px solid var(--hx-border);
    border-left: 0;
  }
}

@media (max-width: 760px) {
  .copilot {
    inset: 8px !important;
    width: auto !important;
    border: 1px solid var(--hx-border) !important;
  }

  .analysis-kpis,
  .analysis-template-library > div:last-child,
  .lifeline-measures,
  .lifeline-foundation {
    grid-template-columns: 1fr 1fr;
  }

  .lifeline-hero,
  .csr-workspace {
    grid-template-columns: 1fr;
  }

  .lifeline-hero aside,
  .csr-workspace aside {
    border-top: 1px solid var(--hx-border);
    border-left: 0;
    border-right: 0;
  }

  .autonomy-loop,
  .lifeline-escalation,
  .cdp-stagebar {
    overflow-x: auto;
  }

  .tenant-context-strip,
  .writing-entry-grid,
  .document-progress-summary,
  .intake-source-types,
  .intake-form-grid,
  .intake-protection,
  .project-setup-grid,
  .project-security-contract,
  .connector-gallery,
  .operations-horizon,
  .cdp-material-grid,
  .cdp-review-layout,
  .cdp-confirm-grid {
    grid-template-columns: 1fr;
  }

  .confidentiality-rules {
    grid-template-columns: 1fr;
  }

  .tenant-context-strip > div,
  .operations-horizon > div,
  .connector-gallery > div {
    border-right: 0;
    border-bottom: 1px solid var(--hx-border);
  }
}

/* ============================================================
 * Registry shell · adopted 2026-07-13 (cld-upgrade-plan)
 * Dark instrument chrome for top bar + navigation rail.
 * The data plane (main content) remains white for clinical legibility.
 * ============================================================ */
.global-topbar {
  background: var(--hx-shell) !important;
  border-bottom: 1px solid var(--hx-shell-border) !important;
}

.global-topbar .brand-copy strong { color: #ffffff; }
.global-topbar .brand-copy small { color: var(--hx-shell-muted); }

.global-topbar .page-context span,
.global-topbar .context-label { color: var(--hx-shell-faint) !important; }

.global-topbar .page-context h1,
.global-topbar b { color: var(--hx-shell-text) !important; }

.workspace-switcher,
.project-switcher {
  background: transparent !important;
  border: 1px solid transparent !important;
  border-radius: var(--hx-radius-control);
}

.workspace-switcher:hover,
.project-switcher:hover {
  border-color: var(--hx-shell-border) !important;
}

/* Workspace and Project read as quiet text; hover reveals a border */
.project-switcher {
  grid-template-columns: auto auto !important;
  column-gap: 8px;
  width: max-content;
  justify-content: start;
  margin-left: 8px;
}

.workspace-switcher:hover,
.project-switcher:hover { background: var(--hx-shell-raised) !important; }

.global-topbar svg { color: var(--hx-shell-faint); stroke: var(--hx-shell-faint); }

.global-topbar .language-toggle {
  background: transparent;
  border-color: var(--hx-shell-border);
  color: var(--hx-shell-muted);
}

.global-topbar .language-toggle i { color: var(--hx-shell-faint); }
.global-topbar .language-toggle .active { color: #ffffff; }

/* Customer workspace logo sits on a white chip so its own brand colors stay legible */
.global-topbar .workspace-brand-logo {
  background-color: #ffffff !important;
  background-size: 82% !important;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, .14);
}

/* Identity thumbnail is circular */
.avatar {
  background: var(--hx-orange) !important;
  color: #ffffff !important;
  border-radius: 50% !important;
}

.brand-symbol { filter: invert(1) hue-rotate(180deg); }

.rail {
  background: var(--hx-shell) !important;
  border-right: 1px solid var(--hx-shell-border) !important;
}

.nav-group > span,
.nav-group > span small { color: var(--hx-shell-faint) !important; }

.nav-group .nav-btn { color: var(--hx-shell-muted); }
.nav-btn b small { color: var(--hx-shell-faint); }

.nav-group .nav-btn:hover {
  background: rgba(255, 255, 255, .05);
  color: var(--hx-shell-text);
}

.nav-group .nav-btn.active {
  background: var(--hx-shell-active) !important;
  border-left-color: var(--hx-orange) !important;
  color: #ffffff !important;
}

.nav-btn.active b small { color: var(--hx-shell-muted); }
.nav-btn.active i { color: var(--hx-orange) !important; }

.nav-group-prototype { border-top-color: var(--hx-shell-border) !important; }

.nav-group-prototype > span::after {
  border-color: #3a4150;
  color: var(--hx-shell-faint);
}

.copilot-fab {
  background: var(--hx-shell) !important;
  color: #ffffff !important;
  border: 1px solid var(--hx-shell-border) !important;
}

.rail::-webkit-scrollbar-thumb { background: var(--hx-shell-border); }

/* Registry shell · rail collapse + quiet top bar */
.global-topbar .brand { border-right-color: var(--hx-shell-border) !important; }

/* Values speak for themselves — no WORKSPACE / CURRENT PROJECT / CURRENT VIEW eyebrows */
.global-topbar .workspace-switcher b,
.global-topbar .project-switcher b {
  grid-row: 1 / -1;
  align-self: center;
}

.global-topbar .workspace-chevron,
.global-topbar .project-switcher svg {
  grid-row: 1 / -1;
  align-self: center;
}

.global-topbar .context-label,
.global-topbar .page-context { display: none; }

.rail { flex-direction: column; }

.rail nav {
  overflow-y: auto;
  scrollbar-width: thin;
}

/* Brand column and rail form one continuous sidebar */
.global-topbar {
  position: relative;
  grid-template-columns: var(--hx-rail-w) minmax(430px, 520px) minmax(180px, 1fr) auto;
}

.global-topbar .brand {
  background: var(--hx-shell);
  border-right: 0 !important;
  box-shadow: 0 1px 0 var(--hx-shell); /* masks the header hairline under the sidebar column */
}

/* ============================================================
 * Fixed app frame · 2026-07-13
 * Top bar and sidebar are fixed chrome; ONLY the main content
 * pane scrolls. Replaces the earlier sticky-offset scheme.
 * ============================================================ */
html,
body {
  height: 100%;
  overflow: hidden;
}

.shell {
  height: 100vh;
  overflow: hidden;
}

main {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.rail {
  position: relative !important;
  top: 0 !important;
  height: auto !important;
  min-height: 0;
}

/* Sidebar collapse · edge-mounted handle on the rail boundary */
.rail {
  overflow: visible;
}

.rail-toggle {
  position: absolute;
  z-index: 40;
  right: -12px;
  bottom: 176px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--hx-shell-border);
  border-radius: 50% !important;
  background: var(--hx-shell-raised);
  color: var(--hx-shell-muted);
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .35);
}

.rail-toggle:hover {
  background: var(--hx-shell-active);
  color: var(--hx-shell-text);
}

.rail-toggle svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  transition: transform .15s var(--hx-ease);
}

html[data-rail="collapsed"] .rail-toggle svg {
  transform: rotate(180deg);
}

/* Collapsed: 76px icon rail; brand shows the Helix symbol only */
html[data-rail="collapsed"] {
  --hx-rail-w: 76px;
}

html[data-rail="collapsed"] .global-topbar {
  grid-template-columns: var(--hx-rail-w) minmax(400px, 520px) minmax(100px, 1fr) auto;
}

html[data-rail="collapsed"] .global-topbar .brand {
  justify-content: center;
  padding: 0;
}

html[data-rail="collapsed"] .global-topbar .brand-copy,
html[data-rail="collapsed"] .nav-group > span,
html[data-rail="collapsed"] .nav-btn b {
  display: none;
}

html[data-rail="collapsed"] .rail {
  padding-right: 10px;
  padding-left: 10px;
}

html[data-rail="collapsed"] .nav-group .nav-btn {
  grid-template-columns: 1fr;
  justify-items: center;
  padding: 8px;
}

/* Product Landscape · balanced rails and readable density on wide screens */
.landscape-canvas {
  grid-template-columns: minmax(200px, 250px) minmax(480px, 1.8fr) minmax(300px, 1fr) !important;
}

.landscape-canvas button > span { font-size: 9px; }
.landscape-canvas h4 { font-size: 14px; }
.landscape-canvas p { font-size: 11px; }
.landscape-canvas small { font-size: 10px; }
.landscape-domains i { font-size: 9px; }
.landscape-ops b { font-size: 9px; }
.landscape-foot { font-size: 10px; }
.landscape-foot button { font-size: 10px; }

/* Interactive Prototype · consistent spacing between flow modules */
customer-demo .demo-principles { margin: var(--hx-space-4) 0; }
customer-demo .demo-stepper { margin-bottom: var(--hx-space-4); }
customer-demo .demo-subhead { margin-top: var(--hx-space-5) !important; }
customer-demo .demo-disclaimer { margin: var(--hx-space-3) 0 var(--hx-space-5); }
customer-demo .demo-panel { margin-top: var(--hx-space-2); }
