.showcase-visual {
  --ui-accent: #1d62c9;
  --ui-accent-light: #e7f0ff;
  --ui-accent-medium: #9bc3f9;
  --ui-ink: #142c4d;
  --ui-muted: #4c607b;
  --ui-line: #dfebf7;
  --ui-surface: #f5f9fe;
  --device-left: 13%;
  --device-top: 10%;
  --device-width: 74%;
  --device-angle: -2.8deg;
  --phone-left: 75%;
  --phone-top: 25%;
  --phone-width: 20%;
  --phone-angle: 8deg;
  position: absolute;
  inset: 0;
  overflow: hidden;
  container-type: inline-size;
  isolation: isolate;
  color: var(--ui-ink);
  font-family: Inter, Arial, sans-serif;
  font-weight: 500;
  letter-spacing: normal;
  text-align: left;
  pointer-events: none;
}

.showcase-visual--integra {
  --ui-accent: #a4370b;
  --ui-accent-light: #fff0e6;
  --ui-accent-medium: #f8bc8d;
  background: radial-gradient(ellipse at 65% 0%, #e3f3ffb8, transparent 62%);
}

.showcase-visual--nexus {
  --ui-accent: #534ab7;
  --ui-accent-light: #efedff;
  --ui-accent-medium: #afa9ec;
  --ui-ink: #202e55;
  --ui-muted: #536283;
  --ui-line: #e1e9fa;
  --ui-surface: #f5f7ff;
  --device-left: 21%;
  --device-top: 10%;
  --device-width: 74%;
  --device-angle: 2.6deg;
  --phone-left: 10%;
  --phone-top: 24%;
  --phone-angle: -8deg;
  background: radial-gradient(ellipse at 75% 12%, #f1f6ffda, transparent 66%);
}

.showcase-visual--check-obra {
  --ui-accent: #185fa5;
  --ui-accent-light: #e4f1ff;
  --ui-accent-medium: #85b7eb;
  --ui-ink: #193b4d;
  --ui-muted: #4a6778;
  --ui-line: #dcebf0;
  --ui-surface: #f3f9fc;
  --device-left: 15%;
  --device-top: 10%;
  --device-width: 72%;
  --device-angle: -2.4deg;
  --phone-left: 75%;
  --phone-top: 24%;
  --phone-angle: 8deg;
  background: radial-gradient(ellipse at 45% -10%, #eff9fedb, transparent 67%);
}

.showcase-visual::before,
.showcase-visual::after {
  position: absolute;
  z-index: -1;
  display: block;
  aspect-ratio: 1;
  border: 1px solid #fff6;
  border-radius: 50%;
  content: "";
}

.showcase-visual::before {
  top: -62%;
  right: -14%;
  width: 67%;
}

.showcase-visual::after {
  top: -47%;
  right: -6.5%;
  width: 53%;
}

.showcase-device,
.showcase-phone {
  position: absolute;
  font-size: clamp(4px, 1.18cqi, 13px);
  line-height: 1.35;
  transition: transform 650ms cubic-bezier(.2, .65, .3, 1);
}

.showcase-device {
  top: var(--device-top);
  left: var(--device-left);
  width: var(--device-width);
  overflow: hidden;
  border: .5em solid #fff;
  border-radius: 1.5em;
  background: #fff;
  box-shadow:
    0 .2em .3em #142a4818,
    0 1.6em 2.8em #142a4827,
    0 4em 6em #142a4819;
  transform: rotate(var(--device-angle));
}

.showcase-chrome {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1em;
  height: 2.45em;
  padding-inline: .9em;
  border-bottom: 1px solid var(--ui-line);
  border-radius: .9em .9em 0 0;
  background: #fff;
  color: var(--ui-muted);
}

.showcase-chrome-dots {
  display: flex;
  gap: .28em;
}

.showcase-chrome-dots span,
.showcase-ellipsis::before,
.showcase-ellipsis::after,
.showcase-ellipsis {
  width: .37em;
  height: .37em;
  border-radius: 50%;
  background: currentColor;
}

.showcase-chrome-dots span {
  opacity: .35;
}

.showcase-chrome-label {
  padding: .18em 2em;
  border-radius: .38em;
  background: var(--ui-surface);
  font-size: .69em;
}

.showcase-ellipsis {
  position: relative;
  justify-self: end;
  margin-right: .45em;
  opacity: .65;
}

.showcase-ellipsis::before,
.showcase-ellipsis::after {
  position: absolute;
  content: "";
}

.showcase-ellipsis::before { left: -.47em; }
.showcase-ellipsis::after { left: .47em; }

.showcase-window {
  display: grid;
  grid-template-columns: 13.1em minmax(0, 1fr);
  min-height: 24em;
}

.showcase-sidebar {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.55em;
  padding: 1.35em .88em .8em;
  border-right: 1px solid var(--ui-line);
  background: #fff;
}

.showcase-brand {
  display: flex;
  align-items: center;
  gap: .62em;
  padding-inline: .32em;
  color: var(--ui-ink);
  font-size: 1.04em;
  font-weight: 800;
  white-space: nowrap;
}

.showcase-brand .showcase-icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 1.9em;
  height: 1.9em;
  border-radius: .62em;
  background: var(--ui-accent);
  color: #fff;
  font-size: .9em;
  font-weight: 750;
}
.showcase-brand .showcase-icon-image {
  padding: .18em;
  object-fit: contain;
  background: var(--ui-accent-light);
}

.showcase-nav {
  display: grid;
  gap: .35em;
}

.showcase-nav-item {
  display: flex;
  align-items: center;
  gap: .68em;
  min-height: 2.7em;
  padding-inline: .72em;
  border-radius: .47em;
  color: var(--ui-muted);
  font-size: .78em;
  white-space: nowrap;
}

.showcase-nav-item--current {
  background: var(--ui-accent-light);
  color: var(--ui-accent);
  font-weight: 720;
}

.showcase-nav-icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 1em;
  text-align: center;
  font-size: 1.13em;
  line-height: 1;
}

.showcase-sidebar-footer {
  margin-top: auto;
  padding: .65em .48em .3em;
  border-top: 1px solid var(--ui-line);
  color: var(--ui-muted);
  font-size: .68em;
  white-space: nowrap;
}

.showcase-dashboard {
  min-width: 0;
  padding: 1.24em 1.2em 1.5em;
  background: var(--ui-surface);
}

.showcase-dashboard-top {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: .4em;
  margin-bottom: 1.12em;
}

.showcase-overline {
  display: block;
  margin-bottom: .24em;
  color: var(--ui-muted);
  font-size: .71em;
  white-space: nowrap;
}

.showcase-dashboard-title {
  color: var(--ui-ink);
  font-size: 1.94em;
  font-weight: 760;
  line-height: 1.1;
  letter-spacing: -.048em;
  white-space: nowrap;
}

.showcase-dashboard-action {
  flex-shrink: 0;
  padding: .54em .82em;
  border: 1px solid var(--ui-line);
  border-radius: .56em;
  background: #fff;
  color: var(--ui-muted);
  font-size: .71em;
  white-space: nowrap;
}

.showcase-dashboard-action--solid {
  border-color: var(--ui-accent);
  background: var(--ui-accent);
  color: #fff;
}

.showcase-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .65em;
  margin-bottom: .8em;
}

.showcase-metric,
.showcase-panel {
  min-width: 0;
  border: 1px solid var(--ui-line);
  border-radius: .7em;
  background: #fff;
}

.showcase-metric {
  padding: .74em .79em;
}

.showcase-metric-label {
  overflow: hidden;
  margin-bottom: .18em;
  color: var(--ui-muted);
  font-size: .74em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.showcase-metric-value {
  color: var(--ui-ink);
  font-size: 1.76em;
  font-weight: 760;
  line-height: 1.1;
  letter-spacing: -.04em;
}

.showcase-metric-badge,
.showcase-status {
  display: inline-block;
  padding: .24em .45em;
  border-radius: .35em;
  background: var(--ui-accent-light);
  color: var(--ui-accent);
  font-size: .62em;
  font-weight: 730;
  white-space: nowrap;
}

.showcase-metric-badge {
  margin-left: .36em;
  vertical-align: .25em;
}

.showcase-panels {
  display: grid;
  grid-template-columns: minmax(0, 1.44fr) minmax(0, 1fr);
  gap: .66em;
}

.showcase-panels > .showcase-panel:last-child {
  grid-column: 1 / -1;
}

.showcase-panels > .showcase-panel:last-child .showcase-panel-title {
  margin-bottom: .35em;
}

.showcase-panel {
  padding: .86em .82em .7em;
}

.showcase-panel-title,
.showcase-phone-section {
  display: block;
  margin-bottom: .7em;
  color: var(--ui-ink);
  font-size: .89em;
  font-weight: 760;
  white-space: nowrap;
}

.showcase-chart-grid {
  display: flex;
  justify-content: space-around;
  align-items: end;
  gap: .22em;
  height: 6.75em;
  padding-inline: .4em;
  border-bottom: 1px solid var(--ui-line);
  background: repeating-linear-gradient(to top, transparent 0 calc(25% - 1px), var(--ui-line) calc(25% - 1px) 25%);
}

.showcase-chart-point {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: .17em;
  width: 10%;
  height: 100%;
}

.showcase-chart-point i {
  width: .76em;
  height: var(--bar-height);
  border-radius: .24em .24em 0 0;
  background: var(--ui-accent);
}

.showcase-chart-point i + i {
  background: var(--ui-accent-medium);
}

.showcase-chart-labels {
  display: flex;
  justify-content: space-around;
  gap: .2em;
  margin-top: .35em;
  color: var(--ui-muted);
  font-size: .62em;
  white-space: nowrap;
}

.showcase-activity {
  display: grid;
  gap: .63em;
}

.showcase-activity-item {
  display: flex;
  align-items: center;
  gap: .54em;
  min-width: 0;
}

.showcase-activity-icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 1.8em;
  height: 1.8em;
  border-radius: 50%;
  background: var(--ui-accent-light);
  color: var(--ui-accent);
  font-size: .78em;
  font-weight: 760;
}

.showcase-activity-copy {
  display: grid;
  gap: .13em;
  min-width: 0;
}

.showcase-activity-copy strong,
.showcase-activity-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.showcase-activity-copy strong {
  color: var(--ui-ink);
  font-size: .71em;
  font-weight: 720;
}

.showcase-activity-copy small {
  color: var(--ui-muted);
  font-size: .64em;
}

.showcase-table {
  display: grid;
}

.showcase-table-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: .48em;
  min-height: 2.3em;
  border-bottom: 1px solid var(--ui-line);
  color: var(--ui-muted);
  font-size: .74em;
}

.showcase-table-row:last-child {
  border-bottom: 0;
}

.showcase-table-row > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.showcase-table-row > span:first-child {
  color: var(--ui-ink);
  font-weight: 700;
}

.showcase-table-row .showcase-status {
  font-size: .87em;
}

.showcase-progress {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: .5em;
  min-height: 8em;
}

.showcase-progress-ring {
  display: grid;
  place-items: center;
  width: 5.4em;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(var(--ui-accent) var(--progress), var(--ui-accent-light) 0);
}

.showcase-progress-ring strong {
  display: grid;
  place-items: center;
  width: 3.74em;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  color: var(--ui-ink);
  font-size: 1.08em;
  letter-spacing: -.04em;
}

.showcase-progress-caption {
  color: var(--ui-muted);
  font-size: .69em;
  white-space: nowrap;
}

.showcase-phone {
  z-index: 1;
  top: var(--phone-top);
  left: var(--phone-left);
  display: grid;
  width: var(--phone-width);
  aspect-ratio: 1 / 1.95;
  padding: .4em;
  border: 1px solid #40556f;
  border-radius: 2.16em;
  background: #1b2d44;
  box-shadow:
    .12em .2em .2em #1b2d444c,
    .45em 1em 2em #14283f38,
    .9em 2.4em 4.3em #14283f39;
  transform: rotate(var(--phone-angle));
}

.showcase-phone-screen {
  position: relative;
  min-height: 24em;
  overflow: hidden;
  padding: .83em .76em 1.3em;
  border-radius: 1.72em;
  background: var(--ui-surface);
}

.showcase-phone-screen::after {
  position: absolute;
  bottom: .46em;
  left: 50%;
  width: 34%;
  height: .18em;
  border-radius: .5em;
  background: #2b405a;
  content: "";
  transform: translateX(-50%);
}

.showcase-phone-statusbar {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 1.32em;
  margin: -.06em .34em 1.1em;
  color: var(--ui-ink);
  font-size: .67em;
  font-weight: 760;
  white-space: nowrap;
}

.showcase-phone-statusbar::after {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3.9em;
  height: .87em;
  border-radius: 1em;
  background: #162a42;
  content: "";
  transform: translate(-50%, -50%);
}

.showcase-phone-signal {
  width: .88em;
  height: .48em;
  border: .12em solid currentColor;
  border-radius: .16em;
  background: linear-gradient(to right, currentColor 76%, transparent 76%);
}

.showcase-phone-brand {
  padding-inline: 0;
  margin-bottom: .72em;
  font-size: .78em;
}

.showcase-phone-title {
  min-width: 0;
  margin-bottom: .68em;
  color: var(--ui-ink);
  font-size: 1.36em;
  font-weight: 760;
  line-height: 1.05;
  letter-spacing: -.04em;
  white-space: nowrap;
}

.showcase-phone-highlight {
  overflow: hidden;
  margin-bottom: .82em;
  padding: .73em .71em;
  border-radius: .67em;
  background: var(--ui-accent-light);
  color: var(--ui-accent);
}

.showcase-phone-highlight span,
.showcase-phone-highlight strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.showcase-phone-highlight span {
  margin-bottom: .18em;
  font-size: .66em;
}

.showcase-phone-highlight strong {
  font-size: 1.2em;
  line-height: 1.1;
}

.showcase-phone-section {
  margin-bottom: .4em;
  font-size: .73em;
}

.showcase-phone-rows {
  display: grid;
  gap: .34em;
}

.showcase-phone-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .38em;
  min-height: 2.1em;
  padding: .4em .45em;
  border: 1px solid var(--ui-line);
  border-radius: .47em;
  background: #fff;
}

.showcase-phone-row > span:first-child {
  overflow: hidden;
  color: var(--ui-ink);
  font-size: .67em;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.showcase-phone-row > span:last-child {
  color: var(--ui-accent);
  font-size: .66em;
  font-weight: 760;
  white-space: nowrap;
}

.showcase-phone-menu {
  position: absolute;
  inset: auto .76em 1.25em;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-top: .58em;
  border-top: 1px solid var(--ui-line);
  color: var(--ui-muted);
  text-align: center;
}

.showcase-phone-menu span:first-child {
  color: var(--ui-accent);
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  [data-showcase]:hover .showcase-device {
    transform: translateY(-2.2%) rotate(calc(var(--device-angle) * .64));
  }

  [data-showcase]:hover .showcase-phone {
    transform: translateY(-4%) rotate(calc(var(--phone-angle) * .72));
  }
}

@container (max-width: 620px) {
  .showcase-device {
    left: calc(var(--device-left) - 5%);
    width: calc(var(--device-width) + 4%);
    font-size: clamp(4.3px, 1.27cqi, 8px);
  }

  .showcase-phone {
    left: calc(var(--phone-left) - 1%);
    width: calc(var(--phone-width) + 2.3%);
    font-size: clamp(4.6px, 1.31cqi, 8px);
  }

  .showcase-window {
    grid-template-columns: 11.7em minmax(0, 1fr);
  }

  .showcase-metric-badge {
    display: none;
  }
}

@container (max-width: 440px) {
  .showcase-device {
    top: calc(var(--device-top) + 7%);
    left: calc(var(--device-left) - 9%);
    width: calc(var(--device-width) + 12%);
  }

  .showcase-phone {
    top: calc(var(--phone-top) + 7%);
    left: calc(var(--phone-left) - 3.6%);
    width: calc(var(--phone-width) + 5.5%);
  }

  .showcase-window {
    grid-template-columns: 9.8em minmax(0, 1fr);
  }

  .showcase-nav-item {
    padding-inline: .48em;
  }

  .showcase-nav-icon {
    font-size: .94em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .showcase-device,
  .showcase-phone {
    transition: none;
  }
}
