/* Homepage live preview shell. Colors come from the shared theme tokens that
   home-demo.js injects before first paint. The handle, pins, and note views
   are the product's own components and bring their own styles. */

* { box-sizing: border-box; }

html,
body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  background: var(--pr-raised, Canvas);
  color: var(--pr-text, CanvasText);
  font: 500 13px/1.35 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow: hidden;
}

.bar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 7px 10px;
  border-bottom: 1px solid var(--pr-border, GrayText);
}

.bar-url {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 8px;
  min-width: 0;
  height: 32px;
  margin: 0;
  padding: 0 12px 0 5px;
  border-radius: 999px;
  background: var(--pr-bg, Canvas);
}

.bar-example {
  flex: none;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--pr-hover, Canvas);
  color: var(--pr-muted, GrayText);
  font-size: 11.5px;
  font-weight: 650;
}

.bar-address {
  overflow: hidden;
  color: var(--pr-muted, GrayText);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.bar-actions {
  display: flex;
  flex: none;
  gap: 4px;
}

.bar-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--pr-text, CanvasText);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.bar-button svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.bar-button:hover { background: var(--pr-hover, Canvas); }
.bar-button:focus-visible { outline: 2px solid var(--pr-focus, Highlight); outline-offset: 2px; }
.bar-button[aria-pressed="true"] {
  border-color: var(--pr-selected-border, currentColor);
  background: var(--pr-selected-bg, transparent);
  color: var(--pr-success-text, CanvasText);
}

.bar-button[aria-busy="true"] { color: var(--pr-muted, GrayText); cursor: progress; }

.notice {
  position: absolute;
  top: 56px;
  left: 50%;
  z-index: 10;
  width: max-content;
  max-width: min(460px, calc(100% - 24px));
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--pr-border, GrayText);
  border-radius: 10px;
  background: var(--pr-bg, Canvas);
  color: var(--pr-text, CanvasText);
  box-shadow: var(--pr-shadow-popover, none);
  line-height: 1.45;
  transform: translateX(-50%);
}

.notice[data-tone="warn"] { border-color: var(--pr-warning, GrayText); }

.stage {
  position: relative;
  flex: 1;
  min-height: 0;
}

.stage iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #f7f3ea;
}

@media (max-width: 480px) {
  .bar { gap: 6px; padding: 6px 8px; }
  .bar-example { display: none; }
  .bar-button { padding: 0 8px; }
}

@media (max-width: 360px) {
  #voiceLabel { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
