:root {
  color-scheme: light;
  --screen-width: 1024px;
  --screen-height: 1536px;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: #ffffff;
  color: #111111;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body {
  display: grid;
  min-height: 100vh;
  place-items: center;
}

body.runtime-mode {
  display: block;
  background: #f8f2fb;
}

button {
  font: inherit;
  letter-spacing: 0;
}

.customer-app {
  position: relative;
  width: min(100vw, calc(100vh * 1024 / 1536), var(--screen-width));
  aspect-ratio: 1024 / 1536;
  margin: 0 auto;
  overflow: hidden;
  background: #ffffff;
}

.screen-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hotspots {
  position: absolute;
  inset: 0;
}

.hotspot {
  position: absolute;
  min-width: 40px;
  min-height: 40px;
  border: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: transparent;
  cursor: pointer;
  opacity: 0;
  appearance: none;
}

.hotspot:focus {
  outline: none;
}

.hotspot[data-testid="primary-action"] {
  z-index: 3;
}

.hotspot[data-testid="documentation-action"],
.hotspot[data-testid="support-action"] {
  z-index: 2;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 1024px) and (min-height: 1536px) {
  .customer-app {
    width: var(--screen-width);
    height: var(--screen-height);
  }
}

.customer-runtime {
  width: 100%;
  min-height: 100vh;
  margin: 0;
}

.runtime-shell {
  width: min(100%, 1120px);
  margin: 0 auto;
  min-height: 100vh;
}

.runtime-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 20px 20px;
  border-bottom: 1px solid #ead8f2;
  background: rgba(248, 242, 251, 0.94);
  backdrop-filter: blur(10px);
}

.runtime-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.runtime-logo {
  width: 56px;
  height: 56px;
  border: 1px solid #ead8f2;
  border-radius: 8px;
  background: #ffffff;
  object-fit: contain;
}

.runtime-brand-copy {
  display: grid;
  gap: 4px;
}

.runtime-eyebrow,
.runtime-section-label {
  margin: 0;
  color: #7a5e8b;
  font-size: 0.82rem;
  font-weight: 600;
}

.runtime-title,
.runtime-section-title {
  margin: 0;
  color: #1e1127;
  font-size: 1.45rem;
  font-weight: 700;
}

.runtime-subtitle,
.runtime-copy {
  margin: 0;
  color: #3e3348;
  line-height: 1.55;
}

.runtime-top-links,
.runtime-chip-row,
.runtime-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.runtime-main {
  display: grid;
  gap: 18px;
  padding: 24px 20px 48px;
}

.runtime-band {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid #ead8f2;
  border-radius: 8px;
  background: #ffffff;
}

.runtime-band-header {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.runtime-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.runtime-metric {
  display: grid;
  gap: 6px;
  min-height: 96px;
  padding: 14px;
  border: 1px solid #ead8f2;
  border-radius: 8px;
  background: #fbf7fd;
}

.runtime-metric-accent {
  background: #f5ecfb;
  border-color: #d9b7ef;
}

.runtime-metric-label {
  margin: 0;
  color: #6f5c7b;
  font-size: 0.85rem;
}

.runtime-metric-value {
  margin: 0;
  color: #1e1127;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.runtime-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  color: #3e3348;
  line-height: 1.5;
}

.runtime-field {
  display: grid;
  gap: 8px;
  min-width: min(100%, 280px);
  flex: 1 1 260px;
}

.runtime-input,
.runtime-textarea,
.runtime-button,
.runtime-link,
.runtime-chip {
  border-radius: 8px;
  letter-spacing: 0;
}

.runtime-input,
.runtime-textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #d9c6e5;
  background: #ffffff;
  color: #1e1127;
}

.runtime-textarea {
  min-height: 112px;
  resize: vertical;
}

.runtime-button,
.runtime-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid #d9c6e5;
  background: #ffffff;
  color: #1e1127;
  text-decoration: none;
  cursor: pointer;
}

.runtime-button-primary {
  border-color: #c582ed;
  background: #edd8fb;
}

.runtime-check {
  display: flex;
  gap: 10px;
  align-items: start;
  color: #3e3348;
  line-height: 1.45;
}

.runtime-check input {
  margin-top: 4px;
}

.runtime-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #ead8f2;
  background: #fbf7fd;
  color: #5b4770;
  font-size: 0.9rem;
}

.runtime-flash {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid #ead8f2;
  border-radius: 8px;
  background: #ffffff;
}

.runtime-flash-success {
  border-color: #b5dbbe;
  background: #f1fff4;
}

.runtime-flash-error {
  border-color: #f0c2cb;
  background: #fff4f6;
}

.runtime-flash-info {
  border-color: #cbd5f5;
  background: #f5f7ff;
}

@media (max-width: 720px) {
  .runtime-header,
  .runtime-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .runtime-title,
  .runtime-section-title {
    font-size: 1.2rem;
  }

  .runtime-top-links {
    width: 100%;
  }

  .runtime-button,
  .runtime-link {
    width: 100%;
  }
}
