:root {
  --bg: #edf3f8;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --text: #18324a;
  --muted: #627789;
  --line: #d7e2ea;
  --primary: #0f6c77;
  --primary-strong: #114c8d;
  --shadow: 0 20px 45px rgba(20, 53, 81, 0.10);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --max: 1220px;
  --font-sans: "Prompt", "Noto Sans Thai", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(15, 108, 119, 0.10), transparent 25%),
    radial-gradient(circle at top right, rgba(17, 76, 141, 0.09), transparent 30%),
    linear-gradient(180deg, #f8fbfd 0%, #ebf1f6 100%);
}

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

body.modal-open {
  overflow: hidden;
}

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

.landing-home {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(233, 243, 251, 0.92), rgba(245, 250, 254, 0.96) 28%, #f6fbff 100%);
  color: #26415f;
}

.landing-home::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(247, 251, 254, 0.98) 0%, rgba(247, 251, 254, 0.95) 28%, rgba(247, 251, 254, 0.78) 48%, rgba(247, 251, 254, 0.42) 68%, rgba(247, 251, 254, 0.9) 100%),
    radial-gradient(circle at 12% 14%, rgba(36, 120, 196, 0.18), transparent 24%),
    radial-gradient(circle at 78% 12%, rgba(118, 176, 226, 0.16), transparent 18%),
    url("/static/BG.png");
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
  background-position: center, left top, right top, right -72px top 76px;
  background-size: cover, auto, auto, clamp(420px, 38vw, 700px) auto;
}

.landing-home > * {
  position: relative;
  z-index: 1;
}

.medilab-container {
  width: min(calc(100% - 48px), 1520px);
  margin: 0 auto;
}

.medilab-contact-row,
.medilab-social-row,
.medilab-navbar,
.medilab-nav,
.medilab-hero-actions,
.medilab-inline-stats,
.medilab-contact-actions {
  display: flex;
  align-items: center;
}

.medilab-contact-row,
.medilab-social-row {
  gap: 24px;
  flex-wrap: wrap;
}

.medilab-navbar-shell {
  position: relative;
  z-index: 12;
  background: rgba(255, 255, 255, 0.76);
  border-bottom: 1px solid rgba(23, 80, 132, 0.08);
  box-shadow: 0 14px 30px rgba(29, 77, 122, 0.08);
  backdrop-filter: blur(16px);
}

.medilab-navbar {
  justify-content: space-between;
  gap: 26px;
  padding: 20px 0;
}

.medilab-navbar-tools {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.medilab-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 800;
  color: #294a6f;
}

.medilab-brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.medilab-nav {
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  flex: 1;
}

.medilab-partner-logos {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  flex: 0 0 auto;
}

.medilab-partner-logo {
  display: block;
  width: auto;
  object-fit: contain;
}

.medilab-partner-logo-ms {
  height: 42px;
}

.medilab-partner-logo-mtec {
  height: 36px;
}

.medilab-nav a {
  text-decoration: none;
  color: #506e8d;
  font-size: 1.05rem;
  padding: 10px 6px;
  border-bottom: 3px solid transparent;
  transition: 0.2s ease;
}

.medilab-nav a:hover,
.medilab-nav a.is-active {
  color: #2478c4;
  border-color: #2478c4;
}

.medilab-navbar-toggle {
  display: none;
  min-width: 88px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(17, 76, 141, 0.10);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #234b73;
  box-shadow: 0 10px 22px rgba(29, 77, 122, 0.10);
  cursor: pointer;
}

.medilab-navbar-toggle-lines {
  display: inline-grid;
  gap: 4px;
  margin-right: 8px;
}

.medilab-navbar-toggle-lines span {
  display: block;
  width: 16px;
  height: 1.8px;
  border-radius: 999px;
  background: currentColor;
}

.medilab-navbar-toggle-label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.medilab-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(16, 35, 55, 0.18);
}

.medilab-nav-overlay[hidden] {
  display: none !important;
}

.medilab-navbar-logout {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(17, 76, 141, 0.10);
  background: rgba(255, 255, 255, 0.88);
  color: #3e6f9b;
  box-shadow: 0 8px 18px rgba(29, 77, 122, 0.08);
  text-decoration: none;
  transition: 0.2s ease;
}

.medilab-navbar-logout:hover {
  transform: translateY(-1px);
  background: #ffffff;
  color: #2478c4;
  box-shadow: 0 12px 24px rgba(29, 77, 122, 0.12);
}

.medilab-navbar-logout:focus-visible {
  outline: 3px solid rgba(36, 120, 196, 0.22);
  outline-offset: 3px;
}

.medilab-navbar-logout svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.medilab-cta,
.medilab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.2s ease;
}

.medilab-cta {
  background: #2478c4;
  color: #fff;
  padding: 14px 28px;
  white-space: nowrap;
  box-shadow: 0 16px 30px rgba(36, 120, 196, 0.22);
}

.medilab-cta:hover,
.medilab-btn:hover {
  transform: translateY(-1px);
}

.medilab-hero {
  position: relative;
  overflow: hidden;
  min-height: 550px;
  background:
    linear-gradient(92deg, rgba(246, 251, 255, 0.86) 0%, rgba(246, 251, 255, 0.82) 24%, rgba(246, 251, 255, 0.56) 46%, rgba(246, 251, 255, 0.16) 72%, rgba(246, 251, 255, 0.02) 100%);
}

.medilab-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 76% 24%, rgba(255, 255, 255, 0.42), transparent 26%),
    radial-gradient(circle at 88% 40%, rgba(27, 114, 193, 0.08), transparent 16%);
  pointer-events: none;
}

.medilab-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  min-height: 410px;
  max-width: 976px;
  margin: 0 auto;
}

.medilab-hero-copy {
  padding: 76px 0 112px;
  max-width: 720px;
}

.medilab-kicker,
.medilab-section-tag,
.choice-label {
  display: inline-block;
  color: #2478c4;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.88rem;
}

.medilab-hero-copy h1 {
  margin: 14px 0 12px;
  font-size: clamp(3.2rem, 2.4rem + 2vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: #234b73;
}

.medilab-hero-copy p {
  margin: 0;
  max-width: 640px;
  font-size: clamp(1.08rem, 1rem + 0.45vw, 1.55rem);
  line-height: 1.55;
  color: #516d88;
}

.medilab-hero-actions {
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.medilab-btn {
  padding: 14px 24px;
}

.medilab-btn-primary {
  background: #2478c4;
  color: #fff;
  box-shadow: 0 16px 28px rgba(36, 120, 196, 0.24);
}

.medilab-btn-light {
  background: rgba(255, 255, 255, 0.90);
  color: #234b73;
  border: 1px solid rgba(35, 75, 115, 0.12);
}

.medilab-btn-dark {
  background: rgba(17, 58, 100, 0.18);
  color: #fff;
  margin-top: 14px;
}

.medilab-inline-stats {
  gap: 26px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.medilab-inline-stats div {
  display: grid;
  gap: 2px;
}

.medilab-inline-stats strong {
  font-size: 2rem;
  color: #1f4c7b;
}

.medilab-inline-stats span {
  color: #6a8299;
  font-size: 0.92rem;
}

.medilab-choice-section {
  position: relative;
  margin-top: -136px;
  z-index: 3;
}

.medilab-choice-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 1.4vw, 22px);
  align-items: stretch;
  max-width: 976px;
  margin: 0 auto;
}

.medilab-choice-card {
  border-radius: 26px;
  box-shadow: 0 22px 45px rgba(31, 71, 107, 0.12);
}

.medilab-choice-primary {
  padding: 34px 34px 30px;
  color: #fff;
  background: linear-gradient(180deg, #2a80ce 0%, #1f6bb1 100%);
}

.medilab-choice-primary .choice-label {
  color: rgba(255, 255, 255, 0.76);
}

.medilab-choice-primary h2 {
  margin: 12px 0 14px;
  font-size: clamp(2rem, 1.55rem + 1vw, 3rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.medilab-choice-primary p {
  margin: 0;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.92);
}

.medilab-choice-glass {
  min-height: 100%;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
}

.choice-icon {
  width: 66px;
  height: 66px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #2a80ce;
  background: rgba(42, 128, 206, 0.10);
  font-weight: 800;
  font-size: 1.15rem;
}

.medilab-choice-glass h3 {
  margin: 0;
  min-height: 2.2em;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #284c73;
}

.medilab-choice-glass p {
  flex: 1;
  margin: 16px 0 18px;
  color: #67829a;
  line-height: 1.7;
}

.medilab-choice-glass a {
  margin-top: auto;
  color: #2478c4;
  text-decoration: none;
  font-weight: 700;
}

.medilab-detail-section,
.medilab-service-strip,
.medilab-contact-section {
  padding: 72px 0 0;
}

.medilab-detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 34px;
}

.medilab-detail-copy h2,
.medilab-contact-panel h2 {
  margin: 12px 0 14px;
  font-size: clamp(2rem, 1.5rem + 0.9vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #234b73;
}

.medilab-detail-copy p,
.medilab-highlight-panel p,
.medilab-contact-panel p {
  margin: 0;
  color: #617d96;
  line-height: 1.8;
  font-size: 1.02rem;
}

.medilab-feature-list {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.medilab-feature-list div,
.medilab-highlight-panel,
.medilab-service-card,
.medilab-contact-panel {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 38px rgba(33, 78, 118, 0.10);
}

.medilab-feature-list div {
  padding: 18px 20px;
  border-radius: 20px;
}

.medilab-feature-list strong,
.medilab-highlight-metrics strong {
  display: block;
  color: #25496f;
  font-size: 1.06rem;
}

.medilab-feature-list span,
.medilab-highlight-metrics span {
  color: #7187a1;
}

.medilab-highlight-panel {
  border-radius: 28px;
  padding: 30px;
}

.medilab-highlight-panel h3 {
  margin: 12px 0 12px;
  font-size: 2rem;
  color: #27496f;
  letter-spacing: -0.03em;
}

.medilab-highlight-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0 28px;
}

.medilab-highlight-metrics div {
  padding: 14px;
  border-radius: 18px;
  background: #f4f9fd;
}

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

.medilab-service-card {
  border-radius: 24px;
  padding: 26px;
}

.medilab-service-card span {
  display: block;
  color: #67829a;
  margin-bottom: 10px;
}

.medilab-service-card strong {
  font-size: clamp(2rem, 1.55rem + 0.8vw, 2.8rem);
  color: #22496f;
}

.medilab-contact-section {
  padding-bottom: 72px;
}

.medilab-contact-panel {
  border-radius: 30px;
  padding: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.medilab-contact-actions {
  gap: 14px;
  flex-wrap: wrap;
}

.standalone-page {
  width: min(calc(100% - 40px), var(--max));
  margin: 34px auto 56px;
}

.page-header {
  margin-bottom: 28px;
}

.page-kicker {
  display: inline-block;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.page-header h1 {
  margin: 10px 0 12px;
  font-size: clamp(2rem, 1.65rem + 1.4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.page-intro {
  max-width: 860px;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 1rem;
}

.page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 18px;
}

.page-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

.page-links a:hover,
.page-links a.is-active {
  color: var(--primary-strong);
  border-color: var(--primary-strong);
}

.page-section {
  margin-top: 30px;
}

.topbar {
  width: min(calc(100% - 32px), var(--max));
  margin: 18px auto 0;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: sticky;
  top: 12px;
  z-index: 50;
}

.brandmark {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brandmark img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #eef5fb 100%);
  padding: 4px;
  box-shadow: 0 10px 18px rgba(20, 53, 81, 0.08);
}

.brandmark strong,
.brandmark span {
  display: block;
}

.brandmark strong { font-size: 1rem; }
.brandmark span { color: var(--muted); font-size: 0.85rem; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.main-nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 999px;
  transition: 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--surface-strong);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 100%);
  box-shadow: 0 10px 24px rgba(17, 76, 141, 0.18);
}

.page-shell {
  width: min(calc(100% - 32px), var(--max));
  margin: 24px auto 40px;
}

.site-footer {
  width: min(calc(100% - 32px), var(--max));
  margin: 18px auto 28px;
}

.site-footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 24px;
  align-items: center;
  padding: 18px 22px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(36, 120, 196, 0.10), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(245, 249, 252, 0.92));
  box-shadow: 0 14px 34px rgba(20, 53, 81, 0.07);
  color: var(--muted);
}

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

.site-footer-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 14px;
  padding: 4px;
  background: linear-gradient(180deg, #ffffff 0%, #edf5fb 100%);
  box-shadow: 0 8px 18px rgba(20, 53, 81, 0.07);
}

.site-footer-brand strong,
.site-footer-brand span {
  display: block;
}

.site-footer-brand strong {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.1;
}

.site-footer-brand span {
  margin-top: 3px;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--muted);
}

.site-footer-copy {
  display: grid;
  gap: 4px;
  padding-left: 22px;
  border-left: 1px solid rgba(23, 80, 132, 0.12);
}

.site-footer-partners {
  display: grid;
  gap: 12px;
  padding-left: 22px;
  border-left: 1px solid rgba(23, 80, 132, 0.12);
}

.site-footer-copy small {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 700;
}

.site-footer-partners small {
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--primary);
  font-weight: 700;
}

.site-footer-copy p {
  margin: 0;
  line-height: 1.5;
  font-size: 0.9rem;
}

.site-footer-copy p + p {
  color: var(--text);
}

.site-footer-partner-logos {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer-partner-logo {
  display: block;
  width: auto;
  object-fit: contain;
  filter: saturate(1.02);
}

.site-footer-partner-logo-sss {
  height: 58px;
}

.site-footer-partner-logo-dentistry {
  height: 56px;
}

.site-footer-partner-logo-medical {
  height: 62px;
}

.hero-panel,
.section-block,
.dash-card,
.feature-card,
.metric-card,
.note-panel,
.embed-frame,
.summary-panel {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow);
}

.hero-panel,
.section-block {
  border-radius: var(--radius-xl);
  padding: 28px;
}

.hero-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
}

.hero-copy h1,
.section-heading h1,
.section-heading h2 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.hero-copy h1 {
  font-size: clamp(2rem, 1.6rem + 1.5vw, 3.2rem);
  margin-bottom: 12px;
}

.hero-copy p,
.section-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 18px;
  text-decoration: none;
  font-weight: 700;
  transition: 0.2s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 100%); }
.btn-secondary { color: var(--text); background: #fff; border: 1px solid var(--line); }

.hero-stats,
.card-grid {
  display: grid;
  gap: 16px;
}

.hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.two-up { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.three-up { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.four-up { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.stat-card,
.metric-card {
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #ffffff 0%, #f4f8fb 100%);
  border: 1px solid var(--line);
  padding: 18px;
}

.stat-card span,
.metric-card span,
.feature-tag,
.eyebrow {
  display: inline-block;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.03em;
}

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

.stat-card small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.section-block { margin-top: 22px; }
.section-block.compact { padding: 24px; }

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

.section-heading.spread { margin-bottom: 24px; }
.section-heading h1 { font-size: clamp(1.8rem, 1.55rem + 1vw, 2.65rem); margin-top: 6px; }
.section-heading h2 { font-size: clamp(1.45rem, 1.2rem + 0.7vw, 2rem); margin-top: 6px; }

.feature-card,
.dash-card {
  border-radius: var(--radius-lg);
  padding: 22px;
}

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

.feature-card h3,
.dash-card h3,
.summary-panel h3 {
  margin: 12px 0 8px;
}

.text-link {
  margin-top: 10px;
  display: inline-flex;
  color: var(--primary-strong);
  text-decoration: none;
  font-weight: 700;
}

.note-panel {
  border-radius: var(--radius-lg);
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.note-item {
  border-radius: var(--radius-md);
  padding: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
  border: 1px solid var(--line);
}

.note-item strong { display: block; margin-bottom: 8px; }
.note-item p { margin: 0; color: var(--muted); line-height: 1.65; }

.embed-frame {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.embed-frame iframe {
  width: 100%;
  height: 2400px;
  border: none;
  background: #fff;
}

.dashboard-empty-state {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow);
  border-radius: 24px;
  padding: 22px 24px;
}

.summary-panel,
.dashboard-grid,
.split-mini {
  display: grid;
  gap: 18px;
}

.status-box {
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
  border: 1px solid var(--line);
  min-width: 180px;
}

.status-box strong,
.status-box small {
  display: block;
}

.status-box strong { margin-top: 10px; font-size: 1.1rem; }
.status-box small { margin-top: 4px; color: var(--muted); }

.status-chip,
.flag-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
}

.status-chip { background: #eef4f8; color: var(--text); }
.risk-default { background: #eef4f8; color: var(--text); }
.risk-low { background: rgba(15, 108, 119, 0.10); color: var(--primary); }
.risk-medium { background: rgba(236, 143, 50, 0.18); color: #9a5800; }
.risk-high { background: rgba(181, 58, 58, 0.13); color: #a63030; }

.summary-panel {
  grid-template-columns: 1.1fr 0.9fr;
  padding: 22px;
  border-radius: var(--radius-lg);
  margin: 18px 0;
}

.summary-copy p { margin: 10px 0 0; color: var(--muted); line-height: 1.75; }
.flag-list { padding-left: 8px; }

.flag-wrap,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.flag-chip { background: rgba(17, 76, 141, 0.08); color: var(--primary-strong); }
.flag-chip-positive {
  background: rgba(15, 108, 119, 0.10);
  color: var(--primary);
}

.clean-list {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.75;
}

.detail-list {
  margin: 0;
  display: grid;
  gap: 14px;
}

.detail-list div {
  display: grid;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(215, 226, 234, 0.9);
}

.detail-list div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.detail-list dt {
  font-weight: 700;
  color: var(--primary-strong);
}

.detail-list dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.dashboard-empty-state h2 {
  margin: 10px 0 10px;
  font-size: clamp(1.7rem, 1.4rem + 1vw, 2.5rem);
  letter-spacing: -0.03em;
}

.dashboard-empty-state p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

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

.dashboard-person-card {
  display: grid;
  gap: 10px;
}

.dashboard-person-card h3 {
  margin: 0;
}

.dashboard-person-card p {
  margin: 0;
}

.dashboard-ai-copy {
  color: var(--muted);
  line-height: 1.7;
}

.dashboard-pipeline-note {
  text-align: left;
}

.table-action-link {
  display: inline-flex;
  align-items: center;
  color: var(--primary-strong);
  font-weight: 700;
  text-decoration: none;
}

.table-action-link:hover {
  text-decoration: underline;
}

.table-detail-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid rgba(36, 120, 196, 0.18);
  border-radius: 999px;
  background: rgba(36, 120, 196, 0.08);
  color: var(--primary-strong);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: 0.18s ease;
}

.table-detail-button:hover {
  background: rgba(36, 120, 196, 0.14);
  transform: translateY(-1px);
}

.table-detail-button:focus-visible {
  outline: 3px solid rgba(36, 120, 196, 0.16);
  outline-offset: 2px;
}

.table-delete-button {
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid rgba(181, 58, 58, 0.18);
  border-radius: 999px;
  background: rgba(181, 58, 58, 0.08);
  color: #8f2d2d;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: 0.18s ease;
}

.table-delete-button:hover {
  background: rgba(181, 58, 58, 0.14);
  transform: translateY(-1px);
}

.table-delete-button:focus-visible {
  outline: 3px solid rgba(181, 58, 58, 0.16);
  outline-offset: 2px;
}

.dashboard-delete-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 24px;
}

.dashboard-delete-modal[hidden] {
  display: none !important;
}

.dashboard-delete-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 38, 58, 0.38);
  backdrop-filter: blur(4px);
}

.dashboard-delete-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  padding: 28px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(181, 58, 58, 0.10), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 252, 0.98));
  box-shadow: 0 32px 70px rgba(20, 53, 81, 0.24);
  border: 1px solid rgba(215, 226, 234, 0.95);
}

.dashboard-delete-dialog h2 {
  margin: 10px 0 12px;
  color: #8f2d2d;
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem);
  line-height: 1.08;
}

.dashboard-delete-dialog p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.dashboard-delete-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.dashboard-delete-confirm {
  background: linear-gradient(135deg, #b53a3a, #942f2f);
  color: #fff;
  box-shadow: 0 14px 30px rgba(181, 58, 58, 0.24);
}

.dashboard-delete-confirm:hover {
  transform: translateY(-1px);
}

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

.bar-list { display: grid; gap: 14px; }

.bar-row {
  display: grid;
  grid-template-columns: 140px 1fr 60px;
  align-items: center;
  gap: 12px;
}

.bar-label span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.bar-track {
  height: 12px;
  border-radius: 999px;
  background: #e6edf3;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-strong) 100%);
}

.table-shell { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }

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

th { color: var(--muted); font-size: 0.9rem; font-weight: 700; }
td { font-size: 0.96rem; }

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

.dashboard-page {
  width: min(calc(100% - 24px), 1600px);
}

.login-body {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(246, 250, 253, 0.86)),
    linear-gradient(180deg, #f7fbff 0%, #eaf2f8 100%);
}

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

.login-shell {
  width: min(100%, 1040px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
  align-items: stretch;
  gap: 0;
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 70px rgba(24, 69, 111, 0.14);
}

.login-brand-panel,
.login-card {
  min-width: 0;
}

.login-brand-panel {
  min-height: 560px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 28px;
  padding: clamp(30px, 4vw, 54px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.24)),
    linear-gradient(145deg, #0f6c77 0%, #185a92 58%, #2478c4 100%);
  color: #ffffff;
}

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

.login-brand-mark div {
  display: grid;
  gap: 2px;
}

.login-brand-mark img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  padding: 7px;
  box-shadow: 0 14px 32px rgba(11, 52, 84, 0.18);
}

.login-brand-mark strong {
  font-size: 1.2rem;
  line-height: 1.1;
}

.login-brand-mark span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.88rem;
}

.login-brand-copy {
  align-self: center;
  display: grid;
  gap: 14px;
}

.login-brand-panel h1 {
  margin: 0;
  max-width: 13ch;
  font-size: clamp(2.35rem, 2rem + 1.35vw, 3.65rem);
  line-height: 1.06;
  letter-spacing: 0;
}

.login-brand-panel p,
.login-card p {
  margin: 0;
  line-height: 1.75;
}

.login-brand-panel p {
  max-width: 48ch;
  color: rgba(255, 255, 255, 0.78);
}

.login-brand-panel .eyebrow {
  color: rgba(255, 255, 255, 0.82);
}

.login-access-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.login-access-list span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.20);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.84rem;
  font-weight: 700;
}

.login-card {
  display: grid;
  align-content: center;
  padding: clamp(30px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.98);
}

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

.login-card h2 {
  margin: 0;
  font-size: clamp(1.75rem, 1.5rem + 0.65vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.login-card p {
  color: var(--muted);
}

.login-form {
  display: grid;
  gap: 15px;
  margin-top: 28px;
}

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

.login-form span {
  color: var(--primary-strong);
  font-weight: 700;
  font-size: 0.92rem;
}

.login-form input {
  width: 100%;
  min-height: 54px;
  border-radius: 14px;
  border: 1px solid #d5e2ec;
  padding: 0 15px;
  font: inherit;
  color: var(--text);
  background: #f8fbfd;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.login-form input:focus {
  outline: none;
  border-color: rgba(36, 120, 196, 0.58);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(36, 120, 196, 0.10);
}

.login-form .btn {
  min-height: 54px;
  margin-top: 6px;
  border-radius: 14px;
}

.login-error {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(181, 58, 58, 0.10);
  color: #8f2d2d;
  border: 1px solid rgba(181, 58, 58, 0.12);
  line-height: 1.6;
}

.dashboard-overview-shell,
.dashboard-visual-grid,
.dashboard-focus-grid {
  display: grid;
  gap: 22px;
}

.dashboard-compact-overview,
.dashboard-support-grid {
  display: grid;
  gap: 22px;
}

.dashboard-support-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: stretch;
}

.dashboard-overview-shell {
  grid-template-columns: minmax(0, 1.38fr) minmax(360px, 0.62fr);
  align-items: stretch;
  gap: 28px;
}

.dashboard-overview-card {
  padding: 38px 40px 34px;
  background:
    radial-gradient(circle at top left, rgba(36, 120, 196, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 247, 252, 0.94));
}

.dashboard-directory-overview-card .dashboard-overview-copy h1 {
  max-width: 16ch;
}

.dashboard-overview-copy {
  max-width: 980px;
}

.dashboard-overview-copy h1 {
  margin: 10px 0 12px;
  max-width: 11ch;
  font-size: clamp(2.25rem, 1.8rem + 1.25vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  white-space: normal;
  overflow-wrap: normal;
}

.dashboard-overview-copy p {
  max-width: 52ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
  font-size: 1.02rem;
}

.dashboard-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.dashboard-stat-card {
  min-width: 0;
  min-height: 168px;
  padding: 22px 22px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(215, 226, 234, 0.95);
  box-shadow: 0 18px 36px rgba(20, 53, 81, 0.08);
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 10px;
  align-content: start;
}

.dashboard-stat-card span,
.dashboard-stat-card small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.dashboard-stat-card span {
  font-size: 1rem;
  font-weight: 600;
}

.dashboard-stat-card small {
  max-width: 18ch;
  font-size: 0.95rem;
  line-height: 1.55;
}

.dashboard-stat-card strong {
  font-size: clamp(2.15rem, 1.8rem + 0.9vw, 2.8rem);
  line-height: 1;
  color: var(--primary-strong);
}

.dashboard-stat-card-primary {
  background: linear-gradient(145deg, #2478c4 0%, #176d91 100%);
}

.dashboard-stat-card-primary span,
.dashboard-stat-card-primary small,
.dashboard-stat-card-primary strong {
  color: #fff;
}

.dashboard-risk-board,
.dashboard-mix-card,
.dashboard-communities-card,
.dashboard-priority-card,
.dashboard-recent-card {
  padding: 30px;
}

.dashboard-risk-board {
  display: grid;
  align-content: start;
  gap: 20px;
  padding: 34px 30px 30px;
  background:
    radial-gradient(circle at top right, rgba(36, 120, 196, 0.10), transparent 22%),
    linear-gradient(180deg, rgba(255, 253, 252, 0.98), rgba(247, 244, 249, 0.95));
}

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

.dashboard-panel-head-compact {
  margin-bottom: 12px;
}

.dashboard-panel-head h2,
.dashboard-panel-head h3 {
  margin: 6px 0 0;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--primary-strong);
}

.dashboard-panel-head h2 {
  max-width: none;
  font-size: clamp(1.6rem, 1.3rem + 0.8vw, 2.2rem);
}

.dashboard-panel-head h3 {
  font-size: 1.2rem;
}

.dashboard-panel-note {
  padding: 8px 12px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(215, 226, 234, 0.95);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.dashboard-risk-board .dashboard-panel-head {
  margin-bottom: 0;
}

.dashboard-risk-board .dashboard-panel-head h2 {
  max-width: 8ch;
  font-size: clamp(1.55rem, 1.3rem + 0.7vw, 2rem);
}

.dashboard-risk-stack {
  display: grid;
  gap: 18px;
}

.dashboard-risk-row {
  display: grid;
  grid-template-columns: 126px 1fr 56px;
  align-items: center;
  gap: 12px;
}

.dashboard-risk-label strong,
.dashboard-mini-meta strong,
.dashboard-community-head strong,
.dashboard-priority-main h3 {
  display: block;
}

.dashboard-risk-label span,
.dashboard-mini-meta span,
.dashboard-community-head span,
.dashboard-priority-main p,
.dashboard-priority-main small {
  color: var(--muted);
}

.dashboard-risk-track,
.dashboard-mini-track {
  height: 14px;
  border-radius: 999px;
  background: rgba(214, 225, 235, 0.96);
  overflow: hidden;
}

.dashboard-risk-fill,
.dashboard-mini-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #56ccb7 0%, #2478c4 100%);
}

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

.dashboard-pill-card {
  min-height: 96px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(215, 226, 234, 0.96);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

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

.dashboard-pill-card strong {
  font-size: 1.35rem;
  color: var(--primary-strong);
}

.dashboard-visual-grid {
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
}

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

.dashboard-community-grid-compact {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.dashboard-community-card {
  padding: 20px;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8fb 100%);
  border: 1px solid rgba(215, 226, 234, 0.95);
}

.dashboard-community-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-community-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.dashboard-community-metrics div {
  padding: 12px;
  border-radius: 16px;
  background: rgba(245, 249, 252, 0.98);
}

.dashboard-community-metrics small {
  display: block;
  color: var(--muted);
}

.dashboard-community-metrics strong {
  display: block;
  margin-top: 6px;
  color: var(--primary-strong);
  font-size: 1.1rem;
}

.dashboard-split-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.dashboard-mini-panel {
  padding: 20px;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8fb 100%);
  border: 1px solid rgba(215, 226, 234, 0.95);
}

.dashboard-mini-panel h3 {
  margin: 0 0 14px;
}

.dashboard-mini-bars {
  display: grid;
  gap: 12px;
}

.dashboard-mini-row {
  display: grid;
  gap: 8px;
}

.dashboard-mini-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-status-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.dashboard-status-cloud-compact .dashboard-status-chip-card {
  min-width: 132px;
}

.dashboard-status-chip-card {
  min-width: 170px;
  padding: 15px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(215, 226, 234, 0.95);
  display: grid;
  gap: 4px;
}

.dashboard-status-chip-card span {
  color: var(--muted);
}

.dashboard-status-chip-card strong {
  font-size: 1.35rem;
  color: var(--primary-strong);
}

.dashboard-flag-zone {
  margin-top: 18px;
}

.dashboard-focus-grid {
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
}

.dashboard-table-card {
  padding: 30px;
}

.dashboard-table-toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 520px);
  gap: 16px;
  margin: 8px 0 18px;
  align-items: end;
}

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

.dashboard-filter-field span {
  color: var(--primary-strong);
  font-weight: 700;
}

.dashboard-filter-field input,
.dashboard-filter-field select {
  min-height: 50px;
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 0 16px;
  font: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.96);
}

.dashboard-table-empty {
  margin-top: 16px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(215, 226, 234, 0.95);
  color: var(--muted);
  text-align: center;
}

.dashboard-muted-note {
  margin: 0;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(245, 249, 252, 0.98);
  border: 1px dashed rgba(188, 209, 224, 0.95);
  color: var(--muted);
  line-height: 1.65;
}

.dashboard-directory-table {
  margin-top: 4px;
}

.dashboard-directory-table table {
  min-width: 920px;
}

.dashboard-directory-table th {
  white-space: nowrap;
}

.dashboard-directory-table td {
  vertical-align: middle;
  line-height: 1.55;
}

.dashboard-directory-table td strong {
  color: var(--primary-strong);
}

.dashboard-directory-table td small {
  color: var(--muted);
}

.dashboard-priority-list {
  display: grid;
  gap: 14px;
}

.dashboard-priority-item {
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfd 100%);
  border: 1px solid rgba(215, 226, 234, 0.95);
  display: grid;
  gap: 14px;
}

.dashboard-priority-main,
.dashboard-priority-badges,
.dashboard-priority-foot,
.dashboard-person-head {
  display: flex;
  gap: 12px;
}

.dashboard-priority-main {
  align-items: flex-start;
  justify-content: space-between;
}

.dashboard-priority-main h3 {
  margin: 0;
  font-size: 1.2rem;
}

.dashboard-priority-main p,
.dashboard-priority-main small,
.dashboard-location {
  margin: 4px 0 0;
}

.dashboard-priority-badges {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.dashboard-priority-foot {
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.95rem;
}

.dashboard-record-grid-modern {
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  gap: 20px;
}

.dashboard-person-card-modern {
  padding: 26px;
  background:
    radial-gradient(circle at top right, rgba(36, 120, 196, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 248, 252, 0.96));
}

.dashboard-person-head {
  align-items: center;
  justify-content: space-between;
}

.dashboard-person-card-modern small {
  color: var(--muted);
  line-height: 1.6;
}

.screening-detail-page {
  width: min(calc(100% - 24px), 1180px);
}

.screening-detail-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.screening-detail-actions .btn {
  border: 0;
  cursor: pointer;
}

.screening-report-sheet {
  padding: clamp(22px, 3vw, 40px);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f8fbfd);
  border: 1px solid rgba(215, 226, 234, 0.95);
  box-shadow: var(--shadow);
}

.screening-report-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 24px;
  align-items: start;
  padding-bottom: 24px;
  border-bottom: 2px solid rgba(21, 92, 135, 0.14);
}

.screening-report-brand,
.screening-report-meta,
.screening-report-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.screening-report-brand {
  grid-column: 1 / -1;
}

.screening-report-brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  padding: 5px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
}

.screening-report-brand span,
.screening-report-profile span,
.screening-report-footer span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
}

.screening-report-brand strong {
  display: block;
  color: var(--primary-strong);
  font-size: 1.08rem;
}

.screening-report-title h1 {
  margin: 8px 0 10px;
  font-size: clamp(2rem, 1.55rem + 1.35vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: 0;
  color: var(--primary-strong);
}

.screening-report-title p {
  max-width: 76ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.screening-report-meta {
  justify-content: stretch;
  align-self: stretch;
  padding: 16px;
  border-radius: 14px;
  background: #f6fafc;
  border: 1px solid rgba(215, 226, 234, 0.95);
}

.screening-report-meta div {
  min-width: 0;
  flex: 1 1 120px;
}

.screening-report-meta span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.screening-report-meta strong {
  display: block;
  margin-top: 5px;
  color: var(--primary-strong);
  overflow-wrap: anywhere;
}

.screening-report-profile {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.screening-report-profile div,
.screening-report-panel,
.screening-section-card,
.screening-metric-tile,
.screening-photo-grid figure {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(215, 226, 234, 0.95);
}

.screening-report-profile div {
  min-height: 88px;
  padding: 14px 16px;
  border-radius: 12px;
  display: grid;
  align-content: start;
  gap: 6px;
}

.screening-report-profile strong {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.screening-report-section {
  margin-top: 26px;
}

.screening-report-section-head {
  margin-bottom: 14px;
}

.screening-report-section-head h2 {
  margin: 6px 0 0;
  color: var(--primary-strong);
  font-size: clamp(1.3rem, 1.1rem + 0.45vw, 1.7rem);
  line-height: 1.18;
  letter-spacing: 0;
}

.screening-metric-grid,
.screening-report-summary-grid,
.screening-section-card-grid,
.screening-photo-grid {
  display: grid;
  gap: 14px;
}

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

.screening-metric-tile {
  min-height: 142px;
  padding: 18px;
  border-radius: 18px;
  display: grid;
  align-content: start;
  gap: 8px;
}

.screening-metric-tile span {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.5;
}

.screening-metric-tile strong {
  color: var(--primary-strong);
  font-size: 1.65rem;
  line-height: 1.1;
}

.screening-metric-tile p,
.screening-empty-copy,
.screening-ai-summary {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.screening-metric-good {
  border-color: rgba(15, 108, 119, 0.18);
  background: rgba(237, 249, 246, 0.96);
}

.screening-metric-watch {
  border-color: rgba(236, 143, 50, 0.20);
  background: rgba(255, 248, 237, 0.96);
}

.screening-metric-alert {
  border-color: rgba(181, 58, 58, 0.18);
  background: rgba(255, 243, 243, 0.96);
}

.screening-report-summary-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.screening-report-panel {
  padding: 20px;
  border-radius: 20px;
}

.screening-note-list,
.screening-section-card dl {
  margin: 0;
  display: grid;
}

.screening-note-list {
  gap: 12px;
}

.screening-note-list div,
.screening-section-card dl div {
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(215, 226, 234, 0.9);
}

.screening-note-list div:last-child,
.screening-section-card dl div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.screening-note-list dt,
.screening-section-card dt {
  color: var(--primary-strong);
  font-weight: 700;
  line-height: 1.5;
}

.screening-note-list dd,
.screening-section-card dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.screening-section-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.screening-section-card {
  padding: 18px 20px;
  border-radius: 12px;
  break-inside: avoid;
}

.screening-section-card.is-wide {
  grid-column: 1 / -1;
}

.screening-section-card h3 {
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(21, 92, 135, 0.14);
  color: var(--primary-strong);
  font-size: 1.08rem;
  line-height: 1.45;
}

.screening-answer-table-shell {
  width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(215, 226, 234, 0.95);
  border-radius: 12px;
  background: #ffffff;
}

.screening-answer-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}

.screening-answer-table th,
.screening-answer-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(215, 226, 234, 0.82);
  text-align: left;
  vertical-align: middle;
  line-height: 1.55;
}

.screening-answer-table th {
  background: #f3f8fb;
  color: var(--primary-strong);
  font-size: 0.92rem;
  font-weight: 800;
}

.screening-answer-table th:first-child,
.screening-answer-table td:first-child {
  width: 68%;
}

.screening-answer-table th:last-child,
.screening-answer-table td:last-child {
  width: 32%;
  text-align: center;
}

.screening-answer-table tr:last-child td {
  border-bottom: 0;
}

.screening-answer-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  padding: 5px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.9rem;
  white-space: nowrap;
}

.screening-answer-badge.is-no {
  background: rgba(22, 128, 85, 0.12);
  color: #087047;
  border: 1px solid rgba(22, 128, 85, 0.22);
}

.screening-answer-badge.is-yes {
  background: rgba(236, 143, 50, 0.16);
  color: #9a5800;
  border: 1px solid rgba(236, 143, 50, 0.26);
}

.screening-answer-badge.is-neutral {
  background: #eef4f8;
  color: var(--muted);
  border: 1px solid rgba(91, 112, 131, 0.18);
}

.screening-answer-note {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.55;
}

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

.screening-photo-grid figure {
  margin: 0;
  padding: 12px;
  border-radius: 18px;
  display: grid;
  gap: 10px;
  break-inside: avoid;
}

.screening-photo-grid img,
.screening-photo-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  background: #eef4f8;
}

.screening-photo-grid img {
  object-fit: cover;
}

.screening-photo-grid figure.is-empty {
  background: rgba(248, 251, 253, 0.92);
}

.screening-photo-placeholder {
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 18px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed rgba(91, 112, 131, 0.3);
}

.screening-photo-placeholder span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--primary-strong);
  font-weight: 800;
}

.screening-photo-placeholder strong {
  color: var(--muted);
  font-size: 0.92rem;
}

.screening-photo-grid figcaption {
  display: grid;
  gap: 4px;
}

.screening-photo-grid figcaption strong {
  color: var(--primary-strong);
}

.screening-photo-grid figcaption small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.screening-photo-grid figcaption span {
  color: var(--muted);
  line-height: 1.55;
}

.screening-report-footer {
  justify-content: space-between;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(215, 226, 234, 0.95);
}

.screening-report-footer div {
  min-width: 220px;
}

.screening-report-footer strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
}

@media (max-width: 1420px) {
  .dashboard-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1040px) {
  .landing-home::before {
    background-position: center, left top, right top, right -120px top 112px;
    background-size: cover, auto, auto, clamp(340px, 44vw, 520px) auto;
  }

  .medilab-navbar,
  .medilab-contact-panel {
    flex-direction: column;
    align-items: flex-start;
  }

  .medilab-nav {
    justify-content: flex-start;
  }

  .medilab-hero-grid,
  .medilab-choice-grid,
  .medilab-detail-grid,
  .medilab-service-grid {
    grid-template-columns: 1fr;
  }

  .login-shell {
    grid-template-columns: 1fr;
    max-width: 720px;
    border-radius: 24px;
  }

  .login-brand-panel {
    min-height: 300px;
  }

  .medilab-choice-section {
    margin-top: -60px;
  }

  .medilab-hero {
    min-height: auto;
    padding-bottom: 80px;
  }

  .medilab-hero-copy {
    padding: 72px 0 24px;
  }

  .medilab-highlight-metrics {
    grid-template-columns: 1fr;
  }

  .topbar,
  .page-shell,
  .site-footer {
    width: min(calc(100% - 20px), var(--max));
  }

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

  .site-footer-copy {
    padding-left: 0;
    padding-top: 14px;
    border-left: 0;
    border-top: 1px solid rgba(23, 80, 132, 0.12);
  }

  .site-footer-partners {
    padding-left: 0;
    padding-top: 14px;
    border-left: 0;
    border-top: 1px solid rgba(23, 80, 132, 0.12);
  }

  .hero-panel,
  .summary-panel,
  .dashboard-overview-shell,
  .dashboard-visual-grid,
  .dashboard-support-grid,
  .dashboard-grid,
  .dashboard-record-grid,
  .two-up,
  .three-up,
  .four-up,
  .note-panel {
    grid-template-columns: 1fr;
  }

  .dashboard-stat-grid,
  .dashboard-community-grid,
  .dashboard-split-panels,
  .dashboard-record-grid-modern,
  .dashboard-table-toolbar,
  .screening-report-profile,
  .screening-metric-grid,
  .screening-report-summary-grid,
  .screening-section-card-grid,
  .screening-photo-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-overview-copy h1 {
    white-space: normal;
  }
}

@media (max-width: 760px) {
  .landing-home::before {
    background-position: center, left top, right top, right -160px top 132px;
    background-size: cover, auto, auto, clamp(280px, 58vw, 380px) auto;
  }

  .medilab-container {
    width: min(calc(100% - 24px), 1520px);
  }

  .login-page {
    padding: 16px;
    align-items: start;
  }

  .login-body {
    background: linear-gradient(180deg, #f7fbff 0%, #eaf2f8 100%);
  }

  .login-shell {
    border-radius: 20px;
  }

  .login-brand-panel {
    min-height: auto;
    gap: 18px;
    padding: 22px;
  }

  .login-brand-panel h1 {
    max-width: none;
    font-size: clamp(1.9rem, 9vw, 2.85rem);
  }

  .login-brand-copy {
    gap: 10px;
  }

  .login-brand-mark img {
    width: 48px;
    height: 48px;
    border-radius: 15px;
  }

  .login-access-list {
    gap: 8px;
  }

  .login-access-list span {
    min-height: 30px;
    padding: 6px 9px;
    font-size: 0.78rem;
  }

  .login-card {
    padding: 24px 22px;
  }

  .medilab-navbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 14px 0;
    position: relative;
    overflow: visible;
    z-index: 121;
  }

  .medilab-brand {
    min-width: 0;
    gap: 12px;
    font-size: 1.15rem;
  }

  .medilab-brand img {
    width: 40px;
    height: 40px;
  }

  .medilab-partner-logos {
    display: none;
  }

  .medilab-navbar-tools {
    justify-self: end;
  }

  .medilab-navbar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 123;
  }

  .medilab-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 122;
    width: 100%;
    margin: 0;
    padding: 12px;
    flex: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
    border: 1px solid rgba(214, 225, 235, 0.96);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 20px 44px rgba(20, 53, 81, 0.14);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.22s ease, opacity 0.22s ease;
    max-height: min(70vh, 420px);
    overflow-y: auto;
    scrollbar-width: none;
  }

  .medilab-nav::-webkit-scrollbar,
  .main-nav::-webkit-scrollbar {
    display: none;
  }

  body.medilab-nav-open {
    overflow: auto;
  }

  body.medilab-nav-open .medilab-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .medilab-nav a {
    padding: 13px 14px;
    border-radius: 16px;
    border: 1px solid rgba(36, 120, 196, 0.10);
    background: #ffffff;
    color: #234b73;
    font-size: 1rem;
    white-space: nowrap;
  }

  .medilab-nav a:hover,
  .medilab-nav a.is-active {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(135deg, #2478c4 0%, #1f6bb1 100%);
    box-shadow: 0 12px 22px rgba(36, 120, 196, 0.16);
  }

  .medilab-navbar-logout {
    width: 40px;
    height: 40px;
  }

  .medilab-nav-overlay {
    display: none !important;
  }

  .medilab-cta,
  .medilab-btn {
    width: 100%;
  }

  .medilab-hero-copy h1 {
    font-size: clamp(2.7rem, 13vw, 4rem);
  }

  .medilab-hero-copy p {
    font-size: 1.05rem;
  }

  .medilab-inline-stats {
    gap: 18px;
  }

  .medilab-choice-primary,
  .medilab-choice-glass,
  .medilab-highlight-panel,
  .medilab-service-card,
  .medilab-contact-panel {
    padding: 24px;
  }

  .medilab-choice-glass h3 {
    font-size: 1.5rem;
  }

  .topbar {
    border-radius: 24px;
    padding: 14px;
    position: static;
  }

  .site-footer-inner {
    gap: 14px;
    padding: 18px;
    border-radius: 20px;
  }

  .site-footer-brand,
  .site-footer-copy,
  .site-footer-partners {
    align-items: flex-start;
  }

  .site-footer-partner-logos {
    gap: 14px;
  }

  .site-footer-partner-logo-sss {
    height: 50px;
  }

  .site-footer-partner-logo-dentistry {
    height: 48px;
  }

  .site-footer-partner-logo-medical {
    height: 54px;
  }

  .topbar,
  .main-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    width: 100%;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .main-nav a {
    flex: 0 0 auto;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(17, 76, 141, 0.08);
    white-space: nowrap;
  }

  .hero-panel,
  .section-block,
  .feature-card,
  .dash-card,
  .metric-card,
  .summary-panel {
    padding: 20px;
  }

  .standalone-page {
    width: min(calc(100% - 24px), var(--max));
    margin: 24px auto 40px;
  }

  .hero-stats { grid-template-columns: 1fr; }
  .bar-row,
  .split-mini { grid-template-columns: 1fr; }
  .dashboard-risk-row,
  .dashboard-community-metrics,
  .dashboard-priority-main,
  .dashboard-priority-foot,
  .dashboard-stat-grid,
  .dashboard-pill-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-priority-main,
  .dashboard-priority-badges,
  .dashboard-person-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .screening-report-hero {
    grid-template-columns: 1fr;
  }
  .screening-report-meta,
  .screening-detail-actions {
    justify-content: flex-start;
  }
  .embed-frame iframe { height: 1600px; }
}

@page {
  size: A4;
  margin: 10mm;
}

@media print {
  html {
    scroll-behavior: auto;
  }

  body {
    background: #ffffff !important;
    color: #152f46;
    font-size: 9.5pt;
  }

  .no-print,
  .medilab-navbar-shell,
  .medilab-nav-overlay,
  .site-footer {
    display: none !important;
  }

  .standalone-page,
  .screening-detail-page {
    width: 100%;
    margin: 0;
  }

  .screening-report-sheet {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #ffffff !important;
    box-shadow: none;
  }

  .screening-report-hero {
    grid-template-columns: minmax(0, 1fr) 52mm;
    gap: 8mm;
    padding-bottom: 4mm;
    border-bottom: 1px solid rgba(21, 92, 135, 0.22);
  }

  .screening-report-hero,
  .screening-report-footer {
    break-inside: avoid;
  }

  .screening-report-brand {
    grid-column: 1 / -1;
    gap: 8px;
  }

  .screening-report-brand img {
    width: 34px;
    height: 34px;
    border-radius: 8px;
  }

  .screening-report-brand span,
  .screening-report-profile span,
  .screening-report-footer span {
    font-size: 7.5pt;
  }

  .screening-report-brand strong {
    font-size: 9.5pt;
  }

  .screening-report-title h1 {
    margin: 3px 0 2px;
    font-size: 18pt;
    line-height: 1.08;
  }

  .screening-report-title p {
    display: none;
  }

  .screening-report-meta {
    padding: 8px 10px;
    border-radius: 8px;
    gap: 8px;
  }

  .screening-report-meta span {
    font-size: 7.5pt;
  }

  .screening-report-meta strong {
    margin-top: 2px;
    font-size: 9pt;
  }

  .screening-report-profile {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
    margin-top: 5mm;
  }

  .screening-report-profile div {
    min-height: 0;
    padding: 6px 8px;
    border-radius: 7px;
    gap: 2px;
  }

  .screening-report-profile strong {
    font-size: 8.8pt;
    line-height: 1.25;
  }

  .screening-report-section {
    margin-top: 5mm;
  }

  .screening-report-section-head {
    margin-bottom: 3mm;
  }

  .screening-report-section-head .eyebrow {
    font-size: 7.2pt;
  }

  .screening-report-section-head h2 {
    margin-top: 2px;
    font-size: 13pt;
    line-height: 1.15;
  }

  .screening-metric-grid,
  .screening-section-card-grid {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .screening-section-card.is-wide {
    grid-column: 1 / -1;
  }

  .screening-section-card.is-profile-duplicate {
    display: none;
  }

  .screening-section-card {
    padding: 7px 9px;
    border-radius: 7px;
    break-inside: avoid;
  }

  .screening-section-card h3 {
    margin-bottom: 5px;
    padding-bottom: 4px;
    font-size: 9.8pt;
    line-height: 1.2;
  }

  .screening-section-card dl {
    grid-template-columns: minmax(0, 1fr);
  }

  .screening-section-card dl div {
    grid-template-columns: minmax(32mm, 0.48fr) minmax(0, 1fr);
    gap: 6px;
    padding-bottom: 5px;
    border-bottom-color: rgba(215, 226, 234, 0.65);
  }

  .screening-section-card dl div.has-answer-table {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .screening-section-card dt {
    font-size: 8.2pt;
    line-height: 1.25;
  }

  .screening-section-card dd {
    font-size: 8.2pt;
    line-height: 1.3;
  }

  /* The shell is a <div> inside the <dl>, so the broad ".screening-section-card
     dl div" rule above would otherwise turn it into a 2-column grid and squeeze
     the table into the narrow first track. Force it back to a full-width block
     (specificity beats that rule, so no !important needed). */
  .screening-section-card dl .has-answer-table .screening-answer-table-shell {
    display: block;
    width: 100%;
    grid-template-columns: none;
    border: 1px solid rgba(215, 226, 234, 0.95);
    border-radius: 7px;
    overflow: visible;
  }

  .screening-answer-table {
    min-width: 0;
    font-size: 7.6pt;
    width: 100% !important;
    table-layout: fixed;
    border-collapse: collapse;
  }

  .screening-answer-table thead {
    display: table-header-group;
  }

  .screening-answer-table tr {
    display: table-row;
  }

  .screening-answer-table th,
  .screening-answer-table td {
    display: table-cell;
    padding: 1.25mm 3mm;
    border-bottom: 1px solid rgba(215, 226, 234, 0.75);
    line-height: 1.16;
    vertical-align: middle;
  }

  .screening-answer-table th {
    background: #f3f8fb !important;
    font-size: 7.7pt;
    font-weight: 800;
  }

  .screening-answer-table th:first-child,
  .screening-answer-table td:first-child {
    width: 70% !important;
    white-space: normal;
    overflow: visible;
    overflow-wrap: break-word;
  }

  .screening-answer-table th:last-child,
  .screening-answer-table td:last-child {
    width: 30% !important;
    text-align: center;
  }

  .screening-answer-badge {
    min-width: 21mm;
    padding: 1px 6px;
    font-size: 7.2pt;
  }

  .screening-answer-note {
    margin-top: 2px;
    font-size: 7.2pt;
    line-height: 1.25;
  }

  .screening-photo-section {
    break-before: page;
    page-break-before: always;
    margin-top: 0;
  }

  .screening-photo-section .screening-report-section-head {
    margin-bottom: 5mm;
    text-align: center;
  }

  .screening-photo-section .screening-report-section-head h2 {
    font-size: 16pt;
  }

  /* Page 2: conventional intraoral composite — frontal centred on top,
     buccals in the middle row, occlusals on the bottom row — sized to
     fill the A4 sheet in balanced proportion. */
  .screening-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15mm 12mm;
    max-width: 180mm;
    margin: 6mm auto 0;
  }

  .screening-photo-grid figure:first-child {
    grid-column: 1 / -1;
    width: 52%;
    margin-inline: auto;
  }

  .screening-report-profile div,
  .screening-report-panel,
  .screening-section-card,
  .screening-metric-tile,
  .screening-photo-grid figure {
    background: #ffffff !important;
    box-shadow: none;
  }

  .screening-photo-grid figure {
    padding: 5px;
    border-radius: 8px;
    gap: 5px;
    break-inside: avoid;
  }

  .screening-photo-grid img,
  .screening-photo-placeholder {
    border-radius: 6px;
    aspect-ratio: 4 / 3;
  }

  .screening-photo-grid figcaption {
    gap: 1px;
  }

  .screening-photo-grid figcaption strong {
    font-size: 8.8pt;
    line-height: 1.2;
  }

  .screening-photo-grid figcaption small {
    display: none;
  }

  .screening-photo-grid figcaption span {
    font-size: 7.2pt;
    line-height: 1.2;
  }

  .screening-report-footer {
    display: none;
  }
}
