/* Practice tab (audit 10-29, compact pass). The Sales HQ family look: the dark ops UI of css/style.css, tokens only.
   Hairlines and spacing do the structure. Numbers and small labels use the mono token. Green means right or done, nothing else.
   Tints are derived from the tokens once, here, so a token change reaches every screen. */
.practice {
  --p-blue: color-mix(in srgb, var(--blue) 14%, transparent);
  --p-green-line: color-mix(in srgb, var(--green) 55%, transparent);
  --p-yellow-bg: color-mix(in srgb, var(--yellow) 9%, transparent);
  --p-yellow-bub: color-mix(in srgb, var(--yellow) 13%, transparent);
  --p-yellow-line: color-mix(in srgb, var(--yellow) 55%, transparent);
  --p-hl: color-mix(in srgb, var(--yellow) 28%, transparent);
  --pt: 44px;                       /* the smallest control: a thumb needs 44 */
  --f-mono: var(--font-mono, "JetBrains Mono", ui-monospace, Menlo, monospace);
  --f-head: var(--font-display, var(--font-ui, inherit));
  min-width: 0; max-width: 1040px; overflow-wrap: anywhere;
}
@media (pointer: fine) and (min-width: 768px) { .practice { --pt: 36px; } }   /* a mouse can be a little smaller */
.practice [hidden] { display: none !important; }
.practice .sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* focus is still moved to the title and the result so a screen reader starts there, but the ring only draws for keyboard focus */
.practice h2:focus-visible, .practice [tabindex="-1"]:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.practice h2:focus:not(:focus-visible), .practice [tabindex="-1"]:focus:not(:focus-visible) { outline: none; }
.practice textarea:focus-visible, .practice .rk-chat:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.practice h2, .practice h3.prac-name { font-family: var(--f-head); }
.practice .mono, .practice .prac-big, .practice .rk-score { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.practice h3.section-label { margin-top: 14px; }
.practice p { margin-bottom: 8px; }
.practice .prac-guide { margin-bottom: 8px; font-size: 12.5px; }
.practice .prac-warn { margin-top: 6px; color: var(--yellow); font-size: 13px; }
.practice .prac-scr { max-width: 1040px; }

/* controls */
.practice .btn, .practice .btn.small, .practice .rk-segbtn, .practice .rk-ck, .practice .rk-sig, .practice .prac-pick, .practice .prac-line, .practice .rk-sigchip { min-height: var(--pt); min-width: var(--pt); }
.practice .btn { margin-top: 10px; }
.practice .prac-nav { margin-bottom: 8px; }
.practice .prac-nav .btn { margin-top: 0; }
.practice textarea { min-height: 88px; }
.practice details > summary { display: flex; align-items: center; gap: 8px; min-height: var(--pt); cursor: pointer; list-style: none; color: var(--muted); font-size: 13px; font-weight: 600; }
.practice details > summary::-webkit-details-marker { display: none; }
.practice details > summary::before { content: "\25B8"; font-size: 11px; flex: none; }
.practice details[open] > summary::before { transform: rotate(90deg); }
.practice details > summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.practice .btn.secondary:disabled { opacity: .45; }
.practice .btn:disabled { cursor: default; }

/* the segmented control: one pill, the chosen part solid */
.practice .rk-seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; }
.practice .rk-segbtn { background: transparent; border: 0; color: var(--text); font-weight: 700; font-size: 13px; padding: 0 16px; border-radius: 0; }
.practice .rk-segbtn + .rk-segbtn { box-shadow: -1px 0 0 var(--line-strong); }
.practice .rk-segbtn:hover:not(:disabled):not([aria-pressed="true"]) { background: var(--panel-2); }
.practice .rk-segbtn[aria-pressed="true"] { background: var(--accent-strong); color: #fff; }

/* home: one slim tally strip, then the four drills */
.practice .prac-intro h2 { font-size: 18px; margin-bottom: 2px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.practice .prac-intro h2 .tag { font-size: 12px; font-weight: 500; color: var(--muted); }
.practice .prac-sub { font-size: 13px; color: var(--muted); margin: 2px 0 8px; }
.practice .prac-strip { display: flex; flex-wrap: wrap; gap: 2px 18px; padding: 8px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 13px; }
.practice .prac-strip b { font-size: 15px; }
.practice .prac-save { margin: 6px 0 0; font-size: 12px; }
.practice .prac-drills { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 12px; }
@media (min-width: 700px) { .practice .prac-drills { grid-template-columns: 1fr 1fr; gap: 12px; } }
.practice .prac-drill { margin: 0; padding: 12px 14px; display: grid; gap: 6px; align-content: start; }
.practice .prac-drill h2 { margin: 0; font-size: 15px; }
.practice .prac-trains { margin: 0; font-size: 13px; color: var(--muted); }
.practice .prac-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "m b" "t b"; gap: 4px 12px; align-items: center; margin-top: 2px; }
.practice .prac-meter { grid-area: m; height: 4px; background: var(--panel-2); border-radius: 2px; overflow: hidden; }
.practice .prac-meter i { display: block; height: 100%; background: var(--blue); }
.practice .pf-t { grid-area: t; font-size: 11.5px; color: var(--muted); }
.practice .pf-t b { color: var(--text); }
.practice .prac-foot .btn { grid-area: b; margin-top: 0; }
.practice .prac-scores { margin-top: 10px; border-top: 1px solid var(--line); }
.practice .prac-none { margin-top: 12px; font-size: 13px; }
.practice .prac-table td.name { white-space: normal; min-width: 150px; }

/* a made-up lead, the chat in a compact scroll box (messages sit left and right inside a column no wider than 560px) */
.practice .prac-wholine { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin-bottom: 2px; }
.practice .prac-name { font-size: 16px; }
.practice .rv-facts { font-size: 12.5px; margin-bottom: 6px; }
.practice .prac-chat { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 8px; max-width: 560px; }
.practice .rk-chat { max-height: 45vh; overflow-y: auto; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
@media (min-width: 900px) { .practice .rk-chat { max-height: 420px; } }
.practice .prac-msg { display: flex; flex-direction: column; gap: 2px; max-width: 86%; min-width: 0; }
.practice .prac-msg.lead { align-self: flex-start; }
.practice .prac-msg.mine { align-self: flex-end; align-items: flex-end; }
.practice .prac-who { font-size: 11px; color: var(--muted); }
.practice .prac-bubble { display: block; padding: 6px 10px; border-radius: 14px; font-size: 13px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
.practice .prac-msg.lead .prac-bubble { background: var(--panel-2); border: 1px solid var(--line); }
.practice .prac-msg.mine .prac-bubble { background: var(--p-blue); border: 1px solid color-mix(in srgb, var(--blue) 35%, transparent); }
.practice .prac-msg.team .prac-bubble { background: var(--p-yellow-bub); border-color: var(--p-yellow-line); }
.practice .prac-bubble.hl { background: var(--p-hl); outline: 2px solid var(--yellow); outline-offset: 1px; }
/* a chat line she can tag is a real button that looks like the bubble it holds */
.practice .rk-lh { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; min-width: 0; }
.practice .prac-msg.mine .rk-lh { justify-content: flex-end; }
.practice .prac-line { flex: none; }
.practice button.prac-line { background: none; border: 0; padding: 0; margin: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; border-radius: 14px; }
.practice button.prac-line.mine { text-align: right; }
.practice button.prac-line:hover .prac-bubble { border-color: var(--line-strong); }
.practice button.prac-line:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.practice button.prac-line[aria-pressed="true"] .prac-bubble { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.practice .rk-chat.armed .prac-line .prac-bubble { border-style: dashed; border-color: var(--line-strong); }
.practice .rk-chat.armed .prac-line[aria-pressed="true"] .prac-bubble { border-style: solid; border-color: var(--blue); }
/* the small chip a line wears: her tag, a right tag, or the proof she did not tag */
.practice .rk-tag { display: inline-flex; align-items: center; gap: 3px; padding: 1px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 700; line-height: 1.4; color: var(--blue); background: var(--p-blue); border: 1px solid color-mix(in srgb, var(--blue) 40%, transparent); }
.practice .rk-tag.ok { color: var(--green); background: color-mix(in srgb, var(--green) 14%, transparent); border-color: var(--p-green-line); }
.practice .rk-tag.bad, .practice .rk-tag.proof { color: var(--yellow); background: var(--p-yellow-bg); border-color: var(--p-yellow-line); }
.practice .ck-ic { flex: none; }
.practice .prac-quote { margin: 4px 0 8px; padding: 8px 12px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; font-style: normal; font-size: 13.5px; white-space: pre-wrap; }
.practice .prac-count { font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 4px; }

/* drill 1: the decision deck. One lead at a time: the lead and the chat on the left, the three questions and the feedback on the right (stacked on a phone) */
.practice .dk { max-width: 1040px; }
.practice .dk-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; }
.practice .rk-h { font-size: 17px; margin: 0; }
.practice .dk-prog { margin: 6px 0 2px; max-width: 640px; }
.practice .dk-grid { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "lead" "side" "send"; gap: 10px; margin-top: 4px; }
.practice .dk-lead, .practice .dk-side, .practice .dk-send { min-width: 0; }
.practice .dk-lead { grid-area: lead; } .practice .dk-side { grid-area: side; } .practice .dk-send { grid-area: send; }
.practice .dk-who { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
.practice .dk-who h3 { margin: 0; }
.practice .rk-note { font-size: 12.5px; margin: 4px 0; }
@media (min-width: 900px) {
  .practice .dk-grid { grid-template-columns: minmax(0, 560px) minmax(0, 440px); grid-template-areas: "lead side" "send side"; grid-template-rows: auto 1fr; gap: 10px 28px; align-items: start; }
}

/* the optional evidence step: five signal chips under the chat */
.practice .rk-evi { margin-top: 2px; }
.practice .rk-evrow { display: flex; flex-wrap: wrap; gap: 6px; }
.practice .rk-sigchip { display: inline-flex; align-items: center; gap: 5px; padding: 0 12px; color: var(--text); background: var(--panel-2); border: 1px solid var(--line-strong); border-radius: 999px; font-size: 13px; font-weight: 600; }
.practice .rk-sigchip .ck-ic { display: none; color: var(--blue); }
.practice .rk-sigchip[data-tagged="1"] .ck-ic { display: block; }
.practice .rk-sigchip[data-tagged="1"] { border-color: var(--blue); }
.practice .rk-sigchip:hover:not(:disabled) { border-color: var(--blue); }
.practice .rk-sigchip[aria-pressed="true"] { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
.practice .rk-sigchip[aria-pressed="true"] .ck-ic { color: #fff; }
.practice .rk-sigchip:disabled { cursor: default; opacity: .7; }
.practice .rk-sigchip:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.practice .rk-evhint { margin: 6px 0 0; font-size: 12.5px; }
.practice .rk-five { margin-top: 0; }
.practice .rk-five ol { margin-top: 0; font-size: 13px; }

/* the decision panel: three questions, each a segmented control that fills the width */
.practice .dk-panel { padding-top: 2px; }
.practice .dk-q { margin-bottom: 8px; }
.practice .dk-ql { margin: 0 0 4px; font-size: 13px; font-weight: 700; }
.practice .dk-seg { display: flex; width: 100%; }
.practice .dk-seg .rk-segbtn { flex: 1 1 0; min-width: 0; padding: 0 6px; white-space: normal; line-height: 1.2; }
.practice .rk-segbtn:disabled { cursor: default; }
.practice .rk-segbtn:disabled:not([aria-pressed="true"]) { color: var(--muted); }
.practice .dk-note { margin: 4px 0 0; font-size: 12.5px; }
.practice .dk-keys { font-size: 11.5px; margin: 6px 0 0; }
@media (pointer: coarse) { .practice .dk-keys { display: none; } }

/* the message step: the composer sits under the chat on a wide screen (so the chat stays in view) and under the feedback on a phone */
.practice .dk-send { padding-top: 6px; border-top: 1px solid var(--line); max-width: 560px; }
.practice .dk-send h3.section-label { margin-top: 6px; }
.practice .dks-note { margin: 4px 0 6px; font-size: 13px; padding: 6px 10px; background: var(--p-yellow-bg); border: 1px solid var(--p-yellow-line); border-radius: 10px; }
.practice .dks-draft { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 8px 0 0; }
.practice .dks-draft .btn { margin-top: 0; }
.practice .dks-dnote { font-size: 12.5px; flex: 1 1 200px; }
.practice #dks-text { min-height: 88px; }
.practice .dks-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.practice .dks-keys { font-size: 11.5px; }
@media (pointer: coarse) { .practice .dks-keys { display: none; } }
.practice .dks-strip { margin: 6px 0 4px; }
.practice .dks-why, .practice .dks-silent { margin: 2px 0 6px; font-size: 12.5px; }
.practice .dks-result { margin-top: 6px; }
.practice .dks-sum { font-size: 13px; }
.practice .dks-maya { margin: 8px 0; }
.practice .dks-flaws { font-size: 13px; margin: 2px 0 4px; }
.practice .dk-model { border-top: 1px solid var(--line); }
.practice .dk-model .prac-quote { margin-top: 0; }
.practice .dk-mcount, .practice .dk-mavg, .practice .dk-mfail, .practice .dk-mskip { margin: 4px 0; font-size: 13.5px; }
.practice .dk-madvice { font-size: 13px; }

/* the bar under the lead: what is still to answer, and the one action. It stays in reach on a phone. */
.practice .dk-bar {
  position: sticky; bottom: 12px; z-index: 5; margin-top: 12px; padding: 8px 10px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center;
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px; max-width: 640px;
}
.practice .rk-hint { margin: 0; font-size: 12.5px; color: var(--muted); }
.practice .dk-bar .btn { margin-top: 0; }
@media (max-width: 767px) { .practice .dk-bar { bottom: calc(64px + env(safe-area-inset-bottom)); } }

/* the feedback after Lock in: it opens under the questions, so nothing above it moves */
.practice .dk-fb { margin-top: 8px; padding-top: 4px; border-top: 1px solid var(--line); }
.practice .dk-rows { list-style: none; margin: 4px 0; padding: 0; }
.practice .dk-row { display: grid; gap: 2px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.practice .dk-rq { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.practice .dk-rv { font-size: 13.5px; }
.practice .dk-rv .chip { margin-left: 4px; vertical-align: 1px; }
.practice .dk-rv .chip svg { vertical-align: -1px; }
.practice .dk-why { font-size: 12.5px; }
.practice .dk-maya { margin: 8px 0 4px; }
.practice .dk-mline { margin: 0 0 2px; font-size: 13.5px; }
.practice .dk-mline b { font-size: 15px; }
.practice .dk-msay { margin: 0; font-size: 12.5px; }
.practice .dk-ev { margin: 6px 0; font-size: 13px; }
.practice .dk-sigs { border-top: 1px solid var(--line); }
.practice .dk-sigs .prac-signals { margin-top: 0; }
.practice .dk-fb .prac-next { margin-top: 8px; padding: 6px 10px; font-size: 13px; }
.practice .prac-signals { list-style: none; margin: 4px 0 6px; padding: 0; }
.practice .prac-signals li { padding: 2px 0 4px; }
.practice .rk-sig { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; padding: 4px 10px; color: var(--text); background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }
.practice .rk-sig:hover { border-color: var(--line-strong); }
.practice .rk-sig[aria-pressed="true"] { border-color: var(--blue); background: var(--p-blue); }
.practice .rk-rate { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.practice .rk-ev { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 700; }
.practice .rk-ev.ok { color: var(--green); }
.practice .rk-ev.bad { color: var(--yellow); }
.practice .rk-ev.none { color: var(--muted); font-weight: 500; }
.practice .rk-q { display: block; padding: 2px 4px 0; font-size: 12.5px; color: var(--muted); }

/* the session summary */
.practice .rk-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 8px 0 10px; border-bottom: 1px solid var(--line); }
.practice .rk-score { font-size: 30px; font-weight: 800; line-height: 1; }
.practice .rk-stat { font-size: 12.5px; color: var(--muted); }
.practice .rk-stat b { color: var(--text); font-size: 13px; }
.practice .dk-end { max-width: 640px; }
.practice .dk-skills { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 8px; }
.practice .dk-skill { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "n p" "b b"; gap: 3px 10px; align-items: baseline; }
.practice .dk-sk-n { grid-area: n; font-size: 13.5px; font-weight: 600; }
.practice .dk-sk-p { grid-area: p; font-size: 13.5px; font-weight: 700; }
.practice .dk-skill .prac-meter { grid-area: b; }
.practice .rk-more { margin-top: 6px; border-top: 1px solid var(--line); }
.practice .rk-more .prac-list { font-size: 13px; }
.practice .dk-bias, .practice .dk-missed, .practice .dk-mfollow { margin: 6px 0; font-size: 13.5px; }

/* the check rows: a compact grid of chips, the tip of one below */
.practice .prac-checks { list-style: none; margin: 8px 0 6px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.practice .rk-ck {
  width: 100%; height: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 6px 8px;
  color: var(--text); background: var(--panel-2); border: 1px solid var(--line-strong); border-radius: 10px; font-size: 12px; line-height: 1.3;
}
.practice .rk-ck .ck-state { font: 700 10.5px/1.2 var(--f-mono); text-transform: uppercase; letter-spacing: .05em; }
.practice .rk-ck.pass .ck-state { color: var(--green); }
.practice .rk-ck.fail .ck-state { color: var(--yellow); }
.practice .rk-ck[aria-pressed="true"] { border-color: var(--blue); background: var(--p-blue); }
.practice .ck-panel { padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; min-height: var(--pt); }

/* review and write screens: two columns on a wide screen */
.practice .rv-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.practice .rv-col { min-width: 0; }
.practice .rv-col h2 { font-size: 17px; margin-bottom: 4px; }
.practice .rv-chips { margin-bottom: 2px; }
@media (max-width: 899px) { .practice .rv-col + .rv-col { border-top: 1px solid var(--line); padding-top: 10px; } }
@media (min-width: 900px) { .practice .rv-grid { grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 28px; align-items: start; } }
.practice .rv-notes > summary { color: var(--text); font-weight: 400; }
.practice .rv-notes .rn-k { font-weight: 700; color: var(--muted); flex: none; }
.practice .rv-notes .rn-first { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.practice .rv-notes[open] .rn-first { display: none; }
.practice .rv-dec { display: flex; flex-direction: column; width: 100%; border-radius: 12px; }
.practice .rv-dec .rk-segbtn { width: 100%; text-align: left; padding: 8px 14px; }
.practice .rv-dec .rk-segbtn + .rk-segbtn { box-shadow: 0 -1px 0 var(--line-strong); }
@media (min-width: 700px) {
  .practice .rv-dec { flex-direction: row; border-radius: 999px; }
  .practice .rv-dec .rk-segbtn { text-align: center; flex: 1; }
  .practice .rv-dec .rk-segbtn + .rk-segbtn { box-shadow: -1px 0 0 var(--line-strong); }
}
.practice .prac-countrow { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; margin-top: 4px; font-size: 12.5px; }
.practice .prac-result { margin-top: 12px; padding-top: 4px; border-top: 1px solid var(--line); }
.practice .prac-result:empty { display: none; }
.practice .prac-scoreline { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 6px 0; }
.practice .prac-big { font-size: 36px; line-height: 1; font-weight: 800; }
.practice .prac-rhead { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-top: 8px; }
.practice .prac-warn-box { padding: 8px 12px; border: 1px solid var(--p-yellow-line); border-radius: 10px; background: var(--p-yellow-bg); }

/* lists */
.practice .prac-list { margin: 4px 0 8px; padding-left: 20px; }
.practice .prac-list li { margin-bottom: 4px; line-height: 1.45; }
.practice .prac-why li { list-style: none; margin-left: -20px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.practice .prac-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.practice .prac-actions .btn { margin-top: 0; }
.practice .prac-next { margin-top: 12px; padding: 8px 12px; background: var(--accent-soft); border-radius: 10px; font-size: 13.5px; }
.practice .prac-picklist { list-style: none; margin: 4px 0 12px; padding: 0; }
.practice .prac-picklist li { margin-bottom: 6px; }
.practice .prac-pick {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 8px 12px;
}
.practice .prac-pick:hover { border-color: var(--line-strong); }
.practice .pk-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; font-weight: 400; }
.practice .pk-main > b { font-size: 14px; }
.practice .pk-main .muted { font-size: 12.5px; }
.practice .pk-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.practice .pk-times, .practice .pk-note { font-size: 12.5px; }
.practice .prac-lead[aria-pressed="true"] { border-color: var(--blue); background: var(--p-blue); box-shadow: inset 0 0 0 1px var(--blue); }
.practice .pl-order { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-strong); color: #fff; display: grid; place-items: center; font: 800 14px var(--f-mono); }
.practice .prac-order { list-style: none; margin: 0 0 6px; padding: 0; }
.practice .prac-order li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.practice .prac-order .po-n { width: 26px; font: 800 14px var(--f-mono); color: var(--muted); }
.practice .prac-order .po-name { flex: 1 1 120px; min-width: 0; }
.practice .prac-order .btn { margin-top: 0; }
.practice #ib-err:empty { display: none; }

/* roleplay: the chat is one column no wider than 560px and scrolls inside */
.practice #rp-log { max-height: 52vh; overflow-y: auto; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.practice #rp-composer, .practice #rp-end { max-width: 560px; }

/* motion: 150ms on opacity and transform only, and none when she asks for less */
@media (prefers-reduced-motion: no-preference) {
  .practice details > summary::before { transition: transform 150ms ease-out; }
}
@media (prefers-reduced-motion: reduce) { .practice * { transition: none !important; animation: none !important; } }
@media (max-width: 599px) { .practice .prac-actions .btn { flex: 1 1 100%; } }

/* Reactivation by quiet time: the quiet badge tip, the pretend Instagram panel and the lead's reply */
.practice .qt-tip { margin: 6px 0; padding: 8px 10px; border-left: 3px solid var(--blue); background: var(--p-blue); border-radius: 0 8px 8px 0; font-size: 13.5px; }
.practice .qt-gap { margin-top: 6px; font-size: 12.5px; }
.practice .qt-ig { border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin-bottom: 12px; background: var(--panel); display: flex; flex-direction: column; gap: 8px; }
.practice .qt-ig-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.practice .qt-ig-head h3 { margin: 0; }
.practice .qt-ig-top { display: flex; gap: 10px; align-items: center; }
.practice .qt-av { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font: 800 15px var(--f-mono); color: #0b0f14; background: hsl(var(--h) 55% 62%); }
.practice .qt-counts { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.practice .qt-counts b { color: var(--text); }
.practice .qt-bio { margin: 0; font-size: 13.5px; }
.practice .qt-hl { margin: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.practice .qt-private { margin: 0; padding: 10px; border: 1px dashed var(--line-strong); border-radius: 10px; color: var(--muted); font-size: 13.5px; }
.practice .qt-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
@media (max-width: 479px) { .practice .qt-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.practice .qt-post { margin: 0; display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 12px; }
.practice .qt-pic { aspect-ratio: 1; border-radius: 8px; padding: 6px; display: grid; place-items: center; text-align: center; font-size: 11.5px; line-height: 1.3; color: var(--text); background: linear-gradient(145deg, hsl(var(--h) 30% 24%), hsl(calc(var(--h) + 40) 28% 16%)); border: 1px solid var(--line); overflow: hidden; }
.practice .qt-when { display: block; font-size: 11px; }
.practice .qt-draft { margin: 0 0 12px; }
.practice .qt-draft > summary { cursor: pointer; min-height: var(--pt); display: flex; align-items: center; }
.practice .qt-silent { margin: 4px 0; font-style: italic; color: var(--muted); }
.practice .pk-meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

/* Joe's feedback on her tries (Practice home, 2026-11-05): her message, Good or Needs work, and his why. */
.prac-feedback { margin-top: 14px; }
.prac-feedback .prac-fb-item { border-top: 1px solid var(--line); padding: 10px 0; }
.prac-feedback .prac-fb-item:first-of-type { border-top: 0; }
.prac-feedback .prac-fb-msg { margin: 6px 0 4px; padding-left: 12px; border-left: 2px solid var(--text); white-space: pre-line; font-size: 14px; }
.prac-feedback .prac-fb-why { margin: 4px 0 0; }
/* Joe's feedback card when something in it is new: it sits above the drills, with a quiet accent edge */
.prac-feedback.prac-fb-has-new { border-color: var(--accent); }
.prac-feedback .prac-fb-newtag { margin-left: 2px; }
.prac-feedback .prac-fb-go { margin: 8px 0 0; }
.prac-notes .prac-fb-item .btn { margin-top: 0; }
