/* HealthBot Test Bench — Human-in-the-Loop review page.
   Its own surface: the Backoffice aesthetic from the design screens, sharing the
   bench's teal/green tokens and type system (Lato titles, Roboto body) so it
   still reads as the same product. */

:root {
  --teal: #2a8b9d;
  --teal-dark: #1b7d8e;
  --teal-deep: #146576;
  --green: #74c264;
  --ink: #2f3338;
  --ink-soft: #6b7077;
  --ink-faint: #8b9198;
  --line: #e2e6ea;
  --line-soft: #eef1f4;
  --bot-bubble: #efefef;
  --sel: #e7eef2;
  --green-dark: #41703a;
  --green-soft: #e9f4e4;
  --red: #d64545;
  --bg: #ffffff;
  --rail: 264px;
}

* { box-sizing: border-box; }

html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Roboto', -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
}
button, input, textarea, select { font-family: inherit; }
h1, h2, h3, h4 { font-family: 'Lato', sans-serif; font-weight: 700; margin: 0; }
.hidden { display: none !important; }

/* ===================== splash + access gate (bench parity) ===================== */
.auth-splash {
  position: fixed; inset: 0; background: #eef0f6; z-index: 20000;
  transition: opacity .25s ease;
}
.auth-splash.splash-gone { opacity: 0; pointer-events: none; }

.gate {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--teal); display: flex; align-items: center; justify-content: center;
}
.gate-card {
  background: #fff; border-radius: 14px; padding: 34px 38px 30px;
  width: min(360px, calc(100vw - 40px)); text-align: center;
  box-shadow: 0 18px 50px rgba(0,0,0,.22);
}
.gate-logo { display: flex; justify-content: center; margin-bottom: 10px; }
.gate-card h1 { font-size: 22px; margin-bottom: 6px; }
.gate-card p { margin: 0 0 18px; font-size: 13px; color: var(--ink-soft); }
.gate-card input {
  width: 100%; padding: 11px 13px; font-size: 14px;
  border: 1px solid var(--line); border-radius: 8px; margin-bottom: 12px;
}
.gate-card input:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: transparent; }
.gate-card button {
  width: 100%; padding: 11px; border: 0; border-radius: 8px; cursor: pointer;
  background: var(--teal); color: #fff; font-weight: 700; font-size: 14px;
}
.gate-card button:hover { background: var(--teal-dark); }
.gate-error { min-height: 16px; margin: 10px 0 0 !important; color: var(--red); font-size: 12px; }

/* ========================= reviewer profile picker ========================= */
.login {
  position: fixed; inset: 0; z-index: 9000; overflow-y: auto;
  background: #eef0f6; padding: 0;
}
.login-inner { max-width: 880px; margin: 0 auto; padding: 40px 24px 48px; }

/* Out-of-fiction demo strip. Same family as the bench's under-construction band,
   but full-bleed across the top so it reads as a banner over the page. */
/* the banner centres one shrink-to-fit group; inside it, everything stays left */
.login-banner {
  background: #fdf1c2; color: #7a5c00; border: 0;
  padding: 12px 24px 13px;
}
.login-banner-inner {
  display: block; margin: 0; width: 100%; text-align: center;
  font-size: 12.5px; line-height: 1.55;
}
.login-banner-tag {
  display: block; margin-bottom: 1px;
  font-weight: 700; font-size: 13.5px; line-height: 1.3;
  letter-spacing: .1em; text-transform: uppercase;
}
.login-banner-text { display: block; }
.login-head { text-align: center; margin-bottom: 30px; }
.login-logo { display: flex; justify-content: center; margin-bottom: 12px; }
.login-eyebrow {
  margin: 0 0 6px; font-size: 10.5px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--teal-deep);
}
.login-head h1 { font-size: 28px; letter-spacing: .01em; }
.login-subline {
  margin: 7px 0 0; font-size: 13.5px; font-style: italic; color: var(--ink-soft);
}
.login-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  grid-auto-rows: 1fr; gap: 14px;
}
.login-card {
  display: flex; flex-direction: column; height: 100%; text-align: left; position: relative;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  cursor: pointer; transition: border-color .12s, box-shadow .12s, transform .12s;
}
/* top-aligned: the circle's top edge lines up with the cap-height of the name */
.login-card-main { display: flex; flex: 1 1 auto; align-items: flex-start; gap: 13px; padding: 14px 15px 13px; }
.login-card-body { display: block; min-width: 0; flex: 1; }
.login-card-right { flex: none; display: flex; align-items: flex-start; }
.login-card:hover {
  border-color: var(--teal); box-shadow: 0 6px 18px rgba(26,92,107,.13); transform: translateY(-1px);
}
.login-card:hover, .login-card:focus-within { z-index: 6; }
.login-card:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.login-av {
  width: 46px; height: 46px; flex: none; border-radius: 50%; position: relative; overflow: hidden;
  margin-top: 2px;   /* drops the circle onto the name's cap line, not its line-box top */
  box-shadow: 0 1px 3px rgba(0,0,0,.24);   /* same tight shadow as the bench's persona avatars */
  background: var(--teal); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Lato', sans-serif; font-weight: 700; font-size: 15px; letter-spacing: .04em;
}
.login-av-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.login-name { display: block; font-family: 'Lato', sans-serif; font-weight: 700; font-size: 14.5px; }
.login-cred { display: block; font-size: 11.5px; color: var(--teal-deep); font-weight: 500; margin-top: 1px; }
.login-focus { display: block; font-size: 11.5px; color: var(--ink-soft); line-height: 1.4; margin-top: 3px; }
/* the queue strip: same two slots on every card */
.login-strip {
  display: flex; justify-content: center; gap: 36px; padding: 8px 15px;
  border-radius: 0 0 9px 9px;
  border-top: 1px solid #d9ebd4; background: #e9f4e4;
  font-size: 11px; font-weight: 500; color: #41703a;
}
.login-strip-slot { display: inline-flex; align-items: center; gap: 4px; }
.login-strip-flag .fa-flag { font-size: 9.5px; color: #c3c9ce; }
.login-strip-flag.has-flags .fa-flag { color: var(--red); }
/* nobody home: the whole strip greys out rather than reading as activity */
.login-strip.is-idle {
  background: #f4f6f7; border-top-color: var(--line-soft); color: var(--ink-faint);
}


/* contact affordance — visually real, deliberately inert */
.login-msg {
  flex: none; width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; position: relative; padding: 0;
  display: flex; align-items: center; justify-content: center; line-height: 0;
}
.login-msg:hover { border-color: var(--teal); background: #f5fafb; }
/* FA sits the envelope slightly high in its em box; a 1px nudge optically centres it */
.login-msg-ico {
  font-size: 19px; color: #7d868d; line-height: 1;
  display: block; width: 19px; height: 19px; text-align: center;
  position: relative; top: 1px;
}
.login-msg:hover .login-msg-ico { color: var(--teal-deep); }
.login-msg-tip {
  position: absolute; bottom: calc(100% + 8px); right: -4px;   /* overlaps the card top by ~6px */
  width: max-content; max-width: 200px;
  background: #3a4248; color: #fff; border-radius: 6px; padding: 7px 10px;
  font-size: 11px; line-height: 1.4; font-weight: 400; text-align: left;
  opacity: 0; pointer-events: none; transition: opacity .13s ease; z-index: 3;
}
.login-msg:hover .login-msg-tip,
.login-msg:focus-visible .login-msg-tip,
.login-msg.is-shown .login-msg-tip { opacity: 1; }

/* ================================ shell ================================ */
.bo-shell { display: flex; height: 100vh; overflow: hidden; }

/* ------------------------------- left rail ------------------------------- */
.bo-nav { width: var(--rail); flex: none; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.bo-brand {
  height: 64px; flex: none; background: var(--teal-dark); color: #fff;
  display: flex; align-items: center; gap: 12px; padding: 0 18px;
}
.bo-brand-word {
  font-family: 'Lato', sans-serif; font-weight: 700;
  font-size: 13px; letter-spacing: .3em; line-height: 1;
}
.bo-brand-mark { flex: none; width: 26px; height: 26px; position: relative; }
.bo-brand-mark svg { display: block; }
.bo-brand-mark::after {
  content: ""; position: absolute; inset: 10%; border-radius: 50%;
  box-shadow: 0 0 0 1.5px rgba(168, 219, 240, .22);
}
.bo-nav-group { padding: 0; border-bottom: 1px solid var(--line); }
.bo-nav-av {
  width: 24px; height: 24px; flex: none; border-radius: 50%; overflow: hidden; position: relative;
  background: var(--teal); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Lato', sans-serif; font-weight: 700; font-size: 9px; letter-spacing: .02em;
  box-shadow: 0 1px 3px rgba(0,0,0,.24);
}
.bo-nav-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bo-nav-item {
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 10px 18px; background: none; border: 0; cursor: pointer;
  font-size: 14px; color: var(--ink); text-align: left;
  border-left: 3px solid transparent;
}
.bo-nav-item:hover { background: var(--line-soft); }
.bo-nav-item.is-active { background: var(--line-soft); border-left-color: var(--teal); font-weight: 500; }
.bo-nav-label { flex: 1; }
.bo-badge {
  flex: none; min-width: 26px; height: 22px; padding: 0 7px; border-radius: 11px;
  background: var(--red); color: #fff; font-size: 11.5px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}

/* icons are Font Awesome 6 Free glyphs; these rules only size and colour them */
.bo-ico { width: 17px; flex: none; font-size: 15px; color: #5f686f; text-align: center; }
.bo-nav-item .bo-ico { width: 24px; font-size: 16px; }
.bo-ico-flag, .rv-flag { color: var(--red); }
.rv-flag { font-size: 12px; }
.rv-item .rv-flag { font-size: 11.5px; }

/* ------------------------------- top bar ------------------------------- */
.bo-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bo-topbar {
  height: 64px; flex: none; display: flex; align-items: center; gap: 14px;
  padding: 0 24px; border-bottom: 1px solid var(--line);
}
.bo-crumbs { display: flex; align-items: center; gap: 9px; }
.bo-crumb-sep { color: #8cc4d6; font-size: 12px; line-height: 1; }
.bo-crumb { font-size: 15px; color: var(--ink); }
.bo-crumb-current { font-size: 15px; color: var(--ink); text-decoration: underline; }
.bo-topbar-spacer { flex: 1; }
.bo-backlink {
  display: inline-flex; align-items: center; gap: 6px; margin-right: 14px;
  font-size: 12.5px; font-weight: 500; color: var(--teal-deep); text-decoration: none;
}
.bo-backlink:hover { text-decoration: underline; }
.bo-backlink .fa-up-right-from-square { font-size: 9.5px; }

/* signed-in reviewer: headshot over their name */
.bo-me {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: none; border: 0; padding: 0; cursor: pointer; flex: none;
}
.bo-me-av {
  width: 34px; height: 34px; border-radius: 50%; overflow: hidden; position: relative;
  background: var(--teal); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Lato', sans-serif; font-weight: 700; font-size: 11.5px; letter-spacing: .03em;
  box-shadow: 0 1px 3px rgba(0,0,0,.24);
}
.bo-me-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bo-me-name {
  font-size: 10px; color: var(--ink-soft); white-space: nowrap; line-height: 1;
}
.bo-me:hover .bo-me-name { color: var(--ink); }

/* ------------------------------- content ------------------------------- */
.bo-content { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 20px 24px 24px; }
.bo-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; flex: none; }
.bo-head h1 { font-size: 25px; }
.bo-chip {
  background: #eceff2; border-radius: 16px; padding: 6px 14px;
  font-size: 12.5px; font-weight: 500; color: #4d565d;
}
.bo-cols { flex: 1; min-height: 0; display: flex; gap: 22px; }

/* ---------------------------- session list ---------------------------- */
.rv-list-card {
  width: 300px; flex: none; display: flex; flex-direction: column; min-height: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 2px 10px rgba(30,45,55,.05);
}
.rv-list-controls { padding: 16px 16px 10px; flex: none; }
.rv-search {
  display: flex; align-items: center; gap: 9px; padding: 9px 12px;
  border: 1px solid var(--line); border-radius: 7px; color: var(--ink-faint);
}
.rv-search:focus-within { border-color: var(--teal); }
.rv-search input { flex: 1; min-width: 0; border: 0; outline: 0; font-size: 13.5px; color: var(--ink); background: none; }
.rv-check { display: flex; align-items: flex-start; gap: 5px; cursor: pointer; font-size: 13.5px; }
.rv-list-controls .rv-check { margin-top: 13px; }
.rv-check input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; flex: none;
  width: 17px; height: 17px; margin: 0; border: 2px solid #9aa2a9; border-radius: 3px;
  cursor: pointer; position: relative; background: #fff;
}
.rv-check input[type="checkbox"]:checked { background: var(--teal); border-color: var(--teal); }
.rv-check input[type="checkbox"]:checked::after {
  content: ""; position: absolute; left: 4px; top: 0px; width: 4px; height: 9px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(43deg);
}
.rv-check input[type="checkbox"]:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.rv-sort { margin-top: 12px; padding-bottom: 12px; text-align: center; }
.rv-sort select {
  border: 0; background: none; font-size: 13.5px; font-weight: 500;
  color: var(--ink); cursor: pointer; padding: 3px 4px;
}
.rv-list {
  flex: 1; min-height: 0; overflow-y: auto; padding: 12px 16px 16px;
  border-top: 1px solid var(--line);
}
.rv-item {
  width: 100%; text-align: left; cursor: pointer; display: block;
  background: #fff; border: 1px solid var(--line); border-left: 4px solid #aab2b8;
  border-radius: 6px; padding: 12px 13px; margin-bottom: 5px;
  box-shadow: 0 1px 3px rgba(30,45,55,.07); position: relative;
}
.rv-item:hover { border-color: #cfd6db; background: #fbfcfd; }
.rv-item.is-sel { background: var(--sel); }
.rv-item.is-new { border-left-color: var(--green-dark); }
.rv-item.is-done { border-left-color: #aab2b8; }
.rv-item.is-flagged { border-left-color: var(--red); }
.rv-item:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }
.rv-item-top { display: flex; align-items: center; gap: 8px; }
.rv-item-id { font-family: 'Lato', sans-serif; font-weight: 700; font-size: 14px; }
.rv-item-id span { font-weight: 400; }
.rv-item-date { font-size: 13px; margin-top: 3px; }
.rv-item-date strong { font-weight: 700; }
.rv-item-tags { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.rv-tag {
  font-size: 10.5px; font-weight: 500; padding: 3px 9px; border-radius: 11px;
  background: #e4eaee; color: #4d565d; white-space: nowrap;
}
.rv-tag-new { background: var(--green-soft); color: var(--green-dark); font-weight: 700; }
.rv-tag-done { background: #eff1f3; color: #7d868d; }
.rv-tag-viewing { background: var(--teal-dark); color: #fff; font-weight: 700; }
.rv-item-flag {
  position: absolute; right: 11px; bottom: 10px; font-size: 12px; color: var(--red);
}
.rv-empty-list { padding: 22px 4px; font-size: 13px; color: var(--ink-faint); font-style: italic; text-align: center; }

/* ------------------------ transcript + review card ------------------------ */
.rv-card {
  flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  box-shadow: 0 2px 10px rgba(30,45,55,.05);
}
.rv-card-head {
  height: 56px; flex: none; background: var(--teal-dark); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Lato', sans-serif; font-weight: 700; font-size: 16px;
}
.rv-card-body { flex: 1; min-height: 0; display: flex; }

/* transcript */
.rv-transcript { flex: 1; min-width: 0; overflow-y: auto; padding: 22px 24px 28px; }
.rv-zero { max-width: 250px; margin: 40px auto 0; text-align: center; }
.rv-zero-img { width: 100%; max-width: 250px; height: auto; display: block; margin: 0 auto 18px; }
.rv-zero-title { font-family: 'Lato', sans-serif; font-weight: 700; font-style: italic; font-size: 16px; margin: 0 0 4px; }
.rv-zero-text { margin: 0; font-style: italic; font-size: 14px; color: #4d565d; line-height: 1.5; }

.rv-turn { display: flex; flex-direction: column; }
.rv-turn + .rv-turn { margin-top: 20px; }
/* a user turn after a bot turn starts a new exchange — give it more air */
.rv-turn-lore + .rv-turn-me { margin-top: 34px; }
.rv-turn-lore { align-items: flex-start; padding-right: 10%; }
.rv-turn-me { align-items: flex-end; padding-left: 10%; }
.rv-turn-foot { display: flex; align-items: center; gap: 5px; margin-top: 7px; }
/* nudge past the mark's own inset so its edge meets the text edge above it */
.rv-turn-lore .rv-turn-foot { margin-left: -3px; }
.rv-av { width: 26px; height: 26px; flex: none; border-radius: 50%; overflow: hidden; }
.rv-av-me svg { width: 17px; height: 17px; }
/* member number, borrowing the topbar reviewer-name treatment */
.rv-member { font-size: 10px; color: #7d868d; line-height: 1; white-space: nowrap; }
.rv-av-me { background: #dfe4e8; display: flex; align-items: center; justify-content: center; }
.rv-av-bot { background: #fff; display: flex; align-items: center; justify-content: center; }
.rv-bubble {
  max-width: 92%; padding: 11px 14px;
  font-size: 13.5px; line-height: 1.55;
}
/* the near-square corner points back at whoever is speaking */
.rv-turn-lore .rv-bubble {
  background: var(--bot-bubble); border-radius: 12px 12px 12px 3px;
}
.rv-turn-me .rv-bubble {
  background: #fff; border: 1px solid var(--teal); border-radius: 12px 12px 3px 12px;
}

/* trace affordance */
.rv-trace-btn {
  margin: 0; background: none; border: 0; cursor: pointer; padding: 2px 0;
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 500;
}
.rv-trace-btn:hover { color: var(--teal-deep); }
.rv-trace-btn::before {
  content: "\f0da"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  display: inline-block; margin-right: 3px; font-size: 15px; line-height: 0;
  position: relative; top: 1px;
}
.rv-trace-btn.is-open::before { content: "\f0d7"; }
.rv-trace {
  width: 100%; margin: 9px 0 2px; padding: 13px 15px; border-radius: 8px;
  background: #f7f9fa; border: 1px solid var(--line);
  font-size: 12px; line-height: 1.55;
}
.rv-trace h4 {
  font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal-deep); margin: 0 0 5px;
}
.rv-trace-sec + .rv-trace-sec { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.rv-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.rv-chip {
  background: #e7eef1; color: #3d5a63; border-radius: 10px;
  padding: 2px 9px; font-size: 10.5px; font-weight: 500;
}
.rv-chip-flag { background: #fae3e3; color: #9c3434; }
.rv-chip-tone { background: #e3f0e0; color: #3d6b34; text-transform: capitalize; }
.rv-tone-word { font-size: 10.5px; font-style: italic; color: var(--ink-faint); align-self: center; }
.rv-trace-gov p { font-size: 11px; color: var(--ink-soft); }
.rv-trace-sum { margin: 7px 0 0; font-style: italic; color: #4d565d; }
.rv-trace p { margin: 0; }
.rv-trace-move { font-weight: 500; }
.rv-trace-why { color: var(--ink-soft); margin-top: 3px !important; }
.rv-supp { list-style: none; margin: 0; padding: 0; }
.rv-supp li { margin-bottom: 5px; padding-left: 14px; position: relative; }
.rv-supp li::before {
  content: "\f00d"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  position: absolute; left: 0; top: 2px; color: var(--red); font-size: 9.5px;
}
.rv-supp em { color: var(--ink-soft); font-style: normal; }
.rv-supp-none { color: var(--ink-faint); font-style: italic; }
.rv-supp-none.is-flag { color: var(--red); font-style: normal; }
.rv-trace-think { white-space: pre-wrap; color: #4d565d; font-style: italic; }
.rv-conf-low { color: #b06a00; font-weight: 500; }
.rv-flagword { color: var(--red); font-weight: 500; }

/* ------------------------------ review panel ------------------------------ */
.rv-review {
  width: 356px; flex: none; border-left: 1px solid var(--line);
  display: flex; flex-direction: column; min-height: 0;
}
.rv-review-scroll {
  flex: 1; min-height: 0; overflow-y: auto; padding: 18px 18px 14px; background: #f3f5f6;
}
.rv-review-title {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal-deep); margin-bottom: 16px;
}
.rv-group {
  background: #fff; border: 1px solid var(--line); border-radius: 9px;
  padding: 14px 15px 11px; margin-bottom: 10px;
}
.rv-group-title {
  display: flex; align-items: center; gap: 6px; margin: 0 0 9px;
  font-family: 'Lato', sans-serif; font-weight: 700; font-size: 14.5px;
}
.rv-person { width: 19px; flex: none; font-size: 15px; color: #4d565d; text-align: center; }
.rv-mark { width: 19px; height: 19px; flex: none; position: relative; }
.rv-mark svg { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); display: block; }
.rv-radio { display: flex; align-items: center; gap: 6px; padding: 6px 0; cursor: pointer; font-size: 13.5px; }
.rv-radio input[type="radio"] {
  appearance: none; -webkit-appearance: none; flex: none;
  width: 19px; height: 19px; margin: 0; border: 2px solid #9aa2a9; border-radius: 50%;
  cursor: pointer; position: relative; background: #fff;
}
.rv-radio input[type="radio"]:checked { border-color: var(--teal); }
.rv-radio input[type="radio"]:checked::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--teal);
}
.rv-radio input[type="radio"]:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.rv-group-future { opacity: .45; }
.rv-group-future .rv-radio, .rv-group-future .rv-radio input { cursor: not-allowed; }
.rv-future-tag {
  margin-left: auto; font-family: 'Roboto', sans-serif; font-weight: 500;
  font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase;
  background: #e4eaee; color: #6b7077; border-radius: 9px; padding: 2px 8px;
}

/* prior reviews from other clinicians */
.rv-prior { margin-bottom: 18px; }
.rv-prior-head {
  font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 500; margin: 0 0 9px;
}
.rv-prior-card {
  border: 1px solid var(--line); border-radius: 9px; padding: 12px 13px;
  margin-bottom: 10px; background: #fff;
}
.rv-prior-card.is-flagged { border-left: 3px solid var(--red); }
.rv-prior-top { display: flex; align-items: center; gap: 9px; }
.rv-prior-av {
  width: 28px; height: 28px; flex: none; border-radius: 50%; overflow: hidden; position: relative;
  background: var(--teal); color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: 'Lato', sans-serif; font-weight: 700; font-size: 10.5px;
  box-shadow: 0 1px 3px rgba(0,0,0,.24);
}
.rv-prior-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rv-prior-top > span:last-child { display: block; min-width: 0; }
.rv-prior-name { display: block; font-family: 'Lato', sans-serif; font-weight: 700; font-size: 13px; }
.rv-prior-meta { display: block; font-size: 10.5px; color: var(--ink-faint); margin-top: 1px; }
.rv-prior-rates { display: flex; flex-wrap: wrap; gap: 5px; margin: 10px 0 8px; }
.rv-rate { font-size: 10px; border-radius: 10px; padding: 3px 8px; font-weight: 500; }
.rv-rate em { font-style: normal; opacity: .72; }
.rv-rate-good { background: #e3f3e0; color: #3d6b34; }
.rv-rate-neutral { background: #eceff2; color: #555e65; }
.rv-rate-poor { background: #fae3e3; color: #9c3434; }
.rv-prior-notes { font-size: 12px; line-height: 1.55; color: #4d565d; margin: 0; }
.rv-prior-tags { margin-top: 8px; display: flex; gap: 5px; flex-wrap: wrap; }
.rv-outlier-tag {
  font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700;
  background: #fae3e3; color: #9c3434; border-radius: 9px; padding: 3px 9px;
}
.rv-prior-flagline {
  margin-top: 9px; font-size: 10.5px; color: var(--red);
  display: flex; align-items: center; gap: 5px;
}
.rv-disc { margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--line); }
.rv-disc-item { font-size: 11.5px; line-height: 1.5; color: #4d565d; margin-bottom: 7px; }
.rv-disc-item strong { font-family: 'Lato', sans-serif; }
.rv-disc-btn {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-size: 11px; font-weight: 500; color: var(--teal-deep); text-decoration: underline;
}
.rv-disc-form { display: flex; gap: 6px; margin-top: 7px; }
.rv-disc-form input {
  flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 6px;
  padding: 6px 9px; font-size: 11.5px;
}
.rv-disc-form input:focus { outline: 0; border-color: var(--teal); }
.rv-disc-form button {
  border: 0; border-radius: 6px; padding: 6px 12px; cursor: pointer;
  background: var(--teal); color: #fff; font-size: 11.5px; font-weight: 700;
}

/* fixed footer of the review panel */
.rv-review-foot { flex: none; border-top: 1px solid var(--line); padding: 16px 22px 20px; }
.rv-notes-label { display: block; font-family: 'Lato', sans-serif; font-weight: 700; font-size: 14.5px; margin-bottom: 8px; }
.rv-notes-label em { font-family: 'Roboto', sans-serif; font-weight: 400; font-size: 11px; font-style: italic; color: var(--ink-faint); margin-left: 4px; }
.rv-review-foot textarea {
  width: 100%; border: 1px solid #c8d0d6; border-radius: 7px; padding: 10px 12px;
  font-size: 13px; line-height: 1.5; resize: vertical; margin-bottom: 14px; color: var(--ink);
}
.rv-review-foot textarea:focus { outline: 0; border-color: var(--teal); }
.rv-check-lg { margin-bottom: 13px; }
.rv-check-body { display: block; }
.rv-check-title { display: block; font-size: 14px; }
.rv-check-help { display: block; font-size: 10.5px; font-style: italic; color: var(--ink-soft); line-height: 1.45; margin-top: 2px; }
.rv-submit {
  width: 100%; padding: 13px; border: 0; border-radius: 7px; cursor: pointer;
  background: var(--teal-dark); color: #fff;
  font-family: 'Lato', sans-serif; font-weight: 700; font-size: 15px;
}
.rv-submit:hover:not(:disabled) { background: var(--teal-deep); }
.rv-submit:disabled { background: #e4e8eb; color: #a4abb1; cursor: not-allowed; }

/* -------------------------------- toast -------------------------------- */
.rv-toast {
  position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 13px;
  background: #d9f2e0; border-radius: 8px; padding: 15px 26px 15px 20px;
  font-size: 13.5px; line-height: 1.45; color: #24422c; z-index: 500;
  box-shadow: 0 6px 22px rgba(30,60,40,.16);
}
.rv-toast strong { font-family: 'Lato', sans-serif; }
.rv-toast-tick { font-size: 21px; flex: none; color: #3e9b58; }

/* --------------------------- narrow-screen fallback --------------------------- */
@media (max-width: 1180px) {
  .rv-review { width: 312px; }
  .rv-list-card { width: 258px; }
}
@media (max-width: 980px) {
  .bo-nav { display: none; }
  .bo-cols { flex-direction: column; overflow-y: auto; }
  .rv-list-card { width: auto; max-height: 260px; }
  .rv-card-body { flex-direction: column; }
  .rv-review { width: auto; border-left: 0; border-top: 1px solid var(--line); }
  .rv-transcript { max-height: 460px; }
}
