:root {
  --zou-navy: #0b2340;
  --zou-navy-deep: #07182c;
  --zou-blue: #1e5aa8;
  --zou-blue-deep: #143f78;
  --zou-cyan: #0098da;
  --zou-gold: #f0d34a;
  --zou-gold-deep: #c9a227;
  --zou-gold-soft: #fff6cc;
  --zou-green: #2f8f45;
  --zou-red: #d6282f;
  --zou-teal: #1a7a6d;
  --zou-bg: #eef2f6;
  --zou-card: #ffffff;
  --zou-text: #172033;
  --zou-muted: #5c6b7c;
  --zou-border: #e3e8ef;
  --stable: #1b7f4e;
  --degraded: #9a7209;
  --offline: #9b2942;
  --recovering: #1d62c4;
  --pending: #5d4d86;
  --verified: #0e7c66;
  --review: #c0392b;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(11, 35, 64, 0.04), 0 10px 28px rgba(11, 35, 64, 0.06);
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --sidebar: 272px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--zou-text);
  background:
    radial-gradient(1200px 500px at 100% -10%, rgba(0, 152, 218, 0.08), transparent 55%),
    var(--zou-bg);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(0, 152, 218, 0.22); }
:focus-visible {
  outline: 3px solid var(--zou-cyan);
  outline-offset: 2px;
}
img { max-width: 100%; }
[hidden] { display: none !important; }

a { color: var(--zou-blue); text-decoration: none; }
a:hover { color: var(--zou-blue-deep); }

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  min-height: 100vh;
}
.app-shell > * { min-width: 0; }

.sidebar {
  background:
    linear-gradient(180deg, rgba(240, 211, 74, 0.08), transparent 180px),
    linear-gradient(180deg, #0e2c4e 0%, var(--zou-navy) 38%, var(--zou-navy-deep) 100%);
  color: #e8eef6;
  padding: 1.15rem 0.9rem 1rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.sidebar::-webkit-scrollbar { width: 8px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.18); border-radius: 99px; }

.brand {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.35rem 0.45rem 1.1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 0.9rem;
}
.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}
.brand-mark img { width: 34px; height: auto; display: block; }
.brand h1 {
  font-size: 0.92rem;
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.brand p {
  margin: 0.18rem 0 0;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(240, 211, 74, 0.92);
  font-weight: 600;
}

.nav { display: flex; flex-direction: column; gap: 0.15rem; }
.nav a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #d5e2ef;
  padding: 0.58rem 0.75rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
}
.nav a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.nav a.active {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-color: rgba(240, 211, 74, 0.35);
  box-shadow: inset 3px 0 0 var(--zou-gold);
}
.nav-ico {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  opacity: 0.9;
}
.nav-ico svg { width: 18px; height: 18px; fill: currentColor; }
.nav-signout { margin-top: 0.45rem; color: rgba(255,255,255,0.72) !important; }

.role-chip {
  margin-top: auto;
  padding: 0.7rem 0.75rem;
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  font-size: 0.78rem;
  display: flex;
  gap: 0.7rem;
  align-items: center;
}
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--zou-gold);
  color: var(--zou-navy-deep);
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.role-chip strong { display: block; font-size: 0.84rem; color: #fff; }
.role-chip span { color: rgba(232, 238, 246, 0.72); }

.main { padding: 1.35rem 1.6rem 2.75rem; max-width: 1440px; }
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.1rem;
  flex-wrap: wrap;
  background: var(--zou-card);
  border: 1px solid var(--zou-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1.2rem;
}
.topbar h2 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--zou-navy);
}
.eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--zou-gold);
}
.muted { color: var(--zou-muted); font-size: 0.9rem; }
.topbar .muted { margin: 0.25rem 0 0; }

.grid { display: grid; gap: 1rem; }
.grid > *, .two-col > *, .stack-sm { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: var(--zou-card);
  border: 1px solid var(--zou-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.05rem 1.15rem;
  min-width: 0;
  max-width: 100%;
  scroll-margin-top: 1rem;
}
.card:target {
  border-color: var(--zou-cyan);
  box-shadow: 0 0 0 4px rgba(0, 152, 218, 0.16), var(--shadow);
}
.card h3 {
  margin: 0 0 0.75rem;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
  color: var(--zou-navy);
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.card-header h3 { margin: 0; }

.panel-metric {
  position: relative;
  overflow: hidden;
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 0.2rem;
}
.panel-metric::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--zou-blue), var(--zou-cyan));
}
.grid-4 .panel-metric:nth-child(2)::before { background: linear-gradient(90deg, var(--offline), #e07a8a); }
.grid-4 .panel-metric:nth-child(3)::before { background: linear-gradient(90deg, var(--zou-gold-deep), var(--zou-gold)); }
.grid-4 .panel-metric:nth-child(4)::before { background: linear-gradient(90deg, #b03a2e, #e08a3c); }
.panel-metric .value {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--zou-navy);
  line-height: 1.1;
}
.panel-metric .label {
  font-size: 0.72rem;
  color: var(--zou-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.75rem;
}
.card-go {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--zou-blue);
}
.card-search {
  width: min(220px, 100%);
  padding: 0.45rem 0.7rem;
  border: 1px solid #d5deea;
  border-radius: 10px;
  font: inherit;
  font-size: 0.82rem;
  background: #fff;
  color: var(--zou-text);
}
.card-search:focus {
  outline: none;
  border-color: var(--zou-cyan);
  box-shadow: 0 0 0 4px rgba(0, 152, 218, 0.15);
}

.progress {
  height: 8px;
  background: #e7eef5;
  border-radius: 999px;
  overflow: hidden;
  margin: 0.45rem 0 0.3rem;
}
.progress > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--zou-cyan), var(--zou-blue));
}
.progress.gold > span { background: linear-gradient(90deg, var(--zou-gold), var(--zou-gold-deep)); }
.progress.warn > span { background: linear-gradient(90deg, #e08a3c, #b03a2e); }
a.obj-row { display: block; color: inherit; text-decoration: none; border-radius: 12px; padding: 0.45rem 0.5rem; }
a.obj-row:hover { background: #f4f8fc; color: inherit; }
.obj-row { margin-bottom: 0.55rem; }
.obj-row:last-child { margin-bottom: 0; }
.obj-title {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
}
.obj-detail { font-size: 0.78rem; color: var(--zou-muted); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
  white-space: nowrap;
}
.badge-stable, .badge-open-exam { background: #e5f6ed; color: var(--stable); border-color: #b7e0c8; }
.badge-degraded { background: #fff6df; color: var(--degraded); border-color: #f0d78c; }
.badge-offline { background: #fde8ee; color: var(--offline); border-color: #efb6c4; }
.badge-recovering { background: #e8f1ff; color: var(--recovering); border-color: #b7cff7; }
.badge-pending { background: #f1ecfa; color: var(--pending); border-color: #d2c4ef; }
.badge-verified, .badge-recovered { background: #e6f7f3; color: var(--verified); border-color: #a8dfd2; }
.badge-review, .badge-open { background: #fdecea; color: var(--review); border-color: #f5c6c0; }
.badge-info { background: #eef3f8; color: #3d4d60; border-color: #d5dee8; }
.badge-draft, .badge-scheduled { background: #eef2f6; color: #334; }
.badge-closed, .badge-submitted, .badge-finalized { background: #e8eef5; color: #345; }
.badge-interrupted { background: #fff0e6; color: #a04000; }
.badge-sev-low { background: #eef3f8; color: #3d4d60; border-color: #d5dee8; }
.badge-sev-medium { background: #fff6df; color: var(--degraded); border-color: #f0d78c; }
.badge-sev-high { background: #fdecea; color: var(--review); border-color: #f5c6c0; }

.table-card { padding: 0.95rem 1rem 0.8rem; }
.dt-container, .table-card .dt-layout-table { min-width: 0; max-width: 100%; }
div.dt-container div.dt-layout-row.dt-layout-table {
  display: block;
  width: 100%;
  overflow-x: auto;
}
table.data { width: 100%; min-width: 36rem; border-collapse: collapse; font-size: 0.88rem; }
table.data th, table.data td,
table.data.dataTable th.dt-type-numeric, table.data.dataTable td.dt-type-numeric,
table.data.dataTable th.dt-type-date, table.data.dataTable td.dt-type-date,
table.data.dataTable th.dt-right, table.data.dataTable td.dt-right {
  text-align: left;
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid var(--zou-border);
  vertical-align: middle;
}
table.data.dataTable > thead > tr > th { border-bottom: 1px solid var(--zou-border); }
table.data th {
  color: var(--zou-muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 800;
  background: #f7f9fb;
}
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tr:hover td { background: #f5f9fd; }
table.data a { font-weight: 700; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0.55rem 0.95rem;
  min-height: 40px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  background: var(--zou-blue);
  color: #fff;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.btn:hover { background: var(--zou-blue-deep); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-secondary {
  background: #fff;
  color: var(--zou-navy);
  border-color: var(--zou-border);
}
.btn-secondary:hover { background: #f4f7fb; color: var(--zou-navy); }
.btn-gold { background: var(--zou-gold); color: #1a2430; }
.btn-gold:hover { background: #e4c42a; color: #1a2430; }
.btn-danger { background: var(--review); }
.btn-danger:hover { background: #9d2b22; }
.btn-sm { padding: 0.32rem 0.65rem; min-height: 32px; font-size: 0.8rem; }
.btn-block { width: 100%; }

form.inline { display: inline; }
.form-row { margin-bottom: 0.85rem; }
.form-row label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: #3e4d60;
  letter-spacing: 0.01em;
}
.form-row input, .form-row select, .form-row textarea,
.filters input, .filters select {
  width: 100%;
  padding: 0.62rem 0.75rem;
  border: 1px solid #d5deea;
  border-radius: 10px;
  font: inherit;
  color: var(--zou-text);
  background: #fff;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.filters input, .filters select { width: auto; }
.form-row textarea { min-height: 96px; resize: vertical; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus,
.filters input:focus, .filters select:focus {
  outline: none;
  border-color: var(--zou-cyan);
  box-shadow: 0 0 0 4px rgba(0, 152, 218, 0.15);
}
.form-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.75rem; }
.filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: end;
  margin-bottom: 0.85rem;
}

.messages { list-style: none; padding: 0; margin: 0 0 1rem; }
.messages li {
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  margin-bottom: 0.4rem;
  background: #e8f6ee;
  border: 1px solid #bfe5cd;
  font-size: 0.9rem;
}
.messages li.error { background: #fdecea; border-color: #f5c6c0; }
.messages li.warning { background: #fff6df; border-color: #f0d78c; }

.timeline { position: relative; padding-left: 1.25rem; }
.timeline::before {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: 0.2rem;
  bottom: 0.2rem;
  width: 2px;
  background: var(--zou-border);
}
.tl-item { position: relative; margin-bottom: 0.85rem; padding-left: 0.75rem; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -1.02rem;
  top: 0.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--zou-blue);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--zou-border);
}
.tl-item.state-OFFLINE::before { background: var(--offline); }
.tl-item.state-DEGRADED::before { background: var(--degraded); }
.tl-item.state-RECOVERING::before { background: var(--recovering); }
.tl-item.state-STABLE::before { background: var(--stable); }
.tl-time { font-size: 0.72rem; color: var(--zou-muted); }
.tl-label { font-weight: 800; font-size: 0.9rem; color: var(--zou-navy); }
.tl-detail { font-size: 0.82rem; color: var(--zou-muted); }

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  background: var(--zou-navy-deep);
}
.login-visual {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: #fff;
}
.login-visual .cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.login-visual-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.4rem 2.6rem 2.2rem;
  background: linear-gradient(to top, rgba(7, 18, 34, 0.92) 0%, rgba(7, 18, 34, 0.45) 55%, transparent 100%);
}
.login-visual-copy h2 {
  margin: 0.35rem 0 0.45rem;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
  max-width: 16ch;
}
.login-visual-copy p { margin: 0; max-width: 38ch; color: rgba(255,255,255,0.86); }
.login-mark {
  width: 54px;
  height: auto;
  background: #fff;
  border-radius: 14px;
  padding: 4px;
  margin-bottom: 0.8rem;
}
.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  background:
    radial-gradient(600px 280px at 80% 0%, rgba(0, 152, 218, 0.12), transparent 60%),
    #f4f7fb;
}
.login-card {
  width: min(440px, 100%);
  background: #fff;
  border-radius: 22px;
  padding: 1.6rem 1.6rem 1.35rem;
  border: 1px solid var(--zou-border);
  box-shadow: 0 24px 60px rgba(7, 24, 44, 0.16);
}
.wordmark { width: 100%; height: auto; display: block; margin-bottom: 1.15rem; }
.login-card h1 {
  margin: 0;
  color: var(--zou-navy);
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}
.login-card .sub { color: var(--zou-muted); font-size: 0.9rem; margin: 0.25rem 0 1.15rem; }
.error-box {
  background: #fdecea;
  color: #7a2420;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  margin-bottom: 0.85rem;
  font-size: 0.88rem;
  border: 1px solid #f5c6c0;
}
.demo-accounts {
  margin-top: 1.1rem;
  padding: 0.85rem 0.9rem;
  border-radius: 12px;
  background: #f6f8fb;
  border: 1px solid var(--zou-border);
  font-size: 0.8rem;
  color: var(--zou-muted);
  line-height: 1.55;
}
.account-row { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.45rem; }
.account-row span {
  background: #fff;
  border: 1px solid var(--zou-border);
  border-radius: 999px;
  padding: 0.12rem 0.5rem;
  font-weight: 700;
  color: var(--zou-navy);
}

.command-banner {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  min-height: 228px;
  margin-bottom: 1.1rem;
  color: #fff;
  background: #0b2340 center/cover no-repeat;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow);
}
.command-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(7, 20, 38, 0.9) 0%, rgba(7, 20, 38, 0.62) 46%, rgba(7, 20, 38, 0.18) 100%);
}
.command-banner > * { position: relative; z-index: 1; min-width: 0; }
.command-banner > div:first-child { flex: 1; }
.command-banner h2 {
  margin: 0;
  font-size: clamp(1.6rem, 2.4vw, 2.15rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.command-banner p { margin: 0.4rem 0 0; max-width: 52ch; color: rgba(255,255,255,0.86); }
.command-banner .btn-secondary { background: rgba(255,255,255,0.94); }

.welcome-band {
  display: grid;
  grid-template-columns: 240px 1fr;
  background: #fff;
  border: 1px solid var(--zou-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}
.welcome-band img { width: 100%; height: 100%; object-fit: cover; min-height: 168px; }
.welcome-band div { padding: 1.25rem 1.4rem; }
.welcome-band h2 { margin: 0; color: var(--zou-navy); letter-spacing: -0.03em; }
.welcome-band .eyebrow { color: var(--zou-blue); }
.welcome-band p { margin: 0.4rem 0 0; }

.stack-sm > * + * { margin-top: 0.65rem; }
.empty { padding: 1.35rem 1rem; text-align: center; color: var(--zou-muted); font-size: 0.9rem; }
.bar-track {
  display: flex;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: #e6edf3;
}
.bar-track span { display: block; height: 100%; }
.legend { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; font-size: 0.78rem; color: var(--zou-muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 0.25rem; }
.conn-chart { display: grid; gap: 0.5rem; }
.conn-row { display: grid; grid-template-columns: 110px 1fr 36px; gap: 0.55rem; align-items: center; font-size: 0.82rem; }
a.conn-row {
  text-decoration: none;
  color: inherit;
  border-radius: 10px;
  padding: 0.28rem 0.4rem;
}
a.conn-row:hover { background: #f3f8fd; color: inherit; }
.alert-item {
  border-left: 3px solid var(--review);
  padding: 0.65rem 0.75rem;
  background: #fff8f7;
  border-radius: 0 12px 12px 0;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}
a.alert-item { display: block; text-decoration: none; color: inherit; }
a.alert-item:hover { color: inherit; background: #fff1ef; }
.alert-item.low { border-left-color: var(--stable); background: #f4fbf7; }
.alert-item.mid { border-left-color: var(--degraded); background: #fffbf0; }
.pagination { display: flex; gap: 0.5rem; margin-top: 0.85rem; align-items: center; font-size: 0.85rem; }
.two-col { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 1rem; }
.kbd {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.8rem;
  background: #eef2f6;
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  border: 1px solid #e1e7ee;
}

.exam-board {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}
.exam-nav-head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: baseline;
  margin-bottom: 0.75rem;
}
.q-grid { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.q-jump {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--zou-border);
  background: #fff;
  color: var(--zou-navy);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.q-jump.is-answered { background: #e7f6ee; border-color: #b7e0c8; }
.q-jump.is-current { background: var(--zou-blue); color: #fff; border-color: var(--zou-blue); }
.timer { margin: 1rem 0 0; font-size: 0.85rem; color: var(--zou-muted); }
.timer strong { display: block; color: var(--zou-navy); font-size: 1.25rem; letter-spacing: 0.04em; }
.timer.is-low strong { color: var(--degraded); }
.timer.is-out strong { color: var(--review); }
.time-up { margin: 0.6rem 0 0; padding: 0.55rem 0.7rem; border-radius: 10px; background: #fdecea; border: 1px solid #f5c6c0; font-size: 0.82rem; color: #7a1f16; }
.exam-cam { margin-top: 0.9rem; }
.exam-preview {
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 210px;
  object-fit: cover;
  background: #07182c;
  border-radius: 12px;
  transform: scaleX(-1);
}
.rec-state {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--zou-navy);
}
.rec-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #98a2b3;
  flex-shrink: 0;
}
.rec-state.is-on .rec-dot,
.rec-state.is-wait .rec-dot { background: #c0392b; }
.rec-state.is-on .rec-dot { animation: rec-pulse 1.4s ease-out infinite; }
.rec-state.is-off { color: var(--review); }
.rec-note { margin: 0.4rem 0 0; font-size: 0.75rem; }
#rec-retry { margin-top: 0.45rem; }
.webcam-player {
  width: 100%;
  max-height: 360px;
  background: #07182c;
  border-radius: 12px;
}
@keyframes rec-pulse {
  70% { box-shadow: 0 0 0 6px rgba(192, 57, 43, 0); }
}
.exam-paper-head { display: flex; justify-content: space-between; gap: 0.75rem; align-items: center; }
.stem { font-size: 1.05rem; line-height: 1.55; margin: 0 0 1rem; }
.choices { display: grid; gap: 0.55rem; }
.choice {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--zou-border);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}
.choice:has(input:checked) { border-color: var(--zou-blue); background: #f3f8ff; }
.choice input { margin-top: 0.2rem; width: 1rem; height: 1rem; flex-shrink: 0; }
.choice-key {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 8px;
  background: #eef3f8;
  color: var(--zou-navy);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.8rem;
  flex-shrink: 0;
}
.exam-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.1rem; }
.exam-gate { max-width: 760px; }
.exam-gate .choice { margin-bottom: 0.55rem; }
.exam-paper textarea { width: 100%; min-height: 140px; }
.exam-paper textarea.essay { min-height: 220px; }

.dt-container { width: 100%; max-width: 100%; color: var(--zou-text); font-size: 0.85rem; }
.dt-container .dt-layout-row { gap: 0.55rem; margin: 0.15rem 0 0.65rem; flex-wrap: wrap; }
.dt-filter-row { margin-top: 0; }
.dt-filters { display: flex; flex-wrap: wrap; gap: 0.45rem; width: 100%; align-items: center; }
.dt-container .dt-search { width: min(280px, 100%); }
.dt-container .dt-search input,
.dt-container .dt-length select,
.dt-filters select {
  border: 1px solid #d5deea;
  border-radius: 10px;
  padding: 0.48rem 0.7rem;
  background: #fff;
  color: var(--zou-text);
  font: inherit;
  font-size: 0.84rem;
  min-height: 38px;
}
.dt-container .dt-search input { width: 100%; margin-left: 0; }
.dt-container .dt-search input:focus,
.dt-container .dt-length select:focus,
.dt-filters select:focus {
  outline: none;
  border-color: var(--zou-cyan);
  box-shadow: 0 0 0 4px rgba(0, 152, 218, 0.15);
}
.dt-container .dt-info { color: var(--zou-muted); padding-top: 0.2rem; }
div.dt-container .dt-paging .dt-paging-button {
  border-radius: 8px;
  min-width: 2.1rem;
  min-height: 2.1rem;
  padding: 0.3rem 0.65rem;
}
div.dt-container .dt-paging .dt-paging-button.current,
div.dt-container .dt-paging .dt-paging-button.current:hover {
  background: #e8f1ff;
  background-image: none;
  color: var(--zou-navy) !important;
  border-color: #b7cff7;
}
div.dt-container .dt-paging .dt-paging-button:hover {
  background: var(--zou-blue);
  background-image: none;
  border-color: var(--zou-blue);
  color: #fff !important;
}
div.dt-container .dt-paging .dt-paging-button.disabled,
div.dt-container .dt-paging .dt-paging-button.disabled:hover {
  background: transparent;
  background-image: none;
  color: #93a0b0 !important;
  border-color: transparent;
}

@media (max-width: 1100px) {
  .app-shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { height: auto; position: relative; width: 100%; }
  .nav { flex-direction: row; flex-wrap: wrap; width: 100%; }
  .nav a { flex: 0 0 auto; }
  .role-chip { margin-top: 0.9rem; }
  .grid-4, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .login-page { grid-template-columns: 1fr; }
  .login-visual { min-height: 340px; }
  .welcome-band { grid-template-columns: 1fr; }
  .welcome-band img { max-height: 200px; }
}
@media (max-width: 720px) {
  .main { padding: 0.9rem 0.8rem 2rem; }
  .grid-2, .grid-3, .grid-4, .two-col { grid-template-columns: 1fr; }
  .command-banner { min-height: 260px; align-items: flex-start; flex-direction: column; justify-content: flex-end; }
  .exam-board { grid-template-columns: 1fr; }
  .exam-preview { max-height: 160px; }
  .conn-row { grid-template-columns: 96px 1fr 28px; }
  .card-header { align-items: flex-start; flex-direction: column; }
  .card-search { width: 100%; }
  .card-actions .btn { flex: 1 1 calc(50% - 0.4rem); }
  .dt-container .dt-search,
  .dt-container .dt-length,
  .dt-filters select { width: 100%; }
  .dt-container .dt-layout-row { align-items: stretch; }
  .topbar .form-actions { width: 100%; }
  .topbar .form-actions > * { flex: 1 1 140px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- question-paper import --- */
.import-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.9fr);
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.05rem;
  border: 1px solid #cfe0f5;
  border-radius: 14px;
  background: linear-gradient(135deg, #f3f8ff, #ffffff 70%);
}
.file-drop {
  display: grid;
  gap: 0.15rem;
  padding: 0.85rem 0.95rem;
  border: 1.5px dashed #a9c3e6;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}
.file-drop:hover { border-color: var(--zou-blue); }
.file-drop input { font: inherit; font-size: 0.85rem; }
.file-drop-title { font-weight: 700; color: var(--zou-navy); font-size: 0.9rem; }
.import-review { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1rem; align-items: start; }
.import-side { position: sticky; top: 1rem; }
.iq { transition: opacity 150ms ease; }
.iq.is-off { opacity: 0.5; }
.iq-head { display: flex; justify-content: space-between; gap: 0.75rem; align-items: center; flex-wrap: wrap; margin-bottom: 0.65rem; }
.iq-include { display: flex; gap: 0.55rem; align-items: center; font-size: 0.85rem; color: var(--zou-muted); cursor: pointer; }
.iq-include input { width: 1.05rem; height: 1.05rem; }
.iq-num { font-weight: 800; color: var(--zou-navy); font-size: 1rem; }
.iq-meta { display: flex; gap: 0.5rem; align-items: center; }
.iq-meta select, .iq-marks input, .iq-opt input:not([type]), .iq-stem {
  padding: 0.5rem 0.65rem;
  border: 1px solid #d5deea;
  border-radius: 10px;
  font: inherit;
  font-size: 0.9rem;
  color: var(--zou-text);
  background: #fff;
}
.iq-marks { font-size: 0.85rem; color: var(--zou-muted); display: flex; gap: 0.35rem; align-items: center; }
.iq-marks input { width: 4.5rem; }
.iq-stem { width: 100%; resize: vertical; line-height: 1.5; }
.iq-stem:focus, .iq-meta select:focus, .iq-marks input:focus, .iq-opt input:focus { border-color: var(--zou-cyan); outline: none; box-shadow: 0 0 0 3px rgba(0, 152, 218, 0.15); }
.iq-warn { margin: 0 0 0.6rem; padding: 0.5rem 0.75rem 0.5rem 1.6rem; background: var(--zou-gold-soft); border: 1px solid #f0d78c; border-radius: 10px; font-size: 0.82rem; color: #6b5300; }
.iq-options { margin-top: 0.65rem; display: grid; gap: 0.4rem; }
.iq-hint, .iq-open-hint { margin: 0.2rem 0 0.15rem; font-size: 0.8rem; }
.iq-opt { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.55rem; align-items: center; }
.iq-opt input:not([type]) { width: 100%; }
.iq-correct { font-size: 0.8rem; color: var(--zou-muted); display: flex; gap: 0.3rem; align-items: center; white-space: nowrap; cursor: pointer; }
.import-actions .btn + .btn { margin-top: 0.5rem; }
@media (max-width: 1100px) {
  .import-review, .import-panel { grid-template-columns: 1fr; }
  .import-side { position: static; }
}

/* answer-type hint on the student paper */
.answer-hint { display: inline-flex; gap: 0.35rem; align-items: center; margin: -0.4rem 0 0.8rem; font-size: 0.8rem; font-weight: 700; color: var(--zou-blue); }
.word-count { margin: 0.35rem 0 0; font-size: 0.78rem; color: var(--zou-muted); text-align: right; }

/* --- live monitor --- */
.live-summary { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.85rem; }
.live-stat { background: #fff; border: 1px solid var(--zou-border); border-radius: 12px; padding: 0.5rem 0.9rem; display: flex; gap: 0.45rem; align-items: baseline; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.live-stat:hover { border-color: #b9c8da; }
.live-stat.is-on { border-color: var(--zou-blue); box-shadow: 0 0 0 3px rgba(30, 90, 168, 0.14); background: #f4f8fe; }
.live-stat strong { font-size: 1.25rem; color: var(--zou-navy); }
.live-stat.is-alert { border-color: #f5c6c0; background: #fff8f7; }
.live-stat.is-alert strong { color: var(--review); }
.live-controls { margin-bottom: 1rem; }
.live-section { margin-bottom: 1.4rem; }
.live-section-title { margin: 0 0 0.6rem; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--zou-muted); }
.live-section-title.is-alert { color: var(--review); }
.live-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.live-tile { padding: 0; overflow: hidden; text-align: left; font: inherit; color: inherit; cursor: pointer; transition: border-color 150ms ease, box-shadow 150ms ease; }
.live-tile:hover { border-color: var(--zou-cyan); box-shadow: var(--shadow); }
.live-tile.is-alert { border-color: var(--review); box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.15); }
.live-tile.is-watch { border-color: var(--degraded); box-shadow: 0 0 0 2px rgba(180, 120, 0, 0.14); }
.live-reasons { margin-top: 0.5rem; font-size: 0.76rem; font-weight: 700; color: #8a2a1f; }
.live-tile.is-watch .live-reasons { color: #7a5200; }
.live-cam { position: relative; aspect-ratio: 4 / 3; background: var(--zou-navy-deep); }
.live-cam img, .live-stage img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scaleX(-1); }
.live-off { position: absolute; inset: 0; display: grid; place-items: center; padding: 1rem; text-align: center; color: #c7d3e0; font-size: 0.82rem; font-weight: 600; background: rgba(7, 24, 44, 0.78); }
.live-dot { position: absolute; top: 0.6rem; left: 0.6rem; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: #98a2b3; box-shadow: 0 0 0 2px rgba(255,255,255,0.7); }
.live-dot.is-on { background: #e0392b; animation: rec-pulse 1.4s ease-out infinite; }
.live-body { padding: 0.7rem 0.85rem 0.85rem; }
.live-name { font-weight: 800; color: var(--zou-navy); }
.live-meta { font-size: 0.78rem; margin-top: 0.1rem; }
.live-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.5rem; }
.live-stage { position: relative; aspect-ratio: 4 / 3; background: var(--zou-navy-deep); border-radius: 12px; overflow: hidden; margin-top: 0.75rem; }

/* --- role dashboards --- */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.75rem; margin-bottom: 1rem; }
.stat-tile { display: block; background: var(--zou-card); border: 1px solid var(--zou-border); border-radius: 14px; padding: 0.8rem 0.95rem; color: inherit; box-shadow: var(--shadow); transition: border-color 150ms ease; }
a.stat-tile:hover { border-color: var(--zou-cyan); color: inherit; }
.stat-tile .label { font-size: 0.76rem; font-weight: 700; color: var(--zou-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.stat-tile .value { font-size: 1.65rem; font-weight: 800; color: var(--zou-navy); line-height: 1.2; }
.stat-tile .hint { font-size: 0.78rem; color: var(--zou-muted); }
.stat-tile.tone-warn { border-left: 4px solid var(--zou-gold-deep); }
.stat-tile.tone-bad { border-left: 4px solid var(--review); }
.stat-tile.tone-ok { border-left: 4px solid var(--stable); }
.stat-tile.tone-info { border-left: 4px solid var(--zou-blue); }
.section-title { margin: 1.4rem 0 0.6rem; font-size: 1.02rem; color: var(--zou-navy); }
.quick-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.kv { display: grid; grid-template-columns: minmax(140px, 0.9fr) minmax(0, 1.1fr); gap: 0.45rem 1rem; margin: 0; font-size: 0.88rem; }
.kv dt { color: var(--zou-muted); }
.kv dd { margin: 0; font-weight: 600; color: var(--zou-text); overflow-wrap: anywhere; }
.access-list { margin: 0.3rem 0 0; padding-left: 1.1rem; font-size: 0.84rem; color: var(--zou-muted); }
.access-list li { margin-bottom: 0.15rem; }
.note-box { padding: 0.7rem 0.9rem; border-radius: 12px; background: #f3f8ff; border: 1px solid #cfe0f5; font-size: 0.86rem; color: #24425f; }
.setting-card + .setting-card { margin-top: 0.75rem; }
.setting-meta { font-size: 0.78rem; color: var(--zou-muted); margin-top: 0.35rem; }
.check-row { display: flex; gap: 0.5rem; align-items: flex-start; margin-bottom: 0.5rem; font-size: 0.88rem; }
.check-row input { width: 1rem; height: 1rem; margin-top: 0.2rem; }
.inline-form { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.inline-form select, .inline-form input { font: inherit; font-size: 0.8rem; padding: 0.3rem 0.45rem; border: 1px solid var(--zou-border); border-radius: 8px; }
.badge-cancelled { background: #f4e9e9; color: #7a2b2b; border-color: #e4c3c3; }
.badge-archived { background: #eef0f3; color: #556; }
.badge-cleared { background: #e5f6ed; color: var(--stable); border-color: #b7e0c8; }
.badge-further_review { background: #fff6df; color: var(--degraded); border-color: #f0d78c; }
.badge-escalated { background: #fdecea; color: var(--review); border-color: #f5c6c0; }
.badge-cls-no_violation { background: #e5f6ed; color: var(--stable); border-color: #b7e0c8; }
.badge-cls-inconclusive { background: #fff6df; color: var(--degraded); border-color: #f0d78c; }
.badge-cls-minor { background: #fff0e6; color: #a04000; border-color: #f3c9a8; }
.badge-cls-serious { background: #fdecea; color: var(--review); border-color: #f5c6c0; }
.badge-ok { background: #e5f6ed; color: var(--stable); border-color: #b7e0c8; }
.badge-warn { background: #fff6df; color: var(--degraded); border-color: #f0d78c; }
.badge-bad { background: #fdecea; color: var(--review); border-color: #f5c6c0; }
.slot-now { font-weight: 800; color: var(--review); }
.alert-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3rem; }
.alert-list li { display: flex; align-items: baseline; gap: 0.45rem; line-height: 1.35; }
.sev-dot { flex: none; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: #9aa8b8; transform: translateY(-0.05rem); }
.sev-dot.sev-medium { background: var(--degraded); }
.sev-dot.sev-high { background: var(--review); }
.alert-progress { display: block; margin-top: 0.35rem; font-size: 0.78rem; }
td.nowrap { white-space: nowrap; }
.sitting-table .alert-list { min-width: 16rem; }
.sitting-table .btn { white-space: nowrap; }
table.sitting-table th, table.sitting-table td,
table.sitting-table.dataTable th.dt-type-numeric, table.sitting-table.dataTable td.dt-type-numeric,
table.sitting-table.dataTable th.dt-type-date, table.sitting-table.dataTable td.dt-type-date { padding: 0.65rem 0.6rem; }

/* the action column stays in view when a wide table has to scroll sideways, so a button is never cut off */
table.data th.cell-action, table.data td.cell-action {
  position: sticky;
  right: 0;
  z-index: 1;
  width: 1%;
  max-width: 11rem;
  text-align: right;
  background: var(--zou-card, #fff);
}
table.data td.cell-action .btn { white-space: nowrap; }
table.data th.cell-action { background: #f7f9fb; }
table.data tr:hover td.cell-action { background: #f5f9fd; }
/* what slides under the pinned column fades out instead of being cut mid-word */
.is-scrollable table.data td.cell-action::before, .is-scrollable table.data th.cell-action::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -1.6rem;
  width: 1.6rem;
  pointer-events: none;
  background: linear-gradient(to right, rgba(255, 255, 255, 0), var(--zou-card, #fff));
}
.is-scrollable table.data th.cell-action::before { background: linear-gradient(to right, rgba(247, 249, 251, 0), #f7f9fb); }
.alert-list li.is-decided { color: var(--zou-muted); }
.alert-finding { font-size: 0.78rem; font-weight: 700; }

/* one compact row per sitting, so long lists of candidates stay scannable */
.case-list { display: grid; gap: 0.4rem; }
a.case-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.15rem 0.75rem;
  align-items: center;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--zou-border);
  border-left: 4px solid #9aa8b8;
  border-radius: 12px;
  color: var(--zou-text);
  text-decoration: none;
  font-size: 0.86rem;
}
a.case-row:hover { background: #f4f8fc; color: var(--zou-text); }
.case-row.sev-medium { border-left-color: var(--degraded); }
.case-row.sev-high { border-left-color: var(--review); }
.case-who { font-weight: 700; color: var(--zou-navy); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.case-who .muted { font-weight: 500; }
.case-meta { font-size: 0.78rem; color: var(--zou-muted); min-width: 0; }
.case-side { display: flex; gap: 0.3rem; justify-content: flex-end; }
.case-go { font-size: 0.78rem; font-weight: 800; color: var(--zou-blue); text-align: right; }
.finding-badges { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.25rem; }

.alert-note { display: block; margin-top: 0.15rem; font-size: 0.8rem; color: var(--zou-muted); }
.action-dialog { width: min(520px, calc(100vw - 2rem)); border: 1px solid var(--zou-border); border-radius: 16px; padding: 1.25rem 1.35rem; box-shadow: 0 24px 60px rgba(11, 35, 64, 0.25); }
.action-dialog::backdrop { background: rgba(11, 35, 64, 0.45); }
.action-dialog h3 { margin: 0 0 0.4rem; font-size: 1.02rem; color: var(--zou-navy); }
.action-dialog p { margin: 0 0 0.9rem; font-size: 0.85rem; }

/* --- tabbed table cards & empty states --- */
.tabs-card { padding: 0; overflow: hidden; }
.tab-bar {
  display: flex;
  gap: 0.2rem;
  padding: 0.5rem 0.7rem 0;
  background: #f4f7fa;
  border-bottom: 1px solid var(--zou-border);
  overflow-x: auto;
  scrollbar-width: thin;
}
.tab {
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--zou-muted);
  padding: 0.7rem 1rem 0.62rem;
  border-radius: 12px 12px 0 0;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  white-space: nowrap;
  transition: color 120ms ease, background 120ms ease;
}
.tab:hover { color: var(--zou-navy); background: rgba(255, 255, 255, 0.6); }
.tab[aria-selected="true"] {
  color: var(--zou-navy);
  background: var(--zou-card);
  border-bottom-color: var(--zou-blue);
}
.tab-count {
  min-width: 1.5rem;
  padding: 0.05rem 0.45rem;
  border-radius: 99px;
  background: #e3e9f0;
  color: #3d4d60;
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
}
.tab[aria-selected="true"] .tab-count { background: var(--zou-blue); color: #fff; }
.tab-count.is-alert { background: var(--zou-gold); color: #3d2f00; }
.tab-panel { padding: 1rem 1.1rem 0.9rem; }
.tab-intro { margin: 0 0 0.85rem; font-size: 0.86rem; color: var(--zou-muted); }
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  padding: 2.4rem 1rem 2.2rem;
  border: 1px dashed #d3dce7;
  border-radius: 14px;
  background: #fafcfe;
}
.empty-state .es-ico {
  width: 46px; height: 46px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: #e8f0fb;
  color: var(--zou-blue);
  margin-bottom: 0.2rem;
}
.empty-state .es-ico svg { width: 22px; height: 22px; fill: currentColor; }
.empty-state strong { color: var(--zou-navy); font-size: 0.96rem; }
.empty-state p { margin: 0; max-width: 46ch; font-size: 0.86rem; color: var(--zou-muted); }
.panel-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.9rem; }

.import-steps { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; margin: 0.7rem 0 0; padding: 0; list-style: none; counter-reset: step; font-size: 0.8rem; font-weight: 700; color: var(--zou-blue-deep); }
.import-steps li { counter-increment: step; display: flex; align-items: center; gap: 0.4rem; }
.import-steps li::before { content: counter(step); display: grid; place-items: center; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--zou-blue); color: #fff; font-size: 0.7rem; }
.tab-bar { overflow-y: hidden; }

.flag-row { grid-template-columns: minmax(0, 1.4fr) minmax(60px, 1fr) 2.2rem; padding: 0.45rem 0.55rem; font-size: 0.86rem; }
.flag-row strong { text-align: right; color: var(--zou-navy); }
.flag-row.is-zero { opacity: 0.55; }
@media (max-width: 720px) { .flag-row { grid-template-columns: minmax(0, 1fr) 70px 2rem; } }

/* the paper-import panel sits in a half-width column: stack it so nothing is clipped */
.import-panel { grid-template-columns: minmax(0, 1fr); align-items: stretch; }
.file-drop { min-width: 0; }
.file-drop > * { min-width: 0; overflow-wrap: anywhere; white-space: normal; }
.file-drop input { max-width: 100%; }

/* "needs attention" rows: label on the left, count on the right */
.attn-row { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; padding: 0.7rem 0.85rem; margin-bottom: 0.4rem; border: 1px solid var(--zou-border); border-left: 4px solid var(--zou-border); border-radius: 12px; color: var(--zou-text); font-size: 0.9rem; }
a.attn-row:hover { background: #f4f8fc; color: var(--zou-text); }
.attn-row strong { font-size: 1.1rem; color: var(--zou-navy); }
.attn-row.is-warn { border-left-color: var(--zou-gold-deep); }
.attn-row.is-bad { border-left-color: var(--review); background: #fff8f7; }
.attn-row.is-static { background: #fafcfe; }

/* --- one look for filters and form controls everywhere (selects, dates, search boxes) --- */
.control {
  font: inherit;
  font-size: 0.86rem;
  min-height: 38px;
  padding: 0.45rem 0.75rem;
  border: 1px solid #d5deea;
  border-radius: 10px;
  background-color: #fff;
  color: var(--zou-text);
  max-width: 100%;
}
select.control {
  appearance: none;
  padding-right: 2.1rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%235c6b7c'%3E%3Cpath d='M5.5 7.5 10 12l4.5-4.5-1.1-1.1L10 9.8 6.6 6.4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  background-size: 1.1rem;
  cursor: pointer;
}
.control:hover { border-color: #b9c8da; }
.control:focus { outline: none; border-color: var(--zou-cyan); box-shadow: 0 0 0 4px rgba(0, 152, 218, 0.15); }
.control::placeholder { color: #8a97a8; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.65rem 0.8rem; align-items: flex-end; }
.filter-bar label { display: grid; gap: 0.25rem; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.02em; color: #3e4d60; }
.filter-bar .grow { flex: 1 1 11rem; }
.filter-bar .actions { display: flex; gap: 0.5rem; align-items: center; margin-left: auto; }
.chip-row { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin-top: 0.7rem; font-size: 0.8rem; color: var(--zou-muted); }
a.chip, .chip {
  display: inline-flex; align-items: center; padding: 0.2rem 0.65rem; border-radius: 999px;
  border: 1px solid var(--zou-border); background: #fff; color: var(--zou-text); font-weight: 600; font-size: 0.78rem; text-decoration: none;
}
a.chip:hover { background: #f4f8fc; color: var(--zou-text); }
.chip.is-on { background: #e8f1ff; border-color: #b7cff7; color: var(--zou-navy); }
.pager { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.6rem; margin-top: 0.9rem; font-size: 0.85rem; color: var(--zou-muted); }
.pager .pages { display: flex; gap: 0.3rem; align-items: center; }
.pager .pages a, .pager .pages span {
  min-width: 2.1rem; min-height: 2.1rem; display: inline-grid; place-items: center; padding: 0 0.55rem; border-radius: 8px;
  border: 1px solid var(--zou-border); background: #fff; color: var(--zou-text); font-weight: 600; text-decoration: none;
}
.pager .pages a:hover { background: var(--zou-blue); border-color: var(--zou-blue); color: #fff; }
.pager .pages .current { background: #e8f1ff; border-color: #b7cff7; color: var(--zou-navy); }
.pager .pages .gap { border: 0; background: transparent; min-width: 1rem; padding: 0; }
.pager .pages .off { opacity: 0.45; }

/* --- print: reports and the audit log come out as clean pages, without the app around them --- */
@media print {
  .sidebar, .topbar .form-actions, .filter-bar, .chip-row, .pager .pages, .dt-search, .dt-length, .dt-paging, .dt-filters,
  .dt-filter-row, .btn, .messages, .tab-bar, .no-print { display: none !important; }
  body, .main, .app-shell { background: #fff !important; display: block !important; }
  .main { padding: 0 !important; margin: 0 !important; }
  .card, .stat-tile { box-shadow: none !important; border: 1px solid #ccd5e0 !important; break-inside: avoid; }
  .stat-row { display: flex !important; flex-wrap: wrap; gap: 0.4rem; }
  .stat-tile { flex: 1 1 8rem; }
  table.data { min-width: 0 !important; font-size: 0.78rem; }
  table.data th, table.data td { padding: 0.35rem 0.45rem !important; }
  div.dt-container div.dt-layout-row.dt-layout-table { overflow: visible !important; }
  tr { break-inside: avoid; }
  a { color: inherit !important; text-decoration: none; }
  .print-only { display: block !important; }
  @page { margin: 14mm; }
}
.print-only { display: none; }

/* sitting states */
.badge-in_progress { background: #e5f6ed; color: var(--stable); border-color: #b7e0c8; }
.badge-precheck { background: #e8f1ff; color: var(--recovering); border-color: #b7cff7; }
.badge-abandoned { background: #eef0f3; color: #556; border-color: #d9dee5; }

/* --- live monitor: the side panel --- */
body.panel-open { overflow: hidden; }
.live-scrim { position: fixed; inset: 0; background: rgba(7, 24, 44, 0.45); z-index: 50; }
.live-panel {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); z-index: 60; background: #fff;
  box-shadow: -18px 0 50px rgba(7, 24, 44, 0.25); display: flex; flex-direction: column; animation: panel-in 180ms ease-out;
}
@keyframes panel-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.live-panel[hidden], .live-scrim[hidden] { display: none; }
.live-panel-head { display: flex; justify-content: space-between; gap: 0.75rem; align-items: flex-start; padding: 1rem 1.1rem 0.5rem; }
.live-panel-head h3 { margin: 0; font-size: 1.1rem; color: var(--zou-navy); }
.live-panel-head p { margin: 0.1rem 0 0; font-size: 0.82rem; }
.live-panel .live-stage { margin: 0 1.1rem; }
.live-panel-body { padding: 0.9rem 1.1rem; overflow-y: auto; flex: 1; }
.live-panel-body h4 { margin: 1rem 0 0.4rem; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--zou-muted); }
.live-panel-foot { display: flex; gap: 0.5rem; justify-content: space-between; padding: 0.75rem 1.1rem; border-top: 1px solid var(--zou-border); }
.lp-why { padding: 0.55rem 0.7rem; border-radius: 10px; font-size: 0.84rem; font-weight: 700; margin-bottom: 0.8rem; background: #eef3f8; }
.lp-why.is-high { background: #fdecea; color: #7a1f16; }
.lp-why.is-watch { background: #fff6df; color: #6b4a00; }
.lp-identity { display: flex; gap: 0.75rem; align-items: center; margin-bottom: 0.9rem; padding: 0.6rem; border: 1px solid var(--zou-border); border-radius: 12px; }
.lp-identity img { width: 4.6rem; height: 3.5rem; object-fit: cover; border-radius: 8px; transform: scaleX(-1); background: var(--zou-navy-deep); }
.lp-identity p { margin: 0; font-size: 0.82rem; }
.lp-facts { display: grid; gap: 0.55rem; margin: 0; }
.lp-facts div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 0.6rem; font-size: 0.86rem; }
.lp-facts dt { color: var(--zou-muted); font-weight: 600; }
.lp-facts dd { margin: 0; font-weight: 600; color: var(--zou-navy); }
.lp-facts .progress { margin-top: 0.3rem; }
.lp-alerts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; font-size: 0.86rem; }
@media (max-width: 720px) { .live-panel { width: 100%; } .lp-facts div { grid-template-columns: 6.5rem 1fr; } }

/* --- the pre-exam check --- */
.precheck { display: grid; grid-template-columns: minmax(280px, 420px) 1fr; gap: 1.1rem; align-items: start; }
.pc-stage-col { position: sticky; top: 1rem; }
.pc-stage { position: relative; aspect-ratio: 4 / 3; background: var(--zou-navy-deep); border-radius: 16px; overflow: hidden; }
.pc-stage video, .pc-stage img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scaleX(-1); }
.pc-idle { position: absolute; inset: 0; display: grid; place-items: center; padding: 1.2rem; text-align: center; color: #c7d3e0; font-size: 0.88rem; }
.pc-oval { position: absolute; inset: 12% 28%; border: 3px dashed rgba(255, 255, 255, 0.85); border-radius: 50%; box-shadow: 0 0 0 999px rgba(7, 24, 44, 0.38); pointer-events: none; }
.pc-meter { display: flex; gap: 0.6rem; align-items: center; margin-top: 0.6rem; font-size: 0.8rem; }
.pc-meter-track { flex: 1; height: 8px; border-radius: 999px; background: #e3e8ef; overflow: hidden; }
.pc-meter-track > div { height: 100%; width: 0; background: var(--stable); transition: width 90ms linear; }
.pc-steps { display: grid; gap: 0.8rem; }
.pc-step { background: #fff; border: 1px solid var(--zou-border); border-radius: 16px; padding: 1rem 1.1rem; box-shadow: var(--shadow); }
.pc-step h3 { display: flex; align-items: center; gap: 0.6rem; margin: 0 0 0.35rem; font-size: 1rem; }
.pc-step p { margin: 0.25rem 0 0.7rem; }
.pc-num { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--zou-blue); color: #fff; font-size: 0.82rem; }
.pc-step.is-locked { opacity: 0.5; }
.pc-step.is-locked .btn, .pc-step.is-locked input { pointer-events: none; }
.pc-step.is-done .pc-num { background: var(--stable); }
.pc-rows { list-style: none; margin: 0.6rem 0; padding: 0; display: grid; gap: 0.45rem; }
.pc-rows li { display: grid; grid-template-columns: 1.4rem 9.5rem 1fr; gap: 0.6rem; align-items: center; font-size: 0.88rem; }
.pc-name { font-weight: 700; color: var(--zou-navy); }
.pc-note { color: var(--zou-muted); }
.pc-ico { width: 1.15rem; height: 1.15rem; border-radius: 50%; border: 2px solid #c3cddb; display: inline-block; position: relative; flex: none; }
.pc-ico[data-state="ok"] { background: var(--stable); border-color: var(--stable); }
.pc-ico[data-state="ok"]::after { content: ""; position: absolute; left: 0.28rem; top: 0.08rem; width: 0.3rem; height: 0.55rem; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.pc-ico[data-state="warn"] { background: var(--degraded); border-color: var(--degraded); }
.pc-ico[data-state="warn"]::after { content: "!"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 0.72rem; font-weight: 800; }
.pc-ico[data-state="bad"] { background: var(--review); border-color: var(--review); }
.pc-ico[data-state="bad"]::after { content: "×"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 0.95rem; font-weight: 800; line-height: 1; }
.pc-ico[data-state="wait"] { border-top-color: var(--zou-blue); animation: pc-spin 0.9s linear infinite; }
@keyframes pc-spin { to { transform: rotate(360deg); } }
.pc-hint { padding: 0.6rem 0.75rem; border-radius: 10px; background: #fff6df; border: 1px solid #f0d78c; font-size: 0.85rem; color: #6b4a00; }
.pc-confirmed { display: flex; gap: 0.6rem; align-items: center; padding: 0.6rem 0.75rem; border-radius: 10px; background: #e5f6ed; border: 1px solid #b7e0c8; font-size: 0.88rem; color: #1b5e3a; }
.pc-who { padding: 0.5rem 0.75rem; border-radius: 10px; background: #f3f8ff; border: 1px solid #cfe0f5; font-size: 0.9rem; margin-bottom: 0.7rem; }
.pc-notice { max-height: 9.5rem; overflow-y: auto; padding: 0.7rem 0.85rem; border: 1px solid var(--zou-border); border-radius: 10px; background: #fafcfe; font-size: 0.88rem; line-height: 1.5; margin-bottom: 0.7rem; }
.pc-instr { margin: 0 0 0.7rem; font-size: 0.86rem; }
.pc-instr summary { cursor: pointer; font-weight: 700; color: var(--zou-blue); }
@media (max-width: 860px) { .precheck { grid-template-columns: 1fr; } .pc-stage-col { position: static; } .pc-rows li { grid-template-columns: 1.4rem 1fr; } .pc-note { grid-column: 2; } }

/* --- a paper that needs the camera: blocked while it is off --- */
.cam-block { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 1.5rem; background: rgba(7, 24, 44, 0.78); }
.cam-block[hidden] { display: none; }
.cam-block-card { width: min(460px, 100%); background: #fff; border-radius: 18px; padding: 1.4rem 1.5rem; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); }
.cam-block-card h3 { margin: 0 0 0.5rem; color: var(--review); }
.cam-block-card p { margin: 0 0 1rem; font-size: 0.92rem; line-height: 1.5; }

.identity-row { display: flex; gap: 0.85rem; align-items: center; }
.identity-row img { width: 6.5rem; height: 4.9rem; object-fit: cover; border-radius: 10px; transform: scaleX(-1); background: var(--zou-navy-deep); flex: none; }
.identity-row p { margin: 0; font-size: 0.88rem; }

/* a reviewer's hold on a sitting, and the moments on the recording an alert points to */
.claim-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; margin-bottom: 1rem; }
.claim-banner form { margin: 0; margin-left: auto; }
.claim-banner.is-mine { background: #eef8f1; border-color: #bfe0cb; color: #1f5a37; }
.moments { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.45rem; margin: 0.5rem 0 0.2rem; font-size: 0.82rem; }
.moment {
  font: inherit; font-size: 0.8rem; font-weight: 600; padding: 0.22rem 0.6rem; border-radius: 999px;
  border: 1px solid var(--zou-border); background: #fff; color: var(--zou-navy); cursor: pointer;
}
button.moment:hover { background: #eef4fb; border-color: #b9cde6; }
button.moment:focus-visible { outline: 2px solid var(--zou-blue); outline-offset: 2px; }
.moment.is-none { color: var(--zou-muted); font-weight: 500; background: #f6f8fa; border-style: dashed; cursor: default; }

/* a candidate's appeal and the reviewer's decision on it */
.appeal-box { margin: 0.7rem 0 0.2rem; padding: 0.75rem 0.9rem; border-radius: 12px; background: #f6f9fd; border: 1px solid #d3e1f1; font-size: 0.88rem; }
.appeal-quote { margin: 0 0 0.6rem; padding: 0.1rem 0 0.1rem 0.8rem; border-left: 3px solid #b9cde6; color: var(--zou-text); }
.appeal-form textarea { width: 100%; }

/* on a phone a case row stacks, so a long finding badge cannot squeeze the candidate's name */
@media (max-width: 560px) {
  a.case-row { grid-template-columns: minmax(0, 1fr); }
  .case-side { justify-content: flex-start; flex-wrap: wrap; }
  .case-go { text-align: left; }
}

/* =========================================================================================================
   Shared components added with the academic structure and marking (2026-10-18). Pages use these classes
   instead of inline styles, so every role's pages look and behave the same.
   ========================================================================================================= */

/* --- accessibility helpers --- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 0.75rem; top: -3rem; z-index: 100; background: var(--zou-gold); color: var(--zou-navy-deep); font-weight: 800; padding: 0.55rem 0.9rem; border-radius: 10px; }
.skip-link:focus { top: 0.75rem; }
.main:focus { outline: none; }

/* --- navigation: section headings, mobile menu, breadcrumbs --- */
.nav-group { margin: 0.85rem 0.75rem 0.3rem; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(240, 211, 74, 0.78); }
.nav-toggle { display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.22); background: rgba(255,255,255,0.06); color: #fff; cursor: pointer; place-items: center; }
.nav-toggle .nav-ico, .nav-toggle .nav-ico svg { width: 22px; height: 22px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.2rem 0.45rem; margin: 0 0 0.7rem; padding: 0; font-size: 0.8rem; color: var(--zou-muted); }
.crumbs li + li::before { content: "›"; margin-right: 0.45rem; color: #9aa8b8; }
.crumbs a { font-weight: 700; }
.crumbs [aria-current] { color: var(--zou-text); font-weight: 600; }
@media (max-width: 1100px) {
  .sidebar { padding: 0.75rem 0.9rem; }
  .brand { margin-bottom: 0; padding-bottom: 0.35rem; border-bottom: 0; }
  .nav-toggle { display: grid; }
  .sidebar .nav, .sidebar .role-chip { display: none; }
  .sidebar.is-open .nav { display: flex; flex-direction: column; flex-wrap: nowrap; padding-top: 0.6rem; border-top: 1px solid rgba(255,255,255,0.1); margin-top: 0.6rem; }
  .sidebar.is-open .role-chip { display: flex; }
  .nav-group { margin-left: 0.4rem; }
}

/* --- small layout utilities (instead of inline styles) --- */
.m-0 { margin: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-xs { margin-top: 0.4rem !important; }
.mb-xs { margin-bottom: 0.4rem !important; }
.my-xxs { margin-top: 0.2rem !important; margin-bottom: 0.2rem !important; }
.my-xs { margin-top: 0.35rem !important; margin-bottom: 0.35rem !important; }
.mt-sm { margin-top: 0.75rem !important; }
.mb-sm { margin-bottom: 0.85rem !important; }
.mt-1 { margin-top: 1rem !important; }
.mb-1 { margin-bottom: 1rem !important; }
.pt-0 { padding-top: 0 !important; }
.ml-auto { margin-left: auto !important; }
.flex-1 { flex: 1 1 auto; }
.w-full { width: 100%; }
.rounded { border-radius: 6px; }
.gap-sm { gap: 0.6rem !important; }
.pl-list { padding-left: 1.2rem; }
.min-w-meter { min-width: 70px; }
.text-warn { color: var(--degraded); }
.subhead { margin: 0.8rem 0 0.4rem; }
.lead-note { margin: -0.3rem 0 0.6rem; font-size: 0.78rem; color: var(--zou-muted); }
.lead-note.indent { margin: -0.2rem 0 0.2rem 0.9rem; }
.narrow-page { max-width: 820px; margin: 0 auto; }
.small { font-size: 0.8rem; }
.text-right { text-align: right; }
.nowrap { white-space: nowrap; }
.pre-wrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.divider { border: none; border-top: 1px solid var(--zou-border); margin: 1rem 0; }
.row-between { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; justify-content: space-between; }
.stack > * + * { margin-top: 1rem; }
.field-hint { margin: 0.35rem 0 0; font-size: 0.8rem; color: var(--zou-muted); }
.stat-tile .value.is-text { font-size: 1.05rem; padding-top: 0.15rem; }
.stat-tile .hint.is-list { font-size: 0.82rem; padding-top: 0.3rem; }
.eyebrow.is-blue { color: var(--zou-blue); }
.card-note { margin: 0.6rem 0 0; font-size: 0.8rem; color: var(--zou-muted); }
.inline-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.inline-actions form { margin: 0; }
.card > .section-title:first-child { margin-top: 0; }

/* --- forms: one grid for every form, sections with headings --- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 0.85rem; }
.form-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid .span-all { grid-column: 1 / -1; }
.form-section + .form-section { margin-top: 1rem; }
.form-section > h3 { display: flex; align-items: center; gap: 0.55rem; }
.form-section > h3 .pc-num { font-size: 0.75rem; width: 1.45rem; height: 1.45rem; }
.form-footer { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-top: 1rem; padding: 0.9rem 1.1rem; background: var(--zou-card); border: 1px solid var(--zou-border); border-radius: var(--radius); box-shadow: var(--shadow); position: sticky; bottom: 0.75rem; z-index: 5; }
.form-footer .muted { margin-left: auto; font-size: 0.82rem; }
.form-row select:not([multiple]) { appearance: none; padding-right: 2.1rem; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%235c6b7c'%3E%3Cpath d='M5.5 7.5 10 12l4.5-4.5-1.1-1.1L10 9.8 6.6 6.4z'/%3E%3C/svg%3E") no-repeat right 0.6rem center / 1.1rem; }
.form-row input:disabled { background: #f4f7fa; color: var(--zou-muted); }
.form-row input:user-invalid, .form-row select:user-invalid, .form-row textarea:user-invalid { border-color: var(--review); }

/* option cards: a choice between a few modes, each explained */
.option-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0.6rem; margin-bottom: 0.85rem; }
.option-card { display: flex; gap: 0.65rem; align-items: flex-start; padding: 0.75rem 0.85rem; border: 1px solid var(--zou-border); border-radius: 12px; background: #fff; cursor: pointer; transition: border-color 120ms ease, background 120ms ease; }
.option-card:hover { border-color: #b9c8da; }
.option-card:has(input:checked) { border-color: var(--zou-blue); background: #f3f8ff; box-shadow: 0 0 0 3px rgba(30, 90, 168, 0.1); }
.option-card:has(input:disabled) { opacity: 0.55; cursor: not-allowed; }
.option-card input { margin-top: 0.2rem; width: 1rem; height: 1rem; flex: none; }
.option-card strong { display: block; color: var(--zou-navy); font-size: 0.9rem; }
.option-card span { display: block; font-size: 0.8rem; color: var(--zou-muted); line-height: 1.4; }

/* --- workflow stepper (an examination's set-up, from details to results) --- */
.stepper { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.5rem; margin: 0 0 1rem; padding: 0; counter-reset: step; }
.stepper li { position: relative; display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.7rem 0.8rem; background: var(--zou-card); border: 1px solid var(--zou-border); border-radius: 14px; font-size: 0.82rem; counter-increment: step; min-width: 0; }
.stepper li::before { content: counter(step); flex: none; display: grid; place-items: center; width: 1.55rem; height: 1.55rem; border-radius: 50%; background: #e3e9f0; color: #3d4d60; font-weight: 800; font-size: 0.75rem; }
.stepper li.is-done::before { content: "✓"; background: var(--stable); color: #fff; }
.stepper li.is-current { border-color: var(--zou-blue); box-shadow: 0 0 0 3px rgba(30, 90, 168, 0.1); }
.stepper li.is-current::before { background: var(--zou-blue); color: #fff; }
.stepper strong { display: block; color: var(--zou-navy); font-size: 0.86rem; }
.stepper span { color: var(--zou-muted); }

/* --- checklist (review before publishing or releasing) --- */
.checklist { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 0.45rem; }
.checklist li { display: grid; grid-template-columns: 1.35rem minmax(0, 1fr); gap: 0.55rem; align-items: start; font-size: 0.88rem; }
.checklist li::before { content: ""; width: 1.15rem; height: 1.15rem; border-radius: 50%; margin-top: 0.1rem; background: var(--stable) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath d='M8 13.2 4.8 10l-1.1 1.1L8 15.4l8.3-8.3-1.1-1.1z'/%3E%3C/svg%3E") center / 0.9rem no-repeat; }
.checklist li.is-warn::before { background: var(--degraded) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath d='M9 4h2v8H9zM9 14h2v2H9z'/%3E%3C/svg%3E") center / 0.9rem no-repeat; }
.checklist li.is-bad::before { background: var(--review) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath d='M6.1 5 5 6.1 8.9 10 5 13.9 6.1 15l3.9-3.9 3.9 3.9 1.1-1.1-3.9-3.9L15 6.1 13.9 5 10 8.9z'/%3E%3C/svg%3E") center / 0.9rem no-repeat; }
.checklist small { display: block; color: var(--zou-muted); font-size: 0.78rem; }
.action-dialog.is-wide { width: min(640px, calc(100vw - 2rem)); }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: flex-end; margin-top: 1rem; }

/* --- results --- */
.badge-pass, .badge-released { background: #e5f6ed; color: var(--stable); border-color: #b7e0c8; }
.badge-fail { background: #fdecea; color: var(--review); border-color: #f5c6c0; }
.badge-awaiting_marking { background: #fff6df; color: var(--degraded); border-color: #f0d78c; }
.badge-marked, .badge-active { background: #e8f1ff; color: var(--recovering); border-color: #b7cff7; }
.badge-completed { background: #e5f6ed; color: var(--stable); border-color: #b7e0c8; }
.badge-withdrawn { background: #eef0f3; color: #556; border-color: #d9dee5; }
.badge-self_paced { background: #f1ecfa; color: var(--pending); border-color: #d2c4ef; }
.badge-delivery-scheduled { background: #eef3f8; color: #3d4d60; border-color: #d5dee8; }
.score { font-weight: 800; color: var(--zou-navy); font-variant-numeric: tabular-nums; }
.score small { font-weight: 600; color: var(--zou-muted); }
.grade { display: inline-grid; place-items: center; min-width: 2.2rem; padding: 0.1rem 0.45rem; border-radius: 8px; background: var(--zou-navy); color: #fff; font-weight: 800; font-size: 0.82rem; }
.grade.is-fail { background: var(--review); }
.meter { display: flex; align-items: center; gap: 0.5rem; min-width: 7rem; }
.meter .progress { flex: 1; margin: 0; }
.meter span { font-size: 0.78rem; color: var(--zou-muted); font-variant-numeric: tabular-nums; }

/* --- marking a script --- */
.mark-item + .mark-item { margin-top: 0.75rem; }
.mark-head { display: flex; justify-content: space-between; gap: 0.75rem; align-items: baseline; margin-bottom: 0.5rem; }
.mark-head h3 { margin: 0; }
.answer-box { padding: 0.75rem 0.9rem; border-radius: 12px; background: #fafcfe; border: 1px solid var(--zou-border); font-size: 0.92rem; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 26rem; overflow-y: auto; }
.answer-box.is-empty { color: var(--zou-muted); font-style: italic; }
.mark-entry { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 0.75rem; margin-top: 0.75rem; align-items: start; }
.mark-entry .form-row { margin: 0; }
.mark-auto { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; font-size: 0.85rem; color: var(--zou-muted); }

/* --- module and programme structure --- */
.module-list { display: grid; gap: 0.45rem; }
a.module-row, .module-row { display: grid; grid-template-columns: 7rem minmax(0, 1fr) auto; gap: 0.75rem; align-items: center; padding: 0.6rem 0.8rem; border: 1px solid var(--zou-border); border-radius: 12px; color: var(--zou-text); font-size: 0.88rem; }
a.module-row:hover { background: #f4f8fc; color: var(--zou-text); }
.module-row code { font-weight: 800; color: var(--zou-navy); font-family: inherit; }
.verify-card { width: min(560px, 100%); margin: 3rem auto; }
main.login-panel { min-height: 100vh; }

/* settings forms (system configuration) */
.setting-card { padding: 0.85rem 0.95rem; border: 1px solid var(--zou-border); border-radius: 12px; background: #fff; }
.setting-label { display: block; font-weight: 800; color: var(--zou-navy); }
.setting-number { width: 8rem; }
.inline-form .grow { flex: 1 1 14rem; }

/* dashboard banners: the picture comes from the stylesheet, not the page */
.command-banner.is-ops { background-image: url("../img/ops.jpg"); }
.command-banner.is-campus { background-image: url("../img/campus.jpg"); }

/* while writing: the candidate left the paper's page, or the camera is covered */
.away-note { margin: 0 0 1rem; padding: 0.7rem 0.9rem; border-radius: 12px; background: #fff6df; border: 1px solid #f0d78c; color: #6b4a00; font-size: 0.9rem; font-weight: 600; }
.exam-cam.is-covered .exam-preview { outline: 3px solid var(--review); }
.exam-cam.is-covered .rec-state { color: var(--review); }

/* the countdown on a paper's page before it opens */
.opens-countdown { margin: 0.4rem 0 0.6rem; font-size: 1.6rem; color: var(--zou-navy); font-variant-numeric: tabular-nums; }

/* a table the server pages itself (no table library): it scrolls inside its card, never the page */
.table-scroll { width: 100%; overflow-x: auto; }

/* a compact table inside a card (summary counts) */
.mini-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.mini-table th { text-align: left; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--zou-muted); padding: 0 0 0.35rem; }
.mini-table th.text-right, .mini-table td.text-right { text-align: right; }
.mini-table td { padding: 0.3rem 0; border-top: 1px solid var(--zou-border); }

@media (max-width: 1100px) {
  .stepper { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .form-grid, .form-grid.cols-3 { grid-template-columns: 1fr; }
  .stepper { grid-template-columns: 1fr; }
  .mark-entry { grid-template-columns: 1fr; }
  a.module-row, .module-row { grid-template-columns: 1fr; gap: 0.2rem; }
  .form-footer { position: static; }
}
@media print {
  .crumbs, .skip-link, .form-footer, .stepper { display: none !important; }
}
