:root {
  --page: #f3f0fa;
  --sidebar: #eeeaf7;
  --surface: #ffffff;
  --surface-soft: #f8f7fb;
  --muted-surface: #f2f0f6;
  --ink: #171326;
  --muted: #706b80;
  --border: #e1dde9;
  --navy: #0e073d;
  --navy-hover: #211751;
  --violet: #6448d8;
  --violet-soft: #eee9ff;
  --violet-text: #5638c4;
  --teal: #08775b;
  --teal-soft: #ddf7ec;
  --amber: #9b5b08;
  --amber-soft: #fff1d7;
  --danger: #b42339;
  --danger-soft: #fff0f1;
  --shadow: 0 16px 48px rgba(30, 22, 61, 0.1);
  --card-shadow: 0 8px 24px rgba(30, 22, 61, 0.07);
  color: var(--ink);
  background: var(--page);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 720px; background: var(--page); }
button, input, select { color: inherit; font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.45; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible {
  outline: 3px solid rgba(100, 72, 216, 0.32);
  outline-offset: 2px;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

.review-toolbar {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(18px);
}
.review-brand { display: flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.review-mark { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 11px; background: var(--navy); color: white; font-size: 9px; font-weight: 900; }
.review-brand > span:last-child { display: grid; gap: 2px; }
.review-brand small { color: var(--violet-text); font-size: 9px; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }
.review-brand strong { font-size: 14px; }
.review-controls { display: flex; align-items: end; gap: 8px; }
.review-controls label { display: grid; gap: 4px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.review-controls select, .review-control { min-height: 36px; border: 1px solid var(--border); border-radius: 999px; background: white; padding: 0 12px; }
.review-control { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 750; }
.review-control[aria-pressed="true"] { border-color: #c4b9ec; background: var(--violet-soft); color: var(--violet-text); }

.review-intro { max-width: 1500px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; padding: 32px 24px 18px; }
.review-kicker { margin: 0 0 8px; color: var(--violet-text); font-size: 10px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
.review-intro h1 { max-width: 800px; margin: 0; font-size: clamp(25px, 3vw, 42px); line-height: 1.03; letter-spacing: -0.045em; }
.review-intro > div:first-child > p:last-child { max-width: 760px; margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.review-principle { min-width: 335px; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; border: 1px solid #d9d2f0; border-radius: 22px; background: rgba(255, 255, 255, 0.72); padding: 15px; box-shadow: var(--card-shadow); }
.review-principle span, .review-principle small { grid-column: 1 / -1; }
.review-principle span { color: var(--muted); font-size: 9px; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; }
.review-principle strong { border-radius: 12px; background: var(--surface); padding: 9px; font-size: 11px; text-align: center; }
.review-principle strong:first-of-type { color: var(--violet-text); }
.review-principle strong:last-of-type { color: var(--teal); }
.review-principle small { color: var(--muted); font-size: 10px; text-align: center; }

.state-pills { max-width: 1500px; margin: 0 auto; display: flex; gap: 7px; overflow-x: auto; padding: 4px 24px 10px; scrollbar-width: none; }
.state-pill { flex: 0 0 auto; border: 1px solid var(--border); border-radius: 999px; background: rgba(255,255,255,0.8); padding: 7px 11px; font-size: 10px; font-weight: 750; }
.state-pill.active { border-color: var(--navy); background: var(--navy); color: white; }

.prototype-layout { max-width: 1680px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; padding: 8px 24px 48px; }
.prototype-stage { min-width: 0; }
.odia-app-frame { min-height: 790px; display: grid; grid-template-columns: 192px minmax(0, 1fr); overflow: hidden; border: 1px solid #d6d0e2; border-radius: 26px; background: var(--sidebar); box-shadow: var(--shadow); }
.app-sidebar { min-height: 790px; display: flex; flex-direction: column; padding: 13px 9px 11px; background: var(--sidebar); }
.team-switcher { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 8px; align-items: center; min-height: 42px; padding: 5px 8px; }
.team-switcher strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.team-mark { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 9px; background: var(--navy); color: white; font-size: 10px; font-weight: 900; }
.sidebar-nav { display: grid; gap: 2px; margin-top: 12px; }
.sidebar-nav a { display: flex; align-items: center; gap: 10px; min-height: 36px; border-radius: 999px; padding: 0 14px; color: #3d374e; font-size: 11px; font-weight: 650; text-decoration: none; }
.sidebar-nav a > span { width: 18px; color: #5d576a; font-size: 15px; text-align: center; }
.sidebar-nav a:hover, .sidebar-nav a.active { background: #ded8ef; color: var(--navy); }
.sidebar-nav a.active { font-weight: 800; }
.user-account { width: 100%; margin-top: auto; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 8px; align-items: center; border: 0; border-radius: 18px; background: transparent; padding: 8px; text-align: left; }
.user-account:hover { background: #e3ddf0; }
.user-account > span:nth-child(2) { min-width: 0; display: grid; gap: 2px; }
.user-account strong, .user-account small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-account strong { font-size: 10px; }
.user-account small { color: var(--muted); font-size: 8px; }
.user-avatar { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: #ddd5fb; color: var(--violet-text); font-size: 9px; font-weight: 850; }
.app-column { min-width: 0; display: flex; flex-direction: column; }
.site-header { height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; background: var(--sidebar); }
.site-header > nav { color: #413b50; font-size: 11px; }
.site-actions { display: flex; align-items: center; gap: 7px; }
.site-actions button { display: grid; width: 29px; height: 29px; place-items: center; border: 0; border-radius: 50%; background: transparent; font-size: 12px; }
.site-actions button:hover { background: #e0daee; }
.site-actions .support-mark { background: var(--navy); color: white; font-size: 7px; font-weight: 900; }
.beta-chip { border-radius: 999px; background: #e3dcfb; padding: 4px 7px; color: var(--violet-text); font-size: 8px; font-weight: 800; }
.app-gutter { flex: 1; min-height: 734px; padding-left: 9px; background: var(--sidebar); }
.screen-root { min-height: 734px; overflow: hidden; border-radius: 25px 0 0 0; background: var(--surface); box-shadow: -3px -2px 12px rgba(30, 22, 61, 0.04); }

.review-notes { position: sticky; top: 84px; max-height: calc(100vh - 98px); display: grid; gap: 13px; overflow-y: auto; border: 1px solid var(--border); border-radius: 24px; background: white; padding: 18px; box-shadow: var(--shadow); }
.review-notes[hidden] { display: none; }
body[data-notes-visible="false"] .prototype-layout { grid-template-columns: minmax(0, 1fr); max-width: 1500px; }
.note-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.note-group, .score-target { border-radius: 999px; padding: 5px 8px; font-size: 8px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.note-group { background: var(--violet-soft); color: var(--violet-text); }
.score-target { background: var(--teal-soft); color: var(--teal); }
.review-notes h2 { margin: 0; font-size: 19px; line-height: 1.15; letter-spacing: -0.025em; }
.review-notes section { border-top: 1px solid var(--border); padding-top: 11px; }
.review-notes h3 { margin: 0 0 5px; font-size: 9px; letter-spacing: 0.07em; text-transform: uppercase; }
.review-notes p, .review-notes li { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.review-notes ul { display: grid; gap: 4px; margin: 0; padding-left: 15px; }
.review-notes .question-card { border: 0; border-radius: 16px; background: var(--navy); padding: 13px; }
.question-card h3, .question-card p { color: white; }

.primary-button, .secondary-button, .icon-button, .back-button { min-height: 34px; border-radius: 999px; padding: 0 13px; font-size: 10px; font-weight: 800; }
.primary-button { border: 1px solid var(--navy); background: var(--navy); color: white; }
.primary-button:hover { border-color: var(--navy-hover); background: var(--navy-hover); }
.secondary-button { border: 1px solid var(--border); background: white; }
.secondary-button:hover, .icon-button:hover { border-color: #c9c1d9; background: var(--surface-soft); }
.icon-button, .back-button { width: 34px; padding: 0; border: 1px solid var(--border); background: white; }
.search-field { position: relative; display: flex; align-items: center; }
.search-field > span { position: absolute; left: 12px; z-index: 1; color: var(--muted); font-size: 13px; }
.search-field input { width: 100%; min-height: 36px; border: 1px solid var(--border); border-radius: 999px; background: white; padding: 0 13px 0 32px; font-size: 10px; }
.kind-badge { width: fit-content; display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 8px; font-size: 8px; font-weight: 900; letter-spacing: 0.07em; text-transform: uppercase; }
.kind-badge.template { background: var(--violet-soft); color: var(--violet-text); }
.kind-badge.bundle { background: var(--teal-soft); color: var(--teal); }
.eyebrow { margin: 0 0 4px; color: var(--violet-text); font-size: 8px; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }
