/* One question in a glass box: a short pick made over the page it belongs to
   (Send Leads, the challenge send). Ryan 2026-11-25: "all of these designs
   look like imitations of our site instead of using the assets and design
   treatments that we already have".

   NOTHING BELOW IS A NEW LOOK. Each block is the live rule it names, copied
   as is, so a question in a box reads exactly like the Evaluation and the
   Goal Plan. workers/dashboard-api/src/calldown.test.mjs fails if a copy
   drifts from its source. Load shared/eval-flow.css first: the Back chevron
   (.eval-nav-btn) and the cyan button (.eval-ok-btn) come from there. */

/* The box and what sits behind it. The box is the booking window's glass
   panel (shared/booking-modal.js .ebm-panel); the veil is the design system's
   clear glass (docs/design-system.md, Tier 3), so the page and its blueprint
   stay in view. The box's blue is the Evaluation's (#1a2744), let through. */
.qb-veil { position: fixed; inset: 0; z-index: 1300; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(13, 30, 54, 0.35); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.qb {
  position: relative; display: flex; flex-direction: column;
  width: min(940px, calc(100vw - 56px)); height: min(86vh, 620px);
  background: rgba(26, 39, 68, 0.72); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.10); border-radius: 20px;
  box-shadow: 0 32px 90px rgba(0,0,0,.62); overflow: hidden;
}
/* The Evaluation's own backdrop (.eval-overlay): its blue, frosted, with the
   blueprint over it at the same strength. */
.qb::before { content: ''; position: absolute; inset: 0; background-image: url('../assets/background.webp'); background-size: cover; background-position: center; opacity: 0.15; pointer-events: none; }
.qb > * { position: relative; }
.qb > .sm-x { position: absolute; }
/* One slide. The question starts at the top, as the Goal Plan's slides do
   (.gpo-slide), so the headline sits in the same place on every step, and a
   long list scrolls instead of pushing the box taller. The box is one size
   on every step and for every question (Ryan 2026-11-25: "I don't like the
   modal size changing step to step"), on a phone too. */
.qb-slide { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; justify-content: flex-start; overflow-y: auto; padding: 56px 56px 24px; }
.qb-foot { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 96px; padding: 0 56px 24px; }
.qb-foot .eval-ok-btn { margin: 0 0 0 auto; height: 48px; padding: 0 28px; }
.qb-foot .eval-ok-btn:disabled { background: rgba(42, 171, 226, 0.3); color: rgba(255, 255, 255, 0.3); cursor: not-allowed; }

/* ── team-management.html, the Evaluation ─────────────────────────────── */
.eval-agent-name {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
}
.eval-agent-name strong {
  color: #2AABE2;
  font-weight: 600;
}
.eval-question {
  max-width: 700px;
  width: 100%;
  text-align: left;
}
.eval-question-icon {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.eval-question-number {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.eval-grade-btn-new {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}
.eval-grade-btn-new:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}
.eval-grade-btn-new .grade-label {
  font-size: 17px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}
.eval-grade-btn-new.selected {
  background: rgba(42, 171, 226, 0.15);
  border-color: #2AABE2;
}
.eval-grade-btn-new.selected .grade-label {
  color: #fff;
}
.eval-text-input {
  width: 100%;
  max-width: 600px;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding: 12px 0;
  font-size: 24px;
  color: #fff;
  text-align: left;
  transition: border-color 0.2s ease;
  font-family: inherit;
}
.eval-text-input:focus {
  outline: none;
  border-color: #2AABE2;
}
.eval-text-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

/* ── goal-plan.html, the left or right choice ─────────────────────────── */
.fork{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.fork button{display:flex;align-items:center;gap:14px;padding:20px;border-radius:12px;border:1px solid var(--border-light);background:rgba(255,255,255,.03);color:#fff;font:inherit;text-align:left;cursor:pointer;transition:border-color .2s,background .2s}
.fork button:hover{border-color:rgba(42,171,226,.45)}
.fork button.on{border-color:var(--cyan);background:rgba(42,171,226,.1)}
.fork i{width:40px;height:40px;flex-shrink:0;border-radius:10px;display:flex;align-items:center;justify-content:center;background:rgba(42,171,226,.14);color:var(--cyan)}
.fork i svg{width:20px;height:20px}
.fork b{font-size:16px;font-weight:600;letter-spacing:-.01em}

/* ── How the pieces sit in the box. Layout only: no colour, no type. ───── */
.qb .eval-question { max-width: none; }
.qb .eval-agent-name { margin-bottom: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qb .eval-question-icon { margin-bottom: 28px; }
.qb .fork button:disabled { opacity: .45; cursor: default; }
.qb .fork i { font-style: normal; font-weight: 700; font-size: 16px; }
/* Rows of answers: the Evaluation's answer buttons, two across. */
.qb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-height: calc(min(86vh, 620px) - 284px); overflow-y: auto; }
.qb-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.qb-grid .eval-grade-btn-new { min-width: 0; height: 56px; padding: 0 20px; gap: 14px; color: inherit; font: inherit; }
.qb-grid .grade-label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qb-grid .qb-n { flex: 0 0 auto; font-size: 15px; color: rgba(255, 255, 255, 0.7); font-variant-numeric: tabular-nums; }
.qb .eval-text-input { max-width: none; margin-bottom: 20px; font-size: 17px; }

/* Tablet: two across, so a full name still fits. */
@media (max-width: 1023px) { .qb-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Phone: a sheet from the bottom, one answer a row, as the Goal Plan stacks
   its choices on a phone. */
@media (max-width: 640px) {
  .qb-veil { padding: 0; align-items: flex-end; }
  .qb { width: 100%; height: min(86vh, 640px); height: min(86dvh, 640px); border-radius: 20px 20px 0 0; border-bottom: 0; }
  .qb-slide { padding: 64px 16px 16px; }
  .qb-foot { min-height: calc(76px + env(safe-area-inset-bottom)); padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); }
  .qb .eval-question-icon { margin-bottom: 20px; }
  .qb .eval-agent-name { white-space: normal; }
  .fork { grid-template-columns: 1fr; gap: 8px; }
  .fork button { padding: 10px 14px; }
  .fork i { width: 32px; height: 32px; }
  .qb-grid, .qb-grid.three { grid-template-columns: minmax(0, 1fr); gap: 8px; max-height: none; }
  .qb-grid .eval-grade-btn-new { height: 56px; padding: 0 16px; }
}
