/* Appointment Quality, agent-facing. Same dark shell as Call Quality. No page-level min-width. The focal area (team
   grade, what the team does best, top 5 training opportunities) is first and biggest, on a phone too. */
.aq { display: grid; gap: 14px; min-width: 0; max-width: 100%; }
.aq h2 { font-size: 18px; }
.aq .lead { color: var(--muted); margin: 4px 0 0; font-size: 13px; }
.aq-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 10px; min-width: 0; }
.aq-chips { display: inline-flex; gap: 4px; background: #101218; border: 1px solid #2a2f3c; border-radius: 12px; padding: 3px; }
.aq-chips button { background: none; border: 0; color: var(--muted); padding: 6px 14px; border-radius: 9px; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 650; }
.aq-chips button[aria-pressed="true"] { background: #1f2533; color: var(--text); }
/* focal area */
.aq-focal { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr) minmax(0, 1.3fr); gap: 12px; min-width: 0; }
.aq-focus { background: linear-gradient(180deg, #131826, #0e1016); border: 1px solid #2c3446; border-radius: 20px;
  padding: 16px; min-width: 0; display: grid; gap: 8px; align-content: start; }
.aq-focus-grade { border-color: #1d4b66; background: linear-gradient(180deg, #0c1f2c, #0e1016); }
.aq-focus-best { border-color: #155240; background: linear-gradient(180deg, #0b1f19, #0e1016); }
.aq-focus-train { border-color: #5c4212; background: linear-gradient(180deg, #1f1709, #0e1016); }
.aq-focus-k { margin: 0; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 750; }
.aq-big { font-size: 64px; font-weight: 850; letter-spacing: -0.04em; line-height: 1; color: var(--teal); }
.aq-change { font-size: 13.5px; font-weight: 650; }
.aq-change.up { color: var(--green); }
.aq-change.down { color: var(--rose); }
.aq-change.flat { color: var(--muted); }
.aq-cover { color: var(--text); font-size: 13px; }
.aq-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.aq-side { display: grid; gap: 1px; background: #101218; border: 1px solid #2a2f3c; border-radius: 12px; padding: 8px 10px; min-width: 0; }
.aq-side span, .aq-side small { color: var(--muted); font-size: 12px; }
.aq-side b { font-size: 22px; font-weight: 800; }
.aq-focus-note, .aq-focus-sub { margin: 0; color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.aq-small { margin: 0; color: var(--amber); font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.aq-best { display: grid; gap: 4px; padding: 6px 0; border-bottom: 1px solid #22303a; min-width: 0; }
.aq-best:last-of-type { border-bottom: 0; }
.aq-best-h { display: flex; justify-content: space-between; gap: 8px; font-size: 15px; min-width: 0; }
.aq-best-h b { min-width: 0; overflow-wrap: anywhere; }
.aq-best-h .num { font-weight: 800; }
.aq-focus-best .aq-best-h .num { color: var(--green); }
.aq-focus-train .aq-best-h .num { color: var(--amber); }
.aq-best small, .aq-train small { color: var(--muted); font-size: 12px; display: block; overflow-wrap: anywhere; }
.aq-examples { margin: 2px 0 0; padding-left: 16px; font-size: 12.5px; color: var(--text); }
.aq-examples li { margin: 2px 0; overflow-wrap: anywhere; }
.aq-train { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 10px; }
.aq-train li { display: grid; gap: 3px; min-width: 0; }
.aq-train li::marker { color: var(--amber); font-weight: 800; }
.aq-practice { margin: 2px 0 0; font-size: 13px; color: var(--text); overflow-wrap: anywhere; }
/* Call Quality "What happened next" (graded calls followed into Billions) */
.cq-out { border-color: #3a2f66; background: linear-gradient(180deg, #151126, #0e1016); }
.cq-out h4 { margin: 0; font-size: 14px; }
.cq-out-funnel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; min-width: 0; }
.cq-out-step, .cq-out-band { display: grid; gap: 2px; align-content: start; min-width: 0; background: #101218;
  border: 1px solid #2a2f3c; border-radius: 12px; padding: 8px 10px; }
.cq-out-step .k, .cq-out-step small, .cq-out-band small { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.cq-out-step b { font-size: 22px; font-weight: 800; overflow-wrap: anywhere; }
.cq-out-block { display: grid; gap: 8px; min-width: 0; margin-top: 4px; }
.cq-out-bands { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; min-width: 0; }
.cq-out-band span { font-size: 13px; overflow-wrap: anywhere; }
.cq-out-habit { display: grid; gap: 2px; padding: 8px 0 0; border-top: 1px solid #29243a; min-width: 0; }
.cq-out-habit p { margin: 0; font-size: 13px; overflow-wrap: anywhere; }
/* "What happened next" by ISA and by lead source (leadership view only): the table scrolls inside its card if needed */
.cq-out-splits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; min-width: 0; margin-top: 4px; }
.cq-out-split { align-content: start; padding-top: 8px; border-top: 1px solid #29243a; }
.cq-out-split .tscroll { min-width: 0; max-width: 100%; }
.cq-out-split table { width: 100%; min-width: 0; font-size: 13px; }
.cq-out-split th { white-space: normal; padding: 7px 8px; vertical-align: bottom; }
.cq-out-split td { white-space: nowrap; padding: 7px 8px; }
.cq-out-split td:first-child { white-space: normal; overflow-wrap: break-word; }
/* Atlas current-quarter pace card */
.pace-card { border-color: #155240; background: linear-gradient(180deg, #0b1f19, #0e1016); }
.pace-card h4 { margin: 0; font-size: 14px; }
.pace-top { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; min-width: 0; }
.pace-action, .pace-risk { display: grid; gap: 5px; min-width: 0; padding-top: 10px; border-top: 1px solid #244238; }
.pace-action > p, .pace-risk > p { margin: 0; font-size: 13px; overflow-wrap: anywhere; }
.pace-risk-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center;
  padding: 6px 0; border-top: 1px solid #22352f; min-width: 0; font-size: 13px; }
.pace-risk-row > * { min-width: 0; overflow-wrap: anywhere; }
.pace-risk-row .num { color: var(--amber); font-weight: 700; text-align: right; }
.aq-track { height: 8px; background: #1c2030; border-radius: 99px; overflow: hidden; min-width: 0; }
.aq-track i { display: block; height: 100%; background: var(--amber); border-radius: 99px; }
.aq-track.good i { background: var(--green); }
.aq-track.weak i { background: var(--amber); }
.aq-track.low i { background: var(--rose); }
/* below the focal area */
.aq-panel { background: #0e1016; border: 1px solid #222633; border-radius: 18px; padding: 14px; min-width: 0; }
.aq-panel h2 { font-size: 16px; margin-bottom: 4px; }
.aq-panel .psub { color: var(--muted); font-size: 12.5px; margin: 0 0 10px; }
.aq-foot { color: var(--dim); font-size: 12px; margin: 8px 0 0; overflow-wrap: anywhere; }
.aq-reason { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr) 88px 96px; gap: 10px; align-items: center;
  width: 100%; background: none; border: 0; border-bottom: 1px solid #1d212c; color: inherit; font: inherit; text-align: left;
  padding: 7px 2px; cursor: pointer; min-width: 0; }
.aq-reason:hover, .aq-reason:focus-visible { background: #131722; outline: none; }
.aq-reason .name { overflow-wrap: anywhere; font-size: 13.5px; }
.aq-reason .pct { font-weight: 700; color: var(--amber); text-align: right; }
.aq-reason small { color: var(--teal); font-size: 12px; }
.aq-group { margin: 12px 0 6px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.aq-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; min-width: 0; }
.aq-tile { text-align: left; background: #101218; border: 1px solid #2a2f3c; border-radius: 16px;
  padding: 12px; min-width: 0; color: inherit; cursor: pointer; font: inherit; }
.aq-tile.static { cursor: default; }
.aq-tile .k { color: var(--muted); font-size: 12.5px; font-weight: 650; }
.aq-tile .v { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; margin-top: 4px; }
.aq-tile .sub { color: var(--muted); font-size: 12px; margin-top: 4px; overflow-wrap: anywhere; }
.aq-tile .prev { color: var(--dim); font-size: 11.5px; margin-top: 4px; }
.aq-tile.tone-violet { border-color: #2f2556; background: linear-gradient(180deg, #120f22, #101218); }
.aq-tile.tone-violet .v { color: var(--violet); }
.aq-tile.tone-teal { border-color: #124142; background: linear-gradient(180deg, #0a1c1d, #101218); }
.aq-tile.tone-teal .v { color: var(--teal); }
.aq-tile.tone-green { border-color: #13402f; background: linear-gradient(180deg, #0b1d17, #101218); }
.aq-tile.tone-green .v { color: var(--green); }
.aq-tile.tone-gold { border-color: #4b3c12; background: linear-gradient(180deg, #1c170a, #101218); }
.aq-tile.tone-gold .v { color: var(--gold); }
.aq-tile.tone-amber { border-color: #4a3410; background: linear-gradient(180deg, #1c150a, #101218); }
.aq-tile.tone-amber .v { color: var(--amber); }
.aq-tile.tone-blue { border-color: #183457; background: linear-gradient(180deg, #0b1626, #101218); }
.aq-tile.tone-blue .v { color: var(--blue); }
.aq-tile.tone-rose { border-color: #4d1620; background: linear-gradient(180deg, #1d0b10, #101218); }
.aq-tile.tone-rose .v { color: var(--rose); }
.aq-stack { display: flex; height: 14px; border-radius: 99px; overflow: hidden; background: #1c2030; }
.aq-stack .seg { display: block; height: 100%; }
.aq-stack .green, .aq-leg.green b { background: var(--green); }
.aq-stack .teal, .aq-leg.teal b { background: var(--teal); }
.aq-stack .muted, .aq-leg.muted b { background: #3a4152; }
.aq-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px; }
.aq-leg { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; color: var(--text); font: inherit;
  font-size: 13px; padding: 0; }
button.aq-leg { cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
.aq-leg b { color: #0b0d12; border-radius: 6px; padding: 1px 7px; font-size: 13px; }
.aq-btable, .aq-ltable { display: grid; min-width: 0; border: 1px solid #2a2f3c; border-radius: 14px; overflow: hidden; }
.aq-brow { display: grid; grid-template-columns: minmax(0, 1.8fr) repeat(9, minmax(0, .8fr)); gap: 8px; align-items: center;
  padding: 8px 12px; background: #101218; border: 0; border-bottom: 1px solid #252a36; color: inherit; font: inherit;
  font-size: 13px; text-align: left; width: 100%; min-width: 0; }
button.aq-brow { cursor: pointer; }
button.aq-brow:hover, button.aq-brow:focus-visible, button.aq-lrow:hover, button.aq-lrow:focus-visible {
  background: #151822; outline: 1px solid #4b5568; outline-offset: -1px; }
.aq-brow.side { background: #131826; }
.aq-brow.sep { display: block; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; background: #0b0d12; }
.aq-brow.head, .aq-lrow.head { color: var(--muted); background: #0b0d12; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; }
.aq-brow > *, .aq-lrow > * { min-width: 0; overflow-wrap: anywhere; }
.aq-lrow { display: grid; grid-template-columns: 5.5rem minmax(0, 1.3fr) minmax(0, .9fr) minmax(0, .9fr) repeat(3, minmax(0, .7fr))
  minmax(0, 1.4fr) minmax(0, 1.4fr); gap: 8px; align-items: center; padding: 9px 12px; background: #101218; border: 0;
  border-bottom: 1px solid #252a36; color: inherit; font: inherit; font-size: 13px; text-align: left; width: 100%; cursor: pointer; }
.aq-lrow.head { cursor: default; }
.aq-lrow .rank { color: var(--muted); font-size: 12px; }
.aq-lrow.ranked .rank { color: var(--gold); font-weight: 800; font-size: 15px; }
.aq-lrow .txt { color: var(--muted); }
.aq-coachgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; min-width: 0; }
.aq-coachcard { display: grid; gap: 6px; align-content: start; background: #101218; border: 1px solid #2a2f3c; border-radius: 16px;
  padding: 12px; min-width: 0; }
.aq-coach-h { display: flex; justify-content: space-between; gap: 8px; font-size: 15px; }
.aq-coach-h .num { color: var(--teal); font-weight: 800; font-size: 20px; }
.aq-coachcard > small { color: var(--muted); font-size: 12px; }
.aq-coach-part .k { display: block; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.aq-coach-part.good .k { color: var(--green); }
.aq-coach-part.low .k { color: var(--amber); }
.aq-coach-part.do .k { color: var(--teal); }
.aq-coach-part p { margin: 2px 0 0; font-size: 13px; overflow-wrap: anywhere; }
.aq-open { justify-self: start; margin-top: 4px; background: #161b27; border: 1px solid #2f3646; color: var(--text); border-radius: 10px;
  padding: 6px 10px; font: inherit; font-size: 12.5px; cursor: pointer; }
.aq-lead { background: #0b0d12; border: 1px dashed #2a2f3c; border-radius: 16px; padding: 10px 14px; min-width: 0; }
.aq-lead > summary { cursor: pointer; color: var(--muted); font-size: 13px; font-weight: 700; }
.aq-lead[open] > summary { margin-bottom: 10px; }
/* pop-ups */
.aq-modal { width: min(900px, 100%); }
.aq-agent-top { display: grid; gap: 10px; padding: 12px 20px 4px; min-width: 0; }
.aq-mets { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; text-align: center; }
.aq-mets b { display: block; font-size: 16px; }
.aq-mets span { color: var(--muted); font-size: 11px; }
.aq-drill { min-width: 0; }
.aq-list { display: grid; gap: 0; min-width: 0; }
.aq-row-wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, .08); padding: 0 20px 0 0; min-width: 0; }
.aq-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.6fr) 4.6rem; gap: 10px; align-items: center;
  background: none; border: 0; color: inherit; font: inherit; text-align: left; padding: 9px 20px; min-width: 0; font-size: 13.5px; }
button.aq-row { cursor: pointer; }
button.aq-row:hover, button.aq-row:focus-visible { background: #151822; outline: none; }
.aq-row .who { display: grid; gap: 2px; min-width: 0; }
.aq-row .who b { overflow-wrap: anywhere; }
.aq-row .who small, .aq-row .what { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.aq-row .score { font-weight: 800; color: var(--teal); font-size: 18px; text-align: right; }
.aq-row .score small { display: block; color: var(--dim); font-size: 10.5px; font-weight: 600; }
.aq-row-wrap .pop-link { white-space: nowrap; font-size: 12.5px; }
.aq-grade-top { display: flex; align-items: baseline; gap: 10px; padding: 14px 20px 4px; }
.aq-grade-top b { font-size: 40px; font-weight: 850; color: var(--teal); }
.aq-grade-top span { color: var(--muted); }
.aq-bar { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr) 64px; gap: 8px; align-items: center;
  margin: 6px 0; min-width: 0; }
.aq-bar .name { overflow-wrap: anywhere; font-size: 13px; }
.aq-bar .pct { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--amber); text-align: right; }
/* Atlas next to Viktor. Same cards and colors as the rest of the tab. Stacked rows on a phone. */
.aq-atlas { display: grid; gap: 12px; }
.aq-atlas > h2, .aq-atlas > .psub { margin-bottom: 0; }
.aq-atlas-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; min-width: 0; }
.aq-tile.static { cursor: default; }
.aq-vtable { display: grid; min-width: 0; border: 1px solid #2a2f3c; border-radius: 14px; overflow: hidden; }
.aq-vrow { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr) minmax(0, .8fr) 3.6rem
  minmax(0, .7fr) minmax(0, 1.4fr); gap: 10px; align-items: center; width: 100%; min-width: 0; padding: 10px 14px;
  text-align: left; color: inherit; background: #101218; border: 0; border-bottom: 1px solid #252a36; font: inherit;
  font-size: 13px; }
button.aq-vrow { cursor: pointer; }
button.aq-vrow:hover, button.aq-vrow:focus-visible { background: #151822; outline: 1px solid #4b5568; outline-offset: -1px; }
.aq-vrow:last-child { border-bottom: 0; }
.aq-vrow > span { min-width: 0; overflow-wrap: anywhere; }
.aq-vrow.head { color: var(--muted); background: #0b0d12; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; }
.aq-vrow .who { display: grid; gap: 2px; }
.aq-vrow .who small { color: var(--muted); font-size: 12px; }
.aq-vrow .gap { font-weight: 700; }
.aq-vrow .big { color: var(--muted); }
.aq-lbl { display: none; }
.aq-old { justify-self: start; color: var(--amber); background: #261c0a; border: 1px solid #5c4212; border-radius: 99px;
  padding: 1px 7px; font-size: 10.5px; font-style: normal; font-weight: 700; letter-spacing: .03em; margin-top: 2px; }
.aq-atlas-split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; min-width: 0; }
.aq-sub { background: #101218; border: 1px solid #2a2f3c; border-radius: 14px; padding: 12px; min-width: 0; }
.aq-sub h3 { margin: 0 0 4px; font-size: 14px; }
.aq-sub .psub { margin-bottom: 6px; }
.aq-agent { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, .7fr)) minmax(0, 1.3fr); gap: 8px;
  align-items: center; padding: 8px 0; border-bottom: 1px solid #252a36; font-size: 12.5px; }
.aq-agent:last-child { border-bottom: 0; }
.aq-agent > * { min-width: 0; overflow-wrap: anywhere; }
.aq-agent .trend-up { color: var(--green); }
.aq-agent .trend-down { color: var(--rose); }
.aq-agent .trend-none { color: var(--muted); }
.aq-theme { display: grid; gap: 3px; padding: 8px 0; border-bottom: 1px solid #252a36; min-width: 0; }
.aq-theme:last-child { border-bottom: 0; }
.aq-theme span { color: var(--amber); font-size: 12px; }
.aq-theme p { color: var(--text); font-size: 13px; margin: 0; overflow-wrap: anywhere; }
.aq-outcomes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; min-width: 0; }
.aq-outcome { display: grid; gap: 3px; border: 1px solid #2a2f3c; border-radius: 12px; padding: 10px; min-width: 0;
  background: #0e1016; }
.aq-outcome span { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.aq-atlas-modal { width: min(820px, 100%); }
.aq-vs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px 20px 6px; }
.aq-vs .box { background: #101218; border: 1px solid #2a2f3c; border-radius: 14px; padding: 12px; min-width: 0; }
.aq-vs .box b { display: block; font-size: 28px; font-weight: 800; }
.aq-vs .atlas b { color: var(--teal); }
.aq-vs .viktor b { color: var(--gold); }
.aq-vs .k { color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.aq-modal-sec { padding: 6px 20px 14px; min-width: 0; }
.aq-modal-sec h3 { margin: 6px 0; font-size: 14px; }
.aq-section-list { display: grid; border: 1px solid #2a2f3c; border-radius: 12px; overflow: hidden; }
.aq-section-row { display: grid; grid-template-columns: minmax(0, 1fr) 5.2rem 4.2rem; gap: 8px; padding: 7px 12px;
  border-bottom: 1px solid #252a36; font-size: 13px; }
.aq-section-row:last-child { border-bottom: 0; }
.aq-section-row.head { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.aq-section-row.has-gap { background: #151822; }
.aq-section-row .num { text-align: right; }
.aq-section-row .name { overflow-wrap: anywhere; }
.aq-coach { margin: 0 0 6px; padding-left: 18px; font-size: 13px; }
.aq-coach li { margin: 4px 0; overflow-wrap: anywhere; }
.aq-detail-note { margin: 6px 20px; color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.aq-modal-sec .aq-detail-note { margin: 6px 0; }
@media (max-width: 1100px) {
  .aq-focal { grid-template-columns: 1fr 1fr; }
  .aq-focus-train { grid-column: 1 / -1; }
  .aq-brow, .aq-lrow { grid-template-columns: 1fr 1fr 1fr; gap: 4px 10px; border: 1px solid #2a2f3c; border-radius: 12px;
    margin: 0 0 8px; }
  .aq-btable, .aq-ltable { border: 0; border-radius: 0; overflow: visible; }
  .aq-brow.head, .aq-lrow.head { display: none; }
  .aq-brow .lbl, .aq-lrow .lbl, .aq-brow.sep { grid-column: 1 / -1; }
  .aq-lrow .rank { grid-column: 1 / -1; }
  .aq-lrow .txt { grid-column: span 3; }
  .aq-brow .aq-lbl, .aq-lrow .aq-lbl { display: block; color: var(--muted); font-size: 11px; font-weight: 600; }
}
@media (max-width: 720px) {
  .pace-top { grid-template-columns: 1fr 1fr; }
  .pace-risk-row { grid-template-columns: minmax(0, 1fr) auto; }
  .pace-risk-row .num { grid-column: 1 / -1; text-align: left; }
  .cq-out-funnel { grid-template-columns: 1fr 1fr; }
  .cq-out-bands { grid-template-columns: 1fr; }
  .cq-out-splits { grid-template-columns: 1fr; }
  .cq-out-split table { font-size: 12.5px; }
  .cq-out-split th { font-size: 10px; letter-spacing: .02em; }
  .cq-out-split th, .cq-out-split td { padding: 6px 4px; }
  .aq-lbl { display: block; color: var(--muted); font-size: 11px; font-weight: 600; }
  .aq-focal { grid-template-columns: 1fr; }
  .aq-big { font-size: 56px; }
  .aq-tiles { grid-template-columns: 1fr 1fr; }
  .aq-tile .v { font-size: 24px; }
  .aq-reason { grid-template-columns: minmax(0, 1fr) auto; }
  .aq-reason .aq-track, .aq-reason small { grid-column: 1 / -1; }
  .aq-brow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .aq-lrow { grid-template-columns: 1fr 1fr; }
  .aq-lrow .txt { grid-column: 1 / -1; }
  .aq-mets { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .aq-agent-top { padding: 10px 12px 4px; }
  .aq-row-wrap { grid-template-columns: minmax(0, 1fr); padding: 0 0 8px; }
  .aq-row-wrap .pop-link { padding: 0 12px; }
  .aq-row { grid-template-columns: minmax(0, 1fr) 3.8rem; padding: 8px 12px; }
  .aq-row .what { grid-column: 1 / -1; grid-row: 2; }
  .aq-grade-top { padding: 12px 12px 4px; }
  .aq-bar { grid-template-columns: minmax(0, 1fr) auto; }
  .aq-bar .aq-track { grid-column: 1 / -1; grid-row: 2; }
  .aq-atlas-tiles { grid-template-columns: 1fr 1fr; }
  .aq-atlas-split { grid-template-columns: 1fr; }
  .aq-vtable { border: 0; border-radius: 0; overflow: visible; gap: 8px; }
  .aq-vrow.head { display: none; }
  .aq-vrow { grid-template-columns: 1fr 1fr; gap: 6px 10px; border: 1px solid #2a2f3c; border-radius: 12px; padding: 10px 12px; }
  .aq-vrow:last-child { border-bottom: 1px solid #2a2f3c; }
  .aq-vrow .who, .aq-vrow .big { grid-column: 1 / -1; }
  .aq-agent { grid-template-columns: 1fr 1fr 1fr; }
  .aq-agent b, .aq-agent .trend-up, .aq-agent .trend-down, .aq-agent .trend-none { grid-column: 1 / -1; }
  .aq-vs { padding: 12px 12px 4px; }
  .aq-modal-sec { padding: 6px 12px 12px; }
  .aq-detail-note { margin: 6px 12px; }
  .aq-section-row { grid-template-columns: minmax(0, 1fr) 4.6rem 3.4rem; padding: 7px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .aq-vrow, .aq-tile, .aq-card, .aq-lrow, .aq-brow, .aq-reason { transition: none; scroll-behavior: auto; }
}
.aq-more { margin-top: 10px; }
.aq-more > summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.aq-morelist { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.aq-chip { background: #101218; border: 1px solid #2a2f3c; border-radius: 10px; color: var(--text); font: inherit;
  font-size: 12px; padding: 5px 9px; cursor: pointer; text-align: left; max-width: 100%; overflow-wrap: anywhere; }

/* ISA report cards (leadership view): one column on a phone, two or three on a wide screen */
.cq-rc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 12px; min-width: 0; }
.cq-rc { display: grid; gap: 8px; align-content: start; min-width: 0; background: #101218; border: 1px solid #2a2f3c; border-radius: 12px; padding: 12px; }
.cq-rc-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; align-items: baseline; }
.cq-rc-top h4 { margin: 0; font-size: 16px; overflow-wrap: anywhere; }
.cq-rc-top small { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }
.cq-rc-avg { display: flex; align-items: baseline; gap: 6px; }
.cq-rc-avg b { font-size: 26px; font-weight: 850; color: var(--teal); }
.cq-rc-avg span { color: var(--muted); font-size: 12px; }
.cq-rc-bars { display: grid; gap: 6px; min-width: 0; }
.cq-rc-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; font-size: 13px; min-width: 0; }
.cq-rc-row .name { overflow-wrap: anywhere; }
.cq-rc-row .vals { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 12px; text-align: right; }
.cq-rc-track { grid-column: 1 / -1; position: relative; height: 6px; background: #1c2030; border-radius: 99px; }
.cq-rc-track i { display: block; height: 100%; background: var(--teal); border-radius: 99px; }
.cq-rc-track u { position: absolute; top: -3px; width: 2px; height: 12px; background: var(--amber); text-decoration: none; }
.cq-rc-note { margin: 0; font-size: 13px; overflow-wrap: anywhere; }
.cq-rc-last { display: grid; gap: 2px; font-size: 13px; border-top: 1px solid #29243a; padding-top: 8px; }
.cq-rc-last span { color: var(--muted); }
