.ob2-insights,
.ob2-dialog {
  --ob2-ink: #172945;
  --ob2-muted: #52647a;
  --ob2-line: #e0e8f1;
  --ob2-accent: #06786d;
  --ob2-accent-soft: #e7f8f4;
  color: var(--ob2-ink);
}

.ob2-insights {
  container: ob2-insights / inline-size;
}

.ob2-card[data-chart='consultants'],
.ob2-dialog[data-chart='consultants'] {
  --ob2-accent: #6442c3;
  --ob2-accent-soft: #f1ebff;
}

.ob2-card[data-chart='lenses'],
.ob2-dialog[data-chart='lenses'] {
  --ob2-accent: #245dbb;
  --ob2-accent-soft: #eaf2ff;
}

.ob2-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: .75rem 1.2rem;
  margin-bottom: 1.05rem;
}

.ob2-eyebrow {
  display: flex;
  align-items: center;
  gap: .45rem;
  color: var(--ob2-accent);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .1em;
  line-height: 1.25;
  text-transform: uppercase;
}

.ob2-eyebrow::before {
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: #0d9f91;
  content: '';
}

.ob2-head h2 {
  margin: .22rem 0 0;
  font-size: clamp(1.2rem, 2.75cqi, 1.65rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.15;
}

.ob2-head h2 + p,
.ob2-card-head h3 + p {
  margin: .32rem 0 0;
  color: var(--ob2-muted);
  font-size: .81rem;
  line-height: 1.36;
}

.ob2-year {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: .22rem;
  padding: .2rem;
  border: 1px solid var(--ob2-line);
  border-radius: .75rem;
  background: #fff;
  font-size: .85rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.ob2-year span {
  min-width: 2.8rem;
  text-align: center;
}

.ob2-year button,
.ob2-dialog-close {
  display: grid;
  width: 2.25rem;
  min-height: 2.25rem;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: .55rem;
  background: transparent;
  color: var(--ob2-accent);
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
}

.ob2-year button:enabled:hover,
.ob2-dialog-close:hover {
  background: var(--ob2-accent-soft);
}

.ob2-year button:disabled {
  color: #97a4b4;
  cursor: default;
}

.ob2-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .95rem;
}

.ob2-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 1.06rem;
  border: 1px solid var(--ob2-line);
  border-top-color: color-mix(in srgb, var(--ob2-accent), white 65%);
  border-radius: 1.12rem;
  background: linear-gradient(152deg, var(--ob2-accent-soft) -25%, #fff 31%);
  box-shadow: 0 .35rem 1.5rem rgb(34 64 100 / 7%);
}

.ob2-card-head {
  display: grid;
  grid-template-columns: 2.3rem minmax(0, 1fr);
  align-content: start;
  align-items: start;
  gap: .42rem .68rem;
}

.ob2-card-icon {
  display: grid;
  width: 2.3rem;
  height: 2.3rem;
  place-items: center;
  border-radius: .72rem;
  background: var(--ob2-accent-soft);
  color: var(--ob2-accent);
  font-size: .9rem;
  font-weight: 800;
}

.ob2-card-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.ob2-card-head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -.018em;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.ob2-card-head h3 + p {
  margin-top: .22rem;
  font-size: .74rem;
}

.ob2-period {
  display: inline-flex;
  max-width: 100%;
  align-self: center;
  align-items: center;
  gap: .35rem;
  margin: 0 0 .45rem;
  color: var(--ob2-muted);
  font-size: .72rem;
  font-weight: 650;
}

.ob2-period select,
select.ob2-period {
  min-height: 2rem;
  padding: .18rem .45rem;
  border: 1px solid var(--ob2-line);
  border-radius: .48rem;
  background-color: #fff;
  color: var(--ob2-ink);
  cursor: pointer;
  font: inherit;
}

.ob2-ring {
  position: relative;
  display: grid;
  width: min(100%, 11.25rem);
  aspect-ratio: 1;
  align-self: center;
  place-items: center;
  margin: .65rem auto .8rem;
}

.ob2-ring svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.ob2-track {
  stroke: #e8eef5;
}

.ob2-slice {
  cursor: pointer;
  pointer-events: stroke;
}

.ob2-slice:hover,
.ob2-slice:focus-visible {
  outline: 0;
  filter: brightness(1.08) drop-shadow(0 0 2px #26355b70);
}

.ob2-ring-open {
  position: absolute;
  display: flex;
  width: 65%;
  height: 65%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .2rem;
  padding: .34rem;
  border: 1px solid #e9eff6;
  border-radius: 50%;
  background: linear-gradient(155deg, #fff 35%, var(--ob2-accent-soft) 155%);
  color: var(--ob2-ink);
  cursor: pointer;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.ob2-ring-open:hover {
  border-color: color-mix(in srgb, var(--ob2-accent), white 65%);
  background: var(--ob2-accent-soft);
}

.ob2-ring-open span,
.ob2-ring-open small {
  max-width: 100%;
  color: var(--ob2-muted);
  font-size: .65rem;
  font-weight: 700;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.ob2-ring-open strong {
  max-width: 100%;
  font-size: clamp(.78rem, 1.45cqi, 1rem);
  font-weight: 850;
  letter-spacing: -.045em;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.ob2-ring-open small {
  color: var(--ob2-accent);
}

.ob2-legend {
  display: grid;
  max-height: 9.45rem;
  gap: .15rem;
  margin: 0 0 .8rem;
  padding: .12rem .18rem;
  overflow: auto;
  list-style: none;
  scrollbar-width: thin;
  scrollbar-color: #a7b9cc transparent;
}

.ob2-legend li {
  min-width: 0;
}

.ob2-legend button {
  display: grid;
  width: 100%;
  min-height: 2.45rem;
  grid-template-columns: .62rem minmax(0, 1fr) auto;
  align-items: center;
  gap: .44rem;
  padding: .3rem .38rem;
  border: 1px solid transparent;
  border-radius: .6rem;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.ob2-legend button:hover {
  border-color: color-mix(in srgb, var(--ob2-accent), white 82%);
  background: var(--ob2-accent-soft);
}

.ob2-dot {
  display: inline-block;
  width: .62rem;
  height: .62rem;
  border-radius: 50%;
  background: var(--ob2-accent);
}

.ob2-name {
  min-width: 0;
  font-size: .77rem;
  font-weight: 740;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.ob2-name small {
  display: block;
  margin-top: .1rem;
  color: var(--ob2-muted);
  font-size: .69rem;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
}

.ob2-legend strong {
  color: var(--ob2-accent);
  font-size: .72rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.ob2-empty,
.ob2-dialog-empty {
  margin: .25rem 0 .8rem;
  padding: .65rem .75rem;
  border-radius: .65rem;
  background: #f5f8fb;
  color: var(--ob2-muted);
  font-size: .8rem;
  line-height: 1.45;
}

.ob2-empty button {
  color: var(--ob2-accent);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.ob2-detail-button {
  display: inline-flex;
  width: 100%;
  min-height: 2.35rem;
  align-items: center;
  justify-content: center;
  gap: .36rem;
  margin-top: auto;
  padding: .4rem .6rem;
  border: 1px solid color-mix(in srgb, var(--ob2-accent), white 83%);
  border-radius: .65rem;
  background: var(--ob2-accent-soft);
  color: var(--ob2-accent);
  cursor: pointer;
  font-size: .77rem;
  font-weight: 800;
  text-align: center;
}

.ob2-detail-button:enabled:hover {
  border-color: color-mix(in srgb, var(--ob2-accent), white 63%);
  background: color-mix(in srgb, var(--ob2-accent-soft), var(--ob2-accent) 8%);
}

.ob2-detail-button svg {
  width: .9rem;
  height: .9rem;
}

.ob2-dialog {
  position: fixed;
  inset: 0;
  width: min(calc(100% - 2rem), 44rem);
  max-height: min(44rem, calc(100dvh - 2rem));
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--ob2-line);
  border-radius: 1.12rem;
  background: #fff;
  box-shadow: 0 1.6rem 4.4rem #10243f55;
}

.ob2-dialog[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.ob2-dialog::backdrop {
  background: rgb(14 31 52 / 61%);
  backdrop-filter: blur(2px);
}

.ob2-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.15rem;
  border-bottom: 1px solid var(--ob2-line);
  background: linear-gradient(120deg, var(--ob2-accent-soft), #fff 75%);
}

.ob2-dialog-head :is(h2, h3) {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.ob2-dialog-head .ob2-eyebrow + h2 {
  margin-top: .25rem;
}

.ob2-dialog-close {
  width: 2.45rem;
  min-height: 2.45rem;
  flex: none;
  border: 1px solid var(--ob2-line);
  background: #fff;
}

.ob2-dialog-close svg {
  width: 1rem;
  height: 1rem;
}

.ob2-dialog-content {
  min-height: 0;
  padding: 1rem 1.15rem 1.15rem;
  overflow: auto;
  overscroll-behavior: contain;
}

.ob2-dialog-copy {
  margin: 0 0 .75rem;
  color: var(--ob2-muted);
  font-size: .8rem;
  line-height: 1.4;
}

.ob2-dialog-table-scroll {
  max-width: 100%;
  overflow: auto;
  border: 1px solid var(--ob2-line);
  border-radius: .65rem;
}

.ob2-dialog-table-scroll table {
  width: 100%;
  border-collapse: collapse;
  font-size: .79rem;
  font-variant-numeric: tabular-nums;
}

.ob2-dialog-table-scroll :is(th, td) {
  padding: .57rem .62rem;
  border-bottom: 1px solid var(--ob2-line);
  text-align: right;
}

.ob2-dialog-table-scroll :is(th, td):first-child {
  min-width: 7rem;
  text-align: left;
  overflow-wrap: anywhere;
}

.ob2-dialog-table-scroll :is(th, td):not(:first-child) {
  white-space: nowrap;
}

.ob2-dialog-table-scroll thead {
  background: #f4f7fa;
  color: var(--ob2-muted);
}

.ob2-dialog-table-scroll tbody tr:last-child > * {
  border-bottom: 0;
}

.ob2-dialog-table-scroll tr[data-selected='true'] > * {
  background: var(--ob2-accent-soft);
  color: var(--ob2-accent);
  font-weight: 800;
}

.ob2-dialog-table-scroll tr[data-selected='true'] > :first-child {
  box-shadow: inset .18rem 0 var(--ob2-accent);
}

.ob2-insights :is(button, select):focus-visible,
.ob2-dialog :is(button, select, [tabindex]):focus-visible {
  outline: 2px solid var(--ob2-accent);
  outline-offset: 2px;
}

.ob2-legend button:focus-visible {
  outline-offset: -2px;
}

@container ob2-insights (min-width: 35rem) {
  .ob2-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ob2-card {
    grid-column: span 2;
  }

  .ob2-card:last-child:nth-child(odd) {
    grid-column: 2 / 4;
  }

  .ob2-card-head {
    min-height: 4rem;
  }
}

@container ob2-insights (min-width: 46rem) {
  .ob2-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ob2-card,
  .ob2-card:last-child:nth-child(odd) {
    grid-column: auto;
  }
}

@media (max-width: 35rem) {
  .ob2-card {
    padding: .85rem;
  }

  .ob2-dialog-head,
  .ob2-dialog-content {
    padding-inline: .85rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .ob2-insights :is(button, select),
  .ob2-dialog-close {
    transition: background-color .16s ease, border-color .16s ease;
  }

  .ob2-slice {
    transition: filter .16s ease, opacity .16s ease;
  }

  .ob2-dialog[open] {
    animation: ob2-dialog-open .18s ease-out;
  }
}

@keyframes ob2-dialog-open {
  from { opacity: 0; transform: translateY(.35rem); }
  to { opacity: 1; transform: translateY(0); }
}
