:root {
  --bg: #edf6f8;
  --bg-2: #d9edf1;
  --panel: rgba(255, 255, 255, 0.94);
  --panel-strong: #ffffff;
  --sidebar: #18394f;
  --sidebar-soft: #27556d;
  --ink: #17384d;
  --ink-soft: #668293;
  --line: rgba(23, 56, 77, 0.12);
  --accent: #46c5d4;
  --accent-2: #244a63;
  --accent-3: #89dce5;
  --accent-4: #3c6d86;
  --accent-5: #122b3d;
  --shadow: 0 28px 80px rgba(19, 39, 58, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  color: var(--ink);
  background: linear-gradient(180deg, #07131f 0%, #0c2031 38%, #133348 100%);
  font-family: "Avenir Next", "Trebuchet MS", "Segoe UI", sans-serif;
}

body.screen-home {
  overflow: hidden;
}

.home-screen {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 28px 34px 42px;
  background:
    radial-gradient(circle at 18% 18%, rgba(137, 220, 229, 0.12), transparent 18%),
    radial-gradient(circle at 78% 20%, rgba(70, 197, 212, 0.12), transparent 16%),
    linear-gradient(180deg, #07131f 0%, #0d2233 46%, #12364b 100%);
}

.home-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.03), transparent 38%),
    radial-gradient(circle at 62% 68%, rgba(255, 255, 255, 0.05), transparent 16%);
  pointer-events: none;
}

.home-topbar,
.home-copy,
.home-bubble-field {
  position: relative;
  z-index: 1;
}

.home-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.home-logo-shell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(18, 43, 61, 0.12);
  box-shadow:
    0 18px 32px rgba(8, 19, 31, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.home-logo {
  display: block;
  width: clamp(118px, 14vw, 176px);
  height: auto;
  flex: 0 0 auto;
  filter: none;
}

.home-enter {
  padding: 14px 22px;
  border-radius: 999px;
  color: #0c1f29;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #9ce9f0, #46c5d4);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 34px rgba(8, 19, 31, 0.28);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.home-enter:hover,
.home-enter:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.02);
  box-shadow: 0 22px 40px rgba(8, 19, 31, 0.32);
  outline: none;
}

.home-copy {
  flex: 1;
  display: grid;
  align-content: center;
  width: min(50vw, 920px);
  max-width: 50%;
  padding: 0 4px 6vh;
  gap: 6px;
}

.home-kicker {
  margin: 0 0 22px;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(242, 248, 251, 0.74);
}

.home-title {
  margin: 0;
  color: #f6fbfc;
  font-size: clamp(4.35rem, 10.4vw, 7.45rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.95;
  text-align: left;
}

.home-subtitle {
  max-width: 100%;
  margin: 30px 0 0;
  color: rgba(226, 242, 246, 0.84);
  font-size: clamp(1.42rem, 2.45vw, 1.9rem);
  font-weight: 600;
  line-height: 1.62;
  text-align: left;
}

.home-bubble-field {
  position: absolute;
  top: 50%;
  right: 6.5%;
  width: min(34vw, 420px);
  height: min(38vw, 460px);
  transform: translateY(-44%);
  pointer-events: none;
}

.home-bubble {
  position: absolute;
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 18px;
  text-align: center;
  color: #091722;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.88);
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96) 34%, rgba(222, 228, 233, 0.94) 68%, rgba(192, 200, 207, 0.96) 100%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(214, 222, 228, 0.9));
  box-shadow:
    0 24px 44px rgba(8, 19, 31, 0.24),
    inset 0 2px 0 rgba(255, 255, 255, 0.96),
    inset 0 -12px 22px rgba(125, 137, 147, 0.12);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  pointer-events: auto;
  will-change: transform;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease, filter 180ms ease;
  text-rendering: geometricPrecision;
}

.home-bubble:hover,
.home-bubble:focus-visible {
  transform: translateY(-6px) scale(1.03);
  border-color: rgba(255, 255, 255, 1);
  filter: brightness(1.02);
  box-shadow:
    0 30px 56px rgba(8, 19, 31, 0.28),
    inset 0 2px 0 rgba(255, 255, 255, 0.98),
    inset 0 -12px 22px rgba(125, 137, 147, 0.15);
  outline: none;
}

.home-bubble__label {
  display: block;
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.04;
  color: #07131f;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
  -webkit-font-smoothing: antialiased;
}

.home-bubble__meta {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.15;
  color: rgba(7, 19, 31, 0.76);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
  -webkit-font-smoothing: antialiased;
}

.bubble-webinar {
  top: 2%;
  left: 18%;
  width: 10.4rem;
  height: 10.4rem;
  animation: bubble-webinar-drift 8.2s cubic-bezier(0.45, 0.08, 0.32, 1) infinite;
}

.bubble-corporate {
  top: 30%;
  right: 4%;
  width: 12.8rem;
  height: 12.8rem;
  animation: bubble-corporate-drift 8.9s cubic-bezier(0.45, 0.08, 0.32, 1) infinite;
  animation-delay: -2s;
}

.bubble-brand {
  bottom: 0;
  left: 6%;
  width: 11.6rem;
  height: 11.6rem;
  animation: bubble-brand-drift 8.5s cubic-bezier(0.45, 0.08, 0.32, 1) infinite;
  animation-delay: -1.1s;
}

.home-ripples {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.home-ripple {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(137, 220, 229, 0.16);
  background: radial-gradient(circle, rgba(137, 220, 229, 0.04) 0%, transparent 66%);
  box-shadow: inset 0 0 80px rgba(255, 255, 255, 0.02);
  animation: ripple-drift 18s ease-in-out infinite alternate, ripple-pulse 11s ease-in-out infinite;
}

.ripple-1 {
  width: 28rem;
  height: 28rem;
  top: 8%;
  right: 10%;
  animation-duration: 20s, 13s;
}

.ripple-2 {
  width: 20rem;
  height: 20rem;
  bottom: 16%;
  right: 22%;
  border-color: rgba(255, 255, 255, 0.1);
  animation-duration: 16s, 10s;
}

.ripple-3 {
  width: 16rem;
  height: 16rem;
  top: 48%;
  left: 56%;
  border-color: rgba(70, 197, 212, 0.14);
  animation-duration: 14s, 9s;
}

.ripple-4 {
  width: 10rem;
  height: 10rem;
  top: 24%;
  left: 64%;
  border-color: rgba(255, 255, 255, 0.08);
  animation-duration: 12s, 8s;
}

body::before {
  content: "";
  position: fixed;
  inset: -12%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 20%, rgba(137, 220, 229, 0.16), transparent 16%),
    radial-gradient(circle at 78% 16%, rgba(70, 197, 212, 0.14), transparent 14%),
    radial-gradient(circle at 62% 58%, rgba(255, 255, 255, 0.09), transparent 18%),
    radial-gradient(circle at 34% 72%, rgba(137, 220, 229, 0.08), transparent 12%);
  filter: blur(28px);
  opacity: 0.88;
  transform: scale(1.08);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 18%, transparent 0 9.6rem, rgba(137, 220, 229, 0.12) 9.7rem 9.85rem, transparent 10rem),
    radial-gradient(circle at 76% 22%, transparent 0 7.2rem, rgba(255, 255, 255, 0.08) 7.3rem 7.4rem, transparent 7.6rem),
    radial-gradient(circle at 82% 72%, transparent 0 11rem, rgba(70, 197, 212, 0.1) 11.1rem 11.25rem, transparent 11.45rem),
    radial-gradient(circle at 30% 78%, transparent 0 5.8rem, rgba(255, 255, 255, 0.06) 5.9rem 6rem, transparent 6.15rem),
    radial-gradient(circle at 52% 44%, rgba(255, 255, 255, 0.04) 0 1.2rem, transparent 1.3rem),
    radial-gradient(circle at 22% 56%, rgba(137, 220, 229, 0.05) 0 0.85rem, transparent 0.95rem),
    radial-gradient(circle at 68% 60%, rgba(255, 255, 255, 0.035) 0 1rem, transparent 1.1rem);
  opacity: 0.72;
}

.top-banner,
.shell {
  position: relative;
  z-index: 1;
}

.page-signature {
  position: fixed;
  left: 22px;
  bottom: 18px;
  z-index: 24;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 12px;
  border-radius: 999px;
  color: rgba(244, 251, 252, 0.94);
  background: linear-gradient(135deg, rgba(8, 22, 34, 0.84), rgba(16, 39, 57, 0.78));
  border: 1px solid rgba(111, 215, 227, 0.28);
  box-shadow:
    0 16px 28px rgba(7, 19, 31, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: none;
}

.page-signature__line {
  width: 24px;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(111, 215, 227, 0.18), rgba(111, 215, 227, 0.88));
  box-shadow: 0 0 12px rgba(111, 215, 227, 0.24);
}

.page-signature__text {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: none;
}

body.screen-dashboard .page-signature {
  color: rgba(240, 249, 251, 0.96);
  background: linear-gradient(135deg, rgba(15, 38, 55, 0.82), rgba(24, 57, 79, 0.76));
  border-color: rgba(36, 74, 99, 0.26);
}

.top-banner {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 0 24px;
  background: linear-gradient(90deg, #6fd7e3 0%, #46c5d4 55%, #83e2ea 100%);
  border-bottom: 1px solid rgba(18, 43, 61, 0.12);
  box-shadow: 0 10px 30px rgba(18, 43, 61, 0.08);
}

.top-banner__inner {
  max-width: 1680px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0 18px;
}

.top-banner__actions {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.top-banner__title {
  color: #000000;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  text-align: left;
}

.top-banner__home {
  padding: 11px 16px;
  border-radius: 999px;
  color: #eef9fb;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(135deg, rgba(16, 39, 57, 0.94), rgba(35, 79, 104, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 22px rgba(16, 39, 57, 0.18);
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.top-banner__home:hover,
.top-banner__home:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 16px 28px rgba(16, 39, 57, 0.22);
  outline: none;
}

.top-banner__logo {
  width: clamp(120px, 16vw, 190px);
  height: auto;
  flex: 0 0 auto;
}

button,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.shell {
  display: flex;
  min-height: calc(100vh - 84px);
}

.sidebar {
  position: sticky;
  top: 0;
  width: 348px;
  min-width: 348px;
  height: 100vh;
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 30px 24px;
  color: #eef8fb;
  background:
    radial-gradient(circle at top right, rgba(70, 197, 212, 0.3), transparent 28%),
    radial-gradient(circle at left 18%, rgba(137, 220, 229, 0.14), transparent 24%),
    linear-gradient(180deg, #102739 0%, #17384d 46%, #0b1b28 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.06);
}

.brand-block {
  position: relative;
  overflow: hidden;
  padding: 24px 22px 26px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 88% 18%, rgba(137, 220, 229, 0.2), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 34px rgba(8, 19, 31, 0.22);
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.86rem;
  font-weight: 700;
  color: rgba(242, 238, 231, 0.72);
}

.brand-block h1 {
  margin: 0;
  font-size: 3.3rem;
  line-height: 0.92;
  letter-spacing: -0.05em;
  font-family: "Iowan Old Style", "Georgia", serif;
}

.brand-copy,
.brand-copy {
  margin: 18px 0 0;
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(242, 238, 231, 0.84);
}

.sidebar-section {
  padding: 18px 16px 16px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-label {
  margin: 0 0 14px;
  padding: 0 6px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(242, 238, 231, 0.68);
}

.view-nav {
  display: grid;
  gap: 14px;
}

.view-switch {
  position: relative;
  width: 100%;
  padding: 20px 20px 18px;
  border-radius: 24px;
  text-align: left;
  color: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.035));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 24px rgba(8, 19, 31, 0.16);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.view-switch:hover,
.view-switch:focus-visible {
  transform: translateY(-3px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.05));
  border-color: rgba(137, 220, 229, 0.3);
  box-shadow: 0 16px 30px rgba(8, 19, 31, 0.22);
  outline: none;
}

.view-switch.active {
  background:
    radial-gradient(circle at top right, rgba(137, 220, 229, 0.22), transparent 22%),
    linear-gradient(135deg, rgba(70, 197, 212, 0.24), rgba(36, 74, 99, 0.42));
  border-color: rgba(137, 220, 229, 0.42);
  box-shadow: 0 18px 32px rgba(8, 19, 31, 0.26);
}

.view-switch strong,
.view-switch span {
  display: block;
}

.view-switch strong {
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.view-switch span {
  margin-top: 8px;
  font-size: 1.08rem;
  line-height: 1.55;
  color: rgba(242, 238, 231, 0.76);
}

.main-stage {
  flex: 1;
  padding: 28px;
}

.hero,
.toolbar,
.content {
  animation: rise-in 460ms ease both;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 88% 18%, rgba(70, 197, 212, 0.24), transparent 18%),
    radial-gradient(circle at 62% 120%, rgba(36, 74, 99, 0.16), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(240, 248, 250, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
  gap: 22px;
  align-items: end;
}

.hero-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.96;
  font-family: "Iowan Old Style", "Georgia", serif;
}

.hero-subtitle {
  max-width: 60ch;
  margin: 12px 0 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.pill,
.ghost-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.95rem;
}

.pill {
  background: rgba(23, 51, 74, 0.06);
  color: var(--ink);
}

.ghost-pill {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(23, 51, 74, 0.1);
}

.ghost-pill:hover,
.ghost-pill:focus-visible {
  outline: none;
  background: white;
}

.toolbar {
  margin-top: 18px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 16px 40px rgba(23, 51, 74, 0.08);
}

.toolbar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

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

.filter-field label {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.filter-field select {
  width: 100%;
  padding: 13px 14px;
  color: var(--ink);
  background: white;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.subpage-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.subpage-switch {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(23, 51, 74, 0.06);
}

.subpage-switch.active {
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.content {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

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

.webinar-grid {
  align-items: stretch;
}

.webinar-grid > .panel {
  height: 100%;
}

.panel {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 3px solid var(--accent-2);
  box-shadow: 0 16px 44px rgba(23, 51, 74, 0.08);
}

.panel-dark {
  color: white;
  background:
    radial-gradient(circle at top right, rgba(70, 197, 212, 0.24), transparent 24%),
    linear-gradient(180deg, #16384e 0%, #10293b 100%);
  border-color: var(--accent);
}

.panel-dark .panel-title,
.panel-dark .panel-subtitle,
.panel-dark .metric-label,
.panel-dark .panel-copy,
.panel-dark .data-list li,
.panel-dark .legend-label {
  color: inherit;
}

.span-12 { grid-column: span 12; }
.span-8 { grid-column: span 8; }
.span-7 { grid-column: span 7; }
.span-6 { grid-column: span 6; }
.span-5 { grid-column: span 5; }
.span-4 { grid-column: span 4; }
.span-3 { grid-column: span 3; }

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

.panel-title {
  margin: 0;
  font-size: 1.05rem;
  color: var(--accent-4);
}

.panel-dark .panel-title {
  color: #7fd3dd;
}

.panel-subtitle {
  margin: 8px 0 0;
  line-height: 1.55;
  color: var(--ink-soft);
}

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

.kpi-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(238, 248, 250, 0.9));
  border: 1px solid rgba(23, 51, 74, 0.08);
}

.kpi-card::after {
  content: "";
  position: absolute;
  inset: auto -30px -30px auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(70, 197, 212, 0.18), transparent 62%);
}

.metric-value {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.metric-label {
  margin-top: 8px;
  color: var(--ink-soft);
}

.metric-note {
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.metric-row-list,
.data-list {
  display: grid;
  gap: 12px;
}

.metric-row,
.legend-row {
  display: grid;
  gap: 10px;
  align-items: center;
  grid-template-columns: minmax(110px, 1fr) 1.6fr auto;
}

.metric-row-button {
  width: 100%;
  padding: 10px 12px;
  text-align: left;
  color: inherit;
  border-radius: 18px;
  background: rgba(23, 51, 74, 0.04);
  border: 1px solid rgba(23, 51, 74, 0.08);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.metric-row-button:hover,
.metric-row-button:focus-visible {
  transform: translateY(-1px);
  background: rgba(70, 197, 212, 0.1);
  border-color: rgba(36, 74, 99, 0.22);
  outline: none;
}

.legend-row {
  grid-template-columns: auto 1fr auto;
}

.metric-row strong,
.legend-row strong {
  font-weight: 700;
}

.track {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(23, 51, 74, 0.08);
}

.fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #9ce9f0);
}

.fill.alt {
  background: linear-gradient(90deg, var(--accent-2), #4d7992);
}

.fill.gold {
  background: linear-gradient(90deg, var(--accent-3), #c7f0f4);
}

.fill.deep {
  background: linear-gradient(90deg, var(--accent-4), #6e9cb3);
}

.fill.rose {
  background: linear-gradient(90deg, var(--accent-5), #385a70);
}

.vertical-bars {
  display: grid;
  gap: 12px;
  align-items: end;
  grid-template-columns: repeat(auto-fit, minmax(32px, 1fr));
  min-height: 240px;
}

.bar-column {
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 0;
  background: transparent;
  color: inherit;
}

.bar-button {
  width: 100%;
  border-radius: 18px;
  transition: transform 160ms ease, background 160ms ease;
}

.bar-button:hover,
.bar-button:focus-visible {
  transform: translateY(-2px);
  background: rgba(70, 197, 212, 0.08);
  outline: none;
}

.bar-value {
  font-size: 0.84rem;
  color: var(--ink-soft);
}

.bar-stack {
  display: flex;
  align-items: end;
  width: 100%;
  min-height: 180px;
}

.bar-shape {
  width: 100%;
  border-radius: 14px 14px 4px 4px;
  background: linear-gradient(180deg, #9ee9f0 0%, var(--accent) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.bar-shape.alt {
  background: linear-gradient(180deg, #5d8ba4 0%, var(--accent-2) 100%);
}

.bar-shape.deep {
  background: linear-gradient(180deg, #6f9db4 0%, var(--accent-5) 100%);
}

.bar-label {
  font-size: 0.82rem;
  text-align: center;
  color: var(--ink-soft);
}

.donut-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.donut-ring {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto;
  border-radius: 50%;
}

.donut-ring::after {
  content: "";
  position: absolute;
  inset: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: inset 0 0 0 1px rgba(23, 51, 74, 0.06);
}

.panel-dark .donut-ring::after {
  background: rgba(19, 39, 58, 0.92);
}

.donut-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1;
  text-align: center;
}

.donut-center strong {
  display: block;
  font-size: 2.1rem;
  line-height: 1;
}

.donut-center span {
  display: block;
  margin-top: 6px;
  font-size: 0.84rem;
  color: var(--ink-soft);
}

.legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 4px;
}

.legend-label {
  color: var(--ink-soft);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: flex-start;
}

.tag-chip {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(23, 51, 74, 0.06);
  border: 1px solid rgba(23, 51, 74, 0.08);
}

.selection-card {
  display: grid;
  gap: 14px;
}

.insight-copy {
  margin: 0;
  line-height: 1.65;
  color: var(--ink-soft);
}

.panel-dark .insight-copy {
  color: rgba(242, 238, 231, 0.84);
}

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

.stacked-rows {
  display: grid;
  gap: 14px;
}

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

.stack-row-button {
  width: 100%;
  padding: 10px 12px;
  text-align: left;
  color: inherit;
  border-radius: 18px;
  background: rgba(23, 51, 74, 0.04);
  border: 1px solid rgba(23, 51, 74, 0.08);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.stack-row-button:hover,
.stack-row-button:focus-visible {
  transform: translateY(-1px);
  background: rgba(70, 197, 212, 0.08);
  border-color: rgba(36, 74, 99, 0.2);
  outline: none;
}

.stack-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.94rem;
}

.stack-track {
  display: flex;
  overflow: hidden;
  height: 14px;
  border-radius: 999px;
  background: rgba(23, 51, 74, 0.08);
}

.stack-segment.promoter { background: var(--accent-2); }
.stack-segment.passive { background: var(--accent-3); }
.stack-segment.detractor { background: var(--accent-4); }

.trend-svg {
  width: 100%;
  height: 210px;
}

.trend-grid line {
  stroke: rgba(23, 51, 74, 0.08);
}

.trend-path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trend-dots circle {
  fill: white;
  stroke: var(--accent);
  stroke-width: 3;
}

.trend-label {
  font-size: 11px;
  fill: var(--ink-soft);
}

.score-grid {
  display: grid;
  gap: 14px;
}

.score-box {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(23, 51, 74, 0.05);
  border: 1px solid rgba(23, 51, 74, 0.08);
}

.score-button {
  width: 100%;
  text-align: left;
  color: inherit;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.score-button:hover,
.score-button:focus-visible {
  transform: translateY(-2px);
  background: rgba(70, 197, 212, 0.1);
  border-color: rgba(36, 74, 99, 0.24);
  outline: none;
}

.score-box strong {
  display: block;
  margin-top: 2px;
  font-size: 1.4rem;
}

.table-card {
  overflow: auto;
}

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

th,
td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(23, 51, 74, 0.08);
}

th {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

td button.linkish {
  padding: 0;
  color: var(--accent-5);
  background: transparent;
}

.mini-stat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  background: rgba(23, 51, 74, 0.05);
}

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

.rank-table {
  display: grid;
  gap: 10px;
}

.rank-row {
  display: grid;
  gap: 12px;
  align-items: center;
  grid-template-columns: minmax(120px, 140px) repeat(3, minmax(0, 1fr));
}

.rank-pill {
  padding: 8px 10px;
  border-radius: 12px;
  text-align: center;
  font-size: 0.88rem;
  background: rgba(23, 51, 74, 0.06);
}

.rank-pill strong {
  display: block;
  font-size: 0.72rem;
  color: var(--ink-soft);
}

.footnote {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ripple-drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-18px, 24px, 0) scale(1.06);
  }
}

@keyframes ripple-pulse {
  0%,
  100% {
    opacity: 0.56;
  }
  50% {
    opacity: 0.84;
  }
}

@keyframes bubble-webinar-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  18% {
    transform: translate3d(14px, -8px, 0) scale(1.02);
  }
  36% {
    transform: translate3d(70px, 64px, 0) scale(1.04);
  }
  44% {
    transform: translate3d(82px, 84px, 0) scale(0.97);
  }
  62% {
    transform: translate3d(42px, 136px, 0) scale(1.01);
  }
  80% {
    transform: translate3d(8px, 72px, 0) scale(0.99);
  }
}

@keyframes bubble-corporate-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  16% {
    transform: translate3d(-10px, 14px, 0) scale(1.02);
  }
  34% {
    transform: translate3d(-76px, 56px, 0) scale(1.03);
  }
  42% {
    transform: translate3d(-90px, 76px, 0) scale(0.97);
  }
  60% {
    transform: translate3d(-54px, 126px, 0) scale(1.01);
  }
  82% {
    transform: translate3d(-8px, 44px, 0) scale(0.99);
  }
}

@keyframes bubble-brand-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  20% {
    transform: translate3d(12px, -18px, 0) scale(1.02);
  }
  38% {
    transform: translate3d(56px, -82px, 0) scale(1.04);
  }
  46% {
    transform: translate3d(72px, -100px, 0) scale(0.97);
  }
  64% {
    transform: translate3d(112px, -126px, 0) scale(1.01);
  }
  82% {
    transform: translate3d(42px, -54px, 0) scale(0.99);
  }
}

@media (max-width: 1200px) {
  .sidebar {
    position: static;
    width: 100%;
    min-width: 0;
    height: auto;
  }

  .shell {
    flex-direction: column;
  }

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

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

  .home-title {
    max-width: 8ch;
  }

  .home-bubble-field {
    right: 4%;
    width: min(38vw, 360px);
  }
}

@media (max-width: 880px) {
  .home-screen {
    padding: 22px 20px 30px;
  }

  .home-copy {
    width: 100%;
    max-width: 100%;
    padding: 0 2px 4vh;
  }

  .home-bubble-field {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    height: clamp(21rem, 42vh, 24rem);
    margin-top: 24px;
    transform: none;
  }

  .home-bubble {
    min-height: 0;
    padding: 16px;
  }

  .bubble-webinar {
    top: 0;
    left: 2%;
    width: min(9.4rem, 34vw);
    height: min(9.4rem, 34vw);
  }

  .bubble-corporate {
    top: 6%;
    right: 0;
    width: min(10.4rem, 39vw);
    height: min(10.4rem, 39vw);
  }

  .bubble-brand {
    bottom: 0;
    left: 18%;
    width: min(9.8rem, 36vw);
    height: min(9.8rem, 36vw);
  }

  .home-title {
    font-size: clamp(3.2rem, 14vw, 4.8rem);
  }

  .home-subtitle {
    max-width: 100%;
  }

  .home-enter {
    padding: 13px 18px;
  }

  .home-logo {
    width: clamp(104px, 24vw, 148px);
  }

  .home-logo-shell {
    padding: 10px 14px;
    border-radius: 18px;
  }

  .top-banner {
    padding: 0 16px;
  }

  .top-banner__inner {
    padding: 18px 0 16px;
  }

  .top-banner__title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .top-banner__actions {
    gap: 10px;
  }

  .top-banner__home {
    padding: 10px 14px;
    font-size: 0.84rem;
  }

  .top-banner__logo {
    width: clamp(96px, 22vw, 150px);
  }

  .main-stage {
    padding: 16px;
  }

  .page-signature {
    left: 16px;
    bottom: 14px;
    padding: 9px 12px 9px 10px;
  }

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

  .span-12,
  .span-8,
  .span-7,
  .span-6,
  .span-5,
  .span-4,
  .span-3 {
    grid-column: span 1;
  }

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

  .rank-row,
  .metric-row,
  .legend-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .home-ripple {
    opacity: 0.56;
  }

  .ripple-1 {
    width: 18rem;
    height: 18rem;
    right: -8%;
  }

  .ripple-2 {
    width: 14rem;
    height: 14rem;
    right: 18%;
  }

  .ripple-3 {
    width: 11rem;
    height: 11rem;
    left: 58%;
  }

  .ripple-4 {
    width: 7rem;
    height: 7rem;
  }

  .home-bubble-field {
    height: 19rem;
    margin-top: 18px;
  }

  .bubble-webinar {
    top: 2%;
    left: 0;
    width: min(8.6rem, 36vw);
    height: min(8.6rem, 36vw);
  }

  .bubble-corporate {
    top: 12%;
    right: 0;
    width: min(9.8rem, 42vw);
    height: min(9.8rem, 42vw);
  }

  .bubble-brand {
    bottom: 2%;
    left: 12%;
    width: min(9rem, 38vw);
    height: min(9rem, 38vw);
  }

  .sidebar,
  .hero,
  .toolbar,
  .panel {
    border-radius: 20px;
  }

  .page-signature {
    left: 12px;
    bottom: 12px;
    gap: 8px;
    padding: 8px 11px 8px 9px;
  }

  .page-signature__line {
    width: 18px;
  }

  .page-signature__text {
    font-size: 0.74rem;
    letter-spacing: 0.12em;
  }

  .brand-block h1,
  .hero-title {
    line-height: 1.02;
  }

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