/* exam.4ab.in — AI Checker console (check.html), owner's page design 2026-09-12.
   Loaded AFTER app.css/check.css/app-ab.css, own `cx-` prefix, every colour a
   token so light and dark both work with nothing new declared here.
   §69's rule is respected by construction: a colour is only ever used through
   the token that carries its meaning — green correct, amber partial, red error,
   navy primary — so one hue cannot mean two things on two screens. */

#cxRoot { display: block; }

.cx-wrap {
  max-width: 1400px; margin: 0 auto; padding: 8px 18px 32px;
  display: grid; grid-template-columns: 216px minmax(0, 1fr) 300px; gap: 16px; align-items: start;
}
.cx-main { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
/* Deliberately not sticky — see the note on .hw-a-price. These columns grow
   past the viewport on a laptop, and a sticky column that cannot unpin paints
   over whatever follows it. */
.cx-side, .cx-rail { display: flex; flex-direction: column; gap: 12px; }

/* --- left rail --- */
.cx-nav {
  display: flex; flex-direction: column; gap: 2px; padding: 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
}
.cx-navitem {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 10px; border-radius: var(--r-sm); border: 0; background: none;
  font: inherit; font-size: 13.5px; color: var(--body); text-align: left;
  text-decoration: none; cursor: pointer; min-height: 40px;
}
.cx-navitem i { font-style: normal; width: 18px; text-align: center; }
.cx-navitem:hover { background: var(--chip-bg); color: var(--ink); }
.cx-navitem.is-on { background: var(--chip-bg); color: var(--ink); font-weight: 600; }
.cx-navitem.is-soon { opacity: .6; cursor: default; }
.cx-soon {
  margin-left: auto; font-size: 10.5px; font-weight: 600; padding: 1px 6px;
  border-radius: 999px; background: var(--chip-bg); border: 1px solid var(--chip-line); color: var(--muted);
}
.cx-promo {
  padding: 12px; border-radius: var(--r-md);
  background: var(--chip-bg); border: 1px solid var(--chip-line);
  display: flex; flex-direction: column; gap: 4px;
}
.cx-promo b { font-size: 13px; color: var(--ink); }
.cx-promo span { font-size: 11.5px; color: var(--muted); }

/* --- cards --- */
.cx-card {
  padding: 16px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r-md);
}
.cx-cardhead { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.cx-cardhead p { margin: 4px 0 0; font-size: 12.5px; }
.cx-h2 { margin: 0; font-size: 16px; font-weight: 700; color: var(--ink); }

/* --- upload slots --- */
.cx-slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cx-slot {
  text-align: center; padding: 16px 12px; border-radius: var(--r-md);
  border: 1px dashed var(--line); background: var(--card-2);
  transition: border-color .15s, background .15s;
}
.cx-slot.is-drag { border-color: var(--focus); background: var(--chip-bg); }
.cx-slot.has-files { border-style: solid; border-color: var(--green); }
.cx-slot-ic {
  width: 42px; height: 42px; margin: 0 auto 8px; border-radius: 12px;
  display: grid; place-items: center; font-size: 19px;
  background: var(--chip-bg); border: 1px solid var(--chip-line);
}
.cx-headic { margin: 0; width: 36px; height: 36px; font-size: 17px; }
.cx-slot-t { font-size: 14px; font-weight: 700; color: var(--ink); }
.cx-req { color: var(--red); }
.cx-slot-h { margin: 4px 0 2px; font-size: 12px; }
.cx-slot-c { margin: 0 0 10px; font-size: 11px; }
/* Visually hidden, never display:none — the label/keyboard path needs it focusable. */
.cx-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.cx-choose { cursor: pointer; min-height: 38px; display: inline-flex; align-items: center; }
.cx-files { list-style: none; margin: 10px 0 0; padding: 0; text-align: left; font-size: 12px; }
.cx-files li {
  display: flex; align-items: center; gap: 6px; padding: 4px 6px;
  border-radius: var(--r-sm); background: var(--card); margin-bottom: 4px;
}
.cx-rm {
  margin-left: auto; border: 0; background: none; color: var(--muted);
  cursor: pointer; min-width: 32px; min-height: 32px; border-radius: 6px;
}
.cx-rm:hover { color: var(--ink); background: var(--chip-bg); }

/* --- meta fields --- */
.cx-meta { margin-top: 14px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cx-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; font-size: 12.5px; color: var(--muted); }
.cx-field i { font-style: normal; }
.cx-field .inp { width: 100%; }

.cx-go { margin-top: 14px; width: 100%; min-height: 48px; font-size: 15px; justify-content: center; }
.cx-note { margin: 8px 0 0; font-size: 12px; text-align: center; }

/* --- quote + evaluation level --- */
.cx-quote {
  margin-top: 14px; padding: 12px 14px; border-radius: var(--r-md);
  background: var(--chip-bg); border: 1px solid var(--chip-line);
  display: flex; flex-direction: column; gap: 4px;
}
.cx-quote b { font-size: 15px; color: var(--ink); }
.cx-quote span { font-size: 12.5px; color: var(--muted); }
.cx-quote.is-busy b { color: var(--focus); }
.cx-level {
  margin-top: 8px; padding: 9px 11px; border-radius: var(--r-sm);
  display: flex; flex-direction: column; gap: 2px; font-size: 12px;
  border: 1px solid var(--chip-line); background: var(--card);
}
.cx-level b { font-size: 12px; }
/* Level 1 = official scheme (green). 2 and 3 are estimates and are marked
   amber, because a reader must be able to see at a glance that the mark split
   was inferred rather than taken from a real scheme. */
.cx-level-1 { border-left: 3px solid var(--green); }
.cx-level-1 b { color: var(--green); }
.cx-level-2, .cx-level-3 { border-left: 3px solid var(--amber); }
.cx-level-2 b, .cx-level-3 b { color: var(--amber); }

.cx-err {
  padding: 10px 12px; border-radius: var(--r-sm); font-size: 13px;
  background: rgba(192, 51, 43, .10); border: 1px solid rgba(192, 51, 43, .32); color: var(--red);
}

/* --- steps --- */
.cx-steps {
  list-style: none; margin: 14px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
}
.cx-steps li {
  min-width: 0; padding: 12px; border-radius: var(--r-sm);
  background: var(--card-2); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 4px;
}
.cx-stepn {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--focus); color: #fff; font-size: 12.5px; font-weight: 700;
}
.cx-steps b { font-size: 13.5px; color: var(--ink); }
.cx-steps i { font-style: normal; font-size: 12px; color: var(--muted); }

/* --- tick lists --- */
.cx-ticks { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.cx-ticks li { position: relative; padding-left: 22px; font-size: 12.5px; color: var(--body); }
.cx-ticks li::before { content: '\2713'; position: absolute; left: 0; color: var(--green); font-weight: 700; }

.cx-safe { display: flex; flex-direction: column; gap: 5px; }
.cx-safe b { font-size: 13px; color: var(--ink); }
.cx-safe span { font-size: 12px; }

/* --- plans --- */
.cx-plans { padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); }
.cx-plangrid { margin-top: 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cx-plan {
  position: relative; padding: 16px; border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--card-2);
}
.cx-plan.is-pop { border-color: var(--gold, var(--amber)); }
.cx-pop {
  position: absolute; top: -10px; left: 16px; font-size: 10.5px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px; background: var(--amber); color: #fff;
}
.cx-plan-n { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.cx-live {
  font-size: 10.5px; padding: 1px 6px; border-radius: 999px;
  background: var(--green); color: #fff; vertical-align: middle;
}
.cx-plan-p { margin-top: 6px; font-size: 22px; font-weight: 700; color: var(--ink); }
.cx-plan-per { font-size: 12px; }
.cx-planfoot { margin: 12px 0 0; font-size: 12px; }
.cx-back { margin: 0; font-size: 12.5px; }

@media (max-width: 1200px) {
  .cx-wrap { grid-template-columns: 200px minmax(0, 1fr); }
  .cx-rail { grid-column: 1 / -1; flex-direction: row; position: static; }
  .cx-rail > * { flex: 1 1 0; }
  .cx-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .cx-wrap { grid-template-columns: 1fr; padding: 8px 12px 28px; }
  .cx-side, .cx-rail { position: static; flex-direction: column; }
  .cx-nav { flex-direction: row; flex-wrap: wrap; }
  .cx-navitem { width: auto; }
  .cx-slots, .cx-meta, .cx-steps, .cx-plangrid { grid-template-columns: 1fr; }
}
