@import url("https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:wght@400;700&family=Montserrat:wght@500;600;700;800&family=Source+Sans+3:wght@400;500;600;700&display=swap");

:root {
  --bg: #eef4ff;
  --card: #fbfdff;
  --ink: #101d3b;
  --muted: #2b4a73;
  --line: #c8d6ef;
  --accent: #2b68e2;
  --accent-risk: #c1671f;
  --accent-coverage: #1a8d84;
  --legend-stability-rgb: 47, 109, 211;
  --legend-stability-border: #9dbdee;
  --legend-risk-rgb: 193, 103, 31;
  --legend-risk-border: #e0b797;
  --legend-coverage-rgb: 151, 96, 228;
  --legend-coverage-border: #c7a9ee;
  --font-brand: "Montserrat", "Source Sans 3", "Avenir Next", "Segoe UI", sans-serif;
  --font-readable: "Atkinson Hyperlegible", "Source Sans 3", "Avenir Next", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  font-size: clamp(16.6px, 0.24vw + 16px, 18.8px);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  font-family: var(--font-readable);
  color: var(--ink);
  line-height: 1.66;
  letter-spacing: 0.002em;
  background:
    radial-gradient(1180px 680px at 100% 0%, rgba(168, 199, 255, 0.99) 0%, rgba(168, 199, 255, 0.5) 50%, transparent 82%),
    radial-gradient(1020px 560px at 0% 0%, rgba(191, 229, 255, 0.84) 0%, rgba(191, 229, 255, 0.28) 45%, transparent 76%),
    radial-gradient(900px 580px at 0% 100%, #dff7ee 0%, transparent 72%),
    var(--bg);
}

body.pref-large-text {
  font-size: 1.08em;
}

body.pref-high-contrast {
  --bg: #ffffff;
  --card: #ffffff;
  --ink: #08152f;
  --muted: #1a345f;
  --line: #6c8ec7;
  --accent: #0e4fd6;
}

body.pref-high-contrast .hero-substatements li,
body.pref-high-contrast .nav-button,
body.pref-high-contrast .mini-btn,
body.pref-high-contrast input,
body.pref-high-contrast select,
body.pref-high-contrast textarea {
  border-color: #4a70b7;
}

body.pref-reduced-motion *,
body.pref-reduced-motion *::before,
body.pref-reduced-motion *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  scroll-behavior: auto !important;
}

body.pref-colorblind-deuteranopia {
  --legend-stability-rgb: 35, 116, 217;
  --legend-stability-border: #8abaf0;
  --legend-risk-rgb: 194, 93, 14;
  --legend-risk-border: #dca26d;
  --legend-coverage-rgb: 116, 82, 214;
  --legend-coverage-border: #b29ce9;
}

body.pref-colorblind-protanopia {
  --legend-stability-rgb: 30, 122, 219;
  --legend-stability-border: #89c2ef;
  --legend-risk-rgb: 185, 100, 22;
  --legend-risk-border: #d9ab7b;
  --legend-coverage-rgb: 132, 88, 214;
  --legend-coverage-border: #b7a5eb;
}

body.pref-colorblind-tritanopia {
  --legend-stability-rgb: 34, 106, 211;
  --legend-stability-border: #88b3eb;
  --legend-risk-rgb: 194, 74, 25;
  --legend-risk-border: #d89574;
  --legend-coverage-rgb: 17, 141, 124;
  --legend-coverage-border: #84cdc1;
}

h1,
h2,
h3,
h4,
h5,
h6,
.hero-tag,
.brand-text strong,
.nav-button,
.mini-btn,
.tab-btn,
.action-btn,
.chip,
.bench-table th {
  font-family: var(--font-brand);
  letter-spacing: 0.01em;
}

p,
li,
dt,
dd,
td,
label,
input,
select,
textarea,
small {
  line-height: 1.64;
}

p {
  max-width: 66ch;
}

.site-loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background:
    radial-gradient(900px 420px at 10% 0%, rgba(220, 236, 255, 0.95) 0%, transparent 72%),
    radial-gradient(900px 540px at 90% 100%, rgba(226, 248, 236, 0.92) 0%, transparent 78%),
    rgba(238, 244, 255, 0.98);
  transition: opacity 420ms ease, visibility 420ms ease;
}

.loader-card {
  width: min(560px, 92vw);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(160deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: 0 24px 60px rgba(25, 52, 108, 0.18);
  padding: 1.35rem 1.2rem;
}

.loader-card h1 {
  margin: 0.4rem 0 0.46rem;
  font-size: clamp(1.3rem, 2.8vw, 2rem);
  line-height: 1.08;
}

.loader-card p {
  margin: 0;
  color: var(--muted);
}

.loader-bar {
  margin-top: 0.8rem;
  height: 12px;
  border-radius: 999px;
  border: 1px solid #b7caec;
  background: #eef5ff;
  overflow: hidden;
}

.loader-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(120deg, #2a5fb9 0%, #52a9f8 100%);
  box-shadow: 0 0 18px rgba(54, 109, 206, 0.42);
  transition: width 320ms ease;
}

.loader-meta {
  margin-top: 0.56rem !important;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #2c4f83 !important;
}

body.app-ready .site-loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.app-loading {
  overflow: hidden;
}

body.app-loading .top-nav,
body.app-loading .layout {
  opacity: 0.12;
  filter: blur(2px);
  transform: translateY(6px);
}

body.app-ready .top-nav,
body.app-ready .layout {
  opacity: 1;
  filter: none;
  transform: none;
  transition:
    opacity 360ms ease,
    filter 360ms ease,
    transform 360ms ease;
}

.page-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(760px 360px at 10% 6%, rgba(255, 255, 255, 0.96) 0%, transparent 76%),
    radial-gradient(620px 320px at 95% 16%, rgba(255, 255, 255, 0.74) 0%, transparent 78%);
}

.top-nav {
  width: min(1260px, 95vw);
  margin: 1.5rem auto 0.9rem;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 2;
}

.top-nav-auth {
  flex: 1 1 auto;
  min-height: 2.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.top-nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  flex-wrap: nowrap;
  justify-content: flex-end;
  margin-left: auto;
}

.nav-button-utility {
  background: linear-gradient(120deg, #2a5fb9 0%, var(--accent) 100%);
  border-color: #2a5fb9;
  color: #fff;
}

.nav-button-utility.nav-gear-button {
  width: 2.7rem;
  height: 2.7rem;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 8px 18px rgba(26, 65, 138, 0.22);
}

.nav-button-utility.nav-gear-button svg {
  width: 1.22rem;
  height: 1.22rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-button-utility.nav-profile-button {
  width: 2.7rem;
  height: 2.7rem;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 8px 18px rgba(26, 65, 138, 0.22);
}

.nav-button-utility.nav-profile-button svg {
  width: 1.18rem;
  height: 1.18rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.is-authenticated .nav-button-utility.nav-profile-button {
  border-color: #2c7044;
  background: linear-gradient(120deg, #2f8a55 0%, #45b26e 100%);
}

.nav-button-utility.nav-logout-button {
  width: 2.7rem;
  height: 2.7rem;
  min-height: 2.7rem;
  padding: 0;
  border-radius: 50%;
  border-color: #2a5fb9;
  background: linear-gradient(120deg, #244f98 0%, #3b77d0 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    0 8px 18px rgba(26, 65, 138, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-button-utility.nav-logout-button svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-button-utility.nav-logout-button[hidden],
.nav-button-utility.nav-logout-button[aria-hidden="true"] {
  display: none !important;
}

.nav-button-utility.nav-logout-button:hover {
  filter: brightness(1.04);
}

.nav-button-utility.nav-logout-button:active {
  transform: translateY(1px);
}

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

.a11y-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 1rem;
}

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

.a11y-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(9, 21, 45, 0.62);
}

.a11y-modal-panel {
  position: relative;
  width: min(960px, 96vw);
  max-height: min(86vh, 860px);
  overflow: auto;
  border: 1px solid #9db9e8;
  border-radius: 18px;
  background: linear-gradient(155deg, #ffffff 0%, #f4f9ff 100%);
  box-shadow: 0 30px 80px rgba(15, 38, 87, 0.3);
  padding: 1rem;
}

.a11y-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.6rem;
}

.a11y-modal-head h2 {
  margin: 0.18rem 0 0.28rem;
  font-size: 1.34rem;
}

.a11y-modal-head p {
  margin: 0;
  color: #27456e;
  max-width: 64ch;
}

.a11y-grid {
  margin-top: 0.82rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.55rem;
}

.a11y-block {
  border: 1px solid #c2d3ef;
  border-radius: 14px;
  background: #fff;
  padding: 0.66rem 0.7rem;
  display: grid;
  gap: 0.42rem;
  align-content: start;
}

.a11y-block h3 {
  margin: 0;
  font-size: 1rem;
}

.a11y-switch {
  display: flex;
  align-items: center;
  gap: 0.46rem;
  color: #1c3b63;
  font-size: 0.93rem;
}

.a11y-switch input {
  width: 1rem;
  height: 1rem;
  accent-color: #2b68e2;
}

.a11y-field {
  display: grid;
  gap: 0.22rem;
}

.a11y-field > span {
  color: #2e4b74;
  font-size: 0.82rem;
  font-weight: 700;
}

.a11y-field select {
  border: 1px solid #b8caea;
  border-radius: 10px;
  background: #fff;
  color: #13284a;
  padding: 0.44rem 0.5rem;
  font: inherit;
}

.a11y-translation {
  grid-column: span 2;
}

.a11y-meta {
  margin: 0;
  color: #2f507f;
  font-size: 0.82rem;
}

.a11y-preview {
  margin: 0;
  color: #19365d;
  font-size: 0.9rem;
  line-height: 1.54;
  padding: 0.44rem 0.5rem;
  border-radius: 10px;
  border: 1px solid #cfddf3;
  background: linear-gradient(180deg, #fafdff 0%, #f3f8ff 100%);
}

.a11y-modal-footer {
  margin-top: 0.7rem;
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.profile-modal-panel {
  width: min(820px, 96vw);
}

.profile-modal-grid {
  margin-top: 0.72rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.88rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-text {
  display: grid;
  gap: 0.12rem;
}

.brand-text strong {
  letter-spacing: 0.08em;
  font-size: 1.1rem;
}

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

.brand-mark {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  border: 1px solid rgba(141, 169, 221, 0.68);
  background:
    center / 88% 88% no-repeat url("./assets/branding/osun-logo-bevel.png"),
    linear-gradient(160deg, rgba(255, 255, 255, 0.58) 0%, rgba(255, 255, 255, 0.1) 62%),
    linear-gradient(140deg, #1a2b52 6%, #326edf 100%);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.3),
    0 9px 20px rgba(33, 60, 118, 0.2);
}

.nav-button {
  display: inline-block;
  padding: 0.62rem 0.95rem;
  border-radius: 999px;
  border: 1px solid #99b2e5;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  background: #fff;
}

.layout {
  width: min(1260px, 95vw);
  margin: 0 auto 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.hero-card {
  order: 1;
}

.globe-card {
  order: 2;
}

.contact-card {
  order: 3;
}

.internal-only {
  order: 5;
}

body:not(.is-authenticated) .internal-only {
  display: none;
}

body:not(.is-authenticated) .globe-filterbar,
body:not(.is-authenticated) .globe-db-kpis,
body:not(.is-authenticated) .globe-db-status,
body:not(.is-authenticated) .globe-table-wrap {
  display: none;
}

body:not(.is-authenticated) .globe-shell {
  margin-top: 0.28rem;
}

body:not(.is-authenticated) .globe-explore-btn {
  display: none;
}

.hero-card,
.runtime-card,
.benchmark-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  padding: 1.2rem;
  box-shadow: 0 20px 48px rgba(34, 62, 118, 0.08);
}

.hero-tag {
  margin: 0;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: #285eb8;
  font-size: 0.86rem;
}

.hero-card h1 {
  margin: 0.42rem 0 0.58rem;
  font-size: clamp(2.02rem, 4.15vw, 3.16rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  max-width: 21ch;
}

.hero-copy {
  margin: 0;
  max-width: 68ch;
  color: #1f385f;
  font-size: clamp(1.08rem, 0.32vw + 1rem, 1.2rem);
  line-height: 1.61;
}

.hero-substatements {
  margin: 0.78rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
  max-width: 78ch;
}

.hero-substatements li {
  margin: 0;
  padding: 0.4rem 0.58rem;
  border-left: 3px solid #90afe6;
  color: #213d61;
  font-size: clamp(1.01rem, 0.2vw + 0.95rem, 1.08rem);
  line-height: 1.56;
  background: linear-gradient(90deg, rgba(233, 242, 255, 0.68) 0%, rgba(233, 242, 255, 0) 85%);
}

.hero-actions {
  margin-top: 0.8rem;
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.hero-actions .hero-primary {
  color: #fff;
  border-color: #2b63be;
  background: linear-gradient(120deg, #2a5fb9 0%, var(--accent) 100%);
}

.hero-actions .hero-secondary {
  background: #f8fbff;
  border-color: #b0c6eb;
}

.hero-metrics {
  margin-top: 0.95rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.6rem;
}

.hero-metrics article {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0.62rem 0.7rem;
}

.hero-metrics span {
  display: block;
  font-size: 1.33rem;
  font-weight: 800;
}

.hero-metrics small {
  display: block;
  margin-top: 0.17rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.runtime-head h2 {
  margin: 0;
  font-size: 1.3rem;
}

.runtime-head p {
  margin: 0.22rem 0 0.76rem;
  color: #254166;
  font-size: 1.05rem;
  line-height: 1.72;
  max-width: 76ch;
}

.runtime-head-actions {
  margin-bottom: 0.58rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.46rem;
}

.contact-card {
  background:
    radial-gradient(500px 220px at 0% 0%, rgba(166, 206, 255, 0.2) 0%, transparent 70%),
    radial-gradient(460px 260px at 100% 100%, rgba(167, 237, 205, 0.16) 0%, transparent 78%),
    var(--card);
}

.contact-shell {
  display: grid;
  grid-template-columns: minmax(240px, 0.82fr) minmax(0, 1.18fr);
  gap: 0.64rem;
  align-items: start;
}

.contact-story {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  padding: 0.74rem;
  display: grid;
  gap: 0.38rem;
  align-content: start;
  position: sticky;
  top: 0.88rem;
}

.contact-story h2 {
  margin: 0;
  font-size: clamp(1.3rem, 1.2vw + 1rem, 1.86rem);
  line-height: 1.16;
}

.contact-story p {
  margin: 0;
  color: #244066;
  font-size: 0.99rem;
}

.contact-lead {
  max-width: 44ch;
}

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

.contact-sla-item {
  border: 1px solid #bcd0ef;
  border-radius: 12px;
  padding: 0.38rem 0.48rem;
  background: rgba(248, 251, 255, 0.96);
  display: grid;
  gap: 0.14rem;
}

.contact-sla-item strong {
  color: #163d73;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.contact-sla-item span {
  color: #395980;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contact-direct-mail {
  width: fit-content;
  min-width: 0;
  color: #173a6b;
}

.contact-form-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.74rem;
  background:
    radial-gradient(300px 160px at 0% 100%, rgba(97, 165, 237, 0.13) 0%, transparent 74%),
    #fff;
  border-top-color: #8fb0e7;
  border-top-width: 2px;
  box-shadow: inset 0 0 0 1px rgba(168, 189, 228, 0.2);
  display: grid;
  gap: 0.46rem;
}

.contact-form-head h3 {
  margin: 0;
  font-size: 1.08rem;
}

.contact-form-head p {
  margin: 0.18rem 0 0;
  color: #29486f;
  font-size: 0.92rem;
  line-height: 1.46;
}

.contact-flow {
  margin-top: 0.42rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.contact-flow span {
  border: 1px solid #b7caec;
  border-radius: 999px;
  background: rgba(247, 251, 255, 0.96);
  color: #2d4f7d;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.22rem 0.5rem;
}

.contact-runtime-strip {
  margin-top: 0.32rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
}

.contact-runtime-pill {
  border: 1px solid #b7caec;
  border-radius: 999px;
  background: rgba(246, 250, 255, 0.96);
  color: #2d4f7d;
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.22rem 0.54rem;
}

.contact-runtime-pill.status-ok {
  border-color: #7fc8ac;
  color: #1f664f;
  background: rgba(236, 250, 244, 0.96);
}

.contact-runtime-pill.status-alert {
  border-color: #e8c496;
  color: #8b4f17;
  background: rgba(255, 246, 236, 0.98);
}

.contact-form {
  display: grid;
  gap: 0.56rem;
}

.contact-form input,
.contact-form textarea {
  border-color: #b2c9ef;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #3f78d0;
  box-shadow:
    0 0 0 3px rgba(63, 120, 208, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.contact-form textarea {
  min-height: 134px;
  resize: vertical;
}

.contact-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.contact-actions .action-btn {
  min-width: 170px;
}

.contact-route-meta {
  margin: 0;
  font-size: 0.82rem;
  color: #36557f;
  line-height: 1.5;
}

.profile-access-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.6rem;
}

.profile-form {
  display: grid;
  gap: 0.45rem;
}

.profile-form-actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.profile-form-actions .mini-btn {
  color: #24416c;
  background: #f7fbff;
  border-color: #b7caec;
}

.logout-modal-panel {
  width: min(560px, 96vw);
  max-height: min(74vh, 520px);
  display: grid;
  gap: 0.68rem;
}

.logout-timer {
  width: 100%;
  height: 0.66rem;
  border-radius: 999px;
  border: 1px solid #a7bfec;
  background: #f1f6ff;
  overflow: hidden;
}

.logout-timer span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(120deg, #2c63bd 0%, #6da3f2 100%);
  transform-origin: left center;
  transition: transform 240ms linear;
}

.logout-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.logout-modal-actions .nav-button {
  min-width: 170px;
  text-align: center;
}

.screen-layer-card {
  display: grid;
  gap: 0.5rem;
}

.screen-layer-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.36rem;
}

.screen-layer-controls .screen-layer-btn {
  min-width: 120px;
}

.screen-layer-controls .screen-layer-btn.active {
  color: #fff;
  border-color: #2d63be;
  background: linear-gradient(120deg, #2a5fb9 0%, var(--accent) 100%);
}

.screen-layer-meta {
  margin: 0;
  color: #35527f;
  font-size: 0.84rem;
  line-height: 1.5;
}

.bench-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.55rem;
  margin-bottom: 0.65rem;
}

.bench-kpi {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0.52rem 0.62rem;
}

.bench-kpi span {
  display: block;
  font-size: 1.18rem;
  font-weight: 800;
}

.bench-kpi small {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 0.08rem;
}

.bench-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.bench-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.bench-table th,
.bench-table td {
  text-align: left;
  padding: 0.55rem 0.68rem;
  border-bottom: 1px solid #e5edf9;
}

.bench-table th {
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #3b5783;
}

.bench-table td {
  font-size: 0.94rem;
  color: #1c2f54;
}

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

.bench-meta {
  margin: 0.62rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.bench-links {
  margin-top: 0.62rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.bench-links .nav-button {
  padding: 0.5rem 0.8rem;
  font-size: 0.86rem;
}

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

.research-block {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0.7rem;
}

.research-block h3 {
  margin: 0 0 0.45rem;
  font-size: 1.02rem;
}

.research-gates {
  margin: 0;
}

.research-links {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.3rem;
}

.research-links a {
  color: #204c96;
  text-decoration: none;
  font-weight: 600;
}

.research-links a:hover {
  text-decoration: underline;
}

.bench-visual-grid {
  margin-top: 0.62rem;
}

.bench-impact-bars,
.bench-suite-mix {
  display: grid;
  gap: 0.44rem;
}

.bench-headroom-ladder {
  display: grid;
  gap: 0.4rem;
}

.bench-headroom-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.38rem;
  align-items: center;
  border: 1px solid #d3e2f8;
  border-radius: 10px;
  background: linear-gradient(180deg, #fcfdff 0%, #f4f8ff 100%);
  padding: 0.34rem 0.45rem;
}

.bench-headroom-copy {
  display: grid;
  gap: 0.08rem;
}

.bench-headroom-copy strong {
  color: #173a63;
  font-size: 0.79rem;
  line-height: 1.3;
}

.bench-headroom-copy small {
  color: #4f6b90;
  font-size: 0.72rem;
  line-height: 1.35;
}

.bench-headroom-pill {
  border: 1px solid #bfd4f4;
  border-radius: 999px;
  padding: 0.16rem 0.38rem;
  color: #1f4b84;
  background: #f8fbff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.bench-impact-row {
  display: grid;
  gap: 0.24rem;
}

.bench-impact-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.4rem;
}

.bench-impact-head strong {
  color: #17345f;
  font-size: 0.84rem;
}

.bench-impact-head small {
  color: #4a6288;
  font-size: 0.74rem;
}

.bench-impact-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  border: 1px solid #cfddf3;
  background: #edf3ff;
  overflow: hidden;
}

.bench-impact-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2a5fb8 0%, #52a9f8 100%);
}

.bench-suite-row {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) auto;
  gap: 0.3rem;
  align-items: center;
}

.bench-suite-row span {
  color: #224671;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.bench-suite-row i {
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1f87a1 0%, #58d6c8 100%);
  box-shadow: 0 0 0 1px rgba(131, 198, 218, 0.35);
}

.bench-suite-row strong {
  color: #173459;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
}

.funnel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.58rem;
}

.funnel-step {
  border: 1px solid #bfd0ee;
  border-radius: 14px;
  background: linear-gradient(180deg, #fcfdff 0%, #f5f9ff 100%);
  padding: 0.64rem;
  display: grid;
  gap: 0.35rem;
  align-content: start;
}

.funnel-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 2.1rem;
  height: 1.4rem;
  padding: 0 0.42rem;
  border-radius: 999px;
  border: 1px solid #a9c0eb;
  background: #edf4ff;
  color: #234f95;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.funnel-step h3 {
  margin: 0;
  font-size: 1rem;
}

.funnel-step p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.funnel-step .nav-button {
  margin-top: 0.2rem;
}

.globe-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  padding: 1.1rem;
  box-shadow: 0 20px 48px rgba(34, 62, 118, 0.08);
}

.globe-filterbar {
  margin-top: 0.62rem;
  display: grid;
  gap: 0.55rem;
}

.globe-suite-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.36rem;
}

.globe-density-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  flex-wrap: wrap;
}

.mini-btn.mini-btn-light {
  color: #24416c;
  background: #f7fbff;
  border-color: #b7caec;
}

.mini-btn.mini-btn-light.active {
  color: #fff;
  background: linear-gradient(120deg, #2a5fb9 0%, var(--accent) 100%);
  border-color: #2d63be;
}

.globe-search {
  display: grid;
  gap: 0.24rem;
  max-width: 360px;
  color: #355381;
  font-size: 0.8rem;
  font-weight: 700;
}

.globe-search input {
  border: 1px solid #b6caec;
  border-radius: 12px;
  padding: 0.42rem 0.56rem;
  background: #fff;
  color: #1b3258;
  font: inherit;
  font-size: 0.86rem;
}

.globe-export-actions {
  display: flex;
  gap: 0.36rem;
  flex-wrap: wrap;
}

.globe-timebar {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto auto;
  gap: 0.45rem;
  align-items: center;
}

.globe-timebar label {
  color: #355381;
  font-size: 0.8rem;
  font-weight: 700;
}

.globe-timebar input[type="range"] {
  accent-color: #2b68e2;
}

.globe-timebar span {
  min-width: 82px;
  font-size: 0.79rem;
  font-weight: 700;
  color: #23406a;
}

.globe-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.34rem;
  align-items: center;
}

.globe-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  border: 1px solid #b7caec;
  border-radius: 999px;
  background: #f7fbff;
  color: #204067;
  padding: 0.2rem 0.48rem;
  font-size: 0.72rem;
  font-weight: 700;
}

.globe-legend-item.is-stability {
  background: linear-gradient(120deg, rgba(var(--legend-stability-rgb), 0.18) 0%, #f7fbff 100%);
  border-color: var(--legend-stability-border);
}

.globe-legend-item.is-risk {
  background: linear-gradient(120deg, rgba(var(--legend-risk-rgb), 0.2) 0%, #fff8f2 100%);
  border-color: var(--legend-risk-border);
}

.globe-legend-item.is-coverage {
  background: linear-gradient(120deg, rgba(var(--legend-coverage-rgb), 0.2) 0%, #fbf6ff 100%);
  border-color: var(--legend-coverage-border);
}

.globe-legend-dot {
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 999px;
}

.globe-legend-dot.stability {
  background: rgb(var(--legend-stability-rgb));
}

.globe-legend-dot.risk {
  background: rgb(var(--legend-risk-rgb));
}

.globe-legend-dot.coverage {
  background: rgb(var(--legend-coverage-rgb));
}

.globe-shell {
  margin-top: 0.62rem;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 1fr);
  gap: 0.62rem;
  align-items: start;
}

.globe-stage {
  position: relative;
  min-height: 420px;
  height: clamp(420px, 58vh, 640px);
  max-height: 640px;
  border-radius: 16px;
  border: 1px solid #2e436c;
  overflow: hidden;
  touch-action: none;
  overscroll-behavior: contain;
  background:
    radial-gradient(960px 520px at 48% 118%, rgba(105, 144, 230, 0.54) 0%, transparent 72%),
    radial-gradient(760px 360px at 18% 8%, rgba(97, 154, 246, 0.34) 0%, transparent 74%),
    radial-gradient(700px 360px at 84% 12%, rgba(171, 121, 246, 0.3) 0%, transparent 76%),
    radial-gradient(720px 360px at 54% -10%, rgba(166, 124, 245, 0.2) 0%, transparent 80%),
    radial-gradient(640px 320px at 10% 68%, rgba(238, 160, 66, 0.14) 0%, transparent 78%),
    linear-gradient(180deg, #041128 0%, #0a1a3e 50%, #102655 100%);
  box-shadow:
    inset 0 0 0 1px rgba(188, 209, 247, 0.2),
    inset 0 -90px 160px rgba(118, 154, 223, 0.15),
    0 20px 42px rgba(10, 20, 44, 0.32);
}

.globe-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.globe-stage::before,
.globe-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.globe-stage::before {
  background:
    radial-gradient(500px 220px at 50% 8%, rgba(188, 216, 255, 0.2) 0%, transparent 78%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, transparent 26%);
  mix-blend-mode: screen;
}

.globe-stage::after {
  background: radial-gradient(680px 360px at 50% 108%, rgba(4, 11, 28, 0.3) 0%, transparent 74%);
}

#globe-stars {
  z-index: 0;
  opacity: 0.94;
  filter: saturate(1.08) contrast(1.04);
}

#globe-canvas {
  z-index: 1;
  filter: saturate(1.13) contrast(1.06) hue-rotate(-2deg);
}

.globe-hover-card,
.globe-controls {
  z-index: 3;
}

.globe-hover-card[hidden],
.globe-hover-card:empty,
.globe-hover-card:not([data-open="true"]) {
  display: none !important;
}

.globe-hover-card {
  position: absolute;
  z-index: 4;
  min-width: 170px;
  max-width: 236px;
  pointer-events: none;
  border: 1px solid rgba(171, 194, 236, 0.9);
  border-radius: 12px;
  padding: 0.46rem 0.56rem;
  background: linear-gradient(160deg, rgba(11, 23, 44, 0.92) 0%, rgba(20, 38, 72, 0.9) 100%);
  box-shadow: 0 14px 28px rgba(8, 17, 34, 0.34);
  backdrop-filter: blur(3px);
  color: #edf5ff;
  display: none;
  gap: 0.22rem;
  animation: globeCardPop 140ms ease-out;
}

.globe-hover-card[data-open="true"] {
  display: grid;
}

@keyframes globeCardPop {
  from {
    transform: translate3d(0, 4px, 0) scale(0.98);
    opacity: 0;
  }
  to {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
  }
}

.globe-hover-card strong {
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  color: #f6fbff;
}

.globe-hover-card small {
  color: #bdd0ef;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.globe-hover-card p {
  margin: 0;
  color: #d4e3fa;
  font-size: 0.76rem;
  line-height: 1.35;
}

.globe-hover-metrics {
  display: flex;
  gap: 0.36rem;
  flex-wrap: wrap;
}

.globe-hover-metrics span {
  border: 1px solid rgba(141, 170, 224, 0.58);
  border-radius: 999px;
  padding: 0.12rem 0.38rem;
  background: rgba(22, 45, 83, 0.7);
  font-size: 0.68rem;
  font-weight: 700;
  color: #edf5ff;
}

.globe-controls {
  position: absolute;
  left: 0.56rem;
  right: 0.56rem;
  top: 0.56rem;
  display: flex;
  gap: 0.38rem;
  flex-wrap: wrap;
  z-index: 3;
}

.mini-btn {
  border: 1px solid rgba(185, 205, 243, 0.5);
  border-radius: 999px;
  padding: 0.36rem 0.62rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  font-weight: 700;
  color: #dce8ff;
  background: rgba(22, 36, 68, 0.72);
  text-decoration: none;
  cursor: pointer;
}

.mini-btn.active {
  background: rgba(56, 102, 188, 0.92);
  border-color: rgba(187, 210, 255, 0.92);
  color: #fff;
}

.globe-note {
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 249, 255, 0.95) 100%),
    #fff;
  box-shadow: inset 0 0 0 1px rgba(158, 185, 230, 0.22);
  padding: 0.72rem;
  display: grid;
  gap: 0.5rem;
  align-content: start;
  max-height: 640px;
  overflow: auto;
}

.globe-note h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.25;
}

.globe-note p {
  margin: 0;
  color: var(--muted);
}

.globe-note-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0;
}

.globe-explore-btn {
  width: fit-content;
  justify-self: start;
  margin-top: 0.15rem;
}

.globe-db-kpis {
  margin-top: 0.7rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.45rem;
}

.globe-db-kpis article {
  border: 1px solid #cad9ef;
  border-radius: 12px;
  background: #fff;
  padding: 0.5rem 0.58rem;
}

.globe-db-kpis article.kpi-ok {
  border-color: #9bc8b2;
  background: linear-gradient(160deg, #f7fffb 0%, #eefaf3 100%);
}

.globe-db-kpis article.kpi-alert {
  border-color: #d8c39a;
  background: linear-gradient(160deg, #fffaf0 0%, #fff4de 100%);
}

.globe-db-kpis strong {
  display: block;
  font-size: 1rem;
}

.globe-db-kpis small {
  display: block;
  margin-top: 0.06rem;
  color: #486086;
  font-size: 0.78rem;
}

.globe-db-status {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.globe-db-status.status-ok {
  color: #2c5b45;
}

.globe-db-status.status-alert {
  color: #7f5a1f;
}

.globe-table-wrap {
  margin-top: 0.68rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.globe-table {
  width: 100%;
  min-width: 1060px;
  border-collapse: collapse;
}

.globe-table th,
.globe-table td {
  text-align: left;
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid #e4edf8;
  font-size: 0.83rem;
}

.globe-table th {
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #3d5b86;
  font-size: 0.74rem;
}

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

.globe-table tbody tr.active {
  background: rgba(210, 228, 255, 0.32);
}

.globe-focus-btn {
  border: 1px solid #aec2e8;
  border-radius: 999px;
  background: #f6faff;
  color: #24426f;
  padding: 0.24rem 0.5rem;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
}

.runtime-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  overflow-x: auto;
  scrollbar-width: thin;
}

.dashboard-hub {
  background:
    linear-gradient(160deg, rgba(246, 251, 255, 0.96) 0%, rgba(241, 248, 255, 0.92) 100%),
    var(--card);
}

.dashboard-tabs {
  margin-bottom: 0.6rem;
}

.metrics-clarity {
  margin: 0.22rem 0 0.66rem;
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.metric-logic-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 251, 255, 0.95) 100%),
    #fff;
  padding: 0.56rem 0.62rem;
  display: grid;
  gap: 0.28rem;
}

.metric-logic-card h3 {
  margin: 0;
  color: #13284b;
  font-size: 0.95rem;
  line-height: 1.3;
}

.metric-logic-card p {
  margin: 0;
  color: #466185;
  font-size: 0.8rem;
  line-height: 1.5;
}

.metric-logic-card code {
  display: inline-block;
  border: 1px solid #c3d4ef;
  border-radius: 9px;
  background: #f6faff;
  padding: 0.2rem 0.34rem;
  color: #16345f;
  font-size: 0.75rem;
  font-weight: 600;
}

.dashboard-suites {
  display: grid;
}

.dashboard-suite {
  display: none;
}

.dashboard-suite.active {
  display: block;
}

.tab-btn {
  border: 1px solid #9cb3e5;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  padding: 0.52rem 0.84rem;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  flex: 0 0 auto;
}

.tab-btn.active {
  border-color: #2a5db7;
  color: #fff;
  background: linear-gradient(120deg, #2a5fb9 0%, var(--accent) 100%);
}

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

.suite-dashboard-actions {
  margin: 0.36rem 0 0.55rem;
  display: flex;
  justify-content: flex-end;
}

.runtime-card[data-tabs-ready="true"] .suite {
  display: none;
}

.runtime-card[data-tabs-ready="true"] .suite.active {
  display: grid;
}

.engine-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 0.85rem;
}

.source-engine {
  grid-column: 1 / -1;
}

.engine-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.engine-head h3 {
  margin: 0;
  font-size: 1.15rem;
}

.chip {
  border: 1px solid #a5bbe8;
  border-radius: 999px;
  padding: 0.3rem 0.55rem;
  font-size: 0.74rem;
  color: #2a5eb7;
  font-weight: 700;
  background: #f7faff;
}

.field-grid {
  margin-top: 0.62rem;
  display: grid;
  gap: 0.52rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

label {
  display: grid;
  gap: 0.28rem;
  font-size: 0.97rem;
  color: var(--muted);
}

input,
select,
textarea {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.58rem 0.67rem;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.45;
  background: #fff;
  font-family: inherit;
}

textarea {
  resize: vertical;
  min-height: 88px;
}

.action-btn {
  margin-top: 0.64rem;
  border: 0;
  width: 100%;
  border-radius: 10px;
  padding: 0.63rem 0.82rem;
  background: linear-gradient(120deg, #2a5fb9 0%, var(--accent) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
}

.result-list {
  margin-top: 0.66rem;
  display: grid;
  gap: 0.48rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fbff;
  padding: 0.48rem 0.55rem;
}

.metric dt {
  margin: 0;
  font-size: 0.73rem;
  color: #4f678f;
}

.metric dd {
  margin: 0.16rem 0 0;
  font-size: 0.98rem;
  font-weight: 800;
}

.compliance-note {
  margin: 0.68rem 0 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #4c6287;
}

.source-intro {
  margin: 0.58rem 0 0.72rem;
  color: #38527b;
  font-size: 0.97rem;
  line-height: 1.64;
  max-width: 82ch;
}

.source-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.source-actions {
  margin-top: 0.7rem;
  display: flex;
  gap: 0.52rem;
  flex-wrap: wrap;
}

.source-actions .action-btn {
  width: auto;
  min-width: 180px;
}

.secondary-btn {
  background: #f4f8ff;
  color: #1f3861;
  border: 1px solid #aec2e8;
}

.source-summary {
  margin-top: 0.72rem;
  display: grid;
  gap: 0.46rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.source-table-wrap {
  margin-top: 0.76rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.source-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  background: #fff;
}

.source-table th,
.source-table td {
  border-bottom: 1px solid #e4edf8;
  text-align: left;
  padding: 0.52rem 0.62rem;
  font-size: 0.85rem;
}

.source-table th {
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #3d5782;
  font-size: 0.76rem;
}

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

.source-links {
  display: inline-flex;
  gap: 0.42rem;
  flex-wrap: wrap;
}

.source-links a {
  color: #2459ad;
  font-weight: 700;
  text-decoration: none;
}

.source-links a:hover {
  text-decoration: underline;
}

.source-downloads {
  margin-top: 0.76rem;
}

.source-status {
  margin: 0.62rem 0 0;
  font-size: 0.82rem;
  color: #4a6188;
}

.source-status.status-ok {
  color: #1e5f43;
}

.source-status.status-alert {
  color: #7e3f1d;
}

.source-status.status-muted {
  color: #4a6188;
}

.shift-table-wrap,
.clock-log-wrap {
  margin-top: 0.68rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.shift-table,
.clock-log-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
}

.shift-table th,
.shift-table td,
.clock-log-table th,
.clock-log-table td {
  text-align: left;
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid #e4edf8;
  font-size: 0.83rem;
}

.shift-table th,
.clock-log-table th {
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #3d5b86;
  font-size: 0.74rem;
}

.shift-table tbody tr:last-child td,
.clock-log-table tbody tr:last-child td {
  border-bottom: 0;
}

.clock-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.clock-lifecycle-controls {
  margin-top: 0.62rem;
  display: grid;
  gap: 0.52rem;
  grid-template-columns: minmax(260px, 1.4fr) minmax(180px, 0.6fr);
  align-items: end;
}

.clock-lifecycle-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fbff;
  min-height: 40px;
  padding: 0 0.7rem;
  font-size: 0.82rem;
  color: #1c355f;
}

.clock-lifecycle-toggle input {
  width: 16px;
  height: 16px;
}

.clock-qr-wrap {
  margin-top: 0.68rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fbff;
  padding: 0.62rem;
}

.clock-qr-visuals {
  display: flex;
  flex-wrap: wrap;
  gap: 0.62rem;
  align-items: center;
  margin-bottom: 0.62rem;
}

#clock-qr-image,
#clock-qr-canvas {
  width: 220px;
  height: 220px;
  border-radius: 12px;
  border: 1px solid #c8d8f5;
  background: #fff;
}

#clock-qr-payload {
  width: 100%;
  min-height: 96px;
}

.clock-lifecycle-wrap {
  margin-top: 0.72rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fbff;
  padding: 0.62rem;
}

.clock-lifecycle-wrap h4 {
  margin: 0 0 0.5rem;
  font-size: 0.92rem;
  color: #16325b;
}

.clock-lifecycle-table-wrap {
  margin-top: 0.52rem;
  overflow-x: auto;
  border: 1px solid #dbe7f8;
  border-radius: 12px;
  background: #fff;
}

.clock-lifecycle-table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
}

.clock-lifecycle-table th,
.clock-lifecycle-table td {
  text-align: left;
  padding: 0.48rem 0.6rem;
  border-bottom: 1px solid #e4edf8;
  font-size: 0.81rem;
}

.clock-lifecycle-table th {
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #3d5b86;
  font-size: 0.72rem;
}

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

.inclusion-engine {
  margin-bottom: 0.72rem;
}

.inclusion-runtime .inclusion-engine {
  margin-bottom: 0;
}

.inclusion-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.inclusion-table-wrap {
  margin-top: 0.68rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.inclusion-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
}

.inclusion-table th,
.inclusion-table td {
  text-align: left;
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid #e4edf8;
  font-size: 0.83rem;
}

.inclusion-table th {
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #3d5b86;
  font-size: 0.74rem;
}

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

.suite-dashboard {
  grid-column: 1 / -1;
  --dash-primary: #245fd2;
  --dash-secondary: #94baff;
  --dash-area: rgba(36, 95, 210, 0.16);
  --dash-panel-bg: linear-gradient(180deg, rgba(248, 251, 255, 0.98) 0%, rgba(242, 248, 255, 0.95) 100%);
  background:
    var(--dash-panel-bg),
    #fff;
}

.suite-dashboard[data-suite="agtech"] {
  --dash-primary: #225ec8;
  --dash-secondary: #89b0f7;
  --dash-area: rgba(34, 94, 200, 0.18);
  --dash-panel-bg: linear-gradient(180deg, rgba(246, 250, 255, 0.98) 0%, rgba(237, 245, 255, 0.95) 100%);
}

.suite-dashboard[data-suite="foodtech"] {
  --dash-primary: #0f8f85;
  --dash-secondary: #7dd7c7;
  --dash-area: rgba(15, 143, 133, 0.19);
  --dash-panel-bg: linear-gradient(180deg, rgba(243, 252, 250, 0.98) 0%, rgba(235, 249, 246, 0.95) 100%);
}

.suite-dashboard[data-suite="restaurantops"] {
  --dash-primary: #b66a1d;
  --dash-secondary: #f4be79;
  --dash-area: rgba(182, 106, 29, 0.2);
  --dash-panel-bg: linear-gradient(180deg, rgba(255, 249, 241, 0.98) 0%, rgba(255, 245, 233, 0.95) 100%);
}

.suite-dashboard[data-suite="localsource"] {
  --dash-primary: #6a56cc;
  --dash-secondary: #b9aef0;
  --dash-area: rgba(106, 86, 204, 0.19);
  --dash-panel-bg: linear-gradient(180deg, rgba(247, 245, 255, 0.98) 0%, rgba(239, 235, 255, 0.95) 100%);
}

.suite-dashboard[data-suite="communitybridge"] {
  --dash-primary: #13779f;
  --dash-secondary: #8cc9e5;
  --dash-area: rgba(19, 119, 159, 0.18);
  --dash-panel-bg: linear-gradient(180deg, rgba(245, 251, 255, 0.98) 0%, rgba(236, 246, 255, 0.95) 100%);
}

.suite-dashboard[data-suite="workforceops"] {
  --dash-primary: #384c8a;
  --dash-secondary: #a3b0de;
  --dash-area: rgba(56, 76, 138, 0.18);
  --dash-panel-bg: linear-gradient(180deg, rgba(246, 248, 255, 0.98) 0%, rgba(237, 241, 255, 0.95) 100%);
}

.dash-story {
  margin-top: 0.68rem;
  display: grid;
  gap: 0.56rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.story-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0.58rem 0.64rem;
}

.story-headline {
  background:
    linear-gradient(135deg, rgba(225, 237, 255, 0.54) 0%, rgba(220, 244, 235, 0.36) 100%),
    #fff;
}

.story-headline h4 {
  margin: 0.28rem 0 0.24rem;
  font-size: 1rem;
  line-height: 1.2;
  color: #14284d;
}

.story-headline p {
  margin: 0;
  color: #435f86;
  font-size: 0.86rem;
  line-height: 1.5;
}

.story-impact {
  margin-top: 0.34rem !important;
  color: #1c365f !important;
}

.story-dials {
  margin-top: 0.42rem;
  display: grid;
  gap: 0.46rem;
}

.story-dial-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.46rem;
  align-items: center;
}

.story-dial {
  --dial-fill: 50;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: conic-gradient(var(--dial-color, #3a6fca) calc(var(--dial-fill) * 1%), #e8f0ff 0);
  display: grid;
  place-items: center;
}

.story-dial span {
  width: 43px;
  height: 43px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #d5e4fa;
  display: grid;
  place-items: center;
  color: #16325c;
  font-size: 0.66rem;
  font-weight: 700;
}

.story-tone-good {
  --dial-color: #2f9a68;
}

.story-tone-watch {
  --dial-color: #c2891f;
}

.story-tone-risk {
  --dial-color: #c24d54;
}

.story-dial-card strong {
  display: block;
  color: #162f57;
  font-size: 0.84rem;
  line-height: 1.2;
}

.story-dial-card small {
  display: block;
  color: #4c658a;
  font-size: 0.76rem;
  line-height: 1.3;
  margin-top: 0.12rem;
}

.story-priority-list {
  margin: 0.42rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.36rem;
}

.story-priority-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.38rem;
  align-items: start;
  font-size: 0.85rem;
  color: #223d66;
  line-height: 1.48;
}

.story-priority-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-top: 0.22rem;
}

.story-priority-dot.story-tone-good {
  background: #2f9a68;
}

.story-priority-dot.story-tone-watch {
  background: #c2891f;
}

.story-priority-dot.story-tone-risk {
  background: #c24d54;
}

.dash-kpis {
  margin-top: 0.68rem;
  display: grid;
  gap: 0.52rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.dash-health-rail {
  margin-top: 0.62rem;
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.dash-health-card {
  border: 1px solid #cfe0fb;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 250, 255, 0.95) 100%),
    #fff;
  padding: 0.52rem 0.58rem;
  display: grid;
  gap: 0.26rem;
}

.dash-health-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.32rem;
}

.dash-health-head span:first-child {
  color: #456186;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dash-health-card strong {
  color: #12264b;
  font-size: 0.98rem;
  line-height: 1.3;
}

.dash-health-card p {
  margin: 0;
  color: #486186;
  font-size: 0.79rem;
  line-height: 1.5;
}

.dash-health-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  border: 1px solid #d5e4fa;
  background: #e9f1ff;
  overflow: hidden;
}

.dash-health-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--dash-primary) 0%, var(--dash-secondary) 100%);
}

.dash-equity {
  margin-top: 0.62rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(224, 237, 255, 0.55) 0%, rgba(224, 245, 236, 0.36) 100%),
    #fff;
  padding: 0.56rem 0.62rem;
  display: grid;
  gap: 0.44rem;
}

.dash-equity-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.38rem;
}

.dash-equity-head .dash-label {
  margin: 0;
}

.dash-equity-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
}

.equity-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  border-radius: 999px;
  border: 1px solid #b5c9ec;
  background: #f8fbff;
  color: #20406e;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.26rem 0.48rem;
}

.equity-chip strong {
  color: #16335e;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 800;
}

.dash-equity-note {
  margin: 0;
  color: #446086;
  font-size: 0.81rem;
  line-height: 1.52;
}

.dash-kpi {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0.52rem 0.6rem;
  display: grid;
  gap: 0.16rem;
}

.dash-kpi span {
  font-size: 1.12rem;
  font-weight: 800;
  color: #14274a;
}

.dash-kpi small {
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #44648e;
  font-weight: 700;
}

.dash-kpi p {
  margin: 0;
  font-size: 0.82rem;
  color: #4d6388;
  line-height: 1.5;
}

.dash-visual-grid {
  margin-top: 0.66rem;
  display: grid;
  gap: 0.56rem;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

.dash-panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 252, 255, 0.96) 100%),
    #fff;
  padding: 0.58rem 0.62rem;
}

.dash-label {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #456288;
}

.dash-bars {
  margin-top: 0.5rem;
  display: grid;
  gap: 0.48rem;
}

.dash-bar-row {
  display: grid;
  gap: 0.24rem;
}

.dash-bar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.82rem;
  color: #37547e;
}

.dash-bar-head strong {
  font-size: 0.88rem;
  color: #102247;
}

.dash-bar-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #e8f0ff;
  overflow: hidden;
  border: 1px solid #d5e3fa;
}

.dash-bar-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--dash-primary) 0%, var(--dash-secondary) 100%);
}

.dash-trend {
  margin-top: 0.44rem;
}

.dash-trend svg {
  width: 100%;
  height: auto;
  display: block;
}

.dash-trend-line {
  fill: none;
  stroke: var(--dash-primary);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dash-trend-area {
  fill: var(--dash-area);
  stroke: none;
}

.dash-matrix {
  margin-top: 0.44rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 0.5rem;
}

.dash-matrix svg {
  width: 100%;
  height: auto;
  display: block;
}

.dash-matrix-grid {
  stroke: #d8e4f7;
  stroke-width: 1;
}

.dash-matrix-axis {
  stroke: #a7bcdf;
  stroke-width: 1.2;
}

.dash-matrix-dot {
  fill: var(--dash-primary);
  stroke: #fff;
  stroke-width: 1.5;
}

.dash-matrix-dot.status-watch {
  fill: #c1671f;
}

.dash-matrix-dot.status-risk {
  fill: #b6474f;
}

.dash-matrix-label {
  fill: #35527d;
  font-size: 11px;
  font-weight: 600;
}

.dash-matrix-axis-label {
  fill: #436287;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dash-portfolio {
  margin-top: 0.44rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 0.5rem;
}

.dash-portfolio svg {
  width: 100%;
  height: auto;
  display: block;
}

.dash-portfolio-axis {
  stroke: #abc4e8;
  stroke-width: 1.2;
}

.dash-portfolio-dot {
  fill: var(--dash-primary);
  opacity: 0.78;
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 1.5;
}

.dash-portfolio-dot.status-watch {
  fill: #c1671f;
}

.dash-portfolio-dot.status-risk {
  fill: #b6474f;
}

.dash-portfolio-label {
  fill: #35527d;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.dash-portfolio-axis-label {
  fill: #436287;
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
}

.dash-envelope {
  margin-top: 0.44rem;
  display: grid;
  gap: 0.44rem;
}

.dash-envelope-row {
  display: grid;
  gap: 0.22rem;
}

.dash-envelope-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.32rem;
  font-size: 0.8rem;
  color: #37547e;
}

.dash-envelope-head strong {
  font-size: 0.78rem;
  color: #1a335d;
  font-weight: 700;
}

.dash-envelope-track {
  position: relative;
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: #e8f0ff;
  border: 1px solid #d4e3fa;
  overflow: hidden;
}

.dash-envelope-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--dash-primary) 0%, var(--dash-secondary) 100%);
  max-width: 100%;
}

.dash-envelope-fill.status-watch {
  background: linear-gradient(90deg, #c1671f 0%, #e4a05f 100%);
}

.dash-envelope-fill.status-risk {
  background: linear-gradient(90deg, #b6474f 0%, #e48c94 100%);
}

.dash-envelope-target {
  position: absolute;
  top: -2px;
  bottom: -2px;
  width: 2px;
  background: #243e69;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.7);
  transform: translateX(-1px);
  pointer-events: none;
}

.dash-envelope-note {
  margin: 0;
  color: #4d648a;
  font-size: 0.78rem;
  line-height: 1.45;
}

.dash-products {
  margin-top: 0.44rem;
}

.dash-benchmark {
  margin-top: 0.44rem;
  display: grid;
  gap: 0.42rem;
}

.dash-benchmark-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.32rem;
}

.dash-benchmark-head strong {
  color: #17365f;
  font-size: 0.84rem;
  letter-spacing: 0.01em;
}

.dash-benchmark-head span {
  color: #456186;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.dash-benchmark-rows {
  display: grid;
  gap: 0.36rem;
}

.dash-benchmark-row {
  display: grid;
  gap: 0.2rem;
}

.dash-benchmark-copy {
  display: grid;
  gap: 0.08rem;
}

.dash-benchmark-copy strong {
  color: #18365f;
  font-size: 0.8rem;
  line-height: 1.3;
}

.dash-benchmark-copy small {
  color: #486287;
  font-size: 0.72rem;
  line-height: 1.35;
}

.dash-benchmark-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  border: 1px solid #d0e0f6;
  background: #edf3ff;
  overflow: hidden;
}

.dash-benchmark-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--dash-primary) 0%, var(--dash-secondary) 100%);
}

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

.dash-product-card {
  border: 1px solid #cfe0fb;
  border-radius: 11px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 249, 255, 0.94) 100%),
    #fff;
  padding: 0.46rem 0.52rem;
  display: grid;
  gap: 0.32rem;
}

.dash-product-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.28rem;
}

.dash-product-head strong {
  color: #17345f;
  font-size: 0.83rem;
  letter-spacing: 0.01em;
}

.dash-product-card p {
  margin: 0;
  color: #405d87;
  font-size: 0.76rem;
  line-height: 1.44;
}

.dash-product-bars {
  display: grid;
  gap: 0.22rem;
}

.dash-product-bars div {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: 0.22rem;
  align-items: center;
}

.dash-product-bars span {
  color: #264770;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.dash-product-bars i {
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--dash-primary) 0%, var(--dash-secondary) 100%);
  box-shadow: 0 0 0 1px rgba(141, 175, 229, 0.28);
}

.dash-product-bars i.risk {
  background: linear-gradient(90deg, #bf6f21 0%, #dc9460 100%);
}

.dash-product-bars small {
  color: #3a5a84;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.dash-gap {
  margin-top: 0.44rem;
}

.dash-gap-card {
  border: 1px solid #cde0ff;
  border-radius: 11px;
  background:
    linear-gradient(130deg, rgba(222, 236, 255, 0.56) 0%, rgba(233, 248, 240, 0.45) 100%),
    #fff;
  padding: 0.54rem 0.58rem;
  display: grid;
  gap: 0.34rem;
}

.dash-gap-card h4 {
  margin: 0;
  color: #17345d;
  font-size: 1rem;
  line-height: 1.2;
}

.dash-gap-card p {
  margin: 0;
  color: #38577f;
  font-size: 0.83rem;
  line-height: 1.52;
}

.dash-gap-driver {
  font-size: 0.78rem !important;
  color: #274b74 !important;
}

.dash-variance {
  margin-top: 0.44rem;
  display: grid;
  gap: 0.42rem;
}

.dash-variance-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(110px, 0.6fr) auto;
  gap: 0.34rem;
  align-items: center;
}

.dash-variance-row span {
  color: #2b476f;
  font-size: 0.8rem;
  font-weight: 600;
}

.dash-variance-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  border: 1px solid #d5e4fa;
  background: #eaf2ff;
  overflow: hidden;
}

.dash-variance-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--dash-primary) 0%, var(--dash-secondary) 100%);
}

.dash-variance-track i.down {
  background: linear-gradient(90deg, #b6474f 0%, #e48c94 100%);
}

.dash-variance-row strong {
  color: #183258;
  font-size: 0.78rem;
}

.dash-waterfall {
  margin-top: 0.44rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 0.5rem;
}

.dash-waterfall svg {
  width: 100%;
  height: auto;
  display: block;
}

.dash-waterfall-axis {
  stroke: #ccdcf3;
  stroke-width: 1.2;
}

.dash-waterfall-bar {
  fill: var(--dash-primary);
}

.dash-waterfall-bar.up {
  fill: #2f77d4;
}

.dash-waterfall-bar.down {
  fill: #c95b34;
}

.dash-waterfall-label {
  fill: #3d5a84;
  font-size: 10px;
  text-anchor: middle;
}

.dash-waterfall-value {
  fill: #18365f;
  font-size: 10px;
  font-weight: 700;
  text-anchor: middle;
}

.dash-fan {
  margin-top: 0.44rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 0.5rem;
}

.dash-fan svg {
  width: 100%;
  height: auto;
  display: block;
}

.dash-fan-band {
  fill: var(--dash-area);
  stroke: none;
}

.dash-fan-line {
  fill: none;
  stroke: var(--dash-primary);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dash-fan-axis {
  stroke: #c8d8f2;
  stroke-width: 1;
}

.dash-fan-note {
  margin: 0.34rem 0 0;
  color: #4a6288;
  font-size: 0.76rem;
  line-height: 1.4;
}

.dash-trend-meta {
  margin-top: 0.34rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.4rem;
  color: #4b638b;
  font-size: 0.82rem;
}

.dash-trend-meta strong {
  color: #183158;
  font-weight: 700;
}

.data-deck-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.44rem;
  padding: 0.52rem 0.54rem 0.22rem;
}

.data-deck-controls.is-empty {
  display: none;
}

.data-deck-search-wrap {
  flex: 1 1 240px;
}

.data-deck-search {
  width: 100%;
  border: 1px solid #c6d6ef;
  border-radius: 999px;
  background: #fff;
  color: #153057;
  padding: 0.42rem 0.72rem;
  font-size: 0.83rem;
  font-weight: 600;
}

.data-deck-search:focus {
  outline: none;
  border-color: #2f64c8;
  box-shadow: 0 0 0 3px rgba(47, 100, 200, 0.17);
}

.data-deck-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
}

.data-deck-count {
  margin: 0;
  color: #4b6389;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.data-deck-toggle {
  border-width: 1px;
  font-size: 0.76rem;
  padding: 0.34rem 0.62rem;
  white-space: nowrap;
}

.data-deck-more-wrap {
  padding: 0 0.54rem 0.5rem;
  display: flex;
  justify-content: center;
}

.data-deck-more {
  border-width: 1px;
  font-size: 0.76rem;
  padding: 0.34rem 0.72rem;
  min-width: 190px;
}

.mini-data-deck {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.5rem;
  padding: 0 0.54rem 0.52rem;
}

.mini-data-deck:empty {
  display: none;
}

.mini-data-card {
  border: 1px solid #d4e3f8;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(252, 255, 255, 0.95) 0%, rgba(245, 250, 255, 0.94) 100%),
    #fff;
  padding: 0.52rem 0.58rem;
  display: grid;
  gap: 0.36rem;
  box-shadow: 0 6px 18px rgba(31, 71, 134, 0.08);
}

.mini-data-head h4 {
  margin: 0;
  color: #12274b;
  font-size: 0.92rem;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.mini-data-head p {
  margin: 0.16rem 0 0;
  color: #496186;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.mini-data-grid {
  margin: 0;
  display: grid;
  gap: 0.28rem;
}

.mini-data-pair {
  margin: 0;
  display: grid;
  gap: 0.08rem;
}

.mini-data-pair dt {
  color: #4f668b;
  font-size: 0.69rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.mini-data-pair dd {
  margin: 0;
  color: #162e54;
  font-size: 0.86rem;
  line-height: 1.48;
  font-weight: 600;
}

.mini-data-links {
  margin-top: 0.16rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.24rem;
}

.mini-data-links a {
  color: #1d549d;
  text-decoration: none;
  border-bottom: 1px solid rgba(29, 84, 157, 0.26);
  font-size: 0.74rem;
  font-weight: 700;
}

.mini-data-links a:hover {
  border-bottom-color: rgba(29, 84, 157, 0.68);
}

.mini-data-empty {
  margin: 0;
  padding: 0.66rem 0.52rem 0.76rem;
  font-size: 0.84rem;
  color: #52698f;
}

[data-deck-ready="true"].table-collapsed > table {
  display: none;
}

[data-deck-ready="true"][data-deck-view="table"] .mini-data-deck {
  display: none;
}

[data-deck-ready="true"][data-deck-has-rows="false"] .mini-data-deck {
  display: none;
}

[data-deck-ready="true"].deck-empty > table,
[data-deck-ready="true"].deck-empty .mini-data-deck {
  display: none;
}

.dash-table-wrap {
  margin-top: 0.66rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.dash-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

.dash-table th,
.dash-table td {
  text-align: left;
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid #e4edf8;
  font-size: 0.83rem;
}

.dash-table th {
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #3d5b86;
  font-size: 0.74rem;
}

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

.agops-table-wrap,
.foodops-table-wrap {
  margin-top: 0.66rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.agops-table,
.foodops-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.foodh-table-wrap {
  margin-top: 0.66rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.foodh-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
}

.foodh-table th,
.foodh-table td {
  text-align: left;
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid #e4edf8;
  font-size: 0.82rem;
}

.foodh-table th {
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #3d5b86;
  font-size: 0.74rem;
}

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

.agops-table th,
.agops-table td,
.foodops-table th,
.foodops-table td {
  text-align: left;
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid #e4edf8;
  font-size: 0.82rem;
}

.agops-table th,
.foodops-table th {
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #3d5b86;
  font-size: 0.74rem;
}

.agops-table tbody tr:last-child td,
.foodops-table tbody tr:last-child td {
  border-bottom: 0;
}

.dash-status {
  display: inline-flex;
  align-items: center;
  gap: 0.26rem;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.18rem 0.42rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.dash-status::before {
  font-size: 0.68rem;
  font-weight: 800;
}

.status-good {
  color: #0f5d71;
  background: #e6f7fb;
  border-color: #89cade;
}

.status-good::before {
  content: "●";
}

.status-watch {
  color: #734a10;
  background: #fff2de;
  border-color: #e4bb81;
}

.status-watch::before {
  content: "▲";
}

.status-risk {
  color: #853b12;
  background: #fff1e8;
  border-color: #e8bb9b;
}

.status-risk::before {
  content: "◆";
}

.bench-table td,
.globe-table td,
.source-table td,
.shift-table td,
.clock-log-table td,
.clock-lifecycle-table td,
.inclusion-table td,
.dash-table td,
.foodh-table td,
.agops-table td,
.foodops-table td {
  font-size: 0.94rem;
  line-height: 1.52;
}

.bench-table th,
.globe-table th,
.source-table th,
.shift-table th,
.clock-log-table th,
.clock-lifecycle-table th,
.inclusion-table th,
.dash-table th,
.foodh-table th,
.agops-table th,
.foodops-table th {
  font-size: 0.79rem;
}

.site-footer {
  width: min(1260px, 95vw);
  margin: 0.72rem auto 1.1rem;
  padding: 0.72rem 0.9rem 0.2rem;
  border-top: 1px solid rgba(166, 190, 230, 0.54);
  color: var(--muted);
  font-size: 0.86rem;
  text-align: center;
  display: grid;
  gap: 0.34rem;
  justify-items: center;
}

.site-footer p {
  margin: 0;
  line-height: 1.42;
  max-width: min(860px, 100%);
}

.site-footer p:first-child {
  font-weight: 600;
  letter-spacing: 0.01em;
}

.site-footer p:last-child {
  font-size: 0.8rem;
}

.globe-pop-target {
  background:
    linear-gradient(165deg, rgba(247, 251, 255, 0.95) 0%, rgba(237, 245, 255, 0.92) 100%),
    #fff;
  border: 1px solid #a8bfe9;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.82),
    0 16px 28px rgba(40, 72, 128, 0.18);
  transition: box-shadow 0.26s ease, background 0.26s ease, border-color 0.26s ease;
}

body[data-screen-layer="lite"] .globe-db-kpis,
body[data-screen-layer="lite"] .globe-table-wrap,
body[data-screen-layer="lite"] .dash-table-wrap,
body[data-screen-layer="lite"] .dash-matrix,
body[data-screen-layer="lite"] .dash-envelope,
body[data-screen-layer="lite"] .dash-variance,
body[data-screen-layer="lite"] .dash-fan {
  display: none;
}

body[data-screen-layer="lite"] .globe-stage {
  min-height: 340px;
  height: clamp(340px, 52vh, 500px);
  max-height: 500px;
}

body[data-screen-layer="lite"] .runtime-card,
body[data-screen-layer="lite"] .globe-card,
body[data-screen-layer="lite"] .hero-card,
body[data-screen-layer="lite"] .benchmark-card {
  padding: 0.9rem;
}

body[data-screen-layer="lite"] .dash-visual-grid {
  grid-template-columns: 1fr;
}

body[data-screen-layer="full"] .dash-visual-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

@media (max-width: 1180px) {
  .globe-shell {
    grid-template-columns: 1fr;
  }

  .globe-stage {
    height: clamp(360px, 56vw, 560px);
    max-height: 560px;
  }

  .globe-note {
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 760px) {
  .top-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .top-nav-auth {
    width: 100%;
    justify-content: flex-end;
    min-height: 0;
  }

  .top-nav-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .top-nav .nav-button.nav-logout-button {
    align-self: flex-end;
  }

  .top-nav .nav-button.nav-gear-button {
    width: 2.7rem;
    min-width: 2.7rem;
    text-align: center;
    align-self: flex-end;
  }

  .top-nav .nav-button.nav-profile-button {
    width: 2.7rem;
    min-width: 2.7rem;
    text-align: center;
    align-self: flex-end;
  }

  .a11y-translation {
    grid-column: span 1;
  }

  .a11y-modal-footer .nav-button {
    width: 100%;
    text-align: center;
  }

  .logout-modal-actions .nav-button {
    width: 100%;
    min-width: 0;
  }

  .screen-layer-controls {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.15rem;
    -webkit-overflow-scrolling: touch;
  }

  .screen-layer-controls .screen-layer-btn {
    flex: 0 0 auto;
    min-width: max-content;
    scroll-snap-align: start;
  }

  .globe-density-controls {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.12rem;
    -webkit-overflow-scrolling: touch;
  }

  .globe-density-controls .mini-btn {
    flex: 0 0 auto;
    min-width: max-content;
  }

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

  .hero-substatements {
    gap: 0.28rem;
  }

  .hero-substatements li {
    padding: 0.28rem 0.34rem;
  }

  .runtime-tabs {
    flex-wrap: nowrap;
    padding-bottom: 0.15rem;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .dashboard-tabs .tab-btn {
    min-width: max-content;
  }

  .tab-btn {
    scroll-snap-align: start;
    font-size: 0.86rem;
    padding: 0.48rem 0.72rem;
  }

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

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

  .contact-story {
    position: static;
    top: auto;
  }

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

  .contact-direct-mail {
    width: 100%;
    text-align: center;
  }

  .contact-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-actions .action-btn,
  .contact-actions .nav-button {
    width: 100%;
    text-align: center;
  }

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

  .dash-table {
    min-width: 520px;
  }

  .data-deck-controls {
    padding: 0.46rem 0.42rem 0.2rem;
  }

  .data-deck-actions {
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
  }

  .data-deck-toggle {
    flex: 1;
    justify-content: center;
  }

  .data-deck-more-wrap {
    padding: 0 0.42rem 0.44rem;
  }

  .data-deck-more {
    width: 100%;
    justify-content: center;
  }

  .mini-data-deck {
    grid-template-columns: 1fr;
    gap: 0.42rem;
    padding: 0 0.42rem 0.46rem;
  }

  .globe-shell {
    grid-template-columns: 1fr;
  }

  .globe-stage {
    min-height: 360px;
    height: clamp(360px, 58vh, 560px);
    max-height: 560px;
  }

  .globe-search {
    max-width: 100%;
  }

  .dash-product-bars div {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .dash-product-bars small {
    grid-column: 1 / -1;
    justify-self: end;
  }

  .bench-impact-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .bench-suite-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .globe-timebar {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .globe-note {
    max-height: none;
    overflow: visible;
  }

  .globe-note-metrics {
    grid-template-columns: 1fr;
  }

  .suite-dashboard-actions {
    justify-content: flex-start;
  }

  .globe-table {
    min-width: 700px;
  }

  .agops-table,
  .foodops-table {
    min-width: 640px;
  }

  .foodh-table {
    min-width: 620px;
  }

  .inclusion-table {
    min-width: 680px;
  }

  .shift-table,
  .clock-log-table {
    min-width: 760px;
  }

  .clock-lifecycle-controls {
    grid-template-columns: 1fr;
  }

  .clock-lifecycle-table {
    min-width: 700px;
  }

  #clock-qr-image,
  #clock-qr-canvas {
    width: 180px;
    height: 180px;
  }

  .dash-kpi p {
    font-size: 0.76rem;
  }

  .source-actions .action-btn {
    width: 100%;
  }

  .dashboard-suites .suite-dashboard {
    padding: 0.68rem;
  }

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

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