:root {
  --bg: #eef2f5;
  --panel: rgba(255, 255, 255, 0.98);
  --panel-strong: #ffffff;
  --ink: #1a2b3c;
  --muted: #607284;
  --line: rgba(24, 50, 74, 0.12);
  --blue: #2e5d8a;
  --blue-deep: #153756;
  --blue-soft: #e8eef3;
  --mint: #d8efe7;
  --accent: #b58a2d;
  --rose: #f6e7e3;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  --radius-xl: 10px;
  --radius-lg: 8px;
  --radius-md: 8px;
  --radius-sm: 6px;
  --success: #2d8b68;
  --warning: #b27115;
  --danger: #c15050;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Public Sans", sans-serif;
  color: var(--ink);
  background: #eef2f5;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.shell {
  max-width: 1360px;
  margin: 0 auto;
  padding: 20px 24px 28px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 12px 0 14px;
  border-bottom: 1px solid rgba(24, 50, 74, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: white;
  background: #173a59;
  box-shadow: 0 1px 2px rgba(23, 58, 89, 0.18);
}

.brand-text strong,
.logo-word {
  display: block;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
}

.brand-text span {
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-link {
  padding: 8px 10px;
  border-radius: 6px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--blue-deep);
  background: #fff;
  border-color: rgba(24, 50, 74, 0.08);
  box-shadow: none;
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: stretch;
  padding: 26px 0 18px;
}

.panel {
  background: var(--panel);
  border: 1px solid rgba(24, 50, 74, 0.08);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero-copy,
.hero-side,
.content-card,
.table-card,
.metric-card,
.timeline-card,
.form-card,
.empty-card {
  padding: 28px;
}

.hero-copy,
.hero-side {
  padding: 16px 0;
}

.hero-copy-wide {
  max-width: 860px;
  margin: 0;
  width: 100%;
  text-align: left;
}

.hero-minimal {
  gap: 0;
}

.hero-copy-wide .hero-actions {
  justify-content: flex-start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--blue-soft);
  color: var(--blue-deep);
  font-size: 0.88rem;
  font-weight: 500;
}

.hero h1,
.page-title {
  margin: 16px 0 12px;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: clamp(2.5rem, 4vw, 4.7rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 600;
}

.lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.72;
  font-weight: 400;
  max-width: 36rem;
}

.hero-strapline {
  margin-top: 14px;
  font-size: 0.9rem;
  line-height: 1.65;
}

.hero-credibility {
  margin: 28px 0 0;
  color: #728495;
  font-size: 0.8rem;
  line-height: 1.6;
  max-width: 36rem;
}

.hero-actions,
.toolbar,
.detail-actions,
.sub-actions,
.segment {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 26px;
}

.button,
.ghost-button,
.action-button,
.mini-button {
  border: 1px solid rgba(24, 50, 74, 0.12);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.button,
.ghost-button,
.action-button {
  padding: 13px 18px;
  font-weight: 500;
}

.button {
  color: white;
  background: var(--blue-deep);
  box-shadow: none;
  border-color: var(--blue-deep);
}

.button:hover,
.ghost-button:hover,
.action-button:hover,
.mini-button:hover {
  transform: none;
}

.ghost-button {
  color: var(--blue-deep);
  background: white;
  border: 1px solid rgba(24, 50, 74, 0.12);
}

.mini-button {
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  border: 1px solid var(--line);
}

.problem-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.problem-item,
.feature-card,
.metric-card,
.insight-item,
.summary-chip {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(24, 50, 74, 0.08);
  border-radius: 8px;
}

.problem-item {
  padding: 14px 16px;
  font-weight: 700;
}

.demo-card-header,
.row-meta,
.card-row,
.info-grid,
.title-row,
.modal-footer,
.status-line,
.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.demo-card-header strong,
.label,
.data-table th,
.summary-chip strong,
.metric-card strong,
.section-title {
  font-family: "IBM Plex Sans", sans-serif;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.82rem;
  line-height: 1.2;
  font-weight: 500;
  background: rgba(24, 50, 74, 0.06);
  color: #4f6273;
  border: 1px solid rgba(24, 50, 74, 0.08);
  white-space: nowrap;
}

.status-awaiting-review {
  background: rgba(24, 50, 74, 0.06);
  color: #4f6273;
}

.status-accepted-for-admission {
  background: rgba(24, 50, 74, 0.06);
  color: #4f6273;
}

.status-awaiting-gp-update {
  background: rgba(24, 50, 74, 0.06);
  color: #4f6273;
}

.status-pending-specialty-transfer {
  background: rgba(24, 50, 74, 0.06);
  color: #4f6273;
}

.status-red-flag-pathway-activated {
  background: rgba(193, 80, 80, 0.13);
  color: #8e4545;
  border-color: rgba(193, 80, 80, 0.18);
}

.status-awaiting-arrival,
.status-patient-arrived,
.status-scheduled-review {
  background: rgba(24, 50, 74, 0.06);
  color: #4f6273;
}

.status-advice-given {
  background: rgba(24, 50, 74, 0.06);
  color: #4f6273;
}

.status-closed {
  background: rgba(24, 50, 74, 0.06);
  color: #4f6273;
}

.status-cancelled {
  background: rgba(24, 50, 74, 0.06);
  color: #4f6273;
}

.feature-grid,
.metrics-grid,
.insight-grid,
.summary-grid,
.detail-grid,
.audit-layout {
  display: grid;
  gap: 18px;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 14px;
}

.feature-card {
  padding: 18px;
}

.feature-icon {
  margin-bottom: 12px;
  color: #657788;
  font-size: 1rem;
  line-height: 1;
}

.feature-card h3 {
  margin: 0;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.98rem;
  line-height: 1.45;
  font-weight: 500;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-header {
  margin: 14px 0 14px;
}

.section-title {
  margin: 0 0 6px;
  font-size: 1.32rem;
  font-weight: 500;
}

.home-section {
  margin-top: 34px;
}

.problem-grid,
.solution-grid {
  margin-top: 10px;
}

.problem-card,
.solution-card {
  background: rgba(255, 255, 255, 0.72);
  border: none;
  box-shadow: none;
}

.problem-card {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  align-items: start;
}

.problem-card .feature-icon {
  margin: 2px 0 0;
  color: rgba(24, 50, 74, 0.55);
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.solution-card {
  padding: 18px;
  border-radius: 8px;
}

.hero-structured {
  grid-template-columns: 1.2fr 0.8fr;
  align-items: end;
  gap: 36px;
}

.hero-side-panel {
  padding: 18px;
  border: 1px solid rgba(24, 50, 74, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
}

.home-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 26px;
  align-items: start;
}

.solution-card h3 {
  margin: 0 0 8px;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 1rem;
  font-weight: 500;
}

.solution-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.operational-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr) 28px minmax(0, 1.2fr) 28px minmax(0, 1fr) 28px minmax(0, 0.9fr);
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

.flow-step {
  min-height: 118px;
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 16px;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 8px;
  border: 1px solid rgba(24, 50, 74, 0.08);
}

.flow-step p,
.flow-status,
.flow-meta {
  margin: 0;
}

.flow-time {
  color: var(--muted);
  font-size: 0.8rem;
}

.flow-step p {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.95rem;
  line-height: 1.42;
  font-weight: 500;
}

.flow-status,
.flow-meta {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.flow-step-emphasis {
  background: rgba(246, 248, 251, 0.92);
}

.flow-arrow {
  color: rgba(24, 50, 74, 0.44);
  text-align: center;
  font-size: 1.1rem;
}

.section-subtitle {
  margin: 0;
  color: var(--muted);
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 22px;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.dashboard-main {
  min-width: 0;
}

.ops-sidebar {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(24, 50, 74, 0.08);
  border-radius: 8px;
  padding: 16px;
}

.ops-sidebar-title {
  margin-bottom: 10px;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--blue-deep);
}

.ops-sidebar-links {
  display: grid;
  gap: 6px;
}

.ops-sidebar-link {
  display: block;
  padding: 9px 10px;
  border-radius: 6px;
  color: var(--muted);
  border: 1px solid transparent;
}

.ops-sidebar-link.active,
.ops-sidebar-link:hover {
  color: var(--ink);
  background: #f6f8fa;
  border-color: rgba(24, 50, 74, 0.08);
}

.page-header-split {
  align-items: flex-start;
}

.page-header-main {
  flex: 1 1 420px;
  min-width: 0;
}

.page-header-side {
  flex: 1 1 520px;
  min-width: 0;
  display: flex;
  justify-content: flex-end;
}

.page-title {
  margin: 6px 0 8px;
  font-size: clamp(2rem, 3vw, 3.3rem);
}

.page-intro {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.summary-grid-ops {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.summary-chip {
  padding: 18px;
}

.summary-chip strong {
  display: block;
  font-size: 1.45rem;
  line-height: 1.1;
  font-weight: 600;
}

.summary-chip span {
  display: block;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.45;
}

.summary-chip strong,
.metric-card strong {
  color: var(--blue-deep);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 16px;
}

.filter-chip {
  border: 1px solid rgba(24, 50, 74, 0.09);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--muted);
  padding: 9px 14px;
  font-weight: 600;
  cursor: pointer;
}

.filter-chip.active {
  background: #fff;
  color: var(--blue-deep);
  box-shadow: 0 8px 18px rgba(32, 89, 201, 0.08);
}

.table-card {
  overflow: auto;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(24, 50, 74, 0.08);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

.data-table-wide {
  min-width: 1280px;
}

.data-table th {
  padding: 0 0 14px;
  text-align: left;
  font-size: 0.84rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  font-weight: 500;
}

.data-table td {
  padding: 18px 0;
  border-top: 1px solid rgba(24, 50, 74, 0.07);
  vertical-align: top;
}

.status-cell {
  width: 220px;
}

.table-row {
  cursor: pointer;
}

.table-row:hover td {
  background: rgba(245, 248, 252, 0.72);
}

.cell-stack {
  display: grid;
  gap: 4px;
}

.cell-stack strong {
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 500;
}

.cell-stack span,
.inline-note,
.muted,
.timeline-meta,
.hint {
  color: var(--muted);
}

.mini-label {
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.specialty-primary {
  font-weight: 500;
}

.specialty-box {
  width: 100%;
  padding: 0;
  text-align: left;
  background: transparent;
  border: none;
  color: inherit;
}

.specialty-meta {
  font-size: 0.82rem;
}

.reason-preview {
  color: var(--muted);
  line-height: 1.55;
  font-weight: 400;
  max-width: 38ch;
}

.status-stack {
  display: grid;
  gap: 5px;
  align-content: start;
  justify-items: start;
  max-width: 210px;
}

.status-subtext {
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.4;
  padding-left: 2px;
}

.waiting-pill {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(24, 50, 74, 0.06);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
}

.waiting-neutral {
  background: rgba(24, 50, 74, 0.07);
  color: #546575;
}

.waiting-amber {
  background: rgba(216, 170, 58, 0.16);
  color: #8a6518;
}

.waiting-red {
  background: rgba(193, 80, 80, 0.13);
  color: #9f5151;
}

.waiting-red-flag {
  background: rgba(193, 80, 80, 0.16);
  color: #8e4545;
}

.waiting-stack {
  display: grid;
  gap: 5px;
}

.waiting-caption {
  color: var(--muted);
  font-size: 0.78rem;
}

.detail-grid {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
}

.content-card,
.timeline-card,
.form-card,
.empty-card {
  background: var(--panel);
  border: 1px solid rgba(24, 50, 74, 0.08);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.info-grid {
  align-items: start;
}

.info-grid + .info-grid {
  margin-top: 18px;
}

.label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: var(--muted);
}

.value {
  font-size: 1.02rem;
  line-height: 1.6;
}

.pathway-summary {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(246, 248, 251, 0.95);
  border: 1px solid rgba(24, 50, 74, 0.06);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 400;
}

.red-flag-panel,
.instruction-panel,
.guidance-panel,
.support-panel,
.patient-status-card {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 8px;
  background: rgba(246, 248, 251, 0.96);
  border: 1px solid rgba(24, 50, 74, 0.06);
}

.red-flag-panel {
  background: rgba(193, 80, 80, 0.08);
  border-color: rgba(193, 80, 80, 0.14);
}

.red-flag-panel strong,
.instruction-copy,
.patient-status-copy {
  display: block;
  font-family: "IBM Plex Sans", sans-serif;
}

.red-flag-panel span,
.red-flag-panel small {
  display: block;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.5;
}

.instruction-copy {
  font-size: 0.96rem;
  line-height: 1.55;
}

.guidance-list,
.choice-list {
  display: grid;
  gap: 10px;
}

.guidance-item,
.choice-item {
  display: grid;
  gap: 4px;
  color: var(--ink);
  font-size: 0.92rem;
}

.choice-item {
  grid-template-columns: 18px 1fr;
  align-items: start;
}

.choice-item input {
  margin-top: 3px;
}

.guidance-item small {
  color: var(--muted);
  font-size: 0.8rem;
}

.patient-status-copy {
  font-size: 1.08rem;
  line-height: 1.4;
  font-weight: 500;
}

.status-patient-view {
  background: rgba(24, 50, 74, 0.06);
  color: var(--ink);
}

.pathway-row td {
  padding: 0 0 16px;
  border-top: none;
}

.pathway-history {
  margin: -2px 0 2px;
  padding: 14px 18px 16px;
  border-radius: 8px;
  background: rgba(246, 248, 251, 0.9);
}

.pathway-event {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  padding: 7px 0;
}

.pathway-time {
  color: var(--muted);
  font-size: 0.82rem;
}

.pathway-text {
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.5;
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline-item {
  position: relative;
  padding: 14px 14px 14px 24px;
  border-radius: 8px;
  border: 1px solid rgba(24, 50, 74, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--accent));
}

.timeline-item::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 20px;
  bottom: -18px;
  width: 2px;
  background: rgba(63, 140, 255, 0.12);
}

.timeline-item:last-child::after {
  display: none;
}

.timeline-item strong {
  display: block;
  margin-bottom: 4px;
  font-weight: 500;
  line-height: 1.5;
}

.timeline-kind {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(24, 50, 74, 0.06);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.timeline-gp {
  border-left: 3px solid rgba(47, 111, 214, 0.22);
}

.timeline-specialty {
  border-left: 3px solid rgba(24, 50, 74, 0.14);
}

.timeline-redirect {
  border-left: 3px solid rgba(93, 82, 144, 0.26);
}

.timeline-close {
  border-left: 3px solid rgba(51, 108, 88, 0.26);
}

.timeline-red-flag {
  border-left: 3px solid rgba(193, 80, 80, 0.22);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 15px;
  border-radius: 8px;
  border: 1px solid rgba(18, 48, 74, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}

.field textarea {
  min-height: 160px;
  resize: vertical;
}

.helper {
  font-size: 0.9rem;
  color: var(--muted);
}

.saved-note {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  margin-bottom: 10px;
  border-radius: 8px;
  background: rgba(244, 247, 251, 0.95);
  border: 1px solid rgba(24, 50, 74, 0.08);
}

.saved-note strong {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.96rem;
  font-weight: 600;
}

.saved-note span {
  color: var(--ink);
  line-height: 1.55;
}

.saved-note small {
  color: var(--muted);
  font-size: 0.84rem;
}

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

.action-button {
  min-height: 86px;
  text-align: left;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(18, 48, 74, 0.1);
}

.action-primary {
  background: linear-gradient(180deg, rgba(232, 240, 251, 0.94), rgba(255, 255, 255, 0.98));
  border-color: rgba(47, 111, 214, 0.18);
}

.action-secondary {
  background: rgba(248, 250, 252, 0.97);
}

.action-tertiary {
  background: rgba(255, 255, 255, 0.92);
}

.action-button strong {
  display: block;
  margin-bottom: 6px;
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 600;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  padding: 20px;
  display: grid;
  place-items: center;
  background: rgba(18, 48, 74, 0.35);
  backdrop-filter: blur(6px);
  z-index: 20;
}

.modal {
  width: min(100%, 620px);
  background: #fff;
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 12px 30px rgba(18, 48, 74, 0.12);
  border: 1px solid rgba(24, 50, 74, 0.08);
}

.modal h3 {
  margin: 0 0 8px;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 1.7rem;
}

.modal p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.6;
}

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

.metric-card {
  padding: 20px;
}

.metric-card strong {
  display: block;
  margin-top: 10px;
  font-size: 1.7rem;
  font-weight: 600;
}

.metric-card span {
  color: var(--muted);
}

.alert-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid rgba(24, 50, 74, 0.08);
  background: rgba(255, 255, 255, 0.78);
  margin-bottom: 14px;
}

.alert-card strong {
  font-family: "IBM Plex Sans", sans-serif;
}

.delay-list {
  display: grid;
  gap: 10px;
}

.delay-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.96);
  border: 1px solid rgba(24, 50, 74, 0.08);
}

.delay-item strong {
  font-family: "IBM Plex Sans", sans-serif;
  flex: 1;
}

.delay-item span {
  color: var(--muted);
}

.ok-text {
  color: #335c4b;
}

.watch-text {
  color: #8a6518;
}

.alert-text {
  color: #9f5151;
}

.audit-layout {
  grid-template-columns: 1.1fr 0.9fr;
  margin-top: 18px;
}

.audit-layout-secondary {
  margin-top: 14px;
}

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

.insight-item {
  padding: 18px;
}

.insight-item strong {
  display: block;
  font-family: "IBM Plex Sans", sans-serif;
  margin-bottom: 8px;
}

.footer {
  margin-top: 28px;
  padding: 18px 0 6px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.segmented {
  display: inline-flex;
  width: 100%;
  padding: 5px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(18, 48, 74, 0.08);
  justify-content: flex-start;
  flex-wrap: wrap;
}

.segment-button {
  border: none;
  padding: 9px 14px;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 600;
}

.segment-button.active {
  background: #fff;
  color: var(--blue-deep);
  box-shadow: 0 8px 18px rgba(32, 89, 201, 0.08);
}

.empty-card {
  text-align: center;
}

.empty-card h3 {
  margin: 10px 0 8px;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 1.5rem;
}

body[data-page-tone="professional"] {
  background: #eef2f5;
}

body[data-page-tone="professional"] .shell {
  max-width: 1280px;
}

body[data-page-tone="professional"] .nav {
  margin-bottom: 18px;
}

body[data-page-tone="professional"] .nav-link {
  padding: 8px 10px;
  background: transparent;
}

body[data-page-tone="professional"] .page-header {
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(24, 50, 74, 0.08);
}

body[data-page-tone="professional"] .page-header-side {
  align-self: stretch;
}

body[data-page-tone="professional"] .page-title {
  margin: 4px 0 6px;
  font-size: clamp(1.8rem, 2.6vw, 2.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

body[data-page-tone="professional"] .eyebrow {
  padding: 6px 10px;
  font-size: 0.8rem;
}

body[data-page-tone="professional"] .summary-grid {
  gap: 14px;
  margin-bottom: 14px;
}

body[data-page-tone="professional"] .summary-chip,
body[data-page-tone="professional"] .metric-card,
body[data-page-tone="professional"] .insight-item {
  border-radius: 8px;
  padding: 16px;
}

body[data-page-tone="professional"] .summary-chip strong,
body[data-page-tone="professional"] .metric-card strong {
  font-size: 1.35rem;
}

body[data-page-tone="professional"] .table-card,
body[data-page-tone="professional"] .content-card,
body[data-page-tone="professional"] .timeline-card,
body[data-page-tone="professional"] .form-card {
  border-radius: 8px;
}

body[data-page-tone="professional"] .table-card {
  padding: 20px 24px;
}

body[data-page-tone="professional"] .data-table th {
  padding-bottom: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

body[data-page-tone="professional"] .data-table td {
  padding: 16px 0;
}

body[data-page-tone="professional"] .cell-stack {
  gap: 2px;
}

body[data-page-tone="professional"] .cell-stack strong {
  font-size: 0.96rem;
}

body[data-page-tone="professional"] .status-badge {
  padding: 6px 10px;
  font-size: 0.8rem;
}

body[data-page-tone="professional"] .status-stack {
  max-width: 200px;
}

body[data-page-tone="professional"] .status-subtext {
  font-size: 0.8rem;
  line-height: 1.35;
}

body[data-page-tone="professional"] .waiting-pill {
  padding: 5px 9px;
  font-size: 0.8rem;
}

body[data-page-tone="professional"] .detail-grid,
body[data-page-tone="professional"] .audit-layout {
  gap: 16px;
}

body[data-page-tone="professional"] .content-card,
body[data-page-tone="professional"] .timeline-card,
body[data-page-tone="professional"] .form-card,
body[data-page-tone="professional"] .empty-card {
  padding: 24px;
}

body[data-page-tone="professional"] .info-grid + .info-grid {
  margin-top: 14px;
}

body[data-page-tone="professional"] .label {
  margin-bottom: 4px;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

body[data-page-tone="professional"] .value {
  font-size: 0.98rem;
  line-height: 1.55;
}

body[data-page-tone="professional"] .saved-note {
  gap: 3px;
  padding: 11px 12px;
  margin-bottom: 8px;
}

body[data-page-tone="professional"] .field input,
body[data-page-tone="professional"] .field select,
body[data-page-tone="professional"] .field textarea {
  padding: 12px 14px;
  border-radius: 14px;
}

body[data-page-tone="professional"] .field textarea {
  min-height: 140px;
}

body[data-page-tone="professional"] .action-grid {
  gap: 10px;
}

body[data-page-tone="professional"] .action-button {
  min-height: 78px;
  padding: 14px 16px;
}

body[data-page-tone="professional"] .section-header {
  margin: 24px 0 14px;
}

body[data-page-tone="professional"] .section-title {
  font-size: 1.2rem;
}

@media (max-width: 1080px) {
  .hero,
  .hero-structured,
  .home-grid,
  .dashboard-layout,
  .detail-grid,
  .audit-layout,
  .feature-grid,
  .metrics-grid,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .solution-grid,
  .operational-flow {
    grid-template-columns: 1fr;
  }

  .insight-grid,
  .action-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-side {
    padding: 12px 0;
  }

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

@media (max-width: 760px) {
  .shell {
    padding: 14px;
  }

  .nav,
  .page-header,
  .info-grid,
  .footer-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-layout {
    gap: 14px;
  }

  .ops-sidebar {
    padding: 12px;
  }

  .page-header-side {
    justify-content: flex-start;
  }

  .status-cell {
    width: 190px;
  }

  .status-stack {
    max-width: 180px;
  }

  .nav-links {
    width: 100%;
    gap: 6px;
  }

  .nav-link {
    text-align: center;
    flex: 1 1 120px;
    font-size: 0.88rem;
  }

  .hero-copy,
  .hero-side,
  .content-card,
  .table-card,
  .metric-card,
  .timeline-card,
  .form-card {
    padding: 22px;
  }

  .data-table,
  .data-table-wide {
    min-width: 0;
    width: 100%;
  }

  .flow-arrow {
    transform: rotate(90deg);
  }

  .data-table thead {
    display: none;
  }

  .data-table tbody,
  .data-table tr,
  .data-table td {
    display: block;
    width: 100%;
  }

  .data-table tr {
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid rgba(24, 50, 74, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.98);
  }

  .table-row:hover td {
    background: transparent;
  }

  .data-table td {
    padding: 8px 0;
    border-top: none;
  }

  .data-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .pathway-row td::before {
    content: none;
  }

  .pathway-row td {
    padding: 0;
  }

  .status-cell,
  .status-stack {
    width: auto;
    max-width: none;
  }

  .detail-actions,
  .hero-actions,
  .sub-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button,
  .ghost-button {
    width: 100%;
    text-align: center;
  }
}
