:root {
  --primary: #3157d5;
  --primary-dark: #2443ad;
  --primary-soft: #eef2ff;
  --ink: #152033;
  --muted: #697386;
  --border: #e7eaf0;
  --surface: #ffffff;
  --background: #f6f7fb;
  --sidebar-width: 268px;
  --sidebar-collapsed: 84px;
  --topbar-height: 82px;
  --radius: 16px;
  --shadow: 0 8px 28px rgba(21, 32, 51, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--background);
  font-family: "DM Sans", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button {
  color: inherit;
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(49, 87, 213, 0.25);
  outline-offset: 2px;
}

.app-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  z-index: 30;
  inset: 0 auto 0 0;
  display: flex;
  width: var(--sidebar-width);
  flex-direction: column;
  overflow: hidden;
  color: #dbe3ff;
  background: linear-gradient(180deg, #172554 0%, #192657 45%, #111c40 100%);
  transition: width 220ms ease, transform 220ms ease;
}

.brand {
  display: flex;
  min-height: var(--topbar-height);
  align-items: center;
  gap: 13px;
  padding: 0 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

.brand__mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 13px;
  color: #ffffff;
  background: linear-gradient(135deg, #5478f3, #3157d5);
  box-shadow: 0 8px 18px rgba(49, 87, 213, 0.35);
}

.brand__mark svg {
  width: 24px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand__copy,
.user-menu__copy,
.event-card__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.brand__copy strong {
  color: #ffffff;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.brand__copy span {
  margin-top: 3px;
  color: #91a0cf;
  font-size: 11px;
}

.sidebar__nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 5px;
  overflow-y: auto;
  padding: 18px 14px;
}

.nav-item {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 14px;
  padding: 0 14px;
  border-radius: 11px;
  color: #aebae2;
  text-decoration: none;
  white-space: nowrap;
  transition: color 150ms ease, background 150ms ease, transform 150ms ease;
}

.nav-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
}

.nav-item.active {
  color: #ffffff;
  background: rgba(79, 112, 232, 0.25);
  box-shadow: inset 3px 0 0 #6f8eff;
}

.nav-item svg {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-item span {
  font-size: 14px;
  font-weight: 500;
}

.sidebar__footer {
  padding: 12px 14px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.event-card {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 8px;
  padding: 12px 13px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.06);
  white-space: nowrap;
}

.event-card__dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: #46d7a5;
  box-shadow: 0 0 0 4px rgba(70, 215, 165, 0.12);
}

.event-card span {
  color: #8e9dcc;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.event-card strong {
  margin-top: 2px;
  color: #eef2ff;
  font-size: 13px;
}

.collapse-button {
  display: flex;
  width: 100%;
  min-height: 43px;
  align-items: center;
  gap: 14px;
  padding: 0 15px;
  border: 0;
  border-radius: 10px;
  color: #9da9d3;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
}

.collapse-button:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.collapse-button svg {
  width: 19px;
  flex: 0 0 19px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 220ms ease;
}

.app-main {
  min-height: 100vh;
  margin-left: var(--sidebar-width);
  transition: margin-left 220ms ease;
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  min-height: var(--topbar-height);
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
}

.topbar__left,
.topbar__actions {
  display: flex;
  align-items: center;
}

.topbar__left {
  gap: 14px;
}

.topbar__actions {
  gap: 14px;
}

.school-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.school-filter select {
  width: 190px;
  height: 40px;
  padding: 0 32px 0 11px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--ink);
  outline: none;
  background: #ffffff;
  font: inherit;
  font-size: 12px;
}

.school-filter select:focus {
  border-color: #7b96ef;
  box-shadow: 0 0 0 3px rgba(49, 87, 213, 0.1);
}

.page-heading__eyebrow {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.page-heading h1 {
  margin: 0;
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.icon-button {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #ffffff;
  cursor: pointer;
}

.icon-button:hover {
  background: #f7f8fc;
}

.icon-button svg {
  width: 20px;
  stroke: #536079;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notification-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 7px;
  height: 7px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #f05b65;
}

.mobile-menu-button {
  display: none;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 4px;
}

.avatar {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #3157d5, #7089ea);
  font-size: 12px;
  font-weight: 700;
}

.user-menu__copy strong {
  font-size: 13px;
}

.user-menu__copy span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.user-menu__chevron {
  width: 16px;
  stroke: #8b95a8;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.content {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 34px;
}

.content:focus {
  outline: none;
}

.welcome {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.welcome h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 31px);
  letter-spacing: -0.04em;
}

.welcome p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid #dce4ff;
  border-radius: 999px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.status-pill::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #46b68b;
  content: "";
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.metrics-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading--action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.section-heading h2 {
  margin: 0 0 7px;
  font-size: clamp(24px, 3vw, 30px);
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.import-card {
  display: flex;
  min-height: 360px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  padding: 42px 28px;
  border: 1px dashed #cbd4e8;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
}

.import-card__icon {
  display: grid;
  width: 68px;
  height: 68px;
  margin-bottom: 20px;
  place-items: center;
  border-radius: 19px;
  color: var(--primary);
  background: var(--primary-soft);
}

.import-card__icon svg {
  width: 31px;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.import-card h3 {
  margin: 0 0 8px;
  font-size: 21px;
  letter-spacing: -0.03em;
}

.import-card > p {
  max-width: 520px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.import-school-field {
  width: min(100%, 360px);
  margin-bottom: 20px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.primary-button {
  border: 1px solid var(--primary);
  color: #ffffff;
  background: var(--primary);
  box-shadow: 0 7px 16px rgba(49, 87, 213, 0.2);
}

.primary-button:hover {
  border-color: var(--primary-dark);
  background: var(--primary-dark);
}

.primary-button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.primary-button svg,
.secondary-button svg {
  width: 18px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.heading-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.judge-name {
  color: var(--ink);
  font-weight: 600;
}

.pin-code {
  display: inline-flex;
  padding: 6px 9px;
  border: 1px solid #e0e5ef;
  border-radius: 8px;
  color: #46536a;
  background: #f8f9fc;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.status-badge::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  content: "";
}

.status-badge--active {
  color: #167257;
  background: #e8f7f1;
}

.status-badge--active::before {
  background: #27b487;
}

.status-badge--inactive {
  color: #727b8e;
  background: #eff1f5;
}

.status-badge--inactive::before {
  background: #929bad;
}

.status-badge--pending {
  color: #76571c;
  background: #fff4d8;
}

.status-badge--pending::before {
  background: #e7a52e;
}

.table-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.table-action {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #e0e5ef;
  border-radius: 9px;
  color: #677389;
  background: #ffffff;
  cursor: pointer;
}

.table-action:hover {
  color: var(--primary);
  border-color: #c9d4fa;
  background: var(--primary-soft);
}

.table-action--danger:hover {
  color: #c83d48;
  border-color: #f0cdd0;
  background: #fff1f2;
}

.table-action svg {
  width: 16px;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dialog-overlay {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  overflow-y: auto;
  place-items: center;
  padding: 24px;
  background: rgba(8, 15, 34, 0.58);
  backdrop-filter: blur(4px);
}

.dialog {
  width: min(100%, 470px);
  padding: 27px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 24px 65px rgba(10, 20, 45, 0.24);
}

.dialog--compact {
  width: min(100%, 390px);
  text-align: center;
}

.dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.dialog__eyebrow {
  display: block;
  margin-bottom: 4px;
  color: var(--primary);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.dialog h3 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.dialog--compact > p {
  margin: 7px 0 23px;
  color: var(--muted);
  font-size: 13px;
}

.dialog-description {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.55;
}

.direction-access-note {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.75rem;
}

.protected-value {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.admin-logout-button {
  min-height: 42px;
  padding-inline: 14px;
}

.admin-login-mode .sidebar,
.admin-login-mode .sidebar-overlay,
.admin-login-mode .topbar {
  display: none;
}

.admin-login-mode .app-main {
  margin-left: 0;
}

.admin-login-mode .content {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 18px;
  background:
    radial-gradient(circle at 85% 10%, rgba(49, 87, 213, 0.12), transparent 32%),
    var(--background);
}

.admin-login-card {
  width: min(100%, 440px);
  padding: clamp(24px, 5vw, 38px);
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(25, 45, 75, 0.13);
}

.admin-login-card__mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 15px;
  color: #fff;
  background: var(--primary);
}

.admin-login-card__mark svg {
  width: 25px;
  height: 25px;
  stroke: currentColor;
  stroke-width: 1.8;
}

.admin-login-card__eyebrow {
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.admin-login-card h1 {
  margin: 7px 0 8px;
  color: var(--ink);
  font-size: clamp(1.7rem, 5vw, 2.2rem);
}

.admin-login-card > p,
.admin-login-card > small {
  color: var(--muted);
  line-height: 1.5;
}

.admin-login-card form {
  margin-top: 24px;
}

.admin-login-card form .primary-button,
.admin-login-card > .secondary-button {
  width: 100%;
  justify-content: center;
  min-height: 46px;
}

.admin-login-card__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.admin-login-card__divider::before,
.admin-login-card__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.admin-login-card > small {
  display: block;
  margin-top: 16px;
  text-align: center;
}

.dialog-close {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: #748096;
  background: #ffffff;
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}

.dialog-login-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto 17px;
  place-items: center;
  border-radius: 17px;
  color: var(--primary);
  background: var(--primary-soft);
}

.dialog-login-icon svg {
  width: 27px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.form-field {
  display: flex;
  align-items: stretch;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 17px;
  text-align: left;
}

.form-field > span {
  color: #3f4b60;
  font-size: 12px;
  font-weight: 600;
}

.form-field input,
.form-field select {
  width: 100%;
  height: 45px;
  padding: 0 13px;
  border: 1px solid #d9deea;
  border-radius: 10px;
  color: var(--ink);
  outline: none;
  background: #ffffff;
  font: inherit;
  font-size: 13px;
}

.form-field input:focus,
.form-field select:focus {
  border-color: #7b96ef;
  box-shadow: 0 0 0 3px rgba(49, 87, 213, 0.1);
}

.form-field small {
  color: #8a94a7;
  font-size: 10px;
}

.pin-input {
  text-align: center;
  font-size: 20px !important;
  font-weight: 700 !important;
  letter-spacing: 0.3em;
}

.form-error {
  min-height: 18px;
  margin: -3px 0 12px;
  color: #c83d48;
  font-size: 12px;
  font-weight: 500;
}

.dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}

.dialog__actions--stacked {
  align-items: stretch;
  flex-direction: column;
}

.judge-mode {
  background: linear-gradient(145deg, #f3f6ff 0%, #f7f8fb 55%, #edf3ff 100%);
}

.judge-mode .sidebar,
.judge-mode .sidebar-overlay,
.judge-mode .topbar {
  display: none;
}

.judge-mode .app-main,
.judge-mode.sidebar-collapsed .app-main {
  margin-left: 0;
}

.judge-mode .content {
  display: grid;
  min-height: 100vh;
  max-width: none;
  place-items: center;
}

.judge-environment {
  position: relative;
  width: min(100%, 760px);
  padding: 48px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 20px 60px rgba(30, 48, 95, 0.12);
  text-align: center;
}

.judge-environment__brand {
  display: grid;
  width: 66px;
  height: 66px;
  margin: 0 auto 20px;
  place-items: center;
  border-radius: 19px;
  color: #ffffff;
  background: linear-gradient(135deg, #3157d5, #7089ea);
  box-shadow: 0 10px 24px rgba(49, 87, 213, 0.25);
}

.judge-environment__brand svg {
  width: 31px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.judge-environment__eyebrow {
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.judge-environment h1 {
  margin: 8px 0 4px;
  font-size: clamp(28px, 5vw, 38px);
  letter-spacing: -0.04em;
}

.judge-school-name {
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 13px;
}

.judge-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  margin-bottom: 30px;
  border: 1px solid var(--border);
  border-radius: 16px;
}

.judge-summary article {
  display: flex;
  min-height: 112px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--border);
}

.judge-summary article:last-child {
  border-right: 0;
}

.judge-summary strong {
  font-size: 29px;
  letter-spacing: -0.04em;
}

.judge-summary span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.judge-start-button {
  min-width: 190px;
}

.judge-environment > .judge-exit-button {
  position: absolute;
  top: 20px;
  right: 20px;
}

.judge-exit-button {
  flex: 0 0 auto;
}

.judge-dashboard {
  width: min(100%, 1080px);
  align-self: start;
  margin: 0 auto;
}

.judge-dashboard__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.judge-dashboard__identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 15px;
}

.judge-dashboard__identity .judge-environment__brand {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  margin: 0;
  border-radius: 15px;
}

.judge-dashboard__identity .judge-environment__brand svg {
  width: 25px;
}

.judge-dashboard__identity h1 {
  overflow: hidden;
  margin: 3px 0 1px;
  font-size: clamp(22px, 4vw, 29px);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.judge-dashboard__identity .judge-school-name {
  overflow: hidden;
  margin: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.judge-dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.judge-dashboard-metrics article {
  display: flex;
  min-height: 100px;
  flex-direction: column-reverse;
  justify-content: center;
  gap: 7px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(30, 48, 95, 0.06);
}

.judge-dashboard-metrics span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.judge-dashboard-metrics strong {
  color: var(--ink);
  font-size: clamp(24px, 4vw, 31px);
  letter-spacing: -0.04em;
}

.judge-dashboard-charts {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
}

.judge-dashboard-panel {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(30, 48, 95, 0.06);
}

.judge-dashboard-panel__heading {
  margin-bottom: 18px;
}

.judge-dashboard-panel__heading span {
  color: var(--primary);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.judge-dashboard-panel__heading h2 {
  margin: 4px 0 0;
  font-size: 19px;
  letter-spacing: -0.025em;
}

.judge-progress-chart__content {
  display: flex;
  min-height: 210px;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.judge-donut {
  width: min(48%, 180px);
  height: auto;
  overflow: visible;
}

.judge-donut circle {
  fill: none;
  stroke-width: 13;
}

.judge-donut__background {
  stroke: #e9edf5;
}

.judge-donut__value {
  stroke: var(--primary);
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: center;
}

.judge-donut text {
  fill: var(--ink);
  font-size: 16px;
  font-weight: 800;
}

.judge-donut .judge-donut__caption {
  fill: var(--muted);
  font-size: 7px;
  font-weight: 600;
}

.judge-chart-legend {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.judge-chart-legend span {
  display: grid;
  grid-template-columns: 10px auto 1fr;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
}

.judge-chart-legend strong {
  color: var(--ink);
  font-size: 17px;
}

.judge-chart-legend__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.judge-chart-legend__dot--completed {
  background: var(--primary);
}

.judge-chart-legend__dot--pending {
  background: #dfe5f0;
}

.judge-class-list {
  display: flex;
  max-height: 230px;
  overflow-y: auto;
  flex-direction: column;
  gap: 15px;
  padding-right: 4px;
}

.judge-class-progress__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 7px;
}

.judge-class-progress__label strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.judge-class-progress__label span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.judge-class-progress__track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9edf5;
}

.judge-class-progress__track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), #7189e9);
}

.judge-dashboard-empty {
  margin: 28px 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.judge-dashboard-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.judge-dashboard-actions button {
  min-height: 52px;
  padding-inline: 14px;
  white-space: normal;
}

.judge-workspace {
  width: min(100%, 1080px);
  align-self: start;
  margin: 0 auto;
}

.judge-workspace-header {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(150px, 0.65fr) minmax(320px, 1.7fr) auto;
  gap: 28px;
  margin-bottom: 30px;
  padding: 17px 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.judge-workspace-identity {
  display: flex;
  min-width: 170px;
  flex-direction: column;
  gap: 3px;
}

.judge-workspace-identity strong {
  font-size: 17px;
}

.judge-workspace-identity small {
  color: var(--muted);
  font-size: 11px;
}

.judge-header-context {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.judge-global-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.judge-mode button {
  min-height: 44px;
}

.judge-mode button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.judge-page-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 17px;
}

.judge-page-nav button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.judge-page-nav svg {
  width: 17px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.judge-progress {
  width: min(100%, 520px);
}

.judge-progress__metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(62px, 1fr));
  gap: 8px;
  margin-bottom: 9px;
}

.judge-progress__metrics > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-right: 8px;
  border-right: 1px solid var(--border);
}

.judge-progress__metrics > span:last-child {
  padding-right: 0;
  border-right: 0;
}

.judge-progress__metrics small {
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.judge-progress__metrics strong {
  font-size: 14px;
}

.judge-progress__track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9edf5;
}

.judge-progress__track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), #7189e9);
  transition: width 250ms ease;
}

.judge-page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 20px;
}

.judge-page-heading h1 {
  margin: 0 0 6px;
  font-size: clamp(25px, 4vw, 32px);
  letter-spacing: -0.04em;
}

.judge-page-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.judge-project-tools {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.judge-project-search {
  display: flex;
  width: min(100%, 590px);
  flex-direction: column;
  gap: 7px;
}

.judge-project-search > span {
  color: #3f4b60;
  font-size: 11px;
  font-weight: 700;
}

.judge-project-search input {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: 1px solid #cbd4e8;
  border-radius: 13px;
  color: var(--ink);
  outline: none;
  background: #ffffff;
  box-shadow: 0 5px 16px rgba(21, 32, 51, 0.05);
  font: inherit;
  font-size: 14px;
}

.judge-project-search input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(49, 87, 213, 0.11);
}

.filter-tabs {
  display: flex;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: #ffffff;
}

.filter-tabs button {
  min-height: 44px;
  padding: 0 13px;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.filter-tabs button.active {
  color: var(--primary-dark);
  background: var(--primary-soft);
}

.filter-tabs button span {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  margin-left: 4px;
  place-items: center;
  border-radius: 999px;
  color: #5c6780;
  background: #edf0f6;
  font-size: 10px;
}

.filter-tabs button.active span {
  color: var(--primary-dark);
  background: #ffffff;
}

.judge-results-summary {
  min-height: 18px;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.judge-project-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.judge-project-card {
  display: grid;
  width: 100%;
  min-height: 104px;
  align-items: center;
  grid-template-columns: 145px minmax(0, 1fr) auto 150px;
  gap: 18px;
  padding: 17px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: inherit;
  background: #ffffff;
  box-shadow: 0 5px 18px rgba(21, 32, 51, 0.045);
  text-align: left;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.judge-project-card--pending {
  border-left: 4px solid #d7a740;
}

.judge-project-card--evaluated {
  border-left: 4px solid #83ab9c;
  background: #fbfcfc;
}

.judge-project-card--single {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(49, 87, 213, 0.1), 0 10px 28px rgba(21, 32, 51, 0.08);
}

.judge-project-card:hover {
  transform: translateY(-1px);
  border-color: #cbd6f7;
  box-shadow: 0 8px 23px rgba(21, 32, 51, 0.08);
}

.judge-project-card__code {
  color: var(--primary-dark);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.015em;
}

.judge-project-card__main {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.judge-project-card__main strong {
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.judge-project-card__main span {
  color: var(--muted);
  font-size: 11px;
}

.judge-project-card__action {
  width: 100%;
  padding-inline: 12px;
  white-space: nowrap;
}

.judge-back-button svg {
  width: 18px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.judge-projects-empty {
  display: flex;
  min-height: 330px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  padding: 35px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #ffffff;
  text-align: center;
}

.judge-projects-empty > span {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 16px;
  place-items: center;
  border-radius: 17px;
  color: var(--primary);
  background: var(--primary-soft);
}

.judge-projects-empty svg {
  width: 27px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.judge-projects-empty h2 {
  margin: 0 0 7px;
  font-size: 19px;
}

.judge-projects-empty p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.judge-projects-empty button {
  margin-top: 18px;
}

.judge-back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 17px;
  padding: 0;
  border: 0;
  color: #5f6b80;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.evaluation-project-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) 1.2fr;
  gap: 30px;
  margin-bottom: 20px;
  padding: 25px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.evaluation-project-card__code {
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.evaluation-project-card h1 {
  margin: 7px 0 0;
  font-size: clamp(22px, 4vw, 29px);
  letter-spacing: -0.04em;
}

.evaluation-project-card dl {
  display: grid;
  grid-template-columns: 0.6fr 0.8fr 1.6fr;
  gap: 16px;
  margin: 0;
}

.evaluation-project-card dl div {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.evaluation-project-card dt {
  margin-bottom: 6px;
  color: #8791a3;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.evaluation-project-card dd {
  margin: 0;
  color: #485368;
  font-size: 12px;
  line-height: 1.5;
}

.evaluation-description {
  margin: -4px 0 20px;
  padding: 22px 25px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.evaluation-description h2 {
  margin: 0 0 10px;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.evaluation-description p {
  margin: 0;
  color: #485368;
  font-size: 13px;
  line-height: 1.65;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.evaluation-form {
  padding: 25px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.criteria-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.criterion-card {
  display: grid;
  min-height: 70px;
  align-items: center;
  grid-template-columns: 48px minmax(0, 1fr) 125px;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid #e6e9f0;
  border-radius: 12px;
  background: #fcfcfe;
}

.criterion-card:focus-within {
  border-color: #a9baf2;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(49, 87, 213, 0.07);
}

.criterion-card__code {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 11px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  font-size: 12px;
  font-weight: 700;
}

.criterion-card__label {
  color: #3e495d;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.criterion-card__input {
  display: flex;
  align-items: center;
  gap: 8px;
}

.criterion-card__input input {
  width: 78px;
  height: 44px;
  padding: 0 8px;
  border: 1px solid #d8deea;
  border-radius: 9px;
  color: var(--ink);
  outline: none;
  background: #ffffff;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.criterion-card__input input:focus {
  border-color: var(--primary);
}

.criterion-card__input small {
  color: #8a94a7;
  font-size: 10px;
}

.observations-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
}

.observations-field > span {
  color: #3f4b60;
  font-size: 12px;
  font-weight: 600;
}

.observations-field > span small {
  margin-left: 5px;
  color: #949daf;
  font-weight: 400;
}

.observations-field textarea {
  width: 100%;
  resize: vertical;
  padding: 13px;
  border: 1px solid #d9deea;
  border-radius: 10px;
  color: var(--ink);
  outline: none;
  font: inherit;
  font-size: 13px;
  line-height: 1.5;
}

.observations-field textarea:focus {
  border-color: #7b96ef;
  box-shadow: 0 0 0 3px rgba(49, 87, 213, 0.08);
}

.evaluation-error {
  min-height: 18px;
  margin-top: 12px;
  color: #c83d48;
  font-size: 12px;
  font-weight: 500;
}

.evaluation-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

.evaluation-success {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px 17px;
  border: 1px solid #bfe7d8;
  border-radius: 12px;
  color: #156d53;
  background: #ebf9f4;
}

.evaluation-success > span {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: #27ad82;
}

.evaluation-success svg {
  width: 18px;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.evaluation-success div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.evaluation-success strong {
  font-size: 12px;
}

.evaluation-success small {
  font-size: 10px;
}

.secondary-button {
  border: 1px solid #d7ddea;
  color: var(--primary-dark);
  background: #ffffff;
}

.danger-button {
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid #e1aeb3;
  border-radius: 9px;
  color: #a82f3b;
  background: #fff7f8;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.danger-button:hover {
  border-color: #d78991;
  background: #fff0f2;
}

.import-status {
  min-height: 20px;
  margin-top: 17px;
  font-size: 13px;
  font-weight: 500;
}

.import-status--loading {
  color: var(--primary);
}

.import-status--success {
  color: #16805f;
}

.import-status--error {
  color: #c83d48;
}

.import-note {
  margin-top: 18px;
  padding: 17px 19px;
  border: 1px solid #dfe5f1;
  border-radius: 13px;
  color: #536079;
  background: #f9faff;
}

.import-note strong {
  color: var(--ink);
  font-size: 13px;
}

.import-note p {
  margin: 5px 0 0;
  font-size: 12px;
  line-height: 1.55;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  white-space: nowrap !important;
}

.table-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.table-scroll {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

th,
td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}

th {
  color: #788296;
  background: #fafbfe;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

td {
  color: #4f5a70;
  font-size: 13px;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: #fbfcff;
}

.project-code,
.project-name {
  color: var(--ink);
}

.project-name {
  font-weight: 600;
}

.participant-count {
  display: inline-grid;
  width: 27px;
  height: 27px;
  margin-right: 8px;
  place-items: center;
  border-radius: 8px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  font-size: 12px;
  font-weight: 700;
}

.participant-names {
  display: inline-block;
  max-width: 230px;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
}

.table-empty {
  display: flex;
  min-height: 350px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  padding: 40px 24px;
  text-align: center;
}

.table-empty > span {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 17px;
  color: var(--primary);
  background: var(--primary-soft);
}

.table-empty svg {
  width: 27px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.table-empty h3 {
  margin: 0 0 7px;
  font-size: 19px;
}

.table-empty p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13px;
}

.metric-card {
  position: relative;
  min-height: 168px;
  overflow: hidden;
  padding: 23px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(21, 32, 51, 0.1);
}

.metric-card::after {
  position: absolute;
  right: -30px;
  bottom: -42px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--card-soft);
  content: "";
}

.metric-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.metric-card__icon {
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  border-radius: 13px;
  color: var(--card-color);
  background: var(--card-soft);
}

.metric-card__icon svg {
  width: 23px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.metric-card__label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.metric-card__value {
  display: block;
  margin-top: 25px;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.metric-card__hint {
  display: block;
  margin-top: 8px;
  color: #8992a3;
  font-size: 11px;
}

.module-placeholder {
  display: grid;
  min-height: calc(100vh - 150px);
  place-items: center;
}

.empty-state {
  width: min(100%, 540px);
  padding: 48px 34px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
}

.empty-state__icon {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  place-items: center;
  border-radius: 18px;
  color: var(--primary);
  background: var(--primary-soft);
}

.empty-state__icon svg {
  width: 29px;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.empty-state h2 {
  margin: 0 0 9px;
  font-size: 23px;
  letter-spacing: -0.03em;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

body.sidebar-collapsed .sidebar {
  width: var(--sidebar-collapsed);
}

body.sidebar-collapsed .app-main {
  margin-left: var(--sidebar-collapsed);
}

body.sidebar-collapsed .brand {
  padding-inline: 21px;
}

body.sidebar-collapsed .brand__copy,
body.sidebar-collapsed .nav-item span,
body.sidebar-collapsed .event-card__copy,
body.sidebar-collapsed .collapse-button span {
  opacity: 0;
  pointer-events: none;
}

body.sidebar-collapsed .collapse-button svg {
  transform: rotate(180deg);
}

body.sidebar-collapsed .event-card {
  justify-content: center;
  padding-inline: 0;
}

@media (max-width: 1100px) {
  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metrics-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .sidebar,
  body.sidebar-collapsed .sidebar {
    width: min(86vw, var(--sidebar-width));
    transform: translateX(-100%);
  }

  body.mobile-nav-open .sidebar {
    transform: translateX(0);
  }

  .sidebar-overlay {
    position: fixed;
    z-index: 25;
    inset: 0;
    visibility: hidden;
    opacity: 0;
    background: rgba(8, 15, 34, 0.48);
    transition: opacity 180ms ease, visibility 180ms ease;
  }

  body.mobile-nav-open .sidebar-overlay {
    visibility: visible;
    opacity: 1;
  }

  .app-main,
  body.sidebar-collapsed .app-main {
    margin-left: 0;
  }

  .mobile-menu-button {
    display: grid;
  }

  .collapse-button {
    display: none;
  }

  .topbar {
    min-height: 72px;
    padding: 0 18px;
  }

  .page-heading__eyebrow,
  .user-menu__copy,
  .user-menu__chevron {
    display: none;
  }

  .page-heading h1 {
    font-size: 18px;
  }

  .school-filter > span {
    display: none;
  }

  .school-filter select {
    width: 150px;
  }

  .content {
    padding: 25px 18px;
  }

  .welcome {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 22px;
  }

  .metrics-grid--three {
    grid-template-columns: 1fr;
  }

  .section-heading--action {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-heading--action .primary-button {
    width: 100%;
  }

  .heading-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .heading-actions .primary-button,
  .heading-actions .secondary-button {
    width: 100%;
  }

  .judge-environment {
    padding: 34px 20px;
  }

  .judge-dashboard__header {
    padding: 17px;
  }

  .judge-dashboard-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .judge-dashboard-charts {
    grid-template-columns: 1fr;
  }

  .judge-dashboard-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .judge-workspace-header,
  .judge-page-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .judge-workspace-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    margin-bottom: 18px;
    padding: 14px 16px;
  }

  .judge-progress {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .judge-global-actions {
    grid-column: 2;
    grid-row: 1;
  }

  .judge-header-context {
    display: none;
  }

  .judge-progress {
    width: 100%;
  }

  .judge-project-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .judge-project-search {
    width: 100%;
  }

  .filter-tabs {
    width: 100%;
  }

  .filter-tabs button {
    flex: 1;
    padding-inline: 7px;
  }

  .judge-project-card {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 12px;
    padding: 16px;
  }

  .judge-project-card__code,
  .judge-project-card__main {
    grid-column: 1;
  }

  .judge-project-card .status-badge {
    grid-column: 2;
    grid-row: 1;
  }

  .judge-project-card__action {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 3px;
  }

  .evaluation-project-card {
    grid-template-columns: 1fr;
  }

  .evaluation-project-card dl {
    grid-template-columns: repeat(3, 1fr);
  }

  .criterion-card {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .criterion-card__input {
    grid-column: 2;
  }

  .evaluation-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .evaluation-actions .primary-button,
  .evaluation-actions .secondary-button {
    width: 100%;
  }

  .judge-summary {
    grid-template-columns: 1fr;
  }

  .judge-summary article {
    min-height: 88px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .judge-summary article:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 520px) {
  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .metric-card {
    min-height: 152px;
  }

  .topbar__actions {
    gap: 8px;
  }

  .school-filter select {
    width: 128px;
  }

  .avatar {
    width: 38px;
    height: 38px;
  }

  .dialog-overlay {
    align-items: end;
    padding: 12px;
  }

  .dialog {
    padding: 23px 19px;
    border-radius: 18px;
  }

  .filter-tabs {
    width: 100%;
  }

  .filter-tabs button {
    flex: 1;
    min-width: 0;
    padding-inline: 4px;
    font-size: 11px;
  }

  .filter-tabs button span {
    min-width: 19px;
    height: 19px;
    margin-left: 2px;
  }

  .judge-progress__metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .judge-progress__metrics > span:nth-child(2) {
    border-right: 0;
  }

  .judge-workspace-identity {
    min-width: 0;
  }

  .judge-workspace-identity strong,
  .judge-workspace-identity small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .judge-global-actions {
    gap: 6px;
  }

  .judge-global-actions button {
    min-width: 64px;
    padding-inline: 10px;
  }

  .judge-page-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .judge-page-nav button:only-child {
    grid-column: 1 / -1;
  }

  .judge-mode .content {
    padding: 16px 12px;
  }

  .judge-dashboard__header {
    align-items: flex-start;
  }

  .judge-dashboard__identity {
    gap: 10px;
  }

  .judge-dashboard__identity .judge-environment__brand {
    width: 44px;
    height: 44px;
  }

  .judge-dashboard__identity h1 {
    max-width: 54vw;
    font-size: 20px;
  }

  .judge-dashboard__header .judge-exit-button {
    min-height: 42px;
    padding-inline: 13px;
  }

  .judge-dashboard-metrics {
    gap: 9px;
  }

  .judge-dashboard-metrics article {
    min-height: 88px;
    padding: 14px;
  }

  .judge-dashboard-panel {
    padding: 18px 16px;
  }

  .judge-progress-chart__content {
    min-height: 180px;
    gap: 18px;
  }

  .judge-donut {
    width: min(48%, 150px);
  }

  .judge-dashboard-actions {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .judge-dashboard-actions button {
    width: 100%;
  }

  .judge-project-card__code {
    font-size: 16px;
  }

  .evaluation-project-card,
  .evaluation-description,
  .evaluation-form {
    padding: 18px;
  }

  .evaluation-project-card dl {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* TASK-006B — Ranking institucional */
.ranking-board {
  overflow: hidden;
  border: 1px solid #d8e1eb;
  border-radius: 22px;
  background: #f5f7fa;
  box-shadow: 0 18px 45px rgba(24, 47, 78, 0.09);
}

.ranking-board__header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  padding: clamp(24px, 4vw, 46px);
  color: #fff;
  background: linear-gradient(125deg, #102d50, #1d5783);
}

.ranking-board--complete .ranking-board__header { background: linear-gradient(125deg, #0b4939, #167057); }
.ranking-board__header span { color: #a9c8df; text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 800; }
.ranking-board__header h2 { margin: 5px 0; font-size: clamp(30px, 4vw, 56px); line-height: 1; letter-spacing: -.04em; }
.ranking-board__header > div > strong { color: #dceaf4; font-size: 18px; }
.ranking-board__progress { text-align: right; }
.ranking-board__progress strong { display: block; font-size: clamp(38px, 5vw, 68px); line-height: .9; }
.ranking-board__progress span { display: block; margin-top: 10px; color: #dceaf4; letter-spacing: .02em; text-transform: none; }
.ranking-board__notice { margin: 0; padding: 15px clamp(20px, 4vw, 46px); color: #684b17; background: #fff2d4; font-weight: 700; }
.ranking-board--complete .ranking-board__notice { color: #155a43; background: #dff3e9; }
.ranking-list { display: grid; gap: 12px; padding: clamp(16px, 3vw, 30px); }
.ranking-entry { display: grid; grid-template-columns: 110px minmax(220px, 1fr) 150px 130px; gap: 18px; align-items: center; min-width: 0; padding: 20px; border: 1px solid #dce4ec; border-left: 5px solid #8ea2b6; border-radius: 15px; background: #fff; }
.ranking-entry--top { border-left-color: #d59b30; box-shadow: 0 8px 24px rgba(20, 45, 76, .07); }
.ranking-entry--place-1 { background: linear-gradient(90deg, #fffaf0, #fff 35%); }
.ranking-entry--incomplete { border-style: dashed; background-color: #fafbfc; }
.ranking-entry__position strong { display: block; color: #173c66; font-size: 42px; line-height: .9; }
.ranking-entry__position span, .ranking-entry__score span, .ranking-entry__coverage small { display: block; margin-top: 7px; color: #718194; text-transform: uppercase; letter-spacing: .07em; font-size: 9px; font-weight: 800; }
.ranking-entry__identity { min-width: 0; }
.ranking-entry__identity > strong { color: #2b5d89; letter-spacing: .05em; }
.ranking-entry__identity h3 { margin: 5px 0 0; overflow-wrap: anywhere; color: #1a334f; font-size: 18px; }
.ranking-entry__coverage span { color: #284966; font-weight: 800; }
.ranking-entry__coverage em { display: block; margin-top: 7px; color: #946317; font-size: 11px; font-style: normal; font-weight: 750; }
.ranking-entry__score { text-align: right; }
.ranking-entry__score > strong { color: #153d63; font-size: 31px; }
.ranking-entry__waiting { display: block; color: #68798b !important; font-size: 12px !important; line-height: 1.3; }
.ranking-entry__tie { grid-column: 2 / -1; padding-top: 12px; border-top: 1px solid #ead9b4; color: #805413; }
.ranking-entry__tie strong { margin-right: 12px; padding: 5px 9px; border-radius: 999px; background: #fff0c9; font-size: 11px; letter-spacing: .08em; }
.ranking-entry__tie span { font-size: 12px; font-weight: 700; }
.ranking-empty { padding: 48px 24px; display: grid; gap: 7px; text-align: center; color: #708196; }
.ranking-empty strong { color: #294662; font-size: 18px; }
.ranking-school-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; }
.ranking-school-card { min-height: 250px; padding: 25px; border: 1px solid #d8e2eb; border-radius: 18px; text-align: left; color: #203b58; background: #fff; box-shadow: 0 10px 30px rgba(20, 45, 76, .06); transition: transform .18s, box-shadow .18s; }
.ranking-school-card:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(20, 45, 76, .11); }
.ranking-school-card > span { color: #6a7e92; font-size: 10px; font-weight: 800; letter-spacing: .09em; }
.ranking-school-card h3 { margin: 7px 0 24px; color: #173c66; font-size: 22px; }
.ranking-school-card div strong { display: block; font-size: 42px; line-height: 1; }
.ranking-school-card div small { color: #718296; }
.ranking-school-card p { min-height: 38px; color: #566b80; }
.ranking-school-card em { color: #3157d5; font-style: normal; font-weight: 800; }

@media (max-width: 900px) {
  .ranking-entry { grid-template-columns: 82px minmax(0, 1fr) 115px; }
  .ranking-entry__coverage { grid-column: 2; }
  .ranking-entry__score { grid-column: 3; grid-row: 1 / span 2; }
  .ranking-entry__tie { grid-column: 2 / -1; }
}

@media (max-width: 600px) {
  .ranking-board__header { align-items: flex-start; flex-direction: column; }
  .ranking-board__progress { text-align: left; }
  .ranking-entry { grid-template-columns: 64px minmax(0, 1fr); gap: 13px; padding: 16px; }
  .ranking-entry__position strong { font-size: 34px; }
  .ranking-entry__coverage { grid-column: 2; }
  .ranking-entry__score { grid-column: 1 / -1; grid-row: auto; padding-top: 12px; border-top: 1px solid #e3e9ef; text-align: left; }
  .ranking-entry__tie { grid-column: 1 / -1; }
  .ranking-entry__tie strong, .ranking-entry__tie span { display: block; width: fit-content; }
  .ranking-entry__tie span { margin-top: 8px; }
}

/* TASK-006C — UX administrativa do ranking */
.admin-ranking-page { display: grid; gap: 20px; }
.ranking-admin-topbar, .ranking-overview-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.ranking-admin-topbar { justify-content: flex-start; }
.ranking-admin-topbar .secondary-button, .ranking-overview-heading .secondary-button { min-height: 44px; }
.ranking-admin-topbar svg, .ranking-overview-heading svg { width: 18px; }
.ranking-overview-heading > div > span, .ranking-hero > div > span, .ranking-section__heading > div > span { display: block; color: #62778d; text-transform: uppercase; letter-spacing: .11em; font-size: 11px; font-weight: 850; }
.ranking-overview-heading h2 { margin: 4px 0; color: #163b62; font-size: clamp(28px, 3vw, 42px); }
.ranking-overview-heading p { margin: 0; color: #64778b; }
.ranking-hero { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding: clamp(25px, 4vw, 44px); overflow: hidden; position: relative; color: #fff; border-radius: 20px; background: linear-gradient(125deg, #102e51, #1f608d); box-shadow: 0 14px 36px rgba(16,46,81,.18); }
.ranking-hero::after { content: ""; position: absolute; width: 290px; height: 290px; right: -130px; top: -170px; border: 46px solid rgba(255,255,255,.05); border-radius: 50%; }
.ranking-hero--complete { background: linear-gradient(125deg, #0a4a38, #147457); }
.ranking-hero > div { position: relative; z-index: 1; }
.ranking-hero > div > span { color: #9fc3df; }
.ranking-hero h1 { margin: 5px 0 13px; font-size: clamp(30px, 4vw, 54px); line-height: 1; letter-spacing: -.035em; }
.ranking-hero > div > strong { display: block; color: #ffd985; font-size: 13px; letter-spacing: .06em; }
.ranking-hero p { margin: 7px 0 0; color: #d7e6f1; }
.ranking-hero__percentage { text-align: right; }
.ranking-hero__percentage strong { display: block; font-size: clamp(44px, 6vw, 76px); line-height: .85; }
.ranking-hero__percentage span { display: block; margin-top: 10px; color: #d3e5f2 !important; }
.ranking-summary { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 10px; }
.ranking-summary article { min-width: 0; padding: 17px 18px; border-radius: 13px; background: #fff; box-shadow: 0 6px 20px rgba(20,45,76,.055); }
.ranking-summary span { display: block; min-height: 30px; color: #65798d; text-transform: uppercase; font-size: 9px; letter-spacing: .07em; font-weight: 800; }
.ranking-summary strong { color: #173c66; font-size: clamp(24px, 2.5vw, 37px); }
.ranking-progress { height: 12px; overflow: hidden; border-radius: 999px; background: #dce5ed; }
.ranking-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#3157d5,#2aa875); transition: width .4s ease; }
.ranking-section { padding: clamp(20px,3vw,30px); border-radius: 18px; background: #fff; box-shadow: 0 9px 28px rgba(20,45,76,.06); }
.ranking-section__heading { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 20px; }
.ranking-section__heading h2 { margin: 4px 0 0; color: #173b60; font-size: clamp(22px,2.5vw,31px); }
.ranking-section__heading--tools { align-items: end; }
.ranking-search { flex: 0 1 370px; }
.ranking-search-wrap { flex: 0 1 430px; display: flex; align-items: end; gap: 8px; }
.ranking-search-wrap .ranking-search { flex: 1; }
.ranking-search span { display: block; margin-bottom: 6px; color: #5d7186; font-size: 12px; font-weight: 750; }
.ranking-search input { width: 100%; min-height: 46px; padding: 0 14px; border: 1px solid #bccbda; border-radius: 10px; color: #183958; background: #fff; }
.ranking-clear-search { min-height: 46px; padding: 0 13px; border: 1px solid #c7d3df; border-radius: 10px; color: #36536f; background: #fff; font-weight: 750; }
.ranking-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.ranking-filters button { min-height: 44px; padding: 0 13px; border: 1px solid #cbd7e2; border-radius: 999px; color: #425d78; background: #f8fafc; font-weight: 750; }
.ranking-filters button span { display: inline-grid; place-items: center; min-width: 21px; height: 21px; margin-left: 5px; padding: 0 5px; border-radius: 999px; background: #e7edf3; font-size: 10px; }
.ranking-filters button.active { color: #fff; border-color: #1e4f7b; background: #1e4f7b; }
.ranking-filters button.active span { color: #173c66; background: #fff; }
.ranking-rows, .ranking-waiting-list { display: grid; gap: 9px; }
.ranking-row { display: grid; grid-template-columns: 72px minmax(190px,1fr) 100px 90px auto; align-items: center; gap: 16px; padding: 15px 17px; border-left: 4px solid #8da2b5; border-radius: 11px; background: #f7f9fb; }
.ranking-row--tie { border-left-color: #d59a2e; background: #fffbf3; }
.ranking-row__position strong { display: block; color: #153e65; font-size: 30px; line-height: 1; }
.ranking-row__position span, .ranking-row__score span, .ranking-row__coverage span { display: block; margin-top: 4px; color: #718397; text-transform: uppercase; letter-spacing: .06em; font-size: 8px; font-weight: 800; }
.ranking-row__identity { min-width: 0; }
.ranking-row__identity > strong { color: #2c608d; font-size: 13px; letter-spacing: .04em; }
.ranking-row__identity h3 { margin: 3px 0 0; overflow-wrap: anywhere; color: #1d3954; font-size: 15px; }
.ranking-row__score > strong { color: #123d63; font-size: 24px; }
.ranking-row__coverage > strong { color: #294b69; font-size: 16px; }
.ranking-state { display: inline-flex; justify-content: center; width: fit-content; padding: 6px 9px; border-radius: 999px; text-transform: uppercase; white-space: nowrap; font-size: 9px; font-weight: 850; }
.ranking-state--complete { color: #126143; background: #e1f3ea; }
.ranking-state--progress { color: #805214; background: #fff0d2; }
.ranking-row__tie { grid-column: 2 / -1; padding-top: 9px; border-top: 1px solid #ead8b1; color: #795113; font-size: 12px; font-weight: 700; }
.ranking-row__tie strong { margin-right: 10px; padding: 4px 8px; border-radius: 999px; background: #ffedbe; font-size: 10px; letter-spacing: .07em; }
.ranking-waiting { background: #f7f9fb; }
.ranking-waiting-row { display: grid; grid-template-columns: minmax(180px,1fr) 180px auto; align-items: center; gap: 16px; padding: 15px 17px; border: 1px dashed #c9d4df; border-radius: 11px; background: #fff; }
.ranking-waiting-row div > strong { color: #476985; font-size: 13px; }
.ranking-waiting-row h3 { margin: 3px 0 0; overflow-wrap: anywhere; color: #29435c; font-size: 15px; }
.ranking-waiting-row > span { color: #617589; font-size: 12px; }
.ranking-waiting-row em { color: #647587; font-size: 9px; font-style: normal; font-weight: 850; letter-spacing: .05em; }
.ranking-waiting-toggle { width: 100%; margin-top: 14px; }
.ranking-podium { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; align-items: end; }
.ranking-podium-card { min-width: 0; min-height: 245px; padding: 20px; border-radius: 16px; background: #f2f5f8; }
.ranking-podium-card--1 { order: 2; min-height: 285px; color: #fff; background: linear-gradient(145deg,#173c66,#245f8b); box-shadow: 0 13px 30px rgba(23,60,102,.2); }
.ranking-podium-card--2 { order: 1; }
.ranking-podium-card--3 { order: 3; }
.ranking-podium-card__place strong { display: block; color: #c39130; font-size: 44px; line-height: 1; }
.ranking-podium-card--1 .ranking-podium-card__place strong { color: #ffd166; font-size: 56px; }
.ranking-podium-card__place span { display: block; margin-top: 5px; text-transform: uppercase; font-size: 10px; letter-spacing: .08em; font-weight: 850; }
.ranking-podium-card__projects { display: grid; gap: 12px; margin-top: 20px; }
.ranking-podium-card__projects > div + div { padding-top: 12px; border-top: 1px solid rgba(104,125,146,.25); }
.ranking-podium-card__projects > div > strong { color: #34658f; font-size: 12px; letter-spacing: .04em; }
.ranking-podium-card--1 .ranking-podium-card__projects > div > strong { color: #b9d5e8; }
.ranking-podium-card h3 { margin: 4px 0; overflow-wrap: anywhere; font-size: 17px; }
.ranking-podium-card__projects span { font-size: 25px; font-weight: 850; }
.ranking-podium-card > p { margin: 17px 0 0; font-size: 11px; }
.ranking-podium-card > p strong, .ranking-podium-card > p span { display: block; }
.ranking-podium-card > p strong { width: fit-content; margin-bottom: 5px; padding: 4px 7px; border-radius: 999px; color: #6d470d; background: #ffe4a4; }
.ranking-school-card { display: flex; flex-direction: column; min-height: 330px; }
.ranking-school-card__status { min-height: 26px; }
.ranking-school-card__metrics { display: grid; grid-template-columns: repeat(2,1fr); gap: 9px; margin-bottom: 18px; }
.ranking-school-card__metrics span { padding: 11px; border-radius: 9px; color: #65798d; background: #f2f5f8; font-size: 11px; }
.ranking-school-card__metrics strong { display: block; color: #173c66; font-size: 24px !important; }
.ranking-school-card__result { margin-top: auto; }
.ranking-school-card__result strong { display: block; color: #173c66; font-size: 40px; }
.ranking-school-card__result span { color: #65788c; font-size: 12px; }
.ranking-school-card__progress { height: 8px; margin: 12px 0 18px; overflow: hidden; border-radius: 999px; background: #dfe7ee; }
.ranking-school-card__progress span { display: block; height: 100%; border-radius: inherit; background: #2aa875; }
.ranking-school-card .primary-button { width: 100%; }
.ranking-school-card:hover { transform: none; }
.ranking-admin-topbar button:focus-visible, .ranking-overview-heading button:focus-visible, .ranking-filters button:focus-visible, .ranking-school-card button:focus-visible, .ranking-search input:focus-visible { outline: 3px solid #f2b84b; outline-offset: 2px; }

@media (max-width: 980px) {
  .ranking-summary { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .ranking-row { grid-template-columns: 66px minmax(0,1fr) 90px 80px; }
  .ranking-row > .ranking-state { grid-column: 2 / -1; }
}

@media (max-width: 700px) {
  .ranking-admin-topbar { display: grid; grid-template-columns: 1fr 1fr; }
  .ranking-admin-topbar button { width: 100%; }
  .ranking-overview-heading, .ranking-hero, .ranking-section__heading--tools { align-items: stretch; flex-direction: column; }
  .ranking-overview-heading .secondary-button { width: 100%; }
  .ranking-hero__percentage { text-align: left; }
  .ranking-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ranking-summary article:last-child { grid-column: 1 / -1; }
  .ranking-podium { grid-template-columns: 1fr; }
  .ranking-podium-card, .ranking-podium-card--1 { order: initial; min-height: 0; }
  .ranking-podium-card--1 { order: -1; }
  .ranking-search { flex: auto; }
  .ranking-search-wrap { flex: auto; width: 100%; }
  .ranking-filters { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ranking-filters button { padding-inline: 8px; }
  .ranking-row { grid-template-columns: 56px minmax(0,1fr) auto; gap: 11px; }
  .ranking-row__score { grid-column: 3; grid-row: 1; text-align: right; }
  .ranking-row__coverage { grid-column: 2; }
  .ranking-row > .ranking-state { grid-column: 2 / -1; }
  .ranking-row__tie { grid-column: 1 / -1; }
  .ranking-waiting-row { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 420px) {
  .ranking-admin-topbar { grid-template-columns: 1fr; }
  .ranking-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ranking-summary article { padding: 14px; }
  .ranking-filters { grid-template-columns: 1fr; }
  .ranking-search-wrap { align-items: stretch; flex-direction: column; }
  .ranking-clear-search { width: 100%; }
  .ranking-row { grid-template-columns: 48px minmax(0,1fr); }
  .ranking-row__score, .ranking-row__coverage, .ranking-row > .ranking-state { grid-column: 2; grid-row: auto; text-align: left; }
}

/* TASK-008 — Backup administrativo */
.backup-page { display: grid; gap: 20px; max-width: 1120px; margin-inline: auto; }
.backup-page__heading { margin-bottom: 0; }
.backup-page__heading h2 { margin: 4px 0 7px; color: #173b60; font-size: clamp(27px, 3vw, 40px); }
.backup-page__heading p { margin: 0; color: #61758a; }
.backup-eyebrow { display: block; color: #60768b; text-transform: uppercase; letter-spacing: .11em; font-size: 10px; font-weight: 850; }
.backup-card { min-width: 0; padding: clamp(20px, 3vw, 30px); border: 1px solid #dae3eb; border-radius: 18px; background: #fff; box-shadow: 0 9px 28px rgba(20,45,76,.06); }
.backup-card__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.backup-card__header h3 { margin: 4px 0 0; color: #173b60; font-size: 23px; }
.backup-card__safe { padding: 7px 11px; border-radius: 999px; color: #176048; background: #e5f4ec; white-space: nowrap; font-size: 11px; font-weight: 800; }
.backup-card__description { margin: -6px 0 18px; color: #60758a; }
.backup-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; }
.backup-summary article { min-width: 0; padding: 16px; border-radius: 12px; background: #f4f7fa; }
.backup-summary span { display: block; min-height: 30px; color: #64798e; text-transform: uppercase; letter-spacing: .07em; font-size: 9px; font-weight: 800; }
.backup-summary strong { display: block; color: #173c64; font-size: clamp(25px, 3vw, 37px); }
.backup-session-info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.backup-session-info p { margin: 0; padding: 13px 15px; border: 1px solid #dce4ec; border-radius: 10px; }
.backup-session-info span, .backup-session-info strong { display: block; }
.backup-session-info span { color: #667b90; font-size: 11px; }
.backup-session-info strong { margin-top: 4px; overflow-wrap: anywhere; color: #294967; font-size: 13px; }
.backup-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.backup-actions button { min-height: 46px; }
.backup-primary-action svg { width: 18px; }
.backup-message { padding: 13px 16px; border: 1px solid; border-radius: 11px; font-weight: 700; }
.backup-message--success { color: #155e46; border-color: #bfe2d2; background: #eaf7f1; }
.backup-message--error { color: #9f2f2f; border-color: #ebc3c3; background: #fff0f0; }
.backup-file-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.backup-file-button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border: 1px solid #3157d5; border-radius: 10px; color: #3157d5; background: #fff; cursor: pointer; font-weight: 800; }
.backup-file-button:hover { background: #f0f3ff; }
.backup-preview { margin-top: 22px; padding: clamp(18px, 3vw, 25px); border: 1px solid #cbd8e4; border-radius: 14px; background: #f8fafc; }
.backup-preview h4 { margin: 5px 0 16px; color: #193d61; font-size: 21px; }
.backup-preview dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 14px; }
.backup-preview dl div { padding: 12px; border-radius: 9px; background: #fff; }
.backup-preview dt { color: #667b90; font-size: 10px; font-weight: 750; text-transform: uppercase; }
.backup-preview dd { margin: 4px 0 0; color: #294a69; font-weight: 800; }
.backup-warning, .backup-safe-note { margin: 15px 0 0; padding: 12px 14px; border-radius: 9px; line-height: 1.5; }
.backup-warning { color: #744811; background: #fff1d6; }
.backup-safe-note { color: #185c46; background: #e6f4ed; }
.backup-restore-button { width: 100%; min-height: 47px; margin-top: 17px; }
.backup-confirm-dialog { max-width: 640px; }
.backup-confirm-warning { padding: 13px 15px; border-left: 4px solid #c2413b; color: #782d29; background: #fff0ef; line-height: 1.5; }
.backup-pin-list { display: grid; gap: 12px; margin: 18px 0; padding: 16px; border: 1px solid #d5dfe8; border-radius: 11px; }
.backup-pin-list legend { padding: 0 7px; color: #183d61; font-weight: 800; }
.backup-pin-list p { margin: 0; color: #62768b; font-size: 12px; }
.backup-pin-list label { display: grid; gap: 6px; color: #294966; font-weight: 750; }
.backup-pin-list label small { color: #718397; font-weight: 500; }
.backup-pin-list input, #restore-confirm-text { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid #b9c9d7; border-radius: 9px; }
.backup-confirm-check { display: flex !important; align-items: flex-start; gap: 9px; margin: 17px 0; color: #374f67; line-height: 1.45; }
.backup-confirm-check input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; }
.backup-page button:focus-visible, .backup-page input:focus-visible, .backup-file-button:focus-visible { outline: 3px solid #f2b84b; outline-offset: 2px; }

@media (max-width: 700px) {
  .backup-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .backup-session-info { grid-template-columns: 1fr; }
  .backup-card__header { align-items: flex-start; flex-direction: column; }
  .backup-preview dl { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  .backup-actions { display: grid; grid-template-columns: 1fr; }
  .backup-actions button, .backup-file-button { width: 100%; }
  .backup-summary article { padding: 13px; }
  .backup-confirm-dialog .dialog__actions { display: grid; grid-template-columns: 1fr; }
  .backup-confirm-dialog .dialog__actions button { width: 100%; }
}

/* TASK-009 — Central Administrativa */
.admin-dashboard { display: grid; gap: 20px; width: 100%; max-width: 1440px; margin-inline: auto; }
.admin-dashboard-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(430px, .9fr); gap: clamp(24px, 4vw, 52px); align-items: center; min-width: 0; padding: clamp(27px, 4vw, 48px); overflow: hidden; position: relative; color: #fff; border-radius: 22px; background: linear-gradient(128deg, #102e52, #1c5e8c); box-shadow: 0 16px 42px rgba(16, 46, 82, .2); }
.admin-dashboard-hero::after { content: ""; position: absolute; top: -170px; right: -135px; width: 330px; height: 330px; border: 50px solid rgba(255,255,255,.045); border-radius: 50%; pointer-events: none; }
.admin-dashboard-hero__copy, .admin-dashboard-context { position: relative; z-index: 1; }
.admin-dashboard-hero__copy > span { color: #9fc7e3; text-transform: uppercase; letter-spacing: .13em; font-size: 10px; font-weight: 850; }
.admin-dashboard-hero h2 { margin: 7px 0 10px; font-size: clamp(31px, 4vw, 54px); line-height: .98; letter-spacing: -.04em; }
.admin-dashboard-hero__copy p { margin: 0; color: #d6e6f1; font-size: 15px; }
.admin-dashboard-context { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 0; }
.admin-dashboard-context div { min-width: 0; padding: 13px 14px; border: 1px solid rgba(255,255,255,.12); border-radius: 11px; background: rgba(255,255,255,.075); }
.admin-dashboard-context dt { color: #a9c8dd; text-transform: uppercase; letter-spacing: .08em; font-size: 8px; font-weight: 850; }
.admin-dashboard-context dd { margin: 5px 0 0; overflow-wrap: anywhere; color: #fff; font-size: 12px; font-weight: 750; }
.admin-dashboard-metrics { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.admin-dashboard-metrics article { display: flex; min-width: 0; min-height: 126px; padding: 17px; border: 1px solid #dae3eb; border-radius: 14px; background: #fff; box-shadow: 0 7px 22px rgba(20,45,76,.055); }
.admin-dashboard-metric__icon { display: grid; place-items: center; flex: 0 0 auto; width: 37px; height: 37px; margin-right: 11px; border-radius: 10px; color: #315c88; background: #eaf1f7; }
.admin-dashboard-metric__icon svg { width: 19px; }
.admin-dashboard-metrics article > div { display: flex; flex-direction: column; min-width: 0; }
.admin-dashboard-metrics article > div > span { min-height: 28px; color: #61768a; text-transform: uppercase; letter-spacing: .065em; font-size: 8px; font-weight: 850; }
.admin-dashboard-metrics article strong { margin-top: 4px; color: #163d64; font-size: clamp(23px, 2.2vw, 35px); line-height: 1; }
.admin-dashboard-metrics article small { margin-top: auto; padding-top: 8px; color: #78899a; font-size: 9px; }
.admin-dashboard-panel { min-width: 0; padding: clamp(20px, 3vw, 30px); border: 1px solid #dbe4ec; border-radius: 18px; background: #fff; box-shadow: 0 9px 28px rgba(20,45,76,.06); }
.admin-dashboard-overall { color: #fff; border: 0; background: linear-gradient(115deg, #173d65, #236a87); }
.admin-dashboard-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 19px; }
.admin-dashboard-section-heading > div > span { display: block; color: #61768b; text-transform: uppercase; letter-spacing: .11em; font-size: 9px; font-weight: 850; }
.admin-dashboard-section-heading h3 { margin: 4px 0 0; color: #173b60; font-size: clamp(21px, 2.5vw, 29px); }
.admin-dashboard-section-heading > strong { display: grid; place-items: center; min-width: 34px; height: 34px; padding-inline: 8px; border-radius: 999px; color: #174569; background: #e8f0f6; font-size: 13px; }
.admin-dashboard-overall .admin-dashboard-section-heading > div > span { color: #a8ccdf; }
.admin-dashboard-overall .admin-dashboard-section-heading h3 { color: #fff; }
.admin-dashboard-overall .admin-dashboard-section-heading > strong { height: auto; color: #fff; background: transparent; font-size: clamp(38px, 5vw, 64px); line-height: .9; }
.admin-dashboard-overall > p { margin: 0 0 15px; color: #d7e6ef; }
.admin-dashboard-overall > p strong { color: #fff; }
.admin-dashboard-progress { height: 10px; overflow: hidden; border-radius: 999px; background: #dce5ed; }
.admin-dashboard-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #3157d5, #28a578); transition: width .3s ease; }
.admin-dashboard-overall .admin-dashboard-progress { height: 13px; background: rgba(255,255,255,.17); }
.admin-dashboard-overall .admin-dashboard-progress span { background: linear-gradient(90deg, #ffd166, #68d5a8); }
.admin-dashboard-state { display: inline-flex; align-items: center; justify-content: center; width: fit-content; padding: 5px 8px; border-radius: 999px; text-transform: uppercase; white-space: nowrap; letter-spacing: .045em; font-size: 8px; font-weight: 900; }
.admin-dashboard-state--waiting { color: #69562c; background: #f0e9d9; }
.admin-dashboard-state--progress { color: #7b4c0e; background: #fff0cf; }
.admin-dashboard-state--complete { color: #126047; background: #def2e9; }
.admin-dashboard-context .admin-dashboard-state { color: #fff; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.12); }
.admin-school-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 13px; }
.admin-school-card { min-width: 0; padding: 19px; border: 1px solid #dce4eb; border-radius: 14px; background: #f8fafc; }
.admin-school-card__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 13px; }
.admin-school-card__heading > div { min-width: 0; }
.admin-school-card__heading > div > span { color: #4b7194; letter-spacing: .08em; font-size: 9px; font-weight: 850; }
.admin-school-card h4 { margin: 4px 0 0; overflow-wrap: anywhere; color: #1c3d5d; font-size: 18px; }
.admin-school-card dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; margin: 17px 0; }
.admin-school-card dl div { min-width: 0; padding: 9px; border-radius: 8px; background: #fff; }
.admin-school-card dt { min-height: 23px; color: #6d8194; text-transform: uppercase; letter-spacing: .045em; font-size: 7px; font-weight: 800; }
.admin-school-card dd { margin: 3px 0 0; color: #173d63; font-size: 18px; font-weight: 850; }
.admin-school-card__progress-copy { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 7px; color: #5e7489; font-size: 10px; }
.admin-school-card__progress-copy strong { color: #224967; }
.admin-school-card__actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 16px; }
.admin-school-card__actions button { min-height: 42px; padding: 6px; border: 1px solid #c7d4df; border-radius: 8px; color: #315677; background: #fff; font-size: 9px; font-weight: 800; }
.admin-school-card__actions button:hover { color: #fff; border-color: #315b84; background: #315b84; }
.admin-judge-progress-list { display: grid; gap: 8px; }
.admin-judge-progress-list article { display: grid; grid-template-columns: minmax(160px, .8fr) 90px minmax(150px, 1.2fr) 62px 100px; gap: 14px; align-items: center; min-width: 0; padding: 13px 15px; border-radius: 10px; background: #f6f8fa; }
.admin-judge-progress__identity { min-width: 0; }
.admin-judge-progress__identity strong, .admin-judge-progress__identity span, .admin-judge-progress__numbers strong, .admin-judge-progress__numbers span { display: block; }
.admin-judge-progress__identity strong { overflow-wrap: anywhere; color: #254864; font-size: 13px; }
.admin-judge-progress__identity span, .admin-judge-progress__numbers span { margin-top: 3px; color: #748698; font-size: 9px; }
.admin-judge-progress__numbers strong { color: #284d6a; font-size: 14px; }
.admin-judge-progress__percentage { color: #17496d; text-align: right; }
.admin-dashboard-attention { border-color: #ead8ad; background: #fffaf0; }
.admin-dashboard-attention .admin-dashboard-section-heading h3 { color: #69470f; }
.admin-dashboard-attention .admin-dashboard-section-heading > strong { color: #6b490f; background: #ffeab9; }
.admin-dashboard-attention ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 0; padding: 0; list-style: none; }
.admin-dashboard-attention li { padding: 12px 14px 12px 35px; position: relative; border: 1px solid #eeddb7; border-radius: 9px; color: #684e22; background: #fff; font-size: 12px; line-height: 1.45; }
.admin-dashboard-attention li::before { content: "!"; display: grid; place-items: center; position: absolute; top: 12px; left: 12px; width: 15px; height: 15px; border-radius: 50%; color: #fff; background: #c58b29; font-size: 9px; font-weight: 900; }
.admin-dashboard-shortcuts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 9px; }
.admin-dashboard-shortcuts button { display: grid; grid-template-columns: 38px minmax(0, 1fr) 16px; gap: 9px; align-items: center; min-width: 0; min-height: 66px; padding: 11px; border: 1px solid #d2dde6; border-radius: 11px; color: #315575; background: #f8fafc; text-align: left; }
.admin-dashboard-shortcuts button > span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; color: #315d85; background: #e7eff6; }
.admin-dashboard-shortcuts button svg { width: 17px; }
.admin-dashboard-shortcuts button > svg { width: 14px; }
.admin-dashboard-shortcuts button strong { min-width: 0; overflow-wrap: anywhere; font-size: 11px; }
.admin-dashboard-shortcuts button:hover { border-color: #89a5bd; background: #eef4f8; }
.admin-dashboard-empty { margin: 0; padding: 24px; color: #687c90; text-align: center; }
.admin-dashboard button:focus-visible { outline: 3px solid #f2b84b; outline-offset: 2px; }

@media (max-width: 1260px) {
  .admin-dashboard-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-dashboard-shortcuts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .admin-dashboard-hero { grid-template-columns: 1fr; }
  .admin-judge-progress-list article { grid-template-columns: minmax(0, 1fr) 80px minmax(130px, .8fr) 58px; }
  .admin-judge-progress-list article > .admin-dashboard-state { grid-column: 2 / -1; width: 100%; }
}

@media (max-width: 700px) {
  .admin-dashboard { gap: 14px; }
  .admin-dashboard-hero { padding: 25px 20px; border-radius: 17px; }
  .admin-dashboard-context { grid-template-columns: 1fr 1fr; }
  .admin-dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-dashboard-metrics article { display: block; min-height: 135px; padding: 14px; }
  .admin-dashboard-metric__icon { margin: 0 0 10px; }
  .admin-dashboard-metrics article > div > span { min-height: 25px; }
  .admin-dashboard-section-heading { align-items: flex-start; }
  .admin-school-grid { grid-template-columns: 1fr; }
  .admin-school-card dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-school-card__actions { grid-template-columns: 1fr; }
  .admin-school-card__actions button { min-height: 44px; }
  .admin-judge-progress-list article { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
  .admin-judge-progress__numbers, .admin-judge-progress__percentage { text-align: right; }
  .admin-judge-progress__bar { grid-column: 1 / -1; }
  .admin-judge-progress-list article > .admin-dashboard-state { grid-column: 1 / -1; width: 100%; }
  .admin-dashboard-attention ul { grid-template-columns: 1fr; }
  .admin-dashboard-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 420px) {
  .admin-dashboard-context { grid-template-columns: 1fr; }
  .admin-dashboard-metrics article strong { font-size: 25px; }
  .admin-dashboard-overall .admin-dashboard-section-heading { flex-direction: column; }
  .admin-dashboard-overall .admin-dashboard-section-heading > strong { align-self: flex-start; }
  .admin-dashboard-shortcuts { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .topbar__left { min-width: 0; }
  .topbar__actions { flex: 1; min-width: 0; justify-content: flex-end; }
  .topbar__actions > .icon-button,
  .topbar__actions .user-menu { display: none; }
}

@media (max-width: 520px) {
  .topbar__actions .school-filter select { width: min(128px, 34vw); }
  .topbar__actions .admin-logout-button { padding-inline: 10px; }
}

/* TASK-009B — Navegação administrativa consistente */
.admin-module-navigation { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; margin-bottom: 20px; padding: 11px 13px; border: 1px solid #d9e3eb; border-radius: 12px; background: #f8fafc; }
.admin-module-navigation__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-module-navigation button { min-height: 44px; }
.admin-module-navigation button svg { width: 17px; }
.admin-module-navigation > span { min-width: 0; overflow-wrap: anywhere; color: #60758a; text-align: right; font-size: 11px; }
.admin-module-navigation > span strong { color: #2a4d6b; }
.module-placeholder__status { display: inline-flex; width: fit-content; margin: 0 auto 10px; padding: 6px 10px; border-radius: 999px; color: #745119; background: #fff0d2; text-transform: uppercase; letter-spacing: .07em; font-size: 9px; font-weight: 850; }
.import-status--success > p { margin: 0; }
.import-result-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 13px; }
.import-result-actions button { min-height: 44px; }
.admin-module-navigation button:focus-visible, .import-result-actions button:focus-visible { outline: 3px solid #f2b84b; outline-offset: 2px; }

@media (max-width: 600px) {
  .admin-module-navigation { align-items: stretch; flex-direction: column; }
  .admin-module-navigation__actions { display: grid; grid-template-columns: 1fr; }
  .admin-module-navigation button { width: 100%; }
  .admin-module-navigation > span { text-align: left; }
  .import-result-actions { display: grid; grid-template-columns: 1fr; }
  .import-result-actions button { width: 100%; }
}

/* TASK-010 — Central administrativa de avaliações */
.admin-evaluations-page { display: grid; min-width: 0; overflow-x: hidden; gap: 20px; }
.admin-evaluation-topbar, .admin-evaluation-header, .admin-evaluation-filter-row, .admin-evaluation-section__heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.admin-evaluation-topbar { flex-wrap: wrap; }
.admin-evaluation-header { padding: clamp(20px, 3vw, 32px); border-radius: 20px; color: #fff; background: linear-gradient(135deg, #153d68, #1f5c8f); }
.admin-evaluation-header span, .admin-evaluation-section__heading span { display: block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.admin-evaluation-header h2 { margin: 4px 0; font-size: clamp(27px, 4vw, 39px); }
.admin-evaluation-header p, .admin-evaluation-header > strong { margin: 0; color: #dceafa; }
.admin-evaluation-header > strong { max-width: 352px; padding: 10px 14px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; text-align: center; }
.admin-evaluation-metrics, .admin-evaluation-judge-summary { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.admin-evaluation-metrics article, .admin-evaluation-judge-summary article { min-width: 0; padding: 16px; border: 1px solid #dce5ef; border-radius: 16px; background: #fff; box-shadow: 0 8px 24px rgba(25,51,76,.06); }
.admin-evaluation-metrics span, .admin-evaluation-judge-summary span { display: block; min-height: 2.2em; color: #60738a; font-size: 12px; font-weight: 700; }
.admin-evaluation-metrics strong, .admin-evaluation-judge-summary strong { display: block; margin-top: 6px; color: #173a60; font-size: clamp(22px, 2.5vw, 32px); overflow-wrap: anywhere; }
.admin-evaluation-section, .admin-evaluation-tools, .admin-evaluation-project-detail, .admin-evaluation-readonly { min-width: 0; padding: clamp(16px, 2.4vw, 24px); border: 1px solid #dce5ef; border-radius: 19px; background: #fff; box-shadow: 0 8px 24px rgba(25,51,76,.05); }
.admin-evaluation-section__heading { margin-bottom: 16px; }
.admin-evaluation-section__heading h3 { margin: 3px 0 0; color: #173a60; font-size: 20px; }
.admin-evaluation-section__heading > strong { color: #386184; }
.admin-evaluation-school-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.admin-evaluation-school-grid > article { display: grid; gap: 16px; padding: 18px; border: 1px solid #d7e2ed; border-radius: 16px; background: #fbfdff; }
.admin-evaluation-school__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.admin-evaluation-school__heading span { color: #6b7f94; font-size: 11px; font-weight: 800; }
.admin-evaluation-school__heading h4 { margin: 3px 0 0; color: #173a60; overflow-wrap: anywhere; }
.admin-evaluation-school__heading > strong { color: #1d6496; font-size: 22px; }
.admin-evaluation-school-grid dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.admin-evaluation-school-grid dl div { padding: 10px; border-radius: 11px; background: #eef4f9; }
.admin-evaluation-school-grid dt { color: #65798e; font-size: 11px; }
.admin-evaluation-school-grid dd { margin: 3px 0 0; color: #173a60; font-size: 18px; font-weight: 800; }
.admin-evaluation-tools { display: grid; gap: 16px; }
.admin-evaluation-tools > label { display: grid; gap: 7px; color: #294d70; font-weight: 800; }
.admin-evaluation-tools input, .admin-evaluation-tools select { width: 100%; min-height: 46px; padding: 12px 14px; border: 1px solid #b8c8d8; border-radius: 12px; color: #173a60; background: #fff; font: inherit; }
.admin-evaluation-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-evaluation-filters button { min-height: 44px; padding: 10px 14px; border: 1px solid #bdcbd9; border-radius: 999px; color: #315574; background: #fff; font-weight: 750; }
.admin-evaluation-filters button span { margin-left: 4px; color: inherit; }
.admin-evaluation-filters button.active { border-color: #1b5e8c; color: #fff; background: #1b5e8c; }
.admin-evaluation-judge-filter { display: grid; grid-template-columns: auto minmax(192px, 288px); align-items: center; gap: 10px; color: #315574; font-weight: 750; }
.admin-evaluation-matrix-wrap { width: 100%; min-width: 0; max-width: 100%; overflow-x: auto; border: 1px solid #d7e2ed; border-radius: 14px; }
.admin-evaluation-matrix { width: 100%; min-width: 760px; border-collapse: collapse; }
.admin-evaluation-matrix th, .admin-evaluation-matrix td { padding: 14px; border-bottom: 1px solid #e2eaf2; text-align: left; vertical-align: middle; }
.admin-evaluation-matrix thead th { color: #4b6279; background: #f1f5f9; font-size: 12px; white-space: nowrap; }
.admin-evaluation-matrix tbody th { min-width: 256px; }
.admin-evaluation-matrix tbody th strong, .admin-evaluation-matrix tbody th span { display: block; }
.admin-evaluation-matrix tbody th strong { color: #125b8d; font-size: 16px; }
.admin-evaluation-matrix tbody th span { margin-top: 4px; color: #273f56; font-weight: 650; overflow-wrap: anywhere; }
.admin-evaluation-matrix button, .admin-evaluation-pending-groups button, .admin-evaluation-judge-projects button { min-height: 44px; border: 0; color: #135f91; background: transparent; font: inherit; font-weight: 800; cursor: pointer; }
.admin-evaluation-cell { display: inline-flex; align-items: center; min-height: 30px; padding: 5px 9px; border-radius: 999px; font-size: 12px; font-weight: 850; white-space: nowrap; }
.admin-evaluation-cell--done { color: #17623c; background: #e5f6ec; }
.admin-evaluation-cell--pending { color: #7b5620; background: #fff2d9; }
.admin-evaluation-project-cards { display: none; }
.admin-evaluation-judge-list { display: grid; gap: 10px; }
.admin-evaluation-judge-list > button { display: grid; grid-template-columns: minmax(192px, 2fr) repeat(3, minmax(112px, 1fr)); align-items: center; gap: 16px; min-height: 60px; padding: 14px 16px; border: 1px solid #d9e3ec; border-radius: 14px; color: #263f57; background: #fbfdff; text-align: left; cursor: pointer; }
.admin-evaluation-judge-list span, .admin-evaluation-judge-list strong, .admin-evaluation-judge-list small { display: block; overflow-wrap: anywhere; }
.admin-evaluation-judge-list small { margin-top: 3px; color: #687d91; }
.admin-evaluation-pending-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.admin-evaluation-pending-groups article { padding: 16px; border: 1px solid #e1e8ef; border-radius: 14px; background: #fcfdff; }
.admin-evaluation-pending-groups h4 { margin: 0 0 12px; color: #173a60; }
.admin-evaluation-pending-groups ul, .admin-evaluation-judge-projects ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.admin-evaluation-pending-groups li button, .admin-evaluation-judge-projects li button { display: grid; width: 100%; grid-template-columns: auto 1fr; gap: 9px; align-items: center; padding: 9px; border-radius: 9px; text-align: left; }
.admin-evaluation-pending-groups li button:hover, .admin-evaluation-judge-projects li button:hover { background: #edf5fb; }
.admin-evaluation-empty { display: grid; gap: 5px; padding: 24px; color: #65798e; text-align: center; }
.admin-evaluation-project-detail dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin: 0; }
.admin-evaluation-project-detail dt, .admin-evaluation-readonly dt { color: #6b7e91; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.admin-evaluation-project-detail dd, .admin-evaluation-readonly dd { margin: 5px 0 0; color: #213e58; overflow-wrap: anywhere; }
.admin-evaluation-description, .admin-evaluation-observations { margin-top: 20px; padding: 16px; border-radius: 13px; color: #263f57; background: #f3f7fa; }
.admin-evaluation-description h3, .admin-evaluation-observations h3 { margin: 0 0 10px; color: #173a60; }
.admin-evaluation-description p, .admin-evaluation-observations p { margin: 0; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.admin-evaluation-project-summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 13px; margin-top: 19px; color: #61758a; }
.admin-evaluation-project-summary strong { color: #165b8c; font-size: 24px; }
.admin-evaluation-project-judges { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.admin-evaluation-project-judges article { display: grid; align-content: start; gap: 12px; padding: 16px; border: 1px solid #dbe4ec; border-radius: 14px; }
.admin-evaluation-project-judges article > div { display: flex; justify-content: space-between; gap: 8px; }
.admin-evaluation-project-judges p { margin: 0; color: #65798e; font-size: 14px; }
.admin-evaluation-readonly__context { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 0 20px; }
.admin-evaluation-scores { display: grid; gap: 10px; }
.admin-evaluation-scores article { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border: 1px solid #dce5ed; border-radius: 12px; background: #fbfdff; }
.admin-evaluation-scores article div { display: grid; gap: 3px; }
.admin-evaluation-scores article span { color: #516980; overflow-wrap: anywhere; }
.admin-evaluation-scores output { min-width: 51px; color: #174f79; font-size: 22px; font-weight: 850; text-align: right; }
.admin-evaluation-average { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; padding: 16px; border-radius: 13px; color: #fff; background: #173f66; }
.admin-evaluation-average strong { font-size: 26px; }
.admin-evaluation-readonly__notice { margin: 16px 0 0; color: #6b5b36; font-weight: 700; }
.admin-evaluation-judge-projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.admin-evaluation-judge-projects > section { padding: 16px; border: 1px solid #dbe4ec; border-radius: 16px; background: #fff; }
.admin-evaluation-judge-projects h3 { margin-top: 0; color: #173a60; }
.admin-evaluation-judge-projects h3 span { color: #667b90; }
.admin-evaluation-judge-projects li button { grid-template-columns: auto 1fr auto; }
.admin-evaluation-judge-projects em { color: #6a7d90; font-size: 12px; font-style: normal; }
.admin-evaluations-page button:focus-visible, .admin-evaluations-page input:focus-visible, .admin-evaluations-page select:focus-visible { outline: 3px solid #e09c35; outline-offset: 2px; }

@media (max-width: 1100px) {
  .admin-evaluation-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-evaluation-judge-list > button { grid-template-columns: minmax(192px, 2fr) repeat(2, minmax(112px, 1fr)); }
}

@media (max-width: 700px) {
  .admin-evaluation-header, .admin-evaluation-filter-row, .admin-evaluation-section__heading { align-items: stretch; flex-direction: column; }
  .admin-evaluation-header > strong { max-width: none; }
  .admin-evaluation-metrics, .admin-evaluation-judge-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-evaluation-judge-filter { grid-template-columns: 1fr; }
  .admin-evaluation-matrix-wrap { display: none; }
  .admin-evaluation-project-cards { display: grid; gap: 14px; }
  .admin-evaluation-project-cards article { display: grid; gap: 13px; padding: 16px; border: 1px solid #d9e4ed; border-radius: 14px; background: #fbfdff; }
  .admin-evaluation-project-cards h4 { margin: 4px 0; color: #263f57; overflow-wrap: anywhere; }
  .admin-evaluation-project-cards article > div > strong { color: #125b8d; font-size: 18px; }
  .admin-evaluation-project-cards article > div > span { color: #65798e; }
  .admin-evaluation-project-cards ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
  .admin-evaluation-project-cards li { display: flex; justify-content: space-between; gap: 12px; padding: 8px; border-radius: 9px; background: #eef4f8; }
  .admin-evaluation-project-cards li span { overflow-wrap: anywhere; }
  .admin-evaluation-judge-list > button { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-evaluation-readonly__context, .admin-evaluation-judge-projects { grid-template-columns: 1fr; }
  .admin-evaluation-scores article { align-items: flex-start; }
}

@media (max-width: 430px) {
  .admin-evaluation-topbar > button, .admin-evaluation-school-grid button, .admin-evaluation-project-judges button { width: 100%; }
  .admin-evaluation-metrics article, .admin-evaluation-judge-summary article { padding: 13px; }
  .admin-evaluation-metrics span, .admin-evaluation-judge-summary span { font-size: 11px; }
  .admin-evaluation-judge-list > button { grid-template-columns: 1fr; }
  .admin-evaluation-pending-groups, .admin-evaluation-project-judges { grid-template-columns: minmax(0, 1fr); }
  .admin-evaluation-scores article { flex-direction: column; }
  .admin-evaluation-scores output { text-align: left; }
}

/* TASK-011 — Relatórios administrativos */
.admin-reports-page { display: grid; min-width: 0; gap: 20px; overflow-x: hidden; }
.admin-reports-hero { position: relative; padding: clamp(22px,4vw,38px); overflow: hidden; border-radius: 20px; color: #fff; background: linear-gradient(135deg,#163d65,#246b94); }
.admin-reports-hero::after { position: absolute; right: -50px; bottom: -80px; width: 240px; height: 240px; border: 38px solid rgba(255,255,255,.07); border-radius: 50%; content: ""; }
.admin-reports-hero > * { position: relative; z-index: 1; }
.admin-reports-hero > span { font-size: 11px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.admin-reports-hero h2 { margin: 5px 0; max-width: 750px; font-size: clamp(28px,4vw,42px); text-transform: uppercase; }
.admin-reports-hero p { max-width: 720px; margin: 0; color: #d9eaf7; line-height: 1.6; }
.admin-reports-hero > strong { display: inline-flex; margin-top: 18px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; color: #eef7ff; }
.admin-reports-hero--compact { padding-block: 24px; }
.admin-reports-hero--compact h2 { font-size: clamp(24px,3vw,34px); }
.admin-report-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(250px,1fr)); gap: 16px; }
.admin-report-grid article { display: flex; min-width: 0; min-height: 275px; padding: 20px; border: 1px solid #d8e3ec; border-radius: 16px; flex-direction: column; background: #fff; box-shadow: 0 8px 25px rgba(25,51,76,.06); }
.admin-report-grid article > span { display: grid; width: 48px; height: 48px; border-radius: 13px; place-items: center; color: #1b618f; background: #e7f1f8; }
.admin-report-grid article > span svg { width: 24px; }
.admin-report-grid h3 { margin: 16px 0 8px; color: #173d62; font-size: 18px; text-transform: uppercase; overflow-wrap: anywhere; }
.admin-report-grid p { margin: 0 0 20px; color: #65798d; line-height: 1.55; }
.admin-report-grid button { width: 100%; min-height: 46px; margin-top: auto; }
.admin-report-security { margin: 0; padding: 13px 16px; border-radius: 12px; color: #2e614a; background: #e8f6ee; font-weight: 700; text-align: center; }
.admin-report-topbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.admin-report-filters { display: grid; grid-template-columns: repeat(auto-fit,minmax(210px,1fr)); gap: 14px; padding: 18px; border: 1px solid #d9e3ec; border-radius: 16px; background: #fff; }
.admin-report-filters > div, .admin-report-filters > label { display: grid; align-content: start; gap: 7px; min-width: 0; }
.admin-report-filters span, .admin-report-project-picker label span { color: #526a81; font-size: 12px; font-weight: 800; }
.admin-report-filters strong { color: #173d62; overflow-wrap: anywhere; }
.admin-report-filters small { color: #74879a; }
.admin-report-filters select, .admin-report-project-picker input { width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid #b8c8d8; border-radius: 11px; color: #173d62; background: #fff; font: inherit; }
.admin-report-preview, .admin-report-project-picker { min-width: 0; padding: clamp(18px,3vw,26px); border: 1px solid #d9e3ec; border-radius: 18px; background: #fff; box-shadow: 0 8px 24px rgba(25,51,76,.05); }
.admin-report-preview > div > span { color: #6a7e91; font-size: 11px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.admin-report-preview h3, .admin-report-project-picker h3 { margin: 4px 0 8px; color: #173d62; font-size: 23px; text-transform: uppercase; overflow-wrap: anywhere; }
.admin-report-preview > div > strong { display: block; margin: 8px 0; color: #8b5a12; }
.admin-report-preview > div > p { color: #61768a; }
.admin-report-preview dl { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin: 18px 0; }
.admin-report-preview dl div { padding: 13px; border-radius: 11px; background: #edf4f8; }
.admin-report-preview dt { color: #60768a; font-size: 11px; font-weight: 750; }
.admin-report-preview dd { margin: 4px 0 0; color: #17466e; font-size: 19px; font-weight: 850; overflow-wrap: anywhere; }
.admin-report-preview ul { display: grid; grid-template-columns: repeat(auto-fit,minmax(190px,1fr)); gap: 7px; margin: 0 0 18px; padding: 0; list-style: none; }
.admin-report-preview li { padding: 8px 10px; border-left: 3px solid #2b759f; color: #536b81; background: #f4f8fb; overflow-wrap: anywhere; }
.admin-report-preview--empty { text-align: center; }
.admin-report-preview--empty p { color: #6c7f91; }
.admin-report-notice { padding: 12px; border-radius: 10px; color: #294f6d; background: #edf4f8; font-weight: 800; }
.admin-report-generate { min-width: 180px; min-height: 48px; }
.admin-report-message { margin: 0; padding: 12px 14px; border-radius: 10px; color: #236045; background: #e5f5ec; font-weight: 750; }
.admin-report-project-picker { display: grid; gap: 14px; }
.admin-report-project-picker label { display: grid; gap: 7px; }
.admin-report-project-results { display: grid; grid-template-columns: repeat(auto-fit,minmax(230px,1fr)); gap: 9px; }
.admin-report-project-results button { display: grid; gap: 4px; min-height: 76px; padding: 12px; border: 1px solid #d6e1ea; border-radius: 11px; color: #244762; background: #fbfdff; text-align: left; cursor: pointer; }
.admin-report-project-results button:hover { border-color: #3980a8; background: #edf6fb; }
.admin-report-project-results strong { color: #135f91; }
.admin-report-project-results span, .admin-report-project-results small { overflow-wrap: anywhere; }
.admin-report-project-results small { color: #718598; }
.admin-report-selected-project { display: grid; gap: 5px; padding: 15px; border: 1px solid #bcd5e5; border-radius: 12px; background: #eff7fb; }
.admin-report-selected-project > span, .admin-report-selected-project small { color: #657b8f; }
.admin-report-selected-project strong { color: #173d62; overflow-wrap: anywhere; }
.admin-report-selected-project button { width: fit-content; margin-top: 8px; }
.admin-reports-page button:focus-visible, .admin-reports-page input:focus-visible, .admin-reports-page select:focus-visible { outline: 3px solid #e5a43a; outline-offset: 2px; }

@media (max-width: 700px) {
  .admin-report-topbar { display: grid; grid-template-columns: 1fr; }
  .admin-report-topbar button { width: 100%; }
  .admin-report-preview dl { grid-template-columns: 1fr; }
  .admin-report-generate { width: 100%; }
}

@media (max-width: 430px) {
  .admin-report-grid { grid-template-columns: minmax(0,1fr); }
  .admin-report-grid article { min-height: 0; }
  .admin-report-project-results { grid-template-columns: minmax(0,1fr); }
  .admin-report-selected-project button { width: 100%; }
}
