/* =========================================================================
   POVerified — Screen Review deck
   Layers on top of assets/styles.css (design tokens + fonts).
   ========================================================================= */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--font-sans); background: #06111E; color: var(--fg-default); }

/* deck-stage canvas surface */
deck-stage { background: #06111E; }

/* ---------- Slide base ---------- */
.rv-slide {
  width: 1600px;
  height: 900px;
  overflow: hidden;
  position: relative;
  font-family: var(--font-sans);
}

/* ============================================================
   COVER
   ============================================================ */
.rv-cover {
  background:
    radial-gradient(1100px 700px at 78% -10%, rgba(21,192,206,0.22), transparent 60%),
    linear-gradient(160deg, #0E2238 0%, #0B1B2D 55%, #06111E 100%);
  color: #fff;
  padding: 92px 96px;
  display: flex;
  flex-direction: column;
}
.rv-cover::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(91,215,224,0.16) 1px, transparent 1.6px);
  background-size: 26px 26px;
  opacity: 0.35;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(120deg, black, transparent 70%);
          mask-image: linear-gradient(120deg, black, transparent 70%);
}
.rv-cover > * { position: relative; z-index: 1; }
.rv-cover-brand { display: flex; align-items: center; gap: 14px; }
.rv-cover-brand .mark { width: 46px; height: 46px; color: #fff; }
.rv-cover-brand .mark .accent { stroke: #2FC8D3; }
.rv-cover-brand .word { font-size: 26px; font-weight: 800; letter-spacing: -0.01em; }
.rv-cover-brand .word b { color: #fff; }
.rv-cover-brand .word span { color: #5BD7E0; }

.rv-cover-mid { margin-top: auto; }
.rv-cover-eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: #5BD7E0; margin-bottom: 22px;
}
.rv-cover h1 {
  font-size: 84px; line-height: 0.98; font-weight: 800; letter-spacing: -0.03em;
  margin: 0; max-width: 1180px; text-wrap: balance;
}
.rv-cover h1 em { font-style: normal; color: #5BD7E0; }
.rv-cover .lede {
  margin-top: 26px; font-size: 21px; line-height: 1.5; color: #A8BACE; max-width: 760px;
}

.rv-cover-foot {
  margin-top: 54px; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px;
}
.rv-cover-stats { display: flex; gap: 46px; }
.rv-cover-stats .num { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; color: #fff; }
.rv-cover-stats .lab { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #6D87A4; margin-top: 4px; }
.rv-cover-how {
  max-width: 430px; font-size: 14px; line-height: 1.6; color: #A8BACE;
  border-left: 2px solid rgba(91,215,224,0.45); padding: 4px 0 4px 18px;
}
.rv-cover-how b { color: #E7EFF7; font-weight: 700; }

/* ============================================================
   SECTION DIVIDER
   ============================================================ */
.rv-divider {
  background: linear-gradient(150deg, #0E2238 0%, #0B1B2D 60%, #06111E 100%);
  color: #fff;
  padding: 88px 96px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.rv-divider::after {
  content: "";
  position: absolute; right: -120px; top: 50%; transform: translateY(-50%);
  width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(21,192,206,0.16), transparent 62%);
  pointer-events: none;
}
.rv-divider > * { position: relative; z-index: 1; }
.rv-divider-top { display: flex; align-items: center; gap: 18px; margin-bottom: 30px; }
.rv-divider-letter {
  width: 76px; height: 76px; border-radius: 18px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; font-weight: 800; letter-spacing: -0.02em;
  background: linear-gradient(135deg, #15C0CE, #0E97A4); color: #06111E;
  box-shadow: 0 18px 40px -16px rgba(21,192,206,0.7);
}
.rv-divider-kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: #5BD7E0; }
.rv-divider-count { font-size: 14px; color: #6D87A4; margin-top: 4px; font-family: var(--font-mono); }
.rv-divider h2 { font-size: 64px; font-weight: 800; letter-spacing: -0.025em; margin: 0 0 28px; line-height: 1.02; max-width: 1100px; }
.rv-divider-list { display: flex; flex-wrap: wrap; gap: 10px; max-width: 1120px; }
.rv-divider-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.10);
  font-size: 13px; color: #C9D6E5;
}
.rv-divider-chip .id { font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: #5BD7E0; }

/* ============================================================
   SCREEN SLIDE
   ============================================================ */
.rv-screen { background: #EDF1F5; display: flex; flex-direction: column; }

.rv-screen-head {
  height: 72px; flex-shrink: 0;
  display: flex; align-items: center; gap: 16px;
  padding: 0 28px;
  background: #fff;
  border-bottom: 1px solid var(--border-default);
}
.rv-screen-id {
  font-family: var(--font-mono); font-size: 13px; font-weight: 700;
  color: var(--teal-700); background: var(--teal-50);
  border: 1px solid var(--teal-100);
  padding: 6px 11px; border-radius: 8px; letter-spacing: 0.02em;
}
.rv-screen-titles { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rv-screen-titles h3 { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -0.01em; color: var(--slate-900); }
.rv-screen-titles .crumb { font-size: 12.5px; color: var(--fg-muted); font-weight: 500; }
.rv-screen-titles .crumb b { color: var(--teal-700); font-weight: 600; }
.rv-screen-head-spacer { flex: 1; }
.rv-screen-path {
  font-family: var(--font-mono); font-size: 12px; color: var(--fg-subtle);
  background: var(--slate-50); border: 1px solid var(--border-subtle);
  padding: 6px 12px; border-radius: 7px; max-width: 360px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.rv-screen-body {
  flex: 1; min-height: 0;
  display: grid; grid-template-columns: 1fr 372px;
  gap: 22px; padding: 22px 24px;
}

/* ----- browser-chrome frame ----- */
.rv-frame {
  background: #fff; border: 1px solid var(--border-default);
  border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 26px 60px -34px rgba(14,34,56,0.55), 0 4px 14px -8px rgba(14,34,56,0.18);
  min-width: 0;
}
.rv-chrome {
  height: 40px; flex-shrink: 0;
  display: flex; align-items: center; gap: 14px;
  padding: 0 14px;
  background: var(--slate-50); border-bottom: 1px solid var(--border-subtle);
}
.rv-chrome-dots { display: flex; gap: 7px; }
.rv-chrome-dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.rv-chrome-dots i:nth-child(1) { background: #F0675A; }
.rv-chrome-dots i:nth-child(2) { background: #F6BD3B; }
.rv-chrome-dots i:nth-child(3) { background: #4FC56A; }
.rv-chrome-url {
  flex: 1; height: 24px; border-radius: 7px;
  background: #fff; border: 1px solid var(--border-default);
  display: flex; align-items: center; gap: 7px; padding: 0 11px;
  font-family: var(--font-mono); font-size: 11.5px; color: var(--fg-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rv-chrome-url .lock { color: var(--green-600); display: inline-flex; }
.rv-chrome-open {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: var(--teal-700);
  text-decoration: none; padding: 4px 9px; border-radius: 7px;
  border: 1px solid var(--teal-100); background: var(--teal-50);
}

.rv-viewport {
  flex: 1; min-height: 0; position: relative;
  background: #F5F8FA;
  display: flex; align-items: flex-start; justify-content: center;
  overflow: hidden;
}
.rv-viewport.is-dark { background: #0B1B2D; }
/* scaled stage holds the iframe */
.rv-stage { position: absolute; top: 0; left: 0; transform-origin: 0 0; will-change: transform; }
.rv-stage iframe { display: block; border: 0; background: #fff; }

/* loading shimmer */
.rv-loading {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 14px; color: var(--fg-subtle);
  background: linear-gradient(135deg, var(--teal-50), var(--blue-50));
  font-size: 13px; font-weight: 600;
}
.rv-viewport.is-dark .rv-loading { background: linear-gradient(135deg, #0E2238, #0B1B2D); color: #5BD7E0; }
.rv-loading .spin {
  width: 26px; height: 26px; border-radius: 50%;
  border: 3px solid rgba(21,192,206,0.25); border-top-color: var(--teal-500);
  animation: rv-spin 0.8s linear infinite;
}
@keyframes rv-spin { to { transform: rotate(360deg); } }

/* ----- comment pin overlay ----- */
.rv-pinlayer { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
body.rv-comment-mode .rv-pinlayer { pointer-events: auto; cursor: crosshair; }
.rv-pin {
  position: absolute; transform: translate(-50%, -50%);
  width: 28px; height: 28px; border-radius: 50% 50% 50% 2px;
  background: var(--teal-600); color: #fff;
  border: 2px solid #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; font-family: var(--font-mono);
  box-shadow: 0 4px 12px -2px rgba(14,34,56,0.5);
  cursor: pointer; z-index: 6; pointer-events: auto;
}
.rv-pin.is-active { background: var(--amber-500); transform: translate(-50%, -50%) scale(1.12); }

/* ============================================================
   NOTES PANEL
   ============================================================ */
.rv-notes {
  background: #fff; border: 1px solid var(--border-default); border-radius: 14px;
  display: flex; flex-direction: column; min-height: 0; overflow: hidden;
}
.rv-notes-head {
  padding: 16px 18px 14px; border-bottom: 1px solid var(--border-subtle); flex-shrink: 0;
}
.rv-notes-head .lab {
  font-size: 11px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--fg-muted); display: flex; align-items: center; gap: 8px;
}
.rv-notes-head .lab .ic { color: var(--teal-600); display: inline-flex; }
.rv-status { display: flex; gap: 8px; margin-top: 13px; }
.rv-status button {
  flex: 1; padding: 8px 6px; border-radius: 9px; cursor: pointer;
  border: 1px solid var(--border-default); background: var(--slate-50);
  font-family: var(--font-sans); font-size: 12px; font-weight: 600; color: var(--fg-muted);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: all 0.14s ease;
}
.rv-status button .ic { display: inline-flex; }
.rv-status button[data-status="approved"].is-on { background: var(--green-50); border-color: var(--green-500); color: var(--green-700); }
.rv-status button[data-status="changes"].is-on { background: var(--amber-50); border-color: var(--amber-500); color: var(--amber-700); }

.rv-notes-body { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 18px; display: flex; flex-direction: column; gap: 12px; }

.rv-pinnote { display: flex; gap: 10px; align-items: flex-start; }
.rv-pinnote .num {
  width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px;
  border-radius: 50% 50% 50% 2px; background: var(--teal-600); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; font-family: var(--font-mono);
}
.rv-pinnote textarea {
  flex: 1; resize: none; min-height: 38px;
  border: 1px solid var(--border-default); border-radius: 9px;
  padding: 8px 10px; font-family: var(--font-sans); font-size: 13px; line-height: 1.45;
  color: var(--slate-900); background: var(--slate-25);
}
.rv-pinnote textarea:focus { outline: none; border-color: var(--teal-400); background: #fff; box-shadow: 0 0 0 3px rgba(21,192,206,0.14); }
.rv-pinnote .del { background: none; border: none; color: var(--fg-subtle); cursor: pointer; padding: 4px; border-radius: 6px; margin-top: 2px; }
.rv-pinnote .del:hover { color: var(--red-600); background: var(--red-50); }

.rv-general { display: flex; flex-direction: column; gap: 7px; }
.rv-general label { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-subtle); }
.rv-general textarea {
  resize: none; min-height: 96px;
  border: 1px solid var(--border-default); border-radius: 9px; padding: 10px 12px;
  font-family: var(--font-sans); font-size: 13px; line-height: 1.5; color: var(--slate-900); background: var(--slate-25);
}
.rv-general textarea:focus { outline: none; border-color: var(--teal-400); background: #fff; box-shadow: 0 0 0 3px rgba(21,192,206,0.14); }

.rv-hint {
  font-size: 12px; line-height: 1.5; color: var(--fg-subtle);
  background: var(--slate-50); border: 1px dashed var(--border-strong);
  border-radius: 9px; padding: 10px 12px;
}
.rv-hint b { color: var(--teal-700); }
.rv-empty-pins { font-size: 12.5px; color: var(--fg-subtle); font-style: italic; }

/* ============================================================
   GLOBAL TOOLBAR (fixed, outside scaled stage)
   ============================================================ */
.rv-toolbar {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  z-index: 9000;
  display: flex; align-items: center; gap: 18px;
  padding: 8px 8px 8px 16px;
  background: rgba(11,27,45,0.86); backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.10); border-radius: 14px;
  box-shadow: 0 18px 44px -20px rgba(0,0,0,0.7);
}
.rv-brand { display: flex; align-items: center; gap: 8px; color: #fff; }
.rv-brand .rv-logo { color: #fff; display: inline-flex; }
.rv-brand-text { font-size: 14px; font-weight: 800; letter-spacing: -0.01em; }
.rv-brand-text b { color: #fff; }
.rv-brand-sub { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #5BD7E0; padding-left: 8px; margin-left: 2px; border-left: 1px solid rgba(255,255,255,0.14); }

.rv-mode { display: flex; background: rgba(255,255,255,0.06); border-radius: 10px; padding: 3px; }
.rv-mode button {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px; border: none; background: none; cursor: pointer;
  font-family: var(--font-sans); font-size: 13px; font-weight: 600; color: #9BB1C8;
  border-radius: 8px; transition: all 0.14s ease;
}
.rv-mode button .ic { display: inline-flex; }
.rv-mode button.is-active { background: var(--teal-500); color: #06111E; }

.rv-actions { display: flex; gap: 8px; }
.rv-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 13px; border-radius: 10px; cursor: pointer;
  border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.06);
  font-family: var(--font-sans); font-size: 13px; font-weight: 600; color: #E7EFF7;
}
.rv-btn:hover { background: rgba(255,255,255,0.12); }
.rv-btn .ic { display: inline-flex; }
.rv-btn-ghost { background: none; }

/* ============================================================
   MODAL
   ============================================================ */
.rv-modal {
  position: fixed; inset: 0; z-index: 9500;
  background: rgba(6,17,30,0.6); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 40px;
}
.rv-modal-card {
  width: 760px; max-width: 100%; max-height: 86vh;
  background: #fff; border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column; box-shadow: 0 40px 90px -30px rgba(0,0,0,0.6);
}
.rv-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--border-subtle); }
.rv-modal-head h3 { margin: 0; font-size: 18px; font-weight: 700; }
.rv-modal-head-actions { display: flex; align-items: center; gap: 8px; }
.rv-modal-head .rv-btn { color: var(--slate-700); border-color: var(--border-default); background: var(--slate-50); }
.rv-modal-head .rv-btn:hover { background: var(--slate-100); }
.rv-iconbtn { background: none; border: none; cursor: pointer; color: var(--fg-muted); padding: 6px; border-radius: 8px; display: inline-flex; }
.rv-iconbtn:hover { background: var(--slate-100); }
.rv-modal-body {
  flex: 1; margin: 0; border: none; resize: none; padding: 20px 22px;
  font-family: var(--font-mono); font-size: 12.5px; line-height: 1.6; color: var(--slate-800);
}
.rv-modal-body:focus { outline: none; }
.rv-modal-foot { padding: 12px 22px; border-top: 1px solid var(--border-subtle); font-size: 12px; color: var(--fg-muted); }

/* ============================================================
   PRINT  — let deck-stage's own print CSS lay out pages
   ============================================================ */
@media print {
  .rv-toolbar, .rv-modal { display: none !important; }
  .rv-pinlayer { cursor: default; }
}
