.hero {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  align-items: center;
  min-height: 600px;
  gap: 48px;
  padding-block: 42px;
}

.hero-copy {
  max-width: 650px;
}

.hero h1 {
  font-size: clamp(2.75rem, 4vw, 3.55rem);
}

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

.system-map {
  position: relative;
  min-height: 490px;
  background:
    radial-gradient(circle at center, color-mix(in srgb, var(--accent) 12%, transparent), transparent 45%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.system-map::before,
.system-map::after {
  position: absolute;
  inset: 19% 17%;
  content: "";
  border: 1px dashed var(--border);
  border-radius: 50%;
}

.metric-card,
.dashboard-card {
  position: absolute;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  box-shadow: var(--shadow);
}

.metric-card {
  width: 170px;
}

.metric-card span {
  font-weight: 800;
}

.metric-card strong {
  display: block;
  margin-top: 7px;
  font-size: 1.4rem;
}

.metric-card small,
.dashboard-grid small {
  color: var(--muted);
  font-size: .74rem;
}

.card-erp {
  top: 26px;
  left: 28px;
}

.card-lms {
  top: 26px;
  right: 28px;
}

.card-ivr {
  top: 176px;
  left: 16px;
}

.card-api {
  top: 176px;
  right: 16px;
}

.hub {
  position: absolute;
  top: 42%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  background: var(--surface);
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  font-size: 1.55rem;
  font-weight: 900;
  transform: translate(-50%, -50%);
}

.dashboard-card {
  right: 9%;
  bottom: 20px;
  left: 9%;
}

.dashboard-card h3 {
  margin-bottom: 10px;
  font-size: 1rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.dashboard-grid div {
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: 7px;
}

.dashboard-grid small {
  display: block;
}

.dashboard-grid strong {
  font-size: 1.05rem;
}

.chart-line {
  height: 30px;
  margin-top: 10px;
  background:
    linear-gradient(145deg, transparent 45%, var(--accent) 46% 48%, transparent 49%),
    linear-gradient(25deg, transparent 40%, var(--primary-2) 41% 43%, transparent 44%);
  border-radius: 8px;
  opacity: .55;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.method-grid li {
  padding: 18px;
  border-top: 1px solid var(--border);
}

.method-grid span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 50%;
  font-weight: 800;
}

.method-grid p {
  color: var(--muted);
}

.about-panel {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 34px;
  padding: 34px;
  margin-bottom: 68px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.values-grid div {
  padding: 18px;
  background: var(--surface-2);
  border-radius: 12px;
}

.values-grid strong,
.values-grid small {
  display: block;
}

.values-grid small {
  margin-top: 8px;
  color: var(--muted);
}

.contact-panel {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 34px;
  padding: 34px;
  margin-bottom: 48px;
}

.internal-hero {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  align-items: center;
  min-height: 490px;
  gap: 44px;
  padding-block: 30px 48px;
}

.internal-hero h1 {
  max-width: 780px;
  font-family: inherit;
  font-size: clamp(2.6rem, 3.7vw, 3.65rem);
  font-weight: 750;
}

.product-panel {
  min-width: 0;
  overflow: hidden;
}

.product-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 0 18px;
  border-bottom: 1px solid var(--border);
}

.product-toolbar strong {
  color: var(--primary-2);
}

html[data-theme="dark"] .product-toolbar strong {
  color: var(--text);
}

.toolbar-dots {
  display: flex;
  gap: 6px;
}

.toolbar-dots span {
  width: 7px;
  height: 7px;
  background: var(--border);
  border-radius: 50%;
}

.learning-dashboard {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  min-height: 390px;
}

.learning-sidebar {
  padding: 20px 14px;
  background: var(--surface-2);
  border-right: 1px solid var(--border);
}

.learning-sidebar strong {
  display: block;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 1.1rem;
}

.learning-sidebar span {
  display: block;
  padding: 8px 10px;
  color: var(--muted);
  border-radius: 8px;
  font-size: .86rem;
}

.learning-sidebar span:first-of-type {
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
}

.learning-main {
  padding: 20px;
}

.learning-main h2 {
  margin-bottom: 18px;
  font-size: 1.25rem;
}

.learning-summary {
  display: grid;
  grid-template-columns: 1.4fr .7fr;
  gap: 22px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.course-list {
  display: grid;
  gap: 18px;
}

.course-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 8px 14px;
}

.course-row strong,
.course-row small {
  font-size: .82rem;
}

.course-row small {
  color: var(--muted);
}

.progress-track {
  grid-column: 1 / -1;
  height: 6px;
  overflow: hidden;
  background: var(--surface-2);
  border-radius: 6px;
}

.progress-track span {
  display: block;
  height: 100%;
  background: var(--accent);
}

.progress-score {
  display: grid;
  place-items: center;
  min-height: 140px;
  border-left: 1px solid var(--border);
}

.progress-score div {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border: 8px solid color-mix(in srgb, var(--accent) 28%, var(--surface-2));
  border-top-color: var(--accent);
  border-radius: 50%;
  font-size: 1.4rem;
  font-weight: 800;
}

.learning-activity {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 24px;
}

.learning-activity div {
  min-width: 0;
  padding-right: 14px;
  border-right: 1px solid var(--border);
}

.learning-activity div:last-child {
  border-right: 0;
}

.learning-activity strong,
.learning-activity small {
  display: block;
}

.learning-activity small {
  margin-top: 5px;
  color: var(--muted);
}

.learning-features {
  grid-template-columns: repeat(5, 1fr);
}

.pilot-details {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 12px;
  padding-block: 12px 48px;
}

.reason-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
}

.reason-list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
}

.reason-list img {
  width: 21px;
  color: var(--accent);
}

.reason-list span {
  color: var(--muted);
}

.pilot-cta {
  margin-bottom: 48px;
}

.data-bi-page main {
  padding-bottom: 24px;
}

.bi-hero {
  display: grid;
  grid-template-columns: .94fr 1.06fr;
  align-items: center;
  min-height: 384px;
  gap: 48px;
  padding-block: 10px 20px;
}

.bi-hero-copy {
  max-width: 600px;
  padding-left: 42px;
}

.bi-hero-copy h1 {
  max-width: 560px;
  margin-bottom: 14px;
  font-family: inherit;
  font-size: clamp(2.9rem, 4vw, 3.75rem);
  font-weight: 760;
  line-height: 1.08;
}

.bi-hero-copy .lead {
  max-width: 590px;
}

.bi-dashboard {
  height: 390px;
  padding: 12px;
  border-radius: 9px;
  box-shadow: 0 4px 15px rgba(21, 35, 58, .08);
  container-type: inline-size;
}

.bi-dashboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 28px;
  padding: 0 3px 8px;
}

.bi-dashboard-head h2 {
  margin: 0;
  font-size: .84rem;
}

.bi-dashboard-head > span {
  padding: 5px 9px;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: .65rem;
  font-weight: 700;
}

.bi-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
}

.bi-stats > div {
  position: relative;
  min-width: 0;
  height: 74px;
  padding: 10px 11px;
  border: 1px solid var(--border);
  border-radius: 7px;
}

.bi-stats small,
.bi-stats strong,
.bi-stats span {
  display: block;
}

.bi-stats small {
  overflow: hidden;
  color: var(--muted);
  font-size: .58rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bi-stats strong {
  margin-top: 3px;
  font-size: 1.12rem;
}

.bi-stats span {
  margin-top: 2px;
  color: var(--accent);
  font-size: .62rem;
  font-weight: 800;
}

.mini-bars {
  position: absolute;
  right: 10px;
  bottom: 11px;
  display: flex;
  align-items: end;
  width: 48px;
  height: 19px;
  gap: 3px;
}

.mini-bars b {
  width: 7px;
  background: var(--accent);
  border-radius: 2px 2px 0 0;
  opacity: .78;
}

.mini-bars b:nth-child(1) {
  height: 27%;
}

.mini-bars b:nth-child(2) {
  height: 46%;
}

.mini-bars b:nth-child(3) {
  height: 38%;
}

.mini-bars b:nth-child(4) {
  height: 72%;
}

.mini-bars b:nth-child(5) {
  height: 90%;
}

.bi-dashboard-grid {
  display: grid;
  grid-template-columns: .86fr 1.14fr;
  grid-template-rows: 140px 92px;
  gap: 9px;
  margin-top: 9px;
}

.bi-widget {
  min-width: 0;
  overflow: hidden;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 7px;
}

.bi-widget h3 {
  margin-bottom: 7px;
  font-size: .62rem;
}

.donut-wrap {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.donut-chart {
  position: relative;
  display: grid;
  place-items: center;
  width: 94px;
  height: 94px;
  margin-inline: auto;
  background: conic-gradient(
    var(--primary) 0 45%,
    var(--accent) 45% 73%,
    color-mix(in srgb, var(--accent) 58%, white) 73% 90%,
    color-mix(in srgb, var(--primary) 35%, white) 90% 100%
  );
  border-radius: 50%;
}

.donut-chart::after {
  position: absolute;
  inset: 15px;
  background: var(--surface);
  content: "";
  border-radius: 50%;
}

.donut-chart span {
  position: relative;
  z-index: 1;
  text-align: center;
}

.donut-chart strong,
.donut-chart small {
  display: block;
}

.donut-chart strong {
  font-size: .78rem;
}

.donut-chart small {
  color: var(--muted);
  font-size: .5rem;
}

.donut-wrap ul {
  display: grid;
  gap: 5px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.donut-wrap li {
  display: grid;
  grid-template-columns: 7px 1fr auto;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: .53rem;
}

.donut-wrap li i {
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
}

.donut-wrap li:nth-child(2) i {
  background: var(--accent);
}

.donut-wrap li:nth-child(3) i {
  background: color-mix(in srgb, var(--accent) 58%, white);
}

.donut-wrap li:nth-child(4) i {
  background: color-mix(in srgb, var(--primary) 35%, white);
}

.trend-widget {
  position: relative;
}

.trend-legend {
  position: absolute;
  top: 9px;
  right: 12px;
  display: flex;
  gap: 10px;
  color: var(--muted);
  font-size: .48rem;
}

.trend-legend span::before {
  display: inline-block;
  width: 10px;
  height: 2px;
  margin-right: 4px;
  vertical-align: middle;
  background: var(--accent);
  content: "";
}

.trend-legend span:last-child::before {
  background: var(--primary-2);
  opacity: .45;
}

.trend-chart {
  position: relative;
  height: 100px;
  margin-top: 2px;
  background:
    linear-gradient(var(--border) 1px, transparent 1px) 0 0 / 100% 25px;
  opacity: .9;
}

.trend-chart i {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: var(--w);
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: rotate(var(--r));
  transform-origin: left center;
}

.region-widget {
  display: grid;
  align-content: start;
  gap: 5px;
}

.region-widget h3 {
  margin-bottom: 1px;
}

.region-widget > div {
  display: grid;
  grid-template-columns: 44px 43px 1fr 30px;
  align-items: center;
  gap: 5px;
  font-size: .52rem;
}

.region-widget > div > span {
  font-weight: 700;
}

.region-widget > div > i {
  height: 4px;
  overflow: hidden;
  background: var(--surface-2);
  border-radius: 4px;
}

.region-widget > div > i b {
  display: block;
  height: 100%;
  background: var(--primary);
  border-radius: inherit;
}

.region-widget > div > small {
  color: var(--accent);
}

.alerts-widget {
  display: grid;
  align-content: start;
  gap: 5px;
}

.alerts-widget h3 {
  margin-bottom: 1px;
}

.alerts-widget p {
  display: grid;
  grid-template-columns: 8px 1fr;
  gap: 5px;
  margin: 0;
  color: var(--muted);
  font-size: .51rem;
}

.alerts-widget p i {
  width: 7px;
  height: 7px;
  margin-top: 1px;
  background: var(--accent);
  border-radius: 50%;
}

.bi-feature-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.bi-feature-strip article {
  display: grid;
  grid-template-columns: 30px 1fr;
  min-width: 0;
  gap: 9px;
  padding: 6px 12px;
  border-right: 1px solid var(--border);
}

.bi-feature-strip article:last-child {
  border-right: 0;
}

.bi-feature-strip img {
  width: 26px;
}

html[data-theme="dark"] .bi-feature-strip img,
html[data-theme="dark"] .bi-capabilities-panel img {
  filter: invert(1) grayscale(1) brightness(1.7);
}

.bi-feature-strip h2 {
  margin-bottom: 3px;
  font-size: .69rem;
}

.bi-feature-strip p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: .62rem;
  line-height: 1.45;
}

.bi-lower-grid {
  display: grid;
  grid-template-columns: .87fr 1.13fr;
  gap: 12px;
  margin-top: 12px;
}

.bi-source-panel,
.bi-capabilities-panel {
  min-width: 0;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.bi-source-panel h2,
.bi-capabilities-panel h2 {
  margin-bottom: 11px;
  font-size: .88rem;
}

.source-badges {
  display: flex;
  align-items: center;
  min-height: 34px;
  gap: 16px;
  overflow: hidden;
  white-space: nowrap;
}

.source-badges strong {
  color: var(--primary);
  font-size: .78rem;
}

html[data-theme="dark"] .source-badges strong {
  color: var(--text);
}

.source-badges strong:nth-child(3) {
  color: var(--accent);
}

.source-badges span {
  color: var(--muted);
  font-size: .66rem;
}

.bi-source-panel > p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: .63rem;
}

.bi-capabilities-panel > div {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.bi-capabilities-panel span {
  display: grid;
  grid-template-columns: 23px 1fr;
  align-content: start;
  min-width: 0;
  column-gap: 7px;
}

.bi-capabilities-panel img {
  grid-row: 1 / span 2;
  width: 21px;
}

.bi-capabilities-panel strong,
.bi-capabilities-panel small {
  min-width: 0;
}

.bi-capabilities-panel strong {
  font-size: .62rem;
}

.bi-capabilities-panel small {
  margin-top: 3px;
  color: var(--muted);
  font-size: .56rem;
  line-height: 1.4;
}

.bi-cta {
  margin-top: 12px;
  margin-bottom: 0;
  padding-block: 16px;
}

.bi-cta > div {
  flex: 1;
  text-align: center;
}

.bi-cta h2 {
  font-size: 1.2rem;
}

.bi-cta p {
  font-size: .72rem;
}

.data-bi-page .site-footer {
  margin-top: 36px;
}

/* Datos y BI: proportions measured against the approved desktop reference. */
.data-bi-page main {
  padding-bottom: 18px;
}

.data-bi-page .breadcrumb {
  min-height: 32px;
}

.bi-hero {
  grid-template-columns: .96fr 1.04fr;
  align-items: start;
  min-height: 400px;
  gap: 40px;
  padding-block: 0 18px;
}

.bi-hero-copy {
  max-width: 650px;
  padding-top: 40px;
  padding-left: 42px;
}

.bi-hero-copy .eyebrow {
  margin-bottom: 8px;
  font-size: .75rem;
  font-weight: 650;
  letter-spacing: .08em;
}

.bi-hero-copy h1 {
  max-width: 620px;
  margin-bottom: 13px;
  font-size: clamp(3rem, 3.75vw, 3.75rem);
  font-weight: 650;
  line-height: 1.08;
}

.bi-hero-copy .lead {
  max-width: 550px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.bi-hero-copy .hero-actions {
  margin-top: 25px;
  gap: 18px;
}

.bi-hero-copy .button {
  min-height: 45px;
  padding-inline: 27px;
  font-size: .9rem;
}

.bi-dashboard {
  width: calc(100% - 44px);
  height: 390px;
  margin-top: -13px;
  margin-right: 23px;
  margin-left: 21px;
  padding: 12px 14px;
  border-color: #dce5ec;
  border-radius: 10px;
  box-shadow: 0 5px 16px rgba(23, 55, 89, .09);
}

.bi-dashboard-head {
  min-height: 29px;
  padding: 0 4px 8px;
}

.bi-dashboard-head h2 {
  color: var(--text);
  font-size: .82rem;
}

.bi-dashboard-head > span {
  padding: 5px 9px;
  background: var(--surface);
  color: var(--text);
  border-radius: 6px;
  font-size: .59rem;
}

.bi-dashboard-head > span b {
  margin-left: 6px;
  font-size: .7rem;
}

.bi-stats {
  gap: 10px;
}

.bi-stats > div {
  height: 84px;
  padding: 10px 12px;
  background: var(--surface);
}

.bi-stats small {
  color: var(--text);
  font-size: .56rem;
}

.bi-stats strong {
  margin-top: 5px;
  color: var(--text);
  font-size: 1.2rem;
}

.bi-stats span {
  margin-top: 3px;
  font-size: .59rem;
}

.sparkline {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 68px;
  height: 21px;
  overflow: visible;
}

.sparkline polyline {
  fill: none;
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.bi-dashboard-grid {
  grid-template-columns: .86fr 1.14fr;
  grid-template-rows: 130px 103px;
  gap: 9px 10px;
  margin-top: 9px;
}

.bi-widget {
  padding: 9px 11px;
  background: var(--surface);
}

.bi-widget h3 {
  color: var(--text);
  font-size: .59rem;
}

.donut-wrap {
  grid-template-columns: 116px minmax(0, 1fr);
}

.donut-chart {
  width: 90px;
  height: 90px;
}

.donut-wrap li {
  font-size: .49rem;
}

.trend-chart-svg {
  display: block;
  width: 100%;
  height: 96px;
  margin-top: 4px;
  overflow: visible;
}

.trend-chart-svg polyline {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trend-chart-svg .income-line {
  stroke: var(--accent);
  stroke-width: 1.5;
}

.trend-chart-svg .goal-line {
  stroke: #8cc9e9;
  stroke-dasharray: 4 4;
  stroke-width: 1.15;
}

.trend-chart-svg .chart-grid line {
  stroke: var(--border);
  stroke-width: .7;
}

.alerts-widget p.warning i {
  background: #ed8a35;
}

.bi-feature-strip {
  min-height: 112px;
  padding: 11px 12px;
  border-radius: 9px;
  box-shadow: none;
}

.bi-feature-strip article {
  grid-template-columns: 32px 1fr;
  align-content: start;
  gap: 9px;
  padding: 9px 12px;
}

.bi-feature-strip img,
.bi-capabilities-panel img {
  filter: brightness(0) saturate(100%) invert(19%) sepia(28%) saturate(1886%) hue-rotate(174deg) brightness(90%) contrast(93%);
}

.bi-feature-strip img {
  width: 28px;
}

.bi-feature-strip h2 {
  margin-bottom: 4px;
  color: var(--text);
  font-size: .68rem;
}

.bi-feature-strip p {
  color: var(--muted);
  font-size: .59rem;
  line-height: 1.45;
}

.bi-lower-grid {
  grid-template-columns: .86fr 1.14fr;
  min-height: 130px;
  gap: 12px;
  margin-top: 16px;
}

.bi-source-panel,
.bi-capabilities-panel {
  min-height: 130px;
  padding: 14px 18px;
  border-radius: 9px;
  box-shadow: none;
}

.bi-source-panel h2,
.bi-capabilities-panel h2 {
  margin-bottom: 12px;
  color: var(--text);
  font-size: .85rem;
}

.source-badges {
  min-height: 42px;
  gap: 21px;
}

.source-badges strong {
  color: var(--text);
  line-height: 1;
}

.source-sap {
  padding: 5px 7px 4px;
  background: #1296db;
  color: #fff !important;
  font-size: .78rem !important;
  font-style: italic;
}

.source-microsoft {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .53rem !important;
}

.source-microsoft > i {
  display: grid;
  grid-template-columns: repeat(2, 7px);
  gap: 1px;
}

.source-microsoft > i b {
  width: 7px;
  height: 7px;
  background: #f35325;
}

.source-microsoft > i b:nth-child(2) { background: #81bc06; }
.source-microsoft > i b:nth-child(3) { background: #05a6f0; }
.source-microsoft > i b:nth-child(4) { background: #ffba08; }

.source-oracle {
  color: #e82d2f !important;
  font-family: Arial, sans-serif;
  font-size: .72rem !important;
}

.source-hubspot {
  color: #2c4b68 !important;
  font-size: .72rem !important;
}

.source-hubspot span {
  color: #ff7651;
}

.source-salesforce {
  padding: 7px 6px;
  background: #2ca5df;
  color: #fff !important;
  border-radius: 50%;
  font-size: .44rem !important;
}

.source-sql {
  font-size: .53rem !important;
  line-height: 1.05 !important;
}

.bi-source-panel > p {
  margin-top: 8px;
  font-size: .6rem;
}

.bi-capabilities-panel > div {
  gap: 15px;
}

.bi-capabilities-panel span {
  grid-template-columns: 24px 1fr;
  column-gap: 7px;
}

.bi-capabilities-panel img {
  width: 22px;
}

.bi-capabilities-panel strong {
  font-size: .59rem;
}

.bi-capabilities-panel small {
  font-size: .54rem;
}

.bi-cta {
  min-height: 76px;
  margin-top: 12px;
  padding: 12px 28px;
  border-radius: 9px;
  box-shadow: none;
}

.bi-cta h2 {
  margin-bottom: 3px;
  font-size: 1.15rem;
}

.bi-cta p {
  font-size: .68rem;
}

.bi-cta .button {
  min-width: 240px;
  min-height: 42px;
}

.data-bi-page .site-footer {
  margin-top: 24px;
}

/* v0.4.0: synchronized solution and dashboard carousel. */
.dashboard-copy-deck {
  position: relative;
  display: block;
  transition: height 300ms cubic-bezier(.2, .7, .25, 1);
}

.dashboard-copy {
  position: absolute;
  inset: 0;
  width: 100%;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 260ms ease, transform 260ms ease, visibility 260ms;
}

.dashboard-copy.is-active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.dashboard-copy[data-dashboard-copy="learning"] h1,
.dashboard-copy[data-dashboard-copy="apps"] h1 {
  max-width: 680px;
  font-size: clamp(2.45rem, 3.05vw, 3.05rem);
  line-height: 1.15;
}

.bi-dashboard-head {
  display: grid;
  grid-template-columns: minmax(112px, auto) 1fr auto;
  gap: 10px;
}

.dashboard-tabs {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  min-width: 0;
  padding: 2px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.dashboard-tabs button {
  min-height: 22px;
  padding: 0 8px;
  background: transparent;
  color: var(--muted);
  border: 0;
  border-radius: 4px;
  font-size: .49rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.dashboard-tabs button:hover {
  color: var(--text);
}

.dashboard-tabs button.is-active {
  background: var(--surface);
  color: var(--primary);
  box-shadow: 0 1px 3px rgba(13, 47, 83, .12);
}

.period-filter {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-self: end;
  min-width: 112px;
}

.period-filter::after {
  position: absolute;
  right: 9px;
  color: var(--muted);
  content: "⌄";
  font-size: .7rem;
  line-height: 1;
  pointer-events: none;
}

.period-filter select {
  width: 100%;
  min-height: 28px;
  padding: 4px 25px 4px 9px;
  appearance: none;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: .57rem;
  font-weight: 650;
  cursor: pointer;
}

.period-filter select:hover {
  border-color: color-mix(in srgb, var(--accent) 65%, var(--border));
}

html[data-theme="dark"] .dashboard-tabs button.is-active {
  color: var(--text);
}

@container (max-width: 650px) {
  .bi-dashboard-head {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 6px;
  }

  .dashboard-tabs {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
  }

  .dashboard-tabs button {
    flex: 1;
  }
}

.dashboard-stage {
  position: relative;
  height: 337px;
  overflow: hidden;
  transition: height 280ms ease;
}

.dashboard-panel {
  position: absolute;
  inset: 0;
  width: 100%;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateX(10px);
  transition: opacity 260ms ease, transform 260ms ease, visibility 260ms;
}

.dashboard-panel.is-active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.solution-dashboard {
  display: grid;
  grid-template-columns: 122px minmax(0, 1fr);
  height: 337px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
}

.solution-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 9px 8px;
  background: color-mix(in srgb, var(--surface-2) 62%, var(--surface));
  border-right: 1px solid var(--border);
}

.solution-sidebar > strong {
  display: block;
  min-height: 29px;
  padding: 2px 5px 7px;
  color: var(--text);
  font-size: .58rem;
  white-space: nowrap;
}

.solution-sidebar > span {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 29px;
  padding: 0 7px;
  color: var(--muted);
  border-radius: 5px;
  font-size: .5rem;
}

.solution-sidebar > span.is-active {
  background: var(--surface);
  color: var(--primary);
  font-weight: 600;
}

.solution-sidebar img {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  filter: brightness(0) saturate(100%) invert(19%) sepia(28%) saturate(1886%) hue-rotate(174deg) brightness(90%) contrast(93%);
}

.moodle-wordmark {
  color: #ef7c20 !important;
  font-size: .82rem !important;
  font-weight: 700;
}

.moodle-wordmark i {
  font-style: normal;
  position: relative;
}

.learning-solution-main,
.app-solution-main {
  min-width: 0;
  padding: 9px;
}

.learning-solution-top {
  display: grid;
  grid-template-columns: 1.35fr .66fr 1.05fr;
  height: 198px;
  gap: 8px;
}

.learning-solution-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 112px;
  gap: 8px;
  margin-top: 8px;
}

.solution-widget {
  min-width: 0;
  overflow: hidden;
  padding: 9px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.solution-widget h3 {
  margin-bottom: 8px;
  color: var(--text);
  font-size: .56rem;
}

.course-widget > div {
  display: grid;
  grid-template-columns: 1fr 32px;
  align-items: center;
  gap: 3px 6px;
  margin-bottom: 8px;
}

.course-widget > div > span,
.course-widget > div > small {
  font-size: .44rem;
}

.course-widget > div > span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.course-widget > div > span::before {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  background: color-mix(in srgb, #6f9eea 24%, var(--surface));
  border: 1px solid color-mix(in srgb, #6f9eea 58%, var(--border));
  border-radius: 3px;
  content: "";
}

.course-widget > div:nth-of-type(2) > span::before { background: color-mix(in srgb, #8d83df 22%, var(--surface)); border-color: #a8a0e8; }
.course-widget > div:nth-of-type(3) > span::before { background: color-mix(in srgb, #36b4b2 22%, var(--surface)); border-color: #75ccca; }
.course-widget > div:nth-of-type(4) > span::before { background: color-mix(in srgb, var(--accent) 20%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 58%, var(--border)); }

.course-widget > div > small {
  grid-column: 2;
  grid-row: 1;
  color: var(--muted);
  text-align: right;
}

.course-widget > div > b {
  grid-column: 1 / -1;
  height: 4px;
  overflow: hidden;
  background: var(--surface-2);
  border-radius: 4px;
}

.course-widget > div > b i {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: inherit;
}

.course-widget > a {
  color: var(--primary-2);
  font-size: .44rem;
  font-weight: 600;
}

.learning-progress-widget {
  display: grid;
  justify-items: center;
  align-content: start;
}

.learning-progress-widget h3 {
  justify-self: start;
}

.learning-progress-ring,
.distribution-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  margin-top: 13px;
  background: conic-gradient(var(--accent) 0 76%, var(--surface-2) 76% 100%);
  border-radius: 50%;
}

.learning-progress-ring::after,
.distribution-ring::after {
  position: absolute;
  width: 58px;
  height: 58px;
  background: var(--surface);
  content: "";
  border-radius: 50%;
}

.learning-progress-ring strong,
.distribution-ring strong {
  position: relative;
  z-index: 1;
  font-size: .9rem;
}

.learning-progress-widget > small {
  margin-top: 11px;
  color: var(--muted);
  font-size: .43rem;
}

.activity-widget p {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 6px;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: .43rem;
}

.activity-widget p > i {
  width: 13px;
  height: 13px;
  border: 1px solid var(--primary-2);
  border-radius: 50%;
}

.activity-widget p strong,
.activity-widget p span {
  display: block;
}

.activity-widget p strong {
  color: var(--text);
  font-size: .44rem;
}

.category-widget > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.category-widget span {
  padding: 4px 8px;
  background: var(--surface-2);
  border-radius: 10px;
  font-size: .42rem;
}

.learning-analytics-widget {
  position: relative;
}

.learning-analytics-widget > svg {
  width: 55%;
  height: 55px;
}

.learning-bars {
  position: absolute;
  right: 42px;
  bottom: 16px;
  display: flex;
  align-items: end;
  height: 47px;
  gap: 4px;
}

.learning-bars i {
  width: 7px;
  height: 38%;
  background: #72b7e8;
}

.learning-bars i:nth-child(2) { height: 65%; background: #247fc4; }
.learning-bars i:nth-child(3) { height: 48%; background: #72b7e8; }
.learning-bars i:nth-child(4) { height: 90%; background: #247fc4; }

.learning-analytics-widget > strong {
  position: absolute;
  right: 8px;
  bottom: 40px;
  color: var(--accent);
  font-size: .65rem;
}

.app-sidebar > strong {
  display: flex;
  align-items: center;
  gap: 5px;
}

.app-sidebar > strong i {
  color: var(--primary);
  font-style: normal;
  font-weight: 700;
}

.app-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 26px;
  color: var(--muted);
  font-size: .5rem;
}

.app-toolbar strong {
  color: var(--text);
  font-size: .58rem;
}

.app-toolbar-icons {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.app-toolbar-icons img {
  width: 13px;
  height: 13px;
  filter: brightness(0) saturate(100%) invert(19%) sepia(28%) saturate(1886%) hue-rotate(174deg) brightness(90%) contrast(93%);
}

html[data-theme="dark"] .solution-sidebar img,
html[data-theme="dark"] .app-toolbar-icons img {
  filter: invert(1) grayscale(1) brightness(1.8);
}

.app-toolbar-icons i {
  width: 17px;
  height: 17px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 50%;
}

.app-summary-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.app-summary-cards article {
  position: relative;
  min-width: 0;
  height: 82px;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.app-summary-cards small,
.app-summary-cards strong,
.app-summary-cards span {
  display: block;
}

.app-summary-cards small {
  color: var(--muted);
  font-size: .42rem;
}

.app-summary-cards strong {
  margin-top: 4px;
  font-size: .76rem;
}

.app-summary-cards span {
  margin-top: 2px;
  color: var(--accent);
  font-size: .42rem;
}

.app-summary-cards svg {
  position: absolute;
  right: 7px;
  bottom: 8px;
  width: 55px;
  height: 17px;
}

.app-solution-lower {
  display: grid;
  grid-template-columns: 1.5fr .62fr;
  height: 203px;
  gap: 8px;
  margin-top: 8px;
}

.app-activity-widget > div {
  display: grid;
  grid-template-columns: 7px 1fr 70px;
  align-items: center;
  gap: 8px;
  margin: 13px 0;
}

.app-activity-widget > div i {
  width: 7px;
  height: 7px;
  background: var(--border);
  border-radius: 50%;
}

.app-activity-widget > div b,
.app-activity-widget > div span {
  height: 4px;
  background: var(--border);
  border-radius: 4px;
}

.distribution-widget {
  position: relative;
}

.distribution-ring {
  width: 86px;
  height: 86px;
  margin: 18px 0 0 6px;
  background: conic-gradient(var(--primary) 0 56%, var(--accent) 56% 76%, color-mix(in srgb, var(--accent) 35%, var(--surface-2)) 76% 100%);
}

.distribution-ring::after {
  width: 62px;
  height: 62px;
}

.distribution-widget ul {
  position: absolute;
  right: 9px;
  bottom: 38px;
  display: grid;
  gap: 7px;
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: .43rem;
}

.distribution-widget li i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 5px;
  background: var(--primary);
  border-radius: 50%;
}

.distribution-widget li:nth-child(2) i { background: var(--accent); }
.distribution-widget li:nth-child(3) i { background: color-mix(in srgb, var(--accent) 35%, var(--surface-2)); }

/* v0.5.0: interactive periods and normalized dashboard details. */
.bi-feature-strip img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.bi-capabilities-panel img {
  width: 21px;
  height: 21px;
  object-fit: contain;
}

.bi-feature-strip article {
  grid-template-columns: 26px 1fr;
  gap: 8px;
}

.dashboard-carousel.is-data-updating .bi-stats > div,
.dashboard-carousel.is-data-updating .bi-widget,
.dashboard-carousel.is-data-updating .solution-widget,
.dashboard-carousel.is-data-updating .app-summary-cards article {
  animation: dashboard-data-refresh 620ms ease both;
}

.dashboard-carousel polyline,
.dashboard-carousel .region-widget b,
.dashboard-carousel .course-widget b i,
.dashboard-carousel .learning-progress-ring,
.dashboard-carousel .distribution-ring,
.dashboard-carousel .learning-bars i {
  transition: all 620ms cubic-bezier(.2, .75, .25, 1);
}

.dashboard-panel.has-live-motion .region-widget b,
.dashboard-panel.has-live-motion .course-widget b i {
  animation: dashboard-bar-grow 720ms cubic-bezier(.2, .75, .25, 1) both;
  transform-origin: left center;
}

.dashboard-panel.has-live-motion .learning-bars i {
  animation: dashboard-column-grow 760ms cubic-bezier(.2, .75, .25, 1) both;
  transform-origin: center bottom;
}

.dashboard-panel.has-live-motion .learning-progress-ring,
.dashboard-panel.has-live-motion .distribution-ring,
.dashboard-panel.has-live-motion .donut-chart {
  animation: dashboard-ring-enter 720ms cubic-bezier(.2, .75, .25, 1) both;
}

.dashboard-panel.is-live-tick .bi-stats > div,
.dashboard-panel.is-live-tick .solution-widget,
.dashboard-panel.is-live-tick .app-summary-cards article {
  animation: dashboard-live-pulse 1s ease both;
}

.dashboard-panel.is-live-tick .bi-stats > div:nth-child(2),
.dashboard-panel.is-live-tick .app-summary-cards article:nth-child(2) { animation-delay: 70ms; }
.dashboard-panel.is-live-tick .bi-stats > div:nth-child(3),
.dashboard-panel.is-live-tick .app-summary-cards article:nth-child(3) { animation-delay: 140ms; }
.dashboard-panel.is-live-tick .bi-stats > div:nth-child(4),
.dashboard-panel.is-live-tick .app-summary-cards article:nth-child(4) { animation-delay: 210ms; }

@keyframes dashboard-data-refresh {
  0% { opacity: .45; transform: translateY(4px); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes dashboard-bar-grow {
  from { transform: scaleX(.08); }
  to { transform: scaleX(1); }
}

@keyframes dashboard-column-grow {
  from { transform: scaleY(.08); }
  to { transform: scaleY(1); }
}

@keyframes dashboard-ring-enter {
  0% { opacity: .45; transform: scale(.82) rotate(-12deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes dashboard-live-pulse {
  0%, 100% { border-color: var(--border); box-shadow: none; }
  45% { border-color: color-mix(in srgb, var(--accent) 52%, var(--border)); box-shadow: 0 3px 12px color-mix(in srgb, var(--accent) 12%, transparent); }
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-copy,
  .dashboard-panel,
  .dashboard-stage {
    transition: none;
  }

  .dashboard-carousel.is-data-updating .bi-stats > div,
  .dashboard-carousel.is-data-updating .bi-widget,
  .dashboard-carousel.is-data-updating .solution-widget,
  .dashboard-carousel.is-data-updating .app-summary-cards article {
    animation: none;
  }

  .dashboard-panel.has-live-motion *,
  .dashboard-panel.is-live-tick * {
    animation: none !important;
    transition: none !important;
  }
}

/* v0.7.0: compact first viewport and interactive dashboard details. */
.bi-hero {
  min-height: 0;
  padding-bottom: 10px;
}

.solution-sidebar > button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 29px;
  gap: 6px;
  padding: 0 7px;
  background: transparent;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 5px;
  font: inherit;
  font-size: .5rem;
  text-align: left;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.solution-sidebar > button:hover,
.solution-sidebar > button:focus-visible {
  background: color-mix(in srgb, var(--surface) 72%, var(--surface-2));
  color: var(--primary);
  border-color: color-mix(in srgb, var(--accent) 38%, var(--border));
  outline: 0;
  transform: translateX(2px);
}

.solution-sidebar > button.is-active {
  background: var(--surface);
  color: var(--primary);
  border-color: color-mix(in srgb, var(--accent) 18%, var(--border));
  font-weight: 600;
}

.solution-sidebar > button img {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  filter: brightness(0) saturate(100%) invert(19%) sepia(28%) saturate(1886%) hue-rotate(174deg) brightness(90%) contrast(93%);
}

html[data-theme="dark"] .solution-sidebar > button img {
  filter: invert(1) grayscale(1) brightness(1.8);
}

.solution-default-view,
.solution-context-view {
  height: 100%;
}

.solution-context-view {
  padding: 2px;
  animation: solution-view-enter 240ms ease both;
}

.solution-context-view[hidden],
.solution-default-view[hidden] {
  display: none;
}

.solution-context-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 2px 3px 7px;
  border-bottom: 1px solid var(--border);
}

.solution-context-head small {
  display: block;
  margin-bottom: 2px;
  color: var(--accent);
  font-size: .42rem;
  font-weight: 700;
}

.solution-context-head h3 {
  color: var(--text);
  font-size: .72rem;
}

.solution-context-head > strong {
  padding: 5px 8px;
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--border));
  border-radius: 5px;
  font-size: .48rem;
}

.solution-context-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.solution-context-metrics article {
  min-height: 61px;
  padding: 8px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.solution-context-metrics small,
.solution-context-metrics strong,
.solution-context-metrics span {
  display: block;
}

.solution-context-metrics small {
  color: var(--muted);
  font-size: .43rem;
}

.solution-context-metrics strong {
  margin-top: 3px;
  color: var(--text);
  font-size: .8rem;
}

.solution-context-metrics span {
  margin-top: 1px;
  color: var(--accent);
  font-size: .42rem;
}

.solution-context-body {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 8px;
  height: 186px;
  margin-top: 8px;
}

.solution-context-body > article {
  min-width: 0;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.solution-context-body h4 {
  margin-bottom: 11px;
  color: var(--text);
  font-size: .55rem;
}

.solution-context-chart > div {
  display: grid;
  grid-template-columns: 74px 1fr 30px;
  align-items: center;
  gap: 7px;
  margin: 12px 0;
  color: var(--muted);
  font-size: .44rem;
}

.solution-context-chart i {
  height: 5px;
  overflow: hidden;
  background: var(--surface-2);
  border-radius: 5px;
}

.solution-context-chart b {
  display: block;
  width: var(--bar-value);
  height: 100%;
  background: var(--accent);
  border-radius: inherit;
  animation: context-bar-grow 520ms cubic-bezier(.2, .75, .25, 1) both;
  transform-origin: left center;
}

.solution-context-chart strong {
  color: var(--accent);
  font-size: .43rem;
  text-align: right;
}

.solution-context-notes ul {
  display: grid;
  gap: 13px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.solution-context-notes li {
  position: relative;
  padding-left: 13px;
  color: var(--muted);
  font-size: .47rem;
  line-height: 1.4;
}

.solution-context-notes li::before {
  position: absolute;
  top: .35em;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  content: "";
}

.bi-feature-strip {
  min-height: 100px;
  padding: 8px;
  overflow: visible;
}

.bi-feature-card {
  position: relative;
  display: grid;
  grid-template-columns: 28px 1fr;
  align-content: start;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  background: transparent;
  color: var(--text);
  border: 0;
  border-right: 1px solid var(--border);
  border-radius: 4px;
  font: inherit;
  text-align: left;
  cursor: pointer;
  outline: 1px solid transparent;
  outline-offset: 0;
  transition: background-color 200ms ease, box-shadow 200ms ease, outline-color 200ms ease, outline-offset 200ms ease, transform 200ms ease;
}

.bi-feature-card:last-child {
  border-right: 0;
}

.bi-feature-card:hover,
.bi-feature-card:focus-visible {
  z-index: 2;
  background: var(--surface);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--primary) 11%, transparent);
  outline-color: color-mix(in srgb, var(--accent) 68%, var(--border));
  outline-offset: 4px;
  transform: scale(1.025) translateY(-2px);
}

.bi-feature-card:active {
  transform: scale(.99);
}

.bi-feature-card img {
  width: 25px;
  height: 25px;
  object-fit: contain;
}

.bi-feature-card span,
.bi-feature-card strong,
.bi-feature-card small {
  display: block;
}

.bi-feature-card strong {
  margin-bottom: 4px;
  color: var(--text);
  font-size: .68rem;
  line-height: 1.2;
}

.bi-feature-card small {
  color: var(--muted);
  font-size: .58rem;
  line-height: 1.42;
}

.feature-dialog {
  width: min(700px, calc(100vw - 32px));
  padding: 30px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(13, 47, 83, .24);
}

.feature-dialog[open] {
  animation: feature-dialog-enter 220ms ease both;
}

.feature-dialog::backdrop {
  background: rgba(8, 25, 43, .46);
  backdrop-filter: blur(3px);
}

.feature-dialog-close {
  position: absolute;
  top: 15px;
  right: 15px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.feature-dialog-close:hover,
.feature-dialog-close:focus-visible {
  color: var(--primary);
  border-color: var(--accent);
  outline: 0;
}

.feature-dialog-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-right: 38px;
}

.feature-dialog-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border));
  border-radius: 7px;
}

.feature-dialog-icon img {
  width: 27px;
  height: 27px;
}

.feature-dialog .eyebrow {
  margin-bottom: 3px;
  color: var(--accent);
  font-size: .64rem;
}

.feature-dialog h2 {
  font-size: 1.45rem;
}

.feature-dialog-summary {
  max-width: 590px;
  margin: 20px 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.55;
}

.feature-dialog-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}

.feature-dialog-points article {
  min-height: 110px;
  padding: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.feature-dialog-points strong,
.feature-dialog-points span {
  display: block;
}

.feature-dialog-points strong {
  margin-bottom: 7px;
  color: var(--text);
  font-size: .78rem;
}

.feature-dialog-points span {
  color: var(--muted);
  font-size: .7rem;
  line-height: 1.5;
}

@keyframes solution-view-enter {
  from { opacity: .35; transform: translateX(6px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes context-bar-grow {
  from { transform: scaleX(.05); }
  to { transform: scaleX(1); }
}

@keyframes feature-dialog-enter {
  from { opacity: 0; transform: scale(.94) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .solution-context-view,
  .solution-context-chart b,
  .feature-dialog[open],
  .bi-feature-card {
    animation: none;
    transition: none;
  }
}

/* v0.9.1 — precision patch: restore the compact v0.8 dashboard proportions,
   add a polished IVR view and keep every chart inside its card. */
.dashboard-tabs {
  width: 100%;
  max-width: 318px;
}

.dashboard-tabs button {
  flex: 1 1 0;
  min-width: 0;
}

.dashboard-panel svg,
.bi-widget svg,
.solution-widget svg,
.app-summary-cards svg {
  max-width: 100%;
}

/* IVR dashboard follows the same compact visual system as Learning and Apps. */
.ivr-dashboard {
  display: grid;
  grid-template-columns: 122px minmax(0, 1fr);
  height: 337px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
}

.ivr-sidebar {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  padding: 9px 8px;
  background: color-mix(in srgb, var(--surface-2) 62%, var(--surface));
  border-right: 1px solid var(--border);
}

.ivr-sidebar strong {
  display: flex;
  align-items: center;
  min-height: 29px;
  gap: 6px;
  padding: 2px 5px 7px;
  color: var(--text);
  font-size: .56rem;
  white-space: nowrap;
}

.ivr-sidebar strong img {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}

.ivr-sidebar span {
  min-height: 29px;
  padding: 8px 7px;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: .49rem;
}

.ivr-sidebar span.is-active {
  background: var(--surface);
  color: var(--primary);
  border-color: color-mix(in srgb, var(--accent) 24%, var(--border));
  font-weight: 650;
}

.ivr-main {
  min-width: 0;
  padding: 9px;
}

.ivr-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.ivr-kpis article {
  position: relative;
  min-width: 0;
  height: 68px;
  padding: 8px 9px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.ivr-kpis small,
.ivr-kpis strong,
.ivr-kpis span {
  display: block;
}

.ivr-kpis small {
  overflow: hidden;
  color: var(--muted);
  font-size: .42rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ivr-kpis strong {
  margin-top: 4px;
  color: var(--text);
  font-size: .8rem;
}

.ivr-kpis span {
  margin-top: 2px;
  color: var(--accent);
  font-size: .42rem;
  font-weight: 700;
}

.ivr-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(118px, .72fr);
  grid-template-rows: 112px 112px;
  gap: 8px;
  margin-top: 8px;
}

.ivr-grid article {
  min-width: 0;
  overflow: hidden;
  padding: 9px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.ivr-grid h3 {
  margin: 0 0 9px;
  color: var(--text);
  font-size: .56rem;
}

.ivr-flow {
  grid-row: 1 / 3;
}

.ivr-flow-map {
  display: grid;
  grid-template-columns: minmax(70px, 1fr) 12px minmax(78px, 1fr) 12px;
  align-items: center;
  gap: 6px;
}

.ivr-flow-map > span {
  padding: 9px 6px;
  background: color-mix(in srgb, var(--surface-2) 48%, var(--surface));
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: .44rem;
  text-align: center;
}

.ivr-flow-map > i {
  color: var(--muted);
  font-size: .58rem;
  font-style: normal;
  text-align: center;
}

.ivr-flow-map > div {
  grid-column: 3 / 5;
  display: flex;
  align-items: center;
  min-height: 34px;
  margin-top: 3px;
  padding: 6px 8px;
  background: var(--surface-2);
  border: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
  border-radius: 6px;
  color: var(--muted);
  font-size: .44rem;
}

.ivr-flow-map b {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-right: 6px;
  background: color-mix(in srgb, var(--accent) 15%, var(--surface));
  color: var(--accent);
  border-radius: 50%;
  font-size: .42rem;
}

.ivr-channels p {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin: 6px 0;
  color: var(--muted);
  font-size: .45rem;
}

.ivr-channels b {
  color: var(--text);
  font-size: .45rem;
}

.ivr-bars {
  display: flex;
  align-items: end;
  height: 70px;
  gap: 6px;
  padding: 5px 3px 0;
  border-bottom: 1px solid var(--border);
}

.ivr-bars i {
  flex: 1;
  min-width: 5px;
  max-width: 15px;
  background: linear-gradient(180deg, var(--accent), var(--primary));
  border-radius: 3px 3px 0 0;
  opacity: .9;
}

html[data-theme="dark"] .ivr-sidebar strong img {
  filter: invert(1) grayscale(1) brightness(1.8);
}

/* The feature dialog now uses the real theme asset URL and a tighter layout. */
.feature-dialog {
  width: min(640px, calc(100vw - 32px));
  padding: 26px;
}

.feature-dialog-icon img {
  display: block;
  object-fit: contain;
}

html[data-theme="dark"] .feature-dialog-icon img {
  filter: invert(1) grayscale(1) brightness(1.85);
}

@container (max-width: 650px) {
  .dashboard-tabs {
    max-width: none;
  }
}
@container (max-width: 650px) {
  .bi-dashboard {
    height: auto;
  }
}
.bi-dashboard {
  height: auto;
  min-height: 390px;
}

/* v0.9.2 — interaction and data integrity patch. */
.ivr-sidebar button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 29px;
  gap: 7px;
  padding: 7px;
  background: transparent;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 5px;
  font: inherit;
  font-size: .49rem;
  text-align: left;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.ivr-sidebar button img {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  filter: brightness(0) saturate(100%) invert(19%) sepia(28%) saturate(1886%) hue-rotate(174deg) brightness(90%) contrast(93%);
}

.ivr-sidebar button:hover,
.ivr-sidebar button:focus-visible {
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  color: var(--text);
  border-color: var(--border);
  outline: 0;
}

.ivr-sidebar button.is-active {
  background: var(--surface);
  color: var(--primary);
  border-color: color-mix(in srgb, var(--accent) 28%, var(--border));
  font-weight: 700;
}

html[data-theme="dark"] .ivr-sidebar button img {
  filter: invert(1) grayscale(1) brightness(1.85);
}

.ivr-kpis article svg {
  position: absolute;
  right: 7px;
  bottom: 7px;
  width: 52px;
  height: 15px;
  max-width: 42%;
}

.ivr-flow-map > div {
  gap: 6px;
}

.ivr-flow-map > div span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ivr-flow-map > div small {
  margin-left: auto;
  color: var(--accent);
  font-size: .42rem;
  font-weight: 700;
}

.ivr-main > .solution-default-view,
.ivr-main > .solution-context-view {
  height: 100%;
}

.logidata-wordmark {
  display: flex !important;
  align-items: baseline;
  gap: 0 !important;
  letter-spacing: -.02em;
}

.logidata-wordmark i {
  color: var(--accent) !important;
  font-style: normal !important;
  font-weight: 800 !important;
}

.logidata-wordmark {
  color: var(--text) !important;
  font-weight: 700 !important;
}

.app-activity-widget {
  overflow: hidden;
}

.app-activity-widget > div {
  grid-template-columns: 7px minmax(0, 1fr) auto;
  gap: 8px;
  margin: 9px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 68%, transparent);
}

.app-activity-widget > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.app-activity-widget > div i {
  background: var(--accent);
}

.app-activity-widget > div span {
  display: block;
  height: auto;
  min-width: 0;
  background: transparent;
}

.app-activity-widget > div span strong,
.app-activity-widget > div span small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-activity-widget > div span strong {
  color: var(--text);
  font-size: .46rem;
  line-height: 1.25;
}

.app-activity-widget > div span small {
  margin-top: 2px;
  color: var(--muted);
  font-size: .39rem;
  line-height: 1.25;
}

.app-activity-widget > div b {
  width: auto;
  height: auto;
  padding: 3px 5px;
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--border));
  border-radius: 999px;
  font-size: .37rem;
  font-weight: 700;
  white-space: nowrap;
}

.feature-dialog-icon img {
  width: 28px;
  height: 28px;
  max-width: 100%;
  color: var(--primary);
}

.dashboard-carousel.is-data-updating .dashboard-panel.is-active {
  animation: dashboard-data-refresh 420ms ease both;
}

@keyframes dashboard-data-refresh {
  0% { opacity: .62; transform: translateY(3px); }
  100% { opacity: 1; transform: translateY(0); }
}
.logidata-wordmark span {
  color: var(--text);
  font-weight: 700;
}


/* v0.9.6 — stable secondary views and non-displacing interactions. */
.solution-context-view {
  animation: solution-view-fade 160ms ease both;
  transform: none !important;
}

@keyframes solution-view-fade {
  from { opacity: .45; }
  to { opacity: 1; }
}

.bi-feature-strip {
  overflow: clip;
}

.bi-feature-card:hover,
.bi-feature-card:focus-visible {
  transform: none;
  outline-offset: 2px;
}

.dashboard-panel[data-solution-view]:not([data-solution-view="home"]) .solution-context-view *,
.dashboard-panel[data-solution-view]:not([data-solution-view="home"]).is-live-tick * {
  animation-duration: 0ms !important;
  transform: none;
}
