.template-demo-page-host {
  position: relative;
  min-height: 0;
  overflow: hidden;
}

.template-demo-page-host > .template-phone-content {
  height: 100%;
}

.template-demo-page[hidden] {
  display: none;
}

.template-demo-feedback {
  position: absolute;
  z-index: 3;
  right: 8px;
  bottom: 8px;
  left: 8px;
  display: block;
  overflow: hidden;
  border: 1px solid var(--template-border);
  border-radius: 999px;
  background: var(--template-card-bg);
  color: var(--template-text);
  font-size: 8px;
  line-height: 24px;
  opacity: 0;
  padding: 0 9px;
  pointer-events: none;
  text-align: center;
  text-overflow: ellipsis;
  transform: translateY(6px);
  transition: opacity 160ms ease, transform 160ms ease;
  white-space: nowrap;
}

.template-demo-feedback.is-visible {
  opacity: 0.96;
  transform: translateY(0);
}

.template-demo-utility-page {
  gap: 8px;
}

.template-demo-utility-card,
.template-demo-utility-actions,
.template-demo-utility-list {
  min-width: 0;
}

.template-demo-utility-card {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid var(--template-border);
  border-radius: var(--template-radius);
  background: var(--template-card-bg);
  padding: 9px;
}

.template-demo-utility-card > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.template-demo-utility-card span,
.template-demo-utility-card em {
  overflow: hidden;
  color: var(--template-muted);
  font-size: 7px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.template-demo-utility-card strong {
  overflow: hidden;
  color: var(--template-text);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.template-demo-utility-card > i {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 7px solid color-mix(in srgb, var(--template-active-accent) 24%, transparent);
  border-top-color: var(--template-active-accent);
  border-radius: 50%;
}

.template-demo-utility-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.template-demo-utility-actions button,
.template-demo-utility-list button {
  min-width: 0;
  border: 1px solid var(--template-border);
  border-radius: var(--template-radius);
  background: var(--template-card-bg);
  color: var(--template-text);
  font: inherit;
}

.template-demo-utility-actions button {
  min-height: 30px;
  padding: 0 5px;
  font-size: 8px;
}

.template-demo-utility-list {
  display: grid;
  gap: 4px;
}

.template-demo-utility-list button {
  display: flex;
  min-height: 32px;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 4px 7px;
  text-align: left;
}

.template-demo-utility-list button > span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.template-demo-utility-list strong,
.template-demo-utility-list em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.template-demo-utility-list strong {
  color: var(--template-text);
  font-size: 8px;
}

.template-demo-utility-list em {
  color: var(--template-muted);
  font-size: 7px;
  font-style: normal;
}

.template-demo-utility-list b {
  color: var(--template-active-accent);
  font-size: 12px;
}

.template-demo-interactive {
  cursor: pointer;
  transition: border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.template-demo-interactive:hover,
.template-demo-interactive:focus-visible,
.template-demo-interactive.is-selected {
  border-color: var(--template-active-accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--template-active-accent) 18%, transparent);
  outline: none;
}

.template-demo-interactive:active {
  transform: scale(0.985);
}

.template-music-progress {
  cursor: pointer;
}

.template-play-button.is-paused {
  opacity: 0.66;
}

.template-music-controls .music-pause.is-paused::after {
  top: 7px;
  left: 10px;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-right: 0;
  border-bottom: 5px solid transparent;
  border-left: 7px solid #24183b;
}

