.browser-demo body {
  min-height: 100vh;
}

.browser-demo-banner {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 6px 18px;
  color: #dce8ed;
  background: linear-gradient(90deg, #10242d 0%, #132a34 48%, #11232b 100%);
  border-bottom: 1px solid rgba(103, 206, 183, .25);
  font: 12px/1.4 "Microsoft YaHei", "PingFang SC", sans-serif;
  letter-spacing: .02em;
}

.browser-demo-banner strong {
  color: #7de0c4;
  font-weight: 700;
}

.browser-demo-banner span {
  color: #9fb6bf;
}

.browser-demo-banner button {
  min-height: 24px;
  padding: 2px 10px;
  color: #d9fbf1;
  background: rgba(125, 224, 196, .08);
  border: 1px solid rgba(125, 224, 196, .35);
  border-radius: 999px;
  cursor: pointer;
}

.browser-demo-banner button:hover,
.browser-demo-banner button:focus-visible {
  background: rgba(125, 224, 196, .16);
  outline: none;
}

.browser-demo #settings-btn,
.browser-demo #collab-btn {
  display: none !important;
}

.browser-demo #record-btn.browser-demo-disabled {
  opacity: .58;
  cursor: not-allowed;
}

.browser-demo-artifact-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 32px;
  background: rgba(1, 7, 10, .82);
  backdrop-filter: blur(12px);
}

.browser-demo-artifact-shell {
  width: min(1440px, 96vw);
  height: min(900px, 92vh);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(125, 224, 196, .22);
  border-radius: 18px;
  background: #111719;
  box-shadow: 0 32px 90px rgba(0, 0, 0, .55);
}

.browser-demo-artifact-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 26px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: linear-gradient(120deg, #13282d, #101719 70%);
}

.browser-demo-artifact-eyebrow {
  display: block;
  margin-bottom: 5px;
  color: #7de0c4;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
}

.browser-demo-artifact-head h2 {
  margin: 0 0 5px;
  color: #f1f7f7;
  font-size: 24px;
}

.browser-demo-artifact-head p {
  margin: 0;
  color: #9fb0b4;
  font-size: 12px;
}

.browser-demo-artifact-close {
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border-radius: 50%;
  color: #dfe9ea;
  background: rgba(255, 255, 255, .06);
  font-size: 24px;
  line-height: 1;
}

.browser-demo-artifact-body {
  min-height: 0;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
}

.browser-demo-artifact-list {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  overflow-y: auto;
  border-right: 1px solid rgba(255, 255, 255, .08);
  background: #0d1214;
}

.browser-demo-artifact-card {
  display: grid;
  gap: 7px;
  padding: 16px;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
  background: #151b1d;
  color: #e5eeee;
}

.browser-demo-artifact-card:hover,
.browser-demo-artifact-card.active {
  border-color: rgba(125, 224, 196, .55);
  background: #172528;
}

.browser-demo-artifact-card strong {
  font-size: 14px;
  line-height: 1.45;
}

.browser-demo-artifact-card small {
  color: #9aa9ad;
  line-height: 1.5;
}

.browser-demo-artifact-kind,
.browser-demo-artifact-meta {
  color: #7de0c4;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
}

.browser-demo-artifact-viewer {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.browser-demo-artifact-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: #151b1d;
}

.browser-demo-artifact-toolbar > div:first-child {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.browser-demo-artifact-toolbar strong {
  overflow: hidden;
  color: #eef5f5;
  font-size: 13px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.browser-demo-artifact-toolbar span {
  color: #8fa0a4;
  font-size: 10px;
}

.browser-demo-artifact-pager {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.browser-demo-artifact-pager button {
  width: 32px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  font-size: 20px;
}

.browser-demo-artifact-canvas {
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 20px;
  background: #070a0b;
}

.browser-demo-artifact-canvas img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 5px;
  box-shadow: 0 10px 36px rgba(0, 0, 0, .45);
}

@media (max-width: 720px) {
  .browser-demo-banner {
    justify-content: space-between;
    gap: 8px;
  }
  .browser-demo-banner span {
    display: none;
  }
  .browser-demo-artifact-overlay {
    padding: 10px;
  }
  .browser-demo-artifact-shell {
    width: 100%;
    height: 96vh;
  }
  .browser-demo-artifact-body {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }
  .browser-demo-artifact-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }
}
