/* Proposal viewer: a browser window you can scroll, switch between desktop and mobile, and jump by section. */

.viewer {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.5);
}

.viewer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.viewer-dots {
  display: flex;
  gap: 7px;
}

.viewer-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.viewer-url {
  flex: 1 1 220px;
  min-width: 0;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.viewer-url strong {
  color: var(--text-2);
  font-weight: 600;
}

.viewer-devices {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--bg);
}

.viewer-devices button,
.viewer-tabs button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.2s, color 0.2s;
}

.viewer-devices button {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 14px;
}

.viewer-devices button[aria-pressed='true'] {
  background: var(--accent-fill);
  color: #fff;
}

.viewer-tabs {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}

.viewer-tabs::-webkit-scrollbar {
  display: none;
}

.viewer-tabs button {
  flex-shrink: 0;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 14px;
}

.viewer-tabs button:hover {
  color: var(--text);
}

.viewer-tabs button.is-active {
  background: rgba(61, 123, 255, 0.16);
  color: var(--text);
}

.viewer-stage {
  display: flex;
  justify-content: center;
  background: #0A0A0F;
}

.viewer-screen {
  width: 100%;
  height: min(640px, 70vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}

.viewer-screen img {
  width: 100%;
}

.viewer-screen[hidden] {
  display: none;
}

/* Mobile view: a phone-sized screen centred in the window. */
.viewer-screen--mobile {
  width: 360px;
  max-width: 100%;
  height: min(700px, 75vh);
  margin: 24px 0;
  border: 8px solid #1C1B26;
  border-radius: 34px;
}

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