@font-face {
  font-family: 'Manrope';
  src: url('assets/Manrope-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('assets/Manrope-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('assets/Manrope-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-display: swap;
}

:root {
  --page: #f3effa;
  --surface: #ffffff;
  --surface-soft: #f8f7fc;
  --ink: #121021;
  --muted: #6e6a8b;
  --border: #d9d2e9;
  --border-soft: #ebe7f3;
  --brand: #5935e9;
  --brand-dark: #3412a6;
  --brand-soft: #e9e5f9;
  --navy: #06041f;
  --success: #08775b;
  --success-soft: #e9fbf4;
  --warning: #9b5b08;
  --warning-soft: #fff4dc;
  --danger: #b93825;
  --danger-soft: #fff0ed;
  --shadow: 0 18px 50px rgba(29, 22, 62, 0.1);
  --shadow-soft: 0 10px 30px rgba(29, 22, 62, 0.08);
  color: var(--ink);
  background: var(--page);
  font-family: 'Manrope', ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { background: var(--page); }
body { margin: 0; min-width: 760px; background: var(--page); }
button, select, input { font: inherit; }
button, select { color: inherit; }
button { cursor: pointer; }
button:focus-visible, select:focus-visible, input:focus-visible {
  outline: 3px solid rgba(89, 53, 233, 0.35);
  outline-offset: 2px;
}
.icon { width: 18px; height: 18px; flex: 0 0 auto; }

.review-toolbar {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(18px);
}
.review-brand { display: grid; gap: 3px; }
.review-brand strong { font-size: 16px; }
.review-kicker {
  color: var(--brand);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.review-controls { display: flex; align-items: end; gap: 10px; }
.review-controls label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.review-controls select, .quiet-button {
  min-height: 36px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  padding: 0 13px;
}
.notes-toggle {
  grid-auto-flow: column;
  align-items: center;
  min-height: 36px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0 12px;
}
.notes-toggle input { accent-color: var(--brand); }

.state-pills { display: flex; gap: 8px; overflow-x: auto; padding: 12px 24px 0; }
.state-pill {
  white-space: nowrap;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
}
.state-pill.active { border-color: var(--navy); background: var(--navy); color: white; }

.prototype-layout {
  display: grid;
  grid-template-columns: minmax(900px, 1fr) 360px;
  gap: 18px;
  align-items: start;
  padding: 18px 24px 48px;
}
.prototype-stage { min-width: 0; }
.screen-root { min-height: 820px; }

.review-notes {
  position: sticky;
  top: 90px;
  display: grid;
  gap: 15px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  padding: 20px;
  box-shadow: var(--shadow);
}
.review-notes[hidden] { display: none; }
.note-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.note-group, .score-target {
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.note-group { background: var(--brand-soft); color: var(--brand); }
.score-target { background: var(--success-soft); color: var(--success); }
.review-notes h2 { margin: 0; font-size: 21px; line-height: 1.2; }
.review-notes section { border-top: 1px solid var(--border); padding-top: 13px; }
.review-notes h3 { margin: 0 0 6px; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.review-notes p, .review-notes li { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.review-notes ul { display: grid; gap: 5px; margin: 0; padding-left: 18px; }
.question-card { border: 0 !important; border-radius: 16px; background: var(--navy); padding: 14px !important; }
.question-card h3, .question-card p { color: white; }

.prototype-toast {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 100;
  transform: translateY(18px);
  opacity: 0;
  border-radius: 14px;
  background: var(--navy);
  color: white;
  padding: 12px 16px;
  box-shadow: var(--shadow);
  font-size: 12px;
  font-weight: 700;
  transition: 160ms ease;
}
.prototype-toast.visible { transform: translateY(0); opacity: 1; }
