:root {
  color-scheme: light;
  font-family: "Segoe UI", sans-serif;
  --medical-navy: #0f3d66;
  --medical-blue: #1467a3;
  --medical-sky: #5dbce8;
  --medical-mist: #eaf7ff;
  --medical-border: #c4e0ef;
  --medical-text: #133b57;
  background:
    radial-gradient(circle at top left, rgba(143, 215, 248, 0.45), transparent 24%),
    radial-gradient(circle at bottom right, rgba(40, 129, 188, 0.18), transparent 20%),
    linear-gradient(180deg, #f7fcff 0%, #edf8ff 100%);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  font-family: "Segoe UI", sans-serif;
  color: var(--medical-text);
}

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

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

.public-body {
  background:
    radial-gradient(circle at top left, rgba(143, 215, 248, 0.45), transparent 24%),
    radial-gradient(circle at bottom right, rgba(40, 129, 188, 0.18), transparent 20%),
    linear-gradient(180deg, #f7fcff 0%, #edf8ff 100%);
}

.page-shell,
.section-block,
.hero-public,
.hero-visual,
.trust-strip,
.final-cta,
.auth-shell,
.topbar,
.role-grid,
.stats-grid,
.panel-content {
  display: grid;
  gap: 1.5rem;
}

.page-shell {
  padding: 1.2rem clamp(1rem, 3vw, 2rem) 4rem;
}

.topbar-public {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--medical-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 1rem;
  z-index: 10;
}

.brand,
.topbar-nav,
.hero-actions,
.plan-title,
.modules,
.hero-actions a {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.brand {
  color: var(--medical-text);
}

.brand-mark {
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 18px;
  display: grid;
  place-items: center;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
}

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

.brand small {
  color: #62839e;
}

.topbar-nav a {
  font-weight: 600;
}

.topbar-nav .is-current {
  color: var(--medical-blue);
}

.nav-cta,
.hero-actions a,
.button-primary {
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--medical-navy), var(--medical-blue));
  color: #fff;
  padding: 0.95rem 1.2rem;
  font-weight: 700;
  cursor: pointer;
}

.hero-public {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
  align-items: stretch;
  padding-top: 2rem;
}

.hero-copy {
  display: grid;
  gap: 1.5rem;
  align-content: start;
  padding: clamp(1.2rem, 2vw, 2rem) 0;
}

.hero-copy h1,
.section-head h2,
.showcase-copy h2,
.trust-copy h2,
.auth-copy h1,
.topbar h1 {
  margin: 0;
  color: var(--medical-navy);
  line-height: 1.05;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 5vw, 4.9rem);
  max-width: 12ch;
}

.hero-copy p,
.section-head p,
.showcase-copy p,
.module-card p,
.benefit-card p,
.dashboard-card p,
.trust-item p,
.auth-copy p,
.feedback {
  margin: 0;
  color: #567891;
  line-height: 1.6;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--medical-blue);
  font-weight: 800;
  font-size: 0.78rem;
}

.hero-actions .secondary,
.button-secondary {
  background: rgba(255, 255, 255, 0.65);
  color: var(--medical-blue);
  border: 1px solid var(--medical-border);
}

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

.highlight-card,
.benefit-card,
.module-card,
.plan-card,
.register-card,
.mail-card,
.dashboard-card,
.auth-copy,
.auth-form,
.card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--medical-border);
  border-radius: 28px;
  box-shadow: 0 24px 50px rgba(20, 103, 163, 0.08);
}

.highlight-card,
.benefit-card,
.module-card,
.plan-card,
.dashboard-card,
.auth-copy,
.auth-form,
.card {
  padding: 1.35rem;
}

.highlight-card strong {
  display: block;
  color: var(--medical-navy);
  margin-bottom: 0.45rem;
}

.highlight-card span {
  color: #5a7b95;
  line-height: 1.45;
}

.credibility-band strong {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--medical-navy);
}

.credibility-band small {
  display: block;
  color: #5a7b95;
  line-height: 1.45;
}

.hero-visual {
  grid-template-rows: 1.25fr 0.95fr;
}

.visual-photo,
.visual-dashboard,
.trust-visual {
  border-radius: 28px;
  overflow: hidden;
}

.visual-photo,
.trust-visual {
  min-height: 340px;
  border: 1px solid var(--medical-border);
  box-shadow: 0 24px 50px rgba(20, 103, 163, 0.08);
}

.visual-photo img,
.trust-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.visual-dashboard {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1rem;
}

.dashboard-card.tall {
  grid-row: span 2;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(232, 246, 255, 0.95)),
    linear-gradient(135deg, rgba(20, 103, 163, 0.08), rgba(93, 188, 232, 0.12));
}

.card-kicker {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  background: var(--medical-mist);
  color: var(--medical-blue);
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 0.9rem;
}

.dashboard-card strong {
  display: block;
  color: var(--medical-navy);
  font-size: 1.2rem;
  line-height: 1.3;
}

.mini-bars {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.25rem;
}

.mini-bars span {
  display: block;
  height: 0.8rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(20, 103, 163, 0.18), rgba(20, 103, 163, 0.65));
}

.mini-bars span:nth-child(1) { width: 100%; }
.mini-bars span:nth-child(2) { width: 82%; }
.mini-bars span:nth-child(3) { width: 68%; }
.mini-bars span:nth-child(4) { width: 90%; }

.section-block {
  padding-top: 2rem;
}

.page-hero-slim,
.split-feature,
.public-footer-grid,
.module-showcase-card,
.article-card-full,
.workspace-footer,
.route-grid,
.segment-strip-grid {
  display: grid;
  gap: 1.5rem;
}

.page-hero-slim {
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  align-items: center;
  padding: clamp(1.6rem, 3vw, 2.3rem);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--medical-border);
  border-radius: 32px;
  box-shadow: 0 24px 50px rgba(20, 103, 163, 0.08);
}

.page-hero-slim h1 {
  margin: 0.35rem 0 0;
  color: var(--medical-navy);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.06;
}

.page-hero-slim p {
  margin: 1rem 0 0;
  color: #567891;
  line-height: 1.6;
}

.page-hero-media,
.article-card-media,
.module-showcase-media,
.image-story-media {
  border-radius: 24px;
  overflow: hidden;
}

.page-hero-media {
  min-height: 320px;
  border: 1px solid var(--medical-border);
}

.page-hero-media img,
.article-card-media img,
.module-showcase-media img,
.image-story-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.image-story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.image-story-card {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--medical-border);
  border-radius: 28px;
  box-shadow: 0 18px 42px rgba(20, 103, 163, 0.08);
}

.image-story-media {
  min-height: 220px;
}

.image-story-copy {
  display: grid;
  gap: 0.55rem;
}

.image-story-copy h3 {
  margin: 0;
  color: var(--medical-navy);
}

.image-story-copy p {
  margin: 0;
  color: #5b7d97;
  line-height: 1.6;
}

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

.route-card {
  display: grid;
  gap: 0.65rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--medical-border);
  border-radius: 24px;
  box-shadow: 0 18px 38px rgba(20, 103, 163, 0.08);
}

.route-card strong {
  color: var(--medical-navy);
  font-size: 1.05rem;
}

.route-card span {
  color: #5c7d97;
  line-height: 1.5;
}

.module-showcase-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.module-showcase-card {
  grid-template-columns: 1fr;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--medical-border);
  border-radius: 28px;
  box-shadow: 0 18px 42px rgba(20, 103, 163, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.module-showcase-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 46px rgba(20, 103, 163, 0.14);
  border-color: rgba(20, 103, 163, 0.22);
}

.module-showcase-media {
  min-height: 190px;
}

.module-showcase-copy {
  display: grid;
  align-content: center;
  gap: 0.9rem;
  padding: 1rem;
}

.module-showcase-copy h2,
.public-footer h3 {
  margin: 0;
  color: var(--medical-navy);
}

.module-showcase-copy p,
.public-footer p,
.public-footer a,
.workspace-footer {
  color: #5b7d97;
  line-height: 1.6;
}

.mini-feature-list {
  margin: 0;
  padding-left: 1rem;
  color: #5b7d97;
  line-height: 1.8;
}

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

.credibility {
  padding-top: 0.5rem;
}

.credibility-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.credibility-band span {
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--medical-border);
  color: #52738d;
}

.section-head.split,
.trust-strip,
.final-cta {
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.benefit-grid,
.module-grid,
.plan-grid,
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.module-card strong,
.benefit-card h3,
.plan-card strong {
  color: var(--medical-navy);
}

.trust-list {
  display: grid;
  gap: 0.8rem;
}

.trust-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.trust-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--medical-blue), var(--medical-sky));
  margin-top: 0.45rem;
  flex: 0 0 auto;
}

.limits {
  margin: 1rem 0 0;
  padding-left: 1rem;
  color: #567891;
  line-height: 1.7;
}

.comparison-block {
  gap: 1rem;
}

.comparison-wrap {
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  min-width: 820px;
  border-collapse: separate;
  border-spacing: 0;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--medical-border);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(20, 103, 163, 0.08);
}

.comparison-table th,
.comparison-table td {
  padding: 1rem 1.05rem;
  border-bottom: 1px solid rgba(196, 224, 239, 0.7);
  text-align: left;
}

.comparison-table thead th {
  background: linear-gradient(180deg, rgba(234, 247, 255, 0.92), rgba(255, 255, 255, 0.94));
  color: var(--medical-navy);
  font-size: 0.96rem;
}

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

.comparison-table tbody td:first-child {
  color: var(--medical-navy);
  font-weight: 700;
}

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

.auth-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.auth-body-panel {
  background:
    radial-gradient(circle at top left, rgba(105, 198, 242, 0.36), transparent 28%),
    radial-gradient(circle at bottom right, rgba(31, 135, 199, 0.24), transparent 22%),
    linear-gradient(135deg, #0b4f82 0%, #10639f 45%, #6fc7f3 100%);
}

.login-page {
  min-height: 100vh;
  padding: clamp(1.25rem, 4vw, 3rem);
  display: grid;
  place-items: center;
}

.login-shell {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.login-brand {
  color: #f3fbff;
  display: grid;
  gap: 1rem;
}

.brand-logo-panel {
  width: min(260px, 100%);
  height: auto;
  display: block;
}

.auth-brand {
  color: #f3fbff;
  text-decoration: none;
  width: fit-content;
}

.auth-brand strong,
.auth-brand small {
  color: #f3fbff;
}

.auth-brand .brand-mark {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 44px rgba(2, 22, 42, 0.18);
}

.panel-eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  font-size: 0.78rem;
  opacity: 0.82;
  color: #f3fbff;
}

.login-brand h1 {
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  line-height: 0.95;
  font-family: Georgia, "Times New Roman", serif;
  color: #f3fbff;
}

.login-subtitle {
  margin: 0;
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(243, 251, 255, 0.9);
}

.credentials-box {
  width: fit-content;
  display: grid;
  gap: 0.25rem;
  padding: 1rem 1.2rem;
  border-radius: 20px;
  background: rgba(243, 251, 255, 0.12);
  border: 1px solid rgba(243, 251, 255, 0.14);
}

.credentials-box span {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15rem;
}

.demo-list-panel {
  display: grid;
  gap: 0.4rem;
}

.demo-list-panel p {
  margin: 0;
  display: grid;
  gap: 0.12rem;
}

.demo-list-panel span {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.82rem;
  color: rgba(243, 251, 255, 0.84);
}

.demo-list-panel small {
  font-size: 0.8rem;
  color: rgba(243, 251, 255, 0.72);
}

.login-card {
  background: rgba(248, 253, 255, 0.96);
  border-radius: 28px;
  padding: 1.5rem;
  box-shadow: 0 30px 70px rgba(14, 76, 125, 0.18);
}

.card-content {
  display: grid;
  gap: 1.25rem;
}

.card-header {
  display: grid;
  gap: 0.45rem;
}

.card-header h2,
.card-header p {
  margin: 0;
}

.card-header h2 {
  font-size: 2rem;
  color: var(--medical-blue-900);
}

.card-header p {
  color: var(--medical-blue-600);
  line-height: 1.6;
}

.section-tag {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.15rem;
  font-size: 0.75rem;
  color: var(--medical-sky-600);
  font-weight: 700;
}

.login-form {
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.45rem;
  color: var(--medical-blue-900);
  font-weight: 600;
}

.field span {
  font-size: 0.92rem;
}

.field input {
  border: 1px solid rgba(44, 122, 194, 0.18);
  border-radius: 16px;
  padding: 0.95rem 1rem;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.96);
}

.field input:focus {
  outline: none;
  border-color: var(--medical-sky-500);
  box-shadow: 0 0 0 4px rgba(73, 167, 223, 0.2);
}

.login-form button {
  border: 0;
  border-radius: 999px;
  padding: 0.95rem 1.25rem;
  font-size: 1rem;
  font-weight: 700;
  color: #f8fdff;
  background: linear-gradient(135deg, #0e5a92, #2d8dc7);
  cursor: pointer;
}

.feedback {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  background: rgba(17, 114, 170, 0.08);
  color: var(--medical-blue-900);
  font-size: 0.95rem;
}

.feedback.error {
  background: rgba(198, 40, 40, 0.12);
  color: #8e1b1b;
}

.panel-body {
  background:
    radial-gradient(circle at top right, rgba(105, 198, 242, 0.18), transparent 24%),
    linear-gradient(180deg, #ecf8ff 0%, #f7fcff 100%);
}

.layout-panel {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
  background:
    radial-gradient(circle at top right, rgba(105, 198, 242, 0.18), transparent 24%),
    linear-gradient(180deg, #ecf8ff 0%, #f7fcff 100%);
  overflow: clip;
}

.sidebar-panel {
  min-height: 100vh;
  background: linear-gradient(180deg, #0e4c7d, #0f5f9a 52%, #1c88c9 100%);
  color: #f4fbff;
  padding: 1.2rem 1rem;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 1.5rem;
  overflow-y: auto;
  z-index: 20;
}

.sidebar-backdrop {
  display: none;
}

.sidebar-head,
.brand-sidebar {
  display: flex;
  align-items: center;
}

.sidebar-head {
  justify-content: space-between;
  gap: 0.9rem;
}

.brand-mark-sidebar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.brand-mark-sidebar img {
  width: 100%;
  height: 100%;
  display: block;
}

.brand-sidebar {
  gap: 0.8rem;
}

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

.brand-sidebar small {
  color: rgba(244, 251, 255, 0.74);
}

.nav-panel {
  display: grid;
  gap: 0.4rem;
  align-content: start;
}

.nav-link-panel {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border-radius: 16px;
  padding: 0.82rem 0.9rem;
  color: inherit;
  font-weight: 600;
}

.nav-link-panel.active,
.nav-link-panel:hover {
  background: rgba(244, 251, 255, 0.14);
}

.icon-panel {
  width: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.95;
}

.workspace-panel {
  min-width: 0;
  min-height: 0;
  padding: 1rem;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 1rem;
  position: relative;
}

.content-panel {
  min-height: 0;
  overflow: auto;
  padding-bottom: 1rem;
}

.topbar-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(91, 173, 220, 0.18);
  box-shadow: 0 14px 30px rgba(15, 71, 118, 0.09);
  position: relative;
  z-index: 12;
}

.left-panel,
.right-panel {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.left-panel {
  min-width: 0;
  flex: 1 1 auto;
}

.business-context {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.right-panel {
  position: relative;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.icon-button,
.profile-trigger,
.profile-menu button,
.alerts-header button {
  border: 0;
  background: transparent;
}

.icon-button {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #edf6ff;
  cursor: pointer;
  color: #184c7b;
  display: inline-grid;
  place-items: center;
}

.mobile-toggle {
  display: none;
}

.notification-trigger {
  position: relative;
  padding: 0;
}

.notification-icon {
  width: 1.15rem;
  height: 1.15rem;
  display: inline-grid;
  place-items: center;
}

.notification-icon svg {
  width: 100%;
  height: 100%;
}

.badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: #d83c58;
  color: white;
  font-size: 0.72rem;
  display: grid;
  place-items: center;
}

.alerts-details,
.profile {
  position: relative;
}

.alerts-details summary,
.profile summary {
  list-style: none;
}

.alerts-details summary::-webkit-details-marker,
.profile summary::-webkit-details-marker {
  display: none;
}

.profile-trigger {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: #eef8ff;
  cursor: pointer;
  color: var(--medical-blue-900);
  min-width: 0;
}

.avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--medical-sky-600);
  color: white;
}

.profile-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  display: grid;
  min-width: 320px;
  padding: 0.4rem;
  border-radius: 18px;
  background: white;
  box-shadow: 0 18px 38px rgba(15, 95, 154, 0.18);
  gap: 0.35rem;
  z-index: 30;
}

.alerts-panel {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 3.5rem;
  width: min(360px, 92vw);
  max-height: 420px;
  overflow: auto;
  display: grid;
  gap: 0.75rem;
  padding: 0.9rem;
  border-radius: 18px;
  background: white;
  box-shadow: 0 18px 38px rgba(15, 95, 154, 0.18);
  z-index: 30;
}

.alert-item.severity-danger {
  border-left: 4px solid #d83c58;
  padding-left: 0.8rem;
}

.alert-item.severity-warning {
  border-left: 4px solid #f3b63f;
  padding-left: 0.8rem;
}

.alert-item.severity-info {
  border-left: 4px solid #5aa3e6;
  padding-left: 0.8rem;
}

.alerts-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}

.alerts-header button {
  color: #0f5d96;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.alert-item {
  display: grid;
  gap: 0.3rem;
  padding: 0.85rem 0.9rem;
  border-radius: 16px;
  background: #f7fbff;
  border: 1px solid #d8e8f5;
}

.alert-item.unread {
  background: #eef8ff;
  border-color: #b9daf1;
}

.alert-item p,
.alert-item small,
.profile-capabilities p {
  margin: 0;
  color: #5b7f9d;
}

.profile-summary,
.profile-capabilities {
  display: grid;
  gap: 0.55rem;
  padding: 0.55rem 0.7rem;
}

.profile-capabilities {
  border-radius: 14px;
  background: rgba(239, 248, 255, 0.72);
}

.profile-capabilities article {
  display: grid;
  gap: 0.2rem;
}

.role-strip,
.module-strip {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.role-strip span,
.module-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
}

.role-strip span {
  background: rgba(16, 103, 174, 0.1);
  color: #175f97;
}

.module-strip span {
  background: rgba(91, 173, 220, 0.14);
  color: #266ca4;
}

.switcher {
  display: grid;
  gap: 0.25rem;
  padding: 0.35rem;
}

.switcher span {
  padding: 0.25rem 0.45rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12rem;
  color: var(--medical-sky-700);
}

.profile-menu button {
  text-align: left;
  border-radius: 12px;
  padding: 0.68rem 0.8rem;
  cursor: pointer;
}

.profile-link {
  display: block;
  text-align: left;
  border-radius: 12px;
  padding: 0.68rem 0.8rem;
}

.profile-menu button.current,
.profile-menu button:hover,
.profile-link:hover {
  background: #eef8ff;
}

.page-panel {
  display: grid;
  gap: 1.4rem;
}

.page-header-panel {
  display: grid;
  gap: 0.35rem;
}

.page-header-panel h1,
.page-header-panel p {
  margin: 0;
}

.role-panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.role-card,
.stat-card {
  padding: 1.2rem;
  border-radius: 24px;
  background: white;
  border: 1px solid rgba(91, 173, 220, 0.18);
  box-shadow: 0 18px 40px rgba(44, 122, 194, 0.08);
}

.role-card {
  display: grid;
  gap: 0.85rem;
}

.role-card h2,
.role-card p {
  margin: 0;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.chip.role {
  background: rgba(24, 105, 179, 0.1);
  color: #175f97;
}

.chip.module {
  background: rgba(91, 173, 220, 0.14);
  color: var(--medical-sky-700);
}

.profile-list {
  display: grid;
  gap: 0.7rem;
}

.profile-list article {
  display: grid;
  gap: 0.2rem;
  padding: 0.85rem 0.95rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(244, 250, 255, 0.96), rgba(234, 246, 255, 0.88));
}

.profile-list p,
.support-copy,
.stat-card span {
  color: var(--medical-blue-600);
}

.stats-grid-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.stat-card strong {
  display: block;
  margin-top: 0.4rem;
  font-size: 2rem;
  color: var(--medical-blue-900);
}

.module-page {
  display: grid;
  gap: 1.2rem;
}

.flash-success {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  background: rgba(46, 125, 50, 0.12);
  color: #1b5e20;
}

.content-grid {
  display: grid;
  gap: 1rem;
}

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

.content-grid.three {
  grid-template-columns: 1.3fr 1fr 1fr;
}

.panel-card {
  padding: 1.2rem;
  border-radius: 24px;
  background: white;
  border: 1px solid rgba(91, 173, 220, 0.18);
  box-shadow: 0 18px 40px rgba(44, 122, 194, 0.08);
  display: grid;
  gap: 1rem;
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.section-title-row h2,
.panel-card h2 {
  margin: 0;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  border: 0;
  background: #eef8ff;
  color: var(--medical-blue-900);
  font-weight: 700;
  cursor: pointer;
}

.button-link-primary {
  background: linear-gradient(135deg, #0e5a92, #2d8dc7);
  color: #fff;
}

.button-link.small {
  min-height: 2.1rem;
  padding: 0.48rem 0.8rem;
  font-size: 0.82rem;
}

.module-form {
  display: grid;
  gap: 1rem;
}

.form-grid {
  display: grid;
  gap: 0.85rem;
}

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

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

.module-form label {
  display: grid;
  gap: 0.35rem;
}

.module-form span {
  font-size: 0.88rem;
  color: var(--medical-blue-900);
  font-weight: 600;
}

.module-form input,
.module-form select,
.module-form textarea {
  width: 100%;
  border: 1px solid rgba(44, 122, 194, 0.18);
  border-radius: 14px;
  padding: 0.85rem 0.95rem;
  background: rgba(255, 255, 255, 0.98);
}

.module-form textarea {
  min-height: 96px;
  resize: vertical;
}

.module-form input:focus,
.module-form select:focus,
.module-form textarea:focus {
  outline: none;
  border-color: var(--medical-sky-500);
  box-shadow: 0 0 0 4px rgba(73, 167, 223, 0.18);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
}

.form-actions.split {
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.form-actions button,
.inline-actions button {
  border: 0;
  border-radius: 999px;
  padding: 0.8rem 1rem;
  background: linear-gradient(135deg, #0e5a92, #2d8dc7);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}

.table-wrap {
  overflow: auto;
}

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

.data-table th,
.data-table td {
  padding: 0.85rem 0.7rem;
  border-bottom: 1px solid #e1eef8;
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: #456983;
  font-size: 0.85rem;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  background: rgba(91, 173, 220, 0.14);
  color: var(--medical-sky-700);
  font-size: 0.78rem;
  font-weight: 700;
}

.muted-copy,
.empty-copy {
  margin: 0;
  color: #567891;
}

.metric-stack {
  display: grid;
  gap: 0.2rem;
  color: #567891;
  font-size: 0.88rem;
}

.detail-grid,
.metric-band,
.report-grid {
  display: grid;
  gap: 0.85rem;
}

.panel-subcard {
  padding: 1rem;
  border-radius: 22px;
  background: #f9fcff;
  border: 1px solid #dcecf7;
  display: grid;
  gap: 1rem;
}

.tabs-shell {
  display: grid;
  gap: 1rem;
}

.tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tab-button {
  border: 1px solid #dcecf7;
  background: #f2f9ff;
  color: var(--medical-blue-900);
  border-radius: 999px;
  padding: 0.75rem 1rem;
  font-weight: 700;
  cursor: pointer;
}

.tab-button.active {
  background: linear-gradient(135deg, #0e5a92, #2d8dc7);
  color: #fff;
  border-color: transparent;
}

.tab-panels {
  display: grid;
}

.tab-panel {
  display: none;
  gap: 1rem;
}

.tab-panel.active {
  display: grid;
}

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

.detail-grid article,
.metric-band article,
.report-grid article {
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: #f7fbff;
  border: 1px solid #dcecf7;
  display: grid;
  gap: 0.3rem;
}

.detail-grid span,
.metric-band span,
.report-grid strong {
  color: #567891;
  font-size: 0.86rem;
}

.detail-grid strong,
.metric-band strong {
  color: var(--medical-blue-900);
}

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

.text-block {
  display: grid;
  gap: 0.35rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: #f7fbff;
  border: 1px solid #dcecf7;
}

.text-block p {
  margin: 0;
  color: #567891;
  line-height: 1.6;
}

.stack-list.compact,
.stack-list.compact.separated {
  gap: 0.6rem;
}

.checkbox-row {
  grid-column: 1 / -1;
  display: flex !important;
  align-items: center;
  gap: 0.7rem;
}

.checkbox-row input {
  width: auto;
}

.wrap-actions {
  gap: 0.6rem;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
}

.filter-bar,
.filter-fields {
  display: flex;
  align-items: end;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.filter-fields label {
  display: grid;
  gap: 0.35rem;
}

.filter-fields input {
  border: 1px solid rgba(44, 122, 194, 0.18);
  border-radius: 14px;
  padding: 0.75rem 0.9rem;
  background: rgba(255, 255, 255, 0.98);
}

.checkbox-tile {
  display: flex !important;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 0.95rem;
  border-radius: 18px;
  background: #f7fbff;
  border: 1px solid #dcecf7;
}

.checkbox-tile input {
  width: auto;
}

.staff-table-cell,
.staff-profile-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.staff-avatar-sm,
.staff-avatar-lg {
  border-radius: 50%;
  overflow: hidden;
  background: #e7f4ff;
  color: var(--medical-blue-900);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.staff-avatar-sm {
  width: 44px;
  height: 44px;
}

.staff-avatar-lg {
  width: 96px;
  height: 96px;
}

.staff-avatar-sm img,
.staff-avatar-lg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.app-modal {
  width: min(680px, calc(100vw - 2rem));
  padding: 0;
  border: 0;
  border-radius: 26px;
  background: transparent;
}

.app-modal::backdrop {
  background: rgba(11, 35, 57, 0.42);
}

.modal-card {
  display: grid;
  gap: 1rem;
  padding: 1.2rem;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(91, 173, 220, 0.18);
  box-shadow: 0 18px 40px rgba(44, 122, 194, 0.18);
}

.stack-list {
  display: grid;
  gap: 0.8rem;
}

.list-card {
  display: grid;
  gap: 0.4rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: #f7fbff;
  border: 1px solid #dcecf7;
}

.list-card p,
.list-card small {
  margin: 0;
  color: #587793;
}

.list-card-head {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.35rem;
}

.inline-actions button {
  padding: 0.55rem 0.8rem;
  font-size: 0.82rem;
}

.ghost-button {
  background: #ffffff;
  color: var(--medical-navy);
  border: 1px solid rgba(19, 60, 99, 0.16);
}

.mini-stat-list {
  display: grid;
  gap: 0.8rem;
}

.mini-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0.9rem;
  border-radius: 16px;
  background: #f5fbff;
  border: 1px solid #dcecf7;
}

.mini-stat span {
  color: #567891;
}

.mini-stat strong {
  color: var(--medical-blue-900);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1024px) {
  .layout-panel {
    display: block;
    min-height: 100vh;
  }

  .sidebar-panel {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(84vw, 300px);
    transform: translateX(-105%);
    transition: transform 0.24s ease;
    box-shadow: 0 18px 40px rgba(15, 71, 118, 0.28);
  }

  .layout-panel.sidebar-open .sidebar-panel {
    transform: translateX(0);
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    border: 0;
    background: rgba(11, 35, 57, 0.42);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease;
    z-index: 15;
  }

  .layout-panel.sidebar-open .sidebar-backdrop {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }

  .workspace-panel {
    width: 100%;
    padding: 0.8rem;
  }

  .mobile-toggle {
    display: inline-grid;
    place-items: center;
  }

  .topbar-panel {
    padding: 0.9rem;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-areas:
      "menu actions"
      "business business";
    align-items: start;
  }

  .left-panel {
    display: contents;
  }

  .mobile-toggle {
    grid-area: menu;
  }

  .business-context {
    grid-area: business;
    padding-top: 0.4rem;
  }

  .right-panel {
    grid-area: actions;
    justify-self: end;
    align-self: start;
  }
}

@media (max-width: 900px) {
  .hero-public,
  .page-hero-slim,
  .login-shell,
  .role-panel-grid,
  .content-grid.two,
  .content-grid.three,
  .form-grid.two,
  .section-head.split,
  .trust-strip,
  .final-cta,
  .module-showcase-card,
  .article-card-full {
    grid-template-columns: 1fr;
  }

  .topbar-public,
  .topbar-panel {
    border-radius: 28px;
  }

  .topbar-nav,
  .hero-actions,
  .right-panel {
    flex-wrap: wrap;
  }

  .highlights,
  .credibility-band,
  .route-grid,
  .public-footer-grid,
  .segment-strip-grid,
  .image-story-grid {
    grid-template-columns: 1fr;
  }

  .visual-dashboard {
    grid-template-columns: 1fr;
  }

  .section-title-row,
  .list-card-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .detail-grid,
  .metric-band {
    grid-template-columns: 1fr;
  }

  .tabs-nav {
    flex-direction: column;
  }

  .profile-menu,
  .alerts-panel {
    right: auto;
    left: 0;
    width: min(92vw, 360px);
  }
}

@media (max-width: 640px) {
  .page-shell,
  .workspace-panel {
    padding-inline: 0.75rem;
  }

  .topbar-public {
    border-radius: 24px;
  }

  .topbar-panel {
    padding: 0.75rem;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 0.75rem;
  }

  .business-context strong {
    font-size: 1.05rem;
  }

  .profile-trigger {
    max-width: min(62vw, 240px);
    padding: 0.35rem 0.6rem;
    gap: 0.55rem;
  }

  .profile-trigger .avatar {
    width: 34px;
    height: 34px;
    min-width: 34px;
  }

  .profile-trigger span:nth-child(2) {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.95rem;
  }

  .profile-trigger span:last-child {
    font-size: 0.9rem;
  }

  .right-panel {
    gap: 0.5rem;
  }

  .icon-button {
    width: 38px;
    height: 38px;
    border-radius: 14px;
  }

  .alerts-panel,
  .profile-menu {
    width: min(88vw, 340px);
  }

  .form-actions,
  .form-actions.split,
  .inline-actions {
    justify-content: stretch;
  }

  .form-actions button,
  .button-link,
  .inline-actions .button-link,
  .tab-button {
    width: 100%;
    justify-content: center;
  }

  .app-modal {
    width: calc(100vw - 1rem);
  }
}

.public-page {
  gap: 1.8rem;
}

.hero-public-advanced {
  align-items: center;
}

.hero-visual-advanced .visual-dashboard.stacked {
  grid-template-columns: 1.1fr 1fr;
}

.hero-visual-advanced .visual-dashboard.stacked.simple-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-visual-advanced .visual-dashboard.stacked.simple-cards .dashboard-card {
  min-height: 100%;
}

.solution-band,
.plans-advanced,
.faq-section,
.content-section,
.blog-hero,
.article-hero {
  gap: 1.25rem;
}

.problem-grid,
.faq-grid,
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.problem-card,
.faq-card,
.article-card,
.featured-article-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--medical-border);
  border-radius: 28px;
  box-shadow: 0 24px 50px rgba(20, 103, 163, 0.08);
}

.problem-card,
.faq-card,
.article-card {
  padding: 1.35rem;
}

.problem-card h3,
.faq-card h3,
.article-card h3,
.featured-article-card h2 {
  margin: 0 0 0.7rem;
  color: var(--medical-navy);
}

.problem-card p,
.faq-card p,
.article-card p,
.featured-article-card p,
.helper-copy {
  margin: 0;
  color: #567891;
  line-height: 1.6;
}

.segment-strip {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.segment-strip span,
.article-category,
.field-hint {
  display: inline-flex;
  width: fit-content;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: #edf6ff;
  color: var(--medical-blue);
  font-size: 0.82rem;
  font-weight: 700;
}

.article-card {
  display: grid;
  gap: 0.9rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.article-card:hover,
.featured-article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 52px rgba(20, 103, 163, 0.14);
}

.article-card-full {
  min-height: 100%;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.1fr);
  padding: 1rem;
}

.article-card-body {
  display: grid;
  gap: 0.8rem;
  align-content: start;
}

.secondary-sticky {
  margin-top: 1rem;
}

.article-footer,
.article-meta-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  color: #69879e;
  font-size: 0.9rem;
}

.article-card-media {
  min-height: 220px;
}

.featured-article-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  overflow: hidden;
}

.public-footer {
  margin-top: 2rem;
  padding: 1.8rem;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--medical-border);
  border-radius: 32px;
  box-shadow: 0 18px 42px rgba(20, 103, 163, 0.08);
}

.split-feature {
  align-items: start;
}

.final-cta-advanced {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(231, 245, 255, 0.9)),
    radial-gradient(circle at top right, rgba(93, 188, 232, 0.18), transparent 30%);
  border: 1px solid rgba(20, 103, 163, 0.16);
}

.public-footer-grid {
  grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr));
}

.public-footer section {
  display: grid;
  gap: 0.6rem;
  align-content: start;
}

.footer-brand {
  margin-bottom: 0.2rem;
}

.public-footer-copy,
.workspace-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.public-footer-copy {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--medical-border);
  color: #6a889f;
  font-size: 0.92rem;
}

.workspace-footer {
  margin: 0 1.5rem 1.5rem;
  padding: 1rem 1.2rem 0;
  border-top: 1px solid rgba(196, 224, 239, 0.85);
  font-size: 0.92rem;
}

.public-footer-copy a,
.workspace-footer a {
  color: #1b5f95;
  text-decoration: none;
  font-weight: 600;
}

.public-footer-copy a:hover,
.workspace-footer a:hover {
  text-decoration: underline;
}

.featured-article-copy {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
}

.featured-article-media {
  min-height: 100%;
}

.featured-article-media img,
.editor-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 18px;
}

.content-editor-layout,
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 1rem;
}

.content-editor-side,
.content-editor-main,
.article-side {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.editor-preview-box {
  display: grid;
  gap: 0.7rem;
}

.editor-preview-box img {
  min-height: 180px;
}

.sticky-card {
  position: sticky;
  top: 1rem;
  display: grid;
  gap: 1rem;
}

.sticky-card h2 {
  margin: 0;
  color: var(--medical-navy);
}

.article-content {
  display: grid;
  gap: 1rem;
  color: #36536a;
  line-height: 1.75;
}

.article-content p,
.article-content ul,
.article-content ol,
.article-content h2,
.article-content h3 {
  margin: 0;
}

.article-content h2,
.article-content h3 {
  color: var(--medical-navy);
}

.article-content-card {
  padding: 1.5rem;
}

.signup-hero {
  align-items: start;
}

.signup-panel {
  align-self: stretch;
}

.signup-card {
  margin: 0;
  min-height: 100%;
}

.signup-summary {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: rgba(22, 91, 150, 0.08);
  border: 1px solid rgba(22, 91, 150, 0.14);
}

.signup-summary p {
  margin: 0;
}

.signup-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1rem;
}

.signup-links a {
  color: #165b96;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 1100px) {
  .featured-article-card,
  .content-editor-layout,
  .article-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .hero-visual-advanced .visual-dashboard.stacked {
    grid-template-columns: 1fr;
  }

  .hero-visual-advanced .visual-dashboard.stacked.simple-cards {
    grid-template-columns: 1fr;
  }

  .segment-strip,
  .article-meta-row,
  .article-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
