:root {
  color-scheme: light;
  --bg: #f5f9fc;
  --surface: #ffffff;
  --surface-strong: #eef7fd;
  --ink: #22333f;
  --muted: #657583;
  --line: rgba(34, 51, 63, 0.14);
  --primary: #0060c0;
  --primary-strong: #004c99;
  --accent: #00b0e8;
  --accent-strong: #008fc4;
  --warning: #b87518;
  --success: #1d8f69;
  --danger: #c85043;
  --info: #1976d2;
  --soft-blue: #eaf6ff;
  --soft-cyan: #e8fbff;
  --shadow: 0 20px 56px rgba(21, 40, 55, 0.14);
  --shadow-soft: 0 10px 30px rgba(21, 40, 55, 0.08);
  --radius: 8px;
  --radius-sm: 6px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(0, 176, 232, 0.11), rgba(245, 249, 252, 0) 390px),
    linear-gradient(90deg, rgba(0, 96, 192, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(34, 51, 63, 0.045) 1px, transparent 1px),
    var(--bg);
  background-size: auto, 42px 42px, 42px 42px, auto;
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

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

button {
  cursor: pointer;
}

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

:focus-visible {
  outline: 3px solid rgba(0, 176, 232, 0.38);
  outline-offset: 2px;
}

.site-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0;
  background: rgba(246, 247, 244, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.98rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.topbar-actions,
.intro-actions,
.hero-actions,
.filter-row,
.toolbar-row,
.form-row,
.quick-actions,
.insurance-row,
.view-tabs,
.hero-proof-strip,
.stack-list,
.footer-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ghost-link,
.primary-link,
.secondary-link,
.chip-button,
.icon-button,
.card-action,
.tab-button,
.quick-reply,
.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 9px 13px;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.primary-link,
.submit-button {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(12, 124, 104, 0.2);
}

.primary-link:hover,
.submit-button:hover {
  background: var(--primary-strong);
  transform: translateY(-1px);
}

.secondary-link,
.ghost-link,
.chip-button,
.tab-button,
.quick-reply,
.icon-button {
  background: rgba(255, 255, 255, 0.78);
  border-color: var(--line);
  color: var(--ink);
}

.secondary-link:hover,
.ghost-link:hover,
.chip-button:hover,
.tab-button:hover,
.quick-reply:hover,
.icon-button:hover {
  border-color: rgba(12, 124, 104, 0.4);
  color: var(--primary-strong);
}

.large {
  min-height: 46px;
  padding: 12px 16px;
}

.lucide {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
  flex: 0 0 auto;
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 28px;
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  padding: 46px 0 38px;
}

.intro-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--primary-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  font-size: clamp(2.35rem, 6vw, 4.8rem);
}

h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
}

h3 {
  font-size: 1.05rem;
}

.intro-copy > p:not(.eyebrow),
.snapshot p,
.section-heading p,
.industry-card p,
.method-grid p {
  color: var(--muted);
}

.intro-copy > p:not(.eyebrow) {
  max-width: 680px;
  margin: 18px 0 0;
  font-size: 1.08rem;
}

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

.snapshot {
  align-self: end;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  padding: 18px;
}

.snapshot-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.snapshot-row span {
  color: var(--muted);
}

.snapshot-row strong {
  text-align: right;
}

.progress-track {
  height: 10px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4e8de;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.section-band {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
}

.section-band.compact {
  padding-top: 28px;
}

.demos-page .section-band {
  padding-right: clamp(18px, 3vw, 34px);
  padding-left: clamp(18px, 3vw, 34px);
}

.demos-hero {
  padding-top: 92px;
  padding-bottom: 28px;
}

.demos-hero h1 {
  max-width: none;
  font-size: clamp(2.2rem, 4vw, 3.7rem);
}

.demos-hero .section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(340px, 0.85fr);
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}

.demos-hero .section-heading > p {
  max-width: 480px;
  margin: 0;
}

.demos-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.section-heading p {
  margin: 8px 0 0;
}

.chip-button.active,
.tab-button.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}

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

.industry-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(35, 40, 38, 0.08);
}

.industry-card[hidden] {
  display: none;
}

.industry-card img {
  width: 100%;
  height: 154px;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.demos-catalog-grid .industry-card img {
  height: 176px;
}

.industry-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}

.status-pill {
  width: max-content;
  max-width: 100%;
  border-radius: 999px;
  background: #f3eadf;
  color: #7a4c12;
  padding: 5px 9px;
  font-size: 0.75rem;
  font-weight: 800;
}

.status-pill.ready {
  background: #def0e5;
  color: #23633b;
}

.card-action {
  width: max-content;
  max-width: 100%;
  margin-top: 4px;
  background: var(--ink);
  color: #ffffff;
}

.card-action:hover {
  transform: translateY(-1px);
}

.card-action.disabled {
  background: #f0f1ee;
  color: #79827c;
}

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

.method-grid article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
  padding: 18px;
}

.method-grid .lucide {
  margin-bottom: 14px;
  color: var(--primary);
}

.landing-site {
  background:
    linear-gradient(180deg, rgba(0, 176, 232, 0.1), rgba(245, 249, 252, 0) 560px),
    linear-gradient(90deg, rgba(0, 96, 192, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(34, 51, 63, 0.045) 1px, transparent 1px),
    var(--bg);
  background-size: auto, 42px 42px, 42px 42px, auto;
}

.landing-hero {
  position: relative;
  min-height: min(760px, calc(100vh - 84px));
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(16, 30, 42, 0.9), rgba(16, 30, 42, 0.6) 44%, rgba(0, 96, 192, 0.22)),
    linear-gradient(180deg, rgba(0, 176, 232, 0.18), transparent 66%),
    url("../img/landing-hero.webp") center/cover;
  color: #ffffff;
}

.landing-hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, rgba(245, 249, 252, 0.98));
  pointer-events: none;
  content: "";
}

.landing-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: end;
  width: min(1240px, calc(100% - 32px));
  min-height: inherit;
  margin: 0 auto;
  padding: 88px 0 118px;
}

.landing-hero-copy {
  max-width: 860px;
}

.landing-hero .eyebrow {
  color: #84e8ff;
}

.landing-hero h1 {
  max-width: 980px;
  font-size: clamp(3.1rem, 8vw, 7.3rem);
}

.landing-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 2.2vw, 1.28rem);
}

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

.hero-proof-strip {
  max-width: 880px;
  margin-top: 28px;
}

.hero-proof-strip span,
.stack-list span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 7px 11px;
  font-size: 0.84rem;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.service-section .section-heading > p,
.automation-copy > p,
.cta-inner p {
  color: var(--muted);
}

.service-section .section-heading > p {
  max-width: 480px;
  margin: 0;
  align-self: center;
  text-align: left;
}

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

.service-card,
.automation-card,
.process-step,
.proof-item,
.diagnostic-panel,
.diagnostic-result,
.contact-card {
  min-width: 0;
  border: 1px solid rgba(34, 51, 63, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
  transition:
    transform 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease;
}

.service-card,
.automation-card,
.process-step {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.service-button {
  position: relative;
  align-content: start;
  min-height: 170px;
  text-align: left;
  cursor: pointer;
}

.service-button p {
  padding-right: 52px;
}

.service-button::after {
  position: absolute;
  right: 18px;
  bottom: 16px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(0, 176, 232, 0.22);
  border-radius: 999px;
  background: rgba(235, 248, 255, 0.86);
  color: var(--primary);
  font-size: 1rem;
  font-weight: 900;
  content: "+";
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.service-button:hover::after,
.service-button:focus-visible::after {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #ffffff;
  transform: rotate(90deg);
}

.service-button:focus-visible {
  border-color: rgba(0, 176, 232, 0.54);
  box-shadow: 0 0 0 4px rgba(0, 176, 232, 0.14), var(--shadow-soft);
}

.service-card h3 {
  padding-right: 38px;
}

.service-card:hover,
.automation-card:hover,
.process-step:hover,
.proof-item:hover,
.diagnostic-panel:hover,
.diagnostic-result:hover,
.contact-card:hover {
  border-color: rgba(0, 176, 232, 0.28);
  box-shadow: 0 18px 38px rgba(21, 40, 55, 0.12);
  transform: translateY(-2px);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(0, 96, 192, 0.2);
}

.service-card p,
.automation-card p,
.process-step p {
  margin: 0;
  color: var(--muted);
}

.section-actions {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.service-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 27, 36, 0.46);
  backdrop-filter: blur(14px);
}

.service-modal-backdrop:not([hidden]) {
  display: flex;
}

.service-modal-card {
  position: relative;
  width: min(680px, 100%);
  min-width: 0;
  max-height: min(720px, calc(100vh - 48px));
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(235, 248, 255, 0.96)),
    #ffffff;
  box-shadow: 0 30px 90px rgba(0, 24, 44, 0.28);
  padding: 28px;
}

.service-modal-card > * {
  max-width: 100%;
}

.service-modal-card .modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
}

.service-modal-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 46px;
}

.service-modal-card > p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.service-modal-list {
  display: grid;
  gap: 10px;
  margin: 20px 0;
  padding: 0;
  list-style: none;
}

.service-modal-list li {
  position: relative;
  padding: 12px 12px 12px 38px;
  border: 1px solid rgba(34, 51, 63, 0.1);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
  font-weight: 700;
}

.service-modal-list li::before {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 0 0 4px rgba(0, 176, 232, 0.12);
  content: "";
}

.service-modal-outcome {
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  background: rgba(235, 248, 255, 0.82);
  color: var(--ink);
  padding: 14px 16px;
  font-weight: 800;
}

.modal-open {
  overflow: hidden;
}

.proof-section {
  padding-top: 18px;
  padding-bottom: 18px;
}

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

.proof-item {
  display: grid;
  gap: 4px;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(0, 176, 232, 0.08), transparent 48%),
    rgba(255, 255, 255, 0.82);
}

.proof-item strong {
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1;
}

.proof-item span {
  color: var(--muted);
  font-weight: 800;
}

.automation-section {
  position: relative;
}

.automation-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  gap: 26px;
  align-items: center;
}

.automation-copy {
  max-width: 660px;
}

.automation-copy h2 {
  max-width: 720px;
}

.automation-copy > p {
  margin: 14px 0 0;
  font-size: 1.02rem;
}

.stack-list {
  margin-top: 20px;
}

.stack-list span {
  border-color: rgba(0, 176, 232, 0.22);
  background: #ffffff;
  color: var(--primary);
  box-shadow: var(--shadow-soft);
}

.diagnostic-section {
  padding-top: 38px;
}

.diagnostic-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 0.58fr);
  gap: 16px;
  align-items: stretch;
}

.diagnostic-panel,
.diagnostic-result {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.diagnostic-option {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 74px;
  border: 1px solid rgba(34, 51, 63, 0.12);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(90deg, rgba(234, 246, 255, 0.52), rgba(255, 255, 255, 0.86));
  color: var(--ink);
  padding: 12px;
  text-align: left;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.diagnostic-option .lucide {
  color: var(--primary);
}

.diagnostic-option strong,
.diagnostic-option small {
  display: block;
}

.diagnostic-option small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 650;
}

.diagnostic-option:hover,
.diagnostic-option.active {
  border-color: rgba(0, 176, 232, 0.38);
  background:
    linear-gradient(90deg, rgba(0, 96, 192, 0.1), rgba(0, 176, 232, 0.11)),
    #ffffff;
  box-shadow: 0 12px 28px rgba(0, 96, 192, 0.1);
  transform: translateX(2px);
}

.diagnostic-result {
  align-content: start;
  background:
    linear-gradient(135deg, rgba(0, 96, 192, 0.08), transparent 46%),
    linear-gradient(315deg, rgba(0, 176, 232, 0.08), transparent 56%),
    rgba(255, 255, 255, 0.88);
}

.diagnostic-result-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.diagnostic-result h3 {
  font-size: clamp(1.35rem, 2.6vw, 2rem);
}

.diagnostic-result p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}

.diagnostic-list {
  display: grid;
  gap: 8px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.diagnostic-list li {
  position: relative;
  min-height: 30px;
  border: 1px solid rgba(0, 176, 232, 0.14);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.7);
  padding: 7px 10px 7px 32px;
  color: #385466;
  font-weight: 750;
}

.diagnostic-list li::before {
  position: absolute;
  left: 11px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  transform: translateY(-50%);
  content: "";
}

.automation-flow {
  display: grid;
  grid-template-columns: 1fr 54px 1fr 54px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 210px;
  border: 1px solid rgba(0, 176, 232, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(34, 51, 63, 0.96), rgba(0, 96, 192, 0.78)),
    var(--ink);
  box-shadow: var(--shadow);
  padding: 22px;
  color: #ffffff;
}

.flow-node {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 118px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  text-align: center;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.flow-node .lucide {
  width: 26px;
  height: 26px;
  color: #84e8ff;
}

.flow-line {
  position: relative;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(132, 232, 255, 0.2), rgba(132, 232, 255, 0.95));
}

.flow-line::after {
  position: absolute;
  right: -2px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-top: 2px solid #84e8ff;
  border-right: 2px solid #84e8ff;
  transform: translateY(-50%) rotate(45deg);
  content: "";
}

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

.automation-card .lucide {
  color: var(--primary);
}

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

.process-step {
  position: relative;
  overflow: hidden;
}

.process-step::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 74px;
  height: 74px;
  background: radial-gradient(circle, rgba(0, 176, 232, 0.18), transparent 68%);
  content: "";
}

.process-step > * {
  position: relative;
  z-index: 1;
}

.process-step span {
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 900;
}

.cta-band {
  position: relative;
  margin: 24px auto 0;
  padding: 64px 16px;
  background:
    linear-gradient(135deg, rgba(34, 51, 63, 0.96), rgba(0, 96, 192, 0.82)),
    var(--ink);
  color: #ffffff;
}

.cta-inner {
  display: grid;
  grid-template-columns: minmax(180px, 0.32fr) minmax(0, 0.68fr);
  gap: 36px;
  align-items: center;
  width: min(1100px, 100%);
  margin: 0 auto;
}

.cta-inner img {
  width: min(260px, 100%);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
}

.cta-inner .eyebrow {
  color: #84e8ff;
}

.cta-inner h2 {
  max-width: 780px;
}

.cta-inner p {
  max-width: 760px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.84);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(280px, 1.36fr) minmax(0, 0.82fr);
  gap: 10px;
  margin-top: 22px;
}

.contact-card {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  padding: 12px;
  box-shadow: none;
}

.contact-card:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.contact-card .lucide {
  color: #84e8ff;
}

.social-glyph {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(132, 232, 255, 0.14);
  color: #84e8ff;
  font-weight: 900;
}

.contact-card strong,
.contact-card small {
  display: block;
}

.contact-card small {
  max-width: 100%;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(0.68rem, 0.72vw, 0.79rem);
  font-weight: 700;
  letter-spacing: 0;
  overflow-wrap: normal;
  white-space: nowrap;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 34px;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer > span {
  color: var(--ink);
  font-weight: 900;
}

.footer-links a {
  font-weight: 800;
}

.footer-links a:hover {
  color: var(--primary);
}

.app-layout {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  min-height: 100vh;
  background: #f4f6f1;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: #ffffff;
  padding: 20px;
}

.sidebar .brand {
  margin-bottom: 24px;
}

.side-nav {
  display: grid;
  gap: 8px;
}

.side-label {
  margin: 18px 0 8px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: #404843;
  padding: 10px 11px;
  text-align: left;
  font-weight: 700;
}

.nav-button:hover,
.nav-button.active {
  background: var(--surface-strong);
  color: var(--primary-strong);
}

.sidebar-note {
  margin-top: 24px;
  border: 1px solid #edd8bd;
  border-radius: var(--radius);
  background: #fff7ed;
  padding: 14px;
  color: #715025;
  font-size: 0.9rem;
}

.app-main {
  min-width: 0;
  padding: 20px;
}

.app-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

.app-title h1 {
  font-size: clamp(1.65rem, 3.6vw, 3rem);
}

.app-title p {
  max-width: 820px;
  margin: 8px 0 0;
  color: var(--muted);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.medical-hero {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(31, 39, 36, 0.9), rgba(31, 39, 36, 0.45)),
    url("../img/medical-hero.webp") center/cover;
  color: #ffffff;
}

.medical-hero-content {
  display: grid;
  align-content: end;
  min-height: inherit;
  max-width: 780px;
  padding: 30px;
}

.medical-hero .eyebrow {
  color: #b9eadf;
}

.medical-hero h2 {
  font-size: clamp(1.65rem, 4vw, 3.3rem);
}

.medical-hero p {
  max-width: 660px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.86);
}

.industry-hero {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border: 1px solid rgba(0, 176, 232, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(31, 39, 36, 0.9), rgba(31, 39, 36, 0.48)),
    var(--demo-hero-image) center/cover;
  color: #ffffff;
  box-shadow: var(--shadow);
}

.industry-hero::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 96, 192, 0.3), transparent 46%),
    linear-gradient(180deg, transparent 50%, rgba(0, 176, 232, 0.18));
  pointer-events: none;
  content: "";
}

.industry-hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: end;
  min-height: inherit;
  max-width: 820px;
  padding: 30px;
}

.industry-hero .eyebrow {
  color: #b9f0ff;
}

.industry-hero h2 {
  font-size: clamp(1.65rem, 4vw, 3.25rem);
}

.industry-hero p {
  max-width: 680px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.86);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.metric-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 16px;
  box-shadow: 0 8px 22px rgba(35, 40, 38, 0.06);
}

.metric-card span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.metric-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.85rem;
  line-height: 1;
}

.metric-card small {
  display: block;
  margin-top: 7px;
  color: var(--success);
  font-weight: 700;
}

.view-tabs {
  position: sticky;
  top: 0;
  z-index: 12;
  margin: 10px 0 16px;
  padding: 10px 0;
  background: rgba(244, 246, 241, 0.92);
  backdrop-filter: blur(12px);
}

.view-panel {
  display: none;
}

.view-panel.active {
  display: block;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 16px;
}

.wide-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.5fr);
  gap: 16px;
}

.module-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 18px;
  box-shadow: 0 8px 22px rgba(35, 40, 38, 0.06);
}

.module-panel h2 {
  font-size: 1.35rem;
}

.module-panel h3 {
  font-size: 1rem;
}

.module-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.module-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.appointment-list,
.record-list,
.timeline,
.chat-stream,
.patient-list,
.insurance-list {
  display: grid;
  gap: 10px;
}

.appointment-item,
.record-item,
.timeline-item,
.patient-item,
.insurance-item {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fbfcfa;
  padding: 12px;
}

.appointment-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.record-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.record-item.selected {
  border-color: rgba(0, 176, 232, 0.38);
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(0, 96, 192, 0.1);
}

.record-select {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  text-align: left;
}

.record-avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #eaf6ff, #e8fbff);
  color: var(--primary);
  font-weight: 900;
}

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

.record-main strong,
.record-main span,
.record-main em {
  display: block;
}

.record-main span,
.record-main em {
  color: var(--muted);
  font-size: 0.86rem;
}

.record-main em {
  margin-top: 2px;
  font-style: normal;
}

.time-pill {
  display: grid;
  place-items: center;
  min-height: 42px;
  border-radius: var(--radius-sm);
  background: #e5f2ed;
  color: var(--primary-strong);
  font-weight: 800;
}

.appointment-item strong,
.patient-item strong,
.insurance-item strong {
  display: block;
}

.appointment-item span,
.patient-item span,
.insurance-item span,
.timeline-item span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
}

.tag {
  width: max-content;
  max-width: 100%;
  border-radius: 999px;
  background: #edf0f2;
  color: #47515a;
  padding: 5px 8px;
  font-size: 0.75rem;
  font-weight: 800;
}

.tag.urgent {
  background: #fde6df;
  color: #943b28;
}

.tag.ok {
  background: #def0e5;
  color: #23633b;
}

.tag.waiting {
  background: #fff1d7;
  color: #80550e;
}

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

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

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

.form-field label {
  color: #38403b;
  font-size: 0.86rem;
  font-weight: 800;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--ink);
  padding: 11px 12px;
}

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

.nested-fields {
  gap: 14px 16px;
}

.patient-card {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}

.patient-avatar {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: var(--radius);
  background: #dcefe9;
  color: var(--primary-strong);
  font-size: 1.25rem;
  font-weight: 900;
}

.patient-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}

.patient-meta div {
  border-top: 1px solid var(--line);
  min-height: 58px;
  padding-top: 12px;
}

.patient-meta span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.patient-meta strong {
  display: block;
  font-size: 0.92rem;
}

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

.kanban-column {
  min-width: 0;
  border: 1px solid rgba(34, 51, 63, 0.12);
  border-radius: var(--radius);
  background: rgba(244, 249, 253, 0.7);
  padding: 10px;
}

.kanban-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.kanban-head strong {
  font-size: 0.9rem;
}

.kanban-head span {
  display: grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--primary);
  font-weight: 900;
}

.kanban-list,
.task-list,
.catalog-grid {
  display: grid;
  gap: 10px;
}

.kanban-card {
  display: grid;
  gap: 4px;
  width: 100%;
  border: 1px solid rgba(34, 51, 63, 0.1);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: inherit;
  padding: 10px;
  text-align: left;
  box-shadow: 0 8px 18px rgba(21, 40, 55, 0.04);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.kanban-card:hover {
  border-color: rgba(0, 176, 232, 0.34);
  box-shadow: 0 12px 26px rgba(21, 40, 55, 0.1);
  transform: translateY(-1px);
}

.kanban-card span,
.kanban-card small {
  color: var(--muted);
}

.task-item,
.catalog-card {
  min-width: 0;
  border: 1px solid rgba(34, 51, 63, 0.12);
  border-radius: var(--radius-sm);
  background: #ffffff;
  padding: 12px;
  box-shadow: 0 6px 18px rgba(21, 40, 55, 0.04);
}

.task-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.task-item strong,
.task-item span,
.catalog-card strong,
.catalog-card p,
.catalog-card small {
  display: block;
}

.task-item span,
.catalog-card p,
.catalog-card small {
  color: var(--muted);
}

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

.catalog-card {
  display: grid;
  gap: 8px;
}

.catalog-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.catalog-card p {
  margin: 0;
}

.empty-state.compact {
  padding: 12px;
  font-size: 0.86rem;
}

.report-layout {
  align-items: start;
}

.report-dashboard {
  overflow: hidden;
}

.report-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.report-toolbar span,
.report-recipient {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  border: 1px solid rgba(0, 176, 232, 0.18);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(243, 250, 255, 0.96), rgba(255, 255, 255, 0.92));
  color: #405365;
  padding: 9px 11px;
  font-size: 0.85rem;
  font-weight: 800;
}

.report-toolbar .lucide {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

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

.report-card {
  position: relative;
  display: grid;
  min-width: 0;
  gap: 10px;
  overflow: hidden;
  border: 1px solid rgba(34, 51, 63, 0.12);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 250, 255, 0.95));
  padding: 14px;
  box-shadow: 0 12px 28px rgba(21, 40, 55, 0.06);
}

.report-card::after {
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  content: "";
}

.report-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.report-card-head span,
.report-card-head small {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: #405365;
  font-size: 0.82rem;
  font-weight: 900;
}

.report-card-head small {
  justify-content: flex-end;
  color: var(--muted);
  text-align: right;
}

.report-card strong {
  color: var(--ink);
  font-size: 1.85rem;
  line-height: 1;
}

.report-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.mini-chart {
  display: flex;
  align-items: end;
  gap: 7px;
  height: 84px;
  border: 1px solid rgba(0, 176, 232, 0.12);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(180deg, rgba(0, 176, 232, 0.06), rgba(255, 255, 255, 0.92));
  padding: 10px;
}

.mini-chart span {
  flex: 1;
  min-height: 14px;
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, var(--accent), var(--primary));
  box-shadow: 0 8px 16px rgba(0, 96, 192, 0.14);
}

.report-recipient {
  justify-content: space-between;
  margin-bottom: 12px;
}

.report-recipient span {
  color: var(--muted);
}

.delivery-stack,
.report-log {
  display: grid;
  gap: 10px;
}

.delivery-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  border: 1px solid rgba(34, 51, 63, 0.12);
  border-radius: var(--radius-sm);
  background: #ffffff;
  padding: 12px;
  box-shadow: 0 8px 20px rgba(21, 40, 55, 0.04);
}

.delivery-card > .lucide {
  width: 20px;
  height: 20px;
  color: var(--primary);
}

.delivery-card strong,
.delivery-card span {
  display: block;
}

.delivery-card span {
  color: var(--muted);
  font-size: 0.86rem;
}

.delivery-card em {
  font-style: normal;
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
}

.report-actions > * {
  flex: 1 1 auto;
  justify-content: center;
}

.report-log {
  border-top: 1px solid rgba(34, 51, 63, 0.1);
  padding-top: 12px;
}

.report-log-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.report-log-item > span {
  border-radius: 999px;
  background: #eaf6ff;
  color: var(--primary);
  padding: 5px 8px;
  text-align: center;
  font-size: 0.76rem;
  font-weight: 900;
}

.report-log-item strong,
.report-log-item small {
  display: block;
}

.report-log-item small {
  color: var(--muted);
}

.reporting-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 22px;
  align-items: center;
  margin-top: 26px;
  border: 1px solid rgba(0, 176, 232, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(235, 249, 255, 0.9)),
    linear-gradient(90deg, rgba(0, 96, 192, 0.08), transparent);
  padding: 22px;
  box-shadow: 0 18px 46px rgba(21, 40, 55, 0.08);
}

.reporting-copy h3 {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
}

.reporting-copy p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}

.landing-report-grid {
  align-items: stretch;
}

.landing-delivery-card {
  align-self: stretch;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: #ffffff;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

th {
  background: #f1f4ee;
  color: #414a45;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

.chat-box {
  display: grid;
  grid-template-rows: auto minmax(220px, 1fr) auto;
  min-height: 520px;
}

.chat-stream {
  overflow-y: auto;
  align-content: start;
  max-height: 380px;
  padding-right: 4px;
}

.message {
  max-width: 88%;
  border-radius: var(--radius);
  padding: 11px 12px;
}

.message.bot {
  justify-self: start;
  background: #eef5f1;
}

.message.user {
  justify-self: end;
  background: var(--primary);
  color: #ffffff;
}

.chat-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 14px;
}

.chat-input-row input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 11px;
}

.empty-state {
  border: 1px dashed #c8d4ce;
  border-radius: var(--radius);
  background: #fbfcfa;
  color: var(--muted);
  padding: 18px;
  text-align: center;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: none;
  max-width: min(420px, calc(100% - 36px));
  border: 1px solid rgba(12, 124, 104, 0.22);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
  box-shadow: var(--shadow);
  padding: 13px 15px;
  font-weight: 700;
}

.toast.show {
  display: block;
}

.brand-logo-frame {
  display: grid;
  place-items: center;
  width: 86px;
  height: 48px;
  flex: 0 0 86px;
  overflow: hidden;
  border: 1px solid rgba(34, 51, 63, 0.1);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.brand-logo {
  width: 76px;
  height: 42px;
  object-fit: contain;
}

.topbar {
  width: min(1240px, calc(100% - 32px));
  border-bottom: 1px solid rgba(34, 51, 63, 0.08);
  background: rgba(245, 249, 252, 0.82);
}

.topbar::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 176, 232, 0.55), transparent);
  content: "";
}

.landing-site .topbar {
  width: 100%;
  margin: 0;
  padding: 12px clamp(18px, 4vw, 48px);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.94), rgba(235, 247, 255, 0.88)),
    rgba(245, 249, 252, 0.92);
  box-shadow: 0 12px 36px rgba(21, 40, 55, 0.1);
}

.landing-site .topbar::after {
  right: clamp(18px, 4vw, 48px);
  left: clamp(18px, 4vw, 48px);
}

.landing-site .topbar-actions {
  justify-content: flex-end;
}

.brand strong {
  color: var(--ink);
}

.brand small {
  color: #6d7f8e;
}

.primary-link,
.submit-button {
  position: relative;
  overflow: hidden;
  border-color: rgba(0, 176, 232, 0.12);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 16px 34px rgba(0, 96, 192, 0.22);
}

.primary-link::before,
.submit-button::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.24) 42%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 520ms ease;
  content: "";
}

.primary-link:hover::before,
.submit-button:hover::before {
  transform: translateX(120%);
}

.primary-link > *,
.submit-button > * {
  position: relative;
  z-index: 1;
}

.primary-link:hover,
.submit-button:hover {
  background: linear-gradient(135deg, var(--primary-strong), var(--accent-strong));
  box-shadow: 0 18px 38px rgba(0, 96, 192, 0.28);
}

.secondary-link,
.ghost-link,
.chip-button,
.tab-button,
.quick-reply,
.icon-button {
  background: rgba(255, 255, 255, 0.76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
}

.quick-reply {
  white-space: normal;
  text-align: left;
}

.secondary-link:hover,
.ghost-link:hover,
.chip-button:hover,
.tab-button:hover,
.quick-reply:hover,
.icon-button:hover {
  border-color: rgba(0, 176, 232, 0.48);
  color: var(--primary);
  box-shadow: 0 10px 24px rgba(21, 40, 55, 0.08);
  transform: translateY(-1px);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown summary,
.feature-disclosure summary,
.sidebar-disclosure summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  padding: 9px 12px;
  font-weight: 800;
  line-height: 1.1;
  list-style: none;
  user-select: none;
  cursor: pointer;
}

.nav-dropdown summary::-webkit-details-marker,
.feature-disclosure summary::-webkit-details-marker,
.sidebar-disclosure summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown[open] summary,
.feature-disclosure[open] summary,
.sidebar-disclosure[open] summary {
  border-color: rgba(0, 176, 232, 0.46);
  color: var(--primary);
  box-shadow: 0 12px 28px rgba(21, 40, 55, 0.1);
}

.nav-dropdown summary .lucide:last-child,
.feature-disclosure summary .lucide,
.sidebar-disclosure summary .lucide {
  transition: transform 180ms ease;
}

.nav-dropdown[open] summary .lucide:last-child,
.feature-disclosure[open] summary .lucide,
.sidebar-disclosure[open] summary .lucide {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 30;
  display: grid;
  min-width: 230px;
  border: 1px solid rgba(34, 51, 63, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  padding: 8px;
  animation: dropdownIn 180ms ease both;
  backdrop-filter: blur(18px);
}

.nav-dropdown:not([open]) .dropdown-menu {
  display: none;
}

.dropdown-menu span,
.dropdown-menu a,
.dropdown-menu button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 38px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: #394a58;
  padding: 9px 10px;
  text-align: left;
  font-weight: 750;
}

.dropdown-menu button:hover,
.dropdown-menu a:hover,
.dropdown-menu span:hover {
  background: var(--soft-blue);
  color: var(--primary);
}

.compact-menu {
  min-width: 220px;
}

.trust-strip,
.pulse-list,
.command-bar,
.hero-workflow {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.trust-strip {
  margin-top: 22px;
}

.trust-strip span,
.pulse-list span,
.command-bar div,
.hero-workflow span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  border: 1px solid rgba(0, 176, 232, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #385466;
  padding: 7px 11px;
  font-size: 0.84rem;
  font-weight: 800;
}

.intro-band,
.section-band {
  width: min(1240px, calc(100% - 32px));
}

.intro-copy,
.landing-hero-copy,
.demos-hero,
.snapshot,
.industry-card,
.service-card,
.service-modal-card,
.proof-item,
.automation-copy,
.automation-flow,
.automation-card,
.diagnostic-panel,
.diagnostic-result,
.process-step,
.cta-inner,
.contact-card,
.method-grid article,
.module-panel,
.metric-card,
.medical-hero,
.industry-hero,
.command-bar {
  animation: fadeLift 520ms ease both;
}

.gsap-ready .intro-copy,
.gsap-ready .landing-hero-copy,
.gsap-ready .demos-hero,
.gsap-ready .snapshot,
.gsap-ready .industry-card,
.gsap-ready .service-card,
.gsap-ready .service-modal-card,
.gsap-ready .proof-item,
.gsap-ready .automation-copy,
.gsap-ready .automation-flow,
.gsap-ready .automation-card,
.gsap-ready .diagnostic-panel,
.gsap-ready .diagnostic-result,
.gsap-ready .process-step,
.gsap-ready .cta-inner,
.gsap-ready .contact-card,
.gsap-ready .method-grid article,
.gsap-ready .module-panel,
.gsap-ready .metric-card,
.gsap-ready .medical-hero,
.gsap-ready .industry-hero,
.gsap-ready .command-bar {
  animation: none;
}

.intro-copy {
  animation-delay: 40ms;
}

.snapshot {
  animation-delay: 110ms;
}

.industry-card:nth-child(2),
.metric-card:nth-child(2) {
  animation-delay: 70ms;
}

.industry-card:nth-child(3),
.metric-card:nth-child(3) {
  animation-delay: 120ms;
}

.industry-card:nth-child(4),
.metric-card:nth-child(4) {
  animation-delay: 170ms;
}

.snapshot.command-surface {
  position: relative;
  overflow: hidden;
  border-color: rgba(0, 176, 232, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(240, 248, 253, 0.88)),
    #ffffff;
}

.snapshot.command-surface::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(0, 96, 192, 0.08), transparent 42%),
    linear-gradient(315deg, rgba(0, 176, 232, 0.1), transparent 50%);
  pointer-events: none;
  content: "";
}

.snapshot.command-surface > * {
  position: relative;
  z-index: 1;
}

.window-bar {
  display: flex;
  gap: 7px;
  margin-bottom: 16px;
}

.window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #d6e3ec;
}

.window-bar span:nth-child(1) {
  background: #ff735c;
}

.window-bar span:nth-child(2) {
  background: #ffbe4c;
}

.window-bar span:nth-child(3) {
  background: #37c77f;
}

.snapshot-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.snapshot-brand img {
  width: 170px;
  max-height: 72px;
  object-fit: contain;
}

.pulse-list {
  display: grid;
  margin-top: 15px;
}

.pulse-list span {
  width: 100%;
  justify-content: flex-start;
  background: rgba(255, 255, 255, 0.72);
}

.progress-track {
  background: #ddebf5;
}

.progress-track span {
  position: relative;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  animation: progressGlow 2400ms ease-in-out infinite;
}

.industry-card {
  position: relative;
  isolation: isolate;
  border-color: rgba(34, 51, 63, 0.12);
  box-shadow: var(--shadow-soft);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.industry-card::after {
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
  content: "";
}

.industry-card:hover {
  border-color: rgba(0, 176, 232, 0.34);
  box-shadow: 0 22px 44px rgba(21, 40, 55, 0.15);
  transform: translateY(-4px);
}

.industry-card:hover::after {
  transform: scaleX(1);
}

.industry-card img {
  filter: saturate(0.95) contrast(1.04);
  transition: transform 420ms ease, filter 420ms ease;
}

.industry-card:hover img {
  filter: saturate(1.08) contrast(1.05);
  transform: scale(1.035);
}

.feature-disclosure {
  display: grid;
  gap: 8px;
  margin-top: auto;
}

.feature-disclosure summary {
  justify-content: space-between;
  width: 100%;
  min-height: 34px;
  padding: 7px 10px;
  font-size: 0.82rem;
}

.feature-disclosure ul {
  display: grid;
  gap: 6px;
  margin: 0;
  border-left: 2px solid rgba(0, 176, 232, 0.35);
  padding: 0 0 0 13px;
  color: var(--muted);
  font-size: 0.88rem;
}

.feature-disclosure li {
  padding-left: 2px;
}

.method-grid article,
.module-panel,
.metric-card {
  border-color: rgba(34, 51, 63, 0.12);
  box-shadow: var(--shadow-soft);
  transition:
    transform 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease;
}

.method-grid article:hover,
.module-panel:hover,
.metric-card:hover {
  border-color: rgba(0, 176, 232, 0.28);
  box-shadow: 0 18px 38px rgba(21, 40, 55, 0.12);
  transform: translateY(-2px);
}

.method-grid .lucide,
.metric-card .lucide {
  color: var(--primary);
}

.app-layout {
  background:
    linear-gradient(180deg, rgba(0, 176, 232, 0.1), transparent 420px),
    #f5f9fc;
}

.sidebar {
  border-right-color: rgba(34, 51, 63, 0.1);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 10px 0 34px rgba(21, 40, 55, 0.06);
  backdrop-filter: blur(20px);
}

.sidebar .brand {
  align-items: flex-start;
}

.sidebar .brand-logo-frame {
  width: 92px;
  height: 54px;
}

.sidebar .brand-logo {
  width: 82px;
  height: 48px;
}

.nav-button {
  position: relative;
  overflow: hidden;
  transition:
    transform 160ms ease,
    background 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.nav-button::before {
  position: absolute;
  inset: 8px auto 8px 0;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  transform: scaleY(0);
  transition: transform 160ms ease;
  content: "";
}

.nav-button:hover,
.nav-button.active {
  background: linear-gradient(90deg, rgba(0, 176, 232, 0.13), rgba(234, 246, 255, 0.58));
  color: var(--primary);
  transform: translateX(2px);
}

.nav-button.active::before {
  transform: scaleY(1);
}

.sidebar-note {
  border-color: rgba(0, 176, 232, 0.24);
  background: linear-gradient(180deg, #f3fbff, #ffffff);
  color: #375667;
}

.sidebar-disclosure {
  margin-top: 12px;
}

.sidebar-disclosure summary {
  justify-content: space-between;
  width: 100%;
}

.sidebar-disclosure p {
  margin: 8px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--muted);
  padding: 12px;
  font-size: 0.9rem;
  animation: dropdownIn 180ms ease both;
}

.command-bar {
  justify-content: space-between;
  margin-bottom: 16px;
  border: 1px solid rgba(0, 176, 232, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
  padding: 12px;
  backdrop-filter: blur(14px);
}

.command-bar div {
  border-color: transparent;
  background: transparent;
  padding: 4px 6px;
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #2bd682;
  box-shadow: 0 0 0 0 rgba(43, 214, 130, 0.48);
  animation: livePulse 1800ms ease-out infinite;
}

.medical-hero {
  min-height: 340px;
  border: 1px solid rgba(0, 176, 232, 0.18);
  box-shadow: var(--shadow);
}

.medical-hero::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 96, 192, 0.3), transparent 46%),
    linear-gradient(180deg, transparent 50%, rgba(0, 176, 232, 0.18));
  pointer-events: none;
  content: "";
}

.medical-hero-content {
  position: relative;
  z-index: 1;
}

.hero-workflow {
  margin-top: 22px;
}

.hero-workflow span {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  backdrop-filter: blur(10px);
}

.metric-card {
  position: relative;
  overflow: hidden;
}

.metric-card::after {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 58px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0.46;
  content: "";
}

.view-tabs {
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.view-tabs::-webkit-scrollbar {
  display: none;
}

.tab-button.active {
  background: linear-gradient(135deg, var(--ink), #344b5b);
  border-color: rgba(34, 51, 63, 0.14);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(34, 51, 63, 0.18);
}

.view-panel.active {
  animation: panelIn 280ms ease both;
}

.appointment-item,
.record-item,
.timeline-item,
.patient-item,
.insurance-item {
  position: relative;
  border-color: rgba(34, 51, 63, 0.11);
  box-shadow: 0 6px 18px rgba(21, 40, 55, 0.04);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.appointment-item:hover,
.record-item:hover,
.timeline-item:hover,
.patient-item:hover,
.insurance-item:hover {
  border-color: rgba(0, 176, 232, 0.28);
  background: #ffffff;
  transform: translateY(-1px);
}

.time-pill {
  background: linear-gradient(135deg, #eaf6ff, #e8fbff);
  color: var(--primary);
}

.tag {
  background: #edf4f9;
  color: #405365;
}

.tag.urgent {
  background: #ffe7e2;
  color: #92382d;
}

.tag.ok {
  background: #ddf7ed;
  color: #17664c;
}

.tag.waiting {
  background: #fff1cf;
  color: #7c520b;
}

.row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 132px;
}

.row-menu-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(34, 51, 63, 0.14);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 251, 255, 0.94));
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(21, 40, 55, 0.06);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.row-menu-button:hover,
.row-menu-button[aria-expanded="true"] {
  border-color: rgba(0, 176, 232, 0.5);
  color: var(--primary);
  box-shadow: 0 12px 24px rgba(0, 96, 192, 0.14);
  transform: translateY(-1px);
}

.floating-row-menu {
  position: fixed;
  z-index: 999;
  display: grid;
  min-width: 248px;
  overflow: hidden;
  border: 1px solid rgba(0, 176, 232, 0.28);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 249, 255, 0.98));
  box-shadow: 0 24px 70px rgba(21, 40, 55, 0.22);
  padding: 8px;
  backdrop-filter: blur(20px);
}

.floating-row-menu::before {
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  content: "";
}

.floating-menu-head {
  display: grid;
  gap: 2px;
  margin: 8px 8px 6px;
  border-bottom: 1px solid rgba(34, 51, 63, 0.1);
  padding-bottom: 10px;
}

.floating-menu-head strong {
  color: var(--ink);
  font-size: 0.94rem;
}

.floating-menu-head span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.floating-row-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: #34495a;
  padding: 10px;
  text-align: left;
  font-weight: 800;
  transition:
    background 150ms ease,
    color 150ms ease,
    transform 150ms ease;
}

.floating-row-menu button:hover,
.floating-row-menu button:focus-visible {
  background: linear-gradient(90deg, rgba(0, 96, 192, 0.1), rgba(0, 176, 232, 0.12));
  color: var(--primary);
  transform: translateX(2px);
}

.floating-row-menu button:disabled {
  background: rgba(34, 51, 63, 0.05);
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.72;
  transform: none;
}

.spotlight-surface {
  position: relative;
  overflow: hidden;
}

.spotlight-surface > * {
  position: relative;
  z-index: 1;
}

.spotlight-surface::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(
    180px circle at var(--spotlight-x, 50%) var(--spotlight-y, 50%),
    rgba(0, 176, 232, 0.15),
    transparent 44%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  content: "";
}

.spotlight-surface:hover::before {
  opacity: 1;
}

.form-field input,
.form-field select,
.form-field textarea,
.chat-input-row input {
  border-color: rgba(34, 51, 63, 0.16);
  background-color: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

.form-field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--primary) 50%),
    linear-gradient(135deg, var(--primary) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 18px,
    calc(100% - 12px) 18px;
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus,
.chat-input-row input:focus {
  border-color: rgba(0, 176, 232, 0.56);
  box-shadow: 0 0 0 4px rgba(0, 176, 232, 0.12);
  transform: translateY(-1px);
}

.patient-avatar {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(0, 96, 192, 0.2);
}

th {
  background: linear-gradient(180deg, #f4f9fd, #edf5fb);
  color: #304554;
}

.message {
  box-shadow: 0 8px 18px rgba(21, 40, 55, 0.06);
  animation: bubbleIn 180ms ease both;
}

.message.bot {
  background: #eef8ff;
}

.message.user {
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.toast {
  display: block;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeLift {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.996);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes dropdownIn {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes bubbleIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes livePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(43, 214, 130, 0.45);
  }

  70% {
    box-shadow: 0 0 0 9px rgba(43, 214, 130, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(43, 214, 130, 0);
  }
}

@keyframes progressGlow {
  0%,
  100% {
    filter: saturate(1);
  }

  50% {
    filter: saturate(1.45) brightness(1.04);
  }
}

/* Phase 2: commercial pages and lead journey */

.topbar-actions [aria-current="page"] {
  border-color: rgba(0, 96, 192, 0.24);
  background: rgba(0, 96, 192, 0.08);
  color: var(--primary);
}

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

.outcome-item {
  min-width: 0;
  border: 1px solid rgba(34, 51, 63, 0.12);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.outcome-item:nth-child(2) {
  border-top-color: #1d9d78;
}

.outcome-item:nth-child(3) {
  border-top-color: var(--ink);
}

.outcome-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 24px;
  border-radius: var(--radius-sm);
  background: #e8f7fc;
  color: var(--primary);
}

.outcome-item strong {
  display: block;
  color: var(--ink);
  font-size: 1.7rem;
  line-height: 1;
}

.outcome-item h3 {
  margin: 10px 0 6px;
  font-size: 1rem;
}

.outcome-item p {
  margin: 0;
  color: var(--muted);
}

.outcome-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0 0;
  border-left: 3px solid var(--accent);
  background: rgba(0, 176, 232, 0.06);
  color: #536878;
  padding: 13px 15px;
  font-size: 0.86rem;
}

.outcome-note .lucide {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: var(--primary);
}

.diagnostic-subtitle,
.diagnostic-recommendations h4 {
  margin: 20px 0 8px;
  color: var(--ink);
  font-size: 0.82rem;
}

.diagnostic-subtitle {
  margin-top: 22px;
}

.diagnostic-recommendations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 18px 0 22px;
  border-top: 1px solid var(--line);
  padding-top: 2px;
}

.diagnostic-demo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.diagnostic-demo-links a,
.service-modal-related a {
  border: 1px solid rgba(0, 96, 192, 0.16);
  border-radius: var(--radius-sm);
  background: rgba(0, 96, 192, 0.06);
  color: var(--primary);
  padding: 7px 9px;
  font-size: 0.78rem;
  font-weight: 850;
}

.diagnostic-demo-links a:hover,
.service-modal-related a:hover {
  border-color: rgba(0, 176, 232, 0.5);
  background: rgba(0, 176, 232, 0.12);
}

.diagnostic-automation-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: #536878;
  font-size: 0.82rem;
}

.service-modal-related {
  display: grid;
  gap: 8px;
}

.service-modal-related > strong {
  color: var(--ink);
  font-size: 0.8rem;
}

.service-modal-related > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.faq-section {
  padding-top: 30px;
}

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

.faq-list details {
  align-self: start;
  overflow: hidden;
  border: 1px solid rgba(34, 51, 63, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 28px rgba(21, 40, 55, 0.06);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 62px;
  cursor: pointer;
  list-style: none;
  color: var(--ink);
  padding: 16px 18px;
  font-weight: 850;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary .lucide {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  color: var(--primary);
  transition: transform 180ms ease;
}

.faq-list details[open] summary {
  background: #edf8fc;
}

.faq-list details[open] summary .lucide {
  transform: rotate(180deg);
}

.faq-list details p {
  margin: 0;
  border-top: 1px solid rgba(34, 51, 63, 0.1);
  color: var(--muted);
  padding: 15px 18px 18px;
}

.commercial-page main {
  min-height: 70vh;
}

.commercial-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.72fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  width: 100%;
  max-width: none;
  border-bottom: 1px solid rgba(0, 96, 192, 0.12);
  background: #eef7fb;
  padding: clamp(54px, 7vw, 88px) max(16px, calc((100% - 1180px) / 2));
}

.commercial-hero-copy {
  max-width: 740px;
}

.commercial-hero-copy h1 {
  max-width: 820px;
  margin: 4px 0 18px;
  font-size: 4.2rem;
  line-height: 0.98;
}

.commercial-hero-copy > p:not(.eyebrow) {
  max-width: 700px;
  margin: 0;
  color: #536878;
  font-size: 1.05rem;
  line-height: 1.75;
}

.commercial-summary {
  display: grid;
  gap: 0;
  border: 1px solid rgba(34, 51, 63, 0.12);
  border-radius: var(--radius);
  background: #ffffff;
  padding: 8px 20px;
  box-shadow: var(--shadow-soft);
}

.commercial-summary span {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 800;
}

.commercial-summary span:last-child {
  border-bottom: 0;
}

.commercial-summary .lucide {
  width: 21px;
  height: 21px;
  color: var(--primary);
}

.service-anchor-nav {
  position: sticky;
  top: 74px;
  z-index: 25;
  display: flex;
  gap: 8px;
  width: min(1180px, calc(100% - 32px));
  overflow-x: auto;
  margin: 18px auto 0;
  border: 1px solid rgba(34, 51, 63, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  padding: 8px;
  box-shadow: 0 12px 28px rgba(21, 40, 55, 0.08);
  scrollbar-width: thin;
  backdrop-filter: blur(18px);
}

.service-anchor-nav a {
  flex: 0 0 auto;
  border-radius: var(--radius-sm);
  color: #526574;
  padding: 9px 12px;
  font-size: 0.8rem;
  font-weight: 850;
}

.service-anchor-nav a:hover,
.service-anchor-nav a:focus-visible {
  background: #eaf7fc;
  color: var(--primary);
}

.service-detail-list {
  display: grid;
  gap: 16px;
}

.service-detail-list > .section-heading {
  margin-bottom: 12px;
}

.service-detail {
  scroll-margin-top: 160px;
  overflow: hidden;
  border: 1px solid rgba(34, 51, 63, 0.12);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.service-detail-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  background: #f7fafc;
  padding: 18px 22px;
}

.service-detail-heading div > span {
  display: block;
  margin-bottom: 3px;
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 900;
}

.service-detail-heading h2 {
  margin: 0;
  font-size: 1.35rem;
}

.service-detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.7fr);
  gap: 34px;
  padding: 24px;
}

.service-detail-content p {
  margin: 0;
  color: var(--muted);
}

.check-list {
  display: grid;
  gap: 9px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  color: #334a5a;
  padding-left: 24px;
  font-weight: 730;
}

.check-list li::before {
  position: absolute;
  top: 0.3em;
  left: 2px;
  width: 8px;
  height: 8px;
  border: 3px solid rgba(29, 157, 120, 0.2);
  border-radius: 999px;
  background: #1d9d78;
  content: "";
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  color: var(--primary);
  font-weight: 850;
}

.text-link .lucide {
  width: 17px;
  height: 17px;
}

.related-demo-panel {
  display: grid;
  align-content: start;
  border-left: 3px solid var(--accent);
  padding-left: 20px;
}

.related-demo-panel > strong {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 0.78rem;
}

.related-demo-panel a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  border-bottom: 1px solid var(--line);
  color: #3e5768;
  font-size: 0.84rem;
  font-weight: 800;
}

.related-demo-panel a:hover {
  color: var(--primary);
}

.related-demo-panel .lucide {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.commercial-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto 38px;
  border-radius: var(--radius);
  background: #22333f;
  color: #ffffff;
  padding: clamp(26px, 4vw, 42px);
  box-shadow: 0 22px 54px rgba(21, 40, 55, 0.18);
}

.commercial-cta .eyebrow {
  color: #84e8ff;
}

.commercial-cta h2 {
  margin: 3px 0 8px;
  font-size: 2.2rem;
}

.commercial-cta p:not(.eyebrow) {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
}

.automation-status-board {
  overflow: hidden;
  border: 1px solid rgba(34, 51, 63, 0.12);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.automation-status-board > div {
  display: grid;
  grid-template-columns: 12px minmax(0, 0.7fr) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 58px;
  border-bottom: 1px solid var(--line);
  padding: 10px 16px;
}

.automation-status-board > div:last-child {
  border-bottom: 0;
}

.automation-status-board strong {
  color: var(--ink);
  font-size: 0.84rem;
}

.automation-status-board small {
  color: var(--muted);
  font-weight: 700;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #8999a5;
  box-shadow: 0 0 0 4px rgba(137, 153, 165, 0.12);
}

.status-dot.success { background: #1d9d78; box-shadow: 0 0 0 4px rgba(29, 157, 120, 0.12); }
.status-dot.warning { background: #c88c1b; box-shadow: 0 0 0 4px rgba(200, 140, 27, 0.12); }
.status-dot.retry { background: var(--primary); box-shadow: 0 0 0 4px rgba(0, 96, 192, 0.12); }
.status-dot.danger { background: #c95454; box-shadow: 0 0 0 4px rgba(201, 84, 84, 0.12); }

.automation-planner-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.58fr) minmax(0, 1.42fr);
  gap: 16px;
}

.automation-goals {
  display: grid;
  align-content: start;
  gap: 9px;
}

.automation-goals button {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 72px;
  border: 1px solid rgba(34, 51, 63, 0.14);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
  padding: 12px;
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.automation-goals button:hover,
.automation-goals button.active {
  border-color: rgba(0, 176, 232, 0.46);
  background: #eef9fd;
  transform: translateX(3px);
}

.automation-goals button > .lucide {
  width: 22px;
  height: 22px;
  color: var(--primary);
}

.automation-goals button strong,
.automation-goals button small {
  display: block;
}

.automation-goals button small {
  margin-top: 3px;
  color: var(--muted);
  font-weight: 680;
}

.automation-planner {
  min-width: 0;
  border: 1px solid rgba(34, 51, 63, 0.14);
  border-radius: var(--radius);
  background: #ffffff;
  padding: clamp(22px, 4vw, 34px);
  box-shadow: var(--shadow-soft);
}

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

.planner-heading h3 {
  margin: 2px 0 0;
  font-size: 1.45rem;
}

.automation-planner > p {
  max-width: 760px;
  color: var(--muted);
}

.planner-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
}

.planner-steps li {
  min-width: 0;
  border: 1px solid rgba(34, 51, 63, 0.11);
  border-radius: var(--radius-sm);
  background: #f7fafc;
  color: #405767;
  padding: 12px;
  font-size: 0.78rem;
  font-weight: 780;
}

.planner-steps li span {
  display: block;
  margin-bottom: 5px;
  color: var(--primary);
  font-size: 0.68rem;
  font-weight: 900;
}

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

.capability-grid article,
.governance-grid article {
  min-width: 0;
  border: 1px solid rgba(34, 51, 63, 0.12);
  border-radius: var(--radius);
  background: #ffffff;
  padding: 22px;
  box-shadow: var(--shadow-soft);
}

.capability-grid article > .lucide,
.governance-grid article > .lucide {
  width: 26px;
  height: 26px;
  color: var(--primary);
}

.capability-grid h3,
.governance-grid h3 {
  margin: 18px 0 8px;
  font-size: 1rem;
}

.capability-grid p,
.governance-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.capability-grid article > span {
  display: block;
  margin-top: 18px;
  border-top: 1px solid var(--line);
  color: #1d7d66;
  padding-top: 12px;
  font-size: 0.72rem;
  font-weight: 850;
}

.governance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.contact-hero {
  padding-bottom: clamp(48px, 6vw, 72px);
}

.contact-expectations {
  border: 1px solid rgba(34, 51, 63, 0.12);
  border-radius: var(--radius);
  background: #ffffff;
  padding: 22px;
  box-shadow: var(--shadow-soft);
}

.contact-expectations > strong {
  display: block;
  margin-bottom: 14px;
  color: var(--ink);
}

.contact-expectations ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-expectations li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  color: #496071;
  font-size: 0.85rem;
  font-weight: 760;
}

.contact-expectations li span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: #eaf7fc;
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 900;
}

.contact-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(310px, 0.6fr);
  gap: 18px;
  align-items: start;
}

.contact-form-panel {
  min-width: 0;
  border: 1px solid rgba(34, 51, 63, 0.14);
  border-radius: var(--radius);
  background: #ffffff;
  padding: clamp(22px, 4vw, 34px);
  box-shadow: var(--shadow-soft);
}

.contact-form-heading {
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}

.contact-form-heading h2 {
  margin: 3px 0 6px;
  font-size: 1.65rem;
}

.contact-form-heading > p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.contact-fields {
  gap: 18px;
}

.contact-fields .form-field {
  align-content: start;
}

.conditional-contact-field[hidden] {
  display: none;
}

.contact-fields .form-field input,
.contact-fields .form-field select,
.contact-fields .form-field textarea {
  min-height: 48px;
}

.contact-fields .form-field textarea {
  min-height: 142px;
}

.field-help {
  color: #71828e;
  font-size: 0.74rem;
  line-height: 1.45;
}

.form-honey {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

.consent-field {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin-top: 20px;
  color: #4c6272;
  font-size: 0.8rem;
  font-weight: 700;
}

.consent-field input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--primary);
}

.contact-submit {
  width: 100%;
  min-height: 50px;
  margin-top: 18px;
}

.contact-submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

.contact-options {
  display: grid;
  gap: 10px;
  border-radius: var(--radius);
  background: #22333f;
  color: #ffffff;
  padding: 24px;
  box-shadow: 0 22px 54px rgba(21, 40, 55, 0.18);
}

.contact-options-heading {
  margin-bottom: 8px;
}

.contact-options-heading .eyebrow {
  color: #84e8ff;
}

.contact-options-heading h2 {
  margin: 3px 0 8px;
  font-size: 1.5rem;
}

.contact-options-heading > p:not(.eyebrow) {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
}

.contact-options > a {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 18px;
  gap: 10px;
  align-items: center;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  padding: 12px;
}

.contact-options > a:hover {
  background: rgba(255, 255, 255, 0.11);
}

.contact-options > a .lucide {
  width: 20px;
  height: 20px;
  color: #84e8ff;
}

.contact-options > a > .lucide:last-child {
  width: 16px;
  height: 16px;
}

.contact-options > a strong,
.contact-options > a small {
  display: block;
}

.contact-options > a small {
  max-width: 100%;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.69rem;
  overflow-wrap: anywhere;
}

.contact-trust-note {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  margin-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 18px;
}

.contact-trust-note .lucide {
  width: 22px;
  height: 22px;
  color: #62d7b8;
}

.contact-trust-note p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
}

.thanks-main {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 92px);
  background: #eef7fb;
  padding: 32px 16px;
}

.thanks-panel {
  width: min(720px, 100%);
  border: 1px solid rgba(34, 51, 63, 0.13);
  border-radius: var(--radius);
  background: #ffffff;
  padding: clamp(26px, 6vw, 52px);
  text-align: center;
  box-shadow: 0 24px 68px rgba(21, 40, 55, 0.14);
}

.thanks-panel > img {
  width: min(190px, 60%);
  margin-bottom: 24px;
}

.thanks-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 18px;
  border-radius: 999px;
  background: #dcf5ed;
  color: #13785d;
}

.thanks-panel h1 {
  margin: 4px 0 14px;
  font-size: 3rem;
}

.thanks-panel > p:not(.eyebrow) {
  max-width: 580px;
  margin: 0 auto;
  color: var(--muted);
}

.thanks-panel .hero-actions {
  justify-content: center;
}

@media (max-width: 1040px) {
  .demos-hero .section-heading {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .demos-hero .section-heading > p {
    max-width: 680px;
  }

  .commercial-hero {
    grid-template-columns: 1fr;
  }

  .commercial-hero-copy h1 {
    font-size: 3.35rem;
  }

  .commercial-summary,
  .automation-status-board,
  .contact-expectations {
    width: min(680px, 100%);
  }

  .contact-workspace,
  .automation-planner-layout {
    grid-template-columns: 1fr;
  }

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

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

  .contact-options-heading,
  .contact-trust-note {
    grid-column: 1 / -1;
  }

  .industry-grid,
  .metrics-grid,
  .kanban-board,
  .report-grid,
  .method-grid,
  .service-grid,
  .proof-grid,
  .automation-grid,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intro-band,
  .diagnostic-layout,
  .automation-layout,
  .reporting-showcase,
  .dashboard-grid,
  .wide-grid {
    grid-template-columns: 1fr;
  }

  .snapshot {
    align-self: auto;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .app-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .sidebar-note {
    display: none;
  }
}

@media (max-width: 720px) {
  .commercial-hero-copy h1 {
    font-size: 2.45rem;
    line-height: 1.04;
  }

  .commercial-hero {
    padding-top: 44px;
    padding-bottom: 48px;
  }

  .outcome-grid,
  .faq-list,
  .diagnostic-recommendations,
  .capability-grid,
  .governance-grid,
  .contact-options,
  .planner-steps {
    grid-template-columns: 1fr;
  }

  .service-detail-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .related-demo-panel {
    border-top: 3px solid var(--accent);
    border-left: 0;
    padding-top: 16px;
    padding-left: 0;
  }

  .commercial-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .commercial-cta h2 {
    font-size: 1.75rem;
  }

  .contact-options-heading,
  .contact-trust-note {
    grid-column: auto;
  }

  .thanks-panel h1 {
    font-size: 2.2rem;
  }

  .topbar,
  .section-heading,
  .site-footer,
  .app-header {
    align-items: stretch;
    flex-direction: column;
  }

  .app-header {
    grid-template-columns: 1fr;
  }

  .topbar {
    position: static;
  }

  .topbar-actions,
  .header-actions {
    justify-content: stretch;
  }

  .topbar-actions > *,
  .intro-actions > *,
  .header-actions > *,
  .filter-row > * {
    flex: 1 1 auto;
  }

  .landing-site .topbar {
    position: sticky;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .landing-site .brand {
    flex: 1 1 100%;
  }

  .landing-site .topbar-actions {
    flex: 1 1 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .landing-site .topbar-actions::-webkit-scrollbar {
    display: none;
  }

  .landing-site .topbar-actions > * {
    flex: 0 0 auto;
  }

  .landing-site .nav-dropdown,
  .landing-site .nav-dropdown summary {
    width: auto;
  }

  .landing-site .nav-dropdown .dropdown-menu {
    position: fixed;
    top: 136px;
    right: 16px;
    left: 16px;
    z-index: 60;
    width: auto;
    min-width: 0;
    margin-top: 0;
  }

  .intro-band {
    margin-top: 12px;
    padding-top: 26px;
  }

  .landing-hero {
    min-height: auto;
  }

  .landing-hero-inner {
    align-items: end;
    min-height: 640px;
    padding: 78px 0 86px;
  }

  .landing-hero h1 {
    font-size: clamp(2.9rem, 15vw, 4.6rem);
  }

  .hero-proof-strip span,
  .stack-list span {
    flex: 1 1 auto;
  }

  h1 {
    font-size: 2.25rem;
  }

  .industry-grid,
  .contact-grid,
  .metrics-grid,
  .report-grid,
  .method-grid,
  .service-grid,
  .proof-grid,
  .automation-grid,
  .process-grid,
  .field-grid,
  .patient-meta,
  .side-nav {
    grid-template-columns: 1fr;
  }

  .automation-flow {
    grid-template-columns: 1fr;
  }

  .flow-line {
    width: 2px;
    height: 34px;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(132, 232, 255, 0.2), rgba(132, 232, 255, 0.95));
  }

  .flow-line::after {
    right: 50%;
    top: auto;
    bottom: -2px;
    transform: translateX(50%) rotate(135deg);
  }

  .cta-inner {
    grid-template-columns: 1fr;
  }

  .cta-inner img {
    width: min(220px, 100%);
  }

  .app-main,
  .sidebar {
    padding: 16px;
  }

  .medical-hero-content {
    padding: 22px;
  }

  .industry-hero-content {
    padding: 22px;
  }

  .appointment-item,
  .record-item,
  .task-item,
  .delivery-card,
  .reporting-showcase,
  .catalog-card-head {
    grid-template-columns: 1fr;
  }

  .record-select {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .kanban-board,
  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .catalog-card-head {
    align-items: stretch;
    flex-direction: column;
  }

  .report-card-head,
  .report-recipient {
    align-items: stretch;
    flex-direction: column;
  }

  .report-card-head small {
    justify-content: flex-start;
    text-align: left;
  }

  .report-actions {
    flex-direction: column;
  }

  .tag {
    width: 100%;
    text-align: center;
  }

  .patient-card {
    grid-template-columns: 1fr;
  }

  .chat-input-row {
    grid-template-columns: 1fr;
  }

  .contact-card small {
    font-size: clamp(0.58rem, 2.3vw, 0.72rem);
  }
}

@media (max-width: 720px) {
  .brand-logo-frame {
    width: 76px;
    height: 44px;
    flex-basis: 76px;
  }

  .brand-logo {
    width: 68px;
    height: 38px;
  }

  .nav-dropdown,
  .nav-dropdown summary {
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    width: 100%;
    margin-top: 8px;
  }

  .snapshot-brand {
    align-items: flex-start;
    flex-direction: column;
  }

  .snapshot-brand img {
    width: 150px;
  }

  .command-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-workflow span,
  .trust-strip span,
  .pulse-list span {
    width: 100%;
    justify-content: flex-start;
  }

  .row-actions {
    justify-content: space-between;
    width: 100%;
  }

  .row-actions .tag {
    width: auto;
  }

  .row-menu-button {
    flex: 0 0 40px;
  }

  .landing-site .topbar-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }

  .landing-site .topbar-actions .ghost-link {
    display: none;
  }

  .landing-site .topbar-actions > * {
    min-width: 0;
    width: 100%;
  }

  .landing-site .nav-dropdown,
  .landing-site .nav-dropdown summary,
  .landing-site .topbar-actions > .primary-link {
    width: 100%;
  }

  .landing-site .nav-dropdown .dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: auto;
    left: 0;
    z-index: 60;
    width: min(320px, calc(100vw - 32px));
    min-width: 0;
    margin-top: 0;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.demo-experience-bar {
  position: sticky;
  top: 12px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  margin-bottom: 18px;
  border: 1px solid rgba(0, 96, 192, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 32px rgba(21, 40, 55, 0.1);
  padding: 8px 10px 8px 14px;
  backdrop-filter: blur(18px);
}

.experience-status,
.experience-actions,
.experience-tool-button,
.experience-badge,
.experience-dialog-heading,
.experience-search-field,
.experience-state-heading,
.experience-state-message,
.experience-confirm-actions,
.experience-tour-actions,
.experience-trust-note {
  display: flex;
  align-items: center;
}

.experience-status {
  min-width: 0;
  gap: 8px;
  flex-wrap: wrap;
}

.experience-badge {
  gap: 7px;
  min-height: 30px;
  border: 1px solid rgba(34, 51, 63, 0.12);
  border-radius: 999px;
  background: #f7fafc;
  color: #405462;
  padding: 5px 9px;
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}

.experience-badge-live {
  border-color: rgba(29, 143, 105, 0.22);
  background: #e9f8f2;
  color: #136e52;
}

.experience-badge .lucide,
.experience-tool-button .lucide,
.presentation-exit .lucide {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

.experience-actions {
  justify-content: flex-end;
  gap: 5px;
  min-width: 0;
}

.experience-tool-button {
  position: relative;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: #314552;
  padding: 8px 9px;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.experience-tool-button:hover {
  border-color: rgba(0, 96, 192, 0.16);
  background: var(--surface-strong);
  color: var(--primary-strong);
  transform: translateY(-1px);
}

.experience-tool-button[aria-pressed="true"] {
  background: var(--primary);
  color: #ffffff;
}

.experience-count {
  position: absolute;
  top: 2px;
  right: 1px;
  display: grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: var(--danger);
  color: #ffffff;
  padding: 0 3px;
  font-size: 0.61rem;
  line-height: 1;
}

.experience-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  overflow-y: auto;
  background: rgba(23, 37, 46, 0.54);
  padding: 24px;
  backdrop-filter: blur(7px);
  animation: experienceFadeIn 180ms ease both;
}

.experience-overlay[hidden],
.experience-tour-panel[hidden],
.presentation-exit[hidden],
.experience-live[hidden],
.experience-count[hidden] {
  display: none;
}

.experience-dialog {
  width: min(680px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(11, 29, 41, 0.3);
  padding: 24px;
  animation: experienceDialogIn 220ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.experience-dialog-head,
.experience-tour-head,
.experience-activity-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.experience-dialog-heading {
  align-items: flex-start;
  gap: 13px;
  min-width: 0;
}

.experience-dialog-icon,
.experience-confirm-icon,
.experience-result-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: var(--radius-sm);
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.experience-dialog-icon {
  width: 42px;
  height: 42px;
}

.experience-dialog-icon .lucide,
.experience-confirm-icon .lucide {
  width: 21px;
  height: 21px;
}

.experience-dialog h2,
.experience-tour-panel h2,
.experience-confirm-dialog h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1.2;
}

.experience-dialog-head p,
.experience-tour-panel > p,
.experience-confirm-dialog > p:not(.eyebrow),
.experience-state-heading p,
.experience-state-message p,
.experience-search-empty p,
.experience-activity-item p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.experience-close-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--ink);
  padding: 0;
}

.experience-close-button:hover {
  border-color: rgba(0, 96, 192, 0.3);
  background: var(--surface-strong);
  color: var(--primary);
}

.experience-search-field {
  gap: 10px;
  min-height: 50px;
  margin-top: 22px;
  border: 1px solid rgba(0, 96, 192, 0.26);
  border-radius: var(--radius-sm);
  background: #ffffff;
  padding: 0 13px;
  box-shadow: 0 0 0 3px rgba(0, 176, 232, 0.08);
}

.experience-search-field .lucide {
  width: 20px;
  height: 20px;
  color: var(--primary);
}

.experience-search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.experience-search-results {
  display: grid;
  gap: 6px;
  min-height: 170px;
  margin-top: 14px;
}

.experience-search-result {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 58px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: #f8fafb;
  color: var(--ink);
  padding: 9px 11px;
  text-align: left;
}

.experience-search-result:hover,
.experience-search-result:focus-visible {
  border-color: rgba(0, 96, 192, 0.22);
  background: var(--surface-strong);
}

.experience-search-result > span:nth-child(2) {
  min-width: 0;
}

.experience-search-result strong,
.experience-search-result small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.experience-search-result small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.76rem;
}

.experience-result-icon {
  width: 34px;
  height: 34px;
}

.experience-result-icon .lucide {
  width: 17px;
  height: 17px;
}

.experience-search-result > .lucide {
  width: 17px;
  height: 17px;
  color: var(--primary);
}

.experience-search-empty {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 190px;
  color: var(--muted);
  text-align: center;
}

.experience-search-empty .lucide {
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
  color: #91a3af;
}

.experience-drawer-overlay {
  place-items: stretch end;
  padding: 0;
}

.experience-drawer {
  width: min(470px, 100%);
  max-height: 100vh;
  height: 100%;
  border-radius: 0;
  padding: 24px;
  animation-name: experienceDrawerIn;
}

.experience-trust-note {
  align-items: flex-start;
  gap: 9px;
  margin-top: 20px;
  border-left: 3px solid var(--accent);
  background: var(--soft-cyan);
  color: #365566;
  padding: 11px 12px;
  font-size: 0.82rem;
}

.experience-trust-note .lucide {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  margin-top: 1px;
}

.experience-activity-list {
  display: grid;
  margin-top: 10px;
}

.experience-activity-item {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
}

.experience-activity-dot {
  width: 9px;
  height: 9px;
  margin-top: 7px;
  border: 2px solid #ccecff;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px #edf7ff;
}

.experience-activity-dot.is-success {
  border-color: #caeee2;
  background: var(--success);
  box-shadow: 0 0 0 3px #eef9f5;
}

.experience-activity-title strong {
  font-size: 0.88rem;
}

.experience-activity-title time {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.experience-activity-item p {
  line-height: 1.45;
}

.experience-state-switcher {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 22px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.experience-state-switcher button {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: #f4f7f9;
  color: #455865;
  padding: 8px;
  font-size: 0.78rem;
  font-weight: 800;
}

.experience-state-switcher button[aria-pressed="true"] {
  border-color: var(--primary);
  background: var(--surface-strong);
  color: var(--primary-strong);
}

.experience-state-preview {
  min-height: 220px;
  padding: 30px 4px 4px;
}

.experience-state-heading,
.experience-state-message {
  align-items: flex-start;
  gap: 12px;
}

.experience-state-heading strong,
.experience-state-message strong {
  display: block;
  color: var(--ink);
}

.experience-spinner {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border: 3px solid #dcecf5;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: experienceSpin 800ms linear infinite;
}

.experience-skeleton {
  display: grid;
  gap: 11px;
  margin-top: 24px;
}

.experience-skeleton span {
  height: 18px;
  border-radius: 4px;
  background: linear-gradient(90deg, #edf2f5 25%, #f8fafb 50%, #edf2f5 75%);
  background-size: 220% 100%;
  animation: experienceSkeleton 1.2s ease infinite;
}

.experience-skeleton span:nth-child(2) {
  width: 78%;
}

.experience-skeleton span:nth-child(3) {
  width: 58%;
}

.experience-state-message .lucide {
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  color: var(--primary);
}

.experience-state-message.is-success .lucide {
  color: var(--success);
}

.experience-state-message.is-error .lucide {
  color: var(--danger);
}

.experience-state-preview > .secondary-link {
  margin-top: 22px;
}

.experience-confirm-dialog {
  width: min(480px, 100%);
  text-align: center;
}

.experience-confirm-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
}

.experience-confirm-dialog .eyebrow {
  margin-bottom: 7px;
}

.experience-confirm-actions {
  justify-content: center;
  gap: 9px;
  margin-top: 24px;
}

.experience-tour-panel {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 130;
  width: min(430px, calc(100% - 40px));
  border: 1px solid rgba(0, 96, 192, 0.24);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 22px 64px rgba(10, 29, 42, 0.25);
  padding: 20px;
  animation: experienceDialogIn 220ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.experience-tour-panel .eyebrow {
  margin-bottom: 4px;
}

.experience-tour-meter {
  height: 4px;
  overflow: hidden;
  margin-top: 18px;
  border-radius: 999px;
  background: #e8eef2;
}

.experience-tour-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 220ms ease;
}

.experience-tour-actions {
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
}

.experience-tour-highlight {
  position: relative;
  z-index: 35;
  border-radius: var(--radius);
  outline: 4px solid rgba(0, 176, 232, 0.72);
  outline-offset: 5px;
  box-shadow: 0 0 0 10px rgba(0, 96, 192, 0.1);
  transition:
    outline-color 180ms ease,
    box-shadow 180ms ease;
}

.presentation-exit {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 110;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-sm);
  background: rgba(24, 43, 56, 0.94);
  color: #ffffff;
  box-shadow: var(--shadow);
  padding: 9px 12px;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.presentation-mode .app-layout {
  grid-template-columns: minmax(0, 1fr);
}

.presentation-mode .sidebar,
.presentation-mode .app-header,
.presentation-mode .command-bar,
.presentation-mode .demo-experience-bar {
  display: none;
}

.presentation-mode .app-main {
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: 24px;
}

.experience-dialog-open {
  overflow: hidden;
}

.experience-live {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 150;
  width: max-content;
  max-width: calc(100% - 32px);
  transform: translateX(-50%);
  border: 1px solid rgba(29, 143, 105, 0.24);
  border-radius: var(--radius-sm);
  background: #163f35;
  color: #ffffff;
  box-shadow: var(--shadow);
  padding: 11px 14px;
  font-weight: 800;
}

.experience-spin {
  animation: experienceSpin 700ms linear infinite;
}

@keyframes experienceFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes experienceDialogIn {
  from { opacity: 0; transform: translateY(12px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes experienceDrawerIn {
  from { opacity: 0; transform: translateX(28px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes experienceSpin {
  to { transform: rotate(360deg); }
}

@keyframes experienceSkeleton {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

@media (max-width: 1180px) {
  .experience-tool-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    clip-path: inset(50%);
  }

  .experience-tool-button {
    width: 40px;
    padding: 0;
  }
}

@media (max-width: 720px) {
  .demo-experience-bar {
    position: static;
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
  }

  .experience-status {
    justify-content: space-between;
  }

  .experience-actions {
    display: grid;
    grid-template-columns: repeat(6, minmax(38px, 1fr));
    width: 100%;
  }

  .experience-tool-button {
    width: 100%;
    min-width: 0;
  }

  .experience-overlay {
    align-items: end;
    padding: 10px;
  }

  .experience-dialog {
    max-height: calc(100vh - 20px);
    padding: 18px;
  }

  .experience-dialog-heading {
    gap: 10px;
  }

  .experience-dialog-icon {
    width: 38px;
    height: 38px;
  }

  .experience-dialog h2 {
    font-size: 1.18rem;
  }

  .experience-drawer-overlay {
    padding: 0;
  }

  .experience-drawer {
    max-height: 100vh;
  }

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

  .experience-tour-panel {
    right: 10px;
    bottom: 10px;
    width: calc(100% - 20px);
    padding: 17px;
  }

  .experience-tour-actions .primary-link,
  .experience-tour-actions .secondary-link {
    min-width: 0;
    padding-inline: 10px;
  }

  .presentation-exit span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    clip-path: inset(50%);
  }

  .presentation-exit {
    top: 10px;
    right: 10px;
    width: 42px;
    padding: 0;
    justify-content: center;
  }

  .presentation-mode .app-main {
    padding: 16px;
  }
}

/* Phase 4: deeper operational modules for the priority demos. */
.priority-nav-label {
  grid-column: 1 / -1;
  margin: 10px 12px 2px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.priority-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.priority-page-head h2 {
  margin: 4px 0 6px;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
}

.priority-page-head p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
}

.priority-toolbar svg,
.priority-automation-note svg,
.priority-simulation-note svg {
  width: 17px;
  height: 17px;
}

.priority-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.priority-kpi {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #ffffff;
  padding: 14px;
  box-shadow: 0 8px 22px rgba(31, 52, 70, 0.05);
}

.priority-kpi-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #4e606d;
  font-size: 0.76rem;
  font-weight: 850;
}

.priority-kpi-head svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
}

.priority-kpi strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 1.55rem;
  line-height: 1.1;
}

.priority-kpi small {
  display: block;
  margin-top: 6px;
  color: #4e606d;
  line-height: 1.4;
}

.priority-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.priority-toolbar .primary-link,
.priority-toolbar .secondary-link {
  min-height: 40px;
}

.priority-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(270px, 0.7fr);
  align-items: start;
  gap: 16px;
}

.priority-table-panel,
.priority-side-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #ffffff;
  padding: 16px;
}

.priority-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.priority-panel-head h3 {
  margin: 0 0 3px;
  font-size: 1rem;
}

.priority-panel-head p,
.priority-record-count {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.priority-record-count {
  flex: 0 0 auto;
  font-weight: 800;
}

.priority-table-wrap {
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.priority-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.priority-table th,
.priority-table td {
  border-bottom: 1px solid var(--line);
  padding: 11px 10px;
  text-align: left;
  vertical-align: middle;
}

.priority-table th {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.priority-table tbody tr:last-child td {
  border-bottom: 0;
}

.priority-table tbody tr {
  transition: background-color 160ms ease;
}

.priority-table tbody tr:hover {
  background: #f7fbfe;
}

.priority-row-action {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--ink);
  padding: 7px 10px;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 850;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease;
}

.priority-row-action:hover {
  border-color: var(--primary);
  background: #eef7ff;
  color: var(--primary-strong);
}

.priority-row-action:disabled {
  cursor: default;
  opacity: 0.62;
}

.priority-queue {
  display: grid;
  gap: 2px;
}

.priority-queue-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 11px 0;
}

.priority-queue-item:last-child {
  border-bottom: 0;
}

.priority-queue-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: var(--radius-sm);
  background: #eaf7fc;
  color: #167eae;
}

.priority-queue-icon svg {
  width: 18px;
  height: 18px;
}

.priority-queue-copy strong,
.priority-queue-copy small {
  display: block;
}

.priority-queue-copy strong {
  color: var(--ink);
  font-size: 0.82rem;
}

.priority-queue-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.priority-automation-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  border-left: 3px solid var(--accent);
  background: #edf9fd;
  color: #264c5d;
  padding: 12px;
  font-size: 0.78rem;
  line-height: 1.5;
}

.priority-automation-note svg {
  flex: 0 0 auto;
  margin-top: 2px;
  color: #1685ad;
}

.priority-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: grid;
  place-items: center;
  overflow-y: auto;
  background: rgba(11, 29, 41, 0.58);
  padding: 24px;
  animation: experienceFadeIn 180ms ease both;
}

.priority-modal-overlay[hidden] {
  display: none;
}

.priority-modal {
  width: min(680px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  background: #f8fcff;
  box-shadow: 0 30px 80px rgba(8, 28, 42, 0.28);
  padding: 24px;
  animation: experienceDialogIn 220ms ease both;
}

.priority-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.priority-modal-head h2 {
  margin: 3px 0 5px;
  font-size: 1.35rem;
}

.priority-modal-head p:last-child {
  margin: 0;
  color: var(--muted);
}

.priority-form {
  margin-top: 20px;
}

.priority-form textarea {
  min-height: 120px;
  resize: vertical;
}

.priority-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.priority-simulation-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  border: 1px solid rgba(29, 143, 105, 0.2);
  border-radius: var(--radius-sm);
  background: #eefaf5;
  color: #17634e;
  padding: 11px 12px;
  font-size: 0.78rem;
  font-weight: 800;
}

@media (max-width: 1040px) {
  .priority-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .priority-workspace {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .priority-nav-label,
  .side-nav [data-priority-view] {
    display: none;
  }

  .priority-page-head {
    flex-direction: column;
    gap: 12px;
  }

  .priority-kpi-grid {
    grid-template-columns: 1fr;
  }

  .priority-toolbar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .priority-toolbar .primary-link,
  .priority-toolbar .secondary-link {
    width: 100%;
    justify-content: center;
  }

  .priority-panel-head {
    flex-direction: column;
  }

  .priority-queue-item {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .priority-queue-item .tag {
    grid-column: 2;
    justify-self: start;
  }

  .priority-modal-overlay {
    place-items: end center;
    padding: 10px;
  }

  .priority-modal {
    max-height: calc(100vh - 20px);
    padding: 18px;
  }

  .priority-form-actions {
    flex-direction: column-reverse;
  }

  .priority-form-actions .primary-link,
  .priority-form-actions .secondary-link {
    width: 100%;
    justify-content: center;
  }
}

/* Phase 5: workflow simulator and reporting operations. */
.workflow-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 16px;
}

.workflow-page-head h2 {
  margin: 4px 0 6px;
  font-size: 1.65rem;
}

.workflow-page-head p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
}

.workflow-head-badges {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.workflow-demo-badge,
.workflow-overall-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  font-size: 0.76rem;
  font-weight: 900;
  white-space: nowrap;
}

.workflow-demo-badge {
  border-color: rgba(0, 96, 192, 0.24);
  background: #edf6ff;
  color: #174d88;
}

.workflow-demo-badge svg {
  width: 17px;
  height: 17px;
}

.workflow-overall-status::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.workflow-overall-status.is-idle {
  background: #f2f5f7;
  color: #52636f;
}

.workflow-overall-status.is-running,
.workflow-overall-status.is-retrying {
  border-color: rgba(0, 96, 192, 0.24);
  background: #edf6ff;
  color: #175493;
}

.workflow-overall-status.is-waiting {
  border-color: rgba(184, 117, 24, 0.28);
  background: #fff4d8;
  color: #795016;
}

.workflow-overall-status.is-success {
  border-color: rgba(29, 143, 105, 0.28);
  background: #e4f7ef;
  color: #11684d;
}

.workflow-overall-status.is-failed {
  border-color: rgba(200, 80, 67, 0.3);
  background: #fff0ee;
  color: #9f382e;
}

.workflow-command-bar {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) minmax(180px, 0.62fr) auto;
  align-items: end;
  gap: 12px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
  padding: 14px;
}

.workflow-control-group {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.workflow-control-group > span,
.workflow-filter-bar label > span {
  color: #4e606d;
  font-size: 0.72rem;
  font-weight: 900;
}

.workflow-control-group select,
.workflow-filter-bar select {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(34, 51, 63, 0.18);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--ink);
  padding: 8px 34px 8px 10px;
}

.workflow-segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(82px, 1fr));
  gap: 3px;
  min-height: 40px;
  border: 1px solid rgba(34, 51, 63, 0.15);
  border-radius: var(--radius-sm);
  background: #eef3f6;
  padding: 3px;
}

.workflow-segmented button {
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #4a5e6c;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 900;
}

.workflow-segmented button.active {
  background: #ffffff;
  color: var(--primary-strong);
  box-shadow: 0 3px 10px rgba(21, 40, 55, 0.12);
}

.workflow-segmented button[data-workflow-engine="node-red"].active {
  color: #a23b35;
}

.workflow-run-button {
  min-height: 40px;
  justify-content: center;
}

.workflow-canvas {
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
}

.workflow-canvas::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  content: "";
}

.workflow-canvas[data-engine="node-red"]::before {
  background: linear-gradient(180deg, #a23b35, var(--warning));
}

.workflow-canvas-head {
  align-items: center;
}

.workflow-canvas-head h3 {
  margin-top: 3px;
  font-size: 1.2rem;
}

.workflow-run-id,
.workflow-history-count {
  flex: 0 0 auto;
  color: #52636f;
  font-size: 0.75rem;
  font-weight: 850;
}

.workflow-node-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 2px 0;
  list-style: none;
}

.workflow-node {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-content: start;
  gap: 9px;
  min-width: 0;
  min-height: 156px;
  border: 1px solid rgba(34, 51, 63, 0.14);
  border-radius: var(--radius-sm);
  background: #f9fbfc;
  padding: 12px;
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.workflow-node:not(:last-child)::after {
  position: absolute;
  top: 31px;
  left: calc(100% + 1px);
  width: 14px;
  border-top: 2px solid #c8d5dc;
  content: "";
}

.workflow-node-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: var(--radius-sm);
  background: #e9f1f5;
  color: #516673;
}

.workflow-node-icon svg {
  width: 19px;
  height: 19px;
}

.workflow-node-number {
  align-self: center;
  justify-self: end;
  color: #6d7f8b;
  font-size: 0.7rem;
  font-weight: 900;
}

.workflow-node > div {
  grid-column: 1 / -1;
}

.workflow-node strong,
.workflow-node small {
  display: block;
}

.workflow-node strong {
  color: var(--ink);
  font-size: 0.83rem;
}

.workflow-node small {
  margin-top: 4px;
  color: #52636f;
  font-size: 0.72rem;
  line-height: 1.4;
}

.workflow-node-status {
  grid-column: 1 / -1;
  align-self: end;
  color: #596c78;
  font-size: 0.69rem;
  font-weight: 900;
}

.workflow-node.is-running,
.workflow-node.is-retrying {
  border-color: rgba(0, 96, 192, 0.38);
  background: #eef7ff;
  box-shadow: 0 10px 25px rgba(0, 96, 192, 0.12);
  transform: translateY(-2px);
}

.workflow-node.is-running .workflow-node-icon,
.workflow-node.is-retrying .workflow-node-icon {
  background: #d9edff;
  color: var(--primary);
  animation: workflowPulse 900ms ease-in-out infinite alternate;
}

.workflow-node.is-success {
  border-color: rgba(29, 143, 105, 0.3);
  background: #f1fbf7;
}

.workflow-node.is-success .workflow-node-icon,
.workflow-node.is-success .workflow-node-status {
  color: #12694e;
}

.workflow-node.is-waiting {
  border-color: rgba(184, 117, 24, 0.36);
  background: #fffaf0;
  box-shadow: 0 10px 24px rgba(184, 117, 24, 0.1);
}

.workflow-node.is-waiting .workflow-node-icon,
.workflow-node.is-waiting .workflow-node-status {
  color: #805511;
}

.workflow-node.is-failed {
  border-color: rgba(200, 80, 67, 0.4);
  background: #fff4f2;
  box-shadow: 0 10px 24px rgba(200, 80, 67, 0.1);
}

.workflow-node.is-failed .workflow-node-icon,
.workflow-node.is-failed .workflow-node-status {
  color: #a53d33;
}

.workflow-execution-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.workflow-execution-note {
  flex: 1 1 320px;
  color: #52636f;
  font-size: 0.78rem;
  text-align: right;
}

.workflow-insights-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 16px;
  margin-bottom: 16px;
}

.workflow-dashboard > .module-head > svg,
.workflow-schedule-panel > .module-head > svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
}

.workflow-filter-bar {
  display: grid;
  grid-template-columns: minmax(120px, 0.5fr) minmax(190px, 1fr) auto;
  align-items: end;
  gap: 10px;
  margin-bottom: 14px;
}

.workflow-filter-bar label {
  display: grid;
  gap: 5px;
}

.workflow-compare-toggle {
  display: flex !important;
  grid-auto-flow: column;
  align-items: center;
  justify-content: start;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #f7fafb;
  padding: 8px 10px;
}

.workflow-compare-toggle input,
.workflow-output-check input {
  width: 17px;
  height: 17px;
  accent-color: var(--primary);
}

.workflow-compare-toggle input {
  appearance: none;
  position: relative;
  width: 38px;
  height: 22px;
  flex: 0 0 38px;
  border: 1px solid rgba(34, 51, 63, 0.24);
  border-radius: 999px;
  background: #dfe8ed;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.workflow-compare-toggle input::before {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 5px rgba(21, 40, 55, 0.24);
  content: "";
  transition: transform 160ms ease;
}

.workflow-compare-toggle input:checked {
  border-color: var(--primary);
  background: var(--primary);
}

.workflow-compare-toggle input:checked::before {
  transform: translateX(16px);
}

.workflow-compare-toggle input:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 4px rgba(0, 176, 232, 0.18);
}

.workflow-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #f8fbfd;
}

.workflow-metric-grid article {
  min-width: 0;
  border-right: 1px solid var(--line);
  padding: 12px;
}

.workflow-metric-grid article:last-child {
  border-right: 0;
}

.workflow-metric-grid span,
.workflow-metric-grid strong,
.workflow-metric-grid small {
  display: block;
}

.workflow-metric-grid span {
  color: #52636f;
  font-size: 0.69rem;
  font-weight: 900;
}

.workflow-metric-grid strong {
  margin-top: 5px;
  color: var(--ink);
  font-size: 1.25rem;
}

.workflow-metric-grid small {
  margin-top: 4px;
  color: #586b77;
  font-size: 0.66rem;
  line-height: 1.35;
}

.workflow-chart {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: end;
  gap: 8px;
  height: 190px;
  margin-top: 14px;
  border-bottom: 1px solid rgba(34, 51, 63, 0.18);
  background: repeating-linear-gradient(to bottom, transparent 0, transparent 44px, rgba(34, 51, 63, 0.07) 45px);
  padding: 8px 6px 0;
}

.workflow-chart-column {
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: end;
  gap: 5px;
  height: 100%;
  text-align: center;
}

.workflow-chart-column > div {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 3px;
  height: 100%;
}

.workflow-chart-bar {
  display: block;
  width: min(20px, 42%);
  min-height: 10px;
  border-radius: 3px 3px 0 0;
  transition: height 280ms ease;
}

.workflow-chart-bar.current {
  background: linear-gradient(180deg, var(--accent), var(--primary));
}

.workflow-chart-bar.previous {
  display: none;
  background: #9daab2;
}

.workflow-chart.is-comparing .workflow-chart-bar.previous {
  display: block;
}

.workflow-chart-column small {
  color: #627480;
  font-size: 0.65rem;
}

.workflow-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
  color: #52636f;
  font-size: 0.7rem;
  font-weight: 800;
}

.workflow-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.workflow-chart-legend i {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.workflow-chart-legend i.current {
  background: var(--primary);
}

.workflow-chart-legend i.previous {
  background: #8d9aa2;
}

.workflow-schedule-form {
  margin-top: 2px;
}

.workflow-schedule-form > .full {
  grid-column: 1 / -1;
}

.workflow-schedule-form > .primary-link {
  width: 100%;
  min-width: 0;
  white-space: normal;
}

.workflow-view-panel button:disabled {
  box-shadow: none;
  opacity: 0.5;
  transform: none;
}

.workflow-output-check {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
}

.workflow-schedule-summary {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 14px 0 0;
  border-left: 3px solid var(--accent);
  background: #edf9fd;
  color: #315665;
  padding: 10px;
  font-size: 0.75rem;
  line-height: 1.45;
}

.workflow-schedule-summary svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 1px;
}

.workflow-delivery-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 12px;
}

.workflow-delivery-actions button {
  width: 100%;
  justify-content: center;
}

.workflow-history-panel {
  margin-bottom: 4px;
}

.workflow-history-table {
  min-width: 900px;
}

.workflow-history-table td:last-child {
  color: #4f626f;
  white-space: nowrap;
}

.workflow-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 170;
  display: grid;
  place-items: center;
  overflow-y: auto;
  background: rgba(11, 29, 41, 0.62);
  padding: 24px;
  animation: experienceFadeIn 180ms ease both;
}

.workflow-modal-overlay[hidden] {
  display: none;
}

.workflow-modal {
  width: min(680px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  background: #f8fcff;
  box-shadow: 0 30px 80px rgba(8, 28, 42, 0.3);
  padding: 24px;
  animation: experienceDialogIn 220ms ease both;
}

.workflow-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.workflow-modal-head h2 {
  margin: 3px 0 5px;
  font-size: 1.35rem;
}

.workflow-modal-head p:last-child {
  margin: 0;
  color: var(--muted);
}

.workflow-email-form {
  margin-top: 20px;
}

.workflow-email-form textarea {
  min-height: 130px;
  resize: vertical;
}

@keyframes workflowPulse {
  from { transform: scale(0.94); }
  to { transform: scale(1.04); }
}

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

  .workflow-run-button {
    width: 100%;
  }

  .workflow-node-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .workflow-node:nth-child(3)::after {
    display: none;
  }

  .workflow-insights-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .workflow-page-head {
    flex-direction: column;
    gap: 12px;
  }

  .workflow-head-badges {
    justify-content: flex-start;
  }

  .workflow-command-bar,
  .workflow-filter-bar {
    grid-template-columns: 1fr;
  }

  .workflow-node-list {
    grid-template-columns: 1fr;
  }

  .workflow-node {
    min-height: 0;
    grid-template-columns: 38px 30px minmax(0, 1fr) auto;
    align-items: center;
  }

  .workflow-node:not(:last-child)::after {
    top: 100%;
    left: 30px;
    width: 0;
    height: 14px;
    border-top: 0;
    border-left: 2px solid #c8d5dc;
  }

  .workflow-node > div {
    grid-column: auto;
  }

  .workflow-node-number {
    justify-self: center;
  }

  .workflow-node-status {
    grid-column: auto;
    text-align: right;
  }

  .workflow-execution-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .workflow-execution-actions button {
    width: 100%;
    justify-content: center;
  }

  .workflow-execution-note {
    text-align: left;
  }

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

  .workflow-metric-grid article:nth-child(2) {
    border-right: 0;
  }

  .workflow-metric-grid article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .workflow-chart {
    height: 160px;
  }

  .workflow-modal-overlay {
    place-items: end center;
    padding: 10px;
  }

  .workflow-modal {
    max-height: calc(100vh - 20px);
    padding: 18px;
  }
}

@media (max-width: 520px) {
  .workflow-node {
    grid-template-columns: 34px minmax(0, 1fr) auto;
  }

  .workflow-node-icon {
    width: 34px;
    height: 34px;
  }

  .workflow-node-number {
    display: none;
  }

  .workflow-node:not(:last-child)::after {
    left: 28px;
  }

  .workflow-node-status {
    max-width: 90px;
    white-space: normal;
  }
}

/* Shared local UI patterns inspired by the Uiverse review. */
.primary-link,
.secondary-link,
.ghost-link,
.chip-button,
.icon-button,
.card-action,
.tab-button,
.quick-reply,
.submit-button {
  -webkit-tap-highlight-color: transparent;
}

.submit-button.is-ui-loading,
.submit-button.is-ui-success,
.submit-button.is-ui-error,
.primary-link.is-ui-loading,
.primary-link.is-ui-success,
.primary-link.is-ui-error {
  pointer-events: none;
  transform: none;
}

.submit-button.is-ui-loading::before,
.submit-button.is-ui-success::before,
.submit-button.is-ui-error::before,
.primary-link.is-ui-loading::before,
.primary-link.is-ui-success::before,
.primary-link.is-ui-error::before {
  display: none;
}

.submit-button.is-ui-success,
.primary-link.is-ui-success {
  border-color: rgba(29, 143, 105, 0.3);
  background: #187d5e;
  box-shadow: 0 14px 30px rgba(29, 143, 105, 0.22);
  color: #ffffff;
}

.submit-button.is-ui-error,
.primary-link.is-ui-error {
  border-color: rgba(200, 80, 67, 0.32);
  background: #ad4036;
  box-shadow: 0 14px 30px rgba(200, 80, 67, 0.2);
  color: #ffffff;
}

.ui-button-spinner {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: uiButtonSpin 720ms linear infinite;
}

@keyframes uiButtonSpin {
  to { transform: rotate(360deg); }
}

.ui-form-status {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 10px;
  grid-column: 1 / -1;
  align-items: center;
  min-height: 44px;
  margin: 0 0 18px;
  border: 1px solid rgba(200, 80, 67, 0.24);
  border-radius: var(--radius-sm);
  background: #fff6f4;
  color: #8e342d;
  padding: 10px 12px;
  font-size: 0.82rem;
}

.ui-form-status[hidden] {
  display: none;
}

.ui-form-status > span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 0 4px rgba(200, 80, 67, 0.12);
}

.ui-form-status.is-success {
  border-color: rgba(29, 143, 105, 0.24);
  background: #f0faf6;
  color: #176c52;
}

.ui-form-status.is-success > span {
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(29, 143, 105, 0.12);
}

.form-field.is-invalid input,
.form-field.is-invalid select,
.form-field.is-invalid textarea,
.consent-field.is-invalid input {
  border-color: rgba(200, 80, 67, 0.72);
  background-color: #fffafa;
  box-shadow: 0 0 0 4px rgba(200, 80, 67, 0.1);
}

.form-field.is-invalid input:focus-visible,
.form-field.is-invalid select:focus-visible,
.form-field.is-invalid textarea:focus-visible,
.consent-field.is-invalid input:focus-visible {
  outline-color: rgba(200, 80, 67, 0.42);
}

.field-feedback {
  color: #a13e35;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
}

.field-feedback[hidden] {
  display: none;
}

.consent-field .field-feedback {
  grid-column: 2;
}

.consent-field input[type="checkbox"] {
  appearance: none;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 1px solid rgba(34, 51, 63, 0.36);
  border-radius: 4px;
  background: #ffffff;
  transition: background 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.consent-field input[type="checkbox"]::before {
  width: 10px;
  height: 6px;
  border-bottom: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  content: "";
  transform: rotate(-45deg) scale(0);
  transition: transform 140ms ease;
}

.consent-field input[type="checkbox"]:checked {
  border-color: var(--primary);
  background: var(--primary);
}

.consent-field input[type="checkbox"]:checked::before {
  transform: rotate(-45deg) scale(1);
}

.consent-field input[type="checkbox"]:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 4px rgba(0, 176, 232, 0.18);
}

[data-ui-tooltip] {
  position: relative;
}

[data-ui-tooltip]::before,
[data-ui-tooltip]::after {
  position: absolute;
  z-index: 1200;
  left: 50%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease;
}

[data-ui-tooltip]::before {
  bottom: calc(100% + 3px);
  width: 8px;
  height: 8px;
  background: #162936;
  content: "";
  transform: translate(-50%, 4px) rotate(45deg);
}

[data-ui-tooltip]::after {
  bottom: calc(100% + 7px);
  width: max-content;
  max-width: min(240px, 80vw);
  border-radius: 4px;
  background: #162936;
  color: #ffffff;
  padding: 6px 8px;
  box-shadow: 0 10px 24px rgba(8, 28, 42, 0.2);
  content: attr(data-ui-tooltip);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  white-space: normal;
  transform: translate(-50%, 4px);
}

[data-ui-tooltip]:hover::before,
[data-ui-tooltip]:hover::after,
[data-ui-tooltip]:focus-visible::before,
[data-ui-tooltip]:focus-visible::after {
  opacity: 1;
}

[data-ui-tooltip]:hover::before,
[data-ui-tooltip]:focus-visible::before {
  transform: translate(-50%, 0) rotate(45deg);
}

[data-ui-tooltip]:hover::after,
[data-ui-tooltip]:focus-visible::after {
  transform: translate(-50%, 0);
}

.row-menu-button[data-ui-tooltip]::before,
.row-menu-button[data-ui-tooltip]::after {
  right: 0;
  left: auto;
}

.row-menu-button[data-ui-tooltip]::before {
  transform: translate(-15px, 4px) rotate(45deg);
}

.row-menu-button[data-ui-tooltip]::after {
  transform: translate(0, 4px);
}

.row-menu-button[data-ui-tooltip]:hover::before,
.row-menu-button[data-ui-tooltip]:focus-visible::before {
  transform: translate(-15px, 0) rotate(45deg);
}

.row-menu-button[data-ui-tooltip]:hover::after,
.row-menu-button[data-ui-tooltip]:focus-visible::after {
  transform: translate(0, 0);
}

.industry-card:focus-within {
  border-color: rgba(0, 176, 232, 0.38);
  box-shadow: 0 22px 44px rgba(21, 40, 55, 0.15);
  transform: translateY(-3px);
}

.industry-card:focus-within::after {
  transform: scaleX(1);
}

.metric-card::after {
  transform: scaleX(0.58);
  transform-origin: right;
  transition: opacity 180ms ease, transform 180ms ease;
}

.metric-card:hover::after {
  opacity: 0.9;
  transform: scaleX(1);
}

.experience-skeleton span {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(34, 51, 63, 0.04);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
