/* The Interview Coach screen (web/src/coach.ts). Kabil 15 Nov: "enhance the ui of the interview coach, it doesn't look good".
   Phone first: one column of calm cards, choices as chips, a big ember start button that stays at hand, a big mic; from 900 px the
   interview is two columns (question, answer and metrics | coach notes). Console tokens only; controls >= 44 px; motion only with motion. */
.cx-coach { padding: 20px 16px 48px; }
.co { font-family: var(--cx-font); color: var(--cx-text); font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; max-width: 980px; margin: 0 auto; }
.co h1 { margin: 0; font: 650 22px/1.25 var(--cx-display, var(--cx-font)); letter-spacing: -.01em; }
.co h2 { margin: 0 0 12px; font: 600 15px/1.3 var(--cx-font); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.co h3 { margin: 0 0 10px; font: 600 14px/1.3 var(--cx-font); }
.co p { margin: 0 0 8px; }
.co a, .co .co-link { color: var(--cx-text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--cx-line-strong); }
.co .co-link { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; min-height: 0; color: var(--cx-text-2); }
.co .co-link:hover { color: var(--cx-text); }
.co :focus-visible { outline: 2px solid var(--cx-focus); outline-offset: 2px; }
.co-muted { color: var(--cx-text-muted); }
.co-small { font-size: 13px; }
.co-opt { font: 400 12px/1.2 var(--cx-font); color: var(--cx-text-muted); }
.co-ic { flex: none; }
.co .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header: title, one line of why, and a quiet segmented switch */
.co-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; margin-bottom: 18px; }
.co-sub { margin: 4px 0 0; font-size: 14px; }
.co-tabs { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--cx-line); border-radius: 12px; background: var(--cx-panel); }
.co-tab { min-height: 38px; padding: 0 14px; border-radius: 9px; border: 0; background: transparent; color: var(--cx-text-2); font: 500 14px/1 var(--cx-font); cursor: pointer; }
.co-tab:hover { color: var(--cx-text); }
.co-tab.on { background: var(--cx-raised); color: var(--cx-text); box-shadow: 0 1px 0 rgb(0 0 0 / .2); }
.co-v-run .co-sub, .co-v-report .co-sub { display: none; }

/* buttons */
.co-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--cx-line-btn);
  background: transparent; color: var(--cx-text); font: 500 14px/1 var(--cx-font); cursor: pointer; }
.co-btn:hover { background: var(--cx-raised); border-color: var(--cx-line-strong); }
.co-btn:disabled { opacity: .5; cursor: default; }
.co-btn[aria-busy="true"] { cursor: progress; }
.co-pri { background: var(--cx-ember); border-color: var(--cx-ember); color: #fff; }
.co-pri:hover { background: color-mix(in srgb, var(--cx-ember) 88%, #fff); border-color: transparent; }
.co-big { min-height: 52px; padding: 0 24px; font-size: 16px; font-weight: 600; border-radius: 14px; }
.co-iconbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: var(--cx-text-2); font: 500 13px/1 var(--cx-font); cursor: pointer; }
.co-iconbtn:hover { background: var(--cx-raised); color: var(--cx-text); }
.co-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 14px; }
.co-err { color: var(--cx-danger); font-size: 14px; }

/* cards and fields */
.co-setup { display: flex; flex-direction: column; gap: 14px; }
.co-card { padding: 18px; border: 1px solid var(--cx-line); border-radius: 16px; background: var(--cx-panel); }
.co-step { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: color-mix(in srgb, var(--cx-ember) 22%, transparent); color: var(--cx-ember); font: 700 12px/1 var(--cx-font); }
.co-f { display: flex; flex-direction: column; gap: 6px; margin: 0 0 12px; }
.co-f:last-child { margin-bottom: 0; }
.co-f label, .co-fs legend { font-size: 13px; font-weight: 500; color: var(--cx-text-2); }
.co input[type="text"], .co textarea, .co select { width: 100%; box-sizing: border-box; min-height: 44px; padding: 10px 12px; border: 1px solid var(--cx-line-btn); border-radius: 10px;
  background: var(--cx-bg); color: var(--cx-text); font: 15px/1.45 var(--cx-font); }
.co textarea { resize: vertical; }
.co input::placeholder, .co textarea::placeholder { color: var(--cx-text-faint); }
.co input:focus, .co textarea:focus, .co select:focus { outline: none; border-color: var(--cx-line-strong); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cx-focus) 30%, transparent); }
.co-grid2 { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
.co-fs { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.co-fs legend { padding: 0; margin-bottom: 8px; }
.co-hint { font-size: 12px; color: var(--cx-text-muted); }
.co-lang { max-width: 260px; }

/* choices as chips */
.co-chips, .co-cvs { display: flex; flex-wrap: wrap; gap: 8px; }
.co-cvs { margin-bottom: 10px; }
.co-chip { position: relative; }
.co-chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.co-chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--cx-line-btn); border-radius: 999px; color: var(--cx-text-2); font-size: 14px; }
.co-chip:hover span { border-color: var(--cx-line-strong); color: var(--cx-text); }
.co-chip input:checked + span { background: color-mix(in srgb, var(--cx-ember) 16%, transparent); border-color: var(--cx-ember); color: var(--cx-text); font-weight: 600; }
.co-chip input:focus-visible + span { outline: 2px solid var(--cx-focus); outline-offset: 2px; }

/* CV */
.co-cvmeta { font-size: 13px; color: var(--cx-text-muted); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.co-cvadd { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 4px 0 10px; }
.co-upload { position: relative; overflow: hidden; border-style: dashed; }
.co-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.co-upload.busy { opacity: .7; }
.co-paste summary, .co-typed summary, .co-older summary { cursor: pointer; color: var(--cx-text-2); font-size: 14px; min-height: 36px; display: flex; align-items: center; }
.co-paste[open] summary { margin-bottom: 8px; }

/* notices */
.co-banner { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--cx-warning) 40%, var(--cx-line)); border-radius: 14px;
  background: color-mix(in srgb, var(--cx-warning) 8%, var(--cx-panel)); font-size: 13px; line-height: 1.5; }
.co-banner p { margin: 0; color: var(--cx-text-2); }
.co-banner b { color: var(--cx-text); }
.co-bi { color: var(--cx-warning); padding-top: 1px; }
.co-ready { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.co-ok { width: 8px; height: 8px; border-radius: 50%; background: var(--cx-success, #3fb37f); flex: none; }
.co code { font-family: var(--cx-mono, ui-monospace, monospace); font-size: 12px; padding: 1px 6px; border-radius: 6px; background: var(--cx-raised); }
.co-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--cx-text-2); margin-bottom: 12px; cursor: pointer; }
.co-check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--cx-ember); flex: none; }
.co-prep { margin-top: 12px; padding: 12px; border-radius: 12px; background: var(--cx-raised); font-size: 14px; }
.co-pre { white-space: pre-wrap; font-size: 14px; padding: 12px; border-radius: 10px; background: var(--cx-bg); border: 1px solid var(--cx-line); }

/* start: always at hand on a phone */
.co-startbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding-top: 4px; }
.co-startbar .co-big { flex: 1 1 220px; }

/* the interview */
.co-run { display: grid; grid-template-columns: 1fr; gap: 16px; }
.co-prog { display: flex; gap: 4px; margin-bottom: 12px; }
.co-prog span { flex: 1; height: 4px; border-radius: 2px; background: var(--cx-line); }
.co-prog span.done { background: color-mix(in srgb, var(--cx-ember) 60%, transparent); }
.co-prog span.now { background: var(--cx-ember); }
.co-qcard { padding: 20px; border-radius: 18px; background: var(--cx-panel); border: 1px solid var(--cx-line); }
.co-qn { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--cx-text-muted); margin-bottom: 8px; }
.co-q { font: 600 20px/1.4 var(--cx-display, var(--cx-font)); margin: 0 0 10px; outline: none; }
.co-answer { margin-top: 16px; }
.co-micwrap { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 0 4px; }
.co-mic { position: relative; width: 88px; height: 88px; border-radius: 50%; border: 0; background: var(--cx-ember); color: #fff; display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--cx-ember) 35%, transparent); touch-action: none; -webkit-user-select: none; user-select: none; }
.co-mic:hover { filter: brightness(1.05); }
.co-mic.on::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 3px solid var(--cx-ember); animation: co-ring 1.4s ease-out infinite; }
.co-mic.away { background: var(--cx-raised); color: var(--cx-text-muted); box-shadow: none; }
.co-mic.away::after { animation: none; border-color: var(--cx-text-faint); }
.co-micst { margin: 0; font-size: 14px; color: var(--cx-text-2); text-align: center; }
.co-livem { margin: 0; font-size: 13px; color: var(--cx-text-muted); min-height: 1.4em; font-variant-numeric: tabular-nums; }
.co-typed { margin-top: 12px; }
.co-endrow { justify-content: center; }
@keyframes co-ring { from { transform: scale(.95); opacity: .9; } to { transform: scale(1.25); opacity: 0; } }

/* metrics as tiles */
.co-metrics { margin-top: 16px; }
.co-metrics dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.co-tile { padding: 12px; border-radius: 12px; background: var(--cx-panel); border: 1px solid var(--cx-line); }
.co-tile dt { font-size: 12px; color: var(--cx-text-muted); margin-bottom: 2px; }
.co-tile dd { margin: 0; font: 600 18px/1.3 var(--cx-font); font-variant-numeric: tabular-nums; }
.co-tile dd small { display: block; font: 400 12px/1.35 var(--cx-font); color: var(--cx-text-muted); margin-top: 2px; }
.co-tile.good { border-color: color-mix(in srgb, var(--cx-success, #3fb37f) 45%, var(--cx-line)); }
.co-tile.warn { border-color: color-mix(in srgb, var(--cx-warning) 50%, var(--cx-line)); }

/* notes */
.co-right { min-width: 0; }
.co-note { padding: 16px; border-radius: 16px; background: var(--cx-panel); border: 1px solid var(--cx-line); margin-bottom: 12px; font-size: 14px; }
.co-note h2 { justify-content: space-between; }
.co-score { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px; font: 700 13px/1 var(--cx-font); background: var(--cx-raised); }
.co-score.good { background: color-mix(in srgb, var(--cx-success, #3fb37f) 22%, transparent); color: var(--cx-text); }
.co-score.mid { background: color-mix(in srgb, var(--cx-warning) 22%, transparent); }
.co-score.low { background: color-mix(in srgb, var(--cx-danger) 22%, transparent); }
.co-star { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 10px 0; padding: 0; }
.co-star li { display: inline-flex; align-items: center; gap: 4px; min-height: 28px; padding: 0 10px; border-radius: 999px; font-size: 13px; border: 1px solid var(--cx-line-btn); }
.co-star li.ok { background: color-mix(in srgb, var(--cx-success, #3fb37f) 16%, transparent); border-color: transparent; }
.co-star li.miss { color: var(--cx-text-muted); border-style: dashed; }
.co-tip { padding: 10px 12px; border-radius: 12px; background: var(--cx-bg); border: 1px solid var(--cx-line); }
.co-tip p:last-child { margin: 0; }
.co-note-src { font-size: 12px; margin: 10px 0 0; }
.co-wait { display: flex; align-items: center; gap: 10px; color: var(--cx-text-2); }
.co-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cx-ember); animation: co-pulse 1s ease-in-out infinite alternate; }
@keyframes co-pulse { from { opacity: .35; } to { opacity: 1; } }
.co-empty { padding: 20px; border: 1px dashed var(--cx-line-btn); border-radius: 16px; color: var(--cx-text-muted); font-size: 14px; }
.co-older { margin-top: 8px; }
.co-older .co-note { margin-top: 8px; }
.co-older h3 { display: flex; justify-content: space-between; align-items: center; }

/* the report */
.co-report { display: flex; flex-direction: column; gap: 16px; }
.co-rhead { display: flex; align-items: center; gap: 18px; }
.co-rhead h2 { margin: 0 0 4px; font-size: 18px; }
.co-ring { --p: 0; flex: none; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--cx-ember) calc(var(--p) * 1%), var(--cx-line) 0); }
.co-ring span { width: 66px; height: 66px; border-radius: 50%; background: var(--cx-bg); display: grid; place-items: center; font: 700 26px/1 var(--cx-font); }
.co-overall { margin: 0; font-size: 13px; color: var(--cx-text-muted); }
.co-overall .co-big-n { font-weight: 700; color: var(--cx-text); margin-right: 2px; }
.co-sum { font-size: 15px; line-height: 1.6; margin: 0; }
.co-cols { display: grid; grid-template-columns: 1fr; gap: 12px; }
.co-cols ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.co-good h3::before { content: "↑ "; color: var(--cx-success, #3fb37f); }
.co-fix h3::before { content: "→ "; color: var(--cx-warning); }
.co-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.co-table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--cx-text-muted); padding: 8px; border-bottom: 1px solid var(--cx-line); }
.co-table td { padding: 10px 8px; border-bottom: 1px solid var(--cx-line); vertical-align: top; }
.co-trend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.co-trend li { display: grid; grid-template-columns: 110px 1fr; gap: 4px 12px; align-items: center; font-size: 13px; }
.co-tr-v { grid-column: 2; color: var(--cx-text-muted); font-size: 12px; }
.co-bar { height: 8px; border-radius: 4px; background: var(--cx-line); overflow: hidden; }
.co-bar span { display: block; height: 100%; background: var(--cx-ember); border-radius: 4px; }

/* history */
.co-hist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.co-hist li { display: flex; align-items: center; gap: 4px; border: 1px solid var(--cx-line); border-radius: 14px; background: var(--cx-panel); padding-right: 6px; }
.co-histi { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 0; background: transparent; color: var(--cx-text); text-align: left; font: inherit; cursor: pointer; border-radius: 14px; }
.co-histi:hover { background: var(--cx-raised); }
.co-hscore { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 700 16px/1 var(--cx-font); background: var(--cx-raised); }
.co-hscore.good { background: color-mix(in srgb, var(--cx-success, #3fb37f) 22%, transparent); }
.co-hscore.mid { background: color-mix(in srgb, var(--cx-warning) 22%, transparent); }
.co-hscore.low { background: color-mix(in srgb, var(--cx-danger) 22%, transparent); }
.co-ht { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.co-ht > span { color: var(--cx-text-muted); font-size: 13px; }
.co-del { flex: none; width: 44px; height: 44px; justify-content: center; padding: 0; }

@media (min-width: 640px) {
  .co-grid2 { grid-template-columns: 1fr 1fr; }
  .co-metrics dl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .co-cols { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .co-run { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: start; }
  .co-right { position: sticky; top: 16px; }
}
@media (max-width: 767px) {
  .cx-coach { padding: 12px 12px 24px; }
  .co-head { margin-bottom: 14px; }
  .co h1 { font-size: 20px; }
  .co-tabs { width: 100%; }
  .co-tab { flex: 1; }
  .co-card { padding: 16px 14px; }
  .co-q { font-size: 18px; }
  .co-startbar { position: sticky; bottom: 0; z-index: 2; margin: 0 -12px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--cx-bg) 70%, transparent); }
  .co-startbar .co-link { display: none; }
  /* per-question rows as cards */
  .co-table thead { display: none; }
  .co-table, .co-table tbody, .co-table tr, .co-table td { display: block; }
  .co-table tr { padding: 12px 0; border-bottom: 1px solid var(--cx-line); display: grid; grid-template-columns: auto 1fr auto; gap: 4px 10px; }
  .co-table td { padding: 0; border: 0; }
  .co-table .co-tn { color: var(--cx-text-muted); font-weight: 600; }
  .co-table .co-tnote { grid-column: 2 / -1; color: var(--cx-text-2); font-size: 13px; }
  .co-trend li { grid-template-columns: 1fr; }
  .co-tr-v { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) { .co-mic.on::after, .co-dot { animation: none; } }

/* the app's generic `.cx-main button` rules are more specific than the coach's classes: restate the coach's buttons inside .cx-main */
.cx-main .co .co-tab { border: 0; background: transparent; min-height: 38px; }
.cx-main .co .co-tab.on { background: var(--cx-raised); }
.cx-main .co .co-btn { border: 1px solid var(--cx-line-btn); background: transparent; color: var(--cx-text); border-radius: 12px; }
.cx-main .co .co-btn:hover { background: var(--cx-raised); }
.cx-main .co .co-pri { background: var(--cx-ember); border-color: var(--cx-ember); color: #fff; }
.cx-main .co .co-pri:hover { background: color-mix(in srgb, var(--cx-ember) 88%, #fff); }
.cx-main .co .co-upload { border-style: dashed; }
.cx-main .co .co-link { border: 0; background: none; min-height: 0; padding: 0; }
.cx-main .co .co-iconbtn { border: 0; background: transparent; }
.cx-main .co .co-iconbtn:hover { background: var(--cx-raised); }
.cx-main .co .co-mic { border: 0; background: var(--cx-ember); color: #fff; border-radius: 50%; }
.cx-main .co .co-mic.away { background: var(--cx-raised); color: var(--cx-text-muted); }
.cx-main .co .co-histi { border: 0; background: transparent; }
.cx-main .co .co-histi:hover { background: var(--cx-raised); }
/* on a phone the title bar already says Coach */
@media (max-width: 767px) { .co .co-ht0 h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

/* live mode (web/src/coach_live.ts): a calm, glanceable panel beside the call. The current card is large, earlier ones fold away, a
   short transcript strip sits below; Esc hides everything at once ([data-co-hide]); on a phone it is one column (a second screen). */
.co-livebtn { flex: 0 1 auto; }
.co-consent .co-banner { margin: 12px 0 14px; }
.co-consentbox { padding: 12px 14px; border: 1px solid var(--cx-line-btn); border-radius: 12px; margin: 0; color: var(--cx-text); }
.co-consentbox b { font-weight: 600; }
.co-live { position: relative; }
.co-lwrap { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.co-lbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.co-lst { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; font-size: 14px; color: var(--cx-text-2); font-variant-numeric: tabular-nums; }
.co-ldot { width: 10px; height: 10px; border-radius: 50%; background: var(--cx-success, #3fb37f); box-shadow: 0 0 0 4px color-mix(in srgb, var(--cx-success, #3fb37f) 20%, transparent); }
.co-ldot.paused { background: var(--cx-text-faint); box-shadow: none; }
.co-lcap { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--cx-raised); color: var(--cx-text-muted); }
.co-lerr { font-size: 12px; color: var(--cx-warning); }
.co-lacts { display: flex; gap: 8px; flex-wrap: wrap; }
.co-hnow { min-height: 180px; }
.co-hempty { padding: 28px 20px; border: 1px dashed var(--cx-line-btn); border-radius: 18px; color: var(--cx-text-muted); font-size: 15px; text-align: center; }
.co-hcard { padding: 14px 16px; border-radius: 16px; background: var(--cx-panel); border: 1px solid var(--cx-line); margin-top: 8px; font-size: 14px; }
.co-hcard.big { padding: 20px 22px; border-radius: 20px; border-color: color-mix(in srgb, var(--cx-ember) 45%, var(--cx-line)); margin-top: 0; font-size: 17px; line-height: 1.5; }
.co-hcard.ask.big { border-color: color-mix(in srgb, var(--cx-success, #3fb37f) 50%, var(--cx-line)); }
.co-hq { margin: 0 0 10px; color: var(--cx-text-2); font-size: .85em; }
.co-hk { display: inline-block; margin-right: 8px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--cx-ember); }
.co-hs { margin: 0 0 10px; font-weight: 600; font-size: 1.05em; }
.co-hs b, .co-hf b, .co-hx b { display: block; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--cx-text-muted); font-weight: 600; margin-bottom: 2px; }
.co-hp { margin: 0 0 10px; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.co-hrow { display: grid; grid-template-columns: 1fr; gap: 8px; }
.co-hf, .co-hx { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--cx-bg); border: 1px solid var(--cx-line); font-size: .9em; }
.co-hx { border-color: color-mix(in srgb, var(--cx-warning) 40%, var(--cx-line)); }
.co-hcard.streaming .co-note-src::after { content: " ▍"; animation: co-pulse .8s ease-in-out infinite alternate; }
.co-nudge { margin: 0; min-height: 1.5em; font-size: 15px; font-weight: 600; color: var(--cx-warning); }
.co-nudge:empty { min-height: 0; }
.co-qtype .co-qrow { display: flex; gap: 8px; }
.co-qtype label { display: block; font-size: 13px; color: var(--cx-text-2); margin-bottom: 6px; }
.co-strip { max-height: 168px; overflow-y: auto; padding: 10px 12px; border-radius: 14px; background: var(--cx-panel); border: 1px solid var(--cx-line); font-size: 13px; }
.co-tl { margin: 0 0 4px; color: var(--cx-text-2); }
.co-tl b { font-weight: 600; margin-right: 6px; color: var(--cx-text-muted); }
.co-tl.candidate b { color: var(--cx-ember); }
.co-tl.interim { opacity: .65; font-style: italic; }
.co-keys { margin: 0; }
.co-unhide { display: none; }
[data-co-hide] .co { visibility: hidden; }
[data-co-hide] .co-unhide { display: inline-flex; visibility: visible; position: fixed; right: 16px; bottom: 16px; z-index: 50; min-height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--cx-line-btn); background: var(--cx-panel); color: var(--cx-text-muted); font: 500 13px/1 var(--cx-font); align-items: center; cursor: pointer; opacity: .6; }
[data-co-hide] .co-unhide:hover, [data-co-hide] .co-unhide:focus-visible { opacity: 1; }
@media (min-width: 640px) { .co-hrow { grid-template-columns: 1fr 1fr; } }
@media (max-width: 767px) {
  .co-hcard.big { font-size: 16px; padding: 16px; }
  .co-lacts { width: 100%; }
  .co-lacts .co-btn { flex: 1; }
  .co-strip { max-height: 120px; }
}
@media (prefers-reduced-motion: reduce) { .co-hcard.streaming .co-note-src::after { animation: none; } }
.cx-main .co .co-unhide { border: 1px solid var(--cx-line-btn); background: var(--cx-panel); }

/* Kabil 15 Nov: several interviews at once, and practices saved to continue later */
.co-jobs { margin-bottom: 16px; }
.co-jobhead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 14px; margin-bottom: 10px; }
.co-jobhead h2 { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--cx-text-muted); }
.co-jobl { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.co-job { position: relative; border: 1px solid var(--cx-line); border-radius: 14px; background: var(--cx-panel); transition: border-color .15s, background .15s; }
.co-job:hover { border-color: var(--cx-line-strong); }
.co-job.on { border-color: var(--cx-ember); background: color-mix(in srgb, var(--cx-ember) 8%, var(--cx-panel)); box-shadow: 0 0 0 1px var(--cx-ember) inset; }
.co .co-jobmain { display: flex; flex-direction: column; align-items: stretch; gap: 4px; width: 100%; min-height: 96px; padding: 12px 14px; border: 0; border-radius: 14px;
  background: transparent; color: var(--cx-text-2); font: 14px/1.35 var(--cx-font); text-align: left; cursor: pointer; box-shadow: none; min-width: 0; }
.co .co-jobmain:hover { background: transparent; border: 0; }
.co-jobmain:focus-visible { outline: 2px solid var(--cx-focus); outline-offset: 2px; }
.co-jobfoot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: auto; padding-top: 8px; }
.co-jobrole { color: var(--cx-text); font-weight: 600; font-size: 15px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.co-jobco { color: var(--cx-text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-jobst { font-size: 12.5px; color: var(--cx-text-muted); }
.co-job.on .co-jobrole { padding-right: 30px; }
.co-jst { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap;
  background: var(--cx-raised); color: var(--cx-text-2); }
.co-jst i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.co-jst.ok { color: #4fbf8a; background: color-mix(in srgb, #4fbf8a 14%, transparent); }
.co-jst.wait { color: var(--cx-warning, #e0a23b); background: color-mix(in srgb, var(--cx-warning, #e0a23b) 14%, transparent); }
.co-jst.wait i { animation: co-pulse 1.6s ease-in-out infinite; }
.co-jst.bad { color: var(--cx-danger); background: color-mix(in srgb, var(--cx-danger) 14%, transparent); }
.co-jst.none { opacity: .75; }
@keyframes co-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .co-jst.wait i { animation: none; } }
.co .co-jobx { position: absolute; right: 6px; top: 6px; display: grid; place-items: center; width: 32px; height: 32px; border: 0; padding: 0; min-height: 0; border-radius: 8px; background: transparent;
  color: var(--cx-text-muted); cursor: pointer; }
.co .co-jobx:hover { background: var(--cx-raised); color: var(--cx-danger); }
.co-jobdel { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 0 14px 12px; font-size: 13px; color: var(--cx-text-2); }
.co-jobnew { border-style: dashed; background: transparent; }
.co-jobnew .co-jobmain { justify-content: center; align-items: flex-start; }
.co-jobnew b { color: var(--cx-text); font-weight: 600; }
.co-jobplus { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--cx-raised); color: var(--cx-ember); font: 600 18px/1 var(--cx-font); }
.co-confirm { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 13px; color: var(--cx-text-2); }
.co-danger { color: var(--cx-danger); }
.co-open { margin-bottom: 14px; }
.co-open h2 { margin: 0 0 10px; font-size: 16px; }
.co-hprog { font-size: 13px; width: 48px; border-radius: 12px; }
.co-go { flex: none; margin-left: auto; color: var(--cx-ember); font-weight: 600; font-size: 14px; }
.co-prepwho { margin: 0 0 10px; }
.co-endrow { gap: 8px 20px; }


.co-crewq { margin-top: 10px; }
.co-crewq summary { cursor: pointer; font-size: 14px; }
.co-crewq ol { margin: 8px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.co-qcode { display: inline-block; padding: 1px 6px; border-radius: 6px; font: 600 11px/1.5 var(--cx-mono, monospace); background: var(--cx-raised); color: var(--cx-ember); }

/* ---------------------------------------------------------------- a coding problem: an interview workspace (Kabil 15 Nov: "enhance the ui
   for the coding section, all of the screen"): the problem and what is checked on the left, a real editor on the right */
.co.co-v-code { max-width: 1320px; }
.co-codeprog { margin-bottom: 14px; }
.co-coderun { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.co-prob { padding: 20px; border: 1px solid var(--cx-line); border-radius: 16px; background: var(--cx-panel); display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.co-probhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.co-probhead .co-qn { margin: 0; }
.co-probq { margin: 0; font: 500 17px/1.6 var(--cx-font); color: var(--cx-text); max-width: 62ch; outline: none; overflow-wrap: anywhere; }
.co-probq code, .co-look code { font: 14px/1.4 var(--cx-mono, ui-monospace, SFMono-Regular, Menlo, monospace); padding: 1px 6px; border-radius: 6px;
  background: var(--cx-raised); color: var(--cx-text); white-space: nowrap; }
.co-look h3 { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--cx-text-2); }
.co-look ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.co-look li { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; border-radius: 10px; background: var(--cx-bg); }
.co-look li b { font-size: 14px; font-weight: 600; }
.co-look li span { font-size: 13px; color: var(--cx-text-muted); }
.co-probtip { margin: 0; padding-top: 12px; border-top: 1px solid var(--cx-line); font-size: 13px; color: var(--cx-text-2); }
.co-prob .co-older { margin: 0; }

.co-ide { display: flex; flex-direction: column; border: 1px solid var(--cx-line); border-radius: 16px; background: var(--cx-panel); overflow: hidden; min-width: 0; }
.co-idebar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px 8px 12px; border-bottom: 1px solid var(--cx-line); background: var(--cx-raised); }
.co .co-idelang select { width: auto; min-height: 34px; padding: 4px 30px 4px 10px; border-radius: 8px; font: 500 13px/1 var(--cx-font); background-color: var(--cx-panel); }
span.co-idelang { font: 600 13px/1 var(--cx-font); }
.co-idest { font: 500 13px/1 var(--cx-mono, ui-monospace, monospace); font-variant-numeric: tabular-nums; color: var(--cx-text-2); }
.co-idest.done { font-family: var(--cx-font); color: #4fbf8a; }
.co-editor { --co-code: 13.5px/1.6 var(--cx-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  display: grid; grid-template-columns: auto minmax(0, 1fr); min-height: 380px; height: 52vh; max-height: 640px; background: color-mix(in srgb, var(--cx-bg) 78%, #000); }
.co-editor:focus-within { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--cx-ember) 55%, transparent); }
.co-editor.ro { height: auto; min-height: 0; max-height: 460px; }
.co-gutter { margin: 0; padding: 14px 10px 14px 14px; min-width: 2.5em; text-align: right; font: var(--co-code); color: var(--cx-text-faint, #5c6370);
  border-right: 1px solid var(--cx-line); overflow: hidden; user-select: none; -webkit-user-select: none; }
.co .co-editor textarea.co-code { width: 100%; height: 100%; min-height: 0; margin: 0; padding: 14px 16px; border: 0; border-radius: 0; background: transparent; box-shadow: none;
  font: var(--co-code); color: var(--cx-text); white-space: pre; overflow: auto; resize: none; tab-size: 2; caret-color: var(--cx-ember); }
.co .co-editor textarea.co-code:focus { box-shadow: none; }
.co-codeview { margin: 0; padding: 14px 16px; font: var(--co-code); color: var(--cx-text); white-space: pre; overflow: auto; tab-size: 2; outline: none; }
.co-idefoot { display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 6px 12px; border-top: 1px solid var(--cx-line); font-size: 12px; color: var(--cx-text-2); font-variant-numeric: tabular-nums; }
.co-explain { display: flex; flex-direction: column; gap: 6px; padding: 12px 12px 4px; border-top: 1px solid var(--cx-line); }
.co-explain label { font-size: 13px; font-weight: 500; color: var(--cx-text-2); }
.co-explrow { display: flex; align-items: flex-end; gap: 8px; }
.co .co-explrow textarea { flex: 1; min-height: 56px; }
.co .co-mic.co-micsm { flex: none; width: 44px; height: 44px; }
.co-explain .co-micst { margin: 0; font-size: 13px; color: var(--cx-text-2); }
.co-ideacts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 12px; }
.co-codeafter { padding: 14px; border-top: 1px solid var(--cx-line); }
.co-codeafter .co-note { margin-bottom: 0; }
.co-checks li { white-space: nowrap; }
@media (min-width: 1000px) {
  .co-coderun { grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.6fr); gap: 20px; }
  .co-prob { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; }
}
@media (max-width: 767px) {
  .co-editor { height: 46vh; min-height: 280px; }
  .co-prob { padding: 16px; }
  .co-probq { font-size: 16px; }
}
.co .co-probq:focus, .co .co-probq:focus-visible, .co .co-q:focus, .co .co-q:focus-visible { outline: none; box-shadow: none; border-color: transparent; }
.co-sentexpl { margin: 0; padding: 10px 14px; border-top: 1px solid var(--cx-line); font-size: 14px; color: var(--cx-text-2); }
.co-sentexpl b { color: var(--cx-text); font-weight: 600; }

/* where a practice's questions come from: the crew writes them for this job (and adjusts them to the answers) */
.co-crewline { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 13px; color: var(--cx-text-2); }
.co-crewline.on { color: #4fbf8a; }
.co-crewdot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.co-crewdot.wait { background: var(--cx-warning, #e0a23b); animation: co-pulse 1.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .co-crewdot.wait { animation: none; } }
