/* SteadyExam — catalogue, results and widgets. Colours come from the brand variables. */
.se-site {
  --se-ink: #1E1E24; --se-accent: #FACC15; --se-accent-ink: #1E1E24; --se-bg: #FAFAF5; --se-surface: #FFFFFF;
  --se-line: #E2E2DC; --se-muted: #5C5C66; --se-on-ink: #FFFFFF;
  --se-font: 'Atkinson Hyperlegible', system-ui, sans-serif; --se-font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  font-family: var(--se-font); color: var(--se-ink);
}
.se-site *, .se-site *::before, .se-site *::after { box-sizing: border-box; }
.se-site h3 { font-family: var(--se-font-display); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; margin: 0; color: var(--se-ink); }
.se-site :focus-visible { outline: 3px solid var(--se-accent); outline-offset: 2px; }

.se-sbtn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .55em 1.3em; border-radius: 999px; border: 2px solid var(--se-ink); background: var(--se-ink); color: var(--se-on-ink) !important; font-weight: 700; text-decoration: none !important; }
.se-sbtn:hover { transform: translateY(-1px); }
.se-sbtn--line { background: transparent; color: var(--se-ink) !important; }
.se-row { display: flex; gap: 10px; flex-wrap: wrap; }

.se-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.se-filters button { min-height: 44px; padding: 6px 16px; border-radius: 999px; border: 1.5px solid var(--se-ink); background: transparent; color: var(--se-ink); font: 700 .95rem var(--se-font); cursor: pointer; }
.se-filters button[aria-pressed="true"] { background: var(--se-ink); color: var(--se-on-ink); }
.se-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.se-cardtest { background: var(--se-surface); border: 1px solid var(--se-line); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.se-cardtest[hidden] { display: none; }
.se-cardtest p { margin: 0; color: var(--se-muted); font-size: .95rem; }
.se-cardtest .se-sbtn { align-self: flex-start; margin-top: auto; }
.se-cardtest-img { width: 100%; height: auto; border-radius: 10px; }
.se-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.se-chip { font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--se-line); }
.se-chip--track { background: var(--se-accent); color: var(--se-accent-ink); border-color: var(--se-accent); }

.se-empty { background: var(--se-surface); border: 1.5px dashed var(--se-line); border-radius: 14px; padding: 24px; display: grid; gap: 12px; justify-items: start; }
.se-empty p { margin: 0; }

.se-tablewrap { overflow-x: auto; border: 1px solid var(--se-line); border-radius: 12px; background: var(--se-surface); }
.se-history { width: 100%; border-collapse: collapse; margin: 0; }
.se-history th, .se-history td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--se-line); vertical-align: top; }
.se-history th { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--se-muted); font-weight: 700; white-space: nowrap; }
.se-history .se-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.se-history summary { cursor: pointer; font-weight: 700; }
.se-fb { margin-top: 8px; max-width: 40rem; white-space: normal; color: var(--se-muted); }

.se-target { background: var(--se-surface); border: 1.5px solid var(--se-ink); border-radius: 14px; padding: 22px; display: grid; gap: 14px; box-shadow: 6px 6px 0 var(--se-ink); }
.se-bubbles { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 6px; }
.se-bubble { width: 100%; max-width: 48px; aspect-ratio: 1; min-height: 40px; justify-self: center; border-radius: 50%; border: 2px solid var(--se-ink); background: transparent; color: var(--se-ink); font-weight: 700; font-size: .85rem; cursor: pointer; padding: 0; }
.se-bubble[aria-pressed="true"] { background: var(--se-ink); color: var(--se-accent); }
.se-need { margin: 0; display: grid; }
.se-need div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px dashed var(--se-line); }
.se-need dt { color: var(--se-muted); }
.se-need dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.se-small { font-size: .85rem; color: var(--se-muted); margin: 0; }
.se-disclaimer { font-size: .85rem; opacity: .8; }
@media (max-width: 600px) { .se-bubbles { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; } }
@media (prefers-reduced-motion: reduce) { .se-sbtn:hover { transform: none; } }
.se-on-dark .se-disclaimer { color: #FAFAF5; }
