.ex-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 0.7rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.55);
  color: #e2e8f0;
  padding: 0.35rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.ex-chip.is-on,
.ex-chip:hover {
  border-color: rgba(251, 191, 36, 0.45);
  background: rgba(251, 191, 36, 0.1);
  color: #fde68a;
}

.ex-chip:disabled {
  opacity: 0.4;
}

.ex-choice {
  display: block;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 0.75rem;
  padding: 0.55rem 0.75rem;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.4);
  cursor: pointer;
}

.ex-choice:has(input:checked),
.ex-rank li:hover,
.ex-choice:hover {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(2, 132, 199, 0.12);
}

.ex-rank {
  list-style: decimal;
  padding-left: 1.2rem;
}

.ex-rank li { margin: 0.35rem 0; cursor: pointer; }

.ex-progress {
  flex: 1;
  min-width: 6rem;
  height: 0.35rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.15);
  overflow: hidden;
}

.ex-progress > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #0284c7, #fbbf24);
}

.ex-exam-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.ex-flag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: #cbd5e1;
}

.ex-h {
  margin: 1.1rem 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #94a3b8;
}

.ex-split {
  display: grid;
  gap: 1rem;
}

@media (min-width: 960px) {
  .ex-split { grid-template-columns: 220px minmax(0, 1fr); }
}

.ex-side { display: flex; flex-direction: column; gap: 0.3rem; max-height: 70vh; overflow: auto; }

.ex-nav {
  text-align: left;
  border-radius: 0.65rem;
  border: 1px solid rgba(148, 163, 184, 0.12);
  padding: 0.4rem 0.55rem;
  color: #e2e8f0;
  font-size: 0.78rem;
  background: transparent;
}

.ex-nav.is-on {
  border-color: rgba(167, 139, 250, 0.55);
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.22), rgba(2, 132, 199, 0.12));
}

.ex-ok { box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.25); }
.ex-bad { box-shadow: inset 0 0 0 1px rgba(251, 113, 133, 0.28); }

.ex-pred {
  margin-top: 0.5rem;
  color: #fde68a;
  font-size: 0.8rem;
}

.ex-ask { padding-left: 1.2rem; color: #cbd5e1; }
.ex-ask li { margin: 0.45rem 0; }

.ex-dlg {
  max-width: min(720px, 94vw);
  max-height: 80vh;
  overflow: auto;
  background: #0f172a;
  color: #e2e8f0;
  border: 1px solid rgba(125, 211, 252, 0.25);
  border-radius: 1rem;
  padding: 1rem 1.1rem 1.2rem;
}

.ex-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.ex-table th, .ex-table td {
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  padding: 0.45rem 0.5rem;
  text-align: left;
  vertical-align: top;
  color: #cbd5e1;
}

.ex-st { font-weight: 700; letter-spacing: 0.06em; }
.ex-st.complete { color: #86efac; }
.ex-st.partial { color: #fde68a; }
.ex-st.missing { color: #fda4af; }

@media (max-width: 639px) {
  .ex-exam-bar { align-items: stretch; }
  .ex-side { max-height: 220px; }
  input[type="range"] { min-height: 2rem; }
}
