/* Extra styles for /demo only. Everything else comes from styles.css. */

.demo-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 18px;
  padding: 6px 6px 6px 12px;
  border-radius: 16px;
  background: var(--control);
  color: var(--control-ink);
  font-size: 13.5px;
  white-space: nowrap;
  line-height: 1.3;
}

.demo-banner strong {
  font-weight: 650;
}

.demo-banner a {
  flex-shrink: 0;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 17px;
  background: var(--primary);
  color: var(--primary-ink);
  font-weight: 650;
  text-decoration: none;
}

.demo-banner a:focus-visible,
.demo-reset:focus-visible,
.demo-actions .button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.demo-hint {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.demo-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.demo-actions .button {
  min-height: 44px;
  padding: 10px 8px;
  font-size: 15px;
  white-space: nowrap;
}

.demo-actions .button:disabled {
  opacity: 0.45;
  cursor: default;
}

.demo-box {
  padding: 14px;
  border: 1.5px dashed var(--field-border);
  border-radius: 16px;
}

.demo-box .section-label {
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.demo-box .sheet-note {
  margin: 0;
}

.demo-reset {
  margin: 0 0 16px;
}

/* No portal behind the demo, so no portal data to show. */
#show-raw,
#raw-wrap {
  display: none !important;
}

/* On wider screens keep the phone layout in a centred, phone-width column. */
@media (min-width: 620px) {
  body {
    background: var(--rule);
  }

  #app {
    max-width: 430px;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--panel);
    box-shadow: 0 0 0 1px var(--rule), 0 10px 40px rgba(8, 12, 14, 0.12);
  }

  .meters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 14px;
  }

  .sheet {
    max-width: 430px;
  }
}

@media (max-width: 359px) {
  .demo-banner {
    white-space: normal;
  }
}
